@rubin-epo/epo-widget-lib 1.0.8 → 1.1.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/ColorTool.d.ts +2 -2
- package/dist/FilterTool.d.ts +2 -2
- package/dist/IsochronePlot.js +15 -16
- package/dist/SupernovaThreeVector.cjs +1 -1
- package/dist/SupernovaThreeVector.js +89 -84
- package/dist/ViewIndicator.cjs +1 -0
- package/dist/ViewIndicator.d.ts +3 -0
- package/dist/ViewIndicator.js +143 -0
- package/dist/atomic/Blinker/Controls/Controls.cjs +1 -1
- package/dist/atomic/Blinker/Controls/Controls.js +24 -25
- package/dist/charts/Bars/index.cjs +1 -1
- package/dist/charts/Bars/index.js +19 -21
- package/dist/charts/Base/index.cjs +1 -1
- package/dist/charts/Base/index.js +22 -23
- package/dist/charts/Base/styles.d.ts +1 -1
- package/dist/charts/ClippingContainer/index.cjs +1 -1
- package/dist/charts/ClippingContainer/index.js +9 -10
- package/dist/charts/ForeignObject/index.cjs +1 -1
- package/dist/charts/ForeignObject/index.js +8 -9
- package/dist/charts/Guidelines/index.cjs +1 -1
- package/dist/charts/Guidelines/index.js +11 -13
- package/dist/charts/PathFromPoints/index.js +1 -2
- package/dist/charts/Points/ErrorBar.cjs +1 -1
- package/dist/charts/Points/ErrorBar.js +9 -10
- package/dist/charts/Points/index.cjs +1 -1
- package/dist/charts/Points/index.js +30 -31
- package/dist/charts/Readout/index.cjs +1 -1
- package/dist/charts/Readout/index.js +24 -17
- package/dist/charts/ScatterPlot/index.cjs +1 -1
- package/dist/charts/ScatterPlot/index.js +79 -77
- package/dist/charts/Tooltip/index.cjs +1 -1
- package/dist/charts/Tooltip/index.js +14 -15
- package/dist/charts/Viewport/index.cjs +1 -1
- package/dist/charts/Viewport/index.js +13 -14
- package/dist/charts/XAxis/index.cjs +1 -1
- package/dist/charts/XAxis/index.js +22 -24
- package/dist/charts/YAxis/index.cjs +1 -1
- package/dist/charts/YAxis/index.js +17 -18
- package/dist/charts/canvas/Points/index.cjs +1 -1
- package/dist/charts/canvas/Points/index.js +27 -29
- package/dist/charts/defaults.cjs +1 -1
- package/dist/charts/defaults.js +13 -13
- package/dist/charts/styles.d.ts +6 -6
- package/dist/layout/Controls/index.d.ts +1 -1
- package/dist/lib/reimg.cjs +1 -1
- package/dist/lib/reimg.js +19 -19
- package/dist/lib/utils.cjs +1 -1
- package/dist/lib/utils.js +11 -15
- package/dist/widgets/CameraFilter/styles.d.ts +5 -5
- package/dist/widgets/ColorTool/Actions/Export/index.cjs +1 -1
- package/dist/widgets/ColorTool/Actions/Export/index.js +17 -18
- package/dist/widgets/ColorTool/Actions/index.cjs +1 -1
- package/dist/widgets/ColorTool/Actions/index.d.ts +1 -1
- package/dist/widgets/ColorTool/Actions/index.js +21 -22
- package/dist/widgets/ColorTool/FilterControls/FilterControls.cjs +1 -1
- package/dist/widgets/ColorTool/FilterControls/FilterControls.d.ts +1 -1
- package/dist/widgets/ColorTool/FilterControls/FilterControls.js +32 -33
- package/dist/widgets/ColorTool/FilterControls/styles.d.ts +1 -1
- package/dist/widgets/ColorTool/ImageComposite/ImageComposite.cjs +1 -1
- package/dist/widgets/ColorTool/ImageComposite/ImageComposite.d.ts +1 -1
- package/dist/widgets/ColorTool/ImageComposite/ImageComposite.js +22 -23
- package/dist/widgets/ColorTool/__mocks__/index.d.ts +15 -0
- package/dist/widgets/ColorTool/hooks/useFilteredImages.cjs +1 -1
- package/dist/widgets/ColorTool/hooks/useFilteredImages.d.ts +1 -1
- package/dist/widgets/ColorTool/hooks/useFilteredImages.js +9 -10
- package/dist/widgets/ColorTool/index.d.ts +46 -1
- package/dist/widgets/ColorTool/lib/server.d.ts +1 -1
- package/dist/widgets/ColorTool/lib/utils.d.ts +1 -1
- package/dist/widgets/FilterTool/index.d.ts +12 -1
- package/dist/widgets/FilterTool/styles.d.ts +6 -6
- package/dist/widgets/IsochronePlot/A11Y/CurveFit.cjs +1 -1
- package/dist/widgets/IsochronePlot/A11Y/CurveFit.js +22 -23
- package/dist/widgets/IsochronePlot/Controls/index.cjs +1 -1
- package/dist/widgets/IsochronePlot/Controls/index.js +22 -23
- package/dist/widgets/IsochronePlot/defaults.cjs +1 -1
- package/dist/widgets/IsochronePlot/defaults.js +2 -2
- package/dist/widgets/LightCurvePlot/Plot/index.cjs +1 -1
- package/dist/widgets/LightCurvePlot/Plot/index.js +28 -29
- package/dist/widgets/LightCurvePlot/PlotWithCurve/A11Y/LightCurveLabel/index.cjs +1 -1
- package/dist/widgets/LightCurvePlot/PlotWithCurve/A11Y/LightCurveLabel/index.js +20 -21
- package/dist/widgets/LightCurvePlot/PlotWithCurve/DM15Display/index.cjs +1 -1
- package/dist/widgets/LightCurvePlot/PlotWithCurve/DM15Display/index.js +11 -12
- package/dist/widgets/LightCurvePlot/PlotWithCurve/MagnitudeSlider/index.cjs +1 -1
- package/dist/widgets/LightCurvePlot/PlotWithCurve/MagnitudeSlider/index.js +20 -21
- package/dist/widgets/LightCurvePlot/PlotWithCurve/styles.js +2 -2
- package/dist/widgets/LightCurvePlot/defaults.cjs +1 -1
- package/dist/widgets/LightCurvePlot/defaults.js +2 -2
- package/dist/widgets/SourceSelector/SourceMap/index.cjs +1 -1
- package/dist/widgets/SourceSelector/SourceMap/index.js +12 -13
- package/dist/widgets/SourceSelector/SourceMap/styles.d.ts +2 -2
- package/dist/widgets/SourceSelector/SourceSelector.cjs +1 -1
- package/dist/widgets/SourceSelector/SourceSelector.js +39 -44
- package/dist/widgets/SupernovaThreeVector/Histogram/index.cjs +1 -1
- package/dist/widgets/SupernovaThreeVector/Histogram/index.js +36 -36
- package/dist/widgets/SupernovaThreeVector/Histogram/styles.d.ts +1 -1
- package/dist/widgets/SupernovaThreeVector/LiveLabel/index.cjs +1 -1
- package/dist/widgets/SupernovaThreeVector/LiveLabel/index.js +16 -17
- package/dist/widgets/SupernovaThreeVector/Skymap/index.cjs +1 -1
- package/dist/widgets/SupernovaThreeVector/Skymap/index.js +63 -58
- package/dist/widgets/SupernovaThreeVector/Skymap/styles.d.ts +7 -7
- package/dist/widgets/SupernovaThreeVector/styles.cjs +13 -19
- package/dist/widgets/SupernovaThreeVector/styles.js +21 -31
- package/dist/widgets/ViewIndicator/index.d.ts +13 -0
- package/dist/widgets/ViewIndicator/styles.cjs +52 -0
- package/dist/widgets/ViewIndicator/styles.d.ts +4402 -0
- package/dist/widgets/ViewIndicator/styles.js +67 -0
- package/package.json +65 -5
- package/dist/CameraFilter.cjs +0 -1
- package/dist/CameraFilter.d.ts +0 -3
- package/dist/CameraFilter.js +0 -102
- package/dist/Charts.cjs +0 -1
- package/dist/Charts.d.ts +0 -1
- package/dist/Charts.js +0 -24
- package/dist/widgets/CameraFilter/CondensedFilterRanges/CondensedFilterRanges.cjs +0 -1
- package/dist/widgets/CameraFilter/CondensedFilterRanges/CondensedFilterRanges.js +0 -62
- package/dist/widgets/CameraFilter/SpectrumDisplay/ColorLabels/ColorLabels.cjs +0 -1
- package/dist/widgets/CameraFilter/SpectrumDisplay/ColorLabels/ColorLabels.js +0 -100
- package/dist/widgets/CameraFilter/SpectrumDisplay/SpectrumDisplay.cjs +0 -1
- package/dist/widgets/CameraFilter/SpectrumDisplay/SpectrumDisplay.js +0 -98
- package/dist/widgets/CameraFilter/SpectrumDisplay/SpectrumLabels/SpectrumLabels.cjs +0 -1
- package/dist/widgets/CameraFilter/SpectrumDisplay/SpectrumLabels/SpectrumLabels.js +0 -59
- package/dist/widgets/CameraFilter/data.cjs +0 -1
- package/dist/widgets/CameraFilter/data.js +0 -84
- package/dist/widgets/CameraFilter/styles.cjs +0 -105
- package/dist/widgets/CameraFilter/styles.js +0 -128
- package/dist/widgets/ColorTool/ColorTool.d.ts +0 -46
- package/dist/widgets/FilterTool/FilterTool.d.ts +0 -12
package/dist/charts/defaults.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
const
|
|
1
|
+
const o = { top: 0, right: 0, bottom: 0, left: 0 }, r = 6, t = {
|
|
2
2
|
radius: r,
|
|
3
3
|
fill: "var(--point-fill, #12726D)",
|
|
4
4
|
stroke: "var(--point-stroke, #12726D)"
|
|
5
|
-
},
|
|
5
|
+
}, a = {
|
|
6
6
|
radius: r,
|
|
7
7
|
fill: "#12726D",
|
|
8
8
|
stroke: "#12726D"
|
|
9
|
-
},
|
|
9
|
+
}, s = r / 2, e = "var(--error-bar-stroke, var(--black, #000))", i = "var(--error-bar-stroke-width, 1)", n = "var(--error-bar-fill, none)", l = {
|
|
10
10
|
stroke: e,
|
|
11
11
|
strokeWidth: i,
|
|
12
12
|
fill: n
|
|
13
13
|
}, c = {
|
|
14
|
-
margins:
|
|
14
|
+
margins: o,
|
|
15
15
|
pointRadius: r,
|
|
16
|
-
point:
|
|
17
|
-
canvasPoint:
|
|
18
|
-
errorBarCapWidth:
|
|
16
|
+
point: t,
|
|
17
|
+
canvasPoint: a,
|
|
18
|
+
errorBarCapWidth: s,
|
|
19
19
|
errorBarStyles: l
|
|
20
|
-
}
|
|
20
|
+
};
|
|
21
21
|
export {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
a as canvasPoint,
|
|
23
|
+
c as default,
|
|
24
|
+
s as errorBarCapWidth,
|
|
25
25
|
l as errorBarStyles,
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
o as margins,
|
|
27
|
+
t as point,
|
|
28
28
|
r as pointRadius
|
|
29
29
|
};
|
package/dist/charts/styles.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export declare const BaseLine: import('styled-components').IStyledComponent<"web
|
|
|
21
21
|
accentHeight?: string | number | undefined;
|
|
22
22
|
accumulate?: "none" | "sum" | undefined;
|
|
23
23
|
additive?: "replace" | "sum" | undefined;
|
|
24
|
-
alignmentBaseline?: "inherit" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "auto" | "
|
|
24
|
+
alignmentBaseline?: "inherit" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "auto" | "baseline" | "before-edge" | "text-before-edge" | "middle" | "central" | "after-edge" | "text-after-edge" | undefined;
|
|
25
25
|
allowReorder?: "yes" | "no" | undefined;
|
|
26
26
|
alphabetic?: string | number | undefined;
|
|
27
27
|
amplitude?: string | number | undefined;
|
|
@@ -503,7 +503,7 @@ export declare const Guide: import('styled-components').IStyledComponent<"web",
|
|
|
503
503
|
accentHeight?: string | number | undefined;
|
|
504
504
|
accumulate?: "none" | "sum" | undefined;
|
|
505
505
|
additive?: "replace" | "sum" | undefined;
|
|
506
|
-
alignmentBaseline?: "inherit" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "auto" | "
|
|
506
|
+
alignmentBaseline?: "inherit" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "auto" | "baseline" | "before-edge" | "text-before-edge" | "middle" | "central" | "after-edge" | "text-after-edge" | undefined;
|
|
507
507
|
allowReorder?: "yes" | "no" | undefined;
|
|
508
508
|
alphabetic?: string | number | undefined;
|
|
509
509
|
amplitude?: string | number | undefined;
|
|
@@ -985,7 +985,7 @@ export declare const Tick: import('styled-components').IStyledComponent<"web", {
|
|
|
985
985
|
accentHeight?: string | number | undefined;
|
|
986
986
|
accumulate?: "none" | "sum" | undefined;
|
|
987
987
|
additive?: "replace" | "sum" | undefined;
|
|
988
|
-
alignmentBaseline?: "inherit" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "auto" | "
|
|
988
|
+
alignmentBaseline?: "inherit" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "auto" | "baseline" | "before-edge" | "text-before-edge" | "middle" | "central" | "after-edge" | "text-after-edge" | undefined;
|
|
989
989
|
allowReorder?: "yes" | "no" | undefined;
|
|
990
990
|
alphabetic?: string | number | undefined;
|
|
991
991
|
amplitude?: string | number | undefined;
|
|
@@ -1467,7 +1467,7 @@ export declare const Bar: import('styled-components').IStyledComponent<"web", {
|
|
|
1467
1467
|
accentHeight?: string | number | undefined;
|
|
1468
1468
|
accumulate?: "none" | "sum" | undefined;
|
|
1469
1469
|
additive?: "replace" | "sum" | undefined;
|
|
1470
|
-
alignmentBaseline?: "inherit" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "auto" | "
|
|
1470
|
+
alignmentBaseline?: "inherit" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "auto" | "baseline" | "before-edge" | "text-before-edge" | "middle" | "central" | "after-edge" | "text-after-edge" | undefined;
|
|
1471
1471
|
allowReorder?: "yes" | "no" | undefined;
|
|
1472
1472
|
alphabetic?: string | number | undefined;
|
|
1473
1473
|
amplitude?: string | number | undefined;
|
|
@@ -1949,7 +1949,7 @@ export declare const XLabel: import('styled-components').IStyledComponent<"web",
|
|
|
1949
1949
|
accentHeight?: string | number | undefined;
|
|
1950
1950
|
accumulate?: "none" | "sum" | undefined;
|
|
1951
1951
|
additive?: "replace" | "sum" | undefined;
|
|
1952
|
-
alignmentBaseline?: "inherit" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "auto" | "
|
|
1952
|
+
alignmentBaseline?: "inherit" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "auto" | "baseline" | "before-edge" | "text-before-edge" | "middle" | "central" | "after-edge" | "text-after-edge" | undefined;
|
|
1953
1953
|
allowReorder?: "yes" | "no" | undefined;
|
|
1954
1954
|
alphabetic?: string | number | undefined;
|
|
1955
1955
|
amplitude?: string | number | undefined;
|
|
@@ -2431,7 +2431,7 @@ export declare const YLabel: import('styled-components').IStyledComponent<"web",
|
|
|
2431
2431
|
accentHeight?: string | number | undefined;
|
|
2432
2432
|
accumulate?: "none" | "sum" | undefined;
|
|
2433
2433
|
additive?: "replace" | "sum" | undefined;
|
|
2434
|
-
alignmentBaseline?: "inherit" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "auto" | "
|
|
2434
|
+
alignmentBaseline?: "inherit" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "auto" | "baseline" | "before-edge" | "text-before-edge" | "middle" | "central" | "after-edge" | "text-after-edge" | undefined;
|
|
2435
2435
|
allowReorder?: "yes" | "no" | undefined;
|
|
2436
2436
|
alphabetic?: string | number | undefined;
|
|
2437
2437
|
amplitude?: string | number | undefined;
|
package/dist/lib/reimg.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function s(
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function s(e,r){const i=function(){return e.indexOf("data:image/png")===0},a=function(t,n){const o=document.createElement("a");o.href=t,o.download=n,document.body.appendChild(o),o.click()};return{toBase64:function(){return e},toImg:function(){const t=document.createElement("img");return t.src=e,t},toCanvas:function(t){const n=document.createElement("canvas");n.width=0,n.height=0;const o=n.getContext("2d"),c=this.toImg();c.onload=function(){o==null||o.drawImage(c,0,0),t(n)}},toPng:function(){if(i()){const t=document.createElement("img");return t.src=e,t}this.toCanvas(function(t){const n=document.createElement("img");return n.src=t.toDataURL(),n})},toJpeg:function(t){t=t||1,(n=>{this.toCanvas(function(o){const c=document.createElement("img");return c.src=o.toDataURL("image/jpeg",n),c})})(t)},downloadPng:function(t){if(t=t||"image.png",i()){a(e,t);return}this.toCanvas(function(n){a(n.toDataURL(),t)})}}}function u(e){const r=e.toDataURL();return s(r)}exports.fromCanvas=u;
|
package/dist/lib/reimg.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
function s(
|
|
2
|
-
const
|
|
3
|
-
return
|
|
1
|
+
function s(e, r) {
|
|
2
|
+
const i = function() {
|
|
3
|
+
return e.indexOf("data:image/png") === 0;
|
|
4
4
|
}, a = function(t, n) {
|
|
5
5
|
const o = document.createElement("a");
|
|
6
6
|
o.href = t, o.download = n, document.body.appendChild(o), o.click();
|
|
7
7
|
};
|
|
8
8
|
return {
|
|
9
9
|
toBase64: function() {
|
|
10
|
-
return
|
|
10
|
+
return e;
|
|
11
11
|
},
|
|
12
12
|
toImg: function() {
|
|
13
13
|
const t = document.createElement("img");
|
|
14
|
-
return t.src =
|
|
14
|
+
return t.src = e, t;
|
|
15
15
|
},
|
|
16
16
|
toCanvas: function(t) {
|
|
17
|
-
const n = document.createElement("canvas")
|
|
18
|
-
n.width =
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
const n = document.createElement("canvas");
|
|
18
|
+
n.width = 0, n.height = 0;
|
|
19
|
+
const o = n.getContext("2d"), c = this.toImg();
|
|
20
|
+
c.onload = function() {
|
|
21
|
+
o == null || o.drawImage(c, 0, 0), t(n);
|
|
22
22
|
};
|
|
23
23
|
},
|
|
24
24
|
toPng: function() {
|
|
25
|
-
if (
|
|
25
|
+
if (i()) {
|
|
26
26
|
const t = document.createElement("img");
|
|
27
|
-
return t.src =
|
|
27
|
+
return t.src = e, t;
|
|
28
28
|
}
|
|
29
29
|
this.toCanvas(function(t) {
|
|
30
30
|
const n = document.createElement("img");
|
|
@@ -34,14 +34,14 @@ function s(c, r) {
|
|
|
34
34
|
toJpeg: function(t) {
|
|
35
35
|
t = t || 1, ((n) => {
|
|
36
36
|
this.toCanvas(function(o) {
|
|
37
|
-
const
|
|
38
|
-
return
|
|
37
|
+
const c = document.createElement("img");
|
|
38
|
+
return c.src = o.toDataURL("image/jpeg", n), c;
|
|
39
39
|
});
|
|
40
40
|
})(t);
|
|
41
41
|
},
|
|
42
42
|
downloadPng: function(t) {
|
|
43
|
-
if (t = t || "image.png",
|
|
44
|
-
a(
|
|
43
|
+
if (t = t || "image.png", i()) {
|
|
44
|
+
a(e, t);
|
|
45
45
|
return;
|
|
46
46
|
}
|
|
47
47
|
this.toCanvas(function(n) {
|
|
@@ -50,10 +50,10 @@ function s(c, r) {
|
|
|
50
50
|
}
|
|
51
51
|
};
|
|
52
52
|
}
|
|
53
|
-
function
|
|
54
|
-
const r =
|
|
53
|
+
function u(e) {
|
|
54
|
+
const r = e.toDataURL();
|
|
55
55
|
return s(r);
|
|
56
56
|
}
|
|
57
57
|
export {
|
|
58
|
-
|
|
58
|
+
u as fromCanvas
|
|
59
59
|
};
|
package/dist/lib/utils.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("lodash/mergeWith"),g=require("lodash/isNil"),o=t=>t&&t.__esModule?t:{default:t},m=o(d),c=o(g),h=(t,e)=>{switch(!0){case t>e:return 0;case t<0:return e;default:return t}},M=(t,e,r)=>t>=e&&t<=r,p=
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("lodash/mergeWith"),g=require("lodash/isNil"),o=t=>t&&t.__esModule?t:{default:t},m=o(d),c=o(g),h=(t,e)=>{switch(!0){case t>e:return 0;case t<0:return e;default:return t}},M=(t,e,r)=>t>=e&&t<=r,p=t=>t[Math.round((t.length-1)/2)],A=(t=[0,1],e=[0,1],r)=>{const n={clamp:!1,fractionDigits:2},{clamp:i,fractionDigits:s}={...n,...r};return l=>{const u=t[1]-t[0];if(u===0)return(e[0]+e[1])/2;let a=(l-t[0])/u;return i&&(a=Math.min(Math.max(a,0),1)),Number((a*(e[1]-e[0])+e[0]).toFixed(s))}},S=()=>{const t=navigator.userAgent.indexOf("Chrome")>-1;return navigator.userAgent.indexOf("Safari")>-1&&!t},f=(t,e)=>c.default(e)&&t?c.default(t)?e:t:e,_=(t,e)=>m.default({},e,t,f),b=(t,e=[0,0])=>t.reduce((r,{x:n,y:i},s)=>r+=`${s===0?"M":" L"}${n+e[0]},${i+e[1]}`,"");exports.between=M;exports.buildPath=b;exports.defaultsMerger=f;exports.getClampedArrayIndex=h;exports.getLinearScale=A;exports.isSafari=S;exports.mergeWithDefaults=_;exports.middle=p;
|
package/dist/lib/utils.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
const
|
|
1
|
+
import u from "lodash/mergeWith";
|
|
2
|
+
import a from "lodash/isNil";
|
|
3
|
+
const d = (t, e) => {
|
|
4
4
|
switch (!0) {
|
|
5
5
|
case t > e:
|
|
6
6
|
return 0;
|
|
@@ -9,10 +9,7 @@ const l = (t, e) => {
|
|
|
9
9
|
default:
|
|
10
10
|
return t;
|
|
11
11
|
}
|
|
12
|
-
},
|
|
13
|
-
const r = t[0] < e[0] ? t : e, n = r === t ? e : t;
|
|
14
|
-
return r[1] < n[0] ? null : [n[0], r[1] < n[1] ? r[1] : n[1]];
|
|
15
|
-
}, A = (t) => t[Math.round((t.length - 1) / 2)], M = (t = [0, 1], e = [0, 1], r) => {
|
|
12
|
+
}, l = (t, e, r) => t >= e && t <= r, p = (t) => t[Math.round((t.length - 1) / 2)], A = (t = [0, 1], e = [0, 1], r) => {
|
|
16
13
|
const n = { clamp: !1, fractionDigits: 2 }, { clamp: i, fractionDigits: s } = { ...n, ...r };
|
|
17
14
|
return (f) => {
|
|
18
15
|
const c = t[1] - t[0];
|
|
@@ -23,18 +20,17 @@ const l = (t, e) => {
|
|
|
23
20
|
(o * (e[1] - e[0]) + e[0]).toFixed(s)
|
|
24
21
|
);
|
|
25
22
|
};
|
|
26
|
-
},
|
|
23
|
+
}, M = () => {
|
|
27
24
|
const t = navigator.userAgent.indexOf("Chrome") > -1;
|
|
28
25
|
return navigator.userAgent.indexOf("Safari") > -1 && !t;
|
|
29
|
-
}, m = (t, e) =>
|
|
26
|
+
}, m = (t, e) => a(e) && t ? a(t) ? e : t : e, D = (t, e) => u({}, e, t, m), I = (t, e = [0, 0]) => t.reduce((r, { x: n, y: i }, s) => r += `${s === 0 ? "M" : " L"}${n + e[0]},${i + e[1]}`, "");
|
|
30
27
|
export {
|
|
31
|
-
|
|
28
|
+
l as between,
|
|
32
29
|
I as buildPath,
|
|
33
30
|
m as defaultsMerger,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
x as isSafari,
|
|
31
|
+
d as getClampedArrayIndex,
|
|
32
|
+
A as getLinearScale,
|
|
33
|
+
M as isSafari,
|
|
38
34
|
D as mergeWithDefaults,
|
|
39
|
-
|
|
35
|
+
p as middle
|
|
40
36
|
};
|
|
@@ -1385,7 +1385,7 @@ export declare const FilterRange: import('styled-components').IStyledComponent<"
|
|
|
1385
1385
|
abbr?: string | undefined;
|
|
1386
1386
|
height?: string | number | undefined;
|
|
1387
1387
|
width?: string | number | undefined;
|
|
1388
|
-
valign?: "
|
|
1388
|
+
valign?: "baseline" | "middle" | "top" | "bottom" | undefined;
|
|
1389
1389
|
defaultChecked?: boolean | undefined;
|
|
1390
1390
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
1391
1391
|
suppressContentEditableWarning?: boolean | undefined;
|
|
@@ -2772,7 +2772,7 @@ export declare const SpectrumLabel: import('styled-components').IStyledComponent
|
|
|
2772
2772
|
accentHeight?: string | number | undefined;
|
|
2773
2773
|
accumulate?: "none" | "sum" | undefined;
|
|
2774
2774
|
additive?: "replace" | "sum" | undefined;
|
|
2775
|
-
alignmentBaseline?: "inherit" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "auto" | "
|
|
2775
|
+
alignmentBaseline?: "inherit" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "auto" | "baseline" | "before-edge" | "text-before-edge" | "middle" | "central" | "after-edge" | "text-after-edge" | undefined;
|
|
2776
2776
|
allowReorder?: "yes" | "no" | undefined;
|
|
2777
2777
|
alphabetic?: string | number | undefined;
|
|
2778
2778
|
amplitude?: string | number | undefined;
|
|
@@ -3254,7 +3254,7 @@ export declare const ColorName: import('styled-components').IStyledComponent<"we
|
|
|
3254
3254
|
accentHeight?: string | number | undefined;
|
|
3255
3255
|
accumulate?: "none" | "sum" | undefined;
|
|
3256
3256
|
additive?: "replace" | "sum" | undefined;
|
|
3257
|
-
alignmentBaseline?: "inherit" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "auto" | "
|
|
3257
|
+
alignmentBaseline?: "inherit" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "auto" | "baseline" | "before-edge" | "text-before-edge" | "middle" | "central" | "after-edge" | "text-after-edge" | undefined;
|
|
3258
3258
|
allowReorder?: "yes" | "no" | undefined;
|
|
3259
3259
|
alphabetic?: string | number | undefined;
|
|
3260
3260
|
amplitude?: string | number | undefined;
|
|
@@ -3736,7 +3736,7 @@ export declare const ColorSpectrum: import('styled-components').IStyledComponent
|
|
|
3736
3736
|
accentHeight?: string | number | undefined;
|
|
3737
3737
|
accumulate?: "none" | "sum" | undefined;
|
|
3738
3738
|
additive?: "replace" | "sum" | undefined;
|
|
3739
|
-
alignmentBaseline?: "inherit" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "auto" | "
|
|
3739
|
+
alignmentBaseline?: "inherit" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "auto" | "baseline" | "before-edge" | "text-before-edge" | "middle" | "central" | "after-edge" | "text-after-edge" | undefined;
|
|
3740
3740
|
allowReorder?: "yes" | "no" | undefined;
|
|
3741
3741
|
alphabetic?: string | number | undefined;
|
|
3742
3742
|
amplitude?: string | number | undefined;
|
|
@@ -4218,7 +4218,7 @@ export declare const ColorSpectrumUnit: import('styled-components').IStyledCompo
|
|
|
4218
4218
|
accentHeight?: string | number | undefined;
|
|
4219
4219
|
accumulate?: "none" | "sum" | undefined;
|
|
4220
4220
|
additive?: "replace" | "sum" | undefined;
|
|
4221
|
-
alignmentBaseline?: "inherit" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "auto" | "
|
|
4221
|
+
alignmentBaseline?: "inherit" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "auto" | "baseline" | "before-edge" | "text-before-edge" | "middle" | "central" | "after-edge" | "text-after-edge" | undefined;
|
|
4222
4222
|
allowReorder?: "yes" | "no" | undefined;
|
|
4223
4223
|
alphabetic?: string | number | undefined;
|
|
4224
4224
|
amplitude?: string | number | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("react/jsx-runtime"),s=require("react"),i=require("@rubin-epo/epo-react-lib/Button"),a=require("../../../../lib/reimg.cjs"),c=e=>e&&e.__esModule?e:{default:e},d=c(i),t=({canvas:e,filename:o,isDisabled:r,children:l})=>{const u=s.useCallback(()=>{e&&a.fromCanvas(e).downloadPng(o)},[e]);return n.jsx(d.default,{disabled:r,style:{"--button-text-align":"left"},icon:"ArrowUpFromBracket",onClick:u,isBlock:!0,children:l})};t.displayName="Widgets.ColorTool.Reset";
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("react/jsx-runtime"),s=require("react"),i=require("@rubin-epo/epo-react-lib/Button"),a=require("../../../../lib/reimg.cjs"),c=e=>e&&e.__esModule?e:{default:e},d=c(i),t=({canvas:e,filename:o,isDisabled:r,children:l})=>{const u=s.useCallback(()=>{e&&a.fromCanvas(e).downloadPng(o)},[e]);return n.jsx(d.default,{disabled:r,style:{"--button-text-align":"left"},icon:"ArrowUpFromBracket",onClick:u,isBlock:!0,children:l})};t.displayName="Widgets.ColorTool.Reset";exports.default=t;
|
|
@@ -1,31 +1,30 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { useCallback as
|
|
4
|
-
import
|
|
5
|
-
import { fromCanvas as
|
|
6
|
-
const
|
|
2
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
3
|
+
import { useCallback as m } from "react";
|
|
4
|
+
import n from "@rubin-epo/epo-react-lib/Button";
|
|
5
|
+
import { fromCanvas as s } from "../../../../lib/reimg.js";
|
|
6
|
+
const a = ({
|
|
7
7
|
canvas: o,
|
|
8
|
-
filename:
|
|
9
|
-
isDisabled:
|
|
10
|
-
children:
|
|
8
|
+
filename: t,
|
|
9
|
+
isDisabled: r,
|
|
10
|
+
children: e
|
|
11
11
|
}) => {
|
|
12
|
-
const
|
|
13
|
-
o &&
|
|
12
|
+
const l = m(() => {
|
|
13
|
+
o && s(o).downloadPng(t);
|
|
14
14
|
}, [o]);
|
|
15
|
-
return /* @__PURE__ */
|
|
16
|
-
|
|
15
|
+
return /* @__PURE__ */ i(
|
|
16
|
+
n,
|
|
17
17
|
{
|
|
18
|
-
disabled:
|
|
18
|
+
disabled: r,
|
|
19
19
|
style: { "--button-text-align": "left" },
|
|
20
20
|
icon: "ArrowUpFromBracket",
|
|
21
|
-
onClick:
|
|
21
|
+
onClick: l,
|
|
22
22
|
isBlock: !0,
|
|
23
|
-
children:
|
|
23
|
+
children: e
|
|
24
24
|
}
|
|
25
25
|
);
|
|
26
26
|
};
|
|
27
|
-
|
|
28
|
-
const u = t;
|
|
27
|
+
a.displayName = "Widgets.ColorTool.Reset";
|
|
29
28
|
export {
|
|
30
|
-
|
|
29
|
+
a as default
|
|
31
30
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("react/jsx-runtime"),f=require("react-i18next"),x=require("../../../atomic/Button/patterns/Reset.cjs"),g=require("./Export/index.cjs"),a=require("../lib/utils.cjs"),b=i=>i.map(t=>{const{defaultValue:e,min:s,max:o}=t,r=e||1;return{...t,active:!1,color:"",brightness:a.getBrightnessValue(s,o,r),value:r}}),c=({actions:i,isDisabled:t,selectedData:e,selectionCallback:s,canvas:o})=>{const{t:r}=f.useTranslation(),{name:d,filters:m}=e,u=t||!a.areActionsActive(e);return n.jsx(n.Fragment,{children:i.map(l=>{switch(l){case"reset":return n.jsx(x.default,{isDisabled:u,onResetCallback:()=>s&&s({...e,filters:b(m)})},l);case"export":return n.jsx(g.default,{isDisabled:u,canvas:o,filename:d,children:r("colorTool.actions.export")},l);case"save":return null;default:return null}})})};c.displayName="Widgets.ColorTool.Actions";
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("react/jsx-runtime"),f=require("react-i18next"),x=require("../../../atomic/Button/patterns/Reset.cjs"),g=require("./Export/index.cjs"),a=require("../lib/utils.cjs"),b=i=>i.map(t=>{const{defaultValue:e,min:s,max:o}=t,r=e||1;return{...t,active:!1,color:"",brightness:a.getBrightnessValue(s,o,r),value:r}}),c=({actions:i,isDisabled:t,selectedData:e,selectionCallback:s,canvas:o})=>{const{t:r}=f.useTranslation(),{name:d,filters:m}=e,u=t||!a.areActionsActive(e);return n.jsx(n.Fragment,{children:i.map(l=>{switch(l){case"reset":return n.jsx(x.default,{isDisabled:u,onResetCallback:()=>s&&s({...e,filters:b(m)})},l);case"export":return n.jsx(g.default,{isDisabled:u,canvas:o,filename:d,children:r("colorTool.actions.export")},l);case"save":return null;default:return null}})})};c.displayName="Widgets.ColorTool.Actions";exports.default=c;
|
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as l, Fragment as
|
|
3
|
-
import { useTranslation as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { areActionsActive as
|
|
7
|
-
const
|
|
8
|
-
const { defaultValue:
|
|
2
|
+
import { jsx as l, Fragment as u } from "react/jsx-runtime";
|
|
3
|
+
import { useTranslation as p } from "react-i18next";
|
|
4
|
+
import f from "../../../atomic/Button/patterns/Reset.js";
|
|
5
|
+
import d from "./Export/index.js";
|
|
6
|
+
import { areActionsActive as x, getBrightnessValue as g } from "../lib/utils.js";
|
|
7
|
+
const h = (o) => o.map((t) => {
|
|
8
|
+
const { defaultValue: e, min: r, max: n } = t, s = e || 1;
|
|
9
9
|
return {
|
|
10
|
-
...
|
|
10
|
+
...t,
|
|
11
11
|
active: !1,
|
|
12
12
|
color: "",
|
|
13
|
-
brightness:
|
|
13
|
+
brightness: g(r, n, s),
|
|
14
14
|
value: s
|
|
15
15
|
};
|
|
16
|
-
}),
|
|
16
|
+
}), b = ({
|
|
17
17
|
actions: o,
|
|
18
|
-
isDisabled:
|
|
19
|
-
selectedData:
|
|
18
|
+
isDisabled: t,
|
|
19
|
+
selectedData: e,
|
|
20
20
|
selectionCallback: r,
|
|
21
21
|
canvas: n
|
|
22
22
|
}) => {
|
|
23
|
-
const { t: s } =
|
|
24
|
-
return /* @__PURE__ */ l(
|
|
23
|
+
const { t: s } = p(), { name: c, filters: m } = e, a = t || !x(e);
|
|
24
|
+
return /* @__PURE__ */ l(u, { children: o.map((i) => {
|
|
25
25
|
switch (i) {
|
|
26
26
|
case "reset":
|
|
27
27
|
return /* @__PURE__ */ l(
|
|
28
|
-
|
|
28
|
+
f,
|
|
29
29
|
{
|
|
30
30
|
isDisabled: a,
|
|
31
31
|
onResetCallback: () => r && r({
|
|
32
|
-
...
|
|
33
|
-
filters:
|
|
32
|
+
...e,
|
|
33
|
+
filters: h(m)
|
|
34
34
|
})
|
|
35
35
|
},
|
|
36
36
|
i
|
|
37
37
|
);
|
|
38
38
|
case "export":
|
|
39
39
|
return /* @__PURE__ */ l(
|
|
40
|
-
|
|
40
|
+
d,
|
|
41
41
|
{
|
|
42
42
|
isDisabled: a,
|
|
43
43
|
canvas: n,
|
|
44
|
-
filename:
|
|
44
|
+
filename: c,
|
|
45
45
|
children: s("colorTool.actions.export")
|
|
46
46
|
},
|
|
47
47
|
i
|
|
@@ -53,8 +53,7 @@ const A = (o) => o.map((e) => {
|
|
|
53
53
|
}
|
|
54
54
|
}) });
|
|
55
55
|
};
|
|
56
|
-
|
|
57
|
-
const R = c;
|
|
56
|
+
b.displayName = "Widgets.ColorTool.Actions";
|
|
58
57
|
export {
|
|
59
|
-
|
|
58
|
+
b as default
|
|
60
59
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("react/jsx-runtime"),q=require("@rubin-epo/epo-react-lib/SelectListbox"),v=require("../lib/utils.cjs"),S=require("react-i18next"),l=require("./styles.cjs"),T=e=>e&&e.__esModule?e:{default:e},I=T(q),d=({filter:e,colorOptions:a,isDisabled:r,onChangeFilterCallback:s,buttonLabelledById:u,selectLabelledById:h,sliderLabelledById:x})=>{const{t:b}=S.useTranslation(),{label:i,color:c="",value:m,active:n,min:g,max:j}=e,p=()=>s&&s({...e,active:!n}),y=t=>t&&s&&s({...e,color:t}),_=t=>s&&s({...e,brightness:v.getBrightnessValue(g,j,t),value:t}),f=b("colorTool.actions.select_filter");return o.jsxs(l.FilterContainer,{disabled:r,children:[o.jsxs(l.FilterLabel,{children:[o.jsx(l.HiddenCheckbox,{checked:n,type:"checkbox",onChange:p,"aria-describedby":u}),o.jsx(l.FilterToggle,{as:"span",children:i})]}),o.jsx(I.default,{placeholder:f,value:c,options:a,onChangeCallback:y,width:"100%",maxWidth:"100%",labelledById:h,isDisabled:!n||r}),o.jsx(l.Slider,{min:1,max:100,onChangeCallback:t=>typeof t=="number"&&_(t),isDisabled:!n||r,labelledbyId:x,value:m,label:i,color:c})]})};d.displayName="Widgets.ColorTool.FilterControls";
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("react/jsx-runtime"),q=require("@rubin-epo/epo-react-lib/SelectListbox"),v=require("../lib/utils.cjs"),S=require("react-i18next"),l=require("./styles.cjs"),T=e=>e&&e.__esModule?e:{default:e},I=T(q),d=({filter:e,colorOptions:a,isDisabled:r,onChangeFilterCallback:s,buttonLabelledById:u,selectLabelledById:h,sliderLabelledById:x})=>{const{t:b}=S.useTranslation(),{label:i,color:c="",value:m,active:n,min:g,max:j}=e,p=()=>s&&s({...e,active:!n}),y=t=>t&&s&&s({...e,color:t}),_=t=>s&&s({...e,brightness:v.getBrightnessValue(g,j,t),value:t}),f=b("colorTool.actions.select_filter");return o.jsxs(l.FilterContainer,{disabled:r,children:[o.jsxs(l.FilterLabel,{children:[o.jsx(l.HiddenCheckbox,{checked:n,type:"checkbox",onChange:p,"aria-describedby":u}),o.jsx(l.FilterToggle,{as:"span",children:i})]}),o.jsx(I.default,{placeholder:f,value:c,options:a,onChangeCallback:y,width:"100%",maxWidth:"100%",labelledById:h,isDisabled:!n||r}),o.jsx(l.Slider,{min:1,max:100,onChangeCallback:t=>typeof t=="number"&&_(t),isDisabled:!n||r,labelledbyId:x,value:m,label:i,color:c})]})};d.displayName="Widgets.ColorTool.FilterControls";exports.default=d;
|
|
@@ -1,66 +1,65 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import
|
|
4
|
-
import { getBrightnessValue as
|
|
2
|
+
import { jsxs as d, jsx as l } from "react/jsx-runtime";
|
|
3
|
+
import v from "@rubin-epo/epo-react-lib/SelectListbox";
|
|
4
|
+
import { getBrightnessValue as B } from "../lib/utils.js";
|
|
5
5
|
import { useTranslation as I } from "react-i18next";
|
|
6
|
-
import { FilterContainer as j, FilterLabel as
|
|
7
|
-
const
|
|
6
|
+
import { FilterContainer as j, FilterLabel as C, HiddenCheckbox as L, FilterToggle as S, Slider as W } from "./styles.js";
|
|
7
|
+
const w = ({
|
|
8
8
|
filter: t,
|
|
9
|
-
colorOptions:
|
|
9
|
+
colorOptions: c,
|
|
10
10
|
isDisabled: r,
|
|
11
11
|
onChangeFilterCallback: o,
|
|
12
|
-
buttonLabelledById:
|
|
13
|
-
selectLabelledById:
|
|
14
|
-
sliderLabelledById:
|
|
12
|
+
buttonLabelledById: a,
|
|
13
|
+
selectLabelledById: m,
|
|
14
|
+
sliderLabelledById: h
|
|
15
15
|
}) => {
|
|
16
|
-
const { t:
|
|
16
|
+
const { t: p } = I(), { label: i, color: n = "", value: b, active: s, min: x, max: g } = t, u = () => o && o({ ...t, active: !s }), y = (e) => e && o && o({ ...t, color: e }), f = (e) => o && o({
|
|
17
17
|
...t,
|
|
18
|
-
brightness:
|
|
18
|
+
brightness: B(x, g, e),
|
|
19
19
|
value: e
|
|
20
|
-
}),
|
|
21
|
-
return /* @__PURE__ */
|
|
22
|
-
/* @__PURE__ */
|
|
20
|
+
}), T = p("colorTool.actions.select_filter");
|
|
21
|
+
return /* @__PURE__ */ d(j, { disabled: r, children: [
|
|
22
|
+
/* @__PURE__ */ d(C, { children: [
|
|
23
23
|
/* @__PURE__ */ l(
|
|
24
|
-
|
|
24
|
+
L,
|
|
25
25
|
{
|
|
26
26
|
checked: s,
|
|
27
27
|
type: "checkbox",
|
|
28
|
-
onChange:
|
|
29
|
-
"aria-describedby":
|
|
28
|
+
onChange: u,
|
|
29
|
+
"aria-describedby": a
|
|
30
30
|
}
|
|
31
31
|
),
|
|
32
|
-
/* @__PURE__ */ l(
|
|
32
|
+
/* @__PURE__ */ l(S, { as: "span", children: i })
|
|
33
33
|
] }),
|
|
34
34
|
/* @__PURE__ */ l(
|
|
35
|
-
|
|
35
|
+
v,
|
|
36
36
|
{
|
|
37
|
-
placeholder:
|
|
38
|
-
value:
|
|
39
|
-
options:
|
|
40
|
-
onChangeCallback:
|
|
37
|
+
placeholder: T,
|
|
38
|
+
value: n,
|
|
39
|
+
options: c,
|
|
40
|
+
onChangeCallback: y,
|
|
41
41
|
width: "100%",
|
|
42
42
|
maxWidth: "100%",
|
|
43
|
-
labelledById:
|
|
43
|
+
labelledById: m,
|
|
44
44
|
isDisabled: !s || r
|
|
45
45
|
}
|
|
46
46
|
),
|
|
47
47
|
/* @__PURE__ */ l(
|
|
48
|
-
|
|
48
|
+
W,
|
|
49
49
|
{
|
|
50
50
|
min: 1,
|
|
51
51
|
max: 100,
|
|
52
|
-
onChangeCallback: (e) => typeof e == "number" &&
|
|
52
|
+
onChangeCallback: (e) => typeof e == "number" && f(e),
|
|
53
53
|
isDisabled: !s || r,
|
|
54
|
-
labelledbyId:
|
|
55
|
-
value:
|
|
56
|
-
label:
|
|
57
|
-
color:
|
|
54
|
+
labelledbyId: h,
|
|
55
|
+
value: b,
|
|
56
|
+
label: i,
|
|
57
|
+
color: n
|
|
58
58
|
}
|
|
59
59
|
)
|
|
60
60
|
] });
|
|
61
61
|
};
|
|
62
|
-
|
|
63
|
-
const _ = d;
|
|
62
|
+
w.displayName = "Widgets.ColorTool.FilterControls";
|
|
64
63
|
export {
|
|
65
|
-
|
|
64
|
+
w as default
|
|
66
65
|
};
|
|
@@ -949,7 +949,7 @@ export declare const FilterToggle: import('styled-components').IStyledComponent<
|
|
|
949
949
|
kind?: string | undefined;
|
|
950
950
|
srcLang?: string | undefined;
|
|
951
951
|
poster?: string | undefined;
|
|
952
|
-
icon?: "Account" | "ArrowUpFromBracket" | "Backward" | "BackwardStep" | "Calendar" | "Cancel" | "CaretDown" | "CheckeredFlag" | "Checkmark" | "CheckmarkCircle" | "CircularLoader" | "Chevron" | "ChevronLeftElongated" | "ChevronRightElongated" | "ChevronThin" | "Close" | "CloseCircle" | "Cloud" | "Doc" | "DocArrowRight" | "DocInverted" | "Email" | "Expand" | "Eye" | "Facebook" | "FloppyDisk" | "
|
|
952
|
+
icon?: "Account" | "ArrowUpFromBracket" | "Backward" | "BackwardStep" | "Calendar" | "Cancel" | "CaretDown" | "CheckeredFlag" | "Checkmark" | "CheckmarkCircle" | "CircularLoader" | "Chevron" | "ChevronLeftElongated" | "ChevronRightElongated" | "ChevronThin" | "Close" | "CloseCircle" | "Cloud" | "Doc" | "DocArrowRight" | "DocInverted" | "Email" | "Expand" | "Eye" | "Facebook" | "FloppyDisk" | "Forward" | "ForwardStep" | "Globe" | "Google" | "Hamburger" | "Info" | "InfoCircle" | "Instagram" | "Lightbulb" | "LinkedIn" | "LockClosed" | "LockOpen" | "LogOut" | "Mail" | "Minus" | "Page" | "Pause" | "Phone" | "Pin" | "Play" | "Plus" | "QuestionCircle" | "RotateLeft" | "RotateLeftWithCenter" | "Search" | "ShareCopyUrl" | "ShareEmail" | "ShareFacebook" | "ShareToggle" | "ShareTwitter" | "Team" | "Temp" | "Thumbtack" | "Time" | "Timer" | "Twitter" | "User" | "UserInverted" | "Video" | "YouTube" | "Pdf" | "Word" | undefined;
|
|
953
953
|
iconSize?: string | number | undefined;
|
|
954
954
|
isBlock?: boolean | undefined;
|
|
955
955
|
styleAs?: import('@rubin-epo/epo-react-lib/Button').ButtonStyleAs | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react/jsx-runtime"),
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react/jsx-runtime"),g=require("react"),C=require("../lib/utils.cjs"),j=require("../hooks/useFilteredImages.cjs"),I=require("../lib/canvas.cjs"),a=require("./styles.cjs"),m=g.forwardRef(({filters:c,width:s=600,height:i=600,selectedObjectName:o,className:d,children:v,images:y},t)=>{var u;const[p,q]=g.useState(o),l=C.isFilterActive(c);o!==p&&q(o);const[x,e]=j.default({images:y,filters:c}),n=(u=t==null?void 0:t.current)==null?void 0:u.getContext("2d");return n&&(n.clearRect(0,0,s,i),I.mergeCanvases(n,x,s,i)),r.jsxs(a.ImageContainer,{style:{"--image-container-opacity":!e&&l?1:.1},className:d,children:[e&&l&&r.jsx(a.Loader,{isVisible:e}),r.jsx(a.Image,{style:{"--loading-opacity":e?0:1},role:"img",hidden:e,width:s,height:i,ref:t}),v]})});m.displayName="Widgets.ColorTool.ImageComposite";exports.default=m;
|