source: node_modules/property-information/lib/svg.js

main
Last change on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 14.1 KB
RevLine 
[d24f17c]1'use strict'
2
3var types = require('./util/types')
4var create = require('./util/create')
5var caseSensitiveTransform = require('./util/case-sensitive-transform')
6
7var boolean = types.boolean
8var number = types.number
9var spaceSeparated = types.spaceSeparated
10var commaSeparated = types.commaSeparated
11var commaOrSpaceSeparated = types.commaOrSpaceSeparated
12
13module.exports = create({
14 space: 'svg',
15 attributes: {
16 accentHeight: 'accent-height',
17 alignmentBaseline: 'alignment-baseline',
18 arabicForm: 'arabic-form',
19 baselineShift: 'baseline-shift',
20 capHeight: 'cap-height',
21 className: 'class',
22 clipPath: 'clip-path',
23 clipRule: 'clip-rule',
24 colorInterpolation: 'color-interpolation',
25 colorInterpolationFilters: 'color-interpolation-filters',
26 colorProfile: 'color-profile',
27 colorRendering: 'color-rendering',
28 crossOrigin: 'crossorigin',
29 dataType: 'datatype',
30 dominantBaseline: 'dominant-baseline',
31 enableBackground: 'enable-background',
32 fillOpacity: 'fill-opacity',
33 fillRule: 'fill-rule',
34 floodColor: 'flood-color',
35 floodOpacity: 'flood-opacity',
36 fontFamily: 'font-family',
37 fontSize: 'font-size',
38 fontSizeAdjust: 'font-size-adjust',
39 fontStretch: 'font-stretch',
40 fontStyle: 'font-style',
41 fontVariant: 'font-variant',
42 fontWeight: 'font-weight',
43 glyphName: 'glyph-name',
44 glyphOrientationHorizontal: 'glyph-orientation-horizontal',
45 glyphOrientationVertical: 'glyph-orientation-vertical',
46 hrefLang: 'hreflang',
47 horizAdvX: 'horiz-adv-x',
48 horizOriginX: 'horiz-origin-x',
49 horizOriginY: 'horiz-origin-y',
50 imageRendering: 'image-rendering',
51 letterSpacing: 'letter-spacing',
52 lightingColor: 'lighting-color',
53 markerEnd: 'marker-end',
54 markerMid: 'marker-mid',
55 markerStart: 'marker-start',
56 navDown: 'nav-down',
57 navDownLeft: 'nav-down-left',
58 navDownRight: 'nav-down-right',
59 navLeft: 'nav-left',
60 navNext: 'nav-next',
61 navPrev: 'nav-prev',
62 navRight: 'nav-right',
63 navUp: 'nav-up',
64 navUpLeft: 'nav-up-left',
65 navUpRight: 'nav-up-right',
66 onAbort: 'onabort',
67 onActivate: 'onactivate',
68 onAfterPrint: 'onafterprint',
69 onBeforePrint: 'onbeforeprint',
70 onBegin: 'onbegin',
71 onCancel: 'oncancel',
72 onCanPlay: 'oncanplay',
73 onCanPlayThrough: 'oncanplaythrough',
74 onChange: 'onchange',
75 onClick: 'onclick',
76 onClose: 'onclose',
77 onCopy: 'oncopy',
78 onCueChange: 'oncuechange',
79 onCut: 'oncut',
80 onDblClick: 'ondblclick',
81 onDrag: 'ondrag',
82 onDragEnd: 'ondragend',
83 onDragEnter: 'ondragenter',
84 onDragExit: 'ondragexit',
85 onDragLeave: 'ondragleave',
86 onDragOver: 'ondragover',
87 onDragStart: 'ondragstart',
88 onDrop: 'ondrop',
89 onDurationChange: 'ondurationchange',
90 onEmptied: 'onemptied',
91 onEnd: 'onend',
92 onEnded: 'onended',
93 onError: 'onerror',
94 onFocus: 'onfocus',
95 onFocusIn: 'onfocusin',
96 onFocusOut: 'onfocusout',
97 onHashChange: 'onhashchange',
98 onInput: 'oninput',
99 onInvalid: 'oninvalid',
100 onKeyDown: 'onkeydown',
101 onKeyPress: 'onkeypress',
102 onKeyUp: 'onkeyup',
103 onLoad: 'onload',
104 onLoadedData: 'onloadeddata',
105 onLoadedMetadata: 'onloadedmetadata',
106 onLoadStart: 'onloadstart',
107 onMessage: 'onmessage',
108 onMouseDown: 'onmousedown',
109 onMouseEnter: 'onmouseenter',
110 onMouseLeave: 'onmouseleave',
111 onMouseMove: 'onmousemove',
112 onMouseOut: 'onmouseout',
113 onMouseOver: 'onmouseover',
114 onMouseUp: 'onmouseup',
115 onMouseWheel: 'onmousewheel',
116 onOffline: 'onoffline',
117 onOnline: 'ononline',
118 onPageHide: 'onpagehide',
119 onPageShow: 'onpageshow',
120 onPaste: 'onpaste',
121 onPause: 'onpause',
122 onPlay: 'onplay',
123 onPlaying: 'onplaying',
124 onPopState: 'onpopstate',
125 onProgress: 'onprogress',
126 onRateChange: 'onratechange',
127 onRepeat: 'onrepeat',
128 onReset: 'onreset',
129 onResize: 'onresize',
130 onScroll: 'onscroll',
131 onSeeked: 'onseeked',
132 onSeeking: 'onseeking',
133 onSelect: 'onselect',
134 onShow: 'onshow',
135 onStalled: 'onstalled',
136 onStorage: 'onstorage',
137 onSubmit: 'onsubmit',
138 onSuspend: 'onsuspend',
139 onTimeUpdate: 'ontimeupdate',
140 onToggle: 'ontoggle',
141 onUnload: 'onunload',
142 onVolumeChange: 'onvolumechange',
143 onWaiting: 'onwaiting',
144 onZoom: 'onzoom',
145 overlinePosition: 'overline-position',
146 overlineThickness: 'overline-thickness',
147 paintOrder: 'paint-order',
148 panose1: 'panose-1',
149 pointerEvents: 'pointer-events',
150 referrerPolicy: 'referrerpolicy',
151 renderingIntent: 'rendering-intent',
152 shapeRendering: 'shape-rendering',
153 stopColor: 'stop-color',
154 stopOpacity: 'stop-opacity',
155 strikethroughPosition: 'strikethrough-position',
156 strikethroughThickness: 'strikethrough-thickness',
157 strokeDashArray: 'stroke-dasharray',
158 strokeDashOffset: 'stroke-dashoffset',
159 strokeLineCap: 'stroke-linecap',
160 strokeLineJoin: 'stroke-linejoin',
161 strokeMiterLimit: 'stroke-miterlimit',
162 strokeOpacity: 'stroke-opacity',
163 strokeWidth: 'stroke-width',
164 tabIndex: 'tabindex',
165 textAnchor: 'text-anchor',
166 textDecoration: 'text-decoration',
167 textRendering: 'text-rendering',
168 typeOf: 'typeof',
169 underlinePosition: 'underline-position',
170 underlineThickness: 'underline-thickness',
171 unicodeBidi: 'unicode-bidi',
172 unicodeRange: 'unicode-range',
173 unitsPerEm: 'units-per-em',
174 vAlphabetic: 'v-alphabetic',
175 vHanging: 'v-hanging',
176 vIdeographic: 'v-ideographic',
177 vMathematical: 'v-mathematical',
178 vectorEffect: 'vector-effect',
179 vertAdvY: 'vert-adv-y',
180 vertOriginX: 'vert-origin-x',
181 vertOriginY: 'vert-origin-y',
182 wordSpacing: 'word-spacing',
183 writingMode: 'writing-mode',
184 xHeight: 'x-height',
185 // These were camelcased in Tiny. Now lowercased in SVG 2
186 playbackOrder: 'playbackorder',
187 timelineBegin: 'timelinebegin'
188 },
189 transform: caseSensitiveTransform,
190 properties: {
191 about: commaOrSpaceSeparated,
192 accentHeight: number,
193 accumulate: null,
194 additive: null,
195 alignmentBaseline: null,
196 alphabetic: number,
197 amplitude: number,
198 arabicForm: null,
199 ascent: number,
200 attributeName: null,
201 attributeType: null,
202 azimuth: number,
203 bandwidth: null,
204 baselineShift: null,
205 baseFrequency: null,
206 baseProfile: null,
207 bbox: null,
208 begin: null,
209 bias: number,
210 by: null,
211 calcMode: null,
212 capHeight: number,
213 className: spaceSeparated,
214 clip: null,
215 clipPath: null,
216 clipPathUnits: null,
217 clipRule: null,
218 color: null,
219 colorInterpolation: null,
220 colorInterpolationFilters: null,
221 colorProfile: null,
222 colorRendering: null,
223 content: null,
224 contentScriptType: null,
225 contentStyleType: null,
226 crossOrigin: null,
227 cursor: null,
228 cx: null,
229 cy: null,
230 d: null,
231 dataType: null,
232 defaultAction: null,
233 descent: number,
234 diffuseConstant: number,
235 direction: null,
236 display: null,
237 dur: null,
238 divisor: number,
239 dominantBaseline: null,
240 download: boolean,
241 dx: null,
242 dy: null,
243 edgeMode: null,
244 editable: null,
245 elevation: number,
246 enableBackground: null,
247 end: null,
248 event: null,
249 exponent: number,
250 externalResourcesRequired: null,
251 fill: null,
252 fillOpacity: number,
253 fillRule: null,
254 filter: null,
255 filterRes: null,
256 filterUnits: null,
257 floodColor: null,
258 floodOpacity: null,
259 focusable: null,
260 focusHighlight: null,
261 fontFamily: null,
262 fontSize: null,
263 fontSizeAdjust: null,
264 fontStretch: null,
265 fontStyle: null,
266 fontVariant: null,
267 fontWeight: null,
268 format: null,
269 fr: null,
270 from: null,
271 fx: null,
272 fy: null,
273 g1: commaSeparated,
274 g2: commaSeparated,
275 glyphName: commaSeparated,
276 glyphOrientationHorizontal: null,
277 glyphOrientationVertical: null,
278 glyphRef: null,
279 gradientTransform: null,
280 gradientUnits: null,
281 handler: null,
282 hanging: number,
283 hatchContentUnits: null,
284 hatchUnits: null,
285 height: null,
286 href: null,
287 hrefLang: null,
288 horizAdvX: number,
289 horizOriginX: number,
290 horizOriginY: number,
291 id: null,
292 ideographic: number,
293 imageRendering: null,
294 initialVisibility: null,
295 in: null,
296 in2: null,
297 intercept: number,
298 k: number,
299 k1: number,
300 k2: number,
301 k3: number,
302 k4: number,
303 kernelMatrix: commaOrSpaceSeparated,
304 kernelUnitLength: null,
305 keyPoints: null, // SEMI_COLON_SEPARATED
306 keySplines: null, // SEMI_COLON_SEPARATED
307 keyTimes: null, // SEMI_COLON_SEPARATED
308 kerning: null,
309 lang: null,
310 lengthAdjust: null,
311 letterSpacing: null,
312 lightingColor: null,
313 limitingConeAngle: number,
314 local: null,
315 markerEnd: null,
316 markerMid: null,
317 markerStart: null,
318 markerHeight: null,
319 markerUnits: null,
320 markerWidth: null,
321 mask: null,
322 maskContentUnits: null,
323 maskUnits: null,
324 mathematical: null,
325 max: null,
326 media: null,
327 mediaCharacterEncoding: null,
328 mediaContentEncodings: null,
329 mediaSize: number,
330 mediaTime: null,
331 method: null,
332 min: null,
333 mode: null,
334 name: null,
335 navDown: null,
336 navDownLeft: null,
337 navDownRight: null,
338 navLeft: null,
339 navNext: null,
340 navPrev: null,
341 navRight: null,
342 navUp: null,
343 navUpLeft: null,
344 navUpRight: null,
345 numOctaves: null,
346 observer: null,
347 offset: null,
348 onAbort: null,
349 onActivate: null,
350 onAfterPrint: null,
351 onBeforePrint: null,
352 onBegin: null,
353 onCancel: null,
354 onCanPlay: null,
355 onCanPlayThrough: null,
356 onChange: null,
357 onClick: null,
358 onClose: null,
359 onCopy: null,
360 onCueChange: null,
361 onCut: null,
362 onDblClick: null,
363 onDrag: null,
364 onDragEnd: null,
365 onDragEnter: null,
366 onDragExit: null,
367 onDragLeave: null,
368 onDragOver: null,
369 onDragStart: null,
370 onDrop: null,
371 onDurationChange: null,
372 onEmptied: null,
373 onEnd: null,
374 onEnded: null,
375 onError: null,
376 onFocus: null,
377 onFocusIn: null,
378 onFocusOut: null,
379 onHashChange: null,
380 onInput: null,
381 onInvalid: null,
382 onKeyDown: null,
383 onKeyPress: null,
384 onKeyUp: null,
385 onLoad: null,
386 onLoadedData: null,
387 onLoadedMetadata: null,
388 onLoadStart: null,
389 onMessage: null,
390 onMouseDown: null,
391 onMouseEnter: null,
392 onMouseLeave: null,
393 onMouseMove: null,
394 onMouseOut: null,
395 onMouseOver: null,
396 onMouseUp: null,
397 onMouseWheel: null,
398 onOffline: null,
399 onOnline: null,
400 onPageHide: null,
401 onPageShow: null,
402 onPaste: null,
403 onPause: null,
404 onPlay: null,
405 onPlaying: null,
406 onPopState: null,
407 onProgress: null,
408 onRateChange: null,
409 onRepeat: null,
410 onReset: null,
411 onResize: null,
412 onScroll: null,
413 onSeeked: null,
414 onSeeking: null,
415 onSelect: null,
416 onShow: null,
417 onStalled: null,
418 onStorage: null,
419 onSubmit: null,
420 onSuspend: null,
421 onTimeUpdate: null,
422 onToggle: null,
423 onUnload: null,
424 onVolumeChange: null,
425 onWaiting: null,
426 onZoom: null,
427 opacity: null,
428 operator: null,
429 order: null,
430 orient: null,
431 orientation: null,
432 origin: null,
433 overflow: null,
434 overlay: null,
435 overlinePosition: number,
436 overlineThickness: number,
437 paintOrder: null,
438 panose1: null,
439 path: null,
440 pathLength: number,
441 patternContentUnits: null,
442 patternTransform: null,
443 patternUnits: null,
444 phase: null,
445 ping: spaceSeparated,
446 pitch: null,
447 playbackOrder: null,
448 pointerEvents: null,
449 points: null,
450 pointsAtX: number,
451 pointsAtY: number,
452 pointsAtZ: number,
453 preserveAlpha: null,
454 preserveAspectRatio: null,
455 primitiveUnits: null,
456 propagate: null,
457 property: commaOrSpaceSeparated,
458 r: null,
459 radius: null,
460 referrerPolicy: null,
461 refX: null,
462 refY: null,
463 rel: commaOrSpaceSeparated,
464 rev: commaOrSpaceSeparated,
465 renderingIntent: null,
466 repeatCount: null,
467 repeatDur: null,
468 requiredExtensions: commaOrSpaceSeparated,
469 requiredFeatures: commaOrSpaceSeparated,
470 requiredFonts: commaOrSpaceSeparated,
471 requiredFormats: commaOrSpaceSeparated,
472 resource: null,
473 restart: null,
474 result: null,
475 rotate: null,
476 rx: null,
477 ry: null,
478 scale: null,
479 seed: null,
480 shapeRendering: null,
481 side: null,
482 slope: null,
483 snapshotTime: null,
484 specularConstant: number,
485 specularExponent: number,
486 spreadMethod: null,
487 spacing: null,
488 startOffset: null,
489 stdDeviation: null,
490 stemh: null,
491 stemv: null,
492 stitchTiles: null,
493 stopColor: null,
494 stopOpacity: null,
495 strikethroughPosition: number,
496 strikethroughThickness: number,
497 string: null,
498 stroke: null,
499 strokeDashArray: commaOrSpaceSeparated,
500 strokeDashOffset: null,
501 strokeLineCap: null,
502 strokeLineJoin: null,
503 strokeMiterLimit: number,
504 strokeOpacity: number,
505 strokeWidth: null,
506 style: null,
507 surfaceScale: number,
508 syncBehavior: null,
509 syncBehaviorDefault: null,
510 syncMaster: null,
511 syncTolerance: null,
512 syncToleranceDefault: null,
513 systemLanguage: commaOrSpaceSeparated,
514 tabIndex: number,
515 tableValues: null,
516 target: null,
517 targetX: number,
518 targetY: number,
519 textAnchor: null,
520 textDecoration: null,
521 textRendering: null,
522 textLength: null,
523 timelineBegin: null,
524 title: null,
525 transformBehavior: null,
526 type: null,
527 typeOf: commaOrSpaceSeparated,
528 to: null,
529 transform: null,
530 u1: null,
531 u2: null,
532 underlinePosition: number,
533 underlineThickness: number,
534 unicode: null,
535 unicodeBidi: null,
536 unicodeRange: null,
537 unitsPerEm: number,
538 values: null,
539 vAlphabetic: number,
540 vMathematical: number,
541 vectorEffect: null,
542 vHanging: number,
543 vIdeographic: number,
544 version: null,
545 vertAdvY: number,
546 vertOriginX: number,
547 vertOriginY: number,
548 viewBox: null,
549 viewTarget: null,
550 visibility: null,
551 width: null,
552 widths: null,
553 wordSpacing: null,
554 writingMode: null,
555 x: null,
556 x1: null,
557 x2: null,
558 xChannelSelector: null,
559 xHeight: number,
560 y: null,
561 y1: null,
562 y2: null,
563 yChannelSelector: null,
564 z: null,
565 zoomAndPan: null
566 }
567})
Note: See TracBrowser for help on using the repository browser.