@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/es/core.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from '@visactor/vrender-core';
package/es/core.js ADDED
@@ -0,0 +1 @@
1
+ export * from "@visactor/vrender-core";
package/es/core.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/core.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC","file":"core.js","sourcesContent":["export * from '@visactor/vrender-core';\n"]}
package/es/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export declare const version = "0.17.1-alpha.1";
2
- export * from './register';
1
+ export declare const version = "0.17.1-alpha.3";
3
2
  export * from '@visactor/vrender-core';
4
3
  export * from '@visactor/vrender-kits';
4
+ export * from './register';
package/es/index.js CHANGED
@@ -2,12 +2,19 @@ import { container, isBrowserEnv, isNodeEnv } from "@visactor/vrender-core";
2
2
 
3
3
  import { loadBrowserEnv, loadNodeEnv } from "@visactor/vrender-kits";
4
4
 
5
- export const version = "0.17.1-alpha.1";
5
+ import { registerArc, registerArc3d, registerArea, registerCircle, registerGlyph, registerGroup, registerImage, registerLine, registerPath, registerPolygon, registerPyramid3d, registerRect, registerRect3d, registerRichtext, registerShadowRoot, registerSymbol, registerText, registerWrapText } from "./register";
6
6
 
7
- isBrowserEnv() ? loadBrowserEnv(container) : isNodeEnv() && loadNodeEnv(container);
7
+ export const version = "0.17.1-alpha.3";
8
8
 
9
- export * from "./register";
9
+ isBrowserEnv() ? loadBrowserEnv(container) : isNodeEnv() && loadNodeEnv(container),
10
+ registerArc(), registerArc3d(), registerArea(), registerCircle(), registerGlyph(),
11
+ registerGroup(), registerImage(), registerLine(), registerPath(), registerPolygon(),
12
+ registerPyramid3d(), registerRect(), registerRect3d(), registerRichtext(), registerShadowRoot(),
13
+ registerSymbol(), registerText(), registerWrapText();
10
14
 
11
15
  export * from "@visactor/vrender-core";
12
16
 
13
- export * from "@visactor/vrender-kits";
17
+ export * from "@visactor/vrender-kits";
18
+
19
+ export * from "./register";
20
+ //# sourceMappingURL=index.js.map
package/es/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAC5E,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAGrE,MAAM,CAAC,MAAM,OAAO,GAAG,gBAAgB,CAAC;AAExC,IAAI,YAAY,EAAE,EAAE;IAClB,cAAc,CAAC,SAAS,CAAC,CAAC;CAC3B;KAAM,IAAI,SAAS,EAAE,EAAE;IACtB,WAAW,CAAC,SAAS,CAAC,CAAC;CACxB;AACD,cAAc,YAAY,CAAC;AAC3B,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC","file":"index.js","sourcesContent":["import { container, isBrowserEnv, isNodeEnv } from '@visactor/vrender-core';\nimport { loadBrowserEnv, loadNodeEnv } from '@visactor/vrender-kits';\n\n// 导出版本号\nexport const version = \"0.17.1-alpha.1\";\n\nif (isBrowserEnv()) {\n loadBrowserEnv(container);\n} else if (isNodeEnv()) {\n loadNodeEnv(container);\n}\nexport * from './register';\nexport * from '@visactor/vrender-core';\nexport * from '@visactor/vrender-kits';\n"]}
1
+ {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAC5E,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,EACL,WAAW,EACX,aAAa,EACb,YAAY,EACZ,cAAc,EACd,aAAa,EACb,aAAa,EACb,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,eAAe,EACf,iBAAiB,EACjB,YAAY,EACZ,cAAc,EACd,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,EACd,YAAY,EACZ,gBAAgB,EACjB,MAAM,YAAY,CAAC;AAEpB,MAAM,CAAC,MAAM,OAAO,GAAG,gBAAgB,CAAC;AAExC,IAAI,YAAY,EAAE,EAAE;IAClB,cAAc,CAAC,SAAS,CAAC,CAAC;CAC3B;KAAM,IAAI,SAAS,EAAE,EAAE;IACtB,WAAW,CAAC,SAAS,CAAC,CAAC;CACxB;AACD,WAAW,EAAE,CAAC;AACd,aAAa,EAAE,CAAC;AAChB,YAAY,EAAE,CAAC;AACf,cAAc,EAAE,CAAC;AACjB,aAAa,EAAE,CAAC;AAChB,aAAa,EAAE,CAAC;AAChB,aAAa,EAAE,CAAC;AAChB,YAAY,EAAE,CAAC;AACf,YAAY,EAAE,CAAC;AACf,eAAe,EAAE,CAAC;AAClB,iBAAiB,EAAE,CAAC;AACpB,YAAY,EAAE,CAAC;AACf,cAAc,EAAE,CAAC;AACjB,gBAAgB,EAAE,CAAC;AACnB,kBAAkB,EAAE,CAAC;AACrB,cAAc,EAAE,CAAC;AACjB,YAAY,EAAE,CAAC;AACf,gBAAgB,EAAE,CAAC;AACnB,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,YAAY,CAAC","file":"index.js","sourcesContent":["import { container, isBrowserEnv, isNodeEnv } from '@visactor/vrender-core';\nimport { loadBrowserEnv, loadNodeEnv } from '@visactor/vrender-kits';\nimport {\n registerArc,\n registerArc3d,\n registerArea,\n registerCircle,\n registerGlyph,\n registerGroup,\n registerImage,\n registerLine,\n registerPath,\n registerPolygon,\n registerPyramid3d,\n registerRect,\n registerRect3d,\n registerRichtext,\n registerShadowRoot,\n registerSymbol,\n registerText,\n registerWrapText\n} from './register';\n// 导出版本号\nexport const version = \"0.17.1-alpha.3\";\n\nif (isBrowserEnv()) {\n loadBrowserEnv(container);\n} else if (isNodeEnv()) {\n loadNodeEnv(container);\n}\nregisterArc();\nregisterArc3d();\nregisterArea();\nregisterCircle();\nregisterGlyph();\nregisterGroup();\nregisterImage();\nregisterLine();\nregisterPath();\nregisterPolygon();\nregisterPyramid3d();\nregisterRect();\nregisterRect3d();\nregisterRichtext();\nregisterShadowRoot();\nregisterSymbol();\nregisterText();\nregisterWrapText();\nexport * from '@visactor/vrender-core';\nexport * from '@visactor/vrender-kits';\nexport * from './register';\n"]}
@@ -0,0 +1 @@
1
+ export declare const browser: any;
@@ -0,0 +1,4 @@
1
+ import { isBrowserEnv } from "./core";
2
+
3
+ export const browser = isBrowserEnv();
4
+ //# sourceMappingURL=isbrowser.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/isbrowser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEtC,MAAM,CAAC,MAAM,OAAO,GAAG,YAAY,EAAE,CAAC","file":"isbrowser.js","sourcesContent":["import { isBrowserEnv } from './core';\n\nexport const browser = isBrowserEnv();\n"]}
package/es/kits.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from '@visactor/vrender-kits';
package/es/kits.js ADDED
@@ -0,0 +1,2 @@
1
+ export * from "@visactor/vrender-kits";
2
+ //# sourceMappingURL=kits.js.map
package/es/kits.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/kits.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC","file":"kits.js","sourcesContent":["export * from '@visactor/vrender-kits';\n"]}
@@ -0,0 +1,3 @@
1
+ import type { IArc, IArcGraphicAttribute } from './core';
2
+ export declare function createArc(attributes: IArcGraphicAttribute): IArc;
3
+ export declare function registerArc(): void;
@@ -0,0 +1,15 @@
1
+ import { Arc, arcModule, container, graphicCreator } from "./core";
2
+
3
+ import { browser } from "./isbrowser";
4
+
5
+ import { arcCanvasPickModule, arcMathPickModule } from "./kits";
6
+
7
+ export function createArc(attributes) {
8
+ return new Arc(attributes);
9
+ }
10
+
11
+ export function registerArc() {
12
+ graphicCreator.RegisterGraphicCreator("arc", createArc), container.load(arcModule),
13
+ container.load(browser ? arcCanvasPickModule : arcMathPickModule);
14
+ }
15
+ //# sourceMappingURL=register-arc.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/register-arc.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAEhE,MAAM,UAAU,SAAS,CAAC,UAAgC;IACxD,OAAO,IAAI,GAAG,CAAC,UAAU,CAAC,CAAC;AAC7B,CAAC;AAED,MAAM,UAAU,WAAW;IACzB,cAAc,CAAC,sBAAsB,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;IACxD,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IAC1B,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC;AACpE,CAAC","file":"register-arc.js","sourcesContent":["import type { IArc, IArcGraphicAttribute } from './core';\nimport { Arc, arcModule, container, graphicCreator } from './core';\nimport { browser } from './isbrowser';\nimport { arcCanvasPickModule, arcMathPickModule } from './kits';\n\nexport function createArc(attributes: IArcGraphicAttribute): IArc {\n return new Arc(attributes);\n}\n\nexport function registerArc() {\n graphicCreator.RegisterGraphicCreator('arc', createArc);\n container.load(arcModule);\n container.load(browser ? arcCanvasPickModule : arcMathPickModule);\n}\n"]}
@@ -0,0 +1,3 @@
1
+ import type { IArc, IArc3dGraphicAttribute } from './core';
2
+ export declare function createArc3d(attributes: IArc3dGraphicAttribute): IArc;
3
+ export declare function registerArc3d(): void;
@@ -0,0 +1,15 @@
1
+ import { Arc3d, arc3dModule, container, graphicCreator } from "./core";
2
+
3
+ import { browser } from "./isbrowser";
4
+
5
+ import { arc3dCanvasPickModule } from "./kits";
6
+
7
+ export function createArc3d(attributes) {
8
+ return new Arc3d(attributes);
9
+ }
10
+
11
+ export function registerArc3d() {
12
+ graphicCreator.RegisterGraphicCreator("arc3d", createArc3d), container.load(arc3dModule),
13
+ container.load(arc3dCanvasPickModule);
14
+ }
15
+ //# sourceMappingURL=register-arc3d.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/register-arc3d.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,qBAAqB,EAAE,MAAM,QAAQ,CAAC;AAE/C,MAAM,UAAU,WAAW,CAAC,UAAkC;IAC5D,OAAO,IAAI,KAAK,CAAC,UAAU,CAAC,CAAC;AAC/B,CAAC;AAED,MAAM,UAAU,aAAa;IAC3B,cAAc,CAAC,sBAAsB,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;IAC5D,SAAS,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IAC5B,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC;AAC1E,CAAC","file":"register-arc3d.js","sourcesContent":["import type { IArc, IArc3dGraphicAttribute } from './core';\nimport { Arc3d, arc3dModule, container, graphicCreator } from './core';\nimport { browser } from './isbrowser';\nimport { arc3dCanvasPickModule } from './kits';\n\nexport function createArc3d(attributes: IArc3dGraphicAttribute): IArc {\n return new Arc3d(attributes);\n}\n\nexport function registerArc3d() {\n graphicCreator.RegisterGraphicCreator('arc3d', createArc3d);\n container.load(arc3dModule);\n container.load(browser ? arc3dCanvasPickModule : arc3dCanvasPickModule);\n}\n"]}
@@ -0,0 +1,3 @@
1
+ import type { IArea, IAreaGraphicAttribute } from './core';
2
+ export declare function createArea(attributes: IAreaGraphicAttribute): IArea;
3
+ export declare function registerArea(): void;
@@ -0,0 +1,15 @@
1
+ import { Area, areaModule, container, graphicCreator } from "./core";
2
+
3
+ import { browser } from "./isbrowser";
4
+
5
+ import { areaCanvasPickModule, areaMathPickModule } from "./kits";
6
+
7
+ export function createArea(attributes) {
8
+ return new Area(attributes);
9
+ }
10
+
11
+ export function registerArea() {
12
+ graphicCreator.RegisterGraphicCreator("area", createArea), container.load(areaModule),
13
+ container.load(browser ? areaCanvasPickModule : areaMathPickModule);
14
+ }
15
+ //# sourceMappingURL=register-area.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/register-area.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAElE,MAAM,UAAU,UAAU,CAAC,UAAiC;IAC1D,OAAO,IAAI,IAAI,CAAC,UAAU,CAAC,CAAC;AAC9B,CAAC;AAED,MAAM,UAAU,YAAY;IAC1B,cAAc,CAAC,sBAAsB,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IAC1D,SAAS,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAC3B,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC;AACtE,CAAC","file":"register-area.js","sourcesContent":["import type { IArea, IAreaGraphicAttribute } from './core';\nimport { Area, areaModule, container, graphicCreator } from './core';\nimport { browser } from './isbrowser';\nimport { areaCanvasPickModule, areaMathPickModule } from './kits';\n\nexport function createArea(attributes: IAreaGraphicAttribute): IArea {\n return new Area(attributes);\n}\n\nexport function registerArea() {\n graphicCreator.RegisterGraphicCreator('area', createArea);\n container.load(areaModule);\n container.load(browser ? areaCanvasPickModule : areaMathPickModule);\n}\n"]}
@@ -0,0 +1,3 @@
1
+ import type { ICircleGraphicAttribute, ICircle } from './core';
2
+ export declare function createCircle(attributes: ICircleGraphicAttribute): ICircle;
3
+ export declare function registerCircle(): void;
@@ -0,0 +1,15 @@
1
+ import { Circle, container, graphicCreator, circleModule } from "./core";
2
+
3
+ import { browser } from "./isbrowser";
4
+
5
+ import { circleCanvasPickModule, circleMathPickModule } from "./kits";
6
+
7
+ export function createCircle(attributes) {
8
+ return new Circle(attributes);
9
+ }
10
+
11
+ export function registerCircle() {
12
+ graphicCreator.RegisterGraphicCreator("circle", createCircle), container.load(circleModule),
13
+ container.load(browser ? circleCanvasPickModule : circleMathPickModule);
14
+ }
15
+ //# sourceMappingURL=register-circle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/register-circle.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACzE,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAAC;AAEtE,MAAM,UAAU,YAAY,CAAC,UAAmC;IAC9D,OAAO,IAAI,MAAM,CAAC,UAAU,CAAC,CAAC;AAChC,CAAC;AAED,MAAM,UAAU,cAAc;IAC5B,cAAc,CAAC,sBAAsB,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;IAC9D,SAAS,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IAC7B,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC;AAC1E,CAAC","file":"register-circle.js","sourcesContent":["import type { ICircleGraphicAttribute, ICircle } from './core';\nimport { Circle, container, graphicCreator, circleModule } from './core';\nimport { browser } from './isbrowser';\nimport { circleCanvasPickModule, circleMathPickModule } from './kits';\n\nexport function createCircle(attributes: ICircleGraphicAttribute): ICircle {\n return new Circle(attributes);\n}\n\nexport function registerCircle() {\n graphicCreator.RegisterGraphicCreator('circle', createCircle);\n container.load(circleModule);\n container.load(browser ? circleCanvasPickModule : circleMathPickModule);\n}\n"]}
@@ -0,0 +1,3 @@
1
+ import type { IGlyphGraphicAttribute, IGlyph } from './core';
2
+ export declare function createGlyph(attributes: IGlyphGraphicAttribute): IGlyph;
3
+ export declare function registerGlyph(): void;
@@ -0,0 +1,15 @@
1
+ import { container, graphicCreator, glyphModule, Glyph } from "./core";
2
+
3
+ import { browser } from "./isbrowser";
4
+
5
+ import { glyphCanvasPickModule, glyphMathPickModule } from "./kits";
6
+
7
+ export function createGlyph(attributes) {
8
+ return new Glyph(attributes);
9
+ }
10
+
11
+ export function registerGlyph() {
12
+ graphicCreator.RegisterGraphicCreator("glyph", createGlyph), container.load(glyphModule),
13
+ container.load(browser ? glyphCanvasPickModule : glyphMathPickModule);
14
+ }
15
+ //# sourceMappingURL=register-glyph.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/register-glyph.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAC;AAEpE,MAAM,UAAU,WAAW,CAAC,UAAkC;IAC5D,OAAO,IAAI,KAAK,CAAC,UAAU,CAAC,CAAC;AAC/B,CAAC;AAED,MAAM,UAAU,aAAa;IAC3B,cAAc,CAAC,sBAAsB,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;IAC5D,SAAS,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IAC5B,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC;AACxE,CAAC","file":"register-glyph.js","sourcesContent":["import type { IGlyphGraphicAttribute, IGlyph } from './core';\nimport { container, graphicCreator, glyphModule, Glyph } from './core';\nimport { browser } from './isbrowser';\nimport { glyphCanvasPickModule, glyphMathPickModule } from './kits';\n\nexport function createGlyph(attributes: IGlyphGraphicAttribute): IGlyph {\n return new Glyph(attributes);\n}\n\nexport function registerGlyph() {\n graphicCreator.RegisterGraphicCreator('glyph', createGlyph);\n container.load(glyphModule);\n container.load(browser ? glyphCanvasPickModule : glyphMathPickModule);\n}\n"]}
@@ -0,0 +1,3 @@
1
+ import type { IImageGraphicAttribute, IImage } from './core';
2
+ export declare function createImage(attributes: IImageGraphicAttribute): IImage;
3
+ export declare function registerImage(): void;
@@ -0,0 +1,15 @@
1
+ import { Image, container, graphicCreator, imageModule } from "./core";
2
+
3
+ import { browser } from "./isbrowser";
4
+
5
+ import { imageCanvasPickModule, imageMathPickModule } from "./kits";
6
+
7
+ export function createImage(attributes) {
8
+ return new Image(attributes);
9
+ }
10
+
11
+ export function registerImage() {
12
+ graphicCreator.RegisterGraphicCreator("image", createImage), container.load(imageModule),
13
+ container.load(browser ? imageCanvasPickModule : imageMathPickModule);
14
+ }
15
+ //# sourceMappingURL=register-image.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/register-image.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,qBAAqB,EAAE,mBAAmB,EAA4C,MAAM,QAAQ,CAAC;AAE9G,MAAM,UAAU,WAAW,CAAC,UAAkC;IAC5D,OAAO,IAAI,KAAK,CAAC,UAAU,CAAC,CAAC;AAC/B,CAAC;AAED,MAAM,UAAU,aAAa;IAC3B,cAAc,CAAC,sBAAsB,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;IAC5D,SAAS,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IAC5B,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC;AACxE,CAAC","file":"register-image.js","sourcesContent":["import type { IImageGraphicAttribute, IImage } from './core';\nimport { Image, container, graphicCreator, imageModule } from './core';\nimport { browser } from './isbrowser';\nimport { imageCanvasPickModule, imageMathPickModule, textCanvasPickModule, textMathPickModule } from './kits';\n\nexport function createImage(attributes: IImageGraphicAttribute): IImage {\n return new Image(attributes);\n}\n\nexport function registerImage() {\n graphicCreator.RegisterGraphicCreator('image', createImage);\n container.load(imageModule);\n container.load(browser ? imageCanvasPickModule : imageMathPickModule);\n}\n"]}
@@ -0,0 +1,3 @@
1
+ import type { ILine, ILineGraphicAttribute } from './core';
2
+ export declare function createLine(attributes: ILineGraphicAttribute): ILine;
3
+ export declare function registerLine(): void;
@@ -0,0 +1,15 @@
1
+ import { Line, container, graphicCreator, lineModule } from "./core";
2
+
3
+ import { browser } from "./isbrowser";
4
+
5
+ import { lineCanvasPickModule, lineMathPickModule } from "./kits";
6
+
7
+ export function createLine(attributes) {
8
+ return new Line(attributes);
9
+ }
10
+
11
+ export function registerLine() {
12
+ graphicCreator.RegisterGraphicCreator("line", createLine), container.load(lineModule),
13
+ container.load(browser ? lineCanvasPickModule : lineMathPickModule);
14
+ }
15
+ //# sourceMappingURL=register-line.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/register-line.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAElE,MAAM,UAAU,UAAU,CAAC,UAAiC;IAC1D,OAAO,IAAI,IAAI,CAAC,UAAU,CAAC,CAAC;AAC9B,CAAC;AAED,MAAM,UAAU,YAAY;IAC1B,cAAc,CAAC,sBAAsB,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IAC1D,SAAS,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAC3B,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC;AACtE,CAAC","file":"register-line.js","sourcesContent":["import type { ILine, ILineGraphicAttribute } from './core';\nimport { Line, container, graphicCreator, lineModule } from './core';\nimport { browser } from './isbrowser';\nimport { lineCanvasPickModule, lineMathPickModule } from './kits';\n\nexport function createLine(attributes: ILineGraphicAttribute): ILine {\n return new Line(attributes);\n}\n\nexport function registerLine() {\n graphicCreator.RegisterGraphicCreator('line', createLine);\n container.load(lineModule);\n container.load(browser ? lineCanvasPickModule : lineMathPickModule);\n}\n"]}
@@ -0,0 +1,3 @@
1
+ import type { IPathGraphicAttribute, IPath } from './core';
2
+ export declare function createPath(attributes: IPathGraphicAttribute): IPath;
3
+ export declare function registerPath(): void;
@@ -0,0 +1,15 @@
1
+ import { container, graphicCreator, Path, pathModule } from "./core";
2
+
3
+ import { browser } from "./isbrowser";
4
+
5
+ import { pathCanvasPickModule, pathMathPickModule } from "./kits";
6
+
7
+ export function createPath(attributes) {
8
+ return new Path(attributes);
9
+ }
10
+
11
+ export function registerPath() {
12
+ graphicCreator.RegisterGraphicCreator("path", createPath), container.load(pathModule),
13
+ container.load(browser ? pathCanvasPickModule : pathMathPickModule);
14
+ }
15
+ //# sourceMappingURL=register-path.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/register-path.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAElE,MAAM,UAAU,UAAU,CAAC,UAAiC;IAC1D,OAAO,IAAI,IAAI,CAAC,UAAU,CAAC,CAAC;AAC9B,CAAC;AAED,MAAM,UAAU,YAAY;IAC1B,cAAc,CAAC,sBAAsB,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IAC1D,SAAS,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAC3B,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC;AACtE,CAAC","file":"register-path.js","sourcesContent":["import type { IPathGraphicAttribute, IPath } from './core';\nimport { container, graphicCreator, Path, pathModule } from './core';\nimport { browser } from './isbrowser';\nimport { pathCanvasPickModule, pathMathPickModule } from './kits';\n\nexport function createPath(attributes: IPathGraphicAttribute): IPath {\n return new Path(attributes);\n}\n\nexport function registerPath() {\n graphicCreator.RegisterGraphicCreator('path', createPath);\n container.load(pathModule);\n container.load(browser ? pathCanvasPickModule : pathMathPickModule);\n}\n"]}
@@ -0,0 +1,3 @@
1
+ import type { IPolygonGraphicAttribute, IPolygon } from './core';
2
+ export declare function createPolygon(attributes: IPolygonGraphicAttribute): IPolygon;
3
+ export declare function registerPolygon(): void;
@@ -0,0 +1,15 @@
1
+ import { container, graphicCreator, polygonModule, Polygon } from "./core";
2
+
3
+ import { browser } from "./isbrowser";
4
+
5
+ import { polygonCanvasPickModule, polygonMathPickModule } from "./kits";
6
+
7
+ export function createPolygon(attributes) {
8
+ return new Polygon(attributes);
9
+ }
10
+
11
+ export function registerPolygon() {
12
+ graphicCreator.RegisterGraphicCreator("polygon", createPolygon), container.load(polygonModule),
13
+ container.load(browser ? polygonCanvasPickModule : polygonMathPickModule);
14
+ }
15
+ //# sourceMappingURL=register-polygon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/register-polygon.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,MAAM,QAAQ,CAAC;AAExE,MAAM,UAAU,aAAa,CAAC,UAAoC;IAChE,OAAO,IAAI,OAAO,CAAC,UAAU,CAAC,CAAC;AACjC,CAAC;AAED,MAAM,UAAU,eAAe;IAC7B,cAAc,CAAC,sBAAsB,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;IAChE,SAAS,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;IAC9B,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,uBAAuB,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC;AAC5E,CAAC","file":"register-polygon.js","sourcesContent":["import type { IPolygonGraphicAttribute, IPolygon } from './core';\nimport { container, graphicCreator, polygonModule, Polygon } from './core';\nimport { browser } from './isbrowser';\nimport { polygonCanvasPickModule, polygonMathPickModule } from './kits';\n\nexport function createPolygon(attributes: IPolygonGraphicAttribute): IPolygon {\n return new Polygon(attributes);\n}\n\nexport function registerPolygon() {\n graphicCreator.RegisterGraphicCreator('polygon', createPolygon);\n container.load(polygonModule);\n container.load(browser ? polygonCanvasPickModule : polygonMathPickModule);\n}\n"]}
@@ -0,0 +1,3 @@
1
+ import type { IPyramid3d, IPyramid3dGraphicAttribute } from './core';
2
+ export declare function createPyramid3d(attributes: IPyramid3dGraphicAttribute): IPyramid3d;
3
+ export declare function registerPyramid3d(): void;
@@ -0,0 +1,15 @@
1
+ import { Pyramid3d, container, graphicCreator, pyramid3dModule } from "./core";
2
+
3
+ import { browser } from "./isbrowser";
4
+
5
+ import { pyramid3dCanvasPickModule } from "./kits";
6
+
7
+ export function createPyramid3d(attributes) {
8
+ return new Pyramid3d(attributes);
9
+ }
10
+
11
+ export function registerPyramid3d() {
12
+ graphicCreator.RegisterGraphicCreator("pyramid3d", createPyramid3d), container.load(pyramid3dModule),
13
+ container.load(pyramid3dCanvasPickModule);
14
+ }
15
+ //# sourceMappingURL=register-pyramid3d.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/register-pyramid3d.ts"],"names":[],"mappings":"AACA,OAAO,EAIL,SAAS,EAET,SAAS,EACT,cAAc,EACd,eAAe,EAChB,MAAM,QAAQ,CAAC;AAChB,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAyB,yBAAyB,EAAE,MAAM,QAAQ,CAAC;AAE1E,MAAM,UAAU,eAAe,CAAC,UAAsC;IACpE,OAAO,IAAI,SAAS,CAAC,UAAU,CAAC,CAAC;AACnC,CAAC;AAED,MAAM,UAAU,iBAAiB;IAC/B,cAAc,CAAC,sBAAsB,CAAC,WAAW,EAAE,eAAe,CAAC,CAAC;IACpE,SAAS,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;IAChC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,yBAAyB,CAAC,CAAC,CAAC,yBAAyB,CAAC,CAAC;AAClF,CAAC","file":"register-pyramid3d.js","sourcesContent":["import type { IPyramid3d, IPyramid3dGraphicAttribute } from './core';\nimport {\n Arc3d,\n IArc,\n IArc3dGraphicAttribute,\n Pyramid3d,\n arc3dModule,\n container,\n graphicCreator,\n pyramid3dModule\n} from './core';\nimport { browser } from './isbrowser';\nimport { arc3dCanvasPickModule, pyramid3dCanvasPickModule } from './kits';\n\nexport function createPyramid3d(attributes: IPyramid3dGraphicAttribute): IPyramid3d {\n return new Pyramid3d(attributes);\n}\n\nexport function registerPyramid3d() {\n graphicCreator.RegisterGraphicCreator('pyramid3d', createPyramid3d);\n container.load(pyramid3dModule);\n container.load(browser ? pyramid3dCanvasPickModule : pyramid3dCanvasPickModule);\n}\n"]}
@@ -0,0 +1,3 @@
1
+ import type { IRect, IRectGraphicAttribute } from './core';
2
+ export declare function createRect(attributes: IRectGraphicAttribute): IRect;
3
+ export declare function registerRect(): void;
@@ -0,0 +1,15 @@
1
+ import { Rect, container, graphicCreator, rectModule } from "./core";
2
+
3
+ import { browser } from "./isbrowser";
4
+
5
+ import { rectCanvasPickModule, rectMathPickModule } from "./kits";
6
+
7
+ export function createRect(attributes) {
8
+ return new Rect(attributes);
9
+ }
10
+
11
+ export function registerRect() {
12
+ graphicCreator.RegisterGraphicCreator("rect", createRect), container.load(rectModule),
13
+ container.load(browser ? rectCanvasPickModule : rectMathPickModule);
14
+ }
15
+ //# sourceMappingURL=register-rect.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/register-rect.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,cAAc,EAAgB,UAAU,EAAE,MAAM,QAAQ,CAAC;AACnF,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAElE,MAAM,UAAU,UAAU,CAAC,UAAiC;IAC1D,OAAO,IAAI,IAAI,CAAC,UAAU,CAAC,CAAC;AAC9B,CAAC;AAED,MAAM,UAAU,YAAY;IAC1B,cAAc,CAAC,sBAAsB,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IAC1D,SAAS,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAC3B,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC;AACtE,CAAC","file":"register-rect.js","sourcesContent":["import type { IRect, IRectGraphicAttribute } from './core';\nimport { Rect, container, graphicCreator, isBrowserEnv, rectModule } from './core';\nimport { browser } from './isbrowser';\nimport { rectCanvasPickModule, rectMathPickModule } from './kits';\n\nexport function createRect(attributes: IRectGraphicAttribute): IRect {\n return new Rect(attributes);\n}\n\nexport function registerRect() {\n graphicCreator.RegisterGraphicCreator('rect', createRect);\n container.load(rectModule);\n container.load(browser ? rectCanvasPickModule : rectMathPickModule);\n}\n"]}
@@ -0,0 +1,3 @@
1
+ import type { IRect3d, IRect3dGraphicAttribute } from './core';
2
+ export declare function createRect3d(attributes: IRect3dGraphicAttribute): IRect3d;
3
+ export declare function registerRect3d(): void;
@@ -0,0 +1,15 @@
1
+ import { Rect3d, container, graphicCreator, rect3dModule } from "./core";
2
+
3
+ import { browser } from "./isbrowser";
4
+
5
+ import { rect3dCanvasPickModule } from "./kits";
6
+
7
+ export function createRect3d(attributes) {
8
+ return new Rect3d(attributes);
9
+ }
10
+
11
+ export function registerRect3d() {
12
+ graphicCreator.RegisterGraphicCreator("rect3d", createRect3d), container.load(rect3dModule),
13
+ container.load(rect3dCanvasPickModule);
14
+ }
15
+ //# sourceMappingURL=register-rect3d.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/register-rect3d.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAa,SAAS,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACpF,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,sBAAsB,EAAE,MAAM,QAAQ,CAAC;AAEhD,MAAM,UAAU,YAAY,CAAC,UAAmC;IAC9D,OAAO,IAAI,MAAM,CAAC,UAAU,CAAC,CAAC;AAChC,CAAC;AAED,MAAM,UAAU,cAAc;IAC5B,cAAc,CAAC,sBAAsB,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;IAC9D,SAAS,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IAC7B,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC;AAC5E,CAAC","file":"register-rect3d.js","sourcesContent":["import type { IRect3d, IRect3dGraphicAttribute } from './core';\nimport { Rect3d, arcModule, container, graphicCreator, rect3dModule } from './core';\nimport { browser } from './isbrowser';\nimport { rect3dCanvasPickModule } from './kits';\n\nexport function createRect3d(attributes: IRect3dGraphicAttribute): IRect3d {\n return new Rect3d(attributes);\n}\n\nexport function registerRect3d() {\n graphicCreator.RegisterGraphicCreator('rect3d', createRect3d);\n container.load(rect3dModule);\n container.load(browser ? rect3dCanvasPickModule : rect3dCanvasPickModule);\n}\n"]}
@@ -0,0 +1,3 @@
1
+ import type { IRichText, IRichTextGraphicAttribute } from './core';
2
+ export declare function createRichText(attributes: IRichTextGraphicAttribute): IRichText;
3
+ export declare function registerRichtext(): void;
@@ -0,0 +1,14 @@
1
+ import { RichText, container, graphicCreator, richtextModule } from "./core";
2
+
3
+ import { browser } from "./isbrowser";
4
+
5
+ import { richTextMathPickModule, richtextCanvasPickModule } from "./kits";
6
+
7
+ export function createRichText(attributes) {
8
+ return new RichText(attributes);
9
+ }
10
+
11
+ export function registerRichtext() {
12
+ graphicCreator.RegisterGraphicCreator("richtext", createRichText), container.load(richtextModule),
13
+ container.load(browser ? richtextCanvasPickModule : richTextMathPickModule);
14
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/register-richtext.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAC7E,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,MAAM,QAAQ,CAAC;AAE1E,MAAM,UAAU,cAAc,CAAC,UAAqC;IAClE,OAAO,IAAI,QAAQ,CAAC,UAAU,CAAC,CAAC;AAClC,CAAC;AAED,MAAM,UAAU,gBAAgB;IAC9B,cAAc,CAAC,sBAAsB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IAClE,SAAS,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;IAC/B,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,wBAAwB,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC;AAC9E,CAAC","file":"register-richtext.js","sourcesContent":["import type { IRichText, IRichTextGraphicAttribute } from './core';\nimport { RichText, container, graphicCreator, richtextModule } from './core';\nimport { browser } from './isbrowser';\nimport { richTextMathPickModule, richtextCanvasPickModule } from './kits';\n\nexport function createRichText(attributes: IRichTextGraphicAttribute): IRichText {\n return new RichText(attributes);\n}\n\nexport function registerRichtext() {\n graphicCreator.RegisterGraphicCreator('richtext', createRichText);\n container.load(richtextModule);\n container.load(browser ? richtextCanvasPickModule : richTextMathPickModule);\n}\n"]}
@@ -0,0 +1,3 @@
1
+ import type { ISymbol, ISymbolGraphicAttribute } from './core';
2
+ export declare function createSymbol(attributes: ISymbolGraphicAttribute): ISymbol;
3
+ export declare function registerSymbol(): void;
@@ -0,0 +1,15 @@
1
+ import { Symbol as MarkSymbol, container, graphicCreator, symbolModule } from "./core";
2
+
3
+ import { browser } from "./isbrowser";
4
+
5
+ import { symbolCanvasPickModule, symbolMathPickModule } from "./kits";
6
+
7
+ export function createSymbol(attributes) {
8
+ return new MarkSymbol(attributes);
9
+ }
10
+
11
+ export function registerSymbol() {
12
+ graphicCreator.RegisterGraphicCreator("symbol", createSymbol), container.load(symbolModule),
13
+ container.load(browser ? symbolCanvasPickModule : symbolMathPickModule);
14
+ }
15
+ //# sourceMappingURL=register-symbol.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/register-symbol.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,SAAS,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACvF,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAAC;AAEtE,MAAM,UAAU,YAAY,CAAC,UAAmC;IAC9D,OAAO,IAAI,UAAU,CAAC,UAAU,CAAC,CAAC;AACpC,CAAC;AAED,MAAM,UAAU,cAAc;IAC5B,cAAc,CAAC,sBAAsB,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;IAC9D,SAAS,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IAC7B,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC;AAC1E,CAAC","file":"register-symbol.js","sourcesContent":["import type { ISymbol, ISymbolGraphicAttribute } from './core';\nimport { Symbol as MarkSymbol, container, graphicCreator, symbolModule } from './core';\nimport { browser } from './isbrowser';\nimport { symbolCanvasPickModule, symbolMathPickModule } from './kits';\n\nexport function createSymbol(attributes: ISymbolGraphicAttribute): ISymbol {\n return new MarkSymbol(attributes);\n}\n\nexport function registerSymbol() {\n graphicCreator.RegisterGraphicCreator('symbol', createSymbol);\n container.load(symbolModule);\n container.load(browser ? symbolCanvasPickModule : symbolMathPickModule);\n}\n"]}
@@ -0,0 +1,3 @@
1
+ import type { ITextGraphicAttribute, IText } from './core';
2
+ export declare function createText(attributes: ITextGraphicAttribute): IText;
3
+ export declare function registerText(): void;
@@ -0,0 +1,15 @@
1
+ import { Text, container, graphicCreator, textModule } from "./core";
2
+
3
+ import { browser } from "./isbrowser";
4
+
5
+ import { textCanvasPickModule, textMathPickModule } from "./kits";
6
+
7
+ export function createText(attributes) {
8
+ return new Text(attributes);
9
+ }
10
+
11
+ export function registerText() {
12
+ graphicCreator.RegisterGraphicCreator("text", createText), container.load(textModule),
13
+ container.load(browser ? textCanvasPickModule : textMathPickModule);
14
+ }
15
+ //# sourceMappingURL=register-text.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/register-text.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,cAAc,EAAE,UAAU,EAA4C,MAAM,QAAQ,CAAC;AAC/G,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAElE,MAAM,UAAU,UAAU,CAAC,UAAiC;IAC1D,OAAO,IAAI,IAAI,CAAC,UAAU,CAAC,CAAC;AAC9B,CAAC;AAED,MAAM,UAAU,YAAY;IAC1B,cAAc,CAAC,sBAAsB,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IAC1D,SAAS,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAC3B,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC;AACtE,CAAC","file":"register-text.js","sourcesContent":["import type { ITextGraphicAttribute, IText } from './core';\nimport { Text, container, graphicCreator, textModule, IRect3dGraphicAttribute, IRect3d, Rect3d } from './core';\nimport { browser } from './isbrowser';\nimport { textCanvasPickModule, textMathPickModule } from './kits';\n\nexport function createText(attributes: ITextGraphicAttribute): IText {\n return new Text(attributes);\n}\n\nexport function registerText() {\n graphicCreator.RegisterGraphicCreator('text', createText);\n container.load(textModule);\n container.load(browser ? textCanvasPickModule : textMathPickModule);\n}\n"]}
package/es/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';