intergalactic 15.60.0 → 15.60.1
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 +10 -0
- package/accordion/lib/cjs/Accordion.js +7 -7
- package/accordion/lib/es6/Accordion.js +7 -7
- package/base-trigger/lib/cjs/FilterTrigger.js +2 -0
- package/base-trigger/lib/cjs/FilterTrigger.js.map +1 -1
- package/base-trigger/lib/es6/FilterTrigger.js +2 -0
- package/base-trigger/lib/es6/FilterTrigger.js.map +1 -1
- package/components.json +10 -10
- package/d3-chart/Area.d.ts +3 -0
- package/d3-chart/Bar.d.ts +3 -0
- package/d3-chart/Bubble.d.ts +3 -0
- package/d3-chart/Donut.d.ts +3 -0
- package/d3-chart/GroupBar.d.ts +1 -1
- package/d3-chart/HorizontalBar.d.ts +3 -0
- package/d3-chart/Line.d.ts +3 -0
- package/d3-chart/Plot.d.ts +1 -1
- package/d3-chart/Radar.d.ts +3 -0
- package/d3-chart/ReferenceLine.d.ts +2 -3
- package/d3-chart/ScatterPlot.d.ts +3 -0
- package/d3-chart/StackBar.d.ts +4 -0
- package/d3-chart/StackedArea.d.ts +4 -0
- package/d3-chart/Venn.d.ts +3 -0
- package/d3-chart/lib/cjs/ReferenceLine.js +9 -6
- package/d3-chart/lib/cjs/ReferenceLine.js.map +1 -1
- package/d3-chart/lib/cjs/types/Area.d.js.map +1 -1
- package/d3-chart/lib/cjs/types/Bar.d.js.map +1 -1
- package/d3-chart/lib/cjs/types/Bubble.d.js.map +1 -1
- package/d3-chart/lib/cjs/types/Donut.d.js.map +1 -1
- package/d3-chart/lib/cjs/types/GroupBar.d.js.map +1 -1
- package/d3-chart/lib/cjs/types/HorizontalBar.d.js.map +1 -1
- package/d3-chart/lib/cjs/types/Line.d.js.map +1 -1
- package/d3-chart/lib/cjs/types/Plot.d.js.map +1 -1
- package/d3-chart/lib/cjs/types/Radar.d.js.map +1 -1
- package/d3-chart/lib/cjs/types/ReferenceLine.d.js.map +1 -1
- package/d3-chart/lib/cjs/types/ScatterPlot.d.js.map +1 -1
- package/d3-chart/lib/cjs/types/StackBar.d.js.map +1 -1
- package/d3-chart/lib/cjs/types/StackedArea.d.js.map +1 -1
- package/d3-chart/lib/cjs/types/Venn.d.js.map +1 -1
- package/d3-chart/lib/es6/ReferenceLine.js +9 -6
- package/d3-chart/lib/es6/ReferenceLine.js.map +1 -1
- package/d3-chart/lib/es6/types/Area.d.js.map +1 -1
- package/d3-chart/lib/es6/types/Bar.d.js.map +1 -1
- package/d3-chart/lib/es6/types/Bubble.d.js.map +1 -1
- package/d3-chart/lib/es6/types/Donut.d.js.map +1 -1
- package/d3-chart/lib/es6/types/GroupBar.d.js.map +1 -1
- package/d3-chart/lib/es6/types/HorizontalBar.d.js.map +1 -1
- package/d3-chart/lib/es6/types/Line.d.js.map +1 -1
- package/d3-chart/lib/es6/types/Plot.d.js.map +1 -1
- package/d3-chart/lib/es6/types/Radar.d.js.map +1 -1
- package/d3-chart/lib/es6/types/ReferenceLine.d.js.map +1 -1
- package/d3-chart/lib/es6/types/ScatterPlot.d.js.map +1 -1
- package/d3-chart/lib/es6/types/StackBar.d.js.map +1 -1
- package/d3-chart/lib/es6/types/StackedArea.d.js.map +1 -1
- package/d3-chart/lib/es6/types/Venn.d.js.map +1 -1
- package/d3-chart/lib/types/Area.d.ts +3 -0
- package/d3-chart/lib/types/Bar.d.ts +3 -0
- package/d3-chart/lib/types/Bubble.d.ts +3 -0
- package/d3-chart/lib/types/Donut.d.ts +3 -0
- package/d3-chart/lib/types/GroupBar.d.ts +1 -1
- package/d3-chart/lib/types/HorizontalBar.d.ts +3 -0
- package/d3-chart/lib/types/Line.d.ts +3 -0
- package/d3-chart/lib/types/Plot.d.ts +1 -1
- package/d3-chart/lib/types/Radar.d.ts +3 -0
- package/d3-chart/lib/types/ReferenceLine.d.ts +2 -3
- package/d3-chart/lib/types/ScatterPlot.d.ts +3 -0
- package/d3-chart/lib/types/StackBar.d.ts +4 -0
- package/d3-chart/lib/types/StackedArea.d.ts +4 -0
- package/d3-chart/lib/types/Venn.d.ts +3 -0
- package/package.json +3 -3
- package/popper/lib/cjs/Popper.js +1 -1
- package/popper/lib/cjs/Popper.js.map +1 -1
- package/popper/lib/es6/Popper.js +1 -1
- package/popper/lib/es6/Popper.js.map +1 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ReferenceLine.js","names":["_core","require","_react","_interopRequireDefault","_createElement","_utils","style","sstyled","insert","side2direction","left","right","top","bottom","lineDirection2props","vertical","_ref4","value","_ref5","_slicedToArray2","xScale","yScale","yRange","range","x","scaleOfBandwidth","x1","x2","y1","y2","horizontal","_ref6","_ref7","xRange","y","rectDirection2props","_ref8","_ref9","width","height","_ref10","_ref11","titleOffset","titleSideToProps","_ref12","_ref13","_ref14","_ref15","_ref16","_ref17","_ref18","_ref19","ReferenceLineRoot","_Component","_inherits2","_super","_createSuper2","_classCallCheck2","apply","arguments","_createClass2","key","getTitleProps","_this$asProps","asProps","position","getBackgroundProps","_this$asProps2","render","_ref","SReferenceLine","Element","_this$asProps3","title","scale","color","resolveColor","styles","positionProps","createElement","Fragment","cn","_objectSpread2","ReferenceLine","Title","Component","_defineProperty2","props","_ref2","STitle","_titleSideToProps$pos","sstyles","sTitleStyles","concat","toFixed","className","Background","_ref3","SBackground","_default","exports"],"sources":["../../src/ReferenceLine.jsx"],"sourcesContent":["import React from 'react';\nimport { Component, sstyled } from '@semcore/core';\nimport createElement from './createElement';\nimport { scaleOfBandwidth } from './utils';\n\nimport style from './style/reference-line.shadow.css';\n\nconst side2direction = {\n left: 'vertical',\n right: 'vertical',\n top: 'horizontal',\n bottom: 'horizontal',\n};\n\nconst lineDirection2props = {\n vertical: ([xScale, yScale], value) => {\n const yRange = yScale.range();\n const x = scaleOfBandwidth(xScale, value);\n return {\n x1: x,\n x2: x,\n y1: yRange[0],\n y2: yRange[1],\n };\n },\n horizontal: ([xScale, yScale], value) => {\n const xRange = xScale.range();\n const y = scaleOfBandwidth(yScale, value);\n return {\n x1: xRange[0],\n x2: xRange[1],\n y1: y,\n y2: y,\n };\n },\n};\n\nconst rectDirection2props = {\n vertical: ([xScale, yScale], value) => {\n const yRange = yScale.range();\n const x = scaleOfBandwidth(xScale, value);\n return {\n x: x,\n y: yRange[1],\n width: 100,\n height: yRange[0] - yRange[1],\n };\n },\n horizontal: ([xScale, yScale], value) => {\n const xRange = xScale.range();\n const y = scaleOfBandwidth(yScale, value);\n return {\n x: xRange[0],\n y: y,\n width: xRange[1] - xRange[0],\n height: 100,\n };\n },\n};\n\nconst titleOffset = 10;\nconst titleSideToProps = {\n left: ([xScale, yScale], value) => {\n const yRange = yScale.range();\n const x = scaleOfBandwidth(xScale, value);\n return {\n x: x - titleOffset,\n y: (yRange[0] + yRange[1]) / 2,\n };\n },\n right: ([xScale, yScale], value) => {\n const yRange = yScale.range();\n const x = scaleOfBandwidth(xScale, value);\n return {\n x: x + titleOffset,\n y: (yRange[0] + yRange[1]) / 2,\n };\n },\n top: ([xScale, yScale], value) => {\n const xRange = xScale.range();\n const y = scaleOfBandwidth(yScale, value);\n return {\n x: (xRange[1] + xRange[0]) / 2,\n y: y - titleOffset,\n };\n },\n bottom: ([xScale, yScale], value) => {\n const xRange = xScale.range();\n const y = scaleOfBandwidth(yScale, value);\n return {\n x: (xRange[1] + xRange[0]) / 2,\n y: y + titleOffset,\n };\n },\n};\n\nclass ReferenceLineRoot extends Component {\n static displayName = 'ReferenceLine';\n static style = style;\n static defaultProps = {\n position: 'left',\n };\n\n getTitleProps() {\n const { position, value } = this.asProps;\n return { position, value };\n }\n\n getBackgroundProps() {\n const { position, value } = this.asProps;\n return { position, value };\n }\n\n render() {\n const SReferenceLine = this.Element;\n const { title, scale, position, value, color, resolveColor, styles } = this.asProps;\n const positionProps = lineDirection2props[side2direction[position]];\n\n return sstyled(styles)(\n <>\n <SReferenceLine\n render='line'\n __excludeProps={['data', 'scale', 'format', 'value', 'color']}\n stroke={resolveColor(color)}\n {...positionProps(scale, value)}\n />\n {title && <ReferenceLine.Title>{title}</ReferenceLine.Title>}\n </>,\n );\n }\n}\n\nfunction Title(props) {\n const { Element: STitle, styles, scale, position, value } = props;\n const { x, y } = titleSideToProps[position](scale, value);\n\n const sstyles = sstyled(styles);\n const sTitleStyles = sstyles.cn('STitle', {\n 'transform-origin': `${x.toFixed(2)}px ${y.toFixed(2)}px`,\n });\n\n return sstyled(styles)(\n <STitle\n render='text'\n childrenPosition='inside'\n className={sTitleStyles.className}\n style={sTitleStyles.style}\n position={position}\n x={x}\n y={y}\n />,\n );\n}\n\nfunction Background(props) {\n const { Element: SBackground, styles, scale, position, value } = props;\n const positionProps = rectDirection2props[side2direction[position]];\n\n return sstyled(styles)(\n <SBackground render='rect' childrenPosition='inside' {...positionProps(scale, value)} />,\n );\n}\n\nconst ReferenceLine = createElement(ReferenceLineRoot, {\n Title,\n Background,\n});\n\nexport default ReferenceLine;\n"],"mappings":";;;;;;;;;;;;;;AACA,IAAAA,KAAA,GAAAC,OAAA;AADA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAAG,cAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AAA2C;AAAA,IAAAK,KAAA,+BAAAN,KAAA,CAAAO,OAAA,CAAAC,MAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;AAAA;AAI3C,IAAMC,cAAc,GAAG;EACrBC,IAAI,EAAE,UAAU;EAChBC,KAAK,EAAE,UAAU;EACjBC,GAAG,EAAE,YAAY;EACjBC,MAAM,EAAE;AACV,CAAC;AAED,IAAMC,mBAAmB,GAAG;EAC1BC,QAAQ,EAAE,SAAAA,SAAAC,KAAA,EAAmBC,KAAK,EAAK;IAAA,IAAAC,KAAA,OAAAC,eAAA,aAAAH,KAAA;MAA3BI,MAAM,GAAAF,KAAA;MAAEG,MAAM,GAAAH,KAAA;IACxB,IAAMI,MAAM,GAAGD,MAAM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rDgC,KAAK,EAALA,KAAK;EACLY,UAAU,EAAVA;AACF,CAAC,CAAC;AAAC,IAAAG,QAAA,GAEYhB,aAAa;AAAAiB,OAAA,cAAAD,QAAA"}
|
1
|
+
{"version":3,"file":"ReferenceLine.js","names":["_core","require","_react","_interopRequireDefault","_createElement","_utils","style","sstyled","insert","side2direction","left","right","top","bottom","lineDirection2props","vertical","_ref4","value","_ref5","_slicedToArray2","xScale","yScale","yRange","range","x","scaleOfBandwidth","x1","x2","y1","y2","horizontal","_ref6","_ref7","xRange","y","rectDirection2props","_ref8","endValue","_ref9","width","undefined","height","_ref10","_ref11","titleOffset","titleSideToProps","_ref12","_ref13","_ref14","_ref15","_ref16","_ref17","_ref18","_ref19","ReferenceLineRoot","_Component","_inherits2","_super","_createSuper2","_classCallCheck2","apply","arguments","_createClass2","key","getTitleProps","_this$asProps","asProps","position","getBackgroundProps","_this$asProps2","render","_ref","SReferenceLine","Element","_this$asProps3","title","scale","color","resolveColor","styles","positionProps","createElement","Fragment","cn","_objectSpread2","ReferenceLine","Title","Component","_defineProperty2","props","_ref2","STitle","_titleSideToProps$pos","sstyles","sTitleStyles","concat","toFixed","className","Background","_ref3","SBackground","_default","exports"],"sources":["../../src/ReferenceLine.jsx"],"sourcesContent":["import React from 'react';\nimport { Component, sstyled } from '@semcore/core';\nimport createElement from './createElement';\nimport { scaleOfBandwidth } from './utils';\n\nimport style from './style/reference-line.shadow.css';\n\nconst side2direction = {\n left: 'vertical',\n right: 'vertical',\n top: 'horizontal',\n bottom: 'horizontal',\n};\n\nconst lineDirection2props = {\n vertical: ([xScale, yScale], value) => {\n const yRange = yScale.range();\n const x = scaleOfBandwidth(xScale, value);\n return {\n x1: x,\n x2: x,\n y1: yRange[0],\n y2: yRange[1],\n };\n },\n horizontal: ([xScale, yScale], value) => {\n const xRange = xScale.range();\n const y = scaleOfBandwidth(yScale, value);\n return {\n x1: xRange[0],\n x2: xRange[1],\n y1: y,\n y2: y,\n };\n },\n};\n\nconst rectDirection2props = {\n vertical: ([xScale, yScale], value, endValue) => {\n const yRange = yScale.range();\n const x = scaleOfBandwidth(xScale, value);\n const width = endValue !== undefined ? scaleOfBandwidth(xScale, endValue) - x : 100;\n return {\n x: x,\n y: yRange[1],\n width,\n height: yRange[0] - yRange[1],\n };\n },\n horizontal: ([xScale, yScale], value, endValue) => {\n const xRange = xScale.range();\n const y = scaleOfBandwidth(yScale, value);\n const height = endValue !== undefined ? scaleOfBandwidth(yScale, endValue) - y : 100;\n return {\n x: xRange[0],\n y: y,\n width: xRange[1] - xRange[0],\n height,\n };\n },\n};\n\nconst titleOffset = 10;\nconst titleSideToProps = {\n left: ([xScale, yScale], value) => {\n const yRange = yScale.range();\n const x = scaleOfBandwidth(xScale, value);\n return {\n x: x - titleOffset,\n y: (yRange[0] + yRange[1]) / 2,\n };\n },\n right: ([xScale, yScale], value) => {\n const yRange = yScale.range();\n const x = scaleOfBandwidth(xScale, value);\n return {\n x: x + titleOffset,\n y: (yRange[0] + yRange[1]) / 2,\n };\n },\n top: ([xScale, yScale], value) => {\n const xRange = xScale.range();\n const y = scaleOfBandwidth(yScale, value);\n return {\n x: (xRange[1] + xRange[0]) / 2,\n y: y - titleOffset,\n };\n },\n bottom: ([xScale, yScale], value) => {\n const xRange = xScale.range();\n const y = scaleOfBandwidth(yScale, value);\n return {\n x: (xRange[1] + xRange[0]) / 2,\n y: y + titleOffset,\n };\n },\n};\n\nclass ReferenceLineRoot extends Component {\n static displayName = 'ReferenceLine';\n static style = style;\n static defaultProps = {\n position: 'left',\n };\n\n getTitleProps() {\n const { position, value } = this.asProps;\n return { position, value };\n }\n\n getBackgroundProps() {\n const { position, value } = this.asProps;\n return { position, value };\n }\n\n render() {\n const SReferenceLine = this.Element;\n const { title, scale, position, value, color, resolveColor, styles } = this.asProps;\n const positionProps = lineDirection2props[side2direction[position]];\n\n return sstyled(styles)(\n <>\n <SReferenceLine\n render='line'\n __excludeProps={['data', 'scale', 'format', 'value', 'color']}\n stroke={resolveColor(color)}\n {...positionProps(scale, value)}\n />\n {title && <ReferenceLine.Title>{title}</ReferenceLine.Title>}\n </>,\n );\n }\n}\n\nfunction Title(props) {\n const { Element: STitle, styles, scale, position, value } = props;\n const { x, y } = titleSideToProps[position](scale, value);\n\n const sstyles = sstyled(styles);\n const sTitleStyles = sstyles.cn('STitle', {\n 'transform-origin': `${x.toFixed(2)}px ${y.toFixed(2)}px`,\n });\n\n return sstyled(styles)(\n <STitle\n render='text'\n childrenPosition='inside'\n className={sTitleStyles.className}\n style={sTitleStyles.style}\n position={position}\n x={x}\n y={y}\n />,\n );\n}\n\nfunction Background(props) {\n const { Element: SBackground, styles, scale, position, value, endValue } = props;\n const positionProps = rectDirection2props[side2direction[position]];\n\n return sstyled(styles)(\n <SBackground\n render='rect'\n childrenPosition='inside'\n {...positionProps(scale, value, endValue)}\n />,\n );\n}\n\nconst ReferenceLine = createElement(ReferenceLineRoot, {\n Title,\n Background,\n});\n\nexport default ReferenceLine;\n"],"mappings":";;;;;;;;;;;;;;AACA,IAAAA,KAAA,GAAAC,OAAA;AADA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAAG,cAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AAA2C;AAAA,IAAAK,KAAA,+BAAAN,KAAA,CAAAO,OAAA,CAAAC,MAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;AAAA;AAI3C,IAAMC,cAAc,GAAG;EACrBC,IAAI,EAAE,UAAU;EAChBC,KAAK,EAAE,UAAU;EACjBC,GAAG,EAAE,YAAY;EACjBC,MAAM,EAAE;AACV,CAAC;AAED,IAAMC,mBAAmB,GAAG;EAC1BC,QAAQ,EAAE,SAAAA,SAAAC,KAAA,EAAmBC,KAAK,EAAK;IAAA,IAAAC,KAAA,OAAAC,eAAA,aAAAH,KAAA;MAA3BI,MAAM,GAAAF,KAAA;MAAEG,MAAM,GAAAH,KAAA;IACx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CAAC1B,cAAc,CAAC0D,QAAQ,CAAC,CAAC;EAEnE,OAAAgC,KAAA,GAAO,IAAA5F,aAAO,EAACwE,MAAM,CAAC,eACpB7E,MAAA,YAAA+E,aAAA,CAACmB,WAAW,EAAAD,KAAA,CAAAhB,EAAA,oBAAAC,cAAA;IAAA,UACH,MAAM;IAAA,oBACI;EAAQ,GACrBJ,aAAa,CAACJ,KAAK,EAAE3D,KAAK,EAAEoB,QAAQ,CAAC,GACzC;AAEN;AAEA,IAAMgD,aAAa,GAAG,IAAAJ,yBAAa,EAAC3B,iBAAiB,EAAE;EACrDgC,KAAK,EAALA,KAAK;EACLY,UAAU,EAAVA;AACF,CAAC,CAAC;AAAC,IAAAG,QAAA,GAEYhB,aAAa;AAAAiB,OAAA,cAAAD,QAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Area.d.js","names":[],"sources":["../../../src/types/Area.d.ts"],"sourcesContent":["import { UnknownProperties } from '@semcore/core';\nimport { Context } from './context';\nimport { CurveFactory } from 'd3-shape';\nimport { IntergalacticD3Component } from './Plot';\n\n/** @deprecated */\nexport interface IAreaProps extends AreaProps, UnknownProperties {}\nexport type AreaProps = Context & {\n /** Field name from `data` array item for the XAxis */\n x?: string;\n /** Field name from `data` array item for the YAxis*/\n y?: string;\n /** Line color */\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\n/** @deprecated */\nexport interface IAreaDotsProps extends AreaDotsProps, UnknownProperties {}\nexport type AreaDotsProps = Context & {\n /** Show all Dot */\n display?: boolean;\n /** Hide property */\n hide?: boolean;\n /** Enables element transparency */\n transparent?: boolean;\n};\n\n/** @deprecated */\nexport interface IAreaDotsContext extends AreaDotsContext, UnknownProperties {}\nexport type AreaDotsContext = {\n /** Value element of data */\n /** @deprecated */\n value?: any;\n /** Index element of data */\n index?: number;\n};\n\n/** @deprecated */\nexport interface IAreaNullProps extends AreaNullProps, UnknownProperties {}\nexport type AreaNullProps = Context & {\n /** Hide property */\n hide?: boolean;\n};\n\ndeclare const Area: IntergalacticD3Component<'path', AreaProps, Context> & {\n Dots: IntergalacticD3Component<'circle', AreaDotsProps, AreaDotsContext>;\n Null: IntergalacticD3Component<'path', AreaNullProps, Context>;\n Line: IntergalacticD3Component<'path', Context, Context>;\n};\n\nexport default Area;\n"],"mappings":""}
|
1
|
+
{"version":3,"file":"Area.d.js","names":[],"sources":["../../../src/types/Area.d.ts"],"sourcesContent":["import { UnknownProperties } from '@semcore/core';\nimport { Context } from './context';\nimport { CurveFactory } from 'd3-shape';\nimport { IntergalacticD3Component } from './Plot';\nimport { PatternsConfig } from './Pattern';\n\n/** @deprecated */\nexport interface IAreaProps extends AreaProps, UnknownProperties {}\nexport type AreaProps = Context & {\n /** Field name from `data` array item for the XAxis */\n x?: string;\n /** Field name from `data` array item for the YAxis*/\n y?: string;\n /** Line color */\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 /** Enables charts patterns that enhances charts accessability */\n patterns?: PatternsConfig;\n};\n\n/** @deprecated */\nexport interface IAreaDotsProps extends AreaDotsProps, UnknownProperties {}\nexport type AreaDotsProps = Context & {\n /** Show all Dot */\n display?: boolean;\n /** Hide property */\n hide?: boolean;\n /** Enables element transparency */\n transparent?: boolean;\n};\n\n/** @deprecated */\nexport interface IAreaDotsContext extends AreaDotsContext, UnknownProperties {}\nexport type AreaDotsContext = {\n /** Value element of data */\n /** @deprecated */\n value?: any;\n /** Index element of data */\n index?: number;\n};\n\n/** @deprecated */\nexport interface IAreaNullProps extends AreaNullProps, UnknownProperties {}\nexport type AreaNullProps = Context & {\n /** Hide property */\n hide?: boolean;\n};\n\ndeclare const Area: IntergalacticD3Component<'path', AreaProps, Context> & {\n Dots: IntergalacticD3Component<'circle', AreaDotsProps, AreaDotsContext>;\n Null: IntergalacticD3Component<'path', AreaNullProps, Context>;\n Line: IntergalacticD3Component<'path', Context, Context>;\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 { UnknownProperties } from '@semcore/core';\nimport { Context } from './context';\nimport { IntergalacticD3Component } from './Plot';\nimport { ScaleBand, ScaleLinear } from 'd3-scale';\n\n/** @deprecated */\nexport interface IBarProps extends BarProps, UnknownProperties {}\nexport type BarProps = Context & {\n /** Field name from `data` array item for the XAxis */\n x?: string;\n /** Field name from `data` array item for the YAxis */\n y?: string;\n /** Line color */\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 2\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 * The maximum width of each Bar\n */\n maxBarSize?: number;\n};\n\n/** @deprecated */\nexport interface IBarContext extends BarContext, UnknownProperties {}\nexport type BarContext = {\n scale: [ScaleBand<any>, ScaleLinear<any, any>];\n /** @deprecated */\n value: unknown;\n /** Index in `data` array */\n index: number;\n x: number;\n y: number;\n width: number;\n height: number;\n};\n\n/** @deprecated */\nexport interface IBackgroundProps extends BackgroundProps, UnknownProperties {}\nexport type BackgroundProps = Context & {\n /** Coordinate x */\n x?: number | string;\n /** Coordinate y */\n y?: number | string;\n /** Value element of data */\n /** @deprecated */\n value?: any;\n /** Width rect */\n width?: number | string;\n /** Height rect */\n height?: number | string;\n};\n\ntype BackgroundContext = Context & {\n /** Index in `data` array */\n index: number;\n};\n\ndeclare const Bar: IntergalacticD3Component<'rect', BarProps, BarContext> & {\n Background: IntergalacticD3Component<'rect', BackgroundProps, BackgroundContext>;\n};\n\nexport default Bar;\n"],"mappings":""}
|
1
|
+
{"version":3,"file":"Bar.d.js","names":[],"sources":["../../../src/types/Bar.d.ts"],"sourcesContent":["import { UnknownProperties } from '@semcore/core';\nimport { Context } from './context';\nimport { IntergalacticD3Component } from './Plot';\nimport { ScaleBand, ScaleLinear } from 'd3-scale';\nimport { PatternsConfig } from './Pattern';\n\n/** @deprecated */\nexport interface IBarProps extends BarProps, UnknownProperties {}\nexport type BarProps = Context & {\n /** Field name from `data` array item for the XAxis */\n x?: string;\n /** Field name from `data` array item for the YAxis */\n y?: string;\n /** Line color */\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 2\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 * The maximum width of each Bar\n */\n maxBarSize?: number;\n /** Enables charts patterns that enhances charts accessability */\n patterns?: PatternsConfig;\n};\n\n/** @deprecated */\nexport interface IBarContext extends BarContext, UnknownProperties {}\nexport type BarContext = {\n scale: [ScaleBand<any>, ScaleLinear<any, any>];\n /** @deprecated */\n value: unknown;\n /** Index in `data` array */\n index: number;\n x: number;\n y: number;\n width: number;\n height: number;\n};\n\n/** @deprecated */\nexport interface IBackgroundProps extends BackgroundProps, UnknownProperties {}\nexport type BackgroundProps = Context & {\n /** Coordinate x */\n x?: number | string;\n /** Coordinate y */\n y?: number | string;\n /** Value element of data */\n /** @deprecated */\n value?: any;\n /** Width rect */\n width?: number | string;\n /** Height rect */\n height?: number | string;\n};\n\ntype BackgroundContext = Context & {\n /** Index in `data` array */\n index: number;\n};\n\ndeclare const Bar: IntergalacticD3Component<'rect', BarProps, BarContext> & {\n Background: IntergalacticD3Component<'rect', BackgroundProps, BackgroundContext>;\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 { Intergalactic, UnknownProperties } from '@semcore/core';\nimport { Context } from './context';\nimport { TooltipType } from './Tooltip';\nimport { IntergalacticD3Component } from './Plot';\n\n/** @deprecated */\nexport interface IBubbleProps extends BubbleProps, UnknownProperties {}\nexport type BubbleProps = Context & {\n /** Field name from `data` array item for the XAxis */\n x: string;\n /** Field name from `data` array item for the YAxis */\n y: string;\n /** Field name from `data` array item for the circle radius */\n value: string;\n /** Field name from `data` array item for the 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\n/** @deprecated */\nexport interface IBubbleContext extends BubbleContext, UnknownProperties {}\nexport type BubbleContext = {\n /** Index element of data */\n index: number;\n};\n\ndeclare const Bubble: IntergalacticD3Component<Intergalactic.Tag, BubbleProps, BubbleContext> & {\n Tooltip: TooltipType<\n BubbleProps & {\n /**\n * @deprecated Use `index` instead.\n */\n xIndex: number;\n /**\n * Index of item in the `data` array used to render related bubble.\n */\n index: number;\n }\n >;\n};\n\nexport default Bubble;\n"],"mappings":""}
|
1
|
+
{"version":3,"file":"Bubble.d.js","names":[],"sources":["../../../src/types/Bubble.d.ts"],"sourcesContent":["import { Intergalactic, UnknownProperties } from '@semcore/core';\nimport { Context } from './context';\nimport { TooltipType } from './Tooltip';\nimport { IntergalacticD3Component } from './Plot';\nimport { PatternsConfig } from './Pattern';\n\n/** @deprecated */\nexport interface IBubbleProps extends BubbleProps, UnknownProperties {}\nexport type BubbleProps = Context & {\n /** Field name from `data` array item for the XAxis */\n x: string;\n /** Field name from `data` array item for the YAxis */\n y: string;\n /** Field name from `data` array item for the circle radius */\n value: string;\n /** Field name from `data` array item for the 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 /** Enables charts patterns that enhances charts accessability */\n patterns?: PatternsConfig;\n};\n\n/** @deprecated */\nexport interface IBubbleContext extends BubbleContext, UnknownProperties {}\nexport type BubbleContext = {\n /** Index element of data */\n index: number;\n};\n\ndeclare const Bubble: IntergalacticD3Component<Intergalactic.Tag, BubbleProps, BubbleContext> & {\n Tooltip: TooltipType<\n BubbleProps & {\n /**\n * @deprecated Use `index` instead.\n */\n xIndex: number;\n /**\n * Index of item in the `data` array used to render related bubble.\n */\n index: number;\n }\n >;\n};\n\nexport default Bubble;\n"],"mappings":""}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Donut.d.js","names":[],"sources":["../../../src/types/Donut.d.ts"],"sourcesContent":["import { UnknownProperties } from '@semcore/core';\nimport { Context } from './context';\nimport { TooltipType } from './Tooltip';\nimport { IntergalacticD3Component } from './Plot';\n\n/** @deprecated */\nexport interface IDonutProps extends DonutProps, UnknownProperties {}\nexport type DonutProps = Context & {\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. Set `0` to disable animation.\n * @default 500\n */\n duration?: number;\n /** Additional padding between segments in radians.\n * @default 0\n */\n paddingAngle?: number;\n};\n\n/** @deprecated */\nexport interface IPieProps extends PieProps, UnknownProperties {}\nexport type PieProps = Context & {\n /**\n * Name of the field in the data\n * */\n dataKey: string;\n /**\n * Human readable name of the segment\n * */\n name: string;\n /** Color pie **/\n color?: string;\n /**\n * Active sector\n * */\n active?: boolean;\n /** Enables element transparency */\n transparent?: boolean;\n};\n\n/** @deprecated */\nexport interface IEmptyDataProps extends EmptyDataProps, UnknownProperties {}\nexport type EmptyDataProps = Context & {};\n\n/** @deprecated */\nexport interface ILabelProps extends LabelProps, UnknownProperties {}\nexport type LabelProps = Context & {\n label?: string;\n};\n\ndeclare const Donut: IntergalacticD3Component<'g', DonutProps> & {\n Pie: IntergalacticD3Component<'path', PieProps>;\n EmptyData: IntergalacticD3Component<'path', EmptyDataProps>;\n Label: IntergalacticD3Component<'text', LabelProps>;\n Tooltip: TooltipType<PieProps>;\n};\n\nexport default Donut;\n"],"mappings":""}
|
1
|
+
{"version":3,"file":"Donut.d.js","names":[],"sources":["../../../src/types/Donut.d.ts"],"sourcesContent":["import { UnknownProperties } from '@semcore/core';\nimport { Context } from './context';\nimport { TooltipType } from './Tooltip';\nimport { IntergalacticD3Component } from './Plot';\nimport { PatternsConfig } from './Pattern';\n\n/** @deprecated */\nexport interface IDonutProps extends DonutProps, UnknownProperties {}\nexport type DonutProps = Context & {\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. Set `0` to disable animation.\n * @default 500\n */\n duration?: number;\n /** Additional padding between segments in radians.\n * @default 0\n */\n paddingAngle?: number;\n /** Enables charts patterns that enhances charts accessability */\n patterns?: PatternsConfig;\n};\n\n/** @deprecated */\nexport interface IPieProps extends PieProps, UnknownProperties {}\nexport type PieProps = Context & {\n /**\n * Name of the field in the data\n * */\n dataKey: string;\n /**\n * Human readable name of the segment\n * */\n name: string;\n /** Color pie **/\n color?: string;\n /**\n * Active sector\n * */\n active?: boolean;\n /** Enables element transparency */\n transparent?: boolean;\n};\n\n/** @deprecated */\nexport interface IEmptyDataProps extends EmptyDataProps, UnknownProperties {}\nexport type EmptyDataProps = Context & {};\n\n/** @deprecated */\nexport interface ILabelProps extends LabelProps, UnknownProperties {}\nexport type LabelProps = Context & {\n label?: string;\n};\n\ndeclare const Donut: IntergalacticD3Component<'g', DonutProps> & {\n Pie: IntergalacticD3Component<'path', PieProps>;\n EmptyData: IntergalacticD3Component<'path', EmptyDataProps>;\n Label: IntergalacticD3Component<'text', LabelProps>;\n Tooltip: TooltipType<PieProps>;\n};\n\nexport default Donut;\n"],"mappings":""}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"GroupBar.d.js","names":[],"sources":["../../../src/types/GroupBar.d.ts"],"sourcesContent":["import { UnknownProperties } from '@semcore/core';\nimport { BarContext, BarProps } from './Bar';\nimport { HorizontalBarProps } from './HorizontalBar';\nimport { Context } from './context';\nimport { IntergalacticD3Component } from './Plot';\n\n/** @deprecated */\nexport interface IGroupBarProps extends GroupBarProps, UnknownProperties {}\nexport type GroupBarProps = Context & {\n /** Field name from `data` array item for the XAxis */\n x?: string;\n /** Field name from `data` array item for the YAxis */\n y?: string;\n /** Scale for group bars */\n /** @deprecated */\n scaleGroup?: any;\n
|
1
|
+
{"version":3,"file":"GroupBar.d.js","names":[],"sources":["../../../src/types/GroupBar.d.ts"],"sourcesContent":["import { UnknownProperties } from '@semcore/core';\nimport { BarContext, BarProps } from './Bar';\nimport { HorizontalBarProps } from './HorizontalBar';\nimport { Context } from './context';\nimport { IntergalacticD3Component } from './Plot';\nimport { PatternsConfig } from './Pattern';\n\n/** @deprecated */\nexport interface IGroupBarProps extends GroupBarProps, UnknownProperties {}\nexport type GroupBarProps = Context & {\n /** Field name from `data` array item for the XAxis */\n x?: string;\n /** Field name from `data` array item for the YAxis */\n y?: string;\n /** Scale for group bars */\n /** @deprecated */\n scaleGroup?: any;\n /**\n * The maximum width of each Bar\n */\n maxBarSize?: number;\n};\n\ndeclare const GroupBar: IntergalacticD3Component<'g', GroupBarProps> & {\n Bar: IntergalacticD3Component<'path', BarProps>;\n HorizontalBar: IntergalacticD3Component<'path', HorizontalBarProps, BarContext>;\n};\n\nexport default GroupBar;\n"],"mappings":""}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"HorizontalBar.d.js","names":[],"sources":["../../../src/types/HorizontalBar.d.ts"],"sourcesContent":["import { UnknownProperties } from '@semcore/core';\nimport { Context } from './context';\nimport { BarContext, BackgroundProps } from './Bar';\nimport { IntergalacticD3Component } from './Plot';\n\n/** @deprecated */\nexport interface IHorizontalBarProps extends HorizontalBarProps, UnknownProperties {}\nexport type HorizontalBarProps = Context & {\n /** Field name from `data` array item for the XAxis */\n x?: string;\n /** Field name from `data` array item for the YAxis */\n y?: string;\n /** Line color */\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 * The maximum width of each Bar\n */\n maxBarSize?: number;\n};\n\ndeclare const HorizontalBar: IntergalacticD3Component<'path', HorizontalBarProps, BarContext> & {\n Background: IntergalacticD3Component<'rect', BackgroundProps, Context>;\n};\n\nexport default HorizontalBar;\n"],"mappings":""}
|
1
|
+
{"version":3,"file":"HorizontalBar.d.js","names":[],"sources":["../../../src/types/HorizontalBar.d.ts"],"sourcesContent":["import { UnknownProperties } from '@semcore/core';\nimport { Context } from './context';\nimport { BarContext, BackgroundProps } from './Bar';\nimport { IntergalacticD3Component } from './Plot';\nimport { PatternsConfig } from './Pattern';\n\n/** @deprecated */\nexport interface IHorizontalBarProps extends HorizontalBarProps, UnknownProperties {}\nexport type HorizontalBarProps = Context & {\n /** Field name from `data` array item for the XAxis */\n x?: string;\n /** Field name from `data` array item for the YAxis */\n y?: string;\n /** Line color */\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 * The maximum width of each Bar\n */\n maxBarSize?: number;\n /** Enables charts patterns that enhances charts accessability */\n patterns?: PatternsConfig;\n};\n\ndeclare const HorizontalBar: IntergalacticD3Component<'path', HorizontalBarProps, BarContext> & {\n Background: IntergalacticD3Component<'rect', BackgroundProps, Context>;\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 { UnknownProperties } from '@semcore/core';\nimport { Context } from './context';\nimport { curveCardinal, CurveFactory } from 'd3-shape';\nimport { FadeInOutProps } from '@semcore/animation';\nimport { IntergalacticD3Component } from './Plot';\n\n/** @deprecated */\nexport interface ILineProps extends LineProps, UnknownProperties {}\nexport type LineProps = Context & {\n /** Field name from `data` array item for the XAxis */\n x?: string;\n /** Field name from `data` array item for the YAxis */\n y?: string;\n /** Line color */\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\n/** @deprecated */\nexport interface ILineDotsProps extends LineDotsProps, UnknownProperties {}\nexport type LineDotsProps = Context &\n Omit<FadeInOutProps, 'display'> & {\n /** Show all Dot */\n display?: boolean;\n /** Hide property */\n hide?: boolean;\n /** Index active of element */\n activeIndex?: number;\n /** Dot radius, radius of active dot is 4/3 times larger\n * @default 6\n */\n radius?: number;\n };\n\n/** @deprecated */\nexport interface ILineDotsContext extends LineDotsContext, UnknownProperties {}\nexport type LineDotsContext = {\n /** Value element of data */\n /** @deprecated */\n value?: any;\n /** Index element of data */\n index?: number;\n};\n\n/** @deprecated */\nexport interface ILineNullProps extends LineNullProps, UnknownProperties {}\nexport type LineNullProps = Context & {\n /** Hide property */\n hide?: boolean;\n};\n\nexport type LineAreaProps = Omit<LineProps, 'transparent'> & {\n /**\n * Field name from `data` (or from `area`, if passed) array for y0 point by the YAxis for the Area\n */\n y0: string;\n /**\n * Field name from `data` (or from `area`, if passed) array for y1 point by the YAxis for the Area\n */\n y1: string;\n\n /**\n * Optional data for render area\n */\n area?: Array<{ [key: string]: number }>;\n};\n\ndeclare const Line: IntergalacticD3Component<'line', LineProps, Context> & {\n Dots: IntergalacticD3Component<'circle', LineDotsProps, LineDotsContext>;\n Null: IntergalacticD3Component<'path', LineNullProps>;\n Area: IntergalacticD3Component<'path', LineAreaProps>;\n};\n\nexport default Line;\n"],"mappings":""}
|
1
|
+
{"version":3,"file":"Line.d.js","names":[],"sources":["../../../src/types/Line.d.ts"],"sourcesContent":["import { UnknownProperties } from '@semcore/core';\nimport { Context } from './context';\nimport { curveCardinal, CurveFactory } from 'd3-shape';\nimport { FadeInOutProps } from '@semcore/animation';\nimport { IntergalacticD3Component } from './Plot';\nimport { PatternsConfig } from './Pattern';\n\n/** @deprecated */\nexport interface ILineProps extends LineProps, UnknownProperties {}\nexport type LineProps = Context & {\n /** Field name from `data` array item for the XAxis */\n x?: string;\n /** Field name from `data` array item for the YAxis */\n y?: string;\n /** Line color */\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 /** Enables charts patterns that enhances charts accessability */\n patterns?: PatternsConfig;\n};\n\n/** @deprecated */\nexport interface ILineDotsProps extends LineDotsProps, UnknownProperties {}\nexport type LineDotsProps = Context &\n Omit<FadeInOutProps, 'display'> & {\n /** Show all Dot */\n display?: boolean;\n /** Hide property */\n hide?: boolean;\n /** Index active of element */\n activeIndex?: number;\n /** Dot radius, radius of active dot is 4/3 times larger\n * @default 6\n */\n radius?: number;\n };\n\n/** @deprecated */\nexport interface ILineDotsContext extends LineDotsContext, UnknownProperties {}\nexport type LineDotsContext = {\n /** Value element of data */\n /** @deprecated */\n value?: any;\n /** Index element of data */\n index?: number;\n};\n\n/** @deprecated */\nexport interface ILineNullProps extends LineNullProps, UnknownProperties {}\nexport type LineNullProps = Context & {\n /** Hide property */\n hide?: boolean;\n};\n\nexport type LineAreaProps = Omit<LineProps, 'transparent'> & {\n /**\n * Field name from `data` (or from `area`, if passed) array for y0 point by the YAxis for the Area\n */\n y0: string;\n /**\n * Field name from `data` (or from `area`, if passed) array for y1 point by the YAxis for the Area\n */\n y1: string;\n\n /**\n * Optional data for render area\n */\n area?: Array<{ [key: string]: number }>;\n};\n\ndeclare const Line: IntergalacticD3Component<'line', LineProps, Context> & {\n Dots: IntergalacticD3Component<'circle', LineDotsProps, LineDotsContext>;\n Null: IntergalacticD3Component<'path', LineNullProps>;\n Area: IntergalacticD3Component<'path', LineAreaProps>;\n};\n\nexport default Line;\n"],"mappings":""}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Plot.d.js","names":[],"sources":["../../../src/types/Plot.d.ts"],"sourcesContent":["import { BoxProps } from '@semcore/flex-box';\nimport { UnknownProperties, Intergalactic } from '@semcore/core';\nimport { Context } from './context';\nimport { DataStructureHints } from './a11y/hints';\nimport { PatternsConfig } from '
|
1
|
+
{"version":3,"file":"Plot.d.js","names":[],"sources":["../../../src/types/Plot.d.ts"],"sourcesContent":["import { BoxProps } from '@semcore/flex-box';\nimport { UnknownProperties, Intergalactic } from '@semcore/core';\nimport { Context } from './context';\nimport { DataStructureHints } from './a11y/hints';\nimport { PatternsConfig } from './Pattern';\n\n/** @deprecated */\nexport interface IPlotProps extends PlotProps, UnknownProperties {}\nexport type PlotProps = Context &\n BoxProps & {\n /** Width of the svg element\n * @default 0*/\n width?: number;\n /** Height of the svg element\n * @default 0*/\n height?: number;\n /** Human readable chart name (e.g \"Last market trends\") */\n label?: string;\n /**\n * Locale for displaying the days of a week and months, to be transferred to `Intl`\n * @default en\n * */\n locale?: NavigatorLanguage['language'];\n /**\n * Optional container for data hints (use it if you have a legend component upper in tree)\n */\n dataHints?: DataStructureHints;\n /** Optional prop to tune up alt text generating for charts */\n a11yAltTextConfig?: PlotSummarizerConfig;\n\n /** Enables charts patterns that enhances charts accessability */\n patterns?: PatternsConfig;\n\n /** @deprecated */\n eventEmitter?: unknown;\n };\n\nexport type PlotSummarizerConfig = {\n /** Totally disable automatic data summarization */\n disable?: boolean;\n /** Disable automatic data summarization and use provided text */\n override?: string;\n /** Tuning up time series trends analyzing. Represents angle tangens of time series change of different strength */\n trendTangens?: {\n /** Angle tangens of time series that have meaningful trending change\n * @default 1/15\n */\n static?: number;\n /** Angle tangens of time series that have weak trending change\n * @default 1/10\n */\n weak?: number;\n /** Angle tangens of time series that have medium trending change\n * @default 1/5\n */\n medium?: number;\n /** Angle tangens of time series that have strong trending change\n * @default Infinity\n */\n strong?: number;\n };\n /** Tuning up time series local trends detection based on moving averages */\n movingAverage?: {\n /** Frame size of long moving average\n * @default Math.sqrt(data.length)\n */\n longSize?: number;\n /** Frame size of short moving average\n * @default Math.sqrt(data.length)/2\n */\n shortSize?: number;\n /** Absolute difference between values on moving averages crossing to\n * be handled as local trend change.\n * @default StandardDeviation/10\n */\n notableDiff?: number;\n };\n /** The way data to be interpreted as. By default is based on used used Plot elements and data structure.\n */\n dataType?: 'time-series' | 'points-cloud' | 'values-set';\n /** Grid size to split data of point clouds into clusters.\n */\n clustersGridSize?: number;\n /** Limits some output lists in chart alt text\n * @default 100\n * **/\n maxListSymbols?: number;\n /** Always add time to dates in chart alt text **/\n datesWithTime?: boolean;\n /** Described clusters count before text \"and X more\"\n * @default false\n * **/\n clustersLimit?: number;\n /** Described values count before text \"and X more\"\n * @default false\n * **/\n valuesLimit?: number;\n /** Described grouped value groups count before text \"and X more\"\n * @default false\n * **/\n groupsLimit?: number;\n /** Additional field for extra text description to the data\n * **/\n additionalFields?: string[];\n};\n\n/** @deprecated */\nexport type MapProps<Props, Ctx = {}, UCProps = {}> = Props & {\n children?:\n | ((props: Props & Ctx, handlers: UCProps) => Props | React.PropsWithChildren)\n | React.ReactNode;\n};\n\nexport type IntergalacticD3Component<BaseTag extends Intergalactic.Tag, Props, Context = {}> = (<\n Tag extends Intergalactic.Tag = BaseTag,\n>(\n props: Intergalactic.InternalTypings.PropsRenderingResultComponentProps<Tag, Props, Context>,\n) => Intergalactic.InternalTypings.ComponentRenderingResults) &\n Intergalactic.InternalTypings.ComponentAdditive<BaseTag, BaseTag, Props>;\n\ndeclare const Plot: IntergalacticD3Component<'svg', PlotProps, Context>;\nexport default Plot;\n"],"mappings":""}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Radar.d.js","names":[],"sources":["../../../src/types/Radar.d.ts"],"sourcesContent":["import { Context } from './context';\nimport { UnknownProperties } from '@semcore/core';\nimport { CurveFactory } from 'd3-shape';\nimport { TooltipType } from './Tooltip';\nimport { IntergalacticD3Component } from './Plot';\nimport { BoxProps } from '@semcore/flex-box';\n\n/** @deprecated */\nexport interface IRadarProps extends RadarProps, UnknownProperties {}\nexport type RadarProps = Context & {\n /**\n * Scale for radar element\n * */\n /** @deprecated */\n scale: any;\n /**\n * Graph type to be displayed\n * @default 'polygon'\n * */\n type?: 'polygon' | 'circle';\n /**\n * Indent from the edge of svg to graph\n * */\n offset?: number;\n\n /**\n * Label font size\n * @default 12\n * */\n textSize?: number;\n\n /**\n * Base angle of chart rotation\n * @default 0\n * @example Math.PI/3\n * */\n angleOffset?: number;\n};\n\n/** @deprecated */\nexport interface IRadarAxisProps extends RadarAxisProps, UnknownProperties {}\nexport type RadarAxisProps = Context & {\n /**\n * Sets the field name for categories\n * */\n dataKey: string;\n};\n\n/** @deprecated */\nexport interface IRadarAxisTicksProps extends RadarAxisTicksProps, UnknownProperties {}\nexport type RadarAxisTicksProps = {\n /**\n * Distance between auxiliary lines\n * @default 100\n * */\n tickSize?: number;\n};\n\n/** @deprecated */\nexport interface IRadarAxisLabelsProps extends RadarAxisLabelsProps, UnknownProperties {}\nexport type RadarAxisLabelsProps = {\n /**\n * Indent from graph to label\n * @default 10\n * */\n labelOffset?: number;\n};\n\ntype RadarAxisLabelsContext = Context & {\n xDirection: 'middle' | 'start' | 'end';\n yDirection: 'alphabetic' | 'mathematical' | 'middle';\n x: number;\n y: number;\n};\n\n/** @deprecated */\nexport interface IRadialPolygonProps extends RadialPolygonProps, UnknownProperties {}\nexport type RadialPolygonProps = Context & {\n /**\n * Sets the field name for data\n * */\n dataKey: string;\n /**\n * Curve method\n * @default curveLinearClosed\n * */\n curve?: CurveFactory;\n /**\n * Sets the color of the entire polygon\n * */\n color?: string;\n /**\n * Sets the fill color\n * */\n fill?: string;\n};\n\n/** @deprecated */\nexport interface IRadialPolygonLineProps extends RadialPolygonLineProps, UnknownProperties {}\nexport type RadialPolygonLineProps = {\n /**\n * Sets the line color\n * */\n color?: string;\n};\n\n/** @deprecated */\nexport interface IRadialPolygonDotsProps extends RadialPolygonDotsProps, UnknownProperties {}\nexport type RadialPolygonDotsProps = {\n /**\n * Sets the dot color\n * */\n color?: string;\n};\n\n/** @deprecated */\nexport interface IRadarHoverProps extends RadarHoverProps, UnknownProperties {}\nexport type RadarHoverProps = BoxProps & Context & {};\n\ndeclare const Radar: IntergalacticD3Component<'g', RadarProps, Context> & {\n Axis: IntergalacticD3Component<'path', RadarAxisProps, Context> & {\n Ticks: IntergalacticD3Component<'path', RadarAxisTicksProps, Context>;\n Labels: IntergalacticD3Component<'text', RadarAxisLabelsProps, RadarAxisLabelsContext>;\n };\n Polygon: IntergalacticD3Component<'path', RadialPolygonProps, Context> & {\n Line: IntergalacticD3Component<'line', RadialPolygonLineProps, Context>;\n Dots: IntergalacticD3Component<'circle', RadialPolygonDotsProps, Context>;\n };\n Hover: IntergalacticD3Component<'path', RadarHoverProps, Context>;\n Tooltip: TooltipType<\n RadarHoverProps & {\n /** Index in `data` array of the current items */\n index: number;\n }\n >;\n};\n\nexport declare function getLabelOffsetPosition(\n xDirection: 'middle' | 'start' | 'end',\n yDirection: 'alphabetic' | 'mathematical' | 'middle',\n width: number,\n height: number,\n): [xOffset: number, yOffset: number];\n\nexport default Radar;\n"],"mappings":""}
|
1
|
+
{"version":3,"file":"Radar.d.js","names":[],"sources":["../../../src/types/Radar.d.ts"],"sourcesContent":["import { Context } from './context';\nimport { UnknownProperties } from '@semcore/core';\nimport { CurveFactory } from 'd3-shape';\nimport { TooltipType } from './Tooltip';\nimport { IntergalacticD3Component } from './Plot';\nimport { BoxProps } from '@semcore/flex-box';\nimport { PatternsConfig } from './Pattern';\n\n/** @deprecated */\nexport interface IRadarProps extends RadarProps, UnknownProperties {}\nexport type RadarProps = Context & {\n /**\n * Scale for radar element\n * */\n /** @deprecated */\n scale: any;\n /**\n * Graph type to be displayed\n * @default 'polygon'\n * */\n type?: 'polygon' | 'circle';\n /**\n * Indent from the edge of svg to graph\n * */\n offset?: number;\n\n /**\n * Label font size\n * @default 12\n * */\n textSize?: number;\n\n /**\n * Base angle of chart rotation\n * @default 0\n * @example Math.PI/3\n * */\n angleOffset?: number;\n /** Enables charts patterns that enhances charts accessability */\n patterns?: PatternsConfig;\n};\n\n/** @deprecated */\nexport interface IRadarAxisProps extends RadarAxisProps, UnknownProperties {}\nexport type RadarAxisProps = Context & {\n /**\n * Sets the field name for categories\n * */\n dataKey: string;\n};\n\n/** @deprecated */\nexport interface IRadarAxisTicksProps extends RadarAxisTicksProps, UnknownProperties {}\nexport type RadarAxisTicksProps = {\n /**\n * Distance between auxiliary lines\n * @default 100\n * */\n tickSize?: number;\n};\n\n/** @deprecated */\nexport interface IRadarAxisLabelsProps extends RadarAxisLabelsProps, UnknownProperties {}\nexport type RadarAxisLabelsProps = {\n /**\n * Indent from graph to label\n * @default 10\n * */\n labelOffset?: number;\n};\n\ntype RadarAxisLabelsContext = Context & {\n xDirection: 'middle' | 'start' | 'end';\n yDirection: 'alphabetic' | 'mathematical' | 'middle';\n x: number;\n y: number;\n};\n\n/** @deprecated */\nexport interface IRadialPolygonProps extends RadialPolygonProps, UnknownProperties {}\nexport type RadialPolygonProps = Context & {\n /**\n * Sets the field name for data\n * */\n dataKey: string;\n /**\n * Curve method\n * @default curveLinearClosed\n * */\n curve?: CurveFactory;\n /**\n * Sets the color of the entire polygon\n * */\n color?: string;\n /**\n * Sets the fill color\n * */\n fill?: string;\n};\n\n/** @deprecated */\nexport interface IRadialPolygonLineProps extends RadialPolygonLineProps, UnknownProperties {}\nexport type RadialPolygonLineProps = {\n /**\n * Sets the line color\n * */\n color?: string;\n};\n\n/** @deprecated */\nexport interface IRadialPolygonDotsProps extends RadialPolygonDotsProps, UnknownProperties {}\nexport type RadialPolygonDotsProps = {\n /**\n * Sets the dot color\n * */\n color?: string;\n};\n\n/** @deprecated */\nexport interface IRadarHoverProps extends RadarHoverProps, UnknownProperties {}\nexport type RadarHoverProps = BoxProps & Context & {};\n\ndeclare const Radar: IntergalacticD3Component<'g', RadarProps, Context> & {\n Axis: IntergalacticD3Component<'path', RadarAxisProps, Context> & {\n Ticks: IntergalacticD3Component<'path', RadarAxisTicksProps, Context>;\n Labels: IntergalacticD3Component<'text', RadarAxisLabelsProps, RadarAxisLabelsContext>;\n };\n Polygon: IntergalacticD3Component<'path', RadialPolygonProps, Context> & {\n Line: IntergalacticD3Component<'line', RadialPolygonLineProps, Context>;\n Dots: IntergalacticD3Component<'circle', RadialPolygonDotsProps, Context>;\n };\n Hover: IntergalacticD3Component<'path', RadarHoverProps, Context>;\n Tooltip: TooltipType<\n RadarHoverProps & {\n /** Index in `data` array of the current items */\n index: number;\n }\n >;\n};\n\nexport declare function getLabelOffsetPosition(\n xDirection: 'middle' | 'start' | 'end',\n yDirection: 'alphabetic' | 'mathematical' | 'middle',\n width: number,\n height: number,\n): [xOffset: number, yOffset: number];\n\nexport default Radar;\n"],"mappings":""}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ReferenceLine.d.js","names":[],"sources":["../../../src/types/ReferenceLine.d.ts"],"sourcesContent":["import { UnknownProperties } from '@semcore/core';\nimport { Context } from './context';\nimport { IntergalacticD3Component } from './Plot';\n\n/** @deprecated **/\nexport interface IReferenceLineProps extends ReferenceLineProps, UnknownProperties {}\nexport type ReferenceLineProps = Context & {\n /** The position of the title relative reference line\n * @default 'left' */\n position?: 'top' | 'right' | 'bottom' | 'left';\n /** Value element of data */\n
|
1
|
+
{"version":3,"file":"ReferenceLine.d.js","names":[],"sources":["../../../src/types/ReferenceLine.d.ts"],"sourcesContent":["import { UnknownProperties } from '@semcore/core';\nimport { Context } from './context';\nimport { IntergalacticD3Component } from './Plot';\n\n/** @deprecated **/\nexport interface IReferenceLineProps extends ReferenceLineProps, UnknownProperties {}\nexport type ReferenceLineProps = Context & {\n /** The position of the title relative reference line\n * @default 'left' */\n position?: 'top' | 'right' | 'bottom' | 'left';\n /** Value element of data */\n value?: any;\n\n title?: string;\n};\n\n/** @deprecated **/\nexport interface IReferenceLineTitleProps extends ReferenceLineTitleProps, UnknownProperties {}\nexport type ReferenceLineTitleProps = Context & {\n /** The position of the axis relative reference line */\n position?: 'top' | 'right' | 'bottom' | 'left';\n /** Value element of data */\n value: any;\n};\n\n/** @deprecated **/\nexport interface IReferenceLineBackgroundProps\n extends ReferenceLineBackgroundProps,\n UnknownProperties {}\nexport type ReferenceLineBackgroundProps = Context & {\n /** The position of the axis relative reference line */\n position?: 'top' | 'right' | 'bottom' | 'left';\n /** Value element of data */\n value?: any;\n /** Value of the background end */\n endValue?: number | string;\n};\n\ndeclare const ReferenceLine: IntergalacticD3Component<'line', ReferenceLineProps, Context> & {\n Title: IntergalacticD3Component<'text', ReferenceLineTitleProps, Context>;\n Background: IntergalacticD3Component<'rect', ReferenceLineBackgroundProps, Context>;\n};\n\nexport default ReferenceLine;\n"],"mappings":""}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ScatterPlot.d.js","names":[],"sources":["../../../src/types/ScatterPlot.d.ts"],"sourcesContent":["import { UnknownProperties } from '@semcore/core';\nimport { Context } from './context';\nimport { TooltipType } from './Tooltip';\nimport { IntergalacticD3Component } from './Plot';\n\n/** @deprecated */\nexport interface IScatterPlotProps extends ScatterPlotProps, UnknownProperties {}\nexport type ScatterPlotProps = Context & {\n /** Field name from `data` array item for the XAxis */\n x: string;\n /** Field name from `data` array item for the YAxis */\n y: string;\n /** Field name from `data` array item for the 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: IntergalacticD3Component<'g', ScatterPlotProps, Context> & {\n Tooltip: TooltipType<\n ScatterPlotProps & {\n /**\n * @deprecated Use `index` instead.\n */\n xIndex: number;\n /**\n * Index of item in the `data` array used to render related circle.\n */\n index: number;\n }\n >;\n};\n\nexport default ScatterPlot;\n"],"mappings":""}
|
1
|
+
{"version":3,"file":"ScatterPlot.d.js","names":[],"sources":["../../../src/types/ScatterPlot.d.ts"],"sourcesContent":["import { UnknownProperties } from '@semcore/core';\nimport { Context } from './context';\nimport { TooltipType } from './Tooltip';\nimport { IntergalacticD3Component } from './Plot';\nimport { PatternsConfig } from './Pattern';\n\n/** @deprecated */\nexport interface IScatterPlotProps extends ScatterPlotProps, UnknownProperties {}\nexport type ScatterPlotProps = Context & {\n /** Field name from `data` array item for the XAxis */\n x: string;\n /** Field name from `data` array item for the YAxis */\n y: string;\n /** Field name from `data` array item for the 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 /** Enables charts patterns that enhances charts accessability */\n patterns?: PatternsConfig;\n};\n\ndeclare const ScatterPlot: IntergalacticD3Component<'g', ScatterPlotProps, Context> & {\n Tooltip: TooltipType<\n ScatterPlotProps & {\n /**\n * @deprecated Use `index` instead.\n */\n xIndex: number;\n /**\n * Index of item in the `data` array used to render related circle.\n */\n index: number;\n }\n >;\n};\n\nexport default ScatterPlot;\n"],"mappings":""}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"StackBar.d.js","names":[],"sources":["../../../src/types/StackBar.d.ts"],"sourcesContent":["import { UnknownProperties } from '@semcore/core';\nimport { Context } from './context';\nimport { BarContext, BarProps } from './Bar';\nimport { HorizontalBarProps } from './HorizontalBar';\nimport { IntergalacticD3Component } from './Plot';\n\n/** @deprecated */\nexport interface IStackBarProps extends StackBarProps, UnknownProperties {}\nexport type StackBarProps = Context & {\n /** Field name from `data` array item for the XAxis */\n x?: string;\n /** Field name from `data` array item for the YAxis */\n y?: string;\n /** Stack generators\n * @default d3.stack() */\n /** @deprecated */\n stack?: any;\n /**\n * The maximum width of each Bar\n */\n maxBarSize?: number;\n};\n\n/** @deprecated */\nexport interface IStackBarContext extends StackBarContext, UnknownProperties {}\nexport type StackBarContext = {\n /** Series is an array of points, where each point corresponds to the element in the input data. */\n /** @deprecated */\n series: any[];\n};\n\ndeclare const StackBar: IntergalacticD3Component<'g', StackBarProps, StackBarContext> & {\n Bar: IntergalacticD3Component<'path', BarProps, BarContext>;\n HorizontalBar: IntergalacticD3Component<'path', HorizontalBarProps, BarContext>;\n};\n\nexport default StackBar;\n"],"mappings":""}
|
1
|
+
{"version":3,"file":"StackBar.d.js","names":[],"sources":["../../../src/types/StackBar.d.ts"],"sourcesContent":["import { UnknownProperties } from '@semcore/core';\nimport { Context } from './context';\nimport { BarContext, BarProps } from './Bar';\nimport { HorizontalBarProps } from './HorizontalBar';\nimport { IntergalacticD3Component } from './Plot';\nimport { PatternsConfig } from './Pattern';\n\n/** @deprecated */\nexport interface IStackBarProps extends StackBarProps, UnknownProperties {}\nexport type StackBarProps = Context & {\n /** Field name from `data` array item for the XAxis */\n x?: string;\n /** Field name from `data` array item for the YAxis */\n y?: string;\n /** Stack generators\n * @default d3.stack() */\n /** @deprecated */\n stack?: any;\n /**\n * The maximum width of each Bar\n */\n maxBarSize?: number;\n\n /** Enables charts patterns that enhances charts accessability */\n patterns?: PatternsConfig;\n};\n\n/** @deprecated */\nexport interface IStackBarContext extends StackBarContext, UnknownProperties {}\nexport type StackBarContext = {\n /** Series is an array of points, where each point corresponds to the element in the input data. */\n /** @deprecated */\n series: any[];\n};\n\ndeclare const StackBar: IntergalacticD3Component<'g', StackBarProps, StackBarContext> & {\n Bar: IntergalacticD3Component<'path', BarProps, BarContext>;\n HorizontalBar: IntergalacticD3Component<'path', HorizontalBarProps, BarContext>;\n};\n\nexport default StackBar;\n"],"mappings":""}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"StackedArea.d.js","names":[],"sources":["../../../src/types/StackedArea.d.ts"],"sourcesContent":["import { UnknownProperties } from '@semcore/core';\nimport { Context } from './context';\nimport Area from './Area';\nimport { IntergalacticD3Component } from './Plot';\n\n/** @deprecated */\nexport interface IStackedAreaProps extends StackedAreaProps, UnknownProperties {}\nexport type StackedAreaProps = Context & {\n /** Field name from `data` array item for the XAxis */\n x?: string;\n /** Field name from `data` array item for the YAxis */\n y?: string;\n /** Stack generators\n * @default d3.stack() */\n /** @deprecated */\n stack?: any;\n};\n\n/** @deprecated */\nexport interface IStackedAreaContext extends StackedAreaContext, UnknownProperties {}\nexport type StackedAreaContext = {\n /** Series is an array of points, where each point corresponds to the element in the input data. */\n /** @deprecated */\n series: any[];\n};\n\ndeclare const StackedArea: IntergalacticD3Component<'g', StackedAreaProps, StackedAreaContext> & {\n Area: typeof Area;\n};\n\nexport default StackedArea;\n"],"mappings":""}
|
1
|
+
{"version":3,"file":"StackedArea.d.js","names":[],"sources":["../../../src/types/StackedArea.d.ts"],"sourcesContent":["import { UnknownProperties } from '@semcore/core';\nimport { Context } from './context';\nimport Area from './Area';\nimport { IntergalacticD3Component } from './Plot';\nimport { PatternsConfig } from './Pattern';\n\n/** @deprecated */\nexport interface IStackedAreaProps extends StackedAreaProps, UnknownProperties {}\nexport type StackedAreaProps = Context & {\n /** Field name from `data` array item for the XAxis */\n x?: string;\n /** Field name from `data` array item for the YAxis */\n y?: string;\n /** Stack generators\n * @default d3.stack() */\n /** @deprecated */\n stack?: any;\n\n /** Enables charts patterns that enhances charts accessability */\n patterns?: PatternsConfig;\n};\n\n/** @deprecated */\nexport interface IStackedAreaContext extends StackedAreaContext, UnknownProperties {}\nexport type StackedAreaContext = {\n /** Series is an array of points, where each point corresponds to the element in the input data. */\n /** @deprecated */\n series: any[];\n};\n\ndeclare const StackedArea: IntergalacticD3Component<'g', StackedAreaProps, StackedAreaContext> & {\n Area: typeof Area;\n};\n\nexport default StackedArea;\n"],"mappings":""}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Venn.d.js","names":[],"sources":["../../../src/types/Venn.d.ts"],"sourcesContent":["import { UnknownProperties } from '@semcore/core';\nimport { Context } from './context';\nimport { FadeInOutProps } from '@semcore/animation';\nimport { TooltipType } from './Tooltip';\nimport { IntergalacticD3Component } from './Plot';\n\n/** @deprecated */\nexport interface IVennProps extends VennProps, UnknownProperties {}\nexport type VennProps = Context &\n FadeInOutProps & {\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\n/** @deprecated */\nexport interface ICircleProps extends CircleProps, UnknownProperties {}\nexport type CircleProps = Context & {\n /**\n * Name of the field in the data\n * */\n dataKey: string;\n /**\n * Human readable name of the circle\n * */\n name: 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\n/** @deprecated */\nexport interface IIntersectionProps extends IntersectionProps, UnknownProperties {}\nexport type IntersectionProps = Context &\n FadeInOutProps & {\n /**\n * Name of the field in the data\n * */\n dataKey: string;\n /**\n * Human readable name of the intersection\n * */\n name: string;\n /** Enables element transparency */\n transparent?: boolean;\n };\n\ndeclare const Venn: IntergalacticD3Component<'g', VennProps, Context> & {\n Circle: IntergalacticD3Component<'circle', CircleProps, Context>;\n Intersection: IntergalacticD3Component<'path', IntersectionProps, Context>;\n Tooltip: TooltipType<CircleProps>;\n};\n\nexport default Venn;\n"],"mappings":""}
|
1
|
+
{"version":3,"file":"Venn.d.js","names":[],"sources":["../../../src/types/Venn.d.ts"],"sourcesContent":["import { UnknownProperties } from '@semcore/core';\nimport { Context } from './context';\nimport { FadeInOutProps } from '@semcore/animation';\nimport { TooltipType } from './Tooltip';\nimport { IntergalacticD3Component } from './Plot';\nimport { PatternsConfig } from './Pattern';\n\n/** @deprecated */\nexport interface IVennProps extends VennProps, UnknownProperties {}\nexport type VennProps = Context &\n FadeInOutProps & {\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 /** Enables charts patterns that enhances charts accessability */\n patterns?: PatternsConfig;\n };\n\n/** @deprecated */\nexport interface ICircleProps extends CircleProps, UnknownProperties {}\nexport type CircleProps = Context & {\n /**\n * Name of the field in the data\n * */\n dataKey: string;\n /**\n * Human readable name of the circle\n * */\n name: 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\n/** @deprecated */\nexport interface IIntersectionProps extends IntersectionProps, UnknownProperties {}\nexport type IntersectionProps = Context &\n FadeInOutProps & {\n /**\n * Name of the field in the data\n * */\n dataKey: string;\n /**\n * Human readable name of the intersection\n * */\n name: string;\n /** Enables element transparency */\n transparent?: boolean;\n };\n\ndeclare const Venn: IntergalacticD3Component<'g', VennProps, Context> & {\n Circle: IntergalacticD3Component<'circle', CircleProps, Context>;\n Intersection: IntergalacticD3Component<'path', IntersectionProps, Context>;\n Tooltip: TooltipType<CircleProps>;\n};\n\nexport default Venn;\n"],"mappings":""}
|
@@ -56,30 +56,32 @@ var lineDirection2props = {
|
|
56
56
|
}
|
57
57
|
};
|
58
58
|
var rectDirection2props = {
|
59
|
-
vertical: function vertical(_ref8, value) {
|
59
|
+
vertical: function vertical(_ref8, value, endValue) {
|
60
60
|
var _ref9 = _slicedToArray(_ref8, 2),
|
61
61
|
xScale = _ref9[0],
|
62
62
|
yScale = _ref9[1];
|
63
63
|
var yRange = yScale.range();
|
64
64
|
var x = scaleOfBandwidth(xScale, value);
|
65
|
+
var width = endValue !== undefined ? scaleOfBandwidth(xScale, endValue) - x : 100;
|
65
66
|
return {
|
66
67
|
x: x,
|
67
68
|
y: yRange[1],
|
68
|
-
width:
|
69
|
+
width: width,
|
69
70
|
height: yRange[0] - yRange[1]
|
70
71
|
};
|
71
72
|
},
|
72
|
-
horizontal: function horizontal(_ref10, value) {
|
73
|
+
horizontal: function horizontal(_ref10, value, endValue) {
|
73
74
|
var _ref11 = _slicedToArray(_ref10, 2),
|
74
75
|
xScale = _ref11[0],
|
75
76
|
yScale = _ref11[1];
|
76
77
|
var xRange = xScale.range();
|
77
78
|
var y = scaleOfBandwidth(yScale, value);
|
79
|
+
var height = endValue !== undefined ? scaleOfBandwidth(yScale, endValue) - y : 100;
|
78
80
|
return {
|
79
81
|
x: xRange[0],
|
80
82
|
y: y,
|
81
83
|
width: xRange[1] - xRange[0],
|
82
|
-
height:
|
84
|
+
height: height
|
83
85
|
};
|
84
86
|
}
|
85
87
|
};
|
@@ -217,12 +219,13 @@ function Background(props) {
|
|
217
219
|
styles = props.styles,
|
218
220
|
scale = props.scale,
|
219
221
|
position = props.position,
|
220
|
-
value = props.value
|
222
|
+
value = props.value,
|
223
|
+
endValue = props.endValue;
|
221
224
|
var positionProps = rectDirection2props[side2direction[position]];
|
222
225
|
return _ref3 = sstyled(styles), /*#__PURE__*/React.createElement(SBackground, _ref3.cn("SBackground", _objectSpread({
|
223
226
|
"render": 'rect',
|
224
227
|
"childrenPosition": 'inside'
|
225
|
-
}, positionProps(scale, value))));
|
228
|
+
}, positionProps(scale, value, endValue))));
|
226
229
|
}
|
227
230
|
var ReferenceLine = createElement(ReferenceLineRoot, {
|
228
231
|
Title: Title,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ReferenceLine.js","names":["React","Component","sstyled","createElement","scaleOfBandwidth","style","_sstyled","insert","side2direction","left","right","top","bottom","lineDirection2props","vertical","_ref4","value","_ref5","_slicedToArray","xScale","yScale","yRange","range","x","x1","x2","y1","y2","horizontal","_ref6","_ref7","xRange","y","rectDirection2props","_ref8","_ref9","width","height","_ref10","_ref11","titleOffset","titleSideToProps","_ref12","_ref13","_ref14","_ref15","_ref16","_ref17","_ref18","_ref19","ReferenceLineRoot","_Component","_inherits","_super","_createSuper","_classCallCheck","apply","arguments","_createClass","key","getTitleProps","_this$asProps","asProps","position","getBackgroundProps","_this$asProps2","render","_ref","SReferenceLine","Element","_this$asProps3","title","scale","color","resolveColor","styles","positionProps","Fragment","cn","_objectSpread","ReferenceLine","Title","_defineProperty","props","_ref2","STitle","_titleSideToProps$pos","sstyles","sTitleStyles","concat","toFixed","className","Background","_ref3","SBackground"],"sources":["../../src/ReferenceLine.jsx"],"sourcesContent":["import React from 'react';\nimport { Component, sstyled } from '@semcore/core';\nimport createElement from './createElement';\nimport { scaleOfBandwidth } from './utils';\n\nimport style from './style/reference-line.shadow.css';\n\nconst side2direction = {\n left: 'vertical',\n right: 'vertical',\n top: 'horizontal',\n bottom: 'horizontal',\n};\n\nconst lineDirection2props = {\n vertical: ([xScale, yScale], value) => {\n const yRange = yScale.range();\n const x = scaleOfBandwidth(xScale, value);\n return {\n x1: x,\n x2: x,\n y1: yRange[0],\n y2: yRange[1],\n };\n },\n horizontal: ([xScale, yScale], value) => {\n const xRange = xScale.range();\n const y = scaleOfBandwidth(yScale, value);\n return {\n x1: xRange[0],\n x2: xRange[1],\n y1: y,\n y2: y,\n };\n },\n};\n\nconst rectDirection2props = {\n vertical: ([xScale, yScale], value) => {\n const yRange = yScale.range();\n const x = scaleOfBandwidth(xScale, value);\n return {\n x: x,\n y: yRange[1],\n width: 100,\n height: yRange[0] - yRange[1],\n };\n },\n horizontal: ([xScale, yScale], value) => {\n const xRange = xScale.range();\n const y = scaleOfBandwidth(yScale, value);\n return {\n x: xRange[0],\n y: y,\n width: xRange[1] - xRange[0],\n height: 100,\n };\n },\n};\n\nconst titleOffset = 10;\nconst titleSideToProps = {\n left: ([xScale, yScale], value) => {\n const yRange = yScale.range();\n const x = scaleOfBandwidth(xScale, value);\n return {\n x: x - titleOffset,\n y: (yRange[0] + yRange[1]) / 2,\n };\n },\n right: ([xScale, yScale], value) => {\n const yRange = yScale.range();\n const x = scaleOfBandwidth(xScale, value);\n return {\n x: x + titleOffset,\n y: (yRange[0] + yRange[1]) / 2,\n };\n },\n top: ([xScale, yScale], value) => {\n const xRange = xScale.range();\n const y = scaleOfBandwidth(yScale, value);\n return {\n x: (xRange[1] + xRange[0]) / 2,\n y: y - titleOffset,\n };\n },\n bottom: ([xScale, yScale], value) => {\n const xRange = xScale.range();\n const y = scaleOfBandwidth(yScale, value);\n return {\n x: (xRange[1] + xRange[0]) / 2,\n y: y + titleOffset,\n };\n },\n};\n\nclass ReferenceLineRoot extends Component {\n static displayName = 'ReferenceLine';\n static style = style;\n static defaultProps = {\n position: 'left',\n };\n\n getTitleProps() {\n const { position, value } = this.asProps;\n return { position, value };\n }\n\n getBackgroundProps() {\n const { position, value } = this.asProps;\n return { position, value };\n }\n\n render() {\n const SReferenceLine = this.Element;\n const { title, scale, position, value, color, resolveColor, styles } = this.asProps;\n const positionProps = lineDirection2props[side2direction[position]];\n\n return sstyled(styles)(\n <>\n <SReferenceLine\n render='line'\n __excludeProps={['data', 'scale', 'format', 'value', 'color']}\n stroke={resolveColor(color)}\n {...positionProps(scale, value)}\n />\n {title && <ReferenceLine.Title>{title}</ReferenceLine.Title>}\n </>,\n );\n }\n}\n\nfunction Title(props) {\n const { Element: STitle, styles, scale, position, value } = props;\n const { x, y } = titleSideToProps[position](scale, value);\n\n const sstyles = sstyled(styles);\n const sTitleStyles = sstyles.cn('STitle', {\n 'transform-origin': `${x.toFixed(2)}px ${y.toFixed(2)}px`,\n });\n\n return sstyled(styles)(\n <STitle\n render='text'\n childrenPosition='inside'\n className={sTitleStyles.className}\n style={sTitleStyles.style}\n position={position}\n x={x}\n y={y}\n />,\n );\n}\n\nfunction Background(props) {\n const { Element: SBackground, styles, scale, position, value } = props;\n const positionProps = rectDirection2props[side2direction[position]];\n\n return sstyled(styles)(\n <SBackground render='rect' childrenPosition='inside' {...positionProps(scale, value)} />,\n );\n}\n\nconst ReferenceLine = createElement(ReferenceLineRoot, {\n Title,\n Background,\n});\n\nexport default ReferenceLine;\n"],"mappings":";;;;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,SAAS,EAAEC,OAAO,QAAQ,eAAe;AAClD,OAAOC,aAAa,MAAM,iBAAiB;AAC3C,SAASC,gBAAgB,QAAQ,SAAS;AAAC;AAAA,IAAAC,KAAA,+BAAAC,QAAA,CAAAC,MAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;AAAA;AAI3C,IAAMC,cAAc,GAAG;EACrBC,IAAI,EAAE,UAAU;EAChBC,KAAK,EAAE,UAAU;EACjBC,GAAG,EAAE,YAAY;EACjBC,MAAM,EAAE;AACV,CAAC;AAED,IAAMC,mBAAmB,GAAG;EAC1BC,QAAQ,EAAE,SAAAA,SAAAC,KAAA,EAAmBC,KAAK,EAAK;IAAA,IAAAC,KAAA,GAAAC,cAAA,CAAAH,KAAA;MAA3BI,MAAM,GAAAF,KAAA;MAAEG,MAAM,GAAAH,KAAA;IACxB,IAAMI,MAAM,GAAGD,MAAM,CAACE,KAAK,EAAE;IAC7B,IAAMC,CAAC,GAAGnB,gBAAgB,CAACe,MAAM,EAAEH,KAAK,CAAC;IACzC,OAAO;MACLQ,EAAE,EAAED,CAAC;MACLE,EAAE,EAAEF,CAAC;MACLG,EAAE,EAAEL,MAAM,CAAC,CAAC,CAAC;MACbM,EAAE,EAAEN,MAAM,CAAC,CAAC;IACd,CAAC;EACH,CAAC;EACDO,UAAU,EAAE,SAAAA,WAAAC,KAAA,EAAmBb,KAAK,EAAK;IAAA,IAAAc,KAAA,GAAAZ,cAAA,CAAAW,KAAA;MAA3BV,MAAM,GAAAW,KAAA;MAAEV,MAAM,GAAAU,KAAA;IAC1B,IAAMC,MAAM,GAAGZ,MAAM,CAACG,KAAK,EAAE;IAC7B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4D,UAAUA,CAACT,KAAK,EAAE;EAAA,IAAAU,KAAA;EACzB,IAAiBC,WAAW,GAAqCX,KAAK,CAA9Dd,OAAO;IAAeM,MAAM,GAA6BQ,KAAK,CAAxCR,MAAM;IAAEH,KAAK,GAAsBW,KAAK,CAAhCX,KAAK;IAAET,QAAQ,GAAYoB,KAAK,CAAzBpB,QAAQ;IAAE/C,KAAK,GAAKmE,KAAK,CAAfnE,KAAK;EAC5D,IAAM4D,aAAa,GAAG3C,mBAAmB,CAACzB,cAAc,CAACuD,QAAQ,CAAC,CAAC;EAEnE,OAAA8B,KAAA,GAAO3F,OAAO,CAACyE,MAAM,CAAC,eACpB3E,KAAA,CAAAG,aAAA,CAAC2F,WAAW,EAAAD,KAAA,CAAAf,EAAA,gBAAAC,aAAA;IAAA,UAAQ,MAAM;IAAA,oBAAkB;EAAQ,GAAKH,aAAa,CAACJ,KAAK,EAAExD,KAAK,CAAC,GAAI;AAE5F;AAEA,IAAMgE,aAAa,GAAG7E,aAAa,CAAC+C,iBAAiB,EAAE;EACrD+B,KAAK,EAALA,KAAK;EACLW,UAAU,EAAVA;AACF,CAAC,CAAC;AAEF,eAAeZ,aAAa"}
|
1
|
+
{"version":3,"file":"ReferenceLine.js","names":["React","Component","sstyled","createElement","scaleOfBandwidth","style","_sstyled","insert","side2direction","left","right","top","bottom","lineDirection2props","vertical","_ref4","value","_ref5","_slicedToArray","xScale","yScale","yRange","range","x","x1","x2","y1","y2","horizontal","_ref6","_ref7","xRange","y","rectDirection2props","_ref8","endValue","_ref9","width","undefined","height","_ref10","_ref11","titleOffset","titleSideToProps","_ref12","_ref13","_ref14","_ref15","_ref16","_ref17","_ref18","_ref19","ReferenceLineRoot","_Component","_inherits","_super","_createSuper","_classCallCheck","apply","arguments","_createClass","key","getTitleProps","_this$asProps","asProps","position","getBackgroundProps","_this$asProps2","render","_ref","SReferenceLine","Element","_this$asProps3","title","scale","color","resolveColor","styles","positionProps","Fragment","cn","_objectSpread","ReferenceLine","Title","_defineProperty","props","_ref2","STitle","_titleSideToProps$pos","sstyles","sTitleStyles","concat","toFixed","className","Background","_ref3","SBackground"],"sources":["../../src/ReferenceLine.jsx"],"sourcesContent":["import React from 'react';\nimport { Component, sstyled } from '@semcore/core';\nimport createElement from './createElement';\nimport { scaleOfBandwidth } from './utils';\n\nimport style from './style/reference-line.shadow.css';\n\nconst side2direction = {\n left: 'vertical',\n right: 'vertical',\n top: 'horizontal',\n bottom: 'horizontal',\n};\n\nconst lineDirection2props = {\n vertical: ([xScale, yScale], value) => {\n const yRange = yScale.range();\n const x = scaleOfBandwidth(xScale, value);\n return {\n x1: x,\n x2: x,\n y1: yRange[0],\n y2: yRange[1],\n };\n },\n horizontal: ([xScale, yScale], value) => {\n const xRange = xScale.range();\n const y = scaleOfBandwidth(yScale, value);\n return {\n x1: xRange[0],\n x2: xRange[1],\n y1: y,\n y2: y,\n };\n },\n};\n\nconst rectDirection2props = {\n vertical: ([xScale, yScale], value, endValue) => {\n const yRange = yScale.range();\n const x = scaleOfBandwidth(xScale, value);\n const width = endValue !== undefined ? scaleOfBandwidth(xScale, endValue) - x : 100;\n return {\n x: x,\n y: yRange[1],\n width,\n height: yRange[0] - yRange[1],\n };\n },\n horizontal: ([xScale, yScale], value, endValue) => {\n const xRange = xScale.range();\n const y = scaleOfBandwidth(yScale, value);\n const height = endValue !== undefined ? scaleOfBandwidth(yScale, endValue) - y : 100;\n return {\n x: xRange[0],\n y: y,\n width: xRange[1] - xRange[0],\n height,\n };\n },\n};\n\nconst titleOffset = 10;\nconst titleSideToProps = {\n left: ([xScale, yScale], value) => {\n const yRange = yScale.range();\n const x = scaleOfBandwidth(xScale, value);\n return {\n x: x - titleOffset,\n y: (yRange[0] + yRange[1]) / 2,\n };\n },\n right: ([xScale, yScale], value) => {\n const yRange = yScale.range();\n const x = scaleOfBandwidth(xScale, value);\n return {\n x: x + titleOffset,\n y: (yRange[0] + yRange[1]) / 2,\n };\n },\n top: ([xScale, yScale], value) => {\n const xRange = xScale.range();\n const y = scaleOfBandwidth(yScale, value);\n return {\n x: (xRange[1] + xRange[0]) / 2,\n y: y - titleOffset,\n };\n },\n bottom: ([xScale, yScale], value) => {\n const xRange = xScale.range();\n const y = scaleOfBandwidth(yScale, value);\n return {\n x: (xRange[1] + xRange[0]) / 2,\n y: y + titleOffset,\n };\n },\n};\n\nclass ReferenceLineRoot extends Component {\n static displayName = 'ReferenceLine';\n static style = style;\n static defaultProps = {\n position: 'left',\n };\n\n getTitleProps() {\n const { position, value } = this.asProps;\n return { position, value };\n }\n\n getBackgroundProps() {\n const { position, value } = this.asProps;\n return { position, value };\n }\n\n render() {\n const SReferenceLine = this.Element;\n const { title, scale, position, value, color, resolveColor, styles } = this.asProps;\n const positionProps = lineDirection2props[side2direction[position]];\n\n return sstyled(styles)(\n <>\n <SReferenceLine\n render='line'\n __excludeProps={['data', 'scale', 'format', 'value', 'color']}\n stroke={resolveColor(color)}\n {...positionProps(scale, value)}\n />\n {title && <ReferenceLine.Title>{title}</ReferenceLine.Title>}\n </>,\n );\n }\n}\n\nfunction Title(props) {\n const { Element: STitle, styles, scale, position, value } = props;\n const { x, y } = titleSideToProps[position](scale, value);\n\n const sstyles = sstyled(styles);\n const sTitleStyles = sstyles.cn('STitle', {\n 'transform-origin': `${x.toFixed(2)}px ${y.toFixed(2)}px`,\n });\n\n return sstyled(styles)(\n <STitle\n render='text'\n childrenPosition='inside'\n className={sTitleStyles.className}\n style={sTitleStyles.style}\n position={position}\n x={x}\n y={y}\n />,\n );\n}\n\nfunction Background(props) {\n const { Element: SBackground, styles, scale, position, value, endValue } = props;\n const positionProps = rectDirection2props[side2direction[position]];\n\n return sstyled(styles)(\n <SBackground\n render='rect'\n childrenPosition='inside'\n {...positionProps(scale, value, endValue)}\n />,\n );\n}\n\nconst ReferenceLine = createElement(ReferenceLineRoot, {\n Title,\n Background,\n});\n\nexport default ReferenceLine;\n"],"mappings":";;;;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAAS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AK;IAAA,YACf4D,QAAQ;IAAA,KACf1C,CAAC;IAAA,KACDS;EAAC,GACJ;AAEN;AAEA,SAAS8D,UAAUA,CAACT,KAAK,EAAE;EAAA,IAAAU,KAAA;EACzB,IAAiBC,WAAW,GAA+CX,KAAK,CAAxEd,OAAO;IAAeM,MAAM,GAAuCQ,KAAK,CAAlDR,MAAM;IAAEH,KAAK,GAAgCW,KAAK,CAA1CX,KAAK;IAAET,QAAQ,GAAsBoB,KAAK,CAAnCpB,QAAQ;IAAEjD,KAAK,GAAeqE,KAAK,CAAzBrE,KAAK;IAAEmB,QAAQ,GAAKkD,KAAK,CAAlBlD,QAAQ;EACtE,IAAM2C,aAAa,GAAG7C,mBAAmB,CAACzB,cAAc,CAACyD,QAAQ,CAAC,CAAC;EAEnE,OAAA8B,KAAA,GAAO7F,OAAO,CAAC2E,MAAM,CAAC,eACpB7E,KAAA,CAAAG,aAAA,CAAC6F,WAAW,EAAAD,KAAA,CAAAf,EAAA,gBAAAC,aAAA;IAAA,UACH,MAAM;IAAA,oBACI;EAAQ,GACrBH,aAAa,CAACJ,KAAK,EAAE1D,KAAK,EAAEmB,QAAQ,CAAC,GACzC;AAEN;AAEA,IAAM+C,aAAa,GAAG/E,aAAa,CAACiD,iBAAiB,EAAE;EACrD+B,KAAK,EAALA,KAAK;EACLW,UAAU,EAAVA;AACF,CAAC,CAAC;AAEF,eAAeZ,aAAa"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Area.d.js","names":[],"sources":["../../../src/types/Area.d.ts"],"sourcesContent":["import { UnknownProperties } from '@semcore/core';\nimport { Context } from './context';\nimport { CurveFactory } from 'd3-shape';\nimport { IntergalacticD3Component } from './Plot';\n\n/** @deprecated */\nexport interface IAreaProps extends AreaProps, UnknownProperties {}\nexport type AreaProps = Context & {\n /** Field name from `data` array item for the XAxis */\n x?: string;\n /** Field name from `data` array item for the YAxis*/\n y?: string;\n /** Line color */\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\n/** @deprecated */\nexport interface IAreaDotsProps extends AreaDotsProps, UnknownProperties {}\nexport type AreaDotsProps = Context & {\n /** Show all Dot */\n display?: boolean;\n /** Hide property */\n hide?: boolean;\n /** Enables element transparency */\n transparent?: boolean;\n};\n\n/** @deprecated */\nexport interface IAreaDotsContext extends AreaDotsContext, UnknownProperties {}\nexport type AreaDotsContext = {\n /** Value element of data */\n /** @deprecated */\n value?: any;\n /** Index element of data */\n index?: number;\n};\n\n/** @deprecated */\nexport interface IAreaNullProps extends AreaNullProps, UnknownProperties {}\nexport type AreaNullProps = Context & {\n /** Hide property */\n hide?: boolean;\n};\n\ndeclare const Area: IntergalacticD3Component<'path', AreaProps, Context> & {\n Dots: IntergalacticD3Component<'circle', AreaDotsProps, AreaDotsContext>;\n Null: IntergalacticD3Component<'path', AreaNullProps, Context>;\n Line: IntergalacticD3Component<'path', Context, Context>;\n};\n\nexport default Area;\n"],"mappings":""}
|
1
|
+
{"version":3,"file":"Area.d.js","names":[],"sources":["../../../src/types/Area.d.ts"],"sourcesContent":["import { UnknownProperties } from '@semcore/core';\nimport { Context } from './context';\nimport { CurveFactory } from 'd3-shape';\nimport { IntergalacticD3Component } from './Plot';\nimport { PatternsConfig } from './Pattern';\n\n/** @deprecated */\nexport interface IAreaProps extends AreaProps, UnknownProperties {}\nexport type AreaProps = Context & {\n /** Field name from `data` array item for the XAxis */\n x?: string;\n /** Field name from `data` array item for the YAxis*/\n y?: string;\n /** Line color */\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 /** Enables charts patterns that enhances charts accessability */\n patterns?: PatternsConfig;\n};\n\n/** @deprecated */\nexport interface IAreaDotsProps extends AreaDotsProps, UnknownProperties {}\nexport type AreaDotsProps = Context & {\n /** Show all Dot */\n display?: boolean;\n /** Hide property */\n hide?: boolean;\n /** Enables element transparency */\n transparent?: boolean;\n};\n\n/** @deprecated */\nexport interface IAreaDotsContext extends AreaDotsContext, UnknownProperties {}\nexport type AreaDotsContext = {\n /** Value element of data */\n /** @deprecated */\n value?: any;\n /** Index element of data */\n index?: number;\n};\n\n/** @deprecated */\nexport interface IAreaNullProps extends AreaNullProps, UnknownProperties {}\nexport type AreaNullProps = Context & {\n /** Hide property */\n hide?: boolean;\n};\n\ndeclare const Area: IntergalacticD3Component<'path', AreaProps, Context> & {\n Dots: IntergalacticD3Component<'circle', AreaDotsProps, AreaDotsContext>;\n Null: IntergalacticD3Component<'path', AreaNullProps, Context>;\n Line: IntergalacticD3Component<'path', Context, Context>;\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 { UnknownProperties } from '@semcore/core';\nimport { Context } from './context';\nimport { IntergalacticD3Component } from './Plot';\nimport { ScaleBand, ScaleLinear } from 'd3-scale';\n\n/** @deprecated */\nexport interface IBarProps extends BarProps, UnknownProperties {}\nexport type BarProps = Context & {\n /** Field name from `data` array item for the XAxis */\n x?: string;\n /** Field name from `data` array item for the YAxis */\n y?: string;\n /** Line color */\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 2\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 * The maximum width of each Bar\n */\n maxBarSize?: number;\n};\n\n/** @deprecated */\nexport interface IBarContext extends BarContext, UnknownProperties {}\nexport type BarContext = {\n scale: [ScaleBand<any>, ScaleLinear<any, any>];\n /** @deprecated */\n value: unknown;\n /** Index in `data` array */\n index: number;\n x: number;\n y: number;\n width: number;\n height: number;\n};\n\n/** @deprecated */\nexport interface IBackgroundProps extends BackgroundProps, UnknownProperties {}\nexport type BackgroundProps = Context & {\n /** Coordinate x */\n x?: number | string;\n /** Coordinate y */\n y?: number | string;\n /** Value element of data */\n /** @deprecated */\n value?: any;\n /** Width rect */\n width?: number | string;\n /** Height rect */\n height?: number | string;\n};\n\ntype BackgroundContext = Context & {\n /** Index in `data` array */\n index: number;\n};\n\ndeclare const Bar: IntergalacticD3Component<'rect', BarProps, BarContext> & {\n Background: IntergalacticD3Component<'rect', BackgroundProps, BackgroundContext>;\n};\n\nexport default Bar;\n"],"mappings":""}
|
1
|
+
{"version":3,"file":"Bar.d.js","names":[],"sources":["../../../src/types/Bar.d.ts"],"sourcesContent":["import { UnknownProperties } from '@semcore/core';\nimport { Context } from './context';\nimport { IntergalacticD3Component } from './Plot';\nimport { ScaleBand, ScaleLinear } from 'd3-scale';\nimport { PatternsConfig } from './Pattern';\n\n/** @deprecated */\nexport interface IBarProps extends BarProps, UnknownProperties {}\nexport type BarProps = Context & {\n /** Field name from `data` array item for the XAxis */\n x?: string;\n /** Field name from `data` array item for the YAxis */\n y?: string;\n /** Line color */\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 2\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 * The maximum width of each Bar\n */\n maxBarSize?: number;\n /** Enables charts patterns that enhances charts accessability */\n patterns?: PatternsConfig;\n};\n\n/** @deprecated */\nexport interface IBarContext extends BarContext, UnknownProperties {}\nexport type BarContext = {\n scale: [ScaleBand<any>, ScaleLinear<any, any>];\n /** @deprecated */\n value: unknown;\n /** Index in `data` array */\n index: number;\n x: number;\n y: number;\n width: number;\n height: number;\n};\n\n/** @deprecated */\nexport interface IBackgroundProps extends BackgroundProps, UnknownProperties {}\nexport type BackgroundProps = Context & {\n /** Coordinate x */\n x?: number | string;\n /** Coordinate y */\n y?: number | string;\n /** Value element of data */\n /** @deprecated */\n value?: any;\n /** Width rect */\n width?: number | string;\n /** Height rect */\n height?: number | string;\n};\n\ntype BackgroundContext = Context & {\n /** Index in `data` array */\n index: number;\n};\n\ndeclare const Bar: IntergalacticD3Component<'rect', BarProps, BarContext> & {\n Background: IntergalacticD3Component<'rect', BackgroundProps, BackgroundContext>;\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 { Intergalactic, UnknownProperties } from '@semcore/core';\nimport { Context } from './context';\nimport { TooltipType } from './Tooltip';\nimport { IntergalacticD3Component } from './Plot';\n\n/** @deprecated */\nexport interface IBubbleProps extends BubbleProps, UnknownProperties {}\nexport type BubbleProps = Context & {\n /** Field name from `data` array item for the XAxis */\n x: string;\n /** Field name from `data` array item for the YAxis */\n y: string;\n /** Field name from `data` array item for the circle radius */\n value: string;\n /** Field name from `data` array item for the 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\n/** @deprecated */\nexport interface IBubbleContext extends BubbleContext, UnknownProperties {}\nexport type BubbleContext = {\n /** Index element of data */\n index: number;\n};\n\ndeclare const Bubble: IntergalacticD3Component<Intergalactic.Tag, BubbleProps, BubbleContext> & {\n Tooltip: TooltipType<\n BubbleProps & {\n /**\n * @deprecated Use `index` instead.\n */\n xIndex: number;\n /**\n * Index of item in the `data` array used to render related bubble.\n */\n index: number;\n }\n >;\n};\n\nexport default Bubble;\n"],"mappings":""}
|
1
|
+
{"version":3,"file":"Bubble.d.js","names":[],"sources":["../../../src/types/Bubble.d.ts"],"sourcesContent":["import { Intergalactic, UnknownProperties } from '@semcore/core';\nimport { Context } from './context';\nimport { TooltipType } from './Tooltip';\nimport { IntergalacticD3Component } from './Plot';\nimport { PatternsConfig } from './Pattern';\n\n/** @deprecated */\nexport interface IBubbleProps extends BubbleProps, UnknownProperties {}\nexport type BubbleProps = Context & {\n /** Field name from `data` array item for the XAxis */\n x: string;\n /** Field name from `data` array item for the YAxis */\n y: string;\n /** Field name from `data` array item for the circle radius */\n value: string;\n /** Field name from `data` array item for the 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 /** Enables charts patterns that enhances charts accessability */\n patterns?: PatternsConfig;\n};\n\n/** @deprecated */\nexport interface IBubbleContext extends BubbleContext, UnknownProperties {}\nexport type BubbleContext = {\n /** Index element of data */\n index: number;\n};\n\ndeclare const Bubble: IntergalacticD3Component<Intergalactic.Tag, BubbleProps, BubbleContext> & {\n Tooltip: TooltipType<\n BubbleProps & {\n /**\n * @deprecated Use `index` instead.\n */\n xIndex: number;\n /**\n * Index of item in the `data` array used to render related bubble.\n */\n index: number;\n }\n >;\n};\n\nexport default Bubble;\n"],"mappings":""}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Donut.d.js","names":[],"sources":["../../../src/types/Donut.d.ts"],"sourcesContent":["import { UnknownProperties } from '@semcore/core';\nimport { Context } from './context';\nimport { TooltipType } from './Tooltip';\nimport { IntergalacticD3Component } from './Plot';\n\n/** @deprecated */\nexport interface IDonutProps extends DonutProps, UnknownProperties {}\nexport type DonutProps = Context & {\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. Set `0` to disable animation.\n * @default 500\n */\n duration?: number;\n /** Additional padding between segments in radians.\n * @default 0\n */\n paddingAngle?: number;\n};\n\n/** @deprecated */\nexport interface IPieProps extends PieProps, UnknownProperties {}\nexport type PieProps = Context & {\n /**\n * Name of the field in the data\n * */\n dataKey: string;\n /**\n * Human readable name of the segment\n * */\n name: string;\n /** Color pie **/\n color?: string;\n /**\n * Active sector\n * */\n active?: boolean;\n /** Enables element transparency */\n transparent?: boolean;\n};\n\n/** @deprecated */\nexport interface IEmptyDataProps extends EmptyDataProps, UnknownProperties {}\nexport type EmptyDataProps = Context & {};\n\n/** @deprecated */\nexport interface ILabelProps extends LabelProps, UnknownProperties {}\nexport type LabelProps = Context & {\n label?: string;\n};\n\ndeclare const Donut: IntergalacticD3Component<'g', DonutProps> & {\n Pie: IntergalacticD3Component<'path', PieProps>;\n EmptyData: IntergalacticD3Component<'path', EmptyDataProps>;\n Label: IntergalacticD3Component<'text', LabelProps>;\n Tooltip: TooltipType<PieProps>;\n};\n\nexport default Donut;\n"],"mappings":""}
|
1
|
+
{"version":3,"file":"Donut.d.js","names":[],"sources":["../../../src/types/Donut.d.ts"],"sourcesContent":["import { UnknownProperties } from '@semcore/core';\nimport { Context } from './context';\nimport { TooltipType } from './Tooltip';\nimport { IntergalacticD3Component } from './Plot';\nimport { PatternsConfig } from './Pattern';\n\n/** @deprecated */\nexport interface IDonutProps extends DonutProps, UnknownProperties {}\nexport type DonutProps = Context & {\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. Set `0` to disable animation.\n * @default 500\n */\n duration?: number;\n /** Additional padding between segments in radians.\n * @default 0\n */\n paddingAngle?: number;\n /** Enables charts patterns that enhances charts accessability */\n patterns?: PatternsConfig;\n};\n\n/** @deprecated */\nexport interface IPieProps extends PieProps, UnknownProperties {}\nexport type PieProps = Context & {\n /**\n * Name of the field in the data\n * */\n dataKey: string;\n /**\n * Human readable name of the segment\n * */\n name: string;\n /** Color pie **/\n color?: string;\n /**\n * Active sector\n * */\n active?: boolean;\n /** Enables element transparency */\n transparent?: boolean;\n};\n\n/** @deprecated */\nexport interface IEmptyDataProps extends EmptyDataProps, UnknownProperties {}\nexport type EmptyDataProps = Context & {};\n\n/** @deprecated */\nexport interface ILabelProps extends LabelProps, UnknownProperties {}\nexport type LabelProps = Context & {\n label?: string;\n};\n\ndeclare const Donut: IntergalacticD3Component<'g', DonutProps> & {\n Pie: IntergalacticD3Component<'path', PieProps>;\n EmptyData: IntergalacticD3Component<'path', EmptyDataProps>;\n Label: IntergalacticD3Component<'text', LabelProps>;\n Tooltip: TooltipType<PieProps>;\n};\n\nexport default Donut;\n"],"mappings":""}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"GroupBar.d.js","names":[],"sources":["../../../src/types/GroupBar.d.ts"],"sourcesContent":["import { UnknownProperties } from '@semcore/core';\nimport { BarContext, BarProps } from './Bar';\nimport { HorizontalBarProps } from './HorizontalBar';\nimport { Context } from './context';\nimport { IntergalacticD3Component } from './Plot';\n\n/** @deprecated */\nexport interface IGroupBarProps extends GroupBarProps, UnknownProperties {}\nexport type GroupBarProps = Context & {\n /** Field name from `data` array item for the XAxis */\n x?: string;\n /** Field name from `data` array item for the YAxis */\n y?: string;\n /** Scale for group bars */\n /** @deprecated */\n scaleGroup?: any;\n
|
1
|
+
{"version":3,"file":"GroupBar.d.js","names":[],"sources":["../../../src/types/GroupBar.d.ts"],"sourcesContent":["import { UnknownProperties } from '@semcore/core';\nimport { BarContext, BarProps } from './Bar';\nimport { HorizontalBarProps } from './HorizontalBar';\nimport { Context } from './context';\nimport { IntergalacticD3Component } from './Plot';\nimport { PatternsConfig } from './Pattern';\n\n/** @deprecated */\nexport interface IGroupBarProps extends GroupBarProps, UnknownProperties {}\nexport type GroupBarProps = Context & {\n /** Field name from `data` array item for the XAxis */\n x?: string;\n /** Field name from `data` array item for the YAxis */\n y?: string;\n /** Scale for group bars */\n /** @deprecated */\n scaleGroup?: any;\n /**\n * The maximum width of each Bar\n */\n maxBarSize?: number;\n};\n\ndeclare const GroupBar: IntergalacticD3Component<'g', GroupBarProps> & {\n Bar: IntergalacticD3Component<'path', BarProps>;\n HorizontalBar: IntergalacticD3Component<'path', HorizontalBarProps, BarContext>;\n};\n\nexport default GroupBar;\n"],"mappings":""}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"HorizontalBar.d.js","names":[],"sources":["../../../src/types/HorizontalBar.d.ts"],"sourcesContent":["import { UnknownProperties } from '@semcore/core';\nimport { Context } from './context';\nimport { BarContext, BackgroundProps } from './Bar';\nimport { IntergalacticD3Component } from './Plot';\n\n/** @deprecated */\nexport interface IHorizontalBarProps extends HorizontalBarProps, UnknownProperties {}\nexport type HorizontalBarProps = Context & {\n /** Field name from `data` array item for the XAxis */\n x?: string;\n /** Field name from `data` array item for the YAxis */\n y?: string;\n /** Line color */\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 * The maximum width of each Bar\n */\n maxBarSize?: number;\n};\n\ndeclare const HorizontalBar: IntergalacticD3Component<'path', HorizontalBarProps, BarContext> & {\n Background: IntergalacticD3Component<'rect', BackgroundProps, Context>;\n};\n\nexport default HorizontalBar;\n"],"mappings":""}
|
1
|
+
{"version":3,"file":"HorizontalBar.d.js","names":[],"sources":["../../../src/types/HorizontalBar.d.ts"],"sourcesContent":["import { UnknownProperties } from '@semcore/core';\nimport { Context } from './context';\nimport { BarContext, BackgroundProps } from './Bar';\nimport { IntergalacticD3Component } from './Plot';\nimport { PatternsConfig } from './Pattern';\n\n/** @deprecated */\nexport interface IHorizontalBarProps extends HorizontalBarProps, UnknownProperties {}\nexport type HorizontalBarProps = Context & {\n /** Field name from `data` array item for the XAxis */\n x?: string;\n /** Field name from `data` array item for the YAxis */\n y?: string;\n /** Line color */\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 * The maximum width of each Bar\n */\n maxBarSize?: number;\n /** Enables charts patterns that enhances charts accessability */\n patterns?: PatternsConfig;\n};\n\ndeclare const HorizontalBar: IntergalacticD3Component<'path', HorizontalBarProps, BarContext> & {\n Background: IntergalacticD3Component<'rect', BackgroundProps, Context>;\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 { UnknownProperties } from '@semcore/core';\nimport { Context } from './context';\nimport { curveCardinal, CurveFactory } from 'd3-shape';\nimport { FadeInOutProps } from '@semcore/animation';\nimport { IntergalacticD3Component } from './Plot';\n\n/** @deprecated */\nexport interface ILineProps extends LineProps, UnknownProperties {}\nexport type LineProps = Context & {\n /** Field name from `data` array item for the XAxis */\n x?: string;\n /** Field name from `data` array item for the YAxis */\n y?: string;\n /** Line color */\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\n/** @deprecated */\nexport interface ILineDotsProps extends LineDotsProps, UnknownProperties {}\nexport type LineDotsProps = Context &\n Omit<FadeInOutProps, 'display'> & {\n /** Show all Dot */\n display?: boolean;\n /** Hide property */\n hide?: boolean;\n /** Index active of element */\n activeIndex?: number;\n /** Dot radius, radius of active dot is 4/3 times larger\n * @default 6\n */\n radius?: number;\n };\n\n/** @deprecated */\nexport interface ILineDotsContext extends LineDotsContext, UnknownProperties {}\nexport type LineDotsContext = {\n /** Value element of data */\n /** @deprecated */\n value?: any;\n /** Index element of data */\n index?: number;\n};\n\n/** @deprecated */\nexport interface ILineNullProps extends LineNullProps, UnknownProperties {}\nexport type LineNullProps = Context & {\n /** Hide property */\n hide?: boolean;\n};\n\nexport type LineAreaProps = Omit<LineProps, 'transparent'> & {\n /**\n * Field name from `data` (or from `area`, if passed) array for y0 point by the YAxis for the Area\n */\n y0: string;\n /**\n * Field name from `data` (or from `area`, if passed) array for y1 point by the YAxis for the Area\n */\n y1: string;\n\n /**\n * Optional data for render area\n */\n area?: Array<{ [key: string]: number }>;\n};\n\ndeclare const Line: IntergalacticD3Component<'line', LineProps, Context> & {\n Dots: IntergalacticD3Component<'circle', LineDotsProps, LineDotsContext>;\n Null: IntergalacticD3Component<'path', LineNullProps>;\n Area: IntergalacticD3Component<'path', LineAreaProps>;\n};\n\nexport default Line;\n"],"mappings":""}
|
1
|
+
{"version":3,"file":"Line.d.js","names":[],"sources":["../../../src/types/Line.d.ts"],"sourcesContent":["import { UnknownProperties } from '@semcore/core';\nimport { Context } from './context';\nimport { curveCardinal, CurveFactory } from 'd3-shape';\nimport { FadeInOutProps } from '@semcore/animation';\nimport { IntergalacticD3Component } from './Plot';\nimport { PatternsConfig } from './Pattern';\n\n/** @deprecated */\nexport interface ILineProps extends LineProps, UnknownProperties {}\nexport type LineProps = Context & {\n /** Field name from `data` array item for the XAxis */\n x?: string;\n /** Field name from `data` array item for the YAxis */\n y?: string;\n /** Line color */\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 /** Enables charts patterns that enhances charts accessability */\n patterns?: PatternsConfig;\n};\n\n/** @deprecated */\nexport interface ILineDotsProps extends LineDotsProps, UnknownProperties {}\nexport type LineDotsProps = Context &\n Omit<FadeInOutProps, 'display'> & {\n /** Show all Dot */\n display?: boolean;\n /** Hide property */\n hide?: boolean;\n /** Index active of element */\n activeIndex?: number;\n /** Dot radius, radius of active dot is 4/3 times larger\n * @default 6\n */\n radius?: number;\n };\n\n/** @deprecated */\nexport interface ILineDotsContext extends LineDotsContext, UnknownProperties {}\nexport type LineDotsContext = {\n /** Value element of data */\n /** @deprecated */\n value?: any;\n /** Index element of data */\n index?: number;\n};\n\n/** @deprecated */\nexport interface ILineNullProps extends LineNullProps, UnknownProperties {}\nexport type LineNullProps = Context & {\n /** Hide property */\n hide?: boolean;\n};\n\nexport type LineAreaProps = Omit<LineProps, 'transparent'> & {\n /**\n * Field name from `data` (or from `area`, if passed) array for y0 point by the YAxis for the Area\n */\n y0: string;\n /**\n * Field name from `data` (or from `area`, if passed) array for y1 point by the YAxis for the Area\n */\n y1: string;\n\n /**\n * Optional data for render area\n */\n area?: Array<{ [key: string]: number }>;\n};\n\ndeclare const Line: IntergalacticD3Component<'line', LineProps, Context> & {\n Dots: IntergalacticD3Component<'circle', LineDotsProps, LineDotsContext>;\n Null: IntergalacticD3Component<'path', LineNullProps>;\n Area: IntergalacticD3Component<'path', LineAreaProps>;\n};\n\nexport default Line;\n"],"mappings":""}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Plot.d.js","names":[],"sources":["../../../src/types/Plot.d.ts"],"sourcesContent":["import { BoxProps } from '@semcore/flex-box';\nimport { UnknownProperties, Intergalactic } from '@semcore/core';\nimport { Context } from './context';\nimport { DataStructureHints } from './a11y/hints';\nimport { PatternsConfig } from '
|
1
|
+
{"version":3,"file":"Plot.d.js","names":[],"sources":["../../../src/types/Plot.d.ts"],"sourcesContent":["import { BoxProps } from '@semcore/flex-box';\nimport { UnknownProperties, Intergalactic } from '@semcore/core';\nimport { Context } from './context';\nimport { DataStructureHints } from './a11y/hints';\nimport { PatternsConfig } from './Pattern';\n\n/** @deprecated */\nexport interface IPlotProps extends PlotProps, UnknownProperties {}\nexport type PlotProps = Context &\n BoxProps & {\n /** Width of the svg element\n * @default 0*/\n width?: number;\n /** Height of the svg element\n * @default 0*/\n height?: number;\n /** Human readable chart name (e.g \"Last market trends\") */\n label?: string;\n /**\n * Locale for displaying the days of a week and months, to be transferred to `Intl`\n * @default en\n * */\n locale?: NavigatorLanguage['language'];\n /**\n * Optional container for data hints (use it if you have a legend component upper in tree)\n */\n dataHints?: DataStructureHints;\n /** Optional prop to tune up alt text generating for charts */\n a11yAltTextConfig?: PlotSummarizerConfig;\n\n /** Enables charts patterns that enhances charts accessability */\n patterns?: PatternsConfig;\n\n /** @deprecated */\n eventEmitter?: unknown;\n };\n\nexport type PlotSummarizerConfig = {\n /** Totally disable automatic data summarization */\n disable?: boolean;\n /** Disable automatic data summarization and use provided text */\n override?: string;\n /** Tuning up time series trends analyzing. Represents angle tangens of time series change of different strength */\n trendTangens?: {\n /** Angle tangens of time series that have meaningful trending change\n * @default 1/15\n */\n static?: number;\n /** Angle tangens of time series that have weak trending change\n * @default 1/10\n */\n weak?: number;\n /** Angle tangens of time series that have medium trending change\n * @default 1/5\n */\n medium?: number;\n /** Angle tangens of time series that have strong trending change\n * @default Infinity\n */\n strong?: number;\n };\n /** Tuning up time series local trends detection based on moving averages */\n movingAverage?: {\n /** Frame size of long moving average\n * @default Math.sqrt(data.length)\n */\n longSize?: number;\n /** Frame size of short moving average\n * @default Math.sqrt(data.length)/2\n */\n shortSize?: number;\n /** Absolute difference between values on moving averages crossing to\n * be handled as local trend change.\n * @default StandardDeviation/10\n */\n notableDiff?: number;\n };\n /** The way data to be interpreted as. By default is based on used used Plot elements and data structure.\n */\n dataType?: 'time-series' | 'points-cloud' | 'values-set';\n /** Grid size to split data of point clouds into clusters.\n */\n clustersGridSize?: number;\n /** Limits some output lists in chart alt text\n * @default 100\n * **/\n maxListSymbols?: number;\n /** Always add time to dates in chart alt text **/\n datesWithTime?: boolean;\n /** Described clusters count before text \"and X more\"\n * @default false\n * **/\n clustersLimit?: number;\n /** Described values count before text \"and X more\"\n * @default false\n * **/\n valuesLimit?: number;\n /** Described grouped value groups count before text \"and X more\"\n * @default false\n * **/\n groupsLimit?: number;\n /** Additional field for extra text description to the data\n * **/\n additionalFields?: string[];\n};\n\n/** @deprecated */\nexport type MapProps<Props, Ctx = {}, UCProps = {}> = Props & {\n children?:\n | ((props: Props & Ctx, handlers: UCProps) => Props | React.PropsWithChildren)\n | React.ReactNode;\n};\n\nexport type IntergalacticD3Component<BaseTag extends Intergalactic.Tag, Props, Context = {}> = (<\n Tag extends Intergalactic.Tag = BaseTag,\n>(\n props: Intergalactic.InternalTypings.PropsRenderingResultComponentProps<Tag, Props, Context>,\n) => Intergalactic.InternalTypings.ComponentRenderingResults) &\n Intergalactic.InternalTypings.ComponentAdditive<BaseTag, BaseTag, Props>;\n\ndeclare const Plot: IntergalacticD3Component<'svg', PlotProps, Context>;\nexport default Plot;\n"],"mappings":""}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Radar.d.js","names":[],"sources":["../../../src/types/Radar.d.ts"],"sourcesContent":["import { Context } from './context';\nimport { UnknownProperties } from '@semcore/core';\nimport { CurveFactory } from 'd3-shape';\nimport { TooltipType } from './Tooltip';\nimport { IntergalacticD3Component } from './Plot';\nimport { BoxProps } from '@semcore/flex-box';\n\n/** @deprecated */\nexport interface IRadarProps extends RadarProps, UnknownProperties {}\nexport type RadarProps = Context & {\n /**\n * Scale for radar element\n * */\n /** @deprecated */\n scale: any;\n /**\n * Graph type to be displayed\n * @default 'polygon'\n * */\n type?: 'polygon' | 'circle';\n /**\n * Indent from the edge of svg to graph\n * */\n offset?: number;\n\n /**\n * Label font size\n * @default 12\n * */\n textSize?: number;\n\n /**\n * Base angle of chart rotation\n * @default 0\n * @example Math.PI/3\n * */\n angleOffset?: number;\n};\n\n/** @deprecated */\nexport interface IRadarAxisProps extends RadarAxisProps, UnknownProperties {}\nexport type RadarAxisProps = Context & {\n /**\n * Sets the field name for categories\n * */\n dataKey: string;\n};\n\n/** @deprecated */\nexport interface IRadarAxisTicksProps extends RadarAxisTicksProps, UnknownProperties {}\nexport type RadarAxisTicksProps = {\n /**\n * Distance between auxiliary lines\n * @default 100\n * */\n tickSize?: number;\n};\n\n/** @deprecated */\nexport interface IRadarAxisLabelsProps extends RadarAxisLabelsProps, UnknownProperties {}\nexport type RadarAxisLabelsProps = {\n /**\n * Indent from graph to label\n * @default 10\n * */\n labelOffset?: number;\n};\n\ntype RadarAxisLabelsContext = Context & {\n xDirection: 'middle' | 'start' | 'end';\n yDirection: 'alphabetic' | 'mathematical' | 'middle';\n x: number;\n y: number;\n};\n\n/** @deprecated */\nexport interface IRadialPolygonProps extends RadialPolygonProps, UnknownProperties {}\nexport type RadialPolygonProps = Context & {\n /**\n * Sets the field name for data\n * */\n dataKey: string;\n /**\n * Curve method\n * @default curveLinearClosed\n * */\n curve?: CurveFactory;\n /**\n * Sets the color of the entire polygon\n * */\n color?: string;\n /**\n * Sets the fill color\n * */\n fill?: string;\n};\n\n/** @deprecated */\nexport interface IRadialPolygonLineProps extends RadialPolygonLineProps, UnknownProperties {}\nexport type RadialPolygonLineProps = {\n /**\n * Sets the line color\n * */\n color?: string;\n};\n\n/** @deprecated */\nexport interface IRadialPolygonDotsProps extends RadialPolygonDotsProps, UnknownProperties {}\nexport type RadialPolygonDotsProps = {\n /**\n * Sets the dot color\n * */\n color?: string;\n};\n\n/** @deprecated */\nexport interface IRadarHoverProps extends RadarHoverProps, UnknownProperties {}\nexport type RadarHoverProps = BoxProps & Context & {};\n\ndeclare const Radar: IntergalacticD3Component<'g', RadarProps, Context> & {\n Axis: IntergalacticD3Component<'path', RadarAxisProps, Context> & {\n Ticks: IntergalacticD3Component<'path', RadarAxisTicksProps, Context>;\n Labels: IntergalacticD3Component<'text', RadarAxisLabelsProps, RadarAxisLabelsContext>;\n };\n Polygon: IntergalacticD3Component<'path', RadialPolygonProps, Context> & {\n Line: IntergalacticD3Component<'line', RadialPolygonLineProps, Context>;\n Dots: IntergalacticD3Component<'circle', RadialPolygonDotsProps, Context>;\n };\n Hover: IntergalacticD3Component<'path', RadarHoverProps, Context>;\n Tooltip: TooltipType<\n RadarHoverProps & {\n /** Index in `data` array of the current items */\n index: number;\n }\n >;\n};\n\nexport declare function getLabelOffsetPosition(\n xDirection: 'middle' | 'start' | 'end',\n yDirection: 'alphabetic' | 'mathematical' | 'middle',\n width: number,\n height: number,\n): [xOffset: number, yOffset: number];\n\nexport default Radar;\n"],"mappings":""}
|
1
|
+
{"version":3,"file":"Radar.d.js","names":[],"sources":["../../../src/types/Radar.d.ts"],"sourcesContent":["import { Context } from './context';\nimport { UnknownProperties } from '@semcore/core';\nimport { CurveFactory } from 'd3-shape';\nimport { TooltipType } from './Tooltip';\nimport { IntergalacticD3Component } from './Plot';\nimport { BoxProps } from '@semcore/flex-box';\nimport { PatternsConfig } from './Pattern';\n\n/** @deprecated */\nexport interface IRadarProps extends RadarProps, UnknownProperties {}\nexport type RadarProps = Context & {\n /**\n * Scale for radar element\n * */\n /** @deprecated */\n scale: any;\n /**\n * Graph type to be displayed\n * @default 'polygon'\n * */\n type?: 'polygon' | 'circle';\n /**\n * Indent from the edge of svg to graph\n * */\n offset?: number;\n\n /**\n * Label font size\n * @default 12\n * */\n textSize?: number;\n\n /**\n * Base angle of chart rotation\n * @default 0\n * @example Math.PI/3\n * */\n angleOffset?: number;\n /** Enables charts patterns that enhances charts accessability */\n patterns?: PatternsConfig;\n};\n\n/** @deprecated */\nexport interface IRadarAxisProps extends RadarAxisProps, UnknownProperties {}\nexport type RadarAxisProps = Context & {\n /**\n * Sets the field name for categories\n * */\n dataKey: string;\n};\n\n/** @deprecated */\nexport interface IRadarAxisTicksProps extends RadarAxisTicksProps, UnknownProperties {}\nexport type RadarAxisTicksProps = {\n /**\n * Distance between auxiliary lines\n * @default 100\n * */\n tickSize?: number;\n};\n\n/** @deprecated */\nexport interface IRadarAxisLabelsProps extends RadarAxisLabelsProps, UnknownProperties {}\nexport type RadarAxisLabelsProps = {\n /**\n * Indent from graph to label\n * @default 10\n * */\n labelOffset?: number;\n};\n\ntype RadarAxisLabelsContext = Context & {\n xDirection: 'middle' | 'start' | 'end';\n yDirection: 'alphabetic' | 'mathematical' | 'middle';\n x: number;\n y: number;\n};\n\n/** @deprecated */\nexport interface IRadialPolygonProps extends RadialPolygonProps, UnknownProperties {}\nexport type RadialPolygonProps = Context & {\n /**\n * Sets the field name for data\n * */\n dataKey: string;\n /**\n * Curve method\n * @default curveLinearClosed\n * */\n curve?: CurveFactory;\n /**\n * Sets the color of the entire polygon\n * */\n color?: string;\n /**\n * Sets the fill color\n * */\n fill?: string;\n};\n\n/** @deprecated */\nexport interface IRadialPolygonLineProps extends RadialPolygonLineProps, UnknownProperties {}\nexport type RadialPolygonLineProps = {\n /**\n * Sets the line color\n * */\n color?: string;\n};\n\n/** @deprecated */\nexport interface IRadialPolygonDotsProps extends RadialPolygonDotsProps, UnknownProperties {}\nexport type RadialPolygonDotsProps = {\n /**\n * Sets the dot color\n * */\n color?: string;\n};\n\n/** @deprecated */\nexport interface IRadarHoverProps extends RadarHoverProps, UnknownProperties {}\nexport type RadarHoverProps = BoxProps & Context & {};\n\ndeclare const Radar: IntergalacticD3Component<'g', RadarProps, Context> & {\n Axis: IntergalacticD3Component<'path', RadarAxisProps, Context> & {\n Ticks: IntergalacticD3Component<'path', RadarAxisTicksProps, Context>;\n Labels: IntergalacticD3Component<'text', RadarAxisLabelsProps, RadarAxisLabelsContext>;\n };\n Polygon: IntergalacticD3Component<'path', RadialPolygonProps, Context> & {\n Line: IntergalacticD3Component<'line', RadialPolygonLineProps, Context>;\n Dots: IntergalacticD3Component<'circle', RadialPolygonDotsProps, Context>;\n };\n Hover: IntergalacticD3Component<'path', RadarHoverProps, Context>;\n Tooltip: TooltipType<\n RadarHoverProps & {\n /** Index in `data` array of the current items */\n index: number;\n }\n >;\n};\n\nexport declare function getLabelOffsetPosition(\n xDirection: 'middle' | 'start' | 'end',\n yDirection: 'alphabetic' | 'mathematical' | 'middle',\n width: number,\n height: number,\n): [xOffset: number, yOffset: number];\n\nexport default Radar;\n"],"mappings":""}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ReferenceLine.d.js","names":[],"sources":["../../../src/types/ReferenceLine.d.ts"],"sourcesContent":["import { UnknownProperties } from '@semcore/core';\nimport { Context } from './context';\nimport { IntergalacticD3Component } from './Plot';\n\n/** @deprecated **/\nexport interface IReferenceLineProps extends ReferenceLineProps, UnknownProperties {}\nexport type ReferenceLineProps = Context & {\n /** The position of the title relative reference line\n * @default 'left' */\n position?: 'top' | 'right' | 'bottom' | 'left';\n /** Value element of data */\n
|
1
|
+
{"version":3,"file":"ReferenceLine.d.js","names":[],"sources":["../../../src/types/ReferenceLine.d.ts"],"sourcesContent":["import { UnknownProperties } from '@semcore/core';\nimport { Context } from './context';\nimport { IntergalacticD3Component } from './Plot';\n\n/** @deprecated **/\nexport interface IReferenceLineProps extends ReferenceLineProps, UnknownProperties {}\nexport type ReferenceLineProps = Context & {\n /** The position of the title relative reference line\n * @default 'left' */\n position?: 'top' | 'right' | 'bottom' | 'left';\n /** Value element of data */\n value?: any;\n\n title?: string;\n};\n\n/** @deprecated **/\nexport interface IReferenceLineTitleProps extends ReferenceLineTitleProps, UnknownProperties {}\nexport type ReferenceLineTitleProps = Context & {\n /** The position of the axis relative reference line */\n position?: 'top' | 'right' | 'bottom' | 'left';\n /** Value element of data */\n value: any;\n};\n\n/** @deprecated **/\nexport interface IReferenceLineBackgroundProps\n extends ReferenceLineBackgroundProps,\n UnknownProperties {}\nexport type ReferenceLineBackgroundProps = Context & {\n /** The position of the axis relative reference line */\n position?: 'top' | 'right' | 'bottom' | 'left';\n /** Value element of data */\n value?: any;\n /** Value of the background end */\n endValue?: number | string;\n};\n\ndeclare const ReferenceLine: IntergalacticD3Component<'line', ReferenceLineProps, Context> & {\n Title: IntergalacticD3Component<'text', ReferenceLineTitleProps, Context>;\n Background: IntergalacticD3Component<'rect', ReferenceLineBackgroundProps, Context>;\n};\n\nexport default ReferenceLine;\n"],"mappings":""}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ScatterPlot.d.js","names":[],"sources":["../../../src/types/ScatterPlot.d.ts"],"sourcesContent":["import { UnknownProperties } from '@semcore/core';\nimport { Context } from './context';\nimport { TooltipType } from './Tooltip';\nimport { IntergalacticD3Component } from './Plot';\n\n/** @deprecated */\nexport interface IScatterPlotProps extends ScatterPlotProps, UnknownProperties {}\nexport type ScatterPlotProps = Context & {\n /** Field name from `data` array item for the XAxis */\n x: string;\n /** Field name from `data` array item for the YAxis */\n y: string;\n /** Field name from `data` array item for the 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: IntergalacticD3Component<'g', ScatterPlotProps, Context> & {\n Tooltip: TooltipType<\n ScatterPlotProps & {\n /**\n * @deprecated Use `index` instead.\n */\n xIndex: number;\n /**\n * Index of item in the `data` array used to render related circle.\n */\n index: number;\n }\n >;\n};\n\nexport default ScatterPlot;\n"],"mappings":""}
|
1
|
+
{"version":3,"file":"ScatterPlot.d.js","names":[],"sources":["../../../src/types/ScatterPlot.d.ts"],"sourcesContent":["import { UnknownProperties } from '@semcore/core';\nimport { Context } from './context';\nimport { TooltipType } from './Tooltip';\nimport { IntergalacticD3Component } from './Plot';\nimport { PatternsConfig } from './Pattern';\n\n/** @deprecated */\nexport interface IScatterPlotProps extends ScatterPlotProps, UnknownProperties {}\nexport type ScatterPlotProps = Context & {\n /** Field name from `data` array item for the XAxis */\n x: string;\n /** Field name from `data` array item for the YAxis */\n y: string;\n /** Field name from `data` array item for the 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 /** Enables charts patterns that enhances charts accessability */\n patterns?: PatternsConfig;\n};\n\ndeclare const ScatterPlot: IntergalacticD3Component<'g', ScatterPlotProps, Context> & {\n Tooltip: TooltipType<\n ScatterPlotProps & {\n /**\n * @deprecated Use `index` instead.\n */\n xIndex: number;\n /**\n * Index of item in the `data` array used to render related circle.\n */\n index: number;\n }\n >;\n};\n\nexport default ScatterPlot;\n"],"mappings":""}
|