@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.
@@ -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": "",
@@ -52,6 +52,7 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
52
52
  normalizedPoints: Point[];
53
53
  }, {
54
54
  polygons: Polygon[];
55
+ animate: boolean;
55
56
  isReadOnly: boolean;
56
57
  useMask: boolean;
57
58
  straightLine: boolean;
package/dist/index.d.ts CHANGED
@@ -1361,6 +1361,7 @@ export declare const components: {
1361
1361
  normalizedPoints: import('./types').Point[];
1362
1362
  }, {
1363
1363
  polygons: import('./types').Polygon[];
1364
+ animate: boolean;
1364
1365
  isReadOnly: boolean;
1365
1366
  useMask: boolean;
1366
1367
  straightLine: boolean;
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.5)", mask: "url(#polygon-mask)" } }), r("polygon", { staticStyle: { filter: "blur(4px)" }, attrs: { points: e.polygonPoints, fill: "none", stroke: "#029eff", "stroke-width": "1", mask: "url(#stroke-mask)" } }, [r("animate", { attrs: { attributeName: "opacity", values: "0.67;0.8;0.67", dur: "1.5s", repeatCount: "indefinite" } }), r("animate", { attrs: { attributeName: "stroke-width", values: "1;6;1", dur: "1.5s", repeatCount: "indefinite" } })])] : 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._l(e.points && !e.isReadOnly, function(s, i) {
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) {