@evercam/ui 1.0.0-preview-ImplementingEPoly-d526524b6 → 1.0.0-preview-ImplementingEPoly-f4f5761c7
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/attributes.json +5 -0
- package/dist/components/EPolygonOverlay.vue.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +6 -2
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/styles.css +1 -1
- package/dist/tags.json +1 -0
- package/dist/web-types.json +10 -1
- package/package.json +1 -1
package/dist/attributes.json
CHANGED
|
@@ -1559,6 +1559,11 @@
|
|
|
1559
1559
|
"type": "array",
|
|
1560
1560
|
"description": ""
|
|
1561
1561
|
},
|
|
1562
|
+
"EPolygonOverlay/animate": {
|
|
1563
|
+
"type": "boolean",
|
|
1564
|
+
"description": "",
|
|
1565
|
+
"default": true
|
|
1566
|
+
},
|
|
1562
1567
|
"EPolygonOverlay/is-read-only": {
|
|
1563
1568
|
"type": "boolean",
|
|
1564
1569
|
"description": "",
|
package/dist/index.d.ts
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -18678,7 +18678,7 @@ var h8 = function() {
|
|
|
18678
18678
|
}, style: {
|
|
18679
18679
|
...e.contentStyle,
|
|
18680
18680
|
...e.foregroundStyle
|
|
18681
|
-
}, attrs: { id: "img-foreground", "data-test-id": "zoomable-img-foreground" } }, [r("div", { staticClass: "zoomable-img__slot__top-left e-absolute e-top-0 e-left-0" }, [e._t("top-left")], 2), r("div", { staticClass: "zoomable-img__slot__top-right e-absolute e-top-0 e-right-0" }, [e._t("top-right")], 2), e.imageLoaded ? e._e() : e._t("placeholder", null, { dataTestId: "zoomable-img-placeholder" }), e.showContent && e.slotTransition ? r("EFadeTransition", [e.showContent ? e._t("default", null, { dataTestId: "zoomable-img-content" }) : e._e()], 2) : e.showContent ? e._t("default", null, { dataTestId: "zoomable-img-content" }) : e._e(), r("EFadeTransition", [e.showContent && e.slider && e.allowZoom ? r("div", { staticClass: "zoomable-img__slider-container", attrs: { "data-test-id": "zoomable-img-zoom-slider" } }, [e._t("extraWidgets"), r("EZoomSlider", { attrs: { vertical: "" }, on: { mouseup: e.onSliderMouseUp, mousedown: e.onSliderMouseDown, "zoom-in": function(s) {
|
|
18681
|
+
}, attrs: { id: "img-foreground", "data-test-id": "zoomable-img-foreground" } }, [r("div", { staticClass: "zoomable-img__slot__top-left e-absolute e-top-0 e-left-0" }, [e._t("top-left")], 2), r("div", { staticClass: "zoomable-img__slot__top-right e-absolute e-top-0 e-right-0 e-z-[201]" }, [e._t("top-right")], 2), e.imageLoaded ? e._e() : e._t("placeholder", null, { dataTestId: "zoomable-img-placeholder" }), e.showContent && e.slotTransition ? r("EFadeTransition", [e.showContent ? e._t("default", null, { dataTestId: "zoomable-img-content" }) : e._e()], 2) : e.showContent ? e._t("default", null, { dataTestId: "zoomable-img-content" }) : e._e(), r("EFadeTransition", [e.showContent && e.slider && e.allowZoom ? r("div", { staticClass: "zoomable-img__slider-container", attrs: { "data-test-id": "zoomable-img-zoom-slider" } }, [e._t("extraWidgets"), r("EZoomSlider", { attrs: { vertical: "" }, on: { mouseup: e.onSliderMouseUp, mousedown: e.onSliderMouseDown, "zoom-in": function(s) {
|
|
18682
18682
|
return e.zoom(-1);
|
|
18683
18683
|
}, "zoom-out": function(s) {
|
|
18684
18684
|
return e.zoom(1);
|
|
@@ -22046,6 +22046,10 @@ const kd = Td.exports, $d = F.extend({
|
|
|
22046
22046
|
type: Array,
|
|
22047
22047
|
default: () => []
|
|
22048
22048
|
},
|
|
22049
|
+
animate: {
|
|
22050
|
+
type: Boolean,
|
|
22051
|
+
default: !0
|
|
22052
|
+
},
|
|
22049
22053
|
isReadOnly: {
|
|
22050
22054
|
type: Boolean,
|
|
22051
22055
|
default: !1
|
|
@@ -22300,7 +22304,7 @@ var Md = function() {
|
|
|
22300
22304
|
}, click: function(a) {
|
|
22301
22305
|
return a.stopPropagation(), e.$emit("polygon-select", i);
|
|
22302
22306
|
} } });
|
|
22303
|
-
}), r("text", [e._v("test")])], 2) : r("svg", { staticClass: "polygon-overlay" }, [e.useMask && e.points.length > 2 ? [r("defs", [r("mask", { attrs: { id: "polygon-mask" } }, [r("rect", { attrs: { width: "100%", height: "100%", fill: "white" } }), r("polygon", { attrs: { points: e.polygonPoints, fill: "black" } })]), r("mask", { attrs: { id: "stroke-mask" } }, [r("rect", { attrs: { width: "100%", height: "100%", fill: "white" } }), r("polygon", { attrs: { points: e.polygonPoints, fill: "black" } })])]), r("rect", { attrs: { width: "100%", height: "100%", fill: "rgba(0,0,0,0.
|
|
22307
|
+
}), r("text", [e._v("test")])], 2) : r("svg", { staticClass: "polygon-overlay" }, [e.useMask && e.points.length > 2 ? [r("defs", [r("mask", { attrs: { id: "polygon-mask" } }, [r("rect", { attrs: { width: "100%", height: "100%", fill: "white" } }), r("polygon", { attrs: { points: e.polygonPoints, fill: "black" } })]), r("mask", { attrs: { id: "stroke-mask" } }, [r("rect", { attrs: { width: "100%", height: "100%", fill: "white" } }), r("polygon", { attrs: { points: e.polygonPoints, fill: "black" } })])]), r("rect", { attrs: { width: "100%", height: "100%", fill: "rgba(0,0,0,0.7)", mask: "url(#polygon-mask)" } }), r("polygon", { staticStyle: { filter: "blur(4px)" }, attrs: { points: e.polygonPoints, fill: "none", stroke: "#029eff", "stroke-width": "0.8", mask: "url(#stroke-mask)" } }, [e.animate ? r("animate", { attrs: { attributeName: "opacity", values: "0.67;0.8;0.67", dur: "1.5s", repeatCount: "indefinite" } }) : e._e(), e.animate ? r("animate", { attrs: { attributeName: "stroke-width", values: "1;6;1", dur: "1.5s", repeatCount: "indefinite" } }) : e._e()])] : e._e(), e.points.length > 2 ? r("polygon", { staticStyle: { animation: "border-dance 1s infinite linear" }, attrs: { points: e.polygonPoints, fill: e.useMask ? "transparent" : e.fillColor, stroke: e.lineColor, "stroke-width": e.scaledStrokeWidth, "stroke-dasharray": e.scaledStrokeDasharray } }) : e._e(), e.points.length === 2 ? r("line", { attrs: { x1: e.points[0].x, y1: e.points[0].y, x2: e.points[1].x, y2: e.points[1].y, stroke: e.lineColor, "stroke-width": e.scaledStrokeWidth, "stroke-dasharray": e.strokeDasharray } }) : e._e(), e.isReadOnly ? e._e() : e._l(e.points, function(s, i) {
|
|
22304
22308
|
return r("circle", { key: i, staticClass: "polygon-point", attrs: { cx: s.x, cy: s.y, r: e.scaledNodeSize, fill: e.lineColor, stroke: "white", "stroke-width": e.scaledStrokeWidth }, on: { click: function(a) {
|
|
22305
22309
|
return a.shiftKey ? e.removePoint(i) : null;
|
|
22306
22310
|
}, mousedown: function(a) {
|