-
Notifications
You must be signed in to change notification settings - Fork 198
Refactor/udpate package of vchart #3988
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+464
−232
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
export * from './chart'; | ||
export * from './series'; | ||
export * from './series-spec-transformer'; | ||
export * from './interface'; |
2 changes: 1 addition & 1 deletion
2
...rt/image-cloud/image-cloud-transformer.ts → ...ts/image-cloud/image-cloud-transformer.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 8 additions & 9 deletions
17
...hart/src/chart/image-cloud/image-cloud.ts → ...ion/src/charts/image-cloud/image-cloud.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
...vchart/src/chart/image-cloud/interface.ts → ...nsion/src/charts/image-cloud/interface.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 2 additions & 3 deletions
5
...chart/src/series/image-cloud/animation.ts → ...rc/charts/image-cloud/series/animation.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
packages/vchart-extension/src/charts/image-cloud/series/constant.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { baseSeriesMark, MarkTypeEnum } from '@visactor/vchart'; | ||
|
||
export const IMAGE_CLOUD_CHART_TYPE = 'imageCloud'; | ||
export const IMAGE_CLOUD_SERIES_TYPE = 'imageCloud'; | ||
|
||
export const enum ImageCloudMarkNameEnum { | ||
image = 'image', | ||
imageMask = 'imageMask' | ||
} | ||
|
||
export const imageCloudSeriesMark = { | ||
...baseSeriesMark, | ||
[ImageCloudMarkNameEnum.image]: { name: ImageCloudMarkNameEnum.image, type: MarkTypeEnum.image }, | ||
[ImageCloudMarkNameEnum.imageMask]: { name: ImageCloudMarkNameEnum.imageMask, type: MarkTypeEnum.rect } | ||
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
.../src/series/image-cloud/tooltip-helper.ts → ...arts/image-cloud/series/tooltip-helper.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 1 addition & 4 deletions
5
...gers/element-highlight-by-graphic-name.ts → ...gram/element-highlight-by-graphic-name.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 2 additions & 3 deletions
5
...riggers/element-select-by-graphic-name.ts → ...ctogram/element-select-by-graphic-name.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
packages/vchart/src/chart/pictogram/index.ts → ...t-extension/src/charts/pictogram/index.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
export * from './pictogram'; | ||
export * from './interface'; | ||
export * from './pictogram-transformer'; | ||
export * from './series/pictogram'; | ||
export * from './series/svg-source'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import type { IChartExtendsSeriesSpec, IChartSpec } from '@visactor/vchart'; | ||
import type { IPictogramSeriesSpec } from './series/interface'; | ||
|
||
export interface IPictogramChartSpec extends IChartSpec, IChartExtendsSeriesSpec<any> { | ||
type: 'pictogram'; | ||
series?: IPictogramSeriesSpec[]; | ||
} |
11 changes: 6 additions & 5 deletions
11
.../chart/pictogram/pictogram-transformer.ts → ...charts/pictogram/pictogram-transformer.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
packages/vchart-extension/src/charts/pictogram/pictogram.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { BaseChart, Factory, registerMarkTooltipProcessor } from '@visactor/vchart'; | ||
import type { IPictogramChartSpec } from './interface'; | ||
import { PictogramChartSpecTransformer } from './pictogram-transformer'; | ||
import { PICTOGRAM_CHART_TYPE, PICTOGRAM_SERIES_TYPE } from './series/constant'; | ||
import { registerPictogramSeries } from './series/pictogram'; | ||
|
||
export class PictogramChart<T extends IPictogramChartSpec = IPictogramChartSpec> extends BaseChart<T> { | ||
static readonly type: string = PICTOGRAM_SERIES_TYPE; | ||
static readonly seriesType: string = PICTOGRAM_CHART_TYPE; | ||
static readonly transformerConstructor = PictogramChartSpecTransformer; | ||
readonly transformerConstructor = PictogramChartSpecTransformer; | ||
readonly type: string = PICTOGRAM_CHART_TYPE; | ||
readonly seriesType: string = PICTOGRAM_SERIES_TYPE; | ||
} | ||
|
||
export const registerPictogramChart = () => { | ||
registerMarkTooltipProcessor(); | ||
registerPictogramSeries(); | ||
Factory.registerChart(PictogramChart.type, PictogramChart); | ||
}; |
16 changes: 16 additions & 0 deletions
16
packages/vchart-extension/src/charts/pictogram/series/constant.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { baseSeriesMark, MarkTypeEnum } from '@visactor/vchart'; | ||
|
||
export const PICTOGRAM_CHART_TYPE = 'pictogram'; | ||
export const PICTOGRAM_SERIES_TYPE = 'pictogram'; | ||
|
||
export const ELEMENT_HIGHLIGHT_BY_GRPHIC_NAME = 'element-highlight-by-graphic-name'; | ||
export const ELEMENT_SELECT_BY_GRPHIC_NAME = 'element-select-by-graphic-name'; | ||
|
||
export const enum PictogramMarkNameEnum { | ||
pictogram = 'pictogram' | ||
} | ||
|
||
export const PictogramSeriesMark = { | ||
...baseSeriesMark, | ||
[PictogramMarkNameEnum.pictogram]: { name: PictogramMarkNameEnum.pictogram, type: MarkTypeEnum.group } | ||
}; |
4 changes: 1 addition & 3 deletions
4
.../vchart/src/series/pictogram/interface.ts → .../src/charts/pictogram/series/interface.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
...series/pictogram/pictogram-transformer.ts → ...pictogram/series/pictogram-transformer.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
...vchart/src/series/pictogram/svg-source.ts → ...src/charts/pictogram/series/svg-source.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 2 additions & 4 deletions
6
...rt/src/series/pictogram/tooltip-helper.ts → ...charts/pictogram/series/tooltip-helper.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
207 changes: 207 additions & 0 deletions
207
packages/vchart-extension/src/charts/pictogram/series/transform.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,207 @@ | ||
import { isValid, merge } from '@visactor/vutils'; | ||
import type { DataView, SVGParserResult } from '@visactor/vdataset'; | ||
import { DEFAULT_DATA_INDEX, measureText } from '@visactor/vchart'; | ||
|
||
function isValidStrokeOrFill(attr: any) { | ||
return isValid(attr) && attr !== 'none' && !attr.includes?.('url'); | ||
} | ||
|
||
const getLineWidth = (attributes: any) => { | ||
const strokeWidth = parseFloat(attributes.strokeWidth); | ||
if (!isNaN(strokeWidth)) { | ||
return strokeWidth; | ||
} | ||
|
||
const stroke = attributes.stroke; | ||
return stroke && isValidStrokeOrFill(stroke) ? 1 : 0; | ||
}; | ||
|
||
const getFill = (attributes: any, defaultFill?: string) => { | ||
const fill = attributes.fill ?? defaultFill; | ||
return fill && isValidStrokeOrFill(fill) ? fill : undefined; | ||
}; | ||
|
||
const getStroke = (attributes: any, defaultStroke?: string) => { | ||
const stroke = attributes.stroke ?? defaultStroke; | ||
return stroke && isValidStrokeOrFill(stroke) ? stroke : false; | ||
}; | ||
|
||
const commonAttributes = (attributes: Record<string, any>) => { | ||
return { | ||
...attributes, | ||
x: parseFloat(attributes.x) || undefined, | ||
y: parseFloat(attributes.y) || undefined, | ||
fillStrokeOrder: false, | ||
fill: getFill(attributes), | ||
lineWidth: getLineWidth(attributes), | ||
stroke: getStroke(attributes) | ||
}; | ||
}; | ||
|
||
export const graphicAttributeTransform = { | ||
group: (attributes: Record<string, any>) => { | ||
const common = commonAttributes(attributes) as any; | ||
return { | ||
...common, | ||
visibleAll: common.visible !== false | ||
}; | ||
}, | ||
rule: (attributes: Record<string, any>) => { | ||
return { | ||
...commonAttributes(attributes), | ||
x: parseFloat(attributes.x1), | ||
y: parseFloat(attributes.y1), | ||
x1: parseFloat(attributes.x2), | ||
y1: parseFloat(attributes.y2) | ||
}; | ||
}, | ||
rect: (attributes: Record<string, any>) => { | ||
return { | ||
...commonAttributes(attributes), | ||
// rect 在 chrome 下有默认黑色填充,这里保持效果一致 | ||
fill: getFill(attributes, '#000'), | ||
width: parseFloat(attributes.width), | ||
height: parseFloat(attributes.height) | ||
}; | ||
}, | ||
polygon: (attributes: Record<string, any>) => { | ||
return { | ||
...commonAttributes(attributes), | ||
// rect 在 chrome 下有默认黑色填充,这里保持效果一致 | ||
fill: getFill(attributes, '#000'), | ||
points: attributes.points | ||
.trim() | ||
.split(/\s+/) | ||
.map((pair: string) => { | ||
const [x, y] = pair.split(',').map(Number); | ||
return { x, y }; | ||
}) | ||
}; | ||
}, | ||
line: (attributes: Record<string, any>) => { | ||
return { | ||
...commonAttributes(attributes), | ||
points: attributes.points | ||
.trim() | ||
.split(/\s+/) | ||
.map((pair: string) => { | ||
const [x, y] = pair.split(',').map(Number); | ||
return { x, y }; | ||
}) | ||
}; | ||
}, | ||
path: (attributes: Record<string, any>) => { | ||
return { | ||
...commonAttributes(attributes), | ||
path: attributes.d, | ||
fillStrokeOrder: false, | ||
fill: getFill(attributes, '#000') | ||
}; | ||
}, | ||
arc: (attributes: Record<string, any>) => { | ||
return { | ||
...commonAttributes(attributes), | ||
outerRadius: attributes.r ?? attributes.ry, | ||
x: parseFloat(attributes.cx), | ||
y: parseFloat(attributes.cy), | ||
startAngle: 0, | ||
endAngle: Math.PI * 2, | ||
scaleX: parseFloat(attributes.rx) / parseFloat(attributes.ry) || 1, | ||
fill: getFill(attributes, '#000') | ||
}; | ||
}, | ||
text: (attributes: Record<string, any>, value: string) => { | ||
return { | ||
...commonAttributes(attributes), | ||
text: value, | ||
textAlign: attributes.textAlign ?? 'left', | ||
textBaseLine: attributes.textAnchor ?? 'middle', | ||
anchor: [0, 0], | ||
fill: getFill(attributes, '#000') | ||
}; | ||
} | ||
}; | ||
|
||
export const pictogram = (data: DataView[]) => { | ||
if (!data || !data[0]) { | ||
return {}; | ||
} | ||
const { elements } = data[0].latestData as SVGParserResult; | ||
|
||
// 处理最终属性 | ||
if (elements && elements.length) { | ||
// TODO: type | ||
// elements.forEach((el: SVGParsedElementExtend, index: number) => { | ||
elements.forEach((el: any, index: number) => { | ||
el[DEFAULT_DATA_INDEX] = index; | ||
el._uniqueId = `${el.id}-${index}`; | ||
el.data = undefined; | ||
|
||
const { graphicType: type, transform } = el; | ||
|
||
const finalAttributes = { | ||
visible: el.attributes.visibility !== 'hidden' && el.attributes.visibility !== 'collapse' | ||
}; | ||
|
||
if (el.graphicType === 'text') { | ||
merge(finalAttributes, el._inheritStyle, el.parent?._textGroupStyle, el.attributes); | ||
} else if (el.graphicType !== 'group') { | ||
merge(finalAttributes, el._inheritStyle, el.attributes); | ||
} | ||
|
||
if ((graphicAttributeTransform as any)[type]) { | ||
el._finalAttributes = (graphicAttributeTransform as any)[type](finalAttributes, el.value); | ||
} else { | ||
el._finalAttributes = finalAttributes; | ||
} | ||
|
||
if (transform) { | ||
el._finalAttributes.postMatrix = { ...transform }; | ||
} | ||
}); | ||
|
||
// 处理文字布局 | ||
const texts = elements.filter(el => el.tagName === 'text'); | ||
for (let i = 0; i < texts.length; i++) { | ||
const textId = texts[i]._uniqueId; | ||
const children = elements.filter(el => { | ||
let result = false; | ||
let parent = el.parent; | ||
while (parent) { | ||
if (parent._uniqueId === textId) { | ||
result = true; | ||
break; | ||
} | ||
parent = parent.parent; | ||
} | ||
return result; | ||
}); | ||
|
||
if (children && children.length) { | ||
const startX = texts[i]._textGroupStyle?.x ?? 0; | ||
let curX = startX; | ||
|
||
for (let j = 0; j < children.length; j++) { | ||
const currentChild = children[j]; | ||
if (currentChild.graphicType === 'group') { | ||
curX = startX; | ||
} else if (currentChild.value) { | ||
if (currentChild.parent._textGroupStyle.x === undefined) { | ||
const lastText = children | ||
.slice(0, j) | ||
.reverse() | ||
.find(c => c.graphicType === 'text' && c.value); | ||
if (lastText) { | ||
const width = measureText(lastText.value, lastText._finalAttributes).width; | ||
curX += width; | ||
} | ||
currentChild._finalAttributes.x = curX; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
return elements; | ||
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
export * from './chart-spec-transformer'; | ||
export * from './chart'; | ||
export * from './series'; | ||
export * from './series-spec-transformer'; | ||
export * from './interface'; |
3 changes: 3 additions & 0 deletions
3
packages/vchart-extension/src/charts/range-column-3d/index.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
export * from './series'; | ||
export * from './series-spec-transformer'; | ||
export * from './chart'; | ||
export * from './chart-spec-transformer'; | ||
export * from './interface'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
export * from './chart'; | ||
export * from './chart-spec-transformer'; | ||
export * from './series'; | ||
export * from './interface'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
export { registerAnimate as registerVRenderAnimate, registerCustomAnimate } from '@visactor/vrender-animate'; | ||
export { registerStateTransition } from './state-transition'; | ||
export { registerSequentialAnimate } from './sequential-animate'; | ||
export { registerPolygonAnimation, registerRectAnimation, registerArcAnimation } from './config'; | ||
export { animationConfig, userAnimationConfig } from './utils'; | ||
export { | ||
registerPolygonAnimation, | ||
registerRectAnimation, | ||
registerArcAnimation, | ||
DEFAULT_ANIMATION_CONFIG | ||
} from './config'; | ||
export { animationConfig, userAnimationConfig, shouldMarkDoMorph } from './utils'; | ||
export type { IAnimationSpec } from './spec'; | ||
export type { IAnimationTypeConfig } from './interface'; | ||
export type { IAnimationTypeConfig, IAnimationConfig } from './interface'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
export { registerElementHighlight } from './triggers/element-highlight'; | ||
export { registerElementSelect } from './triggers/element-select'; | ||
export { registerElementHighlight, ElementHighlight } from './triggers/element-highlight'; | ||
export { registerElementSelect, ElementSelect } from './triggers/element-select'; | ||
export { registerDimensionHover } from './triggers/dimension-hover'; | ||
export { registerElementActive } from './triggers/element-active'; | ||
export { registerElementActiveByLegend } from './triggers/element-active-by-legend'; | ||
export { registerElementHighlightByGroup } from './triggers/element-highlight-by-group'; | ||
export { registerElementHighlightByKey } from './triggers/element-highlight-by-key'; | ||
export { registerElementHighlightByLegend } from './triggers/element-highlight-by-legend'; | ||
export { registerElementHighlightByName } from './triggers/element-highlight-by-name'; | ||
export type { IHoverSpec, ISelectSpec } from './interface/spec'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.