@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 {};
@@ -4,21 +4,19 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: !0
5
5
  }), exports.getRichTextBounds = exports.getTextBounds = void 0;
6
6
 
7
- const graphic_creator_1 = require("./graphic-creator"), text = (0, graphic_creator_1.createText)({
8
- text: ""
9
- });
7
+ const graphic_creator_1 = require("./graphic-creator");
8
+
9
+ let text, richText;
10
10
 
11
11
  function getTextBounds(params) {
12
- return text.setAttributes(params), text.AABBBounds;
12
+ return text || (text = graphic_creator_1.graphicCreator.CreateGraphic("text", {})),
13
+ text.setAttributes(params), text.AABBBounds;
13
14
  }
14
15
 
15
- exports.getTextBounds = getTextBounds;
16
-
17
- const richText = (0, graphic_creator_1.createRichText)({});
18
-
19
16
  function getRichTextBounds(params) {
20
- return richText.setAttributes(params), richText.AABBBounds;
17
+ return richText || (richText = graphic_creator_1.graphicCreator.CreateGraphic("text", {})),
18
+ richText.setAttributes(params), richText.AABBBounds;
21
19
  }
22
20
 
23
- exports.getRichTextBounds = getRichTextBounds;
21
+ exports.getTextBounds = getTextBounds, exports.getRichTextBounds = getRichTextBounds;
24
22
  //# sourceMappingURL=bounds.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/graphic/bounds.ts"],"names":[],"mappings":";;;AACA,uDAA+D;AAG/D,MAAM,IAAI,GAAG,IAAA,4BAAU,EAAC;IACtB,IAAI,EAAE,EAAE;CACT,CAAC,CAAC;AACH,SAAgB,aAAa,CAAC,MAAyB;IACrD,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;IAC3B,OAAO,IAAI,CAAC,UAAU,CAAC;AACzB,CAAC;AAHD,sCAGC;AAGD,MAAM,QAAQ,GAAG,IAAA,gCAAc,EAAC,EAAE,CAAC,CAAC;AACpC,SAAgB,iBAAiB,CAAC,MAA6B;IAC7D,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;IAC/B,OAAO,QAAQ,CAAC,UAAU,CAAC;AAC7B,CAAC;AAHD,8CAGC","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,uDAAmD;AAInD,IAAI,IAAS,CAAC;AACd,SAAgB,aAAa,CAAC,MAAyB;IACrD,IAAI,CAAC,IAAI,EAAE;QACT,IAAI,GAAG,gCAAc,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;AAND,sCAMC;AAGD,IAAI,QAAa,CAAC;AAClB,SAAgB,iBAAiB,CAAC,MAA6B;IAC7D,IAAI,CAAC,QAAQ,EAAE;QACb,QAAQ,GAAG,gCAAc,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;AAND,8CAMC","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 {};
@@ -2,103 +2,20 @@
2
2
 
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: !0
5
- }), exports.graphicCreator = exports.createRichText = exports.createShadowRoot = exports.createPolygon = exports.createImage = exports.createSymbol = exports.createWrapText = exports.createText = exports.createGlyph = exports.createRect3d = exports.createRect = exports.createPath = exports.createLine = exports.createGroup = exports.createCircle = exports.createArea = exports.createPyramid3d = exports.createArc3d = exports.createArc = void 0;
6
-
7
- const arc_1 = require("./arc"), area_1 = require("./area"), circle_1 = require("./circle"), group_1 = require("./group"), image_1 = require("./image"), line_1 = require("./line"), path_1 = require("./path"), polygon_1 = require("./polygon"), rect_1 = require("./rect"), symbol_1 = require("./symbol"), shadow_root_1 = require("./shadow-root"), text_1 = require("./text"), richtext_1 = require("./richtext"), glyph_1 = require("./glyph"), rect3d_1 = require("./rect3d"), arc3d_1 = require("./arc3d"), pyramid3d_1 = require("./pyramid3d"), wrap_text_1 = require("./wrap-text");
8
-
9
- function createArc(attributes) {
10
- return new arc_1.Arc(attributes);
11
- }
12
-
13
- function createArc3d(attributes) {
14
- return new arc3d_1.Arc3d(attributes);
15
- }
16
-
17
- function createPyramid3d(attributes) {
18
- return new pyramid3d_1.Pyramid3d(attributes);
19
- }
20
-
21
- function createArea(attributes) {
22
- return new area_1.Area(attributes);
23
- }
24
-
25
- function createCircle(attributes) {
26
- return new circle_1.Circle(attributes);
27
- }
28
-
29
- function createGroup(attributes) {
30
- return new group_1.Group(attributes);
31
- }
32
-
33
- function createLine(attributes) {
34
- return new line_1.Line(attributes);
35
- }
36
-
37
- function createPath(attributes) {
38
- return new path_1.Path(attributes);
39
- }
40
-
41
- function createRect(attributes) {
42
- return new rect_1.Rect(attributes);
43
- }
44
-
45
- function createRect3d(attributes) {
46
- return new rect3d_1.Rect3d(attributes);
47
- }
48
-
49
- function createGlyph(attributes) {
50
- return new glyph_1.Glyph(attributes);
51
- }
52
-
53
- function createText(attributes) {
54
- return new text_1.Text(attributes);
55
- }
56
-
57
- function createWrapText(attributes) {
58
- return new wrap_text_1.WrapText(attributes);
59
- }
60
-
61
- function createSymbol(attributes) {
62
- return new symbol_1.Symbol(attributes);
63
- }
64
-
65
- function createImage(attributes) {
66
- return new image_1.Image(attributes);
67
- }
68
-
69
- function createPolygon(attributes) {
70
- return new polygon_1.Polygon(attributes);
71
- }
72
-
73
- function createShadowRoot(graphic) {
74
- return new shadow_root_1.ShadowRoot(graphic);
75
- }
76
-
77
- function createRichText(attributes) {
78
- return new richtext_1.RichText(attributes);
79
- }
80
-
81
- exports.createArc = createArc, exports.createArc3d = createArc3d, exports.createPyramid3d = createPyramid3d,
82
- exports.createArea = createArea, exports.createCircle = createCircle, exports.createGroup = createGroup,
83
- exports.createLine = createLine, exports.createPath = createPath, exports.createRect = createRect,
84
- exports.createRect3d = createRect3d, exports.createGlyph = createGlyph, exports.createText = createText,
85
- exports.createWrapText = createWrapText, exports.createSymbol = createSymbol, exports.createImage = createImage,
86
- exports.createPolygon = createPolygon, exports.createShadowRoot = createShadowRoot,
87
- exports.createRichText = createRichText, exports.graphicCreator = {
88
- arc: createArc,
89
- area: createArea,
90
- circle: createCircle,
91
- group: createGroup,
92
- image: createImage,
93
- line: createLine,
94
- path: createPath,
95
- rect: createRect,
96
- rect3d: createRect3d,
97
- symbol: createSymbol,
98
- text: createText,
99
- richtext: createRichText,
100
- polygon: createPolygon,
101
- shadowRoot: createShadowRoot,
102
- wrapText: createWrapText
103
- };
5
+ }), exports.graphicCreator = void 0;
6
+
7
+ class GraphicCreator {
8
+ constructor() {
9
+ this.store = new Map;
10
+ }
11
+ RegisterGraphicCreator(name, cb) {
12
+ this.store.set(name, cb), this[name] = cb;
13
+ }
14
+ CreateGraphic(name, params) {
15
+ const cb = this.store.get(name);
16
+ return cb ? cb(params) : null;
17
+ }
18
+ }
19
+
20
+ exports.graphicCreator = new GraphicCreator;
104
21
  //# sourceMappingURL=graphic-creator.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/graphic/graphic-creator.ts"],"names":[],"mappings":";;;AAoCA,+BAA4B;AAC5B,iCAA8B;AAC9B,qCAAkC;AAClC,mCAAgC;AAChC,mCAAgC;AAChC,iCAA8B;AAC9B,iCAA8B;AAC9B,uCAAoC;AACpC,iCAA8B;AAE9B,qCAAgD;AAChD,+CAA6D;AAC7D,iCAA8B;AAC9B,yCAAsC;AACtC,mCAAgC;AAChC,qCAAkC;AAClC,mCAAgC;AAChC,2CAAwC;AACxC,2CAAuC;AAEvC,SAAgB,SAAS,CAAC,UAAgC;IACxD,OAAO,IAAI,SAAG,CAAC,UAAU,CAAC,CAAC;AAC7B,CAAC;AAFD,8BAEC;AACD,SAAgB,WAAW,CAAC,UAAkC;IAC5D,OAAO,IAAI,aAAK,CAAC,UAAU,CAAC,CAAC;AAC/B,CAAC;AAFD,kCAEC;AACD,SAAgB,eAAe,CAAC,UAAsC;IACpE,OAAO,IAAI,qBAAS,CAAC,UAAU,CAAC,CAAC;AACnC,CAAC;AAFD,0CAEC;AACD,SAAgB,UAAU,CAAC,UAAiC;IAC1D,OAAO,IAAI,WAAI,CAAC,UAAU,CAAC,CAAC;AAC9B,CAAC;AAFD,gCAEC;AACD,SAAgB,YAAY,CAAC,UAAmC;IAC9D,OAAO,IAAI,eAAM,CAAC,UAAU,CAAC,CAAC;AAChC,CAAC;AAFD,oCAEC;AACD,SAAgB,WAAW,CAAC,UAAkC;IAC5D,OAAO,IAAI,aAAK,CAAC,UAAU,CAAC,CAAC;AAC/B,CAAC;AAFD,kCAEC;AACD,SAAgB,UAAU,CAAC,UAAiC;IAC1D,OAAO,IAAI,WAAI,CAAC,UAAU,CAAC,CAAC;AAC9B,CAAC;AAFD,gCAEC;AACD,SAAgB,UAAU,CAAC,UAAiC;IAC1D,OAAO,IAAI,WAAI,CAAC,UAAU,CAAC,CAAC;AAC9B,CAAC;AAFD,gCAEC;AACD,SAAgB,UAAU,CAAC,UAAiC;IAC1D,OAAO,IAAI,WAAI,CAAC,UAAU,CAAC,CAAC;AAC9B,CAAC;AAFD,gCAEC;AACD,SAAgB,YAAY,CAAC,UAAmC;IAC9D,OAAO,IAAI,eAAM,CAAC,UAAU,CAAC,CAAC;AAChC,CAAC;AAFD,oCAEC;AACD,SAAgB,WAAW,CAAC,UAAkC;IAC5D,OAAO,IAAI,aAAK,CAAC,UAAU,CAAC,CAAC;AAC/B,CAAC;AAFD,kCAEC;AACD,SAAgB,UAAU,CAAC,UAAiC;IAC1D,OAAO,IAAI,WAAI,CAAC,UAAU,CAAC,CAAC;AAC9B,CAAC;AAFD,gCAEC;AACD,SAAgB,cAAc,CAAC,UAAqC;IAClE,OAAO,IAAI,oBAAQ,CAAC,UAAU,CAAC,CAAC;AAClC,CAAC;AAFD,wCAEC;AACD,SAAgB,YAAY,CAAC,UAAmC;IAC9D,OAAO,IAAI,eAAU,CAAC,UAAU,CAAC,CAAC;AACpC,CAAC;AAFD,oCAEC;AACD,SAAgB,WAAW,CAAC,UAAkC;IAC5D,OAAO,IAAI,aAAK,CAAC,UAAU,CAAC,CAAC;AAC/B,CAAC;AAFD,kCAEC;AACD,SAAgB,aAAa,CAAC,UAAoC;IAChE,OAAO,IAAI,iBAAO,CAAC,UAAU,CAAC,CAAC;AACjC,CAAC;AAFD,sCAEC;AACD,SAAgB,gBAAgB,CAAC,OAAkB;IACjD,OAAO,IAAI,wBAAc,CAAC,OAAO,CAAC,CAAC;AACrC,CAAC;AAFD,4CAEC;AACD,SAAgB,cAAc,CAAC,UAAqC;IAClE,OAAO,IAAI,mBAAQ,CAAC,UAAU,CAAC,CAAC;AAClC,CAAC;AAFD,wCAEC;AAEY,QAAA,cAAc,GAAG;IAC5B,GAAG,EAAE,SAAS;IACd,IAAI,EAAE,UAAU;IAChB,MAAM,EAAE,YAAY;IACpB,KAAK,EAAE,WAAW;IAClB,KAAK,EAAE,WAAW;IAClB,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,UAAU;IAChB,MAAM,EAAE,YAAY;IACpB,MAAM,EAAE,YAAY;IACpB,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE,cAAc;IACxB,OAAO,EAAE,aAAa;IACtB,UAAU,EAAE,gBAAgB;IAC5B,QAAQ,EAAE,cAAc;CACzB,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';\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;AAEY,QAAA,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';
@@ -26,9 +26,10 @@ __exportStar(require("./richtext"), exports), __exportStar(require("./path"), ex
26
26
  __exportStar(require("./area"), exports), __exportStar(require("./image"), exports),
27
27
  __exportStar(require("./arc"), exports), __exportStar(require("./arc3d"), exports),
28
28
  __exportStar(require("./group"), exports), __exportStar(require("./polygon"), exports),
29
- __exportStar(require("./pyramid3d"), exports), __exportStar(require("./config"), exports),
30
- __exportStar(require("./graphic-service/graphic-service"), exports), __exportStar(require("./graphic-creator"), exports),
31
- __exportStar(require("./builtin-symbol"), exports), __exportStar(require("./graphic"), exports),
32
- __exportStar(require("./bounds"), exports), __exportStar(require("./theme"), exports),
33
- __exportStar(require("./tools"), exports), __exportStar(require("./constants"), exports);
29
+ __exportStar(require("./pyramid3d"), exports), __exportStar(require("./shadow-root"), exports),
30
+ __exportStar(require("./config"), exports), __exportStar(require("./graphic-service/graphic-service"), exports),
31
+ __exportStar(require("./graphic-creator"), exports), __exportStar(require("./builtin-symbol"), exports),
32
+ __exportStar(require("./graphic"), exports), __exportStar(require("./bounds"), exports),
33
+ __exportStar(require("./theme"), exports), __exportStar(require("./tools"), exports),
34
+ __exportStar(require("./constants"), exports);
34
35
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/graphic/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAgBA,8CAA4B;AAC5B,2CAAyB;AACzB,yCAAuB;AACvB,8CAA4B;AAC5B,2CAAyB;AACzB,mDAAiC;AACjC,yCAAuB;AACvB,yCAAuB;AACvB,2CAAyB;AACzB,0CAAwB;AACxB,6CAA2B;AAC3B,yCAAuB;AACvB,yCAAuB;AACvB,0CAAwB;AACxB,wCAAsB;AACtB,0CAAwB;AACxB,0CAAwB;AACxB,4CAA0B;AAC1B,8CAA4B;AAC5B,2CAAyB;AACzB,oEAAkD;AAClD,oDAAkC;AAClC,mDAAiC;AACjC,4CAA0B;AAC1B,2CAAyB;AACzB,0CAAwB;AACxB,0CAAwB;AACxB,8CAA4B","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,8CAA4B;AAC5B,2CAAyB;AACzB,yCAAuB;AACvB,8CAA4B;AAC5B,2CAAyB;AACzB,mDAAiC;AACjC,yCAAuB;AACvB,yCAAuB;AACvB,2CAAyB;AACzB,0CAAwB;AACxB,6CAA2B;AAC3B,yCAAuB;AACvB,yCAAuB;AACvB,0CAAwB;AACxB,wCAAsB;AACtB,0CAAwB;AACxB,0CAAwB;AACxB,4CAA0B;AAC1B,8CAA4B;AAC5B,gDAA8B;AAC9B,2CAAyB;AACzB,oEAAkD;AAClD,oDAAkC;AAClC,mDAAiC;AACjC,4CAA0B;AAC1B,2CAAyB;AACzB,0CAAwB;AACxB,0CAAwB;AACxB,8CAA4B","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/cjs/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/cjs/index.js CHANGED
@@ -54,5 +54,12 @@ Object.defineProperty(exports, "wrapCanvas", {
54
54
  }
55
55
  }), __exportStar(require("./common/xml"), exports), __exportStar(require("./common/inversify-lite"), exports),
56
56
  __exportStar(require("./constants"), exports), __exportStar(require("./application"), exports),
57
- __exportStar(require("./env-check"), exports);
57
+ __exportStar(require("./env-check"), exports), __exportStar(require("./render/contributions/render/arc-module"), exports),
58
+ __exportStar(require("./render/contributions/render/rect-module"), exports), __exportStar(require("./render/contributions/render/line-module"), exports),
59
+ __exportStar(require("./render/contributions/render/area-module"), exports), __exportStar(require("./render/contributions/render/symbol-module"), exports),
60
+ __exportStar(require("./render/contributions/render/circle-module"), exports), __exportStar(require("./render/contributions/render/text-module"), exports),
61
+ __exportStar(require("./render/contributions/render/path-module"), exports), __exportStar(require("./render/contributions/render/polygon-module"), exports),
62
+ __exportStar(require("./render/contributions/render/glyph-module"), exports), __exportStar(require("./render/contributions/render/richtext-module"), exports),
63
+ __exportStar(require("./render/contributions/render/image-module"), exports), __exportStar(require("./render/contributions/render/rect3d-module"), exports),
64
+ __exportStar(require("./render/contributions/render/arc3d-module"), exports), __exportStar(require("./render/contributions/render/pyramid3d-module"), exports);
58
65
  //# sourceMappingURL=index.js.map
package/cjs/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACA,qBAAmB;AAEnB,8CAA4B;AAC5B,gDAA8B;AAC9B,4CAA0B;AAC1B,4CAA0B;AAC1B,2CAAyB;AACzB,0CAAwB;AACxB,8CAA4B;AAC5B,2CAAyB;AACzB,4EAA0D;AAC1D,2CAAyB;AACzB,yCAAuB;AACvB,2CAAyB;AACzB,4CAA0B;AAC1B,2DAAyC;AACzC,iDAA+B;AAG/B,gDAA8B;AAC9B,wDAAsC;AACtC,0DAAwC;AACxC,uDAAqC;AACrC,yDAAuC;AACvC,mDAAiC;AACjC,wDAAsC;AACtC,iEAA+C;AAC/C,qDAAmC;AACnC,iDAA+B;AAC/B,qDAAmC;AACnC,sDAAoC;AACpC,kDAAgC;AAEhC,oDAAkC;AAClC,wDAAsC;AACtC,uDAAqC;AACrC,+DAA6C;AAC7C,gDAA8B;AAC9B,0DAAwC;AACxC,sDAAoC;AACpC,iDAA+B;AAC/B,qDAAmC;AACnC,sDAAoC;AACpC,8DAA4C;AAC5C,8DAA4C;AAC5C,+DAA6C;AAE7C,2DAAyC;AACzC,sCAAwD;AAA/C,kGAAA,UAAU,OAAA;AAAE,mGAAA,WAAW,OAAA;AAChC,+CAA6B;AAC7B,0DAAwC;AACxC,8CAA4B;AAC5B,gDAA8B;AAC9B,8CAA4B","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,qBAAmB;AAEnB,8CAA4B;AAC5B,gDAA8B;AAC9B,4CAA0B;AAC1B,4CAA0B;AAC1B,2CAAyB;AACzB,0CAAwB;AACxB,8CAA4B;AAC5B,2CAAyB;AACzB,4EAA0D;AAC1D,2CAAyB;AACzB,yCAAuB;AACvB,2CAAyB;AACzB,4CAA0B;AAC1B,2DAAyC;AACzC,iDAA+B;AAG/B,gDAA8B;AAC9B,wDAAsC;AACtC,0DAAwC;AACxC,uDAAqC;AACrC,yDAAuC;AACvC,mDAAiC;AACjC,wDAAsC;AACtC,iEAA+C;AAC/C,qDAAmC;AACnC,iDAA+B;AAC/B,qDAAmC;AACnC,sDAAoC;AACpC,kDAAgC;AAEhC,oDAAkC;AAClC,wDAAsC;AACtC,uDAAqC;AACrC,+DAA6C;AAC7C,gDAA8B;AAC9B,0DAAwC;AACxC,sDAAoC;AACpC,iDAA+B;AAC/B,qDAAmC;AACnC,sDAAoC;AACpC,8DAA4C;AAC5C,8DAA4C;AAC5C,+DAA6C;AAE7C,2DAAyC;AACzC,sCAAwD;AAA/C,kGAAA,UAAU,OAAA;AAAE,mGAAA,WAAW,OAAA;AAChC,+CAA6B;AAC7B,0DAAwC;AACxC,8CAA4B;AAC5B,gDAA8B;AAC9B,8CAA4B;AAE5B,2EAAyD;AACzD,4EAA0D;AAC1D,4EAA0D;AAC1D,4EAA0D;AAC1D,8EAA4D;AAC5D,8EAA4D;AAC5D,4EAA0D;AAC1D,4EAA0D;AAC1D,+EAA6D;AAC7D,6EAA2D;AAC3D,gFAA8D;AAC9D,6EAA2D;AAC3D,8EAA4D;AAC5D,6EAA2D;AAC3D,iFAA+D","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,17 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: !0
5
+ }), exports.arcModule = void 0;
6
+
7
+ const contribution_provider_1 = require("../../../common/contribution-provider"), inversify_1 = require("../../../common/inversify"), arc_render_1 = require("./arc-render"), contributions_1 = require("./contributions"), constants_1 = require("./contributions/constants"), symbol_1 = require("./symbol");
8
+
9
+ let loadArcModule = !1;
10
+
11
+ exports.arcModule = new inversify_1.ContainerModule((bind => {
12
+ loadArcModule || (loadArcModule = !0, bind(arc_render_1.DefaultCanvasArcRender).toSelf().inSingletonScope(),
13
+ bind(symbol_1.ArcRender).to(arc_render_1.DefaultCanvasArcRender).inSingletonScope(),
14
+ bind(symbol_1.GraphicRender).toService(symbol_1.ArcRender), bind(constants_1.ArcRenderContribution).toService(contributions_1.DefaultBaseInteractiveRenderContribution),
15
+ (0, contribution_provider_1.bindContributionProvider)(bind, constants_1.ArcRenderContribution));
16
+ }));
17
+ //# sourceMappingURL=arc-module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/render/contributions/render/arc-module.ts"],"names":[],"mappings":";;;AAAA,iFAAiF;AACjF,yDAA4D;AAC5D,6CAAsD;AACtD,mDAA2E;AAC3E,yDAAkE;AAClE,qCAAoD;AAEpD,IAAI,aAAa,GAAG,KAAK,CAAC;AACb,QAAA,SAAS,GAAG,IAAI,2BAAe,CAAC,IAAI,CAAC,EAAE;IAClD,IAAI,aAAa,EAAE;QACjB,OAAO;KACR;IACD,aAAa,GAAG,IAAI,CAAC;IAErB,IAAI,CAAC,mCAAsB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IACzD,IAAI,CAAC,kBAAS,CAAC,CAAC,EAAE,CAAC,mCAAsB,CAAC,CAAC,gBAAgB,EAAE,CAAC;IAC9D,IAAI,CAAC,sBAAa,CAAC,CAAC,SAAS,CAAC,kBAAS,CAAC,CAAC;IACzC,IAAI,CAAC,iCAAqB,CAAC,CAAC,SAAS,CAAC,wDAAwC,CAAC,CAAC;IAEhF,IAAA,gDAAwB,EAAC,IAAI,EAAE,iCAAqB,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,15 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: !0
5
+ }), exports.arc3dModule = void 0;
6
+
7
+ const inversify_1 = require("../../../common/inversify"), arc3d_render_1 = require("./arc3d-render"), symbol_1 = require("./symbol");
8
+
9
+ let loadArc3dModule = !1;
10
+
11
+ exports.arc3dModule = new inversify_1.ContainerModule((bind => {
12
+ loadArc3dModule || (loadArc3dModule = !0, bind(symbol_1.Arc3dRender).to(arc3d_render_1.DefaultCanvasArc3DRender).inSingletonScope(),
13
+ bind(symbol_1.GraphicRender).toService(symbol_1.Arc3dRender));
14
+ }));
15
+ //# sourceMappingURL=arc3d-module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/render/contributions/render/arc3d-module.ts"],"names":[],"mappings":";;;AAAA,yDAA4D;AAE5D,iDAA0D;AAG1D,qCAAiE;AAEjE,IAAI,eAAe,GAAG,KAAK,CAAC;AACf,QAAA,WAAW,GAAG,IAAI,2BAAe,CAAC,IAAI,CAAC,EAAE;IACpD,IAAI,eAAe,EAAE;QACnB,OAAO;KACR;IACD,eAAe,GAAG,IAAI,CAAC;IAEvB,IAAI,CAAC,oBAAW,CAAC,CAAC,EAAE,CAAC,uCAAwB,CAAC,CAAC,gBAAgB,EAAE,CAAC;IAClE,IAAI,CAAC,sBAAa,CAAC,CAAC,SAAS,CAAC,oBAAW,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,18 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: !0
5
+ }), exports.areaModule = void 0;
6
+
7
+ const contribution_provider_1 = require("../../../common/contribution-provider"), inversify_1 = require("../../../common/inversify"), area_render_1 = require("./area-render"), contributions_1 = require("./contributions"), constants_1 = require("./contributions/constants"), incremental_area_render_1 = require("./incremental-area-render"), symbol_1 = require("./symbol");
8
+
9
+ let loadAreaModule = !1;
10
+
11
+ exports.areaModule = new inversify_1.ContainerModule((bind => {
12
+ loadAreaModule || (loadAreaModule = !0, bind(area_render_1.DefaultCanvasAreaRender).toSelf().inSingletonScope(),
13
+ bind(symbol_1.AreaRender).to(area_render_1.DefaultCanvasAreaRender).inSingletonScope(),
14
+ bind(symbol_1.GraphicRender).toService(symbol_1.AreaRender), bind(constants_1.AreaRenderContribution).toService(contributions_1.DefaultBaseInteractiveRenderContribution),
15
+ (0, contribution_provider_1.bindContributionProvider)(bind, constants_1.AreaRenderContribution),
16
+ bind(incremental_area_render_1.DefaultIncrementalCanvasAreaRender).toSelf().inSingletonScope());
17
+ }));
18
+ //# sourceMappingURL=area-module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/render/contributions/render/area-module.ts"],"names":[],"mappings":";;;AAAA,iFAAiF;AACjF,yDAA4D;AAC5D,+CAAwD;AACxD,mDAA2E;AAC3E,yDAAmE;AACnE,uEAA+E;AAC/E,qCAAqD;AAErD,IAAI,cAAc,GAAG,KAAK,CAAC;AACd,QAAA,UAAU,GAAG,IAAI,2BAAe,CAAC,IAAI,CAAC,EAAE;IACnD,IAAI,cAAc,EAAE;QAClB,OAAO;KACR;IACD,cAAc,GAAG,IAAI,CAAC;IAEtB,IAAI,CAAC,qCAAuB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAC1D,IAAI,CAAC,mBAAU,CAAC,CAAC,EAAE,CAAC,qCAAuB,CAAC,CAAC,gBAAgB,EAAE,CAAC;IAChE,IAAI,CAAC,sBAAa,CAAC,CAAC,SAAS,CAAC,mBAAU,CAAC,CAAC;IAC1C,IAAI,CAAC,kCAAsB,CAAC,CAAC,SAAS,CAAC,wDAAwC,CAAC,CAAC;IAGjF,IAAA,gDAAwB,EAAC,IAAI,EAAE,kCAAsB,CAAC,CAAC;IAGvD,IAAI,CAAC,4DAAkC,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,17 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: !0
5
+ }), exports.circleModule = void 0;
6
+
7
+ const contribution_provider_1 = require("../../../common/contribution-provider"), inversify_1 = require("../../../common/inversify"), circle_render_1 = require("./circle-render"), contributions_1 = require("./contributions"), constants_1 = require("./contributions/constants"), symbol_1 = require("./symbol");
8
+
9
+ let loadCircleModule = !1;
10
+
11
+ exports.circleModule = new inversify_1.ContainerModule((bind => {
12
+ loadCircleModule || (loadCircleModule = !0, bind(circle_render_1.DefaultCanvasCircleRender).toSelf().inSingletonScope(),
13
+ bind(symbol_1.CircleRender).to(circle_render_1.DefaultCanvasCircleRender).inSingletonScope(),
14
+ bind(symbol_1.GraphicRender).toService(symbol_1.CircleRender), bind(constants_1.CircleRenderContribution).toService(contributions_1.DefaultBaseInteractiveRenderContribution),
15
+ (0, contribution_provider_1.bindContributionProvider)(bind, constants_1.CircleRenderContribution));
16
+ }));
17
+ //# sourceMappingURL=circle-module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/render/contributions/render/circle-module.ts"],"names":[],"mappings":";;;AAAA,iFAAiF;AACjF,yDAA4D;AAC5D,mDAA4D;AAC5D,mDAA2E;AAC3E,yDAAqE;AACrE,qCAAuD;AAEvD,IAAI,gBAAgB,GAAG,KAAK,CAAC;AAChB,QAAA,YAAY,GAAG,IAAI,2BAAe,CAAC,IAAI,CAAC,EAAE;IACrD,IAAI,gBAAgB,EAAE;QACpB,OAAO;KACR;IACD,gBAAgB,GAAG,IAAI,CAAC;IAExB,IAAI,CAAC,yCAAyB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAC5D,IAAI,CAAC,qBAAY,CAAC,CAAC,EAAE,CAAC,yCAAyB,CAAC,CAAC,gBAAgB,EAAE,CAAC;IACpE,IAAI,CAAC,sBAAa,CAAC,CAAC,SAAS,CAAC,qBAAY,CAAC,CAAC;IAC5C,IAAI,CAAC,oCAAwB,CAAC,CAAC,SAAS,CAAC,wDAAwC,CAAC,CAAC;IAGnF,IAAA,gDAAwB,EAAC,IAAI,EAAE,oCAAwB,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
  }
@@ -49,7 +49,7 @@ exports.ShadowRootDrawItemInterceptorContribution = ShadowRootDrawItemIntercepto
49
49
 
50
50
  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),
@@ -134,7 +134,7 @@ class InteractiveDrawItemInterceptorContribution {
134
134
  getShadowRoot(interactiveLayer) {
135
135
  var _a;
136
136
  let group = interactiveLayer.getElementById("_interactive_group");
137
- return group || (group = (0, graphic_1.createGroup)({}), group.id = "_interactive_group",
137
+ return group || (group = graphic_1.graphicCreator.CreateGraphic("group", {}), group.id = "_interactive_group",
138
138
  interactiveLayer.add(group)), null !== (_a = group.shadowRoot) && void 0 !== _a ? _a : group.attachShadow();
139
139
  }
140
140
  }