Skip to content

Commit 11967fd

Browse files
committed
fix: use VRender register subpath imports
1 parent 21b3b7b commit 11967fd

12 files changed

Lines changed: 24 additions & 12 deletions

File tree

packages/vchart-types/types/index.d.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,12 @@ export * from './interaction';
3131
export { createImage, createPath, createArc3d, createPyramid3d, createRect3d, registerDirectionalLight, registerOrthoCamera, registerViewTransform3dPlugin, graphicCreator, type IGraphic, type IGlyph, type IGroup, type IText, type ILine, type IArea, type IRect, type INode, type IStage, type EasingType, type ILineGraphicAttribute, type ITextGraphicAttribute, type IRectGraphicAttribute, type IGroupGraphicAttribute, type TextAlignType, type TextBaselineType, type GraphicEventType, type IAreaGraphicAttribute, type ISymbolGraphicAttribute } from '@visactor/vrender-core';
3232
export { ACustomAnimate, AnimateExecutor, RotateBySphereAnimate } from '@visactor/vrender-animate';
3333
export { AbstractComponent, Segment, MarkPoint, type SegmentAttributes, type Point } from '@visactor/vrender-components';
34-
export { registerLine, registerRect, registerArc3d, registerPyramid3d, registerRect3d, registerShadowRoot } from '@visactor/vrender-kits';
34+
export { registerLine } from '@visactor/vrender-kits/register/register-line';
35+
export { registerRect } from '@visactor/vrender-kits/register/register-rect';
36+
export { registerArc3d } from '@visactor/vrender-kits/register/register-arc3d';
37+
export { registerPyramid3d } from '@visactor/vrender-kits/register/register-pyramid3d';
38+
export { registerRect3d } from '@visactor/vrender-kits/register/register-rect3d';
39+
export { registerShadowRoot } from '@visactor/vrender-kits/register/register-shadowRoot';
3540
export * from '@visactor/vlayouts';
3641
export { DataView, DataSet, svgParser } from '@visactor/vdataset';
3742
export type { SVGParsedElement, SVGParserResult, ISVGSourceOption } from '@visactor/vdataset';

packages/vchart/src/mark/box-plot.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ import { createLine, createRect, type IGlyph, type ILineGraphicAttribute } from
77
import { GlyphMark, registerGlyphMark } from './glyph';
88
import type { Datum } from '../typings/common';
99
import { isValidNumber } from '@visactor/vutils';
10-
import { registerLine, registerRect } from '@visactor/vrender-kits';
10+
import { registerLine } from '@visactor/vrender-kits/register/register-line';
11+
import { registerRect } from '@visactor/vrender-kits/register/register-rect';
1112

1213
const BAR_BOX_PLOT_CHANNELS = [
1314
'x',

packages/vchart/src/mark/cell.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import type { ICellMarkSpec } from '../typings';
33
import type { ICellMark, IMarkGraphic, IMarkStyle } from './interface';
44
// eslint-disable-next-line no-duplicate-imports
55
import { MarkTypeEnum } from './interface/type';
6-
import { registerShadowRoot, registerSymbol } from '@visactor/vrender-kits';
6+
import { registerShadowRoot } from '@visactor/vrender-kits/register/register-shadowRoot';
7+
import { registerSymbol } from '@visactor/vrender-kits/register/register-symbol';
78
import { registerSymbolDataLabel } from '@visactor/vrender-components';
89
import type { IGraphic, ISymbolGraphicAttribute } from '@visactor/vrender-core';
910
import { createSymbol } from '@visactor/vrender-core';

packages/vchart/src/mark/glyph.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ import type { IGlyphMark } from './interface/mark';
66
import type { MarkType } from './interface/type';
77
import { Factory } from '../core/factory';
88
import type { Datum } from '../typings/common';
9-
import { registerGlyph, registerShadowRoot } from '@visactor/vrender-kits';
9+
import { registerGlyph } from '@visactor/vrender-kits/register/register-glyph';
10+
import { registerShadowRoot } from '@visactor/vrender-kits/register/register-shadowRoot';
1011
import type { IMarkGraphic } from './interface/common';
1112
import { DiffState } from './interface/enum';
1213
import { merge } from '@visactor/vutils';

packages/vchart/src/mark/image.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import { BaseMark } from './base/base-mark';
44
import type { IImageMark, IMarkStyle, MarkConstructor } from './interface';
55
// eslint-disable-next-line no-duplicate-imports
66
import { MarkTypeEnum } from './interface/type';
7-
import { registerImage, registerShadowRoot } from '@visactor/vrender-kits';
7+
import { registerImage } from '@visactor/vrender-kits/register/register-image';
8+
import { registerShadowRoot } from '@visactor/vrender-kits/register/register-shadowRoot';
89
import { createImage } from '@visactor/vrender-core';
910

1011
export class ImageMark extends BaseMark<IImageMarkSpec> implements IImageMark {

packages/vchart/src/mark/link-path.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { MarkTypeEnum } from './interface/type';
66
import { GlyphMark, registerGlyphMark } from './glyph';
77
import type { IGlyph, IPathGraphicAttribute } from '@visactor/vrender-core';
88
import { createPath } from '@visactor/vrender-core';
9-
import { registerPath } from '@visactor/vrender-kits';
9+
import { registerPath } from '@visactor/vrender-kits/register/register-path';
1010
import type { Datum } from '../typings/common';
1111

1212
export const getHorizontalPath = (options: ILinkPathMarkSpec, ratio?: number) => {

packages/vchart/src/mark/liquid.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import type { ILiquidMark } from '../series/liquid/liquid';
66
import { GlyphMark, registerGlyphMark } from './glyph';
77
import { createArea, type IAreaGraphicAttribute, type IGlyph } from '@visactor/vrender-core';
88
import type { IPointLike } from '@visactor/vutils';
9-
import { registerArea } from '@visactor/vrender-kits';
9+
import { registerArea } from '@visactor/vrender-kits/register/register-area';
1010
import type { ILiquidMarkSpec } from '../typings/visual';
1111
import type { Datum } from '../typings/common';
1212

packages/vchart/src/mark/path.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import { BaseMark } from './base/base-mark';
44
import type { IMarkStyle, IPathMark } from './interface';
55
// eslint-disable-next-line no-duplicate-imports
66
import { MarkTypeEnum } from './interface/type';
7-
import { registerPath, registerShadowRoot } from '@visactor/vrender-kits';
7+
import { registerPath } from '@visactor/vrender-kits/register/register-path';
8+
import { registerShadowRoot } from '@visactor/vrender-kits/register/register-shadowRoot';
89
import { createPath } from '@visactor/vrender-core';
910

1011
export class PathMark extends BaseMark<IPathMarkSpec> implements IPathMark {

packages/vchart/src/mark/polygon/polygon.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ import { BasePolygonMark } from './base-polygon';
55
import type { IMarkStyle, IPolygonMark } from '../interface';
66
import { MarkTypeEnum } from '../interface/type';
77
import { registerPolygonAnimation } from '../../animation/config';
8-
import { registerPolygon, registerShadowRoot } from '@visactor/vrender-kits';
8+
import { registerPolygon } from '@visactor/vrender-kits/register/register-polygon';
9+
import { registerShadowRoot } from '@visactor/vrender-kits/register/register-shadowRoot';
910
import { createPolygon } from '@visactor/vrender-core';
1011

1112
export class PolygonMark extends BasePolygonMark<IPolygonMarkSpec> implements IPolygonMark {

packages/vchart/src/mark/ripple.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { GlyphMark, registerGlyphMark } from './glyph';
77
import type { Datum } from '../typings/common';
88
import { createSymbol, type IGlyph, type ISymbolGraphicAttribute } from '@visactor/vrender-core';
99
import { clamp } from '@visactor/vutils';
10-
import { registerSymbol } from '@visactor/vrender-kits';
10+
import { registerSymbol } from '@visactor/vrender-kits/register/register-symbol';
1111

1212
export class RippleMark extends GlyphMark<IRippleMarkSpec> implements IRippleMark {
1313
static readonly type = MarkTypeEnum.ripple;

0 commit comments

Comments
 (0)