@visactor/vrender-core 0.17.0 → 0.17.1-alpha.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.
Files changed (127) hide show
  1. package/cjs/graphic/bounds.d.ts +2 -2
  2. package/cjs/graphic/bounds.js +8 -10
  3. package/cjs/graphic/bounds.js.map +1 -1
  4. package/cjs/graphic/graphic-creator.d.ts +24 -36
  5. package/cjs/graphic/graphic-creator.js +16 -99
  6. package/cjs/graphic/graphic-creator.js.map +1 -1
  7. package/cjs/graphic/index.d.ts +1 -0
  8. package/cjs/graphic/index.js +6 -5
  9. package/cjs/graphic/index.js.map +1 -1
  10. package/cjs/index.d.ts +15 -0
  11. package/cjs/index.js +8 -1
  12. package/cjs/index.js.map +1 -1
  13. package/cjs/render/contributions/render/arc-module.d.ts +2 -0
  14. package/cjs/render/contributions/render/arc-module.js +17 -0
  15. package/cjs/render/contributions/render/arc-module.js.map +1 -0
  16. package/cjs/render/contributions/render/arc3d-module.d.ts +2 -0
  17. package/cjs/render/contributions/render/arc3d-module.js +15 -0
  18. package/cjs/render/contributions/render/arc3d-module.js.map +1 -0
  19. package/cjs/render/contributions/render/area-module.d.ts +2 -0
  20. package/cjs/render/contributions/render/area-module.js +18 -0
  21. package/cjs/render/contributions/render/area-module.js.map +1 -0
  22. package/cjs/render/contributions/render/circle-module.d.ts +2 -0
  23. package/cjs/render/contributions/render/circle-module.js +17 -0
  24. package/cjs/render/contributions/render/circle-module.js.map +1 -0
  25. package/cjs/render/contributions/render/draw-interceptor.d.ts +0 -2
  26. package/cjs/render/contributions/render/draw-interceptor.js +2 -2
  27. package/cjs/render/contributions/render/draw-interceptor.js.map +1 -1
  28. package/cjs/render/contributions/render/glyph-module.d.ts +2 -0
  29. package/cjs/render/contributions/render/glyph-module.js +15 -0
  30. package/cjs/render/contributions/render/glyph-module.js.map +1 -0
  31. package/cjs/render/contributions/render/image-module.d.ts +2 -0
  32. package/cjs/render/contributions/render/image-module.js +16 -0
  33. package/cjs/render/contributions/render/image-module.js.map +1 -0
  34. package/cjs/render/contributions/render/line-module.d.ts +2 -0
  35. package/cjs/render/contributions/render/line-module.js +17 -0
  36. package/cjs/render/contributions/render/line-module.js.map +1 -0
  37. package/cjs/render/contributions/render/module.js +2 -37
  38. package/cjs/render/contributions/render/module.js.map +1 -1
  39. package/cjs/render/contributions/render/path-module.d.ts +2 -0
  40. package/cjs/render/contributions/render/path-module.js +17 -0
  41. package/cjs/render/contributions/render/path-module.js.map +1 -0
  42. package/cjs/render/contributions/render/polygon-module.d.ts +2 -0
  43. package/cjs/render/contributions/render/polygon-module.js +16 -0
  44. package/cjs/render/contributions/render/polygon-module.js.map +1 -0
  45. package/cjs/render/contributions/render/pyramid3d-module.d.ts +2 -0
  46. package/cjs/render/contributions/render/pyramid3d-module.js +15 -0
  47. package/cjs/render/contributions/render/pyramid3d-module.js.map +1 -0
  48. package/cjs/render/contributions/render/rect-module.d.ts +2 -0
  49. package/cjs/render/contributions/render/rect-module.js +17 -0
  50. package/cjs/render/contributions/render/rect-module.js.map +1 -0
  51. package/cjs/render/contributions/render/rect3d-module.d.ts +2 -0
  52. package/cjs/render/contributions/render/rect3d-module.js +15 -0
  53. package/cjs/render/contributions/render/rect3d-module.js.map +1 -0
  54. package/cjs/render/contributions/render/richtext-module.d.ts +2 -0
  55. package/cjs/render/contributions/render/richtext-module.js +15 -0
  56. package/cjs/render/contributions/render/richtext-module.js.map +1 -0
  57. package/cjs/render/contributions/render/symbol-module.d.ts +2 -0
  58. package/cjs/render/contributions/render/symbol-module.js +17 -0
  59. package/cjs/render/contributions/render/symbol-module.js.map +1 -0
  60. package/cjs/render/contributions/render/text-module.d.ts +2 -0
  61. package/cjs/render/contributions/render/text-module.js +16 -0
  62. package/cjs/render/contributions/render/text-module.js.map +1 -0
  63. package/dist/index.js +1888 -1825
  64. package/dist/index.min.js +1 -1
  65. package/es/graphic/bounds.d.ts +2 -2
  66. package/es/graphic/bounds.js +6 -8
  67. package/es/graphic/bounds.js.map +1 -1
  68. package/es/graphic/graphic-creator.d.ts +24 -36
  69. package/es/graphic/graphic-creator.js +14 -125
  70. package/es/graphic/graphic-creator.js.map +1 -1
  71. package/es/graphic/index.d.ts +1 -0
  72. package/es/graphic/index.js +2 -0
  73. package/es/graphic/index.js.map +1 -1
  74. package/es/index.d.ts +15 -0
  75. package/es/index.js +30 -0
  76. package/es/index.js.map +1 -1
  77. package/es/render/contributions/render/arc-module.d.ts +2 -0
  78. package/es/render/contributions/render/arc-module.js +21 -0
  79. package/es/render/contributions/render/arc-module.js.map +1 -0
  80. package/es/render/contributions/render/arc3d-module.d.ts +2 -0
  81. package/es/render/contributions/render/arc3d-module.js +13 -0
  82. package/es/render/contributions/render/arc3d-module.js.map +1 -0
  83. package/es/render/contributions/render/area-module.d.ts +2 -0
  84. package/es/render/contributions/render/area-module.js +23 -0
  85. package/es/render/contributions/render/area-module.js.map +1 -0
  86. package/es/render/contributions/render/circle-module.d.ts +2 -0
  87. package/es/render/contributions/render/circle-module.js +21 -0
  88. package/es/render/contributions/render/circle-module.js.map +1 -0
  89. package/es/render/contributions/render/draw-interceptor.d.ts +0 -2
  90. package/es/render/contributions/render/draw-interceptor.js +4 -4
  91. package/es/render/contributions/render/draw-interceptor.js.map +1 -1
  92. package/es/render/contributions/render/glyph-module.d.ts +2 -0
  93. package/es/render/contributions/render/glyph-module.js +13 -0
  94. package/es/render/contributions/render/glyph-module.js.map +1 -0
  95. package/es/render/contributions/render/image-module.d.ts +2 -0
  96. package/es/render/contributions/render/image-module.js +20 -0
  97. package/es/render/contributions/render/image-module.js.map +1 -0
  98. package/es/render/contributions/render/line-module.d.ts +2 -0
  99. package/es/render/contributions/render/line-module.js +16 -0
  100. package/es/render/contributions/render/line-module.js.map +1 -0
  101. package/es/render/contributions/render/module.js +3 -70
  102. package/es/render/contributions/render/module.js.map +1 -1
  103. package/es/render/contributions/render/path-module.d.ts +2 -0
  104. package/es/render/contributions/render/path-module.js +21 -0
  105. package/es/render/contributions/render/path-module.js.map +1 -0
  106. package/es/render/contributions/render/polygon-module.d.ts +2 -0
  107. package/es/render/contributions/render/polygon-module.js +20 -0
  108. package/es/render/contributions/render/polygon-module.js.map +1 -0
  109. package/es/render/contributions/render/pyramid3d-module.d.ts +2 -0
  110. package/es/render/contributions/render/pyramid3d-module.js +13 -0
  111. package/es/render/contributions/render/pyramid3d-module.js.map +1 -0
  112. package/es/render/contributions/render/rect-module.d.ts +2 -0
  113. package/es/render/contributions/render/rect-module.js +21 -0
  114. package/es/render/contributions/render/rect-module.js.map +1 -0
  115. package/es/render/contributions/render/rect3d-module.d.ts +2 -0
  116. package/es/render/contributions/render/rect3d-module.js +13 -0
  117. package/es/render/contributions/render/rect3d-module.js.map +1 -0
  118. package/es/render/contributions/render/richtext-module.d.ts +2 -0
  119. package/es/render/contributions/render/richtext-module.js +13 -0
  120. package/es/render/contributions/render/richtext-module.js.map +1 -0
  121. package/es/render/contributions/render/symbol-module.d.ts +2 -0
  122. package/es/render/contributions/render/symbol-module.js +21 -0
  123. package/es/render/contributions/render/symbol-module.js.map +1 -0
  124. package/es/render/contributions/render/text-module.d.ts +2 -0
  125. package/es/render/contributions/render/text-module.js +20 -0
  126. package/es/render/contributions/render/text-module.js.map +1 -0
  127. package/package.json +5 -3
@@ -1,6 +1,6 @@
1
1
  import type { IRichTextAttribute, ITextAttribute } from '../interface';
2
2
  type ITextBoundsParams = Partial<ITextAttribute>;
3
- export declare function getTextBounds(params: ITextBoundsParams): import("@visactor/vutils").IBounds;
3
+ export declare function getTextBounds(params: ITextBoundsParams): any;
4
4
  type IRichTextBoundsParams = Partial<IRichTextAttribute>;
5
- export declare function getRichTextBounds(params: IRichTextBoundsParams): import("@visactor/vutils").IBounds;
5
+ export declare function getRichTextBounds(params: IRichTextBoundsParams): any;
6
6
  export {};
@@ -1,16 +1,14 @@
1
- import { createRichText, createText } from "./graphic-creator";
1
+ import { graphicCreator } from "./graphic-creator";
2
2
 
3
- const text = createText({
4
- text: ""
5
- });
3
+ let text, richText;
6
4
 
7
5
  export function getTextBounds(params) {
8
- return text.setAttributes(params), text.AABBBounds;
6
+ return text || (text = graphicCreator.CreateGraphic("text", {})), text.setAttributes(params),
7
+ text.AABBBounds;
9
8
  }
10
9
 
11
- const richText = createRichText({});
12
-
13
10
  export function getRichTextBounds(params) {
14
- return richText.setAttributes(params), richText.AABBBounds;
11
+ return richText || (richText = graphicCreator.CreateGraphic("text", {})), richText.setAttributes(params),
12
+ richText.AABBBounds;
15
13
  }
16
14
  //# sourceMappingURL=bounds.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/graphic/bounds.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAG/D,MAAM,IAAI,GAAG,UAAU,CAAC;IACtB,IAAI,EAAE,EAAE;CACT,CAAC,CAAC;AACH,MAAM,UAAU,aAAa,CAAC,MAAyB;IACrD,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;IAC3B,OAAO,IAAI,CAAC,UAAU,CAAC;AACzB,CAAC;AAGD,MAAM,QAAQ,GAAG,cAAc,CAAC,EAAE,CAAC,CAAC;AACpC,MAAM,UAAU,iBAAiB,CAAC,MAA6B;IAC7D,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;IAC/B,OAAO,QAAQ,CAAC,UAAU,CAAC;AAC7B,CAAC","file":"bounds.js","sourcesContent":["import type { IRichTextAttribute, ITextAttribute } from '../interface';\nimport { createRichText, createText } from './graphic-creator';\n\ntype ITextBoundsParams = Partial<ITextAttribute>;\nconst text = createText({\n text: ''\n});\nexport function getTextBounds(params: ITextBoundsParams) {\n text.setAttributes(params);\n return text.AABBBounds;\n}\n\ntype IRichTextBoundsParams = Partial<IRichTextAttribute>;\nconst richText = createRichText({});\nexport function getRichTextBounds(params: IRichTextBoundsParams) {\n richText.setAttributes(params);\n return richText.AABBBounds;\n}\n"]}
1
+ {"version":3,"sources":["../src/graphic/bounds.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAInD,IAAI,IAAS,CAAC;AACd,MAAM,UAAU,aAAa,CAAC,MAAyB;IACrD,IAAI,CAAC,IAAI,EAAE;QACT,IAAI,GAAG,cAAc,CAAC,aAAa,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;KACjD;IACD,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;IAC3B,OAAO,IAAI,CAAC,UAAU,CAAC;AACzB,CAAC;AAGD,IAAI,QAAa,CAAC;AAClB,MAAM,UAAU,iBAAiB,CAAC,MAA6B;IAC7D,IAAI,CAAC,QAAQ,EAAE;QACb,QAAQ,GAAG,cAAc,CAAC,aAAa,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;KACrD;IACD,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;IAC/B,OAAO,QAAQ,CAAC,UAAU,CAAC;AAC7B,CAAC","file":"bounds.js","sourcesContent":["import type { IRichTextAttribute, ITextAttribute } from '../interface';\nimport { graphicCreator } from './graphic-creator';\n// import { createRichText, createText } from './graphic-creator';\n\ntype ITextBoundsParams = Partial<ITextAttribute>;\nlet text: any;\nexport function getTextBounds(params: ITextBoundsParams) {\n if (!text) {\n text = graphicCreator.CreateGraphic('text', {});\n }\n text.setAttributes(params);\n return text.AABBBounds;\n}\n\ntype IRichTextBoundsParams = Partial<IRichTextAttribute>;\nlet richText: any;\nexport function getRichTextBounds(params: IRichTextBoundsParams) {\n if (!richText) {\n richText = graphicCreator.CreateGraphic('text', {});\n }\n richText.setAttributes(params);\n return richText.AABBBounds;\n}\n"]}
@@ -1,36 +1,24 @@
1
- import type { IArc, IArcGraphicAttribute, IArea, IAreaGraphicAttribute, ICircle, ICircleGraphicAttribute, IGroup, IGroupGraphicAttribute, IImageGraphicAttribute, ILine, ILineGraphicAttribute, IPath, IPathGraphicAttribute, IPolygonGraphicAttribute, IRect, IRectGraphicAttribute, ISymbolGraphicAttribute, IText, ITextGraphicAttribute, ISymbol, IImage, IPolygon, IShadowRoot, IGraphic, IRichTextGraphicAttribute, IRichText, IGlyph, IGlyphGraphicAttribute, IRect3d, IRect3dGraphicAttribute, IArc3dGraphicAttribute, IPyramid3dGraphicAttribute, IPyramid3d, IWrapTextGraphicAttribute } from '../interface';
2
- export declare function createArc(attributes: IArcGraphicAttribute): IArc;
3
- export declare function createArc3d(attributes: IArc3dGraphicAttribute): IArc;
4
- export declare function createPyramid3d(attributes: IPyramid3dGraphicAttribute): IPyramid3d;
5
- export declare function createArea(attributes: IAreaGraphicAttribute): IArea;
6
- export declare function createCircle(attributes: ICircleGraphicAttribute): ICircle;
7
- export declare function createGroup(attributes: IGroupGraphicAttribute): IGroup;
8
- export declare function createLine(attributes: ILineGraphicAttribute): ILine;
9
- export declare function createPath(attributes: IPathGraphicAttribute): IPath;
10
- export declare function createRect(attributes: IRectGraphicAttribute): IRect;
11
- export declare function createRect3d(attributes: IRect3dGraphicAttribute): IRect3d;
12
- export declare function createGlyph(attributes: IGlyphGraphicAttribute): IGlyph;
13
- export declare function createText(attributes: ITextGraphicAttribute): IText;
14
- export declare function createWrapText(attributes: IWrapTextGraphicAttribute): IText;
15
- export declare function createSymbol(attributes: ISymbolGraphicAttribute): ISymbol;
16
- export declare function createImage(attributes: IImageGraphicAttribute): IImage;
17
- export declare function createPolygon(attributes: IPolygonGraphicAttribute): IPolygon;
18
- export declare function createShadowRoot(graphic?: IGraphic): IShadowRoot;
19
- export declare function createRichText(attributes: IRichTextGraphicAttribute): IRichText;
20
- export declare const graphicCreator: {
21
- arc: typeof createArc;
22
- area: typeof createArea;
23
- circle: typeof createCircle;
24
- group: typeof createGroup;
25
- image: typeof createImage;
26
- line: typeof createLine;
27
- path: typeof createPath;
28
- rect: typeof createRect;
29
- rect3d: typeof createRect3d;
30
- symbol: typeof createSymbol;
31
- text: typeof createText;
32
- richtext: typeof createRichText;
33
- polygon: typeof createPolygon;
34
- shadowRoot: typeof createShadowRoot;
35
- wrapText: typeof createWrapText;
36
- };
1
+ import type { IArc, IArcGraphicAttribute, IArea, IAreaGraphicAttribute, ICircle, ICircleGraphicAttribute, IGroup, IGroupGraphicAttribute, IImage, IImageGraphicAttribute, ILine, ILineGraphicAttribute, IPath, IPathGraphicAttribute, IPolygon, IPolygonGraphicAttribute, IRect, IRect3d, IRect3dGraphicAttribute, IRectGraphicAttribute, IRichText, IRichTextGraphicAttribute, IShadowRoot, ISymbol, ISymbolGraphicAttribute, IText, ITextGraphicAttribute, IWrapTextGraphicAttribute } from '../interface';
2
+ declare class GraphicCreator {
3
+ store: Map<string, any>;
4
+ arc?: (attribute: IArcGraphicAttribute) => IArc;
5
+ area?: (attribute: IAreaGraphicAttribute) => IArea;
6
+ circle?: (attribute: ICircleGraphicAttribute) => ICircle;
7
+ group?: (attribute: IGroupGraphicAttribute) => IGroup;
8
+ image?: (attribute: IImageGraphicAttribute) => IImage;
9
+ line?: (attribute: ILineGraphicAttribute) => ILine;
10
+ path?: (attribute: IPathGraphicAttribute) => IPath;
11
+ rect?: (attribute: IRectGraphicAttribute) => IRect;
12
+ rect3d?: (attribute: IRect3dGraphicAttribute) => IRect3d;
13
+ symbol?: (attribute: ISymbolGraphicAttribute) => ISymbol;
14
+ text?: (attribute: ITextGraphicAttribute) => IText;
15
+ richtext?: (attribute: IRichTextGraphicAttribute) => IRichText;
16
+ polygon?: (attribute: IPolygonGraphicAttribute) => IPolygon;
17
+ shadowRoot?: (attribute: IGroupGraphicAttribute) => IShadowRoot;
18
+ wraptext?: (attribute: IWrapTextGraphicAttribute) => IText;
19
+ constructor();
20
+ RegisterGraphicCreator(name: string, cb: any): void;
21
+ CreateGraphic(name: string, params: any): any;
22
+ }
23
+ export declare const graphicCreator: GraphicCreator;
24
+ export {};
@@ -1,126 +1,15 @@
1
- import { Arc } from "./arc";
2
-
3
- import { Area } from "./area";
4
-
5
- import { Circle } from "./circle";
6
-
7
- import { Group } from "./group";
8
-
9
- import { Image } from "./image";
10
-
11
- import { Line } from "./line";
12
-
13
- import { Path } from "./path";
14
-
15
- import { Polygon } from "./polygon";
16
-
17
- import { Rect } from "./rect";
18
-
19
- import { Symbol as MarkSymbol } from "./symbol";
20
-
21
- import { ShadowRoot as MarkShadowRoot } from "./shadow-root";
22
-
23
- import { Text } from "./text";
24
-
25
- import { RichText } from "./richtext";
26
-
27
- import { Glyph } from "./glyph";
28
-
29
- import { Rect3d } from "./rect3d";
30
-
31
- import { Arc3d } from "./arc3d";
32
-
33
- import { Pyramid3d } from "./pyramid3d";
34
-
35
- import { WrapText } from "./wrap-text";
36
-
37
- export function createArc(attributes) {
38
- return new Arc(attributes);
39
- }
40
-
41
- export function createArc3d(attributes) {
42
- return new Arc3d(attributes);
43
- }
44
-
45
- export function createPyramid3d(attributes) {
46
- return new Pyramid3d(attributes);
47
- }
48
-
49
- export function createArea(attributes) {
50
- return new Area(attributes);
51
- }
52
-
53
- export function createCircle(attributes) {
54
- return new Circle(attributes);
55
- }
56
-
57
- export function createGroup(attributes) {
58
- return new Group(attributes);
59
- }
60
-
61
- export function createLine(attributes) {
62
- return new Line(attributes);
63
- }
64
-
65
- export function createPath(attributes) {
66
- return new Path(attributes);
67
- }
68
-
69
- export function createRect(attributes) {
70
- return new Rect(attributes);
71
- }
72
-
73
- export function createRect3d(attributes) {
74
- return new Rect3d(attributes);
75
- }
76
-
77
- export function createGlyph(attributes) {
78
- return new Glyph(attributes);
79
- }
80
-
81
- export function createText(attributes) {
82
- return new Text(attributes);
83
- }
84
-
85
- export function createWrapText(attributes) {
86
- return new WrapText(attributes);
87
- }
88
-
89
- export function createSymbol(attributes) {
90
- return new MarkSymbol(attributes);
91
- }
92
-
93
- export function createImage(attributes) {
94
- return new Image(attributes);
95
- }
96
-
97
- export function createPolygon(attributes) {
98
- return new Polygon(attributes);
99
- }
100
-
101
- export function createShadowRoot(graphic) {
102
- return new MarkShadowRoot(graphic);
103
- }
104
-
105
- export function createRichText(attributes) {
106
- return new RichText(attributes);
107
- }
108
-
109
- export const graphicCreator = {
110
- arc: createArc,
111
- area: createArea,
112
- circle: createCircle,
113
- group: createGroup,
114
- image: createImage,
115
- line: createLine,
116
- path: createPath,
117
- rect: createRect,
118
- rect3d: createRect3d,
119
- symbol: createSymbol,
120
- text: createText,
121
- richtext: createRichText,
122
- polygon: createPolygon,
123
- shadowRoot: createShadowRoot,
124
- wrapText: createWrapText
125
- };
1
+ class GraphicCreator {
2
+ constructor() {
3
+ this.store = new Map;
4
+ }
5
+ RegisterGraphicCreator(name, cb) {
6
+ this.store.set(name, cb), this[name] = cb;
7
+ }
8
+ CreateGraphic(name, params) {
9
+ const cb = this.store.get(name);
10
+ return cb ? cb(params) : null;
11
+ }
12
+ }
13
+
14
+ export const graphicCreator = new GraphicCreator;
126
15
  //# sourceMappingURL=graphic-creator.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/graphic/graphic-creator.ts"],"names":[],"mappings":"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","file":"graphic-creator.js","sourcesContent":["import type {\n IArc,\n IArcGraphicAttribute,\n IArea,\n IAreaGraphicAttribute,\n ICircle,\n ICircleGraphicAttribute,\n IGroup,\n IGroupGraphicAttribute,\n IImageGraphicAttribute,\n ILine,\n ILineGraphicAttribute,\n IPath,\n IPathGraphicAttribute,\n IPolygonGraphicAttribute,\n IRect,\n IRectGraphicAttribute,\n ISymbolGraphicAttribute,\n IText,\n ITextGraphicAttribute,\n ISymbol,\n IImage,\n IPolygon,\n IShadowRoot,\n IGraphic,\n IRichTextGraphicAttribute,\n IRichText,\n IGlyph,\n IGlyphGraphicAttribute,\n IRect3d,\n IRect3dGraphicAttribute,\n IArc3dGraphicAttribute,\n IPyramid3dGraphicAttribute,\n IPyramid3d,\n IWrapTextGraphicAttribute\n} from '../interface';\nimport { Arc } from './arc';\nimport { Area } from './area';\nimport { Circle } from './circle';\nimport { Group } from './group';\nimport { Image } from './image';\nimport { Line } from './line';\nimport { Path } from './path';\nimport { Polygon } from './polygon';\nimport { Rect } from './rect';\n// 这里git会将Symbol强行转成小写symbol,先重命名一下\nimport { Symbol as MarkSymbol } from './symbol';\nimport { ShadowRoot as MarkShadowRoot } from './shadow-root';\nimport { Text } from './text';\nimport { RichText } from './richtext';\nimport { Glyph } from './glyph';\nimport { Rect3d } from './rect3d';\nimport { Arc3d } from './arc3d';\nimport { Pyramid3d } from './pyramid3d';\nimport { WrapText } from './wrap-text';\n\nexport function createArc(attributes: IArcGraphicAttribute): IArc {\n return new Arc(attributes);\n}\nexport function createArc3d(attributes: IArc3dGraphicAttribute): IArc {\n return new Arc3d(attributes);\n}\nexport function createPyramid3d(attributes: IPyramid3dGraphicAttribute): IPyramid3d {\n return new Pyramid3d(attributes);\n}\nexport function createArea(attributes: IAreaGraphicAttribute): IArea {\n return new Area(attributes);\n}\nexport function createCircle(attributes: ICircleGraphicAttribute): ICircle {\n return new Circle(attributes);\n}\nexport function createGroup(attributes: IGroupGraphicAttribute): IGroup {\n return new Group(attributes);\n}\nexport function createLine(attributes: ILineGraphicAttribute): ILine {\n return new Line(attributes);\n}\nexport function createPath(attributes: IPathGraphicAttribute): IPath {\n return new Path(attributes);\n}\nexport function createRect(attributes: IRectGraphicAttribute): IRect {\n return new Rect(attributes);\n}\nexport function createRect3d(attributes: IRect3dGraphicAttribute): IRect3d {\n return new Rect3d(attributes);\n}\nexport function createGlyph(attributes: IGlyphGraphicAttribute): IGlyph {\n return new Glyph(attributes);\n}\nexport function createText(attributes: ITextGraphicAttribute): IText {\n return new Text(attributes);\n}\nexport function createWrapText(attributes: IWrapTextGraphicAttribute): IText {\n return new WrapText(attributes);\n}\nexport function createSymbol(attributes: ISymbolGraphicAttribute): ISymbol {\n return new MarkSymbol(attributes);\n}\nexport function createImage(attributes: IImageGraphicAttribute): IImage {\n return new Image(attributes);\n}\nexport function createPolygon(attributes: IPolygonGraphicAttribute): IPolygon {\n return new Polygon(attributes);\n}\nexport function createShadowRoot(graphic?: IGraphic): IShadowRoot {\n return new MarkShadowRoot(graphic);\n}\nexport function createRichText(attributes: IRichTextGraphicAttribute): IRichText {\n return new RichText(attributes);\n}\n\nexport const graphicCreator = {\n arc: createArc,\n area: createArea,\n circle: createCircle,\n group: createGroup,\n image: createImage,\n line: createLine,\n path: createPath,\n rect: createRect,\n rect3d: createRect3d,\n symbol: createSymbol,\n text: createText,\n richtext: createRichText,\n polygon: createPolygon,\n shadowRoot: createShadowRoot,\n wrapText: createWrapText\n};\n"]}
1
+ {"version":3,"sources":["../src/graphic/graphic-creator.ts"],"names":[],"mappings":"AA8IA,MAAM,cAAc;IAiBlB;QACE,IAAI,CAAC,KAAK,GAAG,IAAI,GAAG,EAAE,CAAC;IACzB,CAAC;IAED,sBAAsB,CAAC,IAAY,EAAE,EAAO;QAC1C,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QACzB,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC;IAClB,CAAC;IAED,aAAa,CAAC,IAAY,EAAE,MAAW;QACrC,MAAM,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAChC,IAAI,CAAC,EAAE,EAAE;YACP,OAAO,IAAI,CAAC;SACb;QACD,OAAO,EAAE,CAAC,MAAM,CAAC,CAAC;IACpB,CAAC;CACF;AAED,MAAM,CAAC,MAAM,cAAc,GAAG,IAAI,cAAc,EAAE,CAAC","file":"graphic-creator.js","sourcesContent":["// import type {\n// IArc,\n// IArcGraphicAttribute,\n// IArea,\n// IAreaGraphicAttribute,\n// ICircle,\n// ICircleGraphicAttribute,\n// IGroup,\n// IGroupGraphicAttribute,\n// IImageGraphicAttribute,\n// ILine,\n// ILineGraphicAttribute,\n// IPath,\n// IPathGraphicAttribute,\n// IPolygonGraphicAttribute,\n// IRect,\n// IRectGraphicAttribute,\n// ISymbolGraphicAttribute,\n// IText,\n// ITextGraphicAttribute,\n// ISymbol,\n// IImage,\n// IPolygon,\n// IShadowRoot,\n// IGraphic,\n// IRichTextGraphicAttribute,\n// IRichText,\n// IGlyph,\n// IGlyphGraphicAttribute,\n// IRect3d,\n// IRect3dGraphicAttribute,\n// IArc3dGraphicAttribute,\n// IPyramid3dGraphicAttribute,\n// IPyramid3d,\n// IWrapTextGraphicAttribute\n// } from '../interface';\n// import { Arc } from './arc';\n// import { Area } from './area';\n// import { Circle } from './circle';\n// import { Group } from './group';\n// import { Image } from './image';\n// import { Line } from './line';\n// import { Path } from './path';\n// import { Polygon } from './polygon';\n// import { Rect } from './rect';\n// // 这里git会将Symbol强行转成小写symbol,先重命名一下\n// import { Symbol as MarkSymbol } from './symbol';\n// import { ShadowRoot as MarkShadowRoot } from './shadow-root';\n// import { Text } from './text';\n// import { RichText } from './richtext';\n// import { Glyph } from './glyph';\n// import { Rect3d } from './rect3d';\n// import { Arc3d } from './arc3d';\n// import { Pyramid3d } from './pyramid3d';\n// import { WrapText } from './wrap-text';\n\nimport type {\n IArc,\n IArcGraphicAttribute,\n IArea,\n IAreaGraphicAttribute,\n ICircle,\n ICircleGraphicAttribute,\n IGroup,\n IGroupGraphicAttribute,\n IImage,\n IImageGraphicAttribute,\n ILine,\n ILineGraphicAttribute,\n IPath,\n IPathGraphicAttribute,\n IPolygon,\n IPolygonGraphicAttribute,\n IRect,\n IRect3d,\n IRect3dGraphicAttribute,\n IRectGraphicAttribute,\n IRichText,\n IRichTextGraphicAttribute,\n IShadowRoot,\n ISymbol,\n ISymbolGraphicAttribute,\n IText,\n ITextGraphicAttribute,\n IWrapTextGraphicAttribute\n} from '../interface';\n\n// export function createArc(attributes: IArcGraphicAttribute): IArc {\n// return new Arc(attributes);\n// }\n// export function createArc3d(attributes: IArc3dGraphicAttribute): IArc {\n// return new Arc3d(attributes);\n// }\n// export function createPyramid3d(attributes: IPyramid3dGraphicAttribute): IPyramid3d {\n// return new Pyramid3d(attributes);\n// }\n// export function createArea(attributes: IAreaGraphicAttribute): IArea {\n// return new Area(attributes);\n// }\n// export function createCircle(attributes: ICircleGraphicAttribute): ICircle {\n// return new Circle(attributes);\n// }\n// export function createGroup(attributes: IGroupGraphicAttribute): IGroup {\n// return new Group(attributes);\n// }\n// export function createLine(attributes: ILineGraphicAttribute): ILine {\n// return new Line(attributes);\n// }\n// export function createPath(attributes: IPathGraphicAttribute): IPath {\n// return new Path(attributes);\n// }\n// export function createRect(attributes: IRectGraphicAttribute): IRect {\n// return new Rect(attributes);\n// }\n// export function createRect3d(attributes: IRect3dGraphicAttribute): IRect3d {\n// return new Rect3d(attributes);\n// }\n// export function createGlyph(attributes: IGlyphGraphicAttribute): IGlyph {\n// return new Glyph(attributes);\n// }\n// export function createText(attributes: ITextGraphicAttribute): IText {\n// return new Text(attributes);\n// }\n// export function createWrapText(attributes: IWrapTextGraphicAttribute): IText {\n// return new WrapText(attributes);\n// }\n// export function createSymbol(attributes: ISymbolGraphicAttribute): ISymbol {\n// return new MarkSymbol(attributes);\n// }\n// export function createImage(attributes: IImageGraphicAttribute): IImage {\n// return new Image(attributes);\n// }\n// export function createPolygon(attributes: IPolygonGraphicAttribute): IPolygon {\n// return new Polygon(attributes);\n// }\n// export function createShadowRoot(graphic?: IGraphic): IShadowRoot {\n// return new MarkShadowRoot(graphic);\n// }\n// export function createRichText(attributes: IRichTextGraphicAttribute): IRichText {\n// return new RichText(attributes);\n// }\n\nclass GraphicCreator {\n declare store: Map<string, any>;\n declare arc?: (attribute: IArcGraphicAttribute) => IArc;\n declare area?: (attribute: IAreaGraphicAttribute) => IArea;\n declare circle?: (attribute: ICircleGraphicAttribute) => ICircle;\n declare group?: (attribute: IGroupGraphicAttribute) => IGroup;\n declare image?: (attribute: IImageGraphicAttribute) => IImage;\n declare line?: (attribute: ILineGraphicAttribute) => ILine;\n declare path?: (attribute: IPathGraphicAttribute) => IPath;\n declare rect?: (attribute: IRectGraphicAttribute) => IRect;\n declare rect3d?: (attribute: IRect3dGraphicAttribute) => IRect3d;\n declare symbol?: (attribute: ISymbolGraphicAttribute) => ISymbol;\n declare text?: (attribute: ITextGraphicAttribute) => IText;\n declare richtext?: (attribute: IRichTextGraphicAttribute) => IRichText;\n declare polygon?: (attribute: IPolygonGraphicAttribute) => IPolygon;\n declare shadowRoot?: (attribute: IGroupGraphicAttribute) => IShadowRoot;\n declare wraptext?: (attribute: IWrapTextGraphicAttribute) => IText;\n constructor() {\n this.store = new Map();\n }\n\n RegisterGraphicCreator(name: string, cb: any) {\n this.store.set(name, cb);\n this[name] = cb;\n }\n\n CreateGraphic(name: string, params: any) {\n const cb = this.store.get(name);\n if (!cb) {\n return null;\n }\n return cb(params);\n }\n}\n\nexport const graphicCreator = new GraphicCreator();\n\n// export const graphicCreator = {\n// arc: createArc,\n// area: createArea,\n// circle: createCircle,\n// group: createGroup,\n// image: createImage,\n// line: createLine,\n// path: createPath,\n// rect: createRect,\n// rect3d: createRect3d,\n// symbol: createSymbol,\n// text: createText,\n// richtext: createRichText,\n// polygon: createPolygon,\n// shadowRoot: createShadowRoot,\n// wrapText: createWrapText\n// };\n"]}
@@ -17,6 +17,7 @@ export * from './arc3d';
17
17
  export * from './group';
18
18
  export * from './polygon';
19
19
  export * from './pyramid3d';
20
+ export * from './shadow-root';
20
21
  export * from './config';
21
22
  export * from './graphic-service/graphic-service';
22
23
  export * from './graphic-creator';
@@ -36,6 +36,8 @@ export * from "./polygon";
36
36
 
37
37
  export * from "./pyramid3d";
38
38
 
39
+ export * from "./shadow-root";
40
+
39
41
  export * from "./config";
40
42
 
41
43
  export * from "./graphic-service/graphic-service";
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/graphic/index.ts"],"names":[],"mappings":"AAgBA,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,mCAAmC,CAAC;AAClD,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC","file":"index.js","sourcesContent":["// export { Node } from './node-tree';\n// export { Circle, DefaultCircleAttribute, CIRCLE_NUMBER_TYPE } from './circle';\n// export { Text, DefaultTextAttribute, TEXT_NUMBER_TYPE } from './text';\n// export { Symbol, DefaultSymbolAttribute, SYMBOL_NUMBER_TYPE } from './symbol';\n// export { builtinSymbolsMap } from './builtin-symbol';\n// export { Line, DefaultLineAttribute, LINE_NUMBER_TYPE } from './line';\n// export { Rect, DefaultRectAttribute, RECT_NUMBER_TYPE } from './rect';\n// export { Path, DefaultPathAttribute, PATH_NUMBER_TYPE } from './path';\n// export { RichText, DefaultRichTextAttribute, RICHTEXT_NUMBER_TYPE } from './richtext';\n// export { Area, DefaultAreaAttribute, AREA_NUMBER_TYPE } from './area';\n// export { Image, DefaultImageAttribute, IMAGE_NUMBER_TYPE } from './image';\n// export { Arc, DefaultArcAttribute, ARC_NUMBER_TYPE } from './arc';\n// export { Group } from './group';\n// export { DefaultAttribute, DefaultFillStyle, DefaultStrokeStyle, DefaultTransform } from './config';\n// export * from './graphic-service/graphic-service';\n\nexport * from './node-tree';\nexport * from './circle';\nexport * from './text';\nexport * from './wrap-text';\nexport * from './symbol';\nexport * from './builtin-symbol';\nexport * from './line';\nexport * from './rect';\nexport * from './rect3d';\nexport * from './glyph';\nexport * from './richtext';\nexport * from './path';\nexport * from './area';\nexport * from './image';\nexport * from './arc';\nexport * from './arc3d';\nexport * from './group';\nexport * from './polygon';\nexport * from './pyramid3d';\nexport * from './config';\nexport * from './graphic-service/graphic-service';\nexport * from './graphic-creator';\nexport * from './builtin-symbol';\nexport * from './graphic';\nexport * from './bounds';\nexport * from './theme';\nexport * from './tools';\nexport * from './constants';\n"]}
1
+ {"version":3,"sources":["../src/graphic/index.ts"],"names":[],"mappings":"AAgBA,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,mCAAmC,CAAC;AAClD,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC","file":"index.js","sourcesContent":["// export { Node } from './node-tree';\n// export { Circle, DefaultCircleAttribute, CIRCLE_NUMBER_TYPE } from './circle';\n// export { Text, DefaultTextAttribute, TEXT_NUMBER_TYPE } from './text';\n// export { Symbol, DefaultSymbolAttribute, SYMBOL_NUMBER_TYPE } from './symbol';\n// export { builtinSymbolsMap } from './builtin-symbol';\n// export { Line, DefaultLineAttribute, LINE_NUMBER_TYPE } from './line';\n// export { Rect, DefaultRectAttribute, RECT_NUMBER_TYPE } from './rect';\n// export { Path, DefaultPathAttribute, PATH_NUMBER_TYPE } from './path';\n// export { RichText, DefaultRichTextAttribute, RICHTEXT_NUMBER_TYPE } from './richtext';\n// export { Area, DefaultAreaAttribute, AREA_NUMBER_TYPE } from './area';\n// export { Image, DefaultImageAttribute, IMAGE_NUMBER_TYPE } from './image';\n// export { Arc, DefaultArcAttribute, ARC_NUMBER_TYPE } from './arc';\n// export { Group } from './group';\n// export { DefaultAttribute, DefaultFillStyle, DefaultStrokeStyle, DefaultTransform } from './config';\n// export * from './graphic-service/graphic-service';\n\nexport * from './node-tree';\nexport * from './circle';\nexport * from './text';\nexport * from './wrap-text';\nexport * from './symbol';\nexport * from './builtin-symbol';\nexport * from './line';\nexport * from './rect';\nexport * from './rect3d';\nexport * from './glyph';\nexport * from './richtext';\nexport * from './path';\nexport * from './area';\nexport * from './image';\nexport * from './arc';\nexport * from './arc3d';\nexport * from './group';\nexport * from './polygon';\nexport * from './pyramid3d';\nexport * from './shadow-root';\nexport * from './config';\nexport * from './graphic-service/graphic-service';\nexport * from './graphic-creator';\nexport * from './builtin-symbol';\nexport * from './graphic';\nexport * from './bounds';\nexport * from './theme';\nexport * from './tools';\nexport * from './constants';\n"]}
package/es/index.d.ts CHANGED
@@ -47,3 +47,18 @@ export * from './common/inversify-lite';
47
47
  export * from './constants';
48
48
  export * from './application';
49
49
  export * from './env-check';
50
+ export * from './render/contributions/render/arc-module';
51
+ export * from './render/contributions/render/rect-module';
52
+ export * from './render/contributions/render/line-module';
53
+ export * from './render/contributions/render/area-module';
54
+ export * from './render/contributions/render/symbol-module';
55
+ export * from './render/contributions/render/circle-module';
56
+ export * from './render/contributions/render/text-module';
57
+ export * from './render/contributions/render/path-module';
58
+ export * from './render/contributions/render/polygon-module';
59
+ export * from './render/contributions/render/glyph-module';
60
+ export * from './render/contributions/render/richtext-module';
61
+ export * from './render/contributions/render/image-module';
62
+ export * from './render/contributions/render/rect3d-module';
63
+ export * from './render/contributions/render/arc3d-module';
64
+ export * from './render/contributions/render/pyramid3d-module';
package/es/index.js CHANGED
@@ -95,4 +95,34 @@ export * from "./constants";
95
95
  export * from "./application";
96
96
 
97
97
  export * from "./env-check";
98
+
99
+ export * from "./render/contributions/render/arc-module";
100
+
101
+ export * from "./render/contributions/render/rect-module";
102
+
103
+ export * from "./render/contributions/render/line-module";
104
+
105
+ export * from "./render/contributions/render/area-module";
106
+
107
+ export * from "./render/contributions/render/symbol-module";
108
+
109
+ export * from "./render/contributions/render/circle-module";
110
+
111
+ export * from "./render/contributions/render/text-module";
112
+
113
+ export * from "./render/contributions/render/path-module";
114
+
115
+ export * from "./render/contributions/render/polygon-module";
116
+
117
+ export * from "./render/contributions/render/glyph-module";
118
+
119
+ export * from "./render/contributions/render/richtext-module";
120
+
121
+ export * from "./render/contributions/render/image-module";
122
+
123
+ export * from "./render/contributions/render/rect3d-module";
124
+
125
+ export * from "./render/contributions/render/arc3d-module";
126
+
127
+ export * from "./render/contributions/render/pyramid3d-module";
98
128
  //# sourceMappingURL=index.js.map
package/es/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,WAAW,CAAC;AAEnB,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,2CAA2C,CAAC;AAC1D,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,0BAA0B,CAAC;AACzC,cAAc,gBAAgB,CAAC;AAG/B,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAEhC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAE7C,cAAc,0BAA0B,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACxD,cAAc,cAAc,CAAC;AAC7B,cAAc,yBAAyB,CAAC;AACxC,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC","file":"index.js","sourcesContent":["// import 'core-js/proposals/reflect-metadata';\nimport './modules';\n\nexport * from './container';\nexport * from './core/global';\nexport * from './graphic';\nexport * from './modules';\nexport * from './create';\nexport * from './event';\nexport * from './interface';\nexport * from './render';\nexport * from './render/contributions/render/base-render';\nexport * from './canvas';\nexport * from './core';\nexport * from './picker';\nexport * from './animate';\nexport * from './resource-loader/loader';\nexport * from './color-string';\n\n/* export common */\nexport * from './common/text';\nexport * from './common/bezier-utils';\nexport * from './common/bounds-context';\nexport * from './common/seg-context';\nexport * from './common/custom-path2d';\nexport * from './common/segment';\nexport * from './common/canvas-utils';\nexport * from './common/contribution-provider';\nexport * from './common/generator';\nexport * from './common/utils';\nexport * from './common/shape/arc';\nexport * from './common/shape/rect';\nexport * from './common/matrix';\n\nexport * from './common/path-svg';\nexport * from './common/render-curve';\nexport * from './common/render-area';\nexport * from './common/render-command-list';\nexport * from './common/sort';\nexport * from './common/morphing-utils';\nexport * from './common/split-path';\nexport * from './common/enums';\nexport * from './common/generator';\nexport * from './plugins/constants';\nexport * from './allocator/matrix-allocate';\nexport * from './allocator/canvas-allocate';\nexport * from './allocator/graphic-allocate';\n\nexport * from './animate/default-ticker';\nexport { wrapCanvas, wrapContext } from './canvas/util';\nexport * from './common/xml';\nexport * from './common/inversify-lite';\nexport * from './constants';\nexport * from './application';\nexport * from './env-check';\n"]}
1
+ {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,WAAW,CAAC;AAEnB,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,2CAA2C,CAAC;AAC1D,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,0BAA0B,CAAC;AACzC,cAAc,gBAAgB,CAAC;AAG/B,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAEhC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAE7C,cAAc,0BAA0B,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACxD,cAAc,cAAc,CAAC;AAC7B,cAAc,yBAAyB,CAAC;AACxC,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAE5B,cAAc,0CAA0C,CAAC;AACzD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,8CAA8C,CAAC;AAC7D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,+CAA+C,CAAC;AAC9D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,gDAAgD,CAAC","file":"index.js","sourcesContent":["// import 'core-js/proposals/reflect-metadata';\nimport './modules';\n\nexport * from './container';\nexport * from './core/global';\nexport * from './graphic';\nexport * from './modules';\nexport * from './create';\nexport * from './event';\nexport * from './interface';\nexport * from './render';\nexport * from './render/contributions/render/base-render';\nexport * from './canvas';\nexport * from './core';\nexport * from './picker';\nexport * from './animate';\nexport * from './resource-loader/loader';\nexport * from './color-string';\n\n/* export common */\nexport * from './common/text';\nexport * from './common/bezier-utils';\nexport * from './common/bounds-context';\nexport * from './common/seg-context';\nexport * from './common/custom-path2d';\nexport * from './common/segment';\nexport * from './common/canvas-utils';\nexport * from './common/contribution-provider';\nexport * from './common/generator';\nexport * from './common/utils';\nexport * from './common/shape/arc';\nexport * from './common/shape/rect';\nexport * from './common/matrix';\n\nexport * from './common/path-svg';\nexport * from './common/render-curve';\nexport * from './common/render-area';\nexport * from './common/render-command-list';\nexport * from './common/sort';\nexport * from './common/morphing-utils';\nexport * from './common/split-path';\nexport * from './common/enums';\nexport * from './common/generator';\nexport * from './plugins/constants';\nexport * from './allocator/matrix-allocate';\nexport * from './allocator/canvas-allocate';\nexport * from './allocator/graphic-allocate';\n\nexport * from './animate/default-ticker';\nexport { wrapCanvas, wrapContext } from './canvas/util';\nexport * from './common/xml';\nexport * from './common/inversify-lite';\nexport * from './constants';\nexport * from './application';\nexport * from './env-check';\n\nexport * from './render/contributions/render/arc-module';\nexport * from './render/contributions/render/rect-module';\nexport * from './render/contributions/render/line-module';\nexport * from './render/contributions/render/area-module';\nexport * from './render/contributions/render/symbol-module';\nexport * from './render/contributions/render/circle-module';\nexport * from './render/contributions/render/text-module';\nexport * from './render/contributions/render/path-module';\nexport * from './render/contributions/render/polygon-module';\nexport * from './render/contributions/render/glyph-module';\nexport * from './render/contributions/render/richtext-module';\nexport * from './render/contributions/render/image-module';\nexport * from './render/contributions/render/rect3d-module';\nexport * from './render/contributions/render/arc3d-module';\nexport * from './render/contributions/render/pyramid3d-module';\n"]}
@@ -0,0 +1,2 @@
1
+ import { ContainerModule } from '../../../common/inversify';
2
+ export declare const arcModule: ContainerModule;
@@ -0,0 +1,21 @@
1
+ import { bindContributionProvider } from "../../../common/contribution-provider";
2
+
3
+ import { ContainerModule } from "../../../common/inversify";
4
+
5
+ import { DefaultCanvasArcRender } from "./arc-render";
6
+
7
+ import { DefaultBaseInteractiveRenderContribution } from "./contributions";
8
+
9
+ import { ArcRenderContribution } from "./contributions/constants";
10
+
11
+ import { ArcRender, GraphicRender } from "./symbol";
12
+
13
+ let loadArcModule = !1;
14
+
15
+ export const arcModule = new ContainerModule((bind => {
16
+ loadArcModule || (loadArcModule = !0, bind(DefaultCanvasArcRender).toSelf().inSingletonScope(),
17
+ bind(ArcRender).to(DefaultCanvasArcRender).inSingletonScope(), bind(GraphicRender).toService(ArcRender),
18
+ bind(ArcRenderContribution).toService(DefaultBaseInteractiveRenderContribution),
19
+ bindContributionProvider(bind, ArcRenderContribution));
20
+ }));
21
+ //# sourceMappingURL=arc-module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/render/contributions/render/arc-module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AACjF,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,EAAE,wCAAwC,EAAE,MAAM,iBAAiB,CAAC;AAC3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEpD,IAAI,aAAa,GAAG,KAAK,CAAC;AAC1B,MAAM,CAAC,MAAM,SAAS,GAAG,IAAI,eAAe,CAAC,IAAI,CAAC,EAAE;IAClD,IAAI,aAAa,EAAE;QACjB,OAAO;KACR;IACD,aAAa,GAAG,IAAI,CAAC;IAErB,IAAI,CAAC,sBAAsB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IACzD,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,sBAAsB,CAAC,CAAC,gBAAgB,EAAE,CAAC;IAC9D,IAAI,CAAC,aAAa,CAAC,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;IACzC,IAAI,CAAC,qBAAqB,CAAC,CAAC,SAAS,CAAC,wCAAwC,CAAC,CAAC;IAEhF,wBAAwB,CAAC,IAAI,EAAE,qBAAqB,CAAC,CAAC;AACxD,CAAC,CAAC,CAAC","file":"arc-module.js","sourcesContent":["import { bindContributionProvider } from '../../../common/contribution-provider';\nimport { ContainerModule } from '../../../common/inversify';\nimport { DefaultCanvasArcRender } from './arc-render';\nimport { DefaultBaseInteractiveRenderContribution } from './contributions';\nimport { ArcRenderContribution } from './contributions/constants';\nimport { ArcRender, GraphicRender } from './symbol';\n\nlet loadArcModule = false;\nexport const arcModule = new ContainerModule(bind => {\n if (loadArcModule) {\n return;\n }\n loadArcModule = true;\n // arc 渲染器\n bind(DefaultCanvasArcRender).toSelf().inSingletonScope();\n bind(ArcRender).to(DefaultCanvasArcRender).inSingletonScope();\n bind(GraphicRender).toService(ArcRender);\n bind(ArcRenderContribution).toService(DefaultBaseInteractiveRenderContribution);\n // arc 渲染器注入contributions\n bindContributionProvider(bind, ArcRenderContribution);\n});\n"]}
@@ -0,0 +1,2 @@
1
+ import { ContainerModule } from '../../../common/inversify';
2
+ export declare const arc3dModule: ContainerModule;
@@ -0,0 +1,13 @@
1
+ import { ContainerModule } from "../../../common/inversify";
2
+
3
+ import { DefaultCanvasArc3DRender } from "./arc3d-render";
4
+
5
+ import { Arc3dRender, GraphicRender } from "./symbol";
6
+
7
+ let loadArc3dModule = !1;
8
+
9
+ export const arc3dModule = new ContainerModule((bind => {
10
+ loadArc3dModule || (loadArc3dModule = !0, bind(Arc3dRender).to(DefaultCanvasArc3DRender).inSingletonScope(),
11
+ bind(GraphicRender).toService(Arc3dRender));
12
+ }));
13
+ //# sourceMappingURL=arc3d-module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/render/contributions/render/arc3d-module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAE5D,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAG1D,OAAO,EAAE,WAAW,EAAa,aAAa,EAAE,MAAM,UAAU,CAAC;AAEjE,IAAI,eAAe,GAAG,KAAK,CAAC;AAC5B,MAAM,CAAC,MAAM,WAAW,GAAG,IAAI,eAAe,CAAC,IAAI,CAAC,EAAE;IACpD,IAAI,eAAe,EAAE;QACnB,OAAO;KACR;IACD,eAAe,GAAG,IAAI,CAAC;IAEvB,IAAI,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,wBAAwB,CAAC,CAAC,gBAAgB,EAAE,CAAC;IAClE,IAAI,CAAC,aAAa,CAAC,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;AAC7C,CAAC,CAAC,CAAC","file":"arc3d-module.js","sourcesContent":["import { ContainerModule } from '../../../common/inversify';\nimport { DefaultCanvasArcRender } from './arc-render';\nimport { DefaultCanvasArc3DRender } from './arc3d-render';\nimport { DefaultBaseInteractiveRenderContribution } from './contributions';\nimport { ArcRenderContribution } from './contributions/constants';\nimport { Arc3dRender, ArcRender, GraphicRender } from './symbol';\n\nlet loadArc3dModule = false;\nexport const arc3dModule = new ContainerModule(bind => {\n if (loadArc3dModule) {\n return;\n }\n loadArc3dModule = true;\n // arc3d 渲染器\n bind(Arc3dRender).to(DefaultCanvasArc3DRender).inSingletonScope();\n bind(GraphicRender).toService(Arc3dRender);\n});\n"]}
@@ -0,0 +1,2 @@
1
+ import { ContainerModule } from '../../../common/inversify';
2
+ export declare const areaModule: ContainerModule;
@@ -0,0 +1,23 @@
1
+ import { bindContributionProvider } from "../../../common/contribution-provider";
2
+
3
+ import { ContainerModule } from "../../../common/inversify";
4
+
5
+ import { DefaultCanvasAreaRender } from "./area-render";
6
+
7
+ import { DefaultBaseInteractiveRenderContribution } from "./contributions";
8
+
9
+ import { AreaRenderContribution } from "./contributions/constants";
10
+
11
+ import { DefaultIncrementalCanvasAreaRender } from "./incremental-area-render";
12
+
13
+ import { AreaRender, GraphicRender } from "./symbol";
14
+
15
+ let loadAreaModule = !1;
16
+
17
+ export const areaModule = new ContainerModule((bind => {
18
+ loadAreaModule || (loadAreaModule = !0, bind(DefaultCanvasAreaRender).toSelf().inSingletonScope(),
19
+ bind(AreaRender).to(DefaultCanvasAreaRender).inSingletonScope(), bind(GraphicRender).toService(AreaRender),
20
+ bind(AreaRenderContribution).toService(DefaultBaseInteractiveRenderContribution),
21
+ bindContributionProvider(bind, AreaRenderContribution), bind(DefaultIncrementalCanvasAreaRender).toSelf().inSingletonScope());
22
+ }));
23
+ //# sourceMappingURL=area-module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/render/contributions/render/area-module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AACjF,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,EAAE,wCAAwC,EAAE,MAAM,iBAAiB,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,kCAAkC,EAAE,MAAM,2BAA2B,CAAC;AAC/E,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAErD,IAAI,cAAc,GAAG,KAAK,CAAC;AAC3B,MAAM,CAAC,MAAM,UAAU,GAAG,IAAI,eAAe,CAAC,IAAI,CAAC,EAAE;IACnD,IAAI,cAAc,EAAE;QAClB,OAAO;KACR;IACD,cAAc,GAAG,IAAI,CAAC;IAEtB,IAAI,CAAC,uBAAuB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAC1D,IAAI,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC,uBAAuB,CAAC,CAAC,gBAAgB,EAAE,CAAC;IAChE,IAAI,CAAC,aAAa,CAAC,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IAC1C,IAAI,CAAC,sBAAsB,CAAC,CAAC,SAAS,CAAC,wCAAwC,CAAC,CAAC;IAGjF,wBAAwB,CAAC,IAAI,EAAE,sBAAsB,CAAC,CAAC;IAGvD,IAAI,CAAC,kCAAkC,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;AACvE,CAAC,CAAC,CAAC","file":"area-module.js","sourcesContent":["import { bindContributionProvider } from '../../../common/contribution-provider';\nimport { ContainerModule } from '../../../common/inversify';\nimport { DefaultCanvasAreaRender } from './area-render';\nimport { DefaultBaseInteractiveRenderContribution } from './contributions';\nimport { AreaRenderContribution } from './contributions/constants';\nimport { DefaultIncrementalCanvasAreaRender } from './incremental-area-render';\nimport { AreaRender, GraphicRender } from './symbol';\n\nlet loadAreaModule = false;\nexport const areaModule = new ContainerModule(bind => {\n if (loadAreaModule) {\n return;\n }\n loadAreaModule = true;\n // area渲染器\n bind(DefaultCanvasAreaRender).toSelf().inSingletonScope();\n bind(AreaRender).to(DefaultCanvasAreaRender).inSingletonScope();\n bind(GraphicRender).toService(AreaRender);\n bind(AreaRenderContribution).toService(DefaultBaseInteractiveRenderContribution);\n\n // area 渲染器注入contributions\n bindContributionProvider(bind, AreaRenderContribution);\n\n // incremental-line渲染器\n bind(DefaultIncrementalCanvasAreaRender).toSelf().inSingletonScope();\n});\n"]}
@@ -0,0 +1,2 @@
1
+ import { ContainerModule } from '../../../common/inversify';
2
+ export declare const circleModule: ContainerModule;
@@ -0,0 +1,21 @@
1
+ import { bindContributionProvider } from "../../../common/contribution-provider";
2
+
3
+ import { ContainerModule } from "../../../common/inversify";
4
+
5
+ import { DefaultCanvasCircleRender } from "./circle-render";
6
+
7
+ import { DefaultBaseInteractiveRenderContribution } from "./contributions";
8
+
9
+ import { CircleRenderContribution } from "./contributions/constants";
10
+
11
+ import { CircleRender, GraphicRender } from "./symbol";
12
+
13
+ let loadCircleModule = !1;
14
+
15
+ export const circleModule = new ContainerModule((bind => {
16
+ loadCircleModule || (loadCircleModule = !0, bind(DefaultCanvasCircleRender).toSelf().inSingletonScope(),
17
+ bind(CircleRender).to(DefaultCanvasCircleRender).inSingletonScope(), bind(GraphicRender).toService(CircleRender),
18
+ bind(CircleRenderContribution).toService(DefaultBaseInteractiveRenderContribution),
19
+ bindContributionProvider(bind, CircleRenderContribution));
20
+ }));
21
+ //# sourceMappingURL=circle-module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/render/contributions/render/circle-module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AACjF,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAC;AAC5D,OAAO,EAAE,wCAAwC,EAAE,MAAM,iBAAiB,CAAC;AAC3E,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEvD,IAAI,gBAAgB,GAAG,KAAK,CAAC;AAC7B,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,eAAe,CAAC,IAAI,CAAC,EAAE;IACrD,IAAI,gBAAgB,EAAE;QACpB,OAAO;KACR;IACD,gBAAgB,GAAG,IAAI,CAAC;IAExB,IAAI,CAAC,yBAAyB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAC5D,IAAI,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC,yBAAyB,CAAC,CAAC,gBAAgB,EAAE,CAAC;IACpE,IAAI,CAAC,aAAa,CAAC,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC;IAC5C,IAAI,CAAC,wBAAwB,CAAC,CAAC,SAAS,CAAC,wCAAwC,CAAC,CAAC;IAGnF,wBAAwB,CAAC,IAAI,EAAE,wBAAwB,CAAC,CAAC;AAC3D,CAAC,CAAC,CAAC","file":"circle-module.js","sourcesContent":["import { bindContributionProvider } from '../../../common/contribution-provider';\nimport { ContainerModule } from '../../../common/inversify';\nimport { DefaultCanvasCircleRender } from './circle-render';\nimport { DefaultBaseInteractiveRenderContribution } from './contributions';\nimport { CircleRenderContribution } from './contributions/constants';\nimport { CircleRender, GraphicRender } from './symbol';\n\nlet loadCircleModule = false;\nexport const circleModule = new ContainerModule(bind => {\n if (loadCircleModule) {\n return;\n }\n loadCircleModule = true;\n // circle 渲染器\n bind(DefaultCanvasCircleRender).toSelf().inSingletonScope();\n bind(CircleRender).to(DefaultCanvasCircleRender).inSingletonScope();\n bind(GraphicRender).toService(CircleRender);\n bind(CircleRenderContribution).toService(DefaultBaseInteractiveRenderContribution);\n\n // circle 渲染器注入contributions\n bindContributionProvider(bind, CircleRenderContribution);\n});\n"]}
@@ -8,8 +8,6 @@ export declare class ShadowRootDrawItemInterceptorContribution implements IDrawI
8
8
  }
9
9
  export declare class DebugDrawItemInterceptorContribution implements IDrawItemInterceptorContribution {
10
10
  order: number;
11
- interceptors: IDrawItemInterceptorContribution[];
12
- constructor();
13
11
  afterDrawItem(graphic: IGraphic, renderService: IRenderService, drawContext: IDrawContext, drawContribution: IDrawContribution, params?: IGraphicRenderDrawParams): boolean;
14
12
  protected drawItem(graphic: IGraphic, renderService: IRenderService, drawContext: IDrawContext, drawContribution: IDrawContribution, params?: IGraphicRenderDrawParams): boolean;
15
13
  }
@@ -10,7 +10,7 @@ import { injectable } from "../../../common/inversify-lite";
10
10
 
11
11
  import { AABBBounds, pi2 } from "@visactor/vutils";
12
12
 
13
- import { createGroup, mat3Tomat4, multiplyMat4Mat4 } from "../../../graphic";
13
+ import { graphicCreator, mat3Tomat4, multiplyMat4Mat4 } from "../../../graphic";
14
14
 
15
15
  import { mat4Allocate } from "../../../allocator/matrix-allocate";
16
16
 
@@ -49,7 +49,7 @@ export class ShadowRootDrawItemInterceptorContribution {
49
49
 
50
50
  export class DebugDrawItemInterceptorContribution {
51
51
  constructor() {
52
- this.order = 1, this.interceptors = [ new ShadowRootDrawItemInterceptorContribution, new Canvas3DDrawItemInterceptor, new InteractiveDrawItemInterceptorContribution ];
52
+ this.order = 1;
53
53
  }
54
54
  afterDrawItem(graphic, renderService, drawContext, drawContribution, params) {
55
55
  return graphic.attribute._debug_bounds && this.drawItem(graphic, renderService, drawContext, drawContribution, params),
@@ -133,8 +133,8 @@ export class InteractiveDrawItemInterceptorContribution {
133
133
  getShadowRoot(interactiveLayer) {
134
134
  var _a;
135
135
  let group = interactiveLayer.getElementById("_interactive_group");
136
- return group || (group = createGroup({}), group.id = "_interactive_group", interactiveLayer.add(group)),
137
- null !== (_a = group.shadowRoot) && void 0 !== _a ? _a : group.attachShadow();
136
+ return group || (group = graphicCreator.CreateGraphic("group", {}), group.id = "_interactive_group",
137
+ interactiveLayer.add(group)), null !== (_a = group.shadowRoot) && void 0 !== _a ? _a : group.attachShadow();
138
138
  }
139
139
  }
140
140