@milaboratories/uikit 2.3.21 → 2.3.23
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/.turbo/turbo-build.log +33 -68
- package/.turbo/turbo-type-check.log +1 -1
- package/CHANGELOG.md +12 -0
- package/dist/components/DataTable/TableComponent.vue.js +3 -5
- package/dist/components/DataTable/TableComponent.vue.js.map +1 -1
- package/dist/components/PlAccordion/{ExpandTransition.vue2.js → ExpandTransition.vue.js} +1 -1
- package/dist/components/PlAccordion/ExpandTransition.vue.js.map +1 -0
- package/dist/components/PlAccordion/ExpandTransition.vue3.js +1 -1
- package/dist/components/PlAccordion/PlAccordionSection.vue2.js +1 -1
- package/dist/components/PlChartHistogram/createGridlines.d.ts +4 -2
- package/dist/components/PlChartHistogram/createGridlines.d.ts.map +1 -1
- package/dist/components/PlChartHistogram/createGridlines.js +4 -6
- package/dist/components/PlChartHistogram/createGridlines.js.map +1 -1
- package/dist/components/PlChartHistogram/createLabels.d.ts +2 -2
- package/dist/components/PlChartHistogram/createLabels.d.ts.map +1 -1
- package/dist/components/PlChartHistogram/createLabels.js.map +1 -1
- package/dist/components/PlChartHistogram/createSvgContainer.d.ts +1 -2
- package/dist/components/PlChartHistogram/createSvgContainer.d.ts.map +1 -1
- package/dist/components/PlChartHistogram/createSvgContainer.js +5 -7
- package/dist/components/PlChartHistogram/createSvgContainer.js.map +1 -1
- package/dist/components/PlChartHistogram/drawBins.d.ts.map +1 -1
- package/dist/components/PlChartHistogram/drawBins.js +4 -6
- package/dist/components/PlChartHistogram/drawBins.js.map +1 -1
- package/dist/components/PlChartHistogram/histogram.d.ts.map +1 -1
- package/dist/components/PlChartHistogram/histogram.js +18 -20
- package/dist/components/PlChartHistogram/histogram.js.map +1 -1
- package/dist/components/PlChartHistogram/normalizeBins.d.ts +2 -1
- package/dist/components/PlChartHistogram/normalizeBins.d.ts.map +1 -1
- package/dist/components/PlChartHistogram/normalizeBins.js.map +1 -1
- package/dist/components/PlChartHistogram/types.d.ts +5 -3
- package/dist/components/PlChartHistogram/types.d.ts.map +1 -1
- package/dist/components/PlFileInput/PlFileInput.vue.d.ts.map +1 -1
- package/dist/components/PlFileInput/PlFileInput.vue.js +12 -12
- package/dist/components/PlFileInput/PlFileInput.vue.js.map +1 -1
- package/dist/components/PlSlideModal/PlPureSlideModal.vue.js +10 -12
- package/dist/components/PlSlideModal/PlPureSlideModal.vue.js.map +1 -1
- package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/rgb.js +8 -8
- package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/rgb.js.map +1 -1
- package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/string.js +7 -7
- package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/string.js.map +1 -1
- package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/value.js +6 -6
- package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/index.js +23 -27
- package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/index.js.map +1 -1
- package/package.json +10 -4
- package/src/components/PlChartHistogram/createGridlines.ts +10 -6
- package/src/components/PlChartHistogram/createLabels.ts +2 -2
- package/src/components/PlChartHistogram/createSvgContainer.ts +2 -3
- package/src/components/PlChartHistogram/drawBins.ts +2 -3
- package/src/components/PlChartHistogram/histogram.ts +25 -22
- package/src/components/PlChartHistogram/normalizeBins.ts +2 -1
- package/src/components/PlChartHistogram/types.ts +6 -3
- package/src/components/PlFileInput/PlFileInput.vue +9 -9
- package/src/components/PlFileInput/pl-file-input.scss +3 -1
- package/dist/components/PlAccordion/ExpandTransition.vue2.js.map +0 -1
- package/dist/node_modules/.pnpm/d3-dispatch@3.0.1/node_modules/d3-dispatch/src/dispatch.js +0 -65
- package/dist/node_modules/.pnpm/d3-dispatch@3.0.1/node_modules/d3-dispatch/src/dispatch.js.map +0 -1
- package/dist/node_modules/.pnpm/d3-ease@3.0.1/node_modules/d3-ease/src/cubic.js +0 -7
- package/dist/node_modules/.pnpm/d3-ease@3.0.1/node_modules/d3-ease/src/cubic.js.map +0 -1
- package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/transform/decompose.js +0 -24
- package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/transform/decompose.js.map +0 -1
- package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/transform/index.js +0 -38
- package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/transform/index.js.map +0 -1
- package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/transform/parse.js +0 -14
- package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/transform/parse.js.map +0 -1
- package/dist/node_modules/.pnpm/d3-timer@3.0.1/node_modules/d3-timer/src/timeout.js +0 -11
- package/dist/node_modules/.pnpm/d3-timer@3.0.1/node_modules/d3-timer/src/timeout.js.map +0 -1
- package/dist/node_modules/.pnpm/d3-timer@3.0.1/node_modules/d3-timer/src/timer.js +0 -63
- package/dist/node_modules/.pnpm/d3-timer@3.0.1/node_modules/d3-timer/src/timer.js.map +0 -1
- package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/interrupt.js +0 -19
- package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/interrupt.js.map +0 -1
- package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/selection/index.js +0 -6
- package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/selection/index.js.map +0 -1
- package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/selection/interrupt.js +0 -10
- package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/selection/interrupt.js.map +0 -1
- package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/selection/transition.js +0 -29
- package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/selection/transition.js.map +0 -1
- package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/attr.js +0 -50
- package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/attr.js.map +0 -1
- package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/attrTween.js +0 -39
- package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/attrTween.js.map +0 -1
- package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/delay.js +0 -19
- package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/delay.js.map +0 -1
- package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/duration.js +0 -19
- package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/duration.js.map +0 -1
- package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/ease.js +0 -15
- package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/ease.js.map +0 -1
- package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/easeVarying.js +0 -16
- package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/easeVarying.js.map +0 -1
- package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/end.js +0 -17
- package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/end.js.map +0 -1
- package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/filter.js +0 -13
- package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/filter.js.map +0 -1
- package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/index.js +0 -66
- package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/index.js.map +0 -1
- package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/interpolate.js +0 -12
- package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/interpolate.js.map +0 -1
- package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/merge.js +0 -14
- package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/merge.js.map +0 -1
- package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/on.js +0 -22
- package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/on.js.map +0 -1
- package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/remove.js +0 -14
- package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/remove.js.map +0 -1
- package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/schedule.js +0 -86
- package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/schedule.js.map +0 -1
- package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/select.js +0 -15
- package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/select.js.map +0 -1
- package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/selectAll.js +0 -19
- package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/selectAll.js.map +0 -1
- package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/selection.js +0 -9
- package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/selection.js.map +0 -1
- package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/style.js +0 -46
- package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/style.js.map +0 -1
- package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/styleTween.js +0 -24
- package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/styleTween.js.map +0 -1
- package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/text.js +0 -19
- package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/text.js.map +0 -1
- package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/textTween.js +0 -24
- package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/textTween.js.map +0 -1
- package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/transition.js +0 -20
- package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/transition.js.map +0 -1
- package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/tween.js +0 -57
- package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/tween.js.map +0 -1
- package/dist/node_modules/.pnpm/d3-zoom@3.0.0/node_modules/d3-zoom/src/transform.js +0 -44
- package/dist/node_modules/.pnpm/d3-zoom@3.0.0/node_modules/d3-zoom/src/transform.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BinLike, ChartOptions, Scales, SVG } from './types';
|
|
2
|
-
import
|
|
2
|
+
import { select } from 'd3-selection';
|
|
3
3
|
|
|
4
4
|
export function drawBins(
|
|
5
5
|
svg: SVG,
|
|
@@ -11,8 +11,7 @@ export function drawBins(
|
|
|
11
11
|
|
|
12
12
|
const { x, y } = scales;
|
|
13
13
|
|
|
14
|
-
const tooltip =
|
|
15
|
-
.select('body')
|
|
14
|
+
const tooltip = select('body')
|
|
16
15
|
.append('div')
|
|
17
16
|
.attr('class', 'svg-tooltip')
|
|
18
17
|
.style('position', 'absolute')
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as d3 from 'd3';
|
|
2
1
|
import { createSvgContainer } from './createSvgContainer';
|
|
3
2
|
import { drawBins } from './drawBins';
|
|
4
3
|
import { createGridlines } from './createGridlines';
|
|
@@ -7,23 +6,27 @@ import { createLabels } from './createLabels';
|
|
|
7
6
|
import type { AnyBin, BinLike, ChartOptions } from './types';
|
|
8
7
|
import { drawThreshold } from './drawThreshold';
|
|
9
8
|
import { normalizeBins } from './normalizeBins';
|
|
9
|
+
import type { Selection } from 'd3-selection';
|
|
10
|
+
import { bin, max as d3max, min as d3min } from 'd3-array';
|
|
11
|
+
import { scaleLinear, scaleSymlog } from 'd3-scale';
|
|
12
|
+
import { axisBottom, axisLeft } from 'd3-axis';
|
|
10
13
|
|
|
11
|
-
const gx = (svg:
|
|
14
|
+
const gx = (svg: Selection<SVGGElement, unknown, null, undefined>, height: number) => {
|
|
12
15
|
return svg.append('g')
|
|
13
16
|
.style('font-size', '14px')
|
|
14
17
|
.style('font-weight', '500')
|
|
15
18
|
.attr('transform', `translate(0,${height})`);
|
|
16
19
|
};
|
|
17
20
|
|
|
18
|
-
const gy = (svg:
|
|
21
|
+
const gy = (svg: Selection<SVGGElement, unknown, null, undefined>) => {
|
|
19
22
|
return svg.append('g')
|
|
20
23
|
.style('font-size', '14px')
|
|
21
24
|
.style('font-weight', '500');
|
|
22
25
|
};
|
|
23
26
|
|
|
24
27
|
const createYScale = (bins: BinLike[], height: number) => {
|
|
25
|
-
return
|
|
26
|
-
.domain([0,
|
|
28
|
+
return scaleLinear()
|
|
29
|
+
.domain([0, d3max(bins, (d) => d.length)!]) // Max bin count for the domain
|
|
27
30
|
.range([height, 0]); // Map to chart height (invert to match SVG coordinates)
|
|
28
31
|
};
|
|
29
32
|
|
|
@@ -32,14 +35,14 @@ export function createHistogramLinear(el: HTMLElement, options: ChartOptions, da
|
|
|
32
35
|
|
|
33
36
|
const svg = createSvgContainer(el, options);
|
|
34
37
|
|
|
35
|
-
const min =
|
|
36
|
-
const max =
|
|
38
|
+
const min = d3min(data) as number;
|
|
39
|
+
const max = d3max(data) as number;
|
|
37
40
|
|
|
38
|
-
const x =
|
|
41
|
+
const x = scaleLinear()
|
|
39
42
|
.domain([min, max])
|
|
40
43
|
.range([0, width]);
|
|
41
44
|
|
|
42
|
-
const bins: BinLike[] = normalizeBins(
|
|
45
|
+
const bins: BinLike[] = normalizeBins(bin()
|
|
43
46
|
.domain(x.domain() as [number, number]) // Set the input domain to match the x-scale
|
|
44
47
|
.thresholds(x.ticks(nBins))(data)); // Apply the data to create bins
|
|
45
48
|
|
|
@@ -51,9 +54,9 @@ export function createHistogramLinear(el: HTMLElement, options: ChartOptions, da
|
|
|
51
54
|
|
|
52
55
|
drawThreshold(svg, { x, y }, options);
|
|
53
56
|
|
|
54
|
-
gx(svg, height).call(
|
|
57
|
+
gx(svg, height).call(axisBottom(x).tickSize(0));
|
|
55
58
|
|
|
56
|
-
gy(svg).call(
|
|
59
|
+
gy(svg).call(axisLeft(y).tickSize(0));
|
|
57
60
|
|
|
58
61
|
createLabels(svg, options);
|
|
59
62
|
}
|
|
@@ -63,10 +66,10 @@ export function createHistogramLog(el: HTMLElement, options: ChartOptions, data:
|
|
|
63
66
|
|
|
64
67
|
const svg = createSvgContainer(el, options);
|
|
65
68
|
|
|
66
|
-
const min =
|
|
67
|
-
const max =
|
|
69
|
+
const min = d3min(data) as number;
|
|
70
|
+
const max = d3max(data) as number;
|
|
68
71
|
|
|
69
|
-
const x =
|
|
72
|
+
const x = scaleSymlog()
|
|
70
73
|
.domain([min, max]) // Input range (min and max values of the data)
|
|
71
74
|
.range([0, width])
|
|
72
75
|
.nice() // Output range (width of the chart)
|
|
@@ -82,7 +85,7 @@ export function createHistogramLog(el: HTMLElement, options: ChartOptions, data:
|
|
|
82
85
|
return res;
|
|
83
86
|
};
|
|
84
87
|
|
|
85
|
-
const bins = normalizeBins(
|
|
88
|
+
const bins = normalizeBins(bin()
|
|
86
89
|
.domain(x.domain() as [number, number]) // Set the input domain to match the x-scale
|
|
87
90
|
.thresholds(createThresholds(nBins))(data)); // Apply the data to create bins
|
|
88
91
|
|
|
@@ -96,9 +99,9 @@ export function createHistogramLog(el: HTMLElement, options: ChartOptions, data:
|
|
|
96
99
|
|
|
97
100
|
drawThreshold(svg, { x, y }, options);
|
|
98
101
|
|
|
99
|
-
gx(svg, height).call(
|
|
102
|
+
gx(svg, height).call(axisBottom(x).tickValues(tickValues).tickSize(0));
|
|
100
103
|
|
|
101
|
-
gy(svg).call(
|
|
104
|
+
gy(svg).call(axisLeft(y).tickSize(0));
|
|
102
105
|
|
|
103
106
|
createLabels(svg, options);
|
|
104
107
|
}
|
|
@@ -110,10 +113,10 @@ export function createHistogramFromBins(el: HTMLElement, options: ChartOptions,
|
|
|
110
113
|
|
|
111
114
|
const bins = normalizeBins(_bins);
|
|
112
115
|
|
|
113
|
-
const min =
|
|
114
|
-
const max =
|
|
116
|
+
const min = d3min(bins, (b) => b.x0) as number;
|
|
117
|
+
const max = d3max(bins, (b) => b.x1) as number;
|
|
115
118
|
|
|
116
|
-
const x =
|
|
119
|
+
const x = scaleSymlog()
|
|
117
120
|
.domain([min, max])
|
|
118
121
|
.range([0, width])
|
|
119
122
|
.nice();
|
|
@@ -128,9 +131,9 @@ export function createHistogramFromBins(el: HTMLElement, options: ChartOptions,
|
|
|
128
131
|
|
|
129
132
|
drawThreshold(svg, { x, y }, options);
|
|
130
133
|
|
|
131
|
-
gx(svg, height).call(
|
|
134
|
+
gx(svg, height).call(axisBottom(x).tickValues(tickValues).tickSize(0));
|
|
132
135
|
|
|
133
|
-
gy(svg).call(
|
|
136
|
+
gy(svg).call(axisLeft(y).tickSize(0));
|
|
134
137
|
|
|
135
138
|
createLabels(svg, options);
|
|
136
139
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { AnyBin, BinLike } from './types';
|
|
2
|
+
import type { Bin } from 'd3-array';
|
|
2
3
|
|
|
3
|
-
export function normalizeBins(bins: (
|
|
4
|
+
export function normalizeBins(bins: (Bin<number, number> | AnyBin)[]): BinLike[] {
|
|
4
5
|
return bins.map((it) => {
|
|
5
6
|
if ('from' in it) {
|
|
6
7
|
return {
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import type { ScaleLinear, ScaleSymLog } from 'd3-scale';
|
|
2
|
+
import type { Selection } from 'd3-selection';
|
|
3
|
+
|
|
1
4
|
export type Margin = { top: number; right: number; bottom: number; left: number };
|
|
2
5
|
|
|
3
6
|
export type ChartOptions = {
|
|
@@ -12,11 +15,11 @@ export type ChartOptions = {
|
|
|
12
15
|
};
|
|
13
16
|
|
|
14
17
|
export type Scales = {
|
|
15
|
-
x:
|
|
16
|
-
y:
|
|
18
|
+
x: ScaleSymLog<number, number, never> | ScaleLinear<number, number>;
|
|
19
|
+
y: ScaleLinear<number, number, never>;
|
|
17
20
|
};
|
|
18
21
|
|
|
19
|
-
export type SVG =
|
|
22
|
+
export type SVG = Selection<SVGGElement, unknown, null, undefined>;
|
|
20
23
|
|
|
21
24
|
export type CustomBin = {
|
|
22
25
|
from: number;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
<script lang="ts" setup>
|
|
2
|
-
import '
|
|
3
|
-
import { PlTooltip } from '../PlTooltip';
|
|
4
|
-
import { PlFileDialog } from '../PlFileDialog';
|
|
5
|
-
import type { ImportedFiles } from '../../types';
|
|
6
|
-
import { PlMaskIcon24 } from '../PlMaskIcon24';
|
|
7
|
-
import { computed, reactive, ref, useSlots, watch } from 'vue';
|
|
2
|
+
import { prettyBytes } from '@milaboratories/helpers';
|
|
8
3
|
import type { ImportFileHandle, ImportProgress } from '@platforma-sdk/model';
|
|
9
4
|
import { getFileNameFromHandle, getFilePathFromHandle } from '@platforma-sdk/model';
|
|
10
|
-
import
|
|
11
|
-
import { useLabelNotch } from '../../utils/useLabelNotch';
|
|
12
|
-
import { prettyBytes } from '@milaboratories/helpers';
|
|
5
|
+
import { computed, reactive, ref, useSlots, watch } from 'vue';
|
|
13
6
|
import SvgRequired from '../../generated/components/svg/images/SvgRequired.vue';
|
|
14
7
|
import { getErrorMessage } from '../../helpers/error.ts';
|
|
8
|
+
import type { ImportedFiles } from '../../types';
|
|
9
|
+
import DoubleContour from '../../utils/DoubleContour.vue';
|
|
10
|
+
import { useLabelNotch } from '../../utils/useLabelNotch';
|
|
11
|
+
import { PlFileDialog } from '../PlFileDialog';
|
|
12
|
+
import { PlMaskIcon24 } from '../PlMaskIcon24';
|
|
13
|
+
import { PlTooltip } from '../PlTooltip';
|
|
14
|
+
import './pl-file-input.scss';
|
|
15
15
|
|
|
16
16
|
const data = reactive({
|
|
17
17
|
fileDialogOpen: false,
|
|
@@ -14,9 +14,10 @@
|
|
|
14
14
|
--contour-offset: 2px;
|
|
15
15
|
--icon-color: #000;
|
|
16
16
|
|
|
17
|
+
position: relative;
|
|
18
|
+
z-index: 0;
|
|
17
19
|
width: 100%;
|
|
18
20
|
height: var(--control-height, 40px);
|
|
19
|
-
position: relative;
|
|
20
21
|
border-radius: var(--border-radius-control);
|
|
21
22
|
display: flex;
|
|
22
23
|
flex-direction: row;
|
|
@@ -45,6 +46,7 @@
|
|
|
45
46
|
|
|
46
47
|
&__progress {
|
|
47
48
|
position: absolute;
|
|
49
|
+
z-index: -1;
|
|
48
50
|
top: 0;
|
|
49
51
|
bottom: 0;
|
|
50
52
|
left: 0;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ExpandTransition.vue2.js","sources":["../../../src/components/PlAccordion/ExpandTransition.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nconst onStart = (el: Element) => {\n el.classList.add('expand-collapse-fix');\n (el as HTMLElement).style.setProperty('--component-height', el.scrollHeight + 'px');\n};\n\nconst onAfter = (el: Element) => {\n (el as HTMLElement).style.removeProperty('--component-height');\n el.classList.remove('expand-collapse-fix');\n};\n</script>\n\n<template>\n <Transition name=\"expand-collapse\" @enter=\"onStart\" @leave=\"onStart\" @after-enter=\"onAfter\" @after-leave=\"onAfter\">\n <slot/>\n </Transition>\n</template>\n\n<style>\n.expand-collapse-fix {\n overflow: hidden;\n}\n\n.expand-collapse-enter-active,\n.expand-collapse-leave-active {\n transition:\n height 0.2s ease-in-out,\n opacity 0.2s ease-in-out;\n height: var(--component-height);\n}\n\n.expand-collapse-enter-from,\n.expand-collapse-leave-to {\n opacity: 0.5;\n height: 0;\n}\n</style>\n"],"names":["onStart","el","onAfter"],"mappings":";;;;AACM,UAAAA,IAAU,CAACC,MAAgB;AAC5B,MAAAA,EAAA,UAAU,IAAI,qBAAqB,GACrCA,EAAmB,MAAM,YAAY,sBAAsBA,EAAG,eAAe,IAAI;AAAA,IACpF,GAEMC,IAAU,CAACD,MAAgB;AAC9B,MAAAA,EAAmB,MAAM,eAAe,oBAAoB,GAC1DA,EAAA,UAAU,OAAO,qBAAqB;AAAA,IAC3C;;;;;;;;;;;;;;;"}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
var a = { value: () => {
|
|
2
|
-
} };
|
|
3
|
-
function l() {
|
|
4
|
-
for (var n = 0, t = arguments.length, r = {}, e; n < t; ++n) {
|
|
5
|
-
if (!(e = arguments[n] + "") || e in r || /[\s.]/.test(e)) throw new Error("illegal type: " + e);
|
|
6
|
-
r[e] = [];
|
|
7
|
-
}
|
|
8
|
-
return new f(r);
|
|
9
|
-
}
|
|
10
|
-
function f(n) {
|
|
11
|
-
this._ = n;
|
|
12
|
-
}
|
|
13
|
-
function h(n, t) {
|
|
14
|
-
return n.trim().split(/^|\s+/).map(function(r) {
|
|
15
|
-
var e = "", o = r.indexOf(".");
|
|
16
|
-
if (o >= 0 && (e = r.slice(o + 1), r = r.slice(0, o)), r && !t.hasOwnProperty(r)) throw new Error("unknown type: " + r);
|
|
17
|
-
return { type: r, name: e };
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
f.prototype = l.prototype = {
|
|
21
|
-
constructor: f,
|
|
22
|
-
on: function(n, t) {
|
|
23
|
-
var r = this._, e = h(n + "", r), o, u = -1, i = e.length;
|
|
24
|
-
if (arguments.length < 2) {
|
|
25
|
-
for (; ++u < i; ) if ((o = (n = e[u]).type) && (o = w(r[o], n.name))) return o;
|
|
26
|
-
return;
|
|
27
|
-
}
|
|
28
|
-
if (t != null && typeof t != "function") throw new Error("invalid callback: " + t);
|
|
29
|
-
for (; ++u < i; )
|
|
30
|
-
if (o = (n = e[u]).type) r[o] = s(r[o], n.name, t);
|
|
31
|
-
else if (t == null) for (o in r) r[o] = s(r[o], n.name, null);
|
|
32
|
-
return this;
|
|
33
|
-
},
|
|
34
|
-
copy: function() {
|
|
35
|
-
var n = {}, t = this._;
|
|
36
|
-
for (var r in t) n[r] = t[r].slice();
|
|
37
|
-
return new f(n);
|
|
38
|
-
},
|
|
39
|
-
call: function(n, t) {
|
|
40
|
-
if ((o = arguments.length - 2) > 0) for (var r = new Array(o), e = 0, o, u; e < o; ++e) r[e] = arguments[e + 2];
|
|
41
|
-
if (!this._.hasOwnProperty(n)) throw new Error("unknown type: " + n);
|
|
42
|
-
for (u = this._[n], e = 0, o = u.length; e < o; ++e) u[e].value.apply(t, r);
|
|
43
|
-
},
|
|
44
|
-
apply: function(n, t, r) {
|
|
45
|
-
if (!this._.hasOwnProperty(n)) throw new Error("unknown type: " + n);
|
|
46
|
-
for (var e = this._[n], o = 0, u = e.length; o < u; ++o) e[o].value.apply(t, r);
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
function w(n, t) {
|
|
50
|
-
for (var r = 0, e = n.length, o; r < e; ++r)
|
|
51
|
-
if ((o = n[r]).name === t)
|
|
52
|
-
return o.value;
|
|
53
|
-
}
|
|
54
|
-
function s(n, t, r) {
|
|
55
|
-
for (var e = 0, o = n.length; e < o; ++e)
|
|
56
|
-
if (n[e].name === t) {
|
|
57
|
-
n[e] = a, n = n.slice(0, e).concat(n.slice(e + 1));
|
|
58
|
-
break;
|
|
59
|
-
}
|
|
60
|
-
return r != null && n.push({ name: t, value: r }), n;
|
|
61
|
-
}
|
|
62
|
-
export {
|
|
63
|
-
l as default
|
|
64
|
-
};
|
|
65
|
-
//# sourceMappingURL=dispatch.js.map
|
package/dist/node_modules/.pnpm/d3-dispatch@3.0.1/node_modules/d3-dispatch/src/dispatch.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dispatch.js","sources":["../../../../../../../../../../node_modules/.pnpm/d3-dispatch@3.0.1/node_modules/d3-dispatch/src/dispatch.js"],"sourcesContent":["var noop = {value: () => {}};\n\nfunction dispatch() {\n for (var i = 0, n = arguments.length, _ = {}, t; i < n; ++i) {\n if (!(t = arguments[i] + \"\") || (t in _) || /[\\s.]/.test(t)) throw new Error(\"illegal type: \" + t);\n _[t] = [];\n }\n return new Dispatch(_);\n}\n\nfunction Dispatch(_) {\n this._ = _;\n}\n\nfunction parseTypenames(typenames, types) {\n return typenames.trim().split(/^|\\s+/).map(function(t) {\n var name = \"\", i = t.indexOf(\".\");\n if (i >= 0) name = t.slice(i + 1), t = t.slice(0, i);\n if (t && !types.hasOwnProperty(t)) throw new Error(\"unknown type: \" + t);\n return {type: t, name: name};\n });\n}\n\nDispatch.prototype = dispatch.prototype = {\n constructor: Dispatch,\n on: function(typename, callback) {\n var _ = this._,\n T = parseTypenames(typename + \"\", _),\n t,\n i = -1,\n n = T.length;\n\n // If no callback was specified, return the callback of the given type and name.\n if (arguments.length < 2) {\n while (++i < n) if ((t = (typename = T[i]).type) && (t = get(_[t], typename.name))) return t;\n return;\n }\n\n // If a type was specified, set the callback for the given type and name.\n // Otherwise, if a null callback was specified, remove callbacks of the given name.\n if (callback != null && typeof callback !== \"function\") throw new Error(\"invalid callback: \" + callback);\n while (++i < n) {\n if (t = (typename = T[i]).type) _[t] = set(_[t], typename.name, callback);\n else if (callback == null) for (t in _) _[t] = set(_[t], typename.name, null);\n }\n\n return this;\n },\n copy: function() {\n var copy = {}, _ = this._;\n for (var t in _) copy[t] = _[t].slice();\n return new Dispatch(copy);\n },\n call: function(type, that) {\n if ((n = arguments.length - 2) > 0) for (var args = new Array(n), i = 0, n, t; i < n; ++i) args[i] = arguments[i + 2];\n if (!this._.hasOwnProperty(type)) throw new Error(\"unknown type: \" + type);\n for (t = this._[type], i = 0, n = t.length; i < n; ++i) t[i].value.apply(that, args);\n },\n apply: function(type, that, args) {\n if (!this._.hasOwnProperty(type)) throw new Error(\"unknown type: \" + type);\n for (var t = this._[type], i = 0, n = t.length; i < n; ++i) t[i].value.apply(that, args);\n }\n};\n\nfunction get(type, name) {\n for (var i = 0, n = type.length, c; i < n; ++i) {\n if ((c = type[i]).name === name) {\n return c.value;\n }\n }\n}\n\nfunction set(type, name, callback) {\n for (var i = 0, n = type.length; i < n; ++i) {\n if (type[i].name === name) {\n type[i] = noop, type = type.slice(0, i).concat(type.slice(i + 1));\n break;\n }\n }\n if (callback != null) type.push({name: name, value: callback});\n return type;\n}\n\nexport default dispatch;\n"],"names":["noop","dispatch","i","n","_","t","Dispatch","parseTypenames","typenames","types","name","typename","callback","T","get","set","copy","type","that","args","c"],"mappings":"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","x_google_ignoreList":[0]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cubic.js","sources":["../../../../../../../../../../node_modules/.pnpm/d3-ease@3.0.1/node_modules/d3-ease/src/cubic.js"],"sourcesContent":["export function cubicIn(t) {\n return t * t * t;\n}\n\nexport function cubicOut(t) {\n return --t * t * t + 1;\n}\n\nexport function cubicInOut(t) {\n return ((t *= 2) <= 1 ? t * t * t : (t -= 2) * t * t + 2) / 2;\n}\n"],"names":["cubicInOut","t"],"mappings":"AAQO,SAASA,EAAWC,GAAG;AAC5B,WAASA,KAAK,MAAM,IAAIA,IAAIA,IAAIA,KAAKA,KAAK,KAAKA,IAAIA,IAAI,KAAK;AAC9D;","x_google_ignoreList":[0]}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
var X = 180 / Math.PI, o = {
|
|
2
|
-
translateX: 0,
|
|
3
|
-
translateY: 0,
|
|
4
|
-
rotate: 0,
|
|
5
|
-
skewX: 0,
|
|
6
|
-
scaleX: 1,
|
|
7
|
-
scaleY: 1
|
|
8
|
-
};
|
|
9
|
-
function h(t, e, s, r, i, f) {
|
|
10
|
-
var l, n, a;
|
|
11
|
-
return (l = Math.sqrt(t * t + e * e)) && (t /= l, e /= l), (a = t * s + e * r) && (s -= t * a, r -= e * a), (n = Math.sqrt(s * s + r * r)) && (s /= n, r /= n, a /= n), t * r < e * s && (t = -t, e = -e, a = -a, l = -l), {
|
|
12
|
-
translateX: i,
|
|
13
|
-
translateY: f,
|
|
14
|
-
rotate: Math.atan2(e, t) * X,
|
|
15
|
-
skewX: Math.atan(a) * X,
|
|
16
|
-
scaleX: l,
|
|
17
|
-
scaleY: n
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
export {
|
|
21
|
-
h as default,
|
|
22
|
-
o as identity
|
|
23
|
-
};
|
|
24
|
-
//# sourceMappingURL=decompose.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"decompose.js","sources":["../../../../../../../../../../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/transform/decompose.js"],"sourcesContent":["var degrees = 180 / Math.PI;\n\nexport var identity = {\n translateX: 0,\n translateY: 0,\n rotate: 0,\n skewX: 0,\n scaleX: 1,\n scaleY: 1\n};\n\nexport default function(a, b, c, d, e, f) {\n var scaleX, scaleY, skewX;\n if (scaleX = Math.sqrt(a * a + b * b)) a /= scaleX, b /= scaleX;\n if (skewX = a * c + b * d) c -= a * skewX, d -= b * skewX;\n if (scaleY = Math.sqrt(c * c + d * d)) c /= scaleY, d /= scaleY, skewX /= scaleY;\n if (a * d < b * c) a = -a, b = -b, skewX = -skewX, scaleX = -scaleX;\n return {\n translateX: e,\n translateY: f,\n rotate: Math.atan2(b, a) * degrees,\n skewX: Math.atan(skewX) * degrees,\n scaleX: scaleX,\n scaleY: scaleY\n };\n}\n"],"names":["degrees","identity","decompose","a","b","c","d","e","scaleX","scaleY","skewX"],"mappings":"AAAA,IAAIA,IAAU,MAAM,KAAK,IAEdC,IAAW;AAAA,EACpB,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,QAAQ;AACV;AAEe,SAAAC,EAASC,GAAGC,GAAGC,GAAGC,GAAGC,GAAG,GAAG;AACxC,MAAIC,GAAQC,GAAQC;AACpB,UAAIF,IAAS,KAAK,KAAKL,IAAIA,IAAIC,IAAIA,CAAC,OAAGD,KAAKK,GAAQJ,KAAKI,KACrDE,IAAQP,IAAIE,IAAID,IAAIE,OAAGD,KAAKF,IAAIO,GAAOJ,KAAKF,IAAIM,KAChDD,IAAS,KAAK,KAAKJ,IAAIA,IAAIC,IAAIA,CAAC,OAAGD,KAAKI,GAAQH,KAAKG,GAAQC,KAASD,IACtEN,IAAIG,IAAIF,IAAIC,MAAGF,IAAI,CAACA,GAAGC,IAAI,CAACA,GAAGM,IAAQ,CAACA,GAAOF,IAAS,CAACA,IACtD;AAAA,IACL,YAAYD;AAAA,IACZ,YAAY;AAAA,IACZ,QAAQ,KAAK,MAAMH,GAAGD,CAAC,IAAIH;AAAA,IAC3B,OAAO,KAAK,KAAKU,CAAK,IAAIV;AAAA,IAC1B,QAAQQ;AAAA,IACR,QAAQC;AAAA,EACT;AACH;","x_google_ignoreList":[0]}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import o from "../number.js";
|
|
2
|
-
import { parseCss as Y, parseSvg as T } from "./parse.js";
|
|
3
|
-
function X(f, a, c, p) {
|
|
4
|
-
function i(e) {
|
|
5
|
-
return e.length ? e.pop() + " " : "";
|
|
6
|
-
}
|
|
7
|
-
function v(e, t, n, l, r, u) {
|
|
8
|
-
if (e !== n || t !== l) {
|
|
9
|
-
var s = r.push("translate(", null, a, null, c);
|
|
10
|
-
u.push({ i: s - 4, x: o(e, n) }, { i: s - 2, x: o(t, l) });
|
|
11
|
-
} else (n || l) && r.push("translate(" + n + a + l + c);
|
|
12
|
-
}
|
|
13
|
-
function m(e, t, n, l) {
|
|
14
|
-
e !== t ? (e - t > 180 ? t += 360 : t - e > 180 && (e += 360), l.push({ i: n.push(i(n) + "rotate(", null, p) - 2, x: o(e, t) })) : t && n.push(i(n) + "rotate(" + t + p);
|
|
15
|
-
}
|
|
16
|
-
function w(e, t, n, l) {
|
|
17
|
-
e !== t ? l.push({ i: n.push(i(n) + "skewX(", null, p) - 2, x: o(e, t) }) : t && n.push(i(n) + "skewX(" + t + p);
|
|
18
|
-
}
|
|
19
|
-
function k(e, t, n, l, r, u) {
|
|
20
|
-
if (e !== n || t !== l) {
|
|
21
|
-
var s = r.push(i(r) + "scale(", null, ",", null, ")");
|
|
22
|
-
u.push({ i: s - 4, x: o(e, n) }, { i: s - 2, x: o(t, l) });
|
|
23
|
-
} else (n !== 1 || l !== 1) && r.push(i(r) + "scale(" + n + "," + l + ")");
|
|
24
|
-
}
|
|
25
|
-
return function(e, t) {
|
|
26
|
-
var n = [], l = [];
|
|
27
|
-
return e = f(e), t = f(t), v(e.translateX, e.translateY, t.translateX, t.translateY, n, l), m(e.rotate, t.rotate, n, l), w(e.skewX, t.skewX, n, l), k(e.scaleX, e.scaleY, t.scaleX, t.scaleY, n, l), e = t = null, function(r) {
|
|
28
|
-
for (var u = -1, s = l.length, h; ++u < s; ) n[(h = l[u]).i] = h.x(r);
|
|
29
|
-
return n.join("");
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
var j = X(Y, "px, ", "px)", "deg)"), q = X(T, ", ", ")", ")");
|
|
34
|
-
export {
|
|
35
|
-
j as interpolateTransformCss,
|
|
36
|
-
q as interpolateTransformSvg
|
|
37
|
-
};
|
|
38
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../../../../../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/transform/index.js"],"sourcesContent":["import number from \"../number.js\";\nimport {parseCss, parseSvg} from \"./parse.js\";\n\nfunction interpolateTransform(parse, pxComma, pxParen, degParen) {\n\n function pop(s) {\n return s.length ? s.pop() + \" \" : \"\";\n }\n\n function translate(xa, ya, xb, yb, s, q) {\n if (xa !== xb || ya !== yb) {\n var i = s.push(\"translate(\", null, pxComma, null, pxParen);\n q.push({i: i - 4, x: number(xa, xb)}, {i: i - 2, x: number(ya, yb)});\n } else if (xb || yb) {\n s.push(\"translate(\" + xb + pxComma + yb + pxParen);\n }\n }\n\n function rotate(a, b, s, q) {\n if (a !== b) {\n if (a - b > 180) b += 360; else if (b - a > 180) a += 360; // shortest path\n q.push({i: s.push(pop(s) + \"rotate(\", null, degParen) - 2, x: number(a, b)});\n } else if (b) {\n s.push(pop(s) + \"rotate(\" + b + degParen);\n }\n }\n\n function skewX(a, b, s, q) {\n if (a !== b) {\n q.push({i: s.push(pop(s) + \"skewX(\", null, degParen) - 2, x: number(a, b)});\n } else if (b) {\n s.push(pop(s) + \"skewX(\" + b + degParen);\n }\n }\n\n function scale(xa, ya, xb, yb, s, q) {\n if (xa !== xb || ya !== yb) {\n var i = s.push(pop(s) + \"scale(\", null, \",\", null, \")\");\n q.push({i: i - 4, x: number(xa, xb)}, {i: i - 2, x: number(ya, yb)});\n } else if (xb !== 1 || yb !== 1) {\n s.push(pop(s) + \"scale(\" + xb + \",\" + yb + \")\");\n }\n }\n\n return function(a, b) {\n var s = [], // string constants and placeholders\n q = []; // number interpolators\n a = parse(a), b = parse(b);\n translate(a.translateX, a.translateY, b.translateX, b.translateY, s, q);\n rotate(a.rotate, b.rotate, s, q);\n skewX(a.skewX, b.skewX, s, q);\n scale(a.scaleX, a.scaleY, b.scaleX, b.scaleY, s, q);\n a = b = null; // gc\n return function(t) {\n var i = -1, n = q.length, o;\n while (++i < n) s[(o = q[i]).i] = o.x(t);\n return s.join(\"\");\n };\n };\n}\n\nexport var interpolateTransformCss = interpolateTransform(parseCss, \"px, \", \"px)\", \"deg)\");\nexport var interpolateTransformSvg = interpolateTransform(parseSvg, \", \", \")\", \")\");\n"],"names":["interpolateTransform","parse","pxComma","pxParen","degParen","pop","s","translate","xa","ya","xb","yb","q","i","number","rotate","a","b","skewX","scale","t","n","o","interpolateTransformCss","parseCss","interpolateTransformSvg","parseSvg"],"mappings":"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","x_google_ignoreList":[0]}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import o, { identity as i } from "./decompose.js";
|
|
2
|
-
var n;
|
|
3
|
-
function s(t) {
|
|
4
|
-
const r = new (typeof DOMMatrix == "function" ? DOMMatrix : WebKitCSSMatrix)(t + "");
|
|
5
|
-
return r.isIdentity ? i : o(r.a, r.b, r.c, r.d, r.e, r.f);
|
|
6
|
-
}
|
|
7
|
-
function f(t) {
|
|
8
|
-
return t == null ? i : (n || (n = document.createElementNS("http://www.w3.org/2000/svg", "g")), n.setAttribute("transform", t), (t = n.transform.baseVal.consolidate()) ? (t = t.matrix, o(t.a, t.b, t.c, t.d, t.e, t.f)) : i);
|
|
9
|
-
}
|
|
10
|
-
export {
|
|
11
|
-
s as parseCss,
|
|
12
|
-
f as parseSvg
|
|
13
|
-
};
|
|
14
|
-
//# sourceMappingURL=parse.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parse.js","sources":["../../../../../../../../../../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/transform/parse.js"],"sourcesContent":["import decompose, {identity} from \"./decompose.js\";\n\nvar svgNode;\n\n/* eslint-disable no-undef */\nexport function parseCss(value) {\n const m = new (typeof DOMMatrix === \"function\" ? DOMMatrix : WebKitCSSMatrix)(value + \"\");\n return m.isIdentity ? identity : decompose(m.a, m.b, m.c, m.d, m.e, m.f);\n}\n\nexport function parseSvg(value) {\n if (value == null) return identity;\n if (!svgNode) svgNode = document.createElementNS(\"http://www.w3.org/2000/svg\", \"g\");\n svgNode.setAttribute(\"transform\", value);\n if (!(value = svgNode.transform.baseVal.consolidate())) return identity;\n value = value.matrix;\n return decompose(value.a, value.b, value.c, value.d, value.e, value.f);\n}\n"],"names":["svgNode","parseCss","value","m","identity","decompose","parseSvg"],"mappings":";AAEA,IAAIA;AAGG,SAASC,EAASC,GAAO;AAC9B,QAAMC,IAAI,KAAK,OAAO,aAAc,aAAa,YAAY,iBAAiBD,IAAQ,EAAE;AACxF,SAAOC,EAAE,aAAaC,IAAWC,EAAUF,EAAE,GAAGA,EAAE,GAAGA,EAAE,GAAGA,EAAE,GAAGA,EAAE,GAAGA,EAAE,CAAC;AACzE;AAEO,SAASG,EAASJ,GAAO;AAC9B,SAAIA,KAAS,OAAaE,KACrBJ,MAASA,IAAU,SAAS,gBAAgB,8BAA8B,GAAG,IAClFA,EAAQ,aAAa,aAAaE,CAAK,IACjCA,IAAQF,EAAQ,UAAU,QAAQ,YAAW,MACnDE,IAAQA,EAAM,QACPG,EAAUH,EAAM,GAAGA,EAAM,GAAGA,EAAM,GAAGA,EAAM,GAAGA,EAAM,GAAGA,EAAM,CAAC,KAFNE;AAGjE;","x_google_ignoreList":[0]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"timeout.js","sources":["../../../../../../../../../../node_modules/.pnpm/d3-timer@3.0.1/node_modules/d3-timer/src/timeout.js"],"sourcesContent":["import {Timer} from \"./timer.js\";\n\nexport default function(callback, delay, time) {\n var t = new Timer;\n delay = delay == null ? 0 : +delay;\n t.restart(elapsed => {\n t.stop();\n callback(elapsed + delay);\n }, delay, time);\n return t;\n}\n"],"names":["timeout","callback","delay","time","t","Timer","elapsed"],"mappings":";AAEe,SAAAA,EAASC,GAAUC,GAAOC,GAAM;AAC7C,MAAIC,IAAI,IAAIC;AACZ,SAAAH,IAAQA,KAAS,OAAO,IAAI,CAACA,GAC7BE,EAAE,QAAQ,CAAAE,MAAW;AACnB,IAAAF,EAAE,KAAM,GACRH,EAASK,IAAUJ,CAAK;AAAA,EAC5B,GAAKA,GAAOC,CAAI,GACPC;AACT;","x_google_ignoreList":[0]}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
var r = 0, a = 0, l = 0, p = 1e3, s, f, u = 0, i = 0, w = 0, c = typeof performance == "object" && performance.now ? performance : Date, y = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(t) {
|
|
2
|
-
setTimeout(t, 17);
|
|
3
|
-
};
|
|
4
|
-
function k() {
|
|
5
|
-
return i || (y(d), i = c.now() + w);
|
|
6
|
-
}
|
|
7
|
-
function d() {
|
|
8
|
-
i = 0;
|
|
9
|
-
}
|
|
10
|
-
function _() {
|
|
11
|
-
this._call = this._time = this._next = null;
|
|
12
|
-
}
|
|
13
|
-
_.prototype = v.prototype = {
|
|
14
|
-
constructor: _,
|
|
15
|
-
restart: function(t, n, e) {
|
|
16
|
-
if (typeof t != "function") throw new TypeError("callback is not a function");
|
|
17
|
-
e = (e == null ? k() : +e) + (n == null ? 0 : +n), !this._next && f !== this && (f ? f._next = this : s = this, f = this), this._call = t, this._time = e, m();
|
|
18
|
-
},
|
|
19
|
-
stop: function() {
|
|
20
|
-
this._call && (this._call = null, this._time = 1 / 0, m());
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
function v(t, n, e) {
|
|
24
|
-
var o = new _();
|
|
25
|
-
return o.restart(t, n, e), o;
|
|
26
|
-
}
|
|
27
|
-
function x() {
|
|
28
|
-
k(), ++r;
|
|
29
|
-
for (var t = s, n; t; )
|
|
30
|
-
(n = i - t._time) >= 0 && t._call.call(void 0, n), t = t._next;
|
|
31
|
-
--r;
|
|
32
|
-
}
|
|
33
|
-
function h() {
|
|
34
|
-
i = (u = c.now()) + w, r = a = 0;
|
|
35
|
-
try {
|
|
36
|
-
x();
|
|
37
|
-
} finally {
|
|
38
|
-
r = 0, I(), i = 0;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
function T() {
|
|
42
|
-
var t = c.now(), n = t - u;
|
|
43
|
-
n > p && (w -= n, u = t);
|
|
44
|
-
}
|
|
45
|
-
function I() {
|
|
46
|
-
for (var t, n = s, e, o = 1 / 0; n; )
|
|
47
|
-
n._call ? (o > n._time && (o = n._time), t = n, n = n._next) : (e = n._next, n._next = null, n = t ? t._next = e : s = e);
|
|
48
|
-
f = t, m(o);
|
|
49
|
-
}
|
|
50
|
-
function m(t) {
|
|
51
|
-
if (!r) {
|
|
52
|
-
a && (a = clearTimeout(a));
|
|
53
|
-
var n = t - i;
|
|
54
|
-
n > 24 ? (t < 1 / 0 && (a = setTimeout(h, t - c.now() - w)), l && (l = clearInterval(l))) : (l || (u = c.now(), l = setInterval(T, p)), r = 1, y(h));
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
export {
|
|
58
|
-
_ as Timer,
|
|
59
|
-
k as now,
|
|
60
|
-
v as timer,
|
|
61
|
-
x as timerFlush
|
|
62
|
-
};
|
|
63
|
-
//# sourceMappingURL=timer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"timer.js","sources":["../../../../../../../../../../node_modules/.pnpm/d3-timer@3.0.1/node_modules/d3-timer/src/timer.js"],"sourcesContent":["var frame = 0, // is an animation frame pending?\n timeout = 0, // is a timeout pending?\n interval = 0, // are any timers active?\n pokeDelay = 1000, // how frequently we check for clock skew\n taskHead,\n taskTail,\n clockLast = 0,\n clockNow = 0,\n clockSkew = 0,\n clock = typeof performance === \"object\" && performance.now ? performance : Date,\n setFrame = typeof window === \"object\" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(f) { setTimeout(f, 17); };\n\nexport function now() {\n return clockNow || (setFrame(clearNow), clockNow = clock.now() + clockSkew);\n}\n\nfunction clearNow() {\n clockNow = 0;\n}\n\nexport function Timer() {\n this._call =\n this._time =\n this._next = null;\n}\n\nTimer.prototype = timer.prototype = {\n constructor: Timer,\n restart: function(callback, delay, time) {\n if (typeof callback !== \"function\") throw new TypeError(\"callback is not a function\");\n time = (time == null ? now() : +time) + (delay == null ? 0 : +delay);\n if (!this._next && taskTail !== this) {\n if (taskTail) taskTail._next = this;\n else taskHead = this;\n taskTail = this;\n }\n this._call = callback;\n this._time = time;\n sleep();\n },\n stop: function() {\n if (this._call) {\n this._call = null;\n this._time = Infinity;\n sleep();\n }\n }\n};\n\nexport function timer(callback, delay, time) {\n var t = new Timer;\n t.restart(callback, delay, time);\n return t;\n}\n\nexport function timerFlush() {\n now(); // Get the current time, if not already set.\n ++frame; // Pretend we’ve set an alarm, if we haven’t already.\n var t = taskHead, e;\n while (t) {\n if ((e = clockNow - t._time) >= 0) t._call.call(undefined, e);\n t = t._next;\n }\n --frame;\n}\n\nfunction wake() {\n clockNow = (clockLast = clock.now()) + clockSkew;\n frame = timeout = 0;\n try {\n timerFlush();\n } finally {\n frame = 0;\n nap();\n clockNow = 0;\n }\n}\n\nfunction poke() {\n var now = clock.now(), delay = now - clockLast;\n if (delay > pokeDelay) clockSkew -= delay, clockLast = now;\n}\n\nfunction nap() {\n var t0, t1 = taskHead, t2, time = Infinity;\n while (t1) {\n if (t1._call) {\n if (time > t1._time) time = t1._time;\n t0 = t1, t1 = t1._next;\n } else {\n t2 = t1._next, t1._next = null;\n t1 = t0 ? t0._next = t2 : taskHead = t2;\n }\n }\n taskTail = t0;\n sleep(time);\n}\n\nfunction sleep(time) {\n if (frame) return; // Soonest alarm already set, or will be.\n if (timeout) timeout = clearTimeout(timeout);\n var delay = time - clockNow; // Strictly less than if we recomputed clockNow.\n if (delay > 24) {\n if (time < Infinity) timeout = setTimeout(wake, time - clock.now() - clockSkew);\n if (interval) interval = clearInterval(interval);\n } else {\n if (!interval) clockLast = clock.now(), interval = setInterval(poke, pokeDelay);\n frame = 1, setFrame(wake);\n }\n}\n"],"names":["frame","timeout","interval","pokeDelay","taskHead","taskTail","clockLast","clockNow","clockSkew","clock","setFrame","f","now","clearNow","Timer","timer","callback","delay","time","sleep","t","timerFlush","e","wake","nap","poke","t0","t1","t2"],"mappings":"AAAA,IAAIA,IAAQ,GACRC,IAAU,GACVC,IAAW,GACXC,IAAY,KACZC,GACAC,GACAC,IAAY,GACZC,IAAW,GACXC,IAAY,GACZC,IAAQ,OAAO,eAAgB,YAAY,YAAY,MAAM,cAAc,MAC3EC,IAAW,OAAO,UAAW,YAAY,OAAO,wBAAwB,OAAO,sBAAsB,KAAK,MAAM,IAAI,SAASC,GAAG;AAAE,aAAWA,GAAG,EAAE;AAAI;AAEnJ,SAASC,IAAM;AACpB,SAAOL,MAAaG,EAASG,CAAQ,GAAGN,IAAWE,EAAM,IAAK,IAAGD;AACnE;AAEA,SAASK,IAAW;AAClB,EAAAN,IAAW;AACb;AAEO,SAASO,IAAQ;AACtB,OAAK,QACL,KAAK,QACL,KAAK,QAAQ;AACf;AAEAA,EAAM,YAAYC,EAAM,YAAY;AAAA,EAClC,aAAaD;AAAA,EACb,SAAS,SAASE,GAAUC,GAAOC,GAAM;AACvC,QAAI,OAAOF,KAAa,WAAY,OAAM,IAAI,UAAU,4BAA4B;AACpF,IAAAE,KAAQA,KAAQ,OAAON,EAAK,IAAG,CAACM,MAASD,KAAS,OAAO,IAAI,CAACA,IAC1D,CAAC,KAAK,SAASZ,MAAa,SAC1BA,IAAUA,EAAS,QAAQ,OAC1BD,IAAW,MAChBC,IAAW,OAEb,KAAK,QAAQW,GACb,KAAK,QAAQE,GACbC,EAAO;AAAA,EACR;AAAA,EACD,MAAM,WAAW;AACf,IAAI,KAAK,UACP,KAAK,QAAQ,MACb,KAAK,QAAQ,OACbA,EAAO;AAAA,EAEb;AACA;AAEO,SAASJ,EAAMC,GAAUC,GAAOC,GAAM;AAC3C,MAAIE,IAAI,IAAIN;AACZ,SAAAM,EAAE,QAAQJ,GAAUC,GAAOC,CAAI,GACxBE;AACT;AAEO,SAASC,IAAa;AAC3B,EAAAT,KACA,EAAEZ;AAEF,WADI,IAAII,GAAUkB,GACX;AACL,KAAKA,IAAIf,IAAW,EAAE,UAAU,KAAG,EAAE,MAAM,KAAK,QAAWe,CAAC,GAC5D,IAAI,EAAE;AAER,IAAEtB;AACJ;AAEA,SAASuB,IAAO;AACd,EAAAhB,KAAYD,IAAYG,EAAM,IAAK,KAAID,GACvCR,IAAQC,IAAU;AAClB,MAAI;AACF,IAAAoB,EAAY;AAAA,EAChB,UAAY;AACR,IAAArB,IAAQ,GACRwB,EAAK,GACLjB,IAAW;AAAA,EACf;AACA;AAEA,SAASkB,IAAO;AACd,MAAIb,IAAMH,EAAM,IAAK,GAAEQ,IAAQL,IAAMN;AACrC,EAAIW,IAAQd,MAAWK,KAAaS,GAAOX,IAAYM;AACzD;AAEA,SAASY,IAAM;AAEb,WADIE,GAAIC,IAAKvB,GAAUwB,GAAIV,IAAO,OAC3BS;AACL,IAAIA,EAAG,SACDT,IAAOS,EAAG,UAAOT,IAAOS,EAAG,QAC/BD,IAAKC,GAAIA,IAAKA,EAAG,UAEjBC,IAAKD,EAAG,OAAOA,EAAG,QAAQ,MAC1BA,IAAKD,IAAKA,EAAG,QAAQE,IAAKxB,IAAWwB;AAGzC,EAAAvB,IAAWqB,GACXP,EAAMD,CAAI;AACZ;AAEA,SAASC,EAAMD,GAAM;AACnB,MAAI,CAAAlB,GACJ;AAAA,IAAIC,MAASA,IAAU,aAAaA,CAAO;AAC3C,QAAIgB,IAAQC,IAAOX;AACnB,IAAIU,IAAQ,MACNC,IAAO,UAAUjB,IAAU,WAAWsB,GAAML,IAAOT,EAAM,IAAK,IAAGD,CAAS,IAC1EN,MAAUA,IAAW,cAAcA,CAAQ,OAE1CA,MAAUI,IAAYG,EAAM,IAAK,GAAEP,IAAW,YAAYuB,GAAMtB,CAAS,IAC9EH,IAAQ,GAAGU,EAASa,CAAI;AAAA;AAE5B;","x_google_ignoreList":[0]}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { STARTING as u, ENDING as s, ENDED as c } from "./transition/schedule.js";
|
|
2
|
-
function o(e, i) {
|
|
3
|
-
var r = e.__transition, t, a, n = !0, l;
|
|
4
|
-
if (r) {
|
|
5
|
-
i = i == null ? null : i + "";
|
|
6
|
-
for (l in r) {
|
|
7
|
-
if ((t = r[l]).name !== i) {
|
|
8
|
-
n = !1;
|
|
9
|
-
continue;
|
|
10
|
-
}
|
|
11
|
-
a = t.state > u && t.state < s, t.state = c, t.timer.stop(), t.on.call(a ? "interrupt" : "cancel", e, e.__data__, t.index, t.group), delete r[l];
|
|
12
|
-
}
|
|
13
|
-
n && delete e.__transition;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
export {
|
|
17
|
-
o as default
|
|
18
|
-
};
|
|
19
|
-
//# sourceMappingURL=interrupt.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"interrupt.js","sources":["../../../../../../../../../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/interrupt.js"],"sourcesContent":["import {STARTING, ENDING, ENDED} from \"./transition/schedule.js\";\n\nexport default function(node, name) {\n var schedules = node.__transition,\n schedule,\n active,\n empty = true,\n i;\n\n if (!schedules) return;\n\n name = name == null ? null : name + \"\";\n\n for (i in schedules) {\n if ((schedule = schedules[i]).name !== name) { empty = false; continue; }\n active = schedule.state > STARTING && schedule.state < ENDING;\n schedule.state = ENDED;\n schedule.timer.stop();\n schedule.on.call(active ? \"interrupt\" : \"cancel\", node, node.__data__, schedule.index, schedule.group);\n delete schedules[i];\n }\n\n if (empty) delete node.__transition;\n}\n"],"names":["interrupt","node","name","schedules","schedule","active","empty","i","STARTING","ENDING","ENDED"],"mappings":";AAEe,SAAAA,EAASC,GAAMC,GAAM;AAClC,MAAIC,IAAYF,EAAK,cACjBG,GACAC,GACAC,IAAQ,IACRC;AAEJ,MAAKJ,GAEL;AAAA,IAAAD,IAAOA,KAAQ,OAAO,OAAOA,IAAO;AAEpC,SAAKK,KAAKJ,GAAW;AACnB,WAAKC,IAAWD,EAAUI,CAAC,GAAG,SAASL,GAAM;AAAE,QAAAI,IAAQ;AAAO;AAAA,MAAS;AACvE,MAAAD,IAASD,EAAS,QAAQI,KAAYJ,EAAS,QAAQK,GACvDL,EAAS,QAAQM,GACjBN,EAAS,MAAM,KAAM,GACrBA,EAAS,GAAG,KAAKC,IAAS,cAAc,UAAUJ,GAAMA,EAAK,UAAUG,EAAS,OAAOA,EAAS,KAAK,GACrG,OAAOD,EAAUI,CAAC;AAAA,IACtB;AAEE,IAAID,KAAO,OAAOL,EAAK;AAAA;AACzB;","x_google_ignoreList":[0]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../../../../../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/selection/index.js"],"sourcesContent":["import {selection} from \"d3-selection\";\nimport selection_interrupt from \"./interrupt.js\";\nimport selection_transition from \"./transition.js\";\n\nselection.prototype.interrupt = selection_interrupt;\nselection.prototype.transition = selection_transition;\n"],"names":["selection","selection_interrupt","selection_transition"],"mappings":";;;AAIAA,EAAU,UAAU,YAAYC;AAChCD,EAAU,UAAU,aAAaE;","x_google_ignoreList":[0]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"interrupt.js","sources":["../../../../../../../../../../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/selection/interrupt.js"],"sourcesContent":["import interrupt from \"../interrupt.js\";\n\nexport default function(name) {\n return this.each(function() {\n interrupt(this, name);\n });\n}\n"],"names":["selection_interrupt","name","interrupt"],"mappings":";AAEe,SAAQA,EAACC,GAAM;AAC5B,SAAO,KAAK,KAAK,WAAW;AAC1B,IAAAC,EAAU,MAAMD,CAAI;AAAA,EACxB,CAAG;AACH;","x_google_ignoreList":[0]}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Transition as s, newId as h } from "../transition/index.js";
|
|
2
|
-
import c from "../transition/schedule.js";
|
|
3
|
-
import { now as _ } from "../../../../../d3-timer@3.0.1/node_modules/d3-timer/src/timer.js";
|
|
4
|
-
import { cubicInOut as m } from "../../../../../d3-ease@3.0.1/node_modules/d3-ease/src/cubic.js";
|
|
5
|
-
var w = {
|
|
6
|
-
time: null,
|
|
7
|
-
// Set on use.
|
|
8
|
-
delay: 0,
|
|
9
|
-
duration: 250,
|
|
10
|
-
ease: m
|
|
11
|
-
};
|
|
12
|
-
function d(t, i) {
|
|
13
|
-
for (var r; !(r = t.__transition) || !(r = r[i]); )
|
|
14
|
-
if (!(t = t.parentNode))
|
|
15
|
-
throw new Error(`transition ${i} not found`);
|
|
16
|
-
return r;
|
|
17
|
-
}
|
|
18
|
-
function T(t) {
|
|
19
|
-
var i, r;
|
|
20
|
-
t instanceof s ? (i = t._id, t = t._name) : (i = h(), (r = w).time = _(), t = t == null ? null : t + "");
|
|
21
|
-
for (var o = this._groups, a = o.length, e = 0; e < a; ++e)
|
|
22
|
-
for (var f = o[e], u = f.length, l, n = 0; n < u; ++n)
|
|
23
|
-
(l = f[n]) && c(l, t, i, n, f, r || d(l, i));
|
|
24
|
-
return new s(o, this._parents, t, i);
|
|
25
|
-
}
|
|
26
|
-
export {
|
|
27
|
-
T as default
|
|
28
|
-
};
|
|
29
|
-
//# sourceMappingURL=transition.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"transition.js","sources":["../../../../../../../../../../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/selection/transition.js"],"sourcesContent":["import {Transition, newId} from \"../transition/index.js\";\nimport schedule from \"../transition/schedule.js\";\nimport {easeCubicInOut} from \"d3-ease\";\nimport {now} from \"d3-timer\";\n\nvar defaultTiming = {\n time: null, // Set on use.\n delay: 0,\n duration: 250,\n ease: easeCubicInOut\n};\n\nfunction inherit(node, id) {\n var timing;\n while (!(timing = node.__transition) || !(timing = timing[id])) {\n if (!(node = node.parentNode)) {\n throw new Error(`transition ${id} not found`);\n }\n }\n return timing;\n}\n\nexport default function(name) {\n var id,\n timing;\n\n if (name instanceof Transition) {\n id = name._id, name = name._name;\n } else {\n id = newId(), (timing = defaultTiming).time = now(), name = name == null ? null : name + \"\";\n }\n\n for (var groups = this._groups, m = groups.length, j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) {\n if (node = group[i]) {\n schedule(node, name, id, i, group, timing || inherit(node, id));\n }\n }\n }\n\n return new Transition(groups, this._parents, name, id);\n}\n"],"names":["defaultTiming","easeCubicInOut","inherit","node","id","timing","selection_transition","name","Transition","newId","now","groups","m","j","group","n","i","schedule"],"mappings":";;;;AAKA,IAAIA,IAAgB;AAAA,EAClB,MAAM;AAAA;AAAA,EACN,OAAO;AAAA,EACP,UAAU;AAAA,EACV,MAAMC;AACR;AAEA,SAASC,EAAQC,GAAMC,GAAI;AAEzB,WADIC,GACG,EAAEA,IAASF,EAAK,iBAAiB,EAAEE,IAASA,EAAOD,CAAE;AAC1D,QAAI,EAAED,IAAOA,EAAK;AAChB,YAAM,IAAI,MAAM,cAAcC,CAAE,YAAY;AAGhD,SAAOC;AACT;AAEe,SAAQC,EAACC,GAAM;AAC5B,MAAIH,GACAC;AAEJ,EAAIE,aAAgBC,KAClBJ,IAAKG,EAAK,KAAKA,IAAOA,EAAK,UAE3BH,IAAKK,EAAO,IAAGJ,IAASL,GAAe,OAAOU,EAAK,GAAEH,IAAOA,KAAQ,OAAO,OAAOA,IAAO;AAG3F,WAASI,IAAS,KAAK,SAASC,IAAID,EAAO,QAAQE,IAAI,GAAGA,IAAID,GAAG,EAAEC;AACjE,aAASC,IAAQH,EAAOE,CAAC,GAAGE,IAAID,EAAM,QAAQX,GAAMa,IAAI,GAAGA,IAAID,GAAG,EAAEC;AAClE,OAAIb,IAAOW,EAAME,CAAC,MAChBC,EAASd,GAAMI,GAAMH,GAAIY,GAAGF,GAAOT,KAAUH,EAAQC,GAAMC,CAAE,CAAC;AAKpE,SAAO,IAAII,EAAWG,GAAQ,KAAK,UAAUJ,GAAMH,CAAE;AACvD;","x_google_ignoreList":[0]}
|