xote 6.2.0 → 6.4.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/xote.cjs +8 -8
- package/dist/xote.mjs +671 -669
- package/dist/xote.umd.js +8 -8
- package/package.json +1 -1
- package/src/View.res +18 -14
- package/src/View.res.mjs +3 -0
- package/src/XoteJSX.res +235 -0
- package/src/XoteJSX.res.mjs +73 -0
package/src/XoteJSX.res.mjs
CHANGED
|
@@ -104,6 +104,69 @@ function propsToAttrs(props) {
|
|
|
104
104
|
addAttr(attrs, props["aria-hidden"], "aria-hidden", RuntimeJsxProp$Xote.toBoolAttr);
|
|
105
105
|
addAttr(attrs, props["aria-expanded"], "aria-expanded", RuntimeJsxProp$Xote.toBoolAttr);
|
|
106
106
|
addAttr(attrs, props["aria-selected"], "aria-selected", RuntimeJsxProp$Xote.toBoolAttr);
|
|
107
|
+
addAttr(attrs, props.xmlns, "xmlns", RuntimeJsxProp$Xote.toStringAttr);
|
|
108
|
+
addAttr(attrs, props["xmlns:xlink"], "xmlns:xlink", RuntimeJsxProp$Xote.toStringAttr);
|
|
109
|
+
addAttr(attrs, props.version, "version", RuntimeJsxProp$Xote.toStringAttr);
|
|
110
|
+
addAttr(attrs, props.viewBox, "viewBox", RuntimeJsxProp$Xote.toStringAttr);
|
|
111
|
+
addAttr(attrs, props.preserveAspectRatio, "preserveAspectRatio", RuntimeJsxProp$Xote.toStringAttr);
|
|
112
|
+
addAttr(attrs, props.d, "d", RuntimeJsxProp$Xote.toStringAttr);
|
|
113
|
+
addAttr(attrs, props.pathLength, "pathLength", RuntimeJsxProp$Xote.toStringAttr);
|
|
114
|
+
addAttr(attrs, props.cx, "cx", RuntimeJsxProp$Xote.toStringAttr);
|
|
115
|
+
addAttr(attrs, props.cy, "cy", RuntimeJsxProp$Xote.toStringAttr);
|
|
116
|
+
addAttr(attrs, props.r, "r", RuntimeJsxProp$Xote.toStringAttr);
|
|
117
|
+
addAttr(attrs, props.rx, "rx", RuntimeJsxProp$Xote.toStringAttr);
|
|
118
|
+
addAttr(attrs, props.ry, "ry", RuntimeJsxProp$Xote.toStringAttr);
|
|
119
|
+
addAttr(attrs, props.x, "x", RuntimeJsxProp$Xote.toStringAttr);
|
|
120
|
+
addAttr(attrs, props.y, "y", RuntimeJsxProp$Xote.toStringAttr);
|
|
121
|
+
addAttr(attrs, props.x1, "x1", RuntimeJsxProp$Xote.toStringAttr);
|
|
122
|
+
addAttr(attrs, props.y1, "y1", RuntimeJsxProp$Xote.toStringAttr);
|
|
123
|
+
addAttr(attrs, props.x2, "x2", RuntimeJsxProp$Xote.toStringAttr);
|
|
124
|
+
addAttr(attrs, props.y2, "y2", RuntimeJsxProp$Xote.toStringAttr);
|
|
125
|
+
addAttr(attrs, props.fx, "fx", RuntimeJsxProp$Xote.toStringAttr);
|
|
126
|
+
addAttr(attrs, props.fy, "fy", RuntimeJsxProp$Xote.toStringAttr);
|
|
127
|
+
addAttr(attrs, props.dx, "dx", RuntimeJsxProp$Xote.toStringAttr);
|
|
128
|
+
addAttr(attrs, props.dy, "dy", RuntimeJsxProp$Xote.toStringAttr);
|
|
129
|
+
addAttr(attrs, props.points, "points", RuntimeJsxProp$Xote.toStringAttr);
|
|
130
|
+
addAttr(attrs, props.transform, "transform", RuntimeJsxProp$Xote.toStringAttr);
|
|
131
|
+
addAttr(attrs, props["transform-origin"], "transform-origin", RuntimeJsxProp$Xote.toStringAttr);
|
|
132
|
+
addAttr(attrs, props.fill, "fill", RuntimeJsxProp$Xote.toStringAttr);
|
|
133
|
+
addAttr(attrs, props["fill-opacity"], "fill-opacity", RuntimeJsxProp$Xote.toStringAttr);
|
|
134
|
+
addAttr(attrs, props["fill-rule"], "fill-rule", RuntimeJsxProp$Xote.toStringAttr);
|
|
135
|
+
addAttr(attrs, props.stroke, "stroke", RuntimeJsxProp$Xote.toStringAttr);
|
|
136
|
+
addAttr(attrs, props["stroke-width"], "stroke-width", RuntimeJsxProp$Xote.toStringAttr);
|
|
137
|
+
addAttr(attrs, props["stroke-linecap"], "stroke-linecap", RuntimeJsxProp$Xote.toStringAttr);
|
|
138
|
+
addAttr(attrs, props["stroke-linejoin"], "stroke-linejoin", RuntimeJsxProp$Xote.toStringAttr);
|
|
139
|
+
addAttr(attrs, props["stroke-dasharray"], "stroke-dasharray", RuntimeJsxProp$Xote.toStringAttr);
|
|
140
|
+
addAttr(attrs, props["stroke-dashoffset"], "stroke-dashoffset", RuntimeJsxProp$Xote.toStringAttr);
|
|
141
|
+
addAttr(attrs, props["stroke-opacity"], "stroke-opacity", RuntimeJsxProp$Xote.toStringAttr);
|
|
142
|
+
addAttr(attrs, props["stroke-miterlimit"], "stroke-miterlimit", RuntimeJsxProp$Xote.toStringAttr);
|
|
143
|
+
addAttr(attrs, props.opacity, "opacity", RuntimeJsxProp$Xote.toStringAttr);
|
|
144
|
+
addAttr(attrs, props.color, "color", RuntimeJsxProp$Xote.toStringAttr);
|
|
145
|
+
addAttr(attrs, props.visibility, "visibility", RuntimeJsxProp$Xote.toStringAttr);
|
|
146
|
+
addAttr(attrs, props["vector-effect"], "vector-effect", RuntimeJsxProp$Xote.toStringAttr);
|
|
147
|
+
addAttr(attrs, props["pointer-events"], "pointer-events", RuntimeJsxProp$Xote.toStringAttr);
|
|
148
|
+
addAttr(attrs, props["clip-path"], "clip-path", RuntimeJsxProp$Xote.toStringAttr);
|
|
149
|
+
addAttr(attrs, props["clip-rule"], "clip-rule", RuntimeJsxProp$Xote.toStringAttr);
|
|
150
|
+
addAttr(attrs, props.mask, "mask", RuntimeJsxProp$Xote.toStringAttr);
|
|
151
|
+
addAttr(attrs, props.filter, "filter", RuntimeJsxProp$Xote.toStringAttr);
|
|
152
|
+
addAttr(attrs, props["text-anchor"], "text-anchor", RuntimeJsxProp$Xote.toStringAttr);
|
|
153
|
+
addAttr(attrs, props["dominant-baseline"], "dominant-baseline", RuntimeJsxProp$Xote.toStringAttr);
|
|
154
|
+
addAttr(attrs, props["font-family"], "font-family", RuntimeJsxProp$Xote.toStringAttr);
|
|
155
|
+
addAttr(attrs, props["font-size"], "font-size", RuntimeJsxProp$Xote.toStringAttr);
|
|
156
|
+
addAttr(attrs, props["font-weight"], "font-weight", RuntimeJsxProp$Xote.toStringAttr);
|
|
157
|
+
addAttr(attrs, props["letter-spacing"], "letter-spacing", RuntimeJsxProp$Xote.toStringAttr);
|
|
158
|
+
addAttr(attrs, props["word-spacing"], "word-spacing", RuntimeJsxProp$Xote.toStringAttr);
|
|
159
|
+
addAttr(attrs, props["text-decoration"], "text-decoration", RuntimeJsxProp$Xote.toStringAttr);
|
|
160
|
+
addAttr(attrs, props.offset, "offset", RuntimeJsxProp$Xote.toStringAttr);
|
|
161
|
+
addAttr(attrs, props["stop-color"], "stop-color", RuntimeJsxProp$Xote.toStringAttr);
|
|
162
|
+
addAttr(attrs, props["stop-opacity"], "stop-opacity", RuntimeJsxProp$Xote.toStringAttr);
|
|
163
|
+
addAttr(attrs, props.gradientUnits, "gradientUnits", RuntimeJsxProp$Xote.toStringAttr);
|
|
164
|
+
addAttr(attrs, props.gradientTransform, "gradientTransform", RuntimeJsxProp$Xote.toStringAttr);
|
|
165
|
+
addAttr(attrs, props.spreadMethod, "spreadMethod", RuntimeJsxProp$Xote.toStringAttr);
|
|
166
|
+
addAttr(attrs, props["marker-start"], "marker-start", RuntimeJsxProp$Xote.toStringAttr);
|
|
167
|
+
addAttr(attrs, props["marker-mid"], "marker-mid", RuntimeJsxProp$Xote.toStringAttr);
|
|
168
|
+
addAttr(attrs, props["marker-end"], "marker-end", RuntimeJsxProp$Xote.toStringAttr);
|
|
169
|
+
addAttr(attrs, props["xlink:href"], "xlink:href", RuntimeJsxProp$Xote.toStringAttr);
|
|
107
170
|
let dataObj = props.data;
|
|
108
171
|
if (dataObj !== undefined) {
|
|
109
172
|
let entries = (Object.entries(dataObj));
|
|
@@ -140,6 +203,16 @@ function propsToEvents(props) {
|
|
|
140
203
|
addEvent(events, props.onMouseMove, "mousemove");
|
|
141
204
|
addEvent(events, props.onMouseUp, "mouseup");
|
|
142
205
|
addEvent(events, props.onContextMenu, "contextmenu");
|
|
206
|
+
addEvent(events, props.onPointerDown, "pointerdown");
|
|
207
|
+
addEvent(events, props.onPointerMove, "pointermove");
|
|
208
|
+
addEvent(events, props.onPointerUp, "pointerup");
|
|
209
|
+
addEvent(events, props.onPointerCancel, "pointercancel");
|
|
210
|
+
addEvent(events, props.onPointerEnter, "pointerenter");
|
|
211
|
+
addEvent(events, props.onPointerLeave, "pointerleave");
|
|
212
|
+
addEvent(events, props.onPointerOver, "pointerover");
|
|
213
|
+
addEvent(events, props.onPointerOut, "pointerout");
|
|
214
|
+
addEvent(events, props.onGotPointerCapture, "gotpointercapture");
|
|
215
|
+
addEvent(events, props.onLostPointerCapture, "lostpointercapture");
|
|
143
216
|
addEvent(events, props.onDrag, "drag");
|
|
144
217
|
addEvent(events, props.onDragStart, "dragstart");
|
|
145
218
|
addEvent(events, props.onDragEnd, "dragend");
|