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