@visactor/vrender 0.17.1-alpha.1 → 0.17.1-alpha.3

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 (123) hide show
  1. package/cjs/core.d.ts +1 -0
  2. package/cjs/core.js +20 -0
  3. package/cjs/core.js.map +1 -0
  4. package/cjs/index.d.ts +2 -2
  5. package/cjs/index.js +11 -4
  6. package/cjs/index.js.map +1 -1
  7. package/cjs/isbrowser.d.ts +1 -0
  8. package/cjs/isbrowser.js +10 -0
  9. package/cjs/isbrowser.js.map +1 -0
  10. package/cjs/kits.d.ts +1 -0
  11. package/cjs/kits.js +21 -0
  12. package/cjs/kits.js.map +1 -0
  13. package/cjs/register-arc.d.ts +3 -0
  14. package/cjs/register-arc.js +19 -0
  15. package/cjs/register-arc.js.map +1 -0
  16. package/cjs/register-arc3d.d.ts +3 -0
  17. package/cjs/register-arc3d.js +19 -0
  18. package/cjs/register-arc3d.js.map +1 -0
  19. package/cjs/register-area.d.ts +3 -0
  20. package/cjs/register-area.js +19 -0
  21. package/cjs/register-area.js.map +1 -0
  22. package/cjs/register-circle.d.ts +3 -0
  23. package/cjs/register-circle.js +19 -0
  24. package/cjs/register-circle.js.map +1 -0
  25. package/cjs/register-glyph.d.ts +3 -0
  26. package/cjs/register-glyph.js +19 -0
  27. package/cjs/register-glyph.js.map +1 -0
  28. package/cjs/register-image.d.ts +3 -0
  29. package/cjs/register-image.js +19 -0
  30. package/cjs/register-image.js.map +1 -0
  31. package/cjs/register-line.d.ts +3 -0
  32. package/cjs/register-line.js +19 -0
  33. package/cjs/register-line.js.map +1 -0
  34. package/cjs/register-path.d.ts +3 -0
  35. package/cjs/register-path.js +19 -0
  36. package/cjs/register-path.js.map +1 -0
  37. package/cjs/register-polygon.d.ts +3 -0
  38. package/cjs/register-polygon.js +19 -0
  39. package/cjs/register-polygon.js.map +1 -0
  40. package/cjs/register-pyramid3d.d.ts +3 -0
  41. package/cjs/register-pyramid3d.js +19 -0
  42. package/cjs/register-pyramid3d.js.map +1 -0
  43. package/cjs/register-rect.d.ts +3 -0
  44. package/cjs/register-rect.js +19 -0
  45. package/cjs/register-rect.js.map +1 -0
  46. package/cjs/register-rect3d.d.ts +3 -0
  47. package/cjs/register-rect3d.js +19 -0
  48. package/cjs/register-rect3d.js.map +1 -0
  49. package/cjs/register-richtext.d.ts +3 -0
  50. package/cjs/register-richtext.js +18 -0
  51. package/cjs/register-richtext.js.map +1 -0
  52. package/cjs/register-symbol.d.ts +3 -0
  53. package/cjs/register-symbol.js +19 -0
  54. package/cjs/register-symbol.js.map +1 -0
  55. package/cjs/register-text.d.ts +3 -0
  56. package/cjs/register-text.js +19 -0
  57. package/cjs/register-text.js.map +1 -0
  58. package/cjs/register.d.ts +19 -16
  59. package/cjs/register.js +35 -107
  60. package/cjs/register.js.map +1 -1
  61. package/dist/index.js +155 -71
  62. package/dist/index.min.js +1 -1
  63. package/es/core.d.ts +1 -0
  64. package/es/core.js +1 -0
  65. package/es/core.js.map +1 -0
  66. package/es/index.d.ts +2 -2
  67. package/es/index.js +11 -4
  68. package/es/index.js.map +1 -1
  69. package/es/isbrowser.d.ts +1 -0
  70. package/es/isbrowser.js +4 -0
  71. package/es/isbrowser.js.map +1 -0
  72. package/es/kits.d.ts +1 -0
  73. package/es/kits.js +2 -0
  74. package/es/kits.js.map +1 -0
  75. package/es/register-arc.d.ts +3 -0
  76. package/es/register-arc.js +15 -0
  77. package/es/register-arc.js.map +1 -0
  78. package/es/register-arc3d.d.ts +3 -0
  79. package/es/register-arc3d.js +15 -0
  80. package/es/register-arc3d.js.map +1 -0
  81. package/es/register-area.d.ts +3 -0
  82. package/es/register-area.js +15 -0
  83. package/es/register-area.js.map +1 -0
  84. package/es/register-circle.d.ts +3 -0
  85. package/es/register-circle.js +15 -0
  86. package/es/register-circle.js.map +1 -0
  87. package/es/register-glyph.d.ts +3 -0
  88. package/es/register-glyph.js +15 -0
  89. package/es/register-glyph.js.map +1 -0
  90. package/es/register-image.d.ts +3 -0
  91. package/es/register-image.js +15 -0
  92. package/es/register-image.js.map +1 -0
  93. package/es/register-line.d.ts +3 -0
  94. package/es/register-line.js +15 -0
  95. package/es/register-line.js.map +1 -0
  96. package/es/register-path.d.ts +3 -0
  97. package/es/register-path.js +15 -0
  98. package/es/register-path.js.map +1 -0
  99. package/es/register-polygon.d.ts +3 -0
  100. package/es/register-polygon.js +15 -0
  101. package/es/register-polygon.js.map +1 -0
  102. package/es/register-pyramid3d.d.ts +3 -0
  103. package/es/register-pyramid3d.js +15 -0
  104. package/es/register-pyramid3d.js.map +1 -0
  105. package/es/register-rect.d.ts +3 -0
  106. package/es/register-rect.js +15 -0
  107. package/es/register-rect.js.map +1 -0
  108. package/es/register-rect3d.d.ts +3 -0
  109. package/es/register-rect3d.js +15 -0
  110. package/es/register-rect3d.js.map +1 -0
  111. package/es/register-richtext.d.ts +3 -0
  112. package/es/register-richtext.js +14 -0
  113. package/es/register-richtext.js.map +1 -0
  114. package/es/register-symbol.d.ts +3 -0
  115. package/es/register-symbol.js +15 -0
  116. package/es/register-symbol.js.map +1 -0
  117. package/es/register-text.d.ts +3 -0
  118. package/es/register-text.js +15 -0
  119. package/es/register-text.js.map +1 -0
  120. package/es/register.d.ts +19 -16
  121. package/es/register.js +30 -91
  122. package/es/register.js.map +1 -1
  123. package/package.json +6 -4
package/cjs/register.d.ts CHANGED
@@ -1,19 +1,22 @@
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 '@visactor/vrender-core';
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;
1
+ import type { IGroup, IGroupGraphicAttribute, IText, IShadowRoot, IGraphic, IWrapTextGraphicAttribute } from '@visactor/vrender-core';
7
2
  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
3
  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
4
  export declare function createShadowRoot(graphic?: IGraphic): IShadowRoot;
19
- export declare function createRichText(attributes: IRichTextGraphicAttribute): IRichText;
5
+ export declare function registerGroup(): void;
6
+ export declare function registerWrapText(): void;
7
+ export declare function registerShadowRoot(): void;
8
+ export * from './register-arc';
9
+ export * from './register-arc3d';
10
+ export * from './register-area';
11
+ export * from './register-circle';
12
+ export * from './register-glyph';
13
+ export * from './register-image';
14
+ export * from './register-line';
15
+ export * from './register-path';
16
+ export * from './register-polygon';
17
+ export * from './register-pyramid3d';
18
+ export * from './register-rect';
19
+ export * from './register-rect3d';
20
+ export * from './register-richtext';
21
+ export * from './register-symbol';
22
+ export * from './register-text';
package/cjs/register.js CHANGED
@@ -1,130 +1,58 @@
1
1
  "use strict";
2
2
 
3
+ var __createBinding = this && this.__createBinding || (Object.create ? function(o, m, k, k2) {
4
+ void 0 === k2 && (k2 = k);
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ desc && !("get" in desc ? !m.__esModule : desc.writable || desc.configurable) || (desc = {
7
+ enumerable: !0,
8
+ get: function() {
9
+ return m[k];
10
+ }
11
+ }), Object.defineProperty(o, k2, desc);
12
+ } : function(o, m, k, k2) {
13
+ void 0 === k2 && (k2 = k), o[k2] = m[k];
14
+ }), __exportStar = this && this.__exportStar || function(m, exports) {
15
+ for (var p in m) "default" === p || Object.prototype.hasOwnProperty.call(exports, p) || __createBinding(exports, m, p);
16
+ };
17
+
3
18
  Object.defineProperty(exports, "__esModule", {
4
19
  value: !0
5
- }), 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 vrender_core_1 = require("@visactor/vrender-core"), vrender_kits_1 = require("@visactor/vrender-kits");
8
-
9
- function createArc(attributes) {
10
- return new vrender_core_1.Arc(attributes);
11
- }
12
-
13
- function createArc3d(attributes) {
14
- return new vrender_core_1.Arc3d(attributes);
15
- }
16
-
17
- function createPyramid3d(attributes) {
18
- return new vrender_core_1.Pyramid3d(attributes);
19
- }
20
+ }), exports.registerShadowRoot = exports.registerWrapText = exports.registerGroup = exports.createShadowRoot = exports.createWrapText = exports.createGroup = void 0;
20
21
 
21
- function createArea(attributes) {
22
- return new vrender_core_1.Area(attributes);
23
- }
24
-
25
- function createCircle(attributes) {
26
- return new vrender_core_1.Circle(attributes);
27
- }
22
+ const vrender_core_1 = require("@visactor/vrender-core");
28
23
 
29
24
  function createGroup(attributes) {
30
25
  return new vrender_core_1.Group(attributes);
31
26
  }
32
27
 
33
- function createLine(attributes) {
34
- return new vrender_core_1.Line(attributes);
35
- }
36
-
37
- function createPath(attributes) {
38
- return new vrender_core_1.Path(attributes);
39
- }
40
-
41
- function createRect(attributes) {
42
- return new vrender_core_1.Rect(attributes);
43
- }
44
-
45
- function createRect3d(attributes) {
46
- return new vrender_core_1.Rect3d(attributes);
47
- }
48
-
49
- function createGlyph(attributes) {
50
- return new vrender_core_1.Glyph(attributes);
51
- }
52
-
53
- function createText(attributes) {
54
- return new vrender_core_1.Text(attributes);
55
- }
56
-
57
28
  function createWrapText(attributes) {
58
29
  return new vrender_core_1.WrapText(attributes);
59
30
  }
60
31
 
61
- function createSymbol(attributes) {
62
- return new vrender_core_1.Symbol(attributes);
63
- }
64
-
65
- function createImage(attributes) {
66
- return new vrender_core_1.Image(attributes);
67
- }
68
-
69
- function createPolygon(attributes) {
70
- return new vrender_core_1.Polygon(attributes);
71
- }
72
-
73
32
  function createShadowRoot(graphic) {
74
33
  return new vrender_core_1.ShadowRoot(graphic);
75
34
  }
76
35
 
77
- function createRichText(attributes) {
78
- return new vrender_core_1.RichText(attributes);
36
+ function registerGroup() {
37
+ vrender_core_1.graphicCreator.RegisterGraphicCreator("group", createGroup);
79
38
  }
80
39
 
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;
88
-
89
- const obj = {
90
- arc: createArc,
91
- arc3d: createArc3d,
92
- area: createArea,
93
- circle: createCircle,
94
- group: createGroup,
95
- image: createImage,
96
- line: createLine,
97
- path: createPath,
98
- rect: createRect,
99
- rect3d: createRect3d,
100
- pyramid3d: createPyramid3d,
101
- symbol: createSymbol,
102
- text: createText,
103
- richtext: createRichText,
104
- polygon: createPolygon,
105
- shadowRoot: createShadowRoot,
106
- wrapText: createWrapText
107
- };
108
-
109
- Object.keys(obj).forEach((k => {
110
- vrender_core_1.graphicCreator.RegisterGraphicCreator(k, obj[k]);
111
- }));
40
+ function registerWrapText() {
41
+ vrender_core_1.graphicCreator.RegisterGraphicCreator("wrapText", createWrapText);
42
+ }
112
43
 
113
- const browser = (0, vrender_core_1.isBrowserEnv)();
44
+ function registerShadowRoot() {
45
+ vrender_core_1.graphicCreator.RegisterGraphicCreator("shadowRoot", createShadowRoot);
46
+ }
114
47
 
115
- vrender_core_1.container.load(vrender_core_1.arcModule), vrender_core_1.container.load(browser ? vrender_kits_1.arcCanvasPickModule : vrender_kits_1.arcMathPickModule),
116
- vrender_core_1.container.load(vrender_core_1.rectModule), vrender_core_1.container.load(browser ? vrender_kits_1.rectCanvasPickModule : vrender_kits_1.rectMathPickModule),
117
- vrender_core_1.container.load(vrender_core_1.lineModule), vrender_core_1.container.load(browser ? vrender_kits_1.lineCanvasPickModule : vrender_kits_1.lineMathPickModule),
118
- vrender_core_1.container.load(vrender_core_1.areaModule), vrender_core_1.container.load(browser ? vrender_kits_1.areaCanvasPickModule : vrender_kits_1.areaMathPickModule),
119
- vrender_core_1.container.load(vrender_core_1.symbolModule), vrender_core_1.container.load(browser ? vrender_kits_1.symbolCanvasPickModule : vrender_kits_1.symbolMathPickModule),
120
- vrender_core_1.container.load(vrender_core_1.textModule), vrender_core_1.container.load(browser ? vrender_kits_1.textCanvasPickModule : vrender_kits_1.textMathPickModule),
121
- vrender_core_1.container.load(vrender_core_1.circleModule), vrender_core_1.container.load(browser ? vrender_kits_1.circleCanvasPickModule : vrender_kits_1.circleMathPickModule),
122
- vrender_core_1.container.load(vrender_core_1.pathModule), vrender_core_1.container.load(browser ? vrender_kits_1.pathCanvasPickModule : vrender_kits_1.pathMathPickModule),
123
- vrender_core_1.container.load(vrender_core_1.richtextModule), vrender_core_1.container.load(browser ? vrender_kits_1.richtextCanvasPickModule : vrender_kits_1.richTextMathPickModule),
124
- vrender_core_1.container.load(vrender_core_1.polygonModule), vrender_core_1.container.load(browser ? vrender_kits_1.polygonCanvasPickModule : vrender_kits_1.polygonMathPickModule),
125
- vrender_core_1.container.load(vrender_core_1.imageModule), vrender_core_1.container.load(browser ? vrender_kits_1.imageCanvasPickModule : vrender_kits_1.imageMathPickModule),
126
- vrender_core_1.container.load(vrender_core_1.glyphModule), vrender_core_1.container.load(browser ? vrender_kits_1.glyphCanvasPickModule : vrender_kits_1.glyphMathPickModule),
127
- vrender_core_1.container.load(vrender_core_1.rect3dModule), vrender_core_1.container.load(vrender_kits_1.rect3dCanvasPickModule),
128
- vrender_core_1.container.load(vrender_core_1.arc3dModule), vrender_core_1.container.load(vrender_kits_1.arc3dCanvasPickModule),
129
- vrender_core_1.container.load(vrender_core_1.pyramid3dModule), vrender_core_1.container.load(vrender_kits_1.pyramid3dCanvasPickModule);
48
+ exports.createGroup = createGroup, exports.createWrapText = createWrapText, exports.createShadowRoot = createShadowRoot,
49
+ exports.registerGroup = registerGroup, exports.registerWrapText = registerWrapText,
50
+ exports.registerShadowRoot = registerShadowRoot, __exportStar(require("./register-arc"), exports),
51
+ __exportStar(require("./register-arc3d"), exports), __exportStar(require("./register-area"), exports),
52
+ __exportStar(require("./register-circle"), exports), __exportStar(require("./register-glyph"), exports),
53
+ __exportStar(require("./register-image"), exports), __exportStar(require("./register-line"), exports),
54
+ __exportStar(require("./register-path"), exports), __exportStar(require("./register-polygon"), exports),
55
+ __exportStar(require("./register-pyramid3d"), exports), __exportStar(require("./register-rect"), exports),
56
+ __exportStar(require("./register-rect3d"), exports), __exportStar(require("./register-richtext"), exports),
57
+ __exportStar(require("./register-symbol"), exports), __exportStar(require("./register-text"), exports);
130
58
  //# sourceMappingURL=register.js.map
@@ -1 +1 @@
1
- {"version":3,"s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I,CAAC,OAAO,CAAC,CAAC,CAAC,wCAAyB,CAAC,CAAC,CAAC,wCAAyB,CAAC,CAAC","file":"register.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 '@visactor/vrender-core';\nimport {\n Arc,\n Area,\n Circle,\n Group,\n Image,\n Line,\n Path,\n Polygon,\n Rect,\n Symbol as MarkSymbol,\n ShadowRoot as MarkShadowRoot,\n Text,\n RichText,\n Glyph,\n Rect3d,\n Arc3d,\n Pyramid3d,\n WrapText,\n graphicCreator,\n arcModule,\n container,\n rectModule,\n lineModule,\n areaModule,\n symbolModule,\n textModule,\n circleModule,\n pathModule,\n richtextModule,\n polygonModule,\n isBrowserEnv,\n imageModule,\n glyphModule,\n rect3dModule,\n arc3dModule,\n pyramid3dModule\n} from '@visactor/vrender-core';\nimport {\n arc3dCanvasPickModule,\n arcCanvasPickModule,\n arcMathPickModule,\n areaCanvasPickModule,\n areaMathPickModule,\n circleCanvasPickModule,\n circleMathPickModule,\n glyphCanvasPickModule,\n glyphMathPickModule,\n imageCanvasPickModule,\n imageMathPickModule,\n lineCanvasPickModule,\n lineMathPickModule,\n pathCanvasPickModule,\n pathMathPickModule,\n polygonCanvasPickModule,\n polygonMathPickModule,\n pyramid3dCanvasPickModule,\n rect3dCanvasPickModule,\n rectCanvasPickModule,\n rectMathPickModule,\n richTextMathPickModule,\n richtextCanvasPickModule,\n symbolCanvasPickModule,\n symbolMathPickModule,\n textCanvasPickModule,\n textMathPickModule\n} from '@visactor/vrender-kits';\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\nconst obj = {\n arc: createArc,\n arc3d: createArc3d,\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 pyramid3d: createPyramid3d,\n symbol: createSymbol,\n text: createText,\n richtext: createRichText,\n polygon: createPolygon,\n shadowRoot: createShadowRoot,\n wrapText: createWrapText\n};\n\nObject.keys(obj).forEach(k => {\n graphicCreator.RegisterGraphicCreator(k, obj[k]);\n});\n\nconst browser = isBrowserEnv();\n\ncontainer.load(arcModule);\ncontainer.load(browser ? arcCanvasPickModule : arcMathPickModule);\n\ncontainer.load(rectModule);\ncontainer.load(browser ? rectCanvasPickModule : rectMathPickModule);\n\ncontainer.load(lineModule);\ncontainer.load(browser ? lineCanvasPickModule : lineMathPickModule);\n\ncontainer.load(areaModule);\ncontainer.load(browser ? areaCanvasPickModule : areaMathPickModule);\n\ncontainer.load(symbolModule);\ncontainer.load(browser ? symbolCanvasPickModule : symbolMathPickModule);\n\ncontainer.load(textModule);\ncontainer.load(browser ? textCanvasPickModule : textMathPickModule);\n\ncontainer.load(circleModule);\ncontainer.load(browser ? circleCanvasPickModule : circleMathPickModule);\n\ncontainer.load(pathModule);\ncontainer.load(browser ? pathCanvasPickModule : pathMathPickModule);\n\ncontainer.load(richtextModule);\ncontainer.load(browser ? richtextCanvasPickModule : richTextMathPickModule);\n\ncontainer.load(polygonModule);\ncontainer.load(browser ? polygonCanvasPickModule : polygonMathPickModule);\n\ncontainer.load(imageModule);\ncontainer.load(browser ? imageCanvasPickModule : imageMathPickModule);\n\ncontainer.load(glyphModule);\ncontainer.load(browser ? glyphCanvasPickModule : glyphMathPickModule);\n\ncontainer.load(rect3dModule);\ncontainer.load(browser ? rect3dCanvasPickModule : rect3dCanvasPickModule);\n\ncontainer.load(arc3dModule);\ncontainer.load(browser ? arc3dCanvasPickModule : arc3dCanvasPickModule);\n\ncontainer.load(pyramid3dModule);\ncontainer.load(browser ? pyramid3dCanvasPickModule : pyramid3dCanvasPickModule);\n"]}
1
+ {"version":3,"sources":["../src/register.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAQA,yDAAuG;AAEvG,SAAgB,WAAW,CAAC,UAAkC;IAC5D,OAAO,IAAI,oBAAK,CAAC,UAAU,CAAC,CAAC;AAC/B,CAAC;AAFD,kCAEC;AAED,SAAgB,cAAc,CAAC,UAAqC;IAClE,OAAO,IAAI,uBAAQ,CAAC,UAAU,CAAC,CAAC;AAClC,CAAC;AAFD,wCAEC;AACD,SAAgB,gBAAgB,CAAC,OAAkB;IACjD,OAAO,IAAI,yBAAc,CAAC,OAAO,CAAC,CAAC;AACrC,CAAC;AAFD,4CAEC;AAED,SAAgB,aAAa;IAC3B,6BAAc,CAAC,sBAAsB,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;AAC9D,CAAC;AAFD,sCAEC;AAED,SAAgB,gBAAgB;IAC9B,6BAAc,CAAC,sBAAsB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;AACpE,CAAC;AAFD,4CAEC;AAED,SAAgB,kBAAkB;IAChC,6BAAc,CAAC,sBAAsB,CAAC,YAAY,EAAE,gBAAgB,CAAC,CAAC;AACxE,CAAC;AAFD,gDAEC;AAED,iDAA+B;AAC/B,mDAAiC;AACjC,kDAAgC;AAChC,oDAAkC;AAClC,mDAAiC;AACjC,mDAAiC;AACjC,kDAAgC;AAChC,kDAAgC;AAChC,qDAAmC;AACnC,uDAAqC;AACrC,kDAAgC;AAChC,oDAAkC;AAClC,sDAAoC;AACpC,oDAAkC;AAClC,kDAAgC","file":"register.js","sourcesContent":["import type {\n IGroup,\n IGroupGraphicAttribute,\n IText,\n IShadowRoot,\n IGraphic,\n IWrapTextGraphicAttribute\n} from '@visactor/vrender-core';\nimport { Group, ShadowRoot as MarkShadowRoot, WrapText, graphicCreator } from '@visactor/vrender-core';\n\nexport function createGroup(attributes: IGroupGraphicAttribute): IGroup {\n return new Group(attributes);\n}\n\nexport function createWrapText(attributes: IWrapTextGraphicAttribute): IText {\n return new WrapText(attributes);\n}\nexport function createShadowRoot(graphic?: IGraphic): IShadowRoot {\n return new MarkShadowRoot(graphic);\n}\n\nexport function registerGroup() {\n graphicCreator.RegisterGraphicCreator('group', createGroup);\n}\n\nexport function registerWrapText() {\n graphicCreator.RegisterGraphicCreator('wrapText', createWrapText);\n}\n\nexport function registerShadowRoot() {\n graphicCreator.RegisterGraphicCreator('shadowRoot', createShadowRoot);\n}\n\nexport * from './register-arc';\nexport * from './register-arc3d';\nexport * from './register-area';\nexport * from './register-circle';\nexport * from './register-glyph';\nexport * from './register-image';\nexport * from './register-line';\nexport * from './register-path';\nexport * from './register-polygon';\nexport * from './register-pyramid3d';\nexport * from './register-rect';\nexport * from './register-rect3d';\nexport * from './register-richtext';\nexport * from './register-symbol';\nexport * from './register-text';\n"]}
package/dist/index.js CHANGED
@@ -34073,121 +34073,187 @@
34073
34073
 
34074
34074
  var roughModule = _roughModule;
34075
34075
 
34076
+ const browser = isBrowserEnv();
34077
+
34076
34078
  function createArc(attributes) {
34077
34079
  return new Arc(attributes);
34078
34080
  }
34081
+ function registerArc() {
34082
+ graphicCreator.RegisterGraphicCreator('arc', createArc);
34083
+ container.load(arcModule);
34084
+ container.load(browser ? arcCanvasPickModule : arcMathPickModule);
34085
+ }
34086
+
34079
34087
  function createArc3d(attributes) {
34080
34088
  return new Arc3d(attributes);
34081
34089
  }
34082
- function createPyramid3d(attributes) {
34083
- return new Pyramid3d(attributes);
34090
+ function registerArc3d() {
34091
+ graphicCreator.RegisterGraphicCreator('arc3d', createArc3d);
34092
+ container.load(arc3dModule);
34093
+ container.load(browser ? arc3dCanvasPickModule : arc3dCanvasPickModule);
34084
34094
  }
34095
+
34085
34096
  function createArea(attributes) {
34086
34097
  return new Area(attributes);
34087
34098
  }
34099
+ function registerArea() {
34100
+ graphicCreator.RegisterGraphicCreator('area', createArea);
34101
+ container.load(areaModule);
34102
+ container.load(browser ? areaCanvasPickModule : areaMathPickModule);
34103
+ }
34104
+
34088
34105
  function createCircle(attributes) {
34089
34106
  return new Circle(attributes);
34090
34107
  }
34091
- function createGroup(attributes) {
34092
- return new Group(attributes);
34108
+ function registerCircle() {
34109
+ graphicCreator.RegisterGraphicCreator('circle', createCircle);
34110
+ container.load(circleModule);
34111
+ container.load(browser ? circleCanvasPickModule : circleMathPickModule);
34112
+ }
34113
+
34114
+ function createGlyph(attributes) {
34115
+ return new Glyph(attributes);
34116
+ }
34117
+ function registerGlyph() {
34118
+ graphicCreator.RegisterGraphicCreator('glyph', createGlyph);
34119
+ container.load(glyphModule);
34120
+ container.load(browser ? glyphCanvasPickModule : glyphMathPickModule);
34121
+ }
34122
+
34123
+ function createImage(attributes) {
34124
+ return new Image(attributes);
34125
+ }
34126
+ function registerImage() {
34127
+ graphicCreator.RegisterGraphicCreator('image', createImage);
34128
+ container.load(imageModule);
34129
+ container.load(browser ? imageCanvasPickModule : imageMathPickModule);
34093
34130
  }
34131
+
34094
34132
  function createLine(attributes) {
34095
34133
  return new Line$1(attributes);
34096
34134
  }
34135
+ function registerLine() {
34136
+ graphicCreator.RegisterGraphicCreator('line', createLine);
34137
+ container.load(lineModule);
34138
+ container.load(browser ? lineCanvasPickModule : lineMathPickModule);
34139
+ }
34140
+
34097
34141
  function createPath(attributes) {
34098
34142
  return new Path(attributes);
34099
34143
  }
34144
+ function registerPath() {
34145
+ graphicCreator.RegisterGraphicCreator('path', createPath);
34146
+ container.load(pathModule);
34147
+ container.load(browser ? pathCanvasPickModule : pathMathPickModule);
34148
+ }
34149
+
34150
+ function createPolygon(attributes) {
34151
+ return new Polygon(attributes);
34152
+ }
34153
+ function registerPolygon() {
34154
+ graphicCreator.RegisterGraphicCreator('polygon', createPolygon);
34155
+ container.load(polygonModule);
34156
+ container.load(browser ? polygonCanvasPickModule : polygonMathPickModule);
34157
+ }
34158
+
34159
+ function createPyramid3d(attributes) {
34160
+ return new Pyramid3d(attributes);
34161
+ }
34162
+ function registerPyramid3d() {
34163
+ graphicCreator.RegisterGraphicCreator('pyramid3d', createPyramid3d);
34164
+ container.load(pyramid3dModule);
34165
+ container.load(browser ? pyramid3dCanvasPickModule : pyramid3dCanvasPickModule);
34166
+ }
34167
+
34100
34168
  function createRect(attributes) {
34101
34169
  return new Rect(attributes);
34102
34170
  }
34171
+ function registerRect() {
34172
+ graphicCreator.RegisterGraphicCreator('rect', createRect);
34173
+ container.load(rectModule);
34174
+ container.load(browser ? rectCanvasPickModule : rectMathPickModule);
34175
+ }
34176
+
34103
34177
  function createRect3d(attributes) {
34104
34178
  return new Rect3d(attributes);
34105
34179
  }
34106
- function createGlyph(attributes) {
34107
- return new Glyph(attributes);
34180
+ function registerRect3d() {
34181
+ graphicCreator.RegisterGraphicCreator('rect3d', createRect3d);
34182
+ container.load(rect3dModule);
34183
+ container.load(browser ? rect3dCanvasPickModule : rect3dCanvasPickModule);
34108
34184
  }
34109
- function createText(attributes) {
34110
- return new Text(attributes);
34185
+
34186
+ function createRichText(attributes) {
34187
+ return new RichText(attributes);
34111
34188
  }
34112
- function createWrapText(attributes) {
34113
- return new WrapText(attributes);
34189
+ function registerRichtext() {
34190
+ graphicCreator.RegisterGraphicCreator('richtext', createRichText);
34191
+ container.load(richtextModule);
34192
+ container.load(browser ? richtextCanvasPickModule : richTextMathPickModule);
34114
34193
  }
34194
+
34115
34195
  function createSymbol(attributes) {
34116
34196
  return new _Symbol(attributes);
34117
34197
  }
34118
- function createImage(attributes) {
34119
- return new Image(attributes);
34198
+ function registerSymbol() {
34199
+ graphicCreator.RegisterGraphicCreator('symbol', createSymbol);
34200
+ container.load(symbolModule);
34201
+ container.load(browser ? symbolCanvasPickModule : symbolMathPickModule);
34120
34202
  }
34121
- function createPolygon(attributes) {
34122
- return new Polygon(attributes);
34203
+
34204
+ function createText(attributes) {
34205
+ return new Text(attributes);
34206
+ }
34207
+ function registerText() {
34208
+ graphicCreator.RegisterGraphicCreator('text', createText);
34209
+ container.load(textModule);
34210
+ container.load(browser ? textCanvasPickModule : textMathPickModule);
34211
+ }
34212
+
34213
+ function createGroup(attributes) {
34214
+ return new Group(attributes);
34215
+ }
34216
+ function createWrapText(attributes) {
34217
+ return new WrapText(attributes);
34123
34218
  }
34124
34219
  function createShadowRoot(graphic) {
34125
34220
  return new ShadowRoot(graphic);
34126
34221
  }
34127
- function createRichText(attributes) {
34128
- return new RichText(attributes);
34222
+ function registerGroup() {
34223
+ graphicCreator.RegisterGraphicCreator('group', createGroup);
34129
34224
  }
34130
- const obj = {
34131
- arc: createArc,
34132
- arc3d: createArc3d,
34133
- area: createArea,
34134
- circle: createCircle,
34135
- group: createGroup,
34136
- image: createImage,
34137
- line: createLine,
34138
- path: createPath,
34139
- rect: createRect,
34140
- rect3d: createRect3d,
34141
- pyramid3d: createPyramid3d,
34142
- symbol: createSymbol,
34143
- text: createText,
34144
- richtext: createRichText,
34145
- polygon: createPolygon,
34146
- shadowRoot: createShadowRoot,
34147
- wrapText: createWrapText
34148
- };
34149
- Object.keys(obj).forEach(k => {
34150
- graphicCreator.RegisterGraphicCreator(k, obj[k]);
34151
- });
34152
- const browser = isBrowserEnv();
34153
- container.load(arcModule);
34154
- container.load(browser ? arcCanvasPickModule : arcMathPickModule);
34155
- container.load(rectModule);
34156
- container.load(browser ? rectCanvasPickModule : rectMathPickModule);
34157
- container.load(lineModule);
34158
- container.load(browser ? lineCanvasPickModule : lineMathPickModule);
34159
- container.load(areaModule);
34160
- container.load(browser ? areaCanvasPickModule : areaMathPickModule);
34161
- container.load(symbolModule);
34162
- container.load(browser ? symbolCanvasPickModule : symbolMathPickModule);
34163
- container.load(textModule);
34164
- container.load(browser ? textCanvasPickModule : textMathPickModule);
34165
- container.load(circleModule);
34166
- container.load(browser ? circleCanvasPickModule : circleMathPickModule);
34167
- container.load(pathModule);
34168
- container.load(browser ? pathCanvasPickModule : pathMathPickModule);
34169
- container.load(richtextModule);
34170
- container.load(browser ? richtextCanvasPickModule : richTextMathPickModule);
34171
- container.load(polygonModule);
34172
- container.load(browser ? polygonCanvasPickModule : polygonMathPickModule);
34173
- container.load(imageModule);
34174
- container.load(browser ? imageCanvasPickModule : imageMathPickModule);
34175
- container.load(glyphModule);
34176
- container.load(browser ? glyphCanvasPickModule : glyphMathPickModule);
34177
- container.load(rect3dModule);
34178
- container.load(browser ? rect3dCanvasPickModule : rect3dCanvasPickModule);
34179
- container.load(arc3dModule);
34180
- container.load(browser ? arc3dCanvasPickModule : arc3dCanvasPickModule);
34181
- container.load(pyramid3dModule);
34182
- container.load(browser ? pyramid3dCanvasPickModule : pyramid3dCanvasPickModule);
34183
-
34184
- const version = "0.17.1-alpha.1";
34225
+ function registerWrapText() {
34226
+ graphicCreator.RegisterGraphicCreator('wrapText', createWrapText);
34227
+ }
34228
+ function registerShadowRoot() {
34229
+ graphicCreator.RegisterGraphicCreator('shadowRoot', createShadowRoot);
34230
+ }
34231
+
34232
+ const version = "0.17.1-alpha.3";
34185
34233
  if (isBrowserEnv()) {
34186
34234
  loadBrowserEnv(container);
34187
34235
  }
34188
34236
  else if (isNodeEnv()) {
34189
34237
  loadNodeEnv(container);
34190
34238
  }
34239
+ registerArc();
34240
+ registerArc3d();
34241
+ registerArea();
34242
+ registerCircle();
34243
+ registerGlyph();
34244
+ registerGroup();
34245
+ registerImage();
34246
+ registerLine();
34247
+ registerPath();
34248
+ registerPolygon();
34249
+ registerPyramid3d();
34250
+ registerRect();
34251
+ registerRect3d();
34252
+ registerRichtext();
34253
+ registerShadowRoot();
34254
+ registerSymbol();
34255
+ registerText();
34256
+ registerWrapText();
34191
34257
 
34192
34258
  exports.ACustomAnimate = ACustomAnimate;
34193
34259
  exports.ARC3D_NUMBER_TYPE = ARC3D_NUMBER_TYPE;
@@ -34640,6 +34706,24 @@
34640
34706
  exports.rectModule = rectModule;
34641
34707
  exports.rectStrokeVisible = rectStrokeVisible;
34642
34708
  exports.recursiveCallBinarySplit = recursiveCallBinarySplit;
34709
+ exports.registerArc = registerArc;
34710
+ exports.registerArc3d = registerArc3d;
34711
+ exports.registerArea = registerArea;
34712
+ exports.registerCircle = registerCircle;
34713
+ exports.registerGlyph = registerGlyph;
34714
+ exports.registerGroup = registerGroup;
34715
+ exports.registerImage = registerImage;
34716
+ exports.registerLine = registerLine;
34717
+ exports.registerPath = registerPath;
34718
+ exports.registerPolygon = registerPolygon;
34719
+ exports.registerPyramid3d = registerPyramid3d;
34720
+ exports.registerRect = registerRect;
34721
+ exports.registerRect3d = registerRect3d;
34722
+ exports.registerRichtext = registerRichtext;
34723
+ exports.registerShadowRoot = registerShadowRoot;
34724
+ exports.registerSymbol = registerSymbol;
34725
+ exports.registerText = registerText;
34726
+ exports.registerWrapText = registerWrapText;
34643
34727
  exports.renderCommandList = renderCommandList;
34644
34728
  exports.rewriteProto = rewriteProto;
34645
34729
  exports.richTextMathPickModule = richTextMathPickModule;