@semcore/d3-chart 2.8.2 → 2.8.4
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/CHANGELOG.md +16 -2
- package/lib/cjs/Area.js +10 -10
- package/lib/cjs/Axis.js +14 -14
- package/lib/cjs/Bar.js +9 -9
- package/lib/cjs/Bubble.js +19 -14
- package/lib/cjs/Bubble.js.map +1 -1
- package/lib/cjs/Donut.js +8 -8
- package/lib/cjs/Dots.js +10 -10
- package/lib/cjs/HorizontalBar.js +9 -9
- package/lib/cjs/Hover.js +4 -4
- package/lib/cjs/Line.js +9 -9
- package/lib/cjs/Plot.js +4 -4
- package/lib/cjs/RadialTree.js +56 -39
- package/lib/cjs/RadialTree.js.map +1 -1
- package/lib/cjs/ReferenceLine.js +10 -10
- package/lib/cjs/ScatterPlot.js +14 -10
- package/lib/cjs/ScatterPlot.js.map +1 -1
- package/lib/cjs/Tooltip.js +8 -8
- package/lib/cjs/Venn.js +8 -8
- package/lib/cjs/a11y/PlotA11yModule.js +3 -3
- package/lib/cjs/a11y/PlotA11yView.js +4 -4
- package/lib/cjs/style/bubble.shadow.css +12 -0
- package/lib/cjs/style/radial-tree.shadow.css +17 -0
- package/lib/cjs/style/scatterplot.shadow.css +8 -0
- package/lib/cjs/types/Area.d.js.map +1 -1
- package/lib/cjs/types/Bar.d.js.map +1 -1
- package/lib/cjs/types/Bubble.d.js.map +1 -1
- package/lib/cjs/types/Donut.d.js.map +1 -1
- package/lib/cjs/types/HorizontalBar.d.js.map +1 -1
- package/lib/cjs/types/Line.d.js.map +1 -1
- package/lib/cjs/types/ScatterPlot.d.js.map +1 -1
- package/lib/cjs/types/Venn.d.js.map +1 -1
- package/lib/es6/Area.js +10 -10
- package/lib/es6/Axis.js +14 -14
- package/lib/es6/Bar.js +9 -9
- package/lib/es6/Bubble.js +19 -14
- package/lib/es6/Bubble.js.map +1 -1
- package/lib/es6/Donut.js +8 -8
- package/lib/es6/Dots.js +10 -10
- package/lib/es6/HorizontalBar.js +9 -9
- package/lib/es6/Hover.js +4 -4
- package/lib/es6/Line.js +9 -9
- package/lib/es6/Plot.js +4 -4
- package/lib/es6/RadialTree.js +56 -39
- package/lib/es6/RadialTree.js.map +1 -1
- package/lib/es6/ReferenceLine.js +10 -10
- package/lib/es6/ScatterPlot.js +14 -10
- package/lib/es6/ScatterPlot.js.map +1 -1
- package/lib/es6/Tooltip.js +8 -8
- package/lib/es6/Venn.js +8 -8
- package/lib/es6/a11y/PlotA11yModule.js +3 -3
- package/lib/es6/a11y/PlotA11yView.js +4 -4
- package/lib/es6/style/bubble.shadow.css +12 -0
- package/lib/es6/style/radial-tree.shadow.css +17 -0
- package/lib/es6/style/scatterplot.shadow.css +8 -0
- package/lib/es6/types/Area.d.js.map +1 -1
- package/lib/es6/types/Bar.d.js.map +1 -1
- package/lib/es6/types/Bubble.d.js.map +1 -1
- package/lib/es6/types/Donut.d.js.map +1 -1
- package/lib/es6/types/HorizontalBar.d.js.map +1 -1
- package/lib/es6/types/Line.d.js.map +1 -1
- package/lib/es6/types/ScatterPlot.d.js.map +1 -1
- package/lib/es6/types/Venn.d.js.map +1 -1
- package/lib/types/Area.d.ts +2 -2
- package/lib/types/Bar.d.ts +1 -1
- package/lib/types/Bubble.d.ts +2 -0
- package/lib/types/Donut.d.ts +1 -1
- package/lib/types/HorizontalBar.d.ts +1 -1
- package/lib/types/Line.d.ts +1 -1
- package/lib/types/RadialTree.d.ts +9 -0
- package/lib/types/ScatterPlot.d.ts +2 -0
- package/lib/types/Venn.d.ts +2 -2
- package/package.json +1 -1
package/lib/cjs/Venn.js
CHANGED
|
@@ -48,17 +48,17 @@ var style = (
|
|
|
48
48
|
/*__reshadow_css_start__*/
|
|
49
49
|
_core.sstyled.insert(
|
|
50
50
|
/*__inner_css_start__*/
|
|
51
|
-
".
|
|
51
|
+
".___SCircle_xa7ap_gg_{fill:var(--intergalactic-chart-palette-order-green,#59ddaa);stroke:var(--intergalactic-chart-grid-border,#fff);stroke-width:2px;fill-opacity:.5;transition-property:cx,cy;transition-duration:var(--duration_xa7ap);transition-timing-function:ease-in-out}.___SCircle_xa7ap_gg_:hover{fill-opacity:.7}.___SCircle_xa7ap_gg_.__color_xa7ap_gg_{fill:var(--color_xa7ap)}.___SCircle_xa7ap_gg_.__transparent_xa7ap_gg_{opacity:.3}.___SIntersection_xa7ap_gg_{stroke:var(--intergalactic-chart-grid-border,#fff);stroke-width:2px;fill-opacity:0}.___SIntersection_xa7ap_gg_:hover{fill-opacity:.1}.___SIntersection_xa7ap_gg_.__transparent_xa7ap_gg_{opacity:.3}"
|
|
52
52
|
/*__inner_css_end__*/
|
|
53
|
-
, "
|
|
53
|
+
, "xa7ap_gg_")
|
|
54
54
|
/*__reshadow_css_end__*/
|
|
55
55
|
, {
|
|
56
|
-
"__SCircle": "
|
|
57
|
-
"--duration": "--
|
|
58
|
-
"_color": "
|
|
59
|
-
"--color": "--
|
|
60
|
-
"_transparent": "
|
|
61
|
-
"__SIntersection": "
|
|
56
|
+
"__SCircle": "___SCircle_xa7ap_gg_",
|
|
57
|
+
"--duration": "--duration_xa7ap",
|
|
58
|
+
"_color": "__color_xa7ap_gg_",
|
|
59
|
+
"--color": "--color_xa7ap",
|
|
60
|
+
"_transparent": "__transparent_xa7ap_gg_",
|
|
61
|
+
"__SIntersection": "___SIntersection_xa7ap_gg_"
|
|
62
62
|
});
|
|
63
63
|
|
|
64
64
|
var VennRoot = /*#__PURE__*/function (_Component) {
|
|
@@ -40,12 +40,12 @@ var styles = (
|
|
|
40
40
|
/*__reshadow_css_start__*/
|
|
41
41
|
_core.sstyled.insert(
|
|
42
42
|
/*__inner_css_start__*/
|
|
43
|
-
".
|
|
43
|
+
".___SPlotA11yModule_1x7xe_gg_{-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;opacity:0}.___SPlotA11yModule_1x7xe_gg_:focus{-webkit-user-select:all;-moz-user-select:all;user-select:all;pointer-events:all;opacity:1}"
|
|
44
44
|
/*__inner_css_end__*/
|
|
45
|
-
, "
|
|
45
|
+
, "1x7xe_gg_")
|
|
46
46
|
/*__reshadow_css_end__*/
|
|
47
47
|
, {
|
|
48
|
-
"__SPlotA11yModule": "
|
|
48
|
+
"__SPlotA11yModule": "___SPlotA11yModule_1x7xe_gg_"
|
|
49
49
|
});
|
|
50
50
|
var globalWasFocused = false;
|
|
51
51
|
var globalNavWithKeyboard = false;
|
|
@@ -48,13 +48,13 @@ var styles = (
|
|
|
48
48
|
/*__reshadow_css_start__*/
|
|
49
49
|
_core.sstyled.insert(
|
|
50
50
|
/*__inner_css_start__*/
|
|
51
|
-
".
|
|
51
|
+
".___SPlotA11yView_aj64e_gg_{-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;opacity:0;background-color:var(--intergalactic-bg-primary-neutral,#fff);color:var(--intergalactic-text-primary,#191b23);border:3px solid var(--intergalactic-border-primary,#c4c7cf);font-size:var(--intergalactic-fs-50,10px);padding:2px;width:200px;height:200px;max-width:80%;max-height:80%;overflow:auto}.___SPlotA11yView_aj64e_gg_:focus,.___SPlotA11yView_aj64e_gg_.__focus-within_aj64e_gg_{-webkit-user-select:all;-moz-user-select:all;user-select:all;pointer-events:all;opacity:1;z-index:var(--intergalactic-z-index-overlay,500);position:relative;display:block}.___SPlotA11yView_aj64e_gg_:focus,.___SPlotA11yView_aj64e_gg_:focus-within{-webkit-user-select:all;-moz-user-select:all;user-select:all;pointer-events:all;opacity:1;z-index:var(--intergalactic-z-index-overlay,500);position:relative;display:block}.___SPlotA11yView_aj64e_gg_ a{cursor:pointer;text-decoration:underline;margin-bottom:var(--intergalactic-spacing-2x,8px);display:block}.___SPlotA11yView_aj64e_gg_ table,.___SPlotA11yView_aj64e_gg_ td,.___SPlotA11yView_aj64e_gg_ th{border:1px solid var(--intergalactic-border-primary,#c4c7cf)}"
|
|
52
52
|
/*__inner_css_end__*/
|
|
53
|
-
, "
|
|
53
|
+
, "aj64e_gg_")
|
|
54
54
|
/*__reshadow_css_end__*/
|
|
55
55
|
, {
|
|
56
|
-
"__SPlotA11yView": "
|
|
57
|
-
"_focus-within": "__focus-
|
|
56
|
+
"__SPlotA11yView": "___SPlotA11yView_aj64e_gg_",
|
|
57
|
+
"_focus-within": "__focus-within_aj64e_gg_"
|
|
58
58
|
});
|
|
59
59
|
|
|
60
60
|
var PlotA11yView = function PlotA11yView(_ref3) {
|
|
@@ -17,6 +17,10 @@ SBubble[color] {
|
|
|
17
17
|
fill: var(--color);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
SBubble[transparent] {
|
|
21
|
+
opacity: 0.3;
|
|
22
|
+
}
|
|
23
|
+
|
|
20
24
|
SCenter {
|
|
21
25
|
text-anchor: middle;
|
|
22
26
|
/* disable-tokens-validator */
|
|
@@ -28,6 +32,10 @@ SCenter[color] {
|
|
|
28
32
|
stroke: var(--color);
|
|
29
33
|
}
|
|
30
34
|
|
|
35
|
+
SCenter[transparent] {
|
|
36
|
+
opacity: 0.3;
|
|
37
|
+
}
|
|
38
|
+
|
|
31
39
|
SLabel {
|
|
32
40
|
fill: var(--intergalactic-chart-palette-order-blue, #2bb3ff);
|
|
33
41
|
}
|
|
@@ -43,3 +51,7 @@ SLabel[position='left'] {
|
|
|
43
51
|
SLabel[color] {
|
|
44
52
|
fill: var(--color);
|
|
45
53
|
}
|
|
54
|
+
|
|
55
|
+
SLabel[transparent] {
|
|
56
|
+
opacity: 0.3;
|
|
57
|
+
}
|
|
@@ -13,14 +13,31 @@ SLine[color] {
|
|
|
13
13
|
stroke: var(--color);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
SLine[transparent] {
|
|
17
|
+
opacity: 0.3;
|
|
18
|
+
}
|
|
19
|
+
|
|
16
20
|
SCap {
|
|
17
21
|
transition: r 0.1s;
|
|
18
22
|
}
|
|
19
23
|
|
|
24
|
+
SCap[transparent] {
|
|
25
|
+
opacity: 0.3;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
SIcon[transparent] {
|
|
29
|
+
opacity: 0.3;
|
|
30
|
+
}
|
|
31
|
+
|
|
20
32
|
SLabel {
|
|
21
33
|
fill: var(--color);
|
|
22
34
|
cursor: var(--text-cursor);
|
|
23
35
|
}
|
|
36
|
+
|
|
37
|
+
SLabel[transparent] {
|
|
38
|
+
opacity: 0.3;
|
|
39
|
+
}
|
|
40
|
+
|
|
24
41
|
SRadian:hover SLabel {
|
|
25
42
|
fill: var(--color-hovered);
|
|
26
43
|
}
|
|
@@ -15,6 +15,10 @@ SScatterPlot[color] {
|
|
|
15
15
|
fill: var(--color);
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
+
SScatterPlot[transparent] {
|
|
19
|
+
opacity: 0.3;
|
|
20
|
+
}
|
|
21
|
+
|
|
18
22
|
SValue {
|
|
19
23
|
text-anchor: middle;
|
|
20
24
|
font-size: var(--intergalactic-fs-50, 10px);
|
|
@@ -24,3 +28,7 @@ SValue {
|
|
|
24
28
|
SValue[color] {
|
|
25
29
|
stroke: var(--color);
|
|
26
30
|
}
|
|
31
|
+
|
|
32
|
+
SValue[transparent] {
|
|
33
|
+
opacity: 0.3;
|
|
34
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Area.d.js","names":[],"sources":["../../../src/types/Area.d.ts"],"sourcesContent":["import { ReturnEl } from '@semcore/core';\nimport { MapProps } from './Plot';\nimport IContext from './context';\nimport { CurveFactory } from 'd3-shape';\n\nexport interface IAreaProps extends IContext {\n /** Field from data for XAxis */\n x?: string;\n /** Field from data for YAxis*/\n y?: string;\n /** Line color\n * @default '#50aef4'*/\n color?: string;\n /** Element hide property */\n hide?: boolean;\n /** Curve method */\n curve?: CurveFactory;\n /** Animation duration in ms\n * @default 500\n */\n duration?: number;\n /**
|
|
1
|
+
{"version":3,"file":"Area.d.js","names":[],"sources":["../../../src/types/Area.d.ts"],"sourcesContent":["import { ReturnEl } from '@semcore/core';\nimport { MapProps } from './Plot';\nimport IContext from './context';\nimport { CurveFactory } from 'd3-shape';\n\nexport interface IAreaProps extends IContext {\n /** Field from data for XAxis */\n x?: string;\n /** Field from data for YAxis*/\n y?: string;\n /** Line color\n * @default '#50aef4'*/\n color?: string;\n /** Element hide property */\n hide?: boolean;\n /** Curve method */\n curve?: CurveFactory;\n /** Animation duration in ms\n * @default 500\n */\n duration?: number;\n /** Enables element transparency */\n transparent?: boolean;\n}\n\nexport interface IAreaDotsProps extends IContext {\n /** Show all Dot */\n display?: boolean;\n /** Hide property */\n hide?: boolean;\n /** Enables element transparency */\n transparent?: boolean;\n}\n\nexport interface IAreaDotsContext {\n /** Value element of data */\n value?: any;\n /** Index element of data */\n index?: number;\n}\n\nexport interface IAreaNullProps extends IContext {\n /** Hide property */\n hide?: boolean;\n}\n\ndeclare const Area: (<T>(props: MapProps<IAreaProps & T>) => ReturnEl) & {\n Dots: <T>(props: MapProps<IAreaDotsProps & T, IAreaDotsContext>) => ReturnEl;\n Null: <T>(props: MapProps<IAreaNullProps & T>) => ReturnEl;\n Line: <T>(props: MapProps<IContext & T>) => ReturnEl;\n};\n\nexport default Area;\n"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Bar.d.js","names":[],"sources":["../../../src/types/Bar.d.ts"],"sourcesContent":["import { ReturnEl } from '@semcore/core';\nimport { MapProps } from './Plot';\nimport IContext from './context';\n\nexport interface IBarProps extends IContext {\n /** Field from data for XAxis */\n x?: string;\n /** Field from data for YAxis */\n y?: string;\n /** Line color\n * @default '#50aef4'*/\n color?: string;\n /** Element hide property */\n hide?: boolean;\n /** Animation duration in ms\n * @default 500\n */\n duration?: number;\n /** Radius of curvature\n * @default 2\n */\n r?: number | number[];\n /** Minimal height\n * @default 4\n */\n hMin?: number;\n /**\n * Bar click handler\n */\n onClick?: (data: { [key: string]: string | number }, event: Event) => void;\n /**
|
|
1
|
+
{"version":3,"file":"Bar.d.js","names":[],"sources":["../../../src/types/Bar.d.ts"],"sourcesContent":["import { ReturnEl } from '@semcore/core';\nimport { MapProps } from './Plot';\nimport IContext from './context';\n\nexport interface IBarProps extends IContext {\n /** Field from data for XAxis */\n x?: string;\n /** Field from data for YAxis */\n y?: string;\n /** Line color\n * @default '#50aef4'*/\n color?: string;\n /** Element hide property */\n hide?: boolean;\n /** Animation duration in ms\n * @default 500\n */\n duration?: number;\n /** Radius of curvature\n * @default 2\n */\n r?: number | number[];\n /** Minimal height\n * @default 4\n */\n hMin?: number;\n /**\n * Bar click handler\n */\n onClick?: (data: { [key: string]: string | number }, event: Event) => void;\n /** Enables element transparency */\n transparent?: boolean;\n}\n\nexport interface IBarContext {\n /** Value element of data */\n value: any;\n /** Index element of data */\n index: number;\n}\n\nexport interface IBackgroundProps extends IContext {\n /** Coordinate x */\n x?: number | string;\n /** Coordinate y */\n y?: number | string;\n /** Value element of data */\n value?: any;\n /** Width rect */\n width?: number | string;\n /** Height rect */\n height?: number | string;\n}\n\ndeclare const Bar: (<T>(props: MapProps<IBarProps & T, IBarContext>) => ReturnEl) & {\n Background: <T>(props: MapProps<IBackgroundProps & T>) => ReturnEl;\n};\n\nexport default Bar;\n"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Bubble.d.js","names":[],"sources":["../../../src/types/Bubble.d.ts"],"sourcesContent":["import { ReturnEl } from '@semcore/core';\nimport { MapProps } from './Plot';\nimport IContext from './context';\n\nexport interface IBubbleProps extends IContext {\n /** Field from data for XAxis */\n x: string;\n /** Field from data for YAxis */\n y: string;\n /** Field from data for circle radius */\n value: string;\n /** Field from data for circle label */\n label?: string;\n /** Circle color */\n color?: string;\n /** Cross in the center of the bubble\n * @default true\n */\n markedCross?: boolean;\n /** Animation duration in ms\n * @default 500\n */\n duration?: number;\n}\n\nexport interface IBubbleContext {\n /** Index element of data */\n index: number;\n}\n\ndeclare const Bubble: <T>(props: MapProps<IBubbleProps & T, IBubbleContext>) => ReturnEl;\n\nexport default Bubble;\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"Bubble.d.js","names":[],"sources":["../../../src/types/Bubble.d.ts"],"sourcesContent":["import { ReturnEl } from '@semcore/core';\nimport { MapProps } from './Plot';\nimport IContext from './context';\n\nexport interface IBubbleProps extends IContext {\n /** Field from data for XAxis */\n x: string;\n /** Field from data for YAxis */\n y: string;\n /** Field from data for circle radius */\n value: string;\n /** Field from data for circle label */\n label?: string;\n /** Circle color */\n color?: string;\n /** Cross in the center of the bubble\n * @default true\n */\n markedCross?: boolean;\n /** Animation duration in ms\n * @default 500\n */\n duration?: number;\n /** Enables element transparency */\n transparent?: boolean;\n}\n\nexport interface IBubbleContext {\n /** Index element of data */\n index: number;\n}\n\ndeclare const Bubble: <T>(props: MapProps<IBubbleProps & T, IBubbleContext>) => ReturnEl;\n\nexport default Bubble;\n"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Donut.d.js","names":[],"sources":["../../../src/types/Donut.d.ts"],"sourcesContent":["import { ReturnEl } from '@semcore/core';\nimport { MapProps } from './Plot';\nimport IContext from './context';\n\nexport interface IDonutProps extends IContext {\n /** Inner radius\n * @default 0\n * */\n innerRadius?: number;\n /** Outer radius\n * @default calculated by the formula from width, height\n * */\n outerRadius?: number;\n /** Semi donut */\n halfsize?: boolean;\n /** Animation duration in ms\n * @default 500\n */\n duration?: number;\n}\n\nexport interface IPieProps extends IContext {\n /**\n * Name of the field in the data\n * */\n dataKey: string;\n /** Color pie\n @default #50aef4\n **/\n color?: string;\n /**\n * Active sector\n * */\n active?: boolean;\n /**
|
|
1
|
+
{"version":3,"file":"Donut.d.js","names":[],"sources":["../../../src/types/Donut.d.ts"],"sourcesContent":["import { ReturnEl } from '@semcore/core';\nimport { MapProps } from './Plot';\nimport IContext from './context';\n\nexport interface IDonutProps extends IContext {\n /** Inner radius\n * @default 0\n * */\n innerRadius?: number;\n /** Outer radius\n * @default calculated by the formula from width, height\n * */\n outerRadius?: number;\n /** Semi donut */\n halfsize?: boolean;\n /** Animation duration in ms\n * @default 500\n */\n duration?: number;\n}\n\nexport interface IPieProps extends IContext {\n /**\n * Name of the field in the data\n * */\n dataKey: string;\n /** Color pie\n @default #50aef4\n **/\n color?: string;\n /**\n * Active sector\n * */\n active?: boolean;\n /** Enables element transparency */\n transparent?: boolean;\n}\n\nexport interface IEmptyDataProps extends IContext {}\n\nexport interface ILabelProps extends IContext {}\n\ndeclare const Donut: (<T>(props: MapProps<IDonutProps & T>) => ReturnEl) & {\n Pie: <T>(props: MapProps<IPieProps & T>) => ReturnEl;\n EmptyData: <T>(props: MapProps<IEmptyDataProps & T>) => ReturnEl;\n Label: <T>(props: MapProps<ILabelProps & T>) => ReturnEl;\n};\n\nexport default Donut;\n"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HorizontalBar.d.js","names":[],"sources":["../../../src/types/HorizontalBar.d.ts"],"sourcesContent":["import { ReturnEl } from '@semcore/core';\nimport { MapProps } from './Plot';\nimport IContext from './context';\nimport { IBarContext, IBackgroundProps } from './Bar';\n\nexport interface IHorizontalBarProps extends IContext {\n /** Field from data for XAxis */\n x?: string;\n /** Field from data for YAxis */\n y?: string;\n /** Line color\n * @default '#50aef4'*/\n color?: string;\n /** Animation duration in ms\n * @default 500\n */\n duration?: number;\n /** Radius of curvature\n * @default 2\n */\n r?: number | number[];\n /**
|
|
1
|
+
{"version":3,"file":"HorizontalBar.d.js","names":[],"sources":["../../../src/types/HorizontalBar.d.ts"],"sourcesContent":["import { ReturnEl } from '@semcore/core';\nimport { MapProps } from './Plot';\nimport IContext from './context';\nimport { IBarContext, IBackgroundProps } from './Bar';\n\nexport interface IHorizontalBarProps extends IContext {\n /** Field from data for XAxis */\n x?: string;\n /** Field from data for YAxis */\n y?: string;\n /** Line color\n * @default '#50aef4'*/\n color?: string;\n /** Animation duration in ms\n * @default 500\n */\n duration?: number;\n /** Radius of curvature\n * @default 2\n */\n r?: number | number[];\n /** Enables element transparency */\n transparent?: boolean;\n}\n\ndeclare const HorizontalBar: (<T>(\n props: MapProps<IHorizontalBarProps & T, IBarContext>,\n) => ReturnEl) & {\n Background: <T>(props: MapProps<IBackgroundProps & T>) => ReturnEl;\n};\n\nexport default HorizontalBar;\n"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Line.d.js","names":[],"sources":["../../../src/types/Line.d.ts"],"sourcesContent":["import { ReturnEl } from '@semcore/core';\nimport { MapProps } from './Plot';\nimport IContext from './context';\nimport { CurveFactory } from 'd3-shape';\nimport { IFadeInOutProps } from '@semcore/animation';\n\nexport interface ILineProps extends IContext {\n /** Field from data for XAxis */\n x?: string;\n /** Field from data for YAxis */\n y?: string;\n /** Line color\n * @default '#50aef4'*/\n color?: string;\n /** Element hide property */\n hide?: boolean;\n /** Curve method */\n curve?: CurveFactory;\n /** Animation duration in ms\n * @default 500\n */\n duration?: number;\n /**
|
|
1
|
+
{"version":3,"file":"Line.d.js","names":[],"sources":["../../../src/types/Line.d.ts"],"sourcesContent":["import { ReturnEl } from '@semcore/core';\nimport { MapProps } from './Plot';\nimport IContext from './context';\nimport { CurveFactory } from 'd3-shape';\nimport { IFadeInOutProps } from '@semcore/animation';\n\nexport interface ILineProps extends IContext {\n /** Field from data for XAxis */\n x?: string;\n /** Field from data for YAxis */\n y?: string;\n /** Line color\n * @default '#50aef4'*/\n color?: string;\n /** Element hide property */\n hide?: boolean;\n /** Curve method */\n curve?: CurveFactory;\n /** Animation duration in ms\n * @default 500\n */\n duration?: number;\n /** Enables element transparency */\n transparent?: boolean;\n}\n\nexport interface ILineDotsProps extends IContext, IFadeInOutProps {\n /** Show all Dot */\n display?: boolean;\n /** Hide property */\n hide?: boolean;\n /** Index active of element */\n activeIndex?: number;\n}\n\nexport interface ILineDotsContext {\n /** Value element of data */\n value?: any;\n /** Index element of data */\n index?: number;\n}\n\nexport interface ILineNullProps extends IContext {\n /** Hide property */\n hide?: boolean;\n}\n\ndeclare const Line: (<T>(props: MapProps<ILineProps & T>) => ReturnEl) & {\n Dots: <T>(props: MapProps<ILineDotsProps & T, ILineDotsContext>) => ReturnEl;\n Null: <T>(props: MapProps<ILineNullProps & T>) => ReturnEl;\n};\n\nexport default Line;\n"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScatterPlot.d.js","names":[],"sources":["../../../src/types/ScatterPlot.d.ts"],"sourcesContent":["import { ReturnEl } from '@semcore/core';\nimport { MapProps } from './Plot';\nimport IContext from './context';\n\nexport interface IScatterPlotProps extends IContext {\n /** Field from data for XAxis */\n x: string;\n /** Field from data for YAxis */\n y: string;\n /** Field from data for circle value */\n value?: string;\n /** Circle color */\n color?: string;\n /** Circle value color */\n valueColor?: string;\n /** Animation duration in ms\n * @default 500\n */\n duration?: number;\n /** Radius of circles\n * @default 5.5 or 12 with value\n */\n r?: number;\n}\n\ndeclare const ScatterPlot: <T>(props: MapProps<IScatterPlotProps & T>) => ReturnEl;\n\nexport default ScatterPlot;\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"ScatterPlot.d.js","names":[],"sources":["../../../src/types/ScatterPlot.d.ts"],"sourcesContent":["import { ReturnEl } from '@semcore/core';\nimport { MapProps } from './Plot';\nimport IContext from './context';\n\nexport interface IScatterPlotProps extends IContext {\n /** Field from data for XAxis */\n x: string;\n /** Field from data for YAxis */\n y: string;\n /** Field from data for circle value */\n value?: string;\n /** Circle color */\n color?: string;\n /** Circle value color */\n valueColor?: string;\n /** Animation duration in ms\n * @default 500\n */\n duration?: number;\n /** Radius of circles\n * @default 5.5 or 12 with value\n */\n r?: number;\n /** Enables element transparency */\n transparent?: boolean;\n}\n\ndeclare const ScatterPlot: <T>(props: MapProps<IScatterPlotProps & T>) => ReturnEl;\n\nexport default ScatterPlot;\n"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Venn.d.js","names":[],"sources":["../../../src/types/Venn.d.ts"],"sourcesContent":["import { ReturnEl } from '@semcore/core';\nimport { MapProps } from './Plot';\nimport IContext from './context';\nimport { IFadeInOutProps } from '@semcore/animation';\n\nexport interface IVennProps extends IContext, IFadeInOutProps {\n /**\n * Rotate sets in the chart\n * @default Math.PI / 2\n */\n orientation?: number;\n /**\n * The function for sorting sets inside the chart\n * @default (circle1, circle2) => circle2.radius - circle1.radius\n */\n orientationOrder?: (c1: number, c2: number) => number;\n}\n\nexport interface ICircleProps extends IContext {\n /**\n * Name of the field in the data\n * */\n dataKey: string;\n /** Color circle\n @default #3AB011\n **/\n color?: string;\n /** Animation duration in ms\n * @default 500\n */\n duration?: number;\n /**
|
|
1
|
+
{"version":3,"file":"Venn.d.js","names":[],"sources":["../../../src/types/Venn.d.ts"],"sourcesContent":["import { ReturnEl } from '@semcore/core';\nimport { MapProps } from './Plot';\nimport IContext from './context';\nimport { IFadeInOutProps } from '@semcore/animation';\n\nexport interface IVennProps extends IContext, IFadeInOutProps {\n /**\n * Rotate sets in the chart\n * @default Math.PI / 2\n */\n orientation?: number;\n /**\n * The function for sorting sets inside the chart\n * @default (circle1, circle2) => circle2.radius - circle1.radius\n */\n orientationOrder?: (c1: number, c2: number) => number;\n}\n\nexport interface ICircleProps extends IContext {\n /**\n * Name of the field in the data\n * */\n dataKey: string;\n /** Color circle\n @default #3AB011\n **/\n color?: string;\n /** Animation duration in ms\n * @default 500\n */\n duration?: number;\n /** Enables element transparency */\n transparent?: boolean;\n}\n\nexport interface IIntersectionProps extends IContext, IFadeInOutProps {\n /**\n * Name of the field in the data\n * */\n dataKey: string;\n /** Enables element transparency */\n transparent?: boolean;\n}\n\ndeclare const Venn: (<T>(props: MapProps<IVennProps & T>) => ReturnEl) & {\n Circle: <T>(props: MapProps<ICircleProps & T>) => ReturnEl;\n Intersection: <T>(props: MapProps<IIntersectionProps & T>) => ReturnEl;\n};\n\nexport default Venn;\n"],"mappings":""}
|
package/lib/es6/Area.js
CHANGED
|
@@ -26,19 +26,19 @@ var style = (
|
|
|
26
26
|
/*__reshadow_css_start__*/
|
|
27
27
|
_sstyled.insert(
|
|
28
28
|
/*__inner_css_start__*/
|
|
29
|
-
".
|
|
29
|
+
".___SArea_11bld_gg_{fill:var(--intergalactic-chart-palette-order-blue,#2bb3ff);fill-opacity:.2}.___SArea_11bld_gg_.__color_11bld_gg_{fill:var(--color_11bld)}.___SArea_11bld_gg_.__transparent_11bld_gg_{opacity:.3}.___SAreaLine_11bld_gg_{stroke:var(--intergalactic-chart-palette-order-blue,#2bb3ff);stroke-width:3;fill:transparent}.___SAreaLine_11bld_gg_.__color_11bld_gg_{stroke:var(--color_11bld)}.___SAreaLine_11bld_gg_.__transparent_11bld_gg_{opacity:.3}.___SArea_11bld_gg_,.___SAreaLine_11bld_gg_{transition-property:d;transition-duration:var(--duration_11bld);transition-timing-function:ease-in-out}.___SNull_11bld_gg_{fill:transparent;stroke:var(--intergalactic-chart-grid-x-axis,#c4c7cf);stroke-dasharray:4}.___SNull_11bld_gg_.__hide_11bld_gg_{display:none}"
|
|
30
30
|
/*__inner_css_end__*/
|
|
31
|
-
, "
|
|
31
|
+
, "11bld_gg_")
|
|
32
32
|
/*__reshadow_css_end__*/
|
|
33
33
|
, {
|
|
34
|
-
"__SArea": "
|
|
35
|
-
"_color": "
|
|
36
|
-
"--color": "--
|
|
37
|
-
"_transparent": "
|
|
38
|
-
"__SAreaLine": "
|
|
39
|
-
"--duration": "--
|
|
40
|
-
"__SNull": "
|
|
41
|
-
"_hide": "
|
|
34
|
+
"__SArea": "___SArea_11bld_gg_",
|
|
35
|
+
"_color": "__color_11bld_gg_",
|
|
36
|
+
"--color": "--color_11bld",
|
|
37
|
+
"_transparent": "__transparent_11bld_gg_",
|
|
38
|
+
"__SAreaLine": "___SAreaLine_11bld_gg_",
|
|
39
|
+
"--duration": "--duration_11bld",
|
|
40
|
+
"__SNull": "___SNull_11bld_gg_",
|
|
41
|
+
"_hide": "__hide_11bld_gg_"
|
|
42
42
|
});
|
|
43
43
|
|
|
44
44
|
var AreaRoot = /*#__PURE__*/function (_Component) {
|
package/lib/es6/Axis.js
CHANGED
|
@@ -27,23 +27,23 @@ var style = (
|
|
|
27
27
|
/*__reshadow_css_start__*/
|
|
28
28
|
_sstyled.insert(
|
|
29
29
|
/*__inner_css_start__*/
|
|
30
|
-
".
|
|
30
|
+
".___SAxis_m82pb_gg_{stroke:var(--intergalactic-chart-grid-x-axis,#c4c7cf)}.___SAxis_m82pb_gg_.__hide_m82pb_gg_{display:none}.___STick_m82pb_gg_{font-size:var(--intergalactic-fs-100,12px);fill:var(--intergalactic-chart-grid-text-label,#6c6e79)}.___STick_m82pb_gg_.__hide_m82pb_gg_{display:none}.___SGrid_m82pb_gg_{fill:transparent;stroke:var(--intergalactic-border-secondary,#e0e1e9)}.___STitle_m82pb_gg_{font-size:var(--intergalactic-fs-100,12px);fill:var(--intergalactic-text-hint,#6c6e79);transform-origin:var(--transform-origin_m82pb)}.___STitle_m82pb_gg_._position_top_m82pb_gg_{text-anchor:middle}.___STitle_m82pb_gg_._position_bottom_m82pb_gg_{text-anchor:middle;alignment-baseline:hanging}.___STitle_m82pb_gg_._position_right_m82pb_gg_{transform:rotate(-90deg);alignment-baseline:middle;text-anchor:middle}.___STitle_m82pb_gg_._position_left_m82pb_gg_{transform:rotate(-90deg);text-anchor:middle;alignment-baseline:middle}.___STick_m82pb_gg_._position_top_m82pb_gg_{transform:translateY(-12px);text-anchor:middle}.___STick_m82pb_gg_._position_bottom_m82pb_gg_{transform:translateY(12px);text-anchor:middle;alignment-baseline:hanging}.___STick_m82pb_gg_._position_right_m82pb_gg_{transform:translateX(16px);text-anchor:start;alignment-baseline:middle}.___STick_m82pb_gg_._position_left_m82pb_gg_{transform:translateX(-16px);text-anchor:end;alignment-baseline:middle}.___STick_m82pb_gg_._position_custom_0_m82pb_gg_{transform:translateY(12px);text-anchor:middle;alignment-baseline:hanging}.___STick_m82pb_gg_._position_custom_1_m82pb_gg_{transform:translateX(-16px);text-anchor:end;alignment-baseline:middle}"
|
|
31
31
|
/*__inner_css_end__*/
|
|
32
|
-
, "
|
|
32
|
+
, "m82pb_gg_")
|
|
33
33
|
/*__reshadow_css_end__*/
|
|
34
34
|
, {
|
|
35
|
-
"__SAxis": "
|
|
36
|
-
"_hide": "
|
|
37
|
-
"__STick": "
|
|
38
|
-
"__SGrid": "
|
|
39
|
-
"__STitle": "
|
|
40
|
-
"--transform-origin": "--transform-
|
|
41
|
-
"_position_top": "
|
|
42
|
-
"_position_bottom": "
|
|
43
|
-
"_position_right": "
|
|
44
|
-
"_position_left": "
|
|
45
|
-
"_position_custom_0": "
|
|
46
|
-
"_position_custom_1": "
|
|
35
|
+
"__SAxis": "___SAxis_m82pb_gg_",
|
|
36
|
+
"_hide": "__hide_m82pb_gg_",
|
|
37
|
+
"__STick": "___STick_m82pb_gg_",
|
|
38
|
+
"__SGrid": "___SGrid_m82pb_gg_",
|
|
39
|
+
"__STitle": "___STitle_m82pb_gg_",
|
|
40
|
+
"--transform-origin": "--transform-origin_m82pb",
|
|
41
|
+
"_position_top": "_position_top_m82pb_gg_",
|
|
42
|
+
"_position_bottom": "_position_bottom_m82pb_gg_",
|
|
43
|
+
"_position_right": "_position_right_m82pb_gg_",
|
|
44
|
+
"_position_left": "_position_left_m82pb_gg_",
|
|
45
|
+
"_position_custom_0": "_position_custom_0_m82pb_gg_",
|
|
46
|
+
"_position_custom_1": "_position_custom_1_m82pb_gg_"
|
|
47
47
|
});
|
|
48
48
|
var CUSTOM_0 = Symbol('custom_0');
|
|
49
49
|
var CUSTOM_1 = Symbol('custom_1');
|
package/lib/es6/Bar.js
CHANGED
|
@@ -24,18 +24,18 @@ var style = (
|
|
|
24
24
|
/*__reshadow_css_start__*/
|
|
25
25
|
_sstyled.insert(
|
|
26
26
|
/*__inner_css_start__*/
|
|
27
|
-
".
|
|
27
|
+
".___SBar_18oq9_gg_{fill:var(--intergalactic-chart-palette-order-blue,#2bb3ff);transition-property:height,width,y;transition-duration:var(--duration_18oq9);transition-timing-function:ease-in-out}.___SBar_18oq9_gg_.__color_18oq9_gg_{fill:var(--color_18oq9)}.___SBar_18oq9_gg_.__hide_18oq9_gg_{display:none}.___SBar_18oq9_gg_.__transparent_18oq9_gg_{opacity:.3}.___SBackground_18oq9_gg_{fill:var(--intergalactic-chart-palette-order-other-data,#c4c7cf)}"
|
|
28
28
|
/*__inner_css_end__*/
|
|
29
|
-
, "
|
|
29
|
+
, "18oq9_gg_")
|
|
30
30
|
/*__reshadow_css_end__*/
|
|
31
31
|
, {
|
|
32
|
-
"__SBar": "
|
|
33
|
-
"--duration": "--
|
|
34
|
-
"_color": "
|
|
35
|
-
"--color": "--
|
|
36
|
-
"_hide": "
|
|
37
|
-
"_transparent": "
|
|
38
|
-
"__SBackground": "
|
|
32
|
+
"__SBar": "___SBar_18oq9_gg_",
|
|
33
|
+
"--duration": "--duration_18oq9",
|
|
34
|
+
"_color": "__color_18oq9_gg_",
|
|
35
|
+
"--color": "--color_18oq9",
|
|
36
|
+
"_hide": "__hide_18oq9_gg_",
|
|
37
|
+
"_transparent": "__transparent_18oq9_gg_",
|
|
38
|
+
"__SBackground": "___SBackground_18oq9_gg_"
|
|
39
39
|
});
|
|
40
40
|
|
|
41
41
|
var BarRoot = /*#__PURE__*/function (_Component) {
|
package/lib/es6/Bubble.js
CHANGED
|
@@ -32,19 +32,20 @@ var style = (
|
|
|
32
32
|
/*__reshadow_css_start__*/
|
|
33
33
|
_sstyled.insert(
|
|
34
34
|
/*__inner_css_start__*/
|
|
35
|
-
".
|
|
35
|
+
".___SBubble_lmqz1_gg_{fill:var(--intergalactic-chart-palette-order-blue,#2bb3ff);stroke:var(--intergalactic-chart-grid-border,#fff);stroke-width:2px;transition-property:cx,cy;transition-duration:var(--duration_lmqz1);transition-timing-function:ease-in-out;opacity:.5}.___SBubble_lmqz1_gg_:hover{opacity:.8}.___SBubble_lmqz1_gg_.__color_lmqz1_gg_{fill:var(--color_lmqz1)}.___SBubble_lmqz1_gg_.__transparent_lmqz1_gg_{opacity:.3}.___SCenter_lmqz1_gg_{text-anchor:middle;font-size:calc(var(--intergalactic-fs-100, 12px) - 1px);stroke:var(--intergalactic-chart-palette-order-blue,#2bb3ff)}.___SCenter_lmqz1_gg_.__color_lmqz1_gg_{stroke:var(--color_lmqz1)}.___SCenter_lmqz1_gg_.__transparent_lmqz1_gg_{opacity:.3}.___SLabel_lmqz1_gg_{fill:var(--intergalactic-chart-palette-order-blue,#2bb3ff)}.___SLabel_lmqz1_gg_._position_right_lmqz1_gg_{text-anchor:end}.___SLabel_lmqz1_gg_._position_left_lmqz1_gg_{text-anchor:start}.___SLabel_lmqz1_gg_.__color_lmqz1_gg_{fill:var(--color_lmqz1)}.___SLabel_lmqz1_gg_.__transparent_lmqz1_gg_{opacity:.3}"
|
|
36
36
|
/*__inner_css_end__*/
|
|
37
|
-
, "
|
|
37
|
+
, "lmqz1_gg_")
|
|
38
38
|
/*__reshadow_css_end__*/
|
|
39
39
|
, {
|
|
40
|
-
"__SBubble": "
|
|
41
|
-
"--duration": "--
|
|
42
|
-
"_color": "
|
|
43
|
-
"--color": "--
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
40
|
+
"__SBubble": "___SBubble_lmqz1_gg_",
|
|
41
|
+
"--duration": "--duration_lmqz1",
|
|
42
|
+
"_color": "__color_lmqz1_gg_",
|
|
43
|
+
"--color": "--color_lmqz1",
|
|
44
|
+
"_transparent": "__transparent_lmqz1_gg_",
|
|
45
|
+
"__SCenter": "___SCenter_lmqz1_gg_",
|
|
46
|
+
"__SLabel": "___SLabel_lmqz1_gg_",
|
|
47
|
+
"_position_right": "_position_right_lmqz1_gg_",
|
|
48
|
+
"_position_left": "_position_left_lmqz1_gg_"
|
|
48
49
|
});
|
|
49
50
|
|
|
50
51
|
var BubbleRoot = /*#__PURE__*/function (_Component) {
|
|
@@ -143,7 +144,8 @@ var BubbleRoot = /*#__PURE__*/function (_Component) {
|
|
|
143
144
|
label = _this$asProps2.label,
|
|
144
145
|
markedCross = _this$asProps2.markedCross,
|
|
145
146
|
size = _this$asProps2.size,
|
|
146
|
-
data = _this$asProps2.data
|
|
147
|
+
data = _this$asProps2.data,
|
|
148
|
+
transparent = _this$asProps2.transparent;
|
|
147
149
|
|
|
148
150
|
var _scale = _slicedToArray(scale, 2),
|
|
149
151
|
xScale = _scale[0],
|
|
@@ -175,7 +177,8 @@ var BubbleRoot = /*#__PURE__*/function (_Component) {
|
|
|
175
177
|
"y": yScale(d[y]) + offset[1],
|
|
176
178
|
"dy": ".3em",
|
|
177
179
|
"clipPath": "url(#".concat(uid, ")"),
|
|
178
|
-
"color": (_d$color = d[color]) !== null && _d$color !== void 0 ? _d$color : color
|
|
180
|
+
"color": (_d$color = d[color]) !== null && _d$color !== void 0 ? _d$color : color,
|
|
181
|
+
"transparent": transparent
|
|
179
182
|
}), "+"), /*#__PURE__*/React.createElement(SBubble, _ref.cn("SBubble", {
|
|
180
183
|
"aria-hidden": true,
|
|
181
184
|
"id": "".concat(uid).concat(uid),
|
|
@@ -186,7 +189,8 @@ var BubbleRoot = /*#__PURE__*/function (_Component) {
|
|
|
186
189
|
"cy": yScale(d[y]) + offset[1],
|
|
187
190
|
"color": d[color],
|
|
188
191
|
"r": z(d[value]),
|
|
189
|
-
"use:duration": "".concat(duration, "ms")
|
|
192
|
+
"use:duration": "".concat(duration, "ms"),
|
|
193
|
+
"transparent": transparent
|
|
190
194
|
})), d[label] && /*#__PURE__*/React.createElement(SLabel, _ref.cn("SLabel", {
|
|
191
195
|
"aria-hidden": true,
|
|
192
196
|
"x": labelDistance,
|
|
@@ -194,7 +198,8 @@ var BubbleRoot = /*#__PURE__*/function (_Component) {
|
|
|
194
198
|
"dy": ".3em",
|
|
195
199
|
"clipPath": "url(#".concat(uid, ")"),
|
|
196
200
|
"position": labelPosition,
|
|
197
|
-
"color": d[color]
|
|
201
|
+
"color": d[color],
|
|
202
|
+
"transparent": transparent
|
|
198
203
|
}), d[label]));
|
|
199
204
|
}
|
|
200
205
|
}, {
|
package/lib/es6/Bubble.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Bubble.js","names":["React","scaleSqrt","transition","Component","sstyled","canUseDOM","uniqueIDEnhancement","createElement","ClipPath","CONSTANT","measureText","BubbleRoot","document","visible","props","x","clientX","y","clientY","eventEmitter","asProps","virtualElement","getBoundingClientRect","generateGetBoundingClientRect","VIRTUAL_ELEMENT","emit","width","height","top","right","bottom","left","duration","uid","data","value","z","domain","Math","max","map","el","range","selectRect","selection","selectAll","attr","selectRectNode","node","_","ind","animationCircle","d","i","color","scale","offset","styles","label","markedCross","size","xScale","yScale","SBubble","Element","SCenter","SLabel","margin","min","labelPosition","labelDistance","bindHandlerTooltip","xIndex","xSize","abs","ySize","xMargin","yMargin","dataHintsHandler","specifyDataRowFields","establishDataType","renderCircle","bind","style","Bubble"],"sources":["../../src/Bubble.jsx"],"sourcesContent":["import React from 'react';\nimport { scaleSqrt } from 'd3-scale';\nimport { transition } from 'd3-transition';\nimport { Component, sstyled } from '@semcore/core';\nimport canUseDOM from '@semcore/utils/lib/canUseDOM';\nimport uniqueIDEnhancement from '@semcore/utils/lib/uniqueID';\nimport createElement from './createElement';\nimport ClipPath from './ClipPath';\nimport { CONSTANT, measureText } from './utils';\n\nimport style from './style/bubble.shadow.css';\n\nclass BubbleRoot extends Component {\n static displayName = 'Bubble';\n static style = style;\n static enhance = [uniqueIDEnhancement()];\n\n static defaultProps = {\n offset: [0, 0],\n duration: 500,\n markedCross: true,\n };\n\n virtualElement = canUseDOM() ? document.createElement('div') : {};\n\n generateGetBoundingClientRect(x = 0, y = 0) {\n return () => ({ width: 0, height: 0, top: y, right: x, bottom: y, left: x });\n }\n\n bindHandlerTooltip =\n (visible, props) =>\n ({ clientX: x, clientY: y }) => {\n const { eventEmitter } = this.asProps;\n this.virtualElement.getBoundingClientRect = this.generateGetBoundingClientRect(x, y);\n this.virtualElement[CONSTANT.VIRTUAL_ELEMENT] = true;\n eventEmitter.emit('onTooltipVisible', visible, props, this.virtualElement);\n };\n\n animationCircle() {\n const { duration, uid, data, value } = this.asProps;\n const z = scaleSqrt()\n .domain([0, Math.max(...data.map((el) => el[value]))])\n .range([5.5, 50.5]);\n\n const selectRect = transition().selection().selectAll(`[id^=${uid}${uid}]`).attr('r', 0);\n\n const selectRectNode = selectRect.node();\n if (duration > 0 && selectRectNode) {\n selectRect\n .transition()\n .duration(duration)\n .attr('r', function (_, ind) {\n return z(data[ind][value]);\n });\n }\n }\n\n componentDidUpdate() {\n this.animationCircle();\n }\n\n componentDidMount() {\n this.animationCircle();\n }\n\n renderCircle(d, i) {\n const {\n color,\n scale,\n x,\n y,\n offset,\n styles,\n uid,\n duration,\n value,\n label,\n markedCross,\n size,\n data,\n } = this.asProps;\n const [xScale, yScale] = scale;\n\n const SBubble = this.Element;\n const SCenter = 'text';\n const SLabel = 'text';\n const z = scaleSqrt()\n .domain([0, Math.max(...data.map((el) => el[value]))])\n .range([5.5, 50.5]);\n\n const margin = Math.min(xScale.range()[0], xScale.range()[1]);\n\n const labelPosition =\n size[0] - 2 * margin - (xScale(d[x]) + offset[0] + z(d[value])) < measureText(d[label])\n ? 'right'\n : 'left';\n const labelDistance = {\n right: xScale(d[x]) + offset[0] - z(d[value]),\n left: xScale(d[x]) + offset[0] + z(d[value]),\n }[labelPosition];\n\n return sstyled(styles)(\n <g\n key={`circle(#${i})`}\n onMouseMove={this.bindHandlerTooltip(true, { ...this.props, xIndex: i })}\n onMouseLeave={this.bindHandlerTooltip(false, { ...this.props, xIndex: i })}\n >\n {markedCross && (\n <SCenter\n aria-hidden\n x={xScale(d[x]) + offset[0]}\n y={yScale(d[y]) + offset[1]}\n dy=\".3em\"\n clipPath={`url(#${uid})`}\n color={d[color] ?? color}\n >\n +\n </SCenter>\n )}\n <SBubble\n aria-hidden\n id={`${uid}${uid}`}\n index={i}\n render=\"circle\"\n clipPath={`url(#${uid})`}\n cx={xScale(d[x]) + offset[0]}\n cy={yScale(d[y]) + offset[1]}\n color={d[color]}\n r={z(d[value])}\n use:duration={`${duration}ms`}\n />\n {d[label] && (\n <SLabel\n aria-hidden\n x={labelDistance}\n y={yScale(d[y]) + offset[1]}\n dy=\".3em\"\n clipPath={`url(#${uid})`}\n position={labelPosition}\n color={d[color]}\n >\n {d[label]}\n </SLabel>\n )}\n </g>,\n );\n }\n\n render() {\n const { data, uid, scale, x, y, value } = this.asProps;\n const [xScale, yScale] = scale;\n const xSize = Math.abs(xScale.range()[0] - xScale.range()[1]);\n const ySize = Math.abs(yScale.range()[0] - yScale.range()[1]);\n const xMargin = Math.min(xScale.range()[0], xScale.range()[1]);\n const yMargin = Math.min(yScale.range()[0], yScale.range()[1]);\n\n this.asProps.dataHintsHandler.specifyDataRowFields(x, y, value);\n this.asProps.dataHintsHandler.establishDataType('points-cloud');\n\n return (\n <>\n {data.map(this.renderCircle.bind(this))}\n {data.map(this.animationCircle.bind(this))}\n <ClipPath\n aria-hidden\n id={uid}\n x={xMargin}\n y={yMargin}\n width={`${xSize}px`}\n height={`${ySize}px`}\n />\n </>\n );\n }\n}\n\nconst Bubble = createElement(BubbleRoot);\n\nexport default Bubble;\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,SAAT,QAA0B,UAA1B;AACA,SAASC,UAAT,QAA2B,eAA3B;AACA,SAASC,SAAT,EAAoBC,OAApB,QAAmC,eAAnC;AACA,OAAOC,SAAP,MAAsB,8BAAtB;AACA,OAAOC,mBAAP,MAAgC,6BAAhC;AACA,OAAOC,aAAP,MAA0B,iBAA1B;AACA,OAAOC,QAAP,MAAqB,YAArB;AACA,SAASC,QAAT,EAAmBC,WAAnB,QAAsC,SAAtC;;;;;;;;;;;;;;;;;;;;;;IAIMC,U;;;;;;;;;;;;;;;;qEAWaN,SAAS,KAAKO,QAAQ,CAACL,aAAT,CAAuB,KAAvB,CAAL,GAAqC,E;;yEAO7D,UAACM,OAAD,EAAUC,KAAV;MAAA,OACA,iBAAgC;QAAA,IAApBC,CAAoB,SAA7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P;QAME,MAAM,YAAKE,KAAL;MANR,EAHF,CADF;IAcD;;;;EAjKsBxE,S;;gBAAnBQ,U,iBACiB,Q;;gBADjBA,U,WAEWwE,K;;gBAFXxE,U,aAGa,CAACL,mBAAmB,EAApB,C;;gBAHbK,U,kBAKkB;EACpB6C,MAAM,EAAE,CAAC,CAAD,EAAI,CAAJ,CADY;EAEpBxB,QAAQ,EAAE,GAFU;EAGpB2B,WAAW,EAAE;AAHO,C;;AA+JxB,IAAMyB,MAAM,GAAG7E,aAAa,CAACI,UAAD,CAA5B;AAEA,eAAeyE,MAAf"}
|
|
1
|
+
{"version":3,"file":"Bubble.js","names":["React","scaleSqrt","transition","Component","sstyled","canUseDOM","uniqueIDEnhancement","createElement","ClipPath","CONSTANT","measureText","BubbleRoot","document","visible","props","x","clientX","y","clientY","eventEmitter","asProps","virtualElement","getBoundingClientRect","generateGetBoundingClientRect","VIRTUAL_ELEMENT","emit","width","height","top","right","bottom","left","duration","uid","data","value","z","domain","Math","max","map","el","range","selectRect","selection","selectAll","attr","selectRectNode","node","_","ind","animationCircle","d","i","color","scale","offset","styles","label","markedCross","size","transparent","xScale","yScale","SBubble","Element","SCenter","SLabel","margin","min","labelPosition","labelDistance","bindHandlerTooltip","xIndex","xSize","abs","ySize","xMargin","yMargin","dataHintsHandler","specifyDataRowFields","establishDataType","renderCircle","bind","style","Bubble"],"sources":["../../src/Bubble.jsx"],"sourcesContent":["import React from 'react';\nimport { scaleSqrt } from 'd3-scale';\nimport { transition } from 'd3-transition';\nimport { Component, sstyled } from '@semcore/core';\nimport canUseDOM from '@semcore/utils/lib/canUseDOM';\nimport uniqueIDEnhancement from '@semcore/utils/lib/uniqueID';\nimport createElement from './createElement';\nimport ClipPath from './ClipPath';\nimport { CONSTANT, measureText } from './utils';\n\nimport style from './style/bubble.shadow.css';\n\nclass BubbleRoot extends Component {\n static displayName = 'Bubble';\n static style = style;\n static enhance = [uniqueIDEnhancement()];\n\n static defaultProps = {\n offset: [0, 0],\n duration: 500,\n markedCross: true,\n };\n\n virtualElement = canUseDOM() ? document.createElement('div') : {};\n\n generateGetBoundingClientRect(x = 0, y = 0) {\n return () => ({ width: 0, height: 0, top: y, right: x, bottom: y, left: x });\n }\n\n bindHandlerTooltip =\n (visible, props) =>\n ({ clientX: x, clientY: y }) => {\n const { eventEmitter } = this.asProps;\n this.virtualElement.getBoundingClientRect = this.generateGetBoundingClientRect(x, y);\n this.virtualElement[CONSTANT.VIRTUAL_ELEMENT] = true;\n eventEmitter.emit('onTooltipVisible', visible, props, this.virtualElement);\n };\n\n animationCircle() {\n const { duration, uid, data, value } = this.asProps;\n const z = scaleSqrt()\n .domain([0, Math.max(...data.map((el) => el[value]))])\n .range([5.5, 50.5]);\n\n const selectRect = transition().selection().selectAll(`[id^=${uid}${uid}]`).attr('r', 0);\n\n const selectRectNode = selectRect.node();\n if (duration > 0 && selectRectNode) {\n selectRect\n .transition()\n .duration(duration)\n .attr('r', function (_, ind) {\n return z(data[ind][value]);\n });\n }\n }\n\n componentDidUpdate() {\n this.animationCircle();\n }\n\n componentDidMount() {\n this.animationCircle();\n }\n\n renderCircle(d, i) {\n const {\n color,\n scale,\n x,\n y,\n offset,\n styles,\n uid,\n duration,\n value,\n label,\n markedCross,\n size,\n data,\n transparent,\n } = this.asProps;\n const [xScale, yScale] = scale;\n\n const SBubble = this.Element;\n const SCenter = 'text';\n const SLabel = 'text';\n const z = scaleSqrt()\n .domain([0, Math.max(...data.map((el) => el[value]))])\n .range([5.5, 50.5]);\n\n const margin = Math.min(xScale.range()[0], xScale.range()[1]);\n\n const labelPosition =\n size[0] - 2 * margin - (xScale(d[x]) + offset[0] + z(d[value])) < measureText(d[label])\n ? 'right'\n : 'left';\n const labelDistance = {\n right: xScale(d[x]) + offset[0] - z(d[value]),\n left: xScale(d[x]) + offset[0] + z(d[value]),\n }[labelPosition];\n\n return sstyled(styles)(\n <g\n key={`circle(#${i})`}\n onMouseMove={this.bindHandlerTooltip(true, { ...this.props, xIndex: i })}\n onMouseLeave={this.bindHandlerTooltip(false, { ...this.props, xIndex: i })}\n >\n {markedCross && (\n <SCenter\n aria-hidden\n x={xScale(d[x]) + offset[0]}\n y={yScale(d[y]) + offset[1]}\n dy=\".3em\"\n clipPath={`url(#${uid})`}\n color={d[color] ?? color}\n transparent={transparent}\n >\n +\n </SCenter>\n )}\n <SBubble\n aria-hidden\n id={`${uid}${uid}`}\n index={i}\n render=\"circle\"\n clipPath={`url(#${uid})`}\n cx={xScale(d[x]) + offset[0]}\n cy={yScale(d[y]) + offset[1]}\n color={d[color]}\n r={z(d[value])}\n use:duration={`${duration}ms`}\n transparent={transparent}\n />\n {d[label] && (\n <SLabel\n aria-hidden\n x={labelDistance}\n y={yScale(d[y]) + offset[1]}\n dy=\".3em\"\n clipPath={`url(#${uid})`}\n position={labelPosition}\n color={d[color]}\n transparent={transparent}\n >\n {d[label]}\n </SLabel>\n )}\n </g>,\n );\n }\n\n render() {\n const { data, uid, scale, x, y, value } = this.asProps;\n const [xScale, yScale] = scale;\n const xSize = Math.abs(xScale.range()[0] - xScale.range()[1]);\n const ySize = Math.abs(yScale.range()[0] - yScale.range()[1]);\n const xMargin = Math.min(xScale.range()[0], xScale.range()[1]);\n const yMargin = Math.min(yScale.range()[0], yScale.range()[1]);\n\n this.asProps.dataHintsHandler.specifyDataRowFields(x, y, value);\n this.asProps.dataHintsHandler.establishDataType('points-cloud');\n\n return (\n <>\n {data.map(this.renderCircle.bind(this))}\n {data.map(this.animationCircle.bind(this))}\n <ClipPath\n aria-hidden\n id={uid}\n x={xMargin}\n y={yMargin}\n width={`${xSize}px`}\n height={`${ySize}px`}\n />\n </>\n );\n }\n}\n\nconst Bubble = createElement(BubbleRoot);\n\nexport default Bubble;\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,SAAT,QAA0B,UAA1B;AACA,SAASC,UAAT,QAA2B,eAA3B;AACA,SAASC,SAAT,EAAoBC,OAApB,QA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KAAKtB,OAAL,CAAa2D,gBAAb,CAA8BC,oBAA9B,CAAmDjE,CAAnD,EAAsDE,CAAtD,EAAyDkB,KAAzD;MACA,KAAKf,OAAL,CAAa2D,gBAAb,CAA8BE,iBAA9B,CAAgD,cAAhD;MAEA,oBACE,0CACG/C,IAAI,CAACM,GAAL,CAAS,KAAK0C,YAAL,CAAkBC,IAAlB,CAAuB,IAAvB,CAAT,CADH,EAEGjD,IAAI,CAACM,GAAL,CAAS,KAAKW,eAAL,CAAqBgC,IAArB,CAA0B,IAA1B,CAAT,CAFH,eAGE,oBAAC,QAAD;QACE,mBADF;QAEE,EAAE,EAAElD,GAFN;QAGE,CAAC,EAAE4C,OAHL;QAIE,CAAC,EAAEC,OAJL;QAKE,KAAK,YAAKJ,KAAL,OALP;QAME,MAAM,YAAKE,KAAL;MANR,EAHF,CADF;IAcD;;;;EArKsBzE,S;;gBAAnBQ,U,iBACiB,Q;;gBADjBA,U,WAEWyE,K;;gBAFXzE,U,aAGa,CAACL,mBAAmB,EAApB,C;;gBAHbK,U,kBAKkB;EACpB6C,MAAM,EAAE,CAAC,CAAD,EAAI,CAAJ,CADY;EAEpBxB,QAAQ,EAAE,GAFU;EAGpB2B,WAAW,EAAE;AAHO,C;;AAmKxB,IAAM0B,MAAM,GAAG9E,aAAa,CAACI,UAAD,CAA5B;AAEA,eAAe0E,MAAf"}
|
package/lib/es6/Donut.js
CHANGED
|
@@ -34,17 +34,17 @@ var style = (
|
|
|
34
34
|
/*__reshadow_css_start__*/
|
|
35
35
|
_sstyled.insert(
|
|
36
36
|
/*__inner_css_start__*/
|
|
37
|
-
".
|
|
37
|
+
".___SPie_rt6ah_gg_{stroke:var(--intergalactic-chart-grid-border,#fff);fill:var(--intergalactic-chart-palette-order-blue,#2bb3ff)}.___SPie_rt6ah_gg_.__color_rt6ah_gg_{fill:var(--color_rt6ah)}.___SPie_rt6ah_gg_.__transparent_rt6ah_gg_{opacity:.3}.___SEmptyData_rt6ah_gg_{fill:var(--intergalactic-chart-palette-order-null,#e0e1e9)}.___SEmptyData_rt6ah_gg_.__color_rt6ah_gg_{fill:var(--color_rt6ah)}.___SLabel_rt6ah_gg_{text-anchor:middle;vertical-anchor:middle}"
|
|
38
38
|
/*__inner_css_end__*/
|
|
39
|
-
, "
|
|
39
|
+
, "rt6ah_gg_")
|
|
40
40
|
/*__reshadow_css_end__*/
|
|
41
41
|
, {
|
|
42
|
-
"__SPie": "
|
|
43
|
-
"_color": "
|
|
44
|
-
"--color": "--
|
|
45
|
-
"_transparent": "
|
|
46
|
-
"__SEmptyData": "
|
|
47
|
-
"__SLabel": "
|
|
42
|
+
"__SPie": "___SPie_rt6ah_gg_",
|
|
43
|
+
"_color": "__color_rt6ah_gg_",
|
|
44
|
+
"--color": "--color_rt6ah",
|
|
45
|
+
"_transparent": "__transparent_rt6ah_gg_",
|
|
46
|
+
"__SEmptyData": "___SEmptyData_rt6ah_gg_",
|
|
47
|
+
"__SLabel": "___SLabel_rt6ah_gg_"
|
|
48
48
|
});
|
|
49
49
|
var DEFAULT_INSTANCE = Symbol('DEFAULT_INSTANCE');
|
|
50
50
|
|
package/lib/es6/Dots.js
CHANGED
|
@@ -12,19 +12,19 @@ var style = (
|
|
|
12
12
|
/*__reshadow_css_start__*/
|
|
13
13
|
_sstyled.insert(
|
|
14
14
|
/*__inner_css_start__*/
|
|
15
|
-
".
|
|
15
|
+
".___SDots_13p9i_gg_ .___SDot_13p9i_gg_{transition-duration:var(--duration_13p9i)}.___SDot_13p9i_gg_{stroke-width:2px;stroke:var(--intergalactic-chart-grid-border,#fff);r:6px;fill:var(--intergalactic-chart-palette-order-blue,#2bb3ff);transition-property:cx,cy;transition-timing-function:ease-in-out}.___SDot_13p9i_gg_.__hide_13p9i_gg_{display:none}.___SDot_13p9i_gg_.__active_13p9i_gg_{r:8px}.___SDot_13p9i_gg_.__color_13p9i_gg_{fill:var(--color_13p9i)}.___SDot_13p9i_gg_.__transparent_13p9i_gg_{opacity:.3}"
|
|
16
16
|
/*__inner_css_end__*/
|
|
17
|
-
, "
|
|
17
|
+
, "13p9i_gg_")
|
|
18
18
|
/*__reshadow_css_end__*/
|
|
19
19
|
, {
|
|
20
|
-
"__SDots": "
|
|
21
|
-
"__SDot": "
|
|
22
|
-
"--duration": "--
|
|
23
|
-
"_hide": "
|
|
24
|
-
"_active": "
|
|
25
|
-
"_color": "
|
|
26
|
-
"--color": "--
|
|
27
|
-
"_transparent": "
|
|
20
|
+
"__SDots": "___SDots_13p9i_gg_",
|
|
21
|
+
"__SDot": "___SDot_13p9i_gg_",
|
|
22
|
+
"--duration": "--duration_13p9i",
|
|
23
|
+
"_hide": "__hide_13p9i_gg_",
|
|
24
|
+
"_active": "__active_13p9i_gg_",
|
|
25
|
+
"_color": "__color_13p9i_gg_",
|
|
26
|
+
"--color": "--color_13p9i",
|
|
27
|
+
"_transparent": "__transparent_13p9i_gg_"
|
|
28
28
|
});
|
|
29
29
|
var EXCLUDE_PROPS = ['data', 'scale', 'value', 'display'];
|
|
30
30
|
|
package/lib/es6/HorizontalBar.js
CHANGED
|
@@ -23,18 +23,18 @@ var style = (
|
|
|
23
23
|
/*__reshadow_css_start__*/
|
|
24
24
|
_sstyled.insert(
|
|
25
25
|
/*__inner_css_start__*/
|
|
26
|
-
".
|
|
26
|
+
".___SBar_18oq9_gg_{fill:var(--intergalactic-chart-palette-order-blue,#2bb3ff);transition-property:height,width,y;transition-duration:var(--duration_18oq9);transition-timing-function:ease-in-out}.___SBar_18oq9_gg_.__color_18oq9_gg_{fill:var(--color_18oq9)}.___SBar_18oq9_gg_.__hide_18oq9_gg_{display:none}.___SBar_18oq9_gg_.__transparent_18oq9_gg_{opacity:.3}.___SBackground_18oq9_gg_{fill:var(--intergalactic-chart-palette-order-other-data,#c4c7cf)}"
|
|
27
27
|
/*__inner_css_end__*/
|
|
28
|
-
, "
|
|
28
|
+
, "18oq9_gg_")
|
|
29
29
|
/*__reshadow_css_end__*/
|
|
30
30
|
, {
|
|
31
|
-
"__SBar": "
|
|
32
|
-
"--duration": "--
|
|
33
|
-
"_color": "
|
|
34
|
-
"--color": "--
|
|
35
|
-
"_hide": "
|
|
36
|
-
"_transparent": "
|
|
37
|
-
"__SBackground": "
|
|
31
|
+
"__SBar": "___SBar_18oq9_gg_",
|
|
32
|
+
"--duration": "--duration_18oq9",
|
|
33
|
+
"_color": "__color_18oq9_gg_",
|
|
34
|
+
"--color": "--color_18oq9",
|
|
35
|
+
"_hide": "__hide_18oq9_gg_",
|
|
36
|
+
"_transparent": "__transparent_18oq9_gg_",
|
|
37
|
+
"__SBackground": "___SBackground_18oq9_gg_"
|
|
38
38
|
});
|
|
39
39
|
|
|
40
40
|
var HorizontalBarRoot = /*#__PURE__*/function (_Component) {
|
package/lib/es6/Hover.js
CHANGED
|
@@ -24,13 +24,13 @@ var style = (
|
|
|
24
24
|
/*__reshadow_css_start__*/
|
|
25
25
|
_sstyled.insert(
|
|
26
26
|
/*__inner_css_start__*/
|
|
27
|
-
".
|
|
27
|
+
".___SHoverLine_1fz07_gg_{stroke:var(--intergalactic-chart-grid-x-axis,#c4c7cf)}.___SHoverRect_1fz07_gg_{fill:var(--intergalactic-chart-grid-bar-chart-hover,rgba(196,199,207,.3))}"
|
|
28
28
|
/*__inner_css_end__*/
|
|
29
|
-
, "
|
|
29
|
+
, "1fz07_gg_")
|
|
30
30
|
/*__reshadow_css_end__*/
|
|
31
31
|
, {
|
|
32
|
-
"__SHoverLine": "
|
|
33
|
-
"__SHoverRect": "
|
|
32
|
+
"__SHoverLine": "___SHoverLine_1fz07_gg_",
|
|
33
|
+
"__SHoverRect": "___SHoverRect_1fz07_gg_"
|
|
34
34
|
});
|
|
35
35
|
|
|
36
36
|
var Hover = /*#__PURE__*/function (_Component) {
|