k-vtable 1.0.36 → 1.0.38

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 (225) hide show
  1. package/cjs/ListTable.d.ts +3 -1
  2. package/cjs/ListTable.js +35 -4
  3. package/cjs/ListTable.js.map +1 -1
  4. package/cjs/PivotTable.js +12 -6
  5. package/cjs/PivotTable.js.map +1 -1
  6. package/cjs/body-helper/body-helper.d.ts +1 -0
  7. package/cjs/body-helper/body-helper.js +4 -3
  8. package/cjs/body-helper/body-helper.js.map +1 -1
  9. package/cjs/body-helper/style.js +2 -1
  10. package/cjs/components/legend/discrete-legend/discrete-legend.d.ts +1 -1
  11. package/cjs/core/BaseTable.d.ts +1 -0
  12. package/cjs/core/BaseTable.js +36 -28
  13. package/cjs/core/BaseTable.js.map +1 -1
  14. package/cjs/core/row-series-number-helper.d.ts +1 -0
  15. package/cjs/core/row-series-number-helper.js +3 -1
  16. package/cjs/core/row-series-number-helper.js.map +1 -1
  17. package/cjs/data/CachedDataSource.js +5 -3
  18. package/cjs/data/CachedDataSource.js.map +1 -1
  19. package/cjs/data/DataSource.js +1 -2
  20. package/cjs/dataset/DataStatistics.js +2 -1
  21. package/cjs/event/event.js +3 -1
  22. package/cjs/event/event.js.map +1 -1
  23. package/cjs/event/listener/table-group.js +52 -52
  24. package/cjs/event/listener/table-group.js.map +1 -1
  25. package/cjs/header-helper/header-helper.d.ts +1 -0
  26. package/cjs/header-helper/header-helper.js +4 -3
  27. package/cjs/header-helper/header-helper.js.map +1 -1
  28. package/cjs/header-helper/style.js +2 -1
  29. package/cjs/index.d.ts +1 -1
  30. package/cjs/index.js +1 -1
  31. package/cjs/index.js.map +1 -1
  32. package/cjs/layout/pivot-header-layout.d.ts +2 -2
  33. package/cjs/layout/simple-header-layout.js +7 -7
  34. package/cjs/layout/simple-header-layout.js.map +1 -1
  35. package/cjs/plugins/custom-cell-style.js +1 -1
  36. package/cjs/plugins/list-tree-stick-cell.js +29 -3
  37. package/cjs/plugins/list-tree-stick-cell.js.map +1 -1
  38. package/cjs/scenegraph/animation/appear.js +18 -3
  39. package/cjs/scenegraph/animation/appear.js.map +1 -1
  40. package/cjs/scenegraph/component/custom.js +5 -5
  41. package/cjs/scenegraph/component/custom.js.map +1 -1
  42. package/cjs/scenegraph/component/menu.js +4 -4
  43. package/cjs/scenegraph/component/menu.js.map +1 -1
  44. package/cjs/scenegraph/component/table-component.js +41 -50
  45. package/cjs/scenegraph/component/table-component.js.map +1 -1
  46. package/cjs/scenegraph/component/util.d.ts +1 -0
  47. package/cjs/scenegraph/component/util.js +9 -3
  48. package/cjs/scenegraph/component/util.js.map +1 -1
  49. package/cjs/scenegraph/graphic/chart.d.ts +6 -1
  50. package/cjs/scenegraph/graphic/chart.js +38 -4
  51. package/cjs/scenegraph/graphic/chart.js.map +1 -1
  52. package/cjs/scenegraph/graphic/contributions/chart-render-helper.js +2 -1
  53. package/cjs/scenegraph/graphic/contributions/chart-render-helper.js.map +1 -1
  54. package/cjs/scenegraph/graphic/group.d.ts +3 -1
  55. package/cjs/scenegraph/graphic/group.js +21 -3
  56. package/cjs/scenegraph/graphic/group.js.map +1 -1
  57. package/cjs/scenegraph/group-creater/cell-helper.js +4 -3
  58. package/cjs/scenegraph/group-creater/cell-helper.js.map +1 -1
  59. package/cjs/scenegraph/group-creater/cell-type/button-cell.js +2 -2
  60. package/cjs/scenegraph/group-creater/cell-type/button-cell.js.map +1 -1
  61. package/cjs/scenegraph/group-creater/cell-type/chart-cell.js +4 -4
  62. package/cjs/scenegraph/group-creater/cell-type/chart-cell.js.map +1 -1
  63. package/cjs/scenegraph/group-creater/cell-type/checkbox-cell.js +2 -2
  64. package/cjs/scenegraph/group-creater/cell-type/checkbox-cell.js.map +1 -1
  65. package/cjs/scenegraph/group-creater/cell-type/image-cell.js +3 -3
  66. package/cjs/scenegraph/group-creater/cell-type/image-cell.js.map +1 -1
  67. package/cjs/scenegraph/group-creater/cell-type/radio-cell.js +2 -2
  68. package/cjs/scenegraph/group-creater/cell-type/radio-cell.js.map +1 -1
  69. package/cjs/scenegraph/group-creater/cell-type/spark-line-cell.js +2 -2
  70. package/cjs/scenegraph/group-creater/cell-type/spark-line-cell.js.map +1 -1
  71. package/cjs/scenegraph/group-creater/cell-type/switch-cell.js +2 -2
  72. package/cjs/scenegraph/group-creater/cell-type/switch-cell.js.map +1 -1
  73. package/cjs/scenegraph/group-creater/cell-type/text-cell.js +6 -6
  74. package/cjs/scenegraph/group-creater/cell-type/text-cell.js.map +1 -1
  75. package/cjs/scenegraph/group-creater/cell-type/video-cell.js +101 -12
  76. package/cjs/scenegraph/group-creater/cell-type/video-cell.js.map +1 -1
  77. package/cjs/scenegraph/group-creater/column-helper.js +4 -3
  78. package/cjs/scenegraph/group-creater/column-helper.js.map +1 -1
  79. package/cjs/scenegraph/layout/compute-col-width.js +1 -1
  80. package/cjs/scenegraph/layout/compute-col-width.js.map +1 -1
  81. package/cjs/scenegraph/layout/compute-row-height.js +1 -1
  82. package/cjs/scenegraph/layout/compute-row-height.js.map +1 -1
  83. package/cjs/scenegraph/layout/frozen.js +7 -3
  84. package/cjs/scenegraph/layout/frozen.js.map +1 -1
  85. package/cjs/scenegraph/layout/update-row.js +3 -3
  86. package/cjs/scenegraph/layout/update-row.js.map +1 -1
  87. package/cjs/scenegraph/runtime-contributions.d.ts +2 -0
  88. package/cjs/scenegraph/runtime-contributions.js +28 -0
  89. package/cjs/scenegraph/runtime-contributions.js.map +1 -0
  90. package/cjs/scenegraph/scenegraph.d.ts +4 -1
  91. package/cjs/scenegraph/scenegraph.js +45 -19
  92. package/cjs/scenegraph/scenegraph.js.map +1 -1
  93. package/cjs/scenegraph/utils/padding.d.ts +5 -2
  94. package/cjs/scenegraph/utils/padding.js +16 -13
  95. package/cjs/scenegraph/utils/padding.js.map +1 -1
  96. package/cjs/scenegraph/utils/text-icon-layout.d.ts +4 -0
  97. package/cjs/scenegraph/utils/text-icon-layout.js +23 -6
  98. package/cjs/scenegraph/utils/text-icon-layout.js.map +1 -1
  99. package/cjs/scenegraph/utils/text-measure.js.map +1 -1
  100. package/cjs/state/state.js +15 -15
  101. package/cjs/state/state.js.map +1 -1
  102. package/cjs/ts-types/base-table.d.ts +7 -1
  103. package/cjs/ts-types/base-table.js.map +1 -1
  104. package/cjs/ts-types/table-engine.d.ts +1 -1
  105. package/cjs/ts-types/table-engine.js.map +1 -1
  106. package/cjs/vrender-app.d.ts +20 -0
  107. package/cjs/vrender-app.js +141 -0
  108. package/cjs/vrender-app.js.map +1 -0
  109. package/cjs/vrender.d.ts +17 -1
  110. package/cjs/vrender.js +36 -15
  111. package/cjs/vrender.js.map +1 -1
  112. package/dist/vtable.js +106132 -96834
  113. package/dist/vtable.min.js +1 -1
  114. package/es/ListTable.d.ts +3 -1
  115. package/es/ListTable.js +34 -3
  116. package/es/ListTable.js.map +1 -1
  117. package/es/PivotTable.js +12 -6
  118. package/es/PivotTable.js.map +1 -1
  119. package/es/body-helper/body-helper.d.ts +1 -0
  120. package/es/body-helper/body-helper.js +4 -3
  121. package/es/body-helper/body-helper.js.map +1 -1
  122. package/es/body-helper/style.js +2 -1
  123. package/es/components/legend/discrete-legend/discrete-legend.d.ts +1 -1
  124. package/es/core/BaseTable.d.ts +1 -0
  125. package/es/core/BaseTable.js +38 -30
  126. package/es/core/BaseTable.js.map +1 -1
  127. package/es/core/row-series-number-helper.d.ts +1 -0
  128. package/es/core/row-series-number-helper.js +3 -1
  129. package/es/core/row-series-number-helper.js.map +1 -1
  130. package/es/data/CachedDataSource.js +5 -3
  131. package/es/data/CachedDataSource.js.map +1 -1
  132. package/es/data/DataSource.js +1 -2
  133. package/es/dataset/DataStatistics.js +2 -1
  134. package/es/event/event.js +3 -1
  135. package/es/event/event.js.map +1 -1
  136. package/es/event/listener/table-group.js +52 -52
  137. package/es/event/listener/table-group.js.map +1 -1
  138. package/es/header-helper/header-helper.d.ts +1 -0
  139. package/es/header-helper/header-helper.js +4 -3
  140. package/es/header-helper/header-helper.js.map +1 -1
  141. package/es/header-helper/style.js +2 -1
  142. package/es/index.d.ts +1 -1
  143. package/es/index.js +1 -1
  144. package/es/index.js.map +1 -1
  145. package/es/layout/pivot-header-layout.d.ts +2 -2
  146. package/es/layout/simple-header-layout.js +7 -7
  147. package/es/layout/simple-header-layout.js.map +1 -1
  148. package/es/plugins/custom-cell-style.js +1 -1
  149. package/es/plugins/list-tree-stick-cell.js +32 -2
  150. package/es/plugins/list-tree-stick-cell.js.map +1 -1
  151. package/es/scenegraph/animation/appear.js +18 -3
  152. package/es/scenegraph/animation/appear.js.map +1 -1
  153. package/es/scenegraph/component/custom.js +5 -5
  154. package/es/scenegraph/component/custom.js.map +1 -1
  155. package/es/scenegraph/component/menu.js +4 -4
  156. package/es/scenegraph/component/menu.js.map +1 -1
  157. package/es/scenegraph/component/table-component.js +41 -51
  158. package/es/scenegraph/component/table-component.js.map +1 -1
  159. package/es/scenegraph/component/util.d.ts +1 -0
  160. package/es/scenegraph/component/util.js +6 -0
  161. package/es/scenegraph/component/util.js.map +1 -1
  162. package/es/scenegraph/graphic/chart.d.ts +6 -1
  163. package/es/scenegraph/graphic/chart.js +39 -3
  164. package/es/scenegraph/graphic/chart.js.map +1 -1
  165. package/es/scenegraph/graphic/contributions/chart-render-helper.js +2 -1
  166. package/es/scenegraph/graphic/contributions/chart-render-helper.js.map +1 -1
  167. package/es/scenegraph/graphic/group.d.ts +3 -1
  168. package/es/scenegraph/graphic/group.js +21 -3
  169. package/es/scenegraph/graphic/group.js.map +1 -1
  170. package/es/scenegraph/group-creater/cell-helper.js +4 -3
  171. package/es/scenegraph/group-creater/cell-helper.js.map +1 -1
  172. package/es/scenegraph/group-creater/cell-type/button-cell.js +2 -2
  173. package/es/scenegraph/group-creater/cell-type/button-cell.js.map +1 -1
  174. package/es/scenegraph/group-creater/cell-type/chart-cell.js +4 -4
  175. package/es/scenegraph/group-creater/cell-type/chart-cell.js.map +1 -1
  176. package/es/scenegraph/group-creater/cell-type/checkbox-cell.js +2 -2
  177. package/es/scenegraph/group-creater/cell-type/checkbox-cell.js.map +1 -1
  178. package/es/scenegraph/group-creater/cell-type/image-cell.js +3 -3
  179. package/es/scenegraph/group-creater/cell-type/image-cell.js.map +1 -1
  180. package/es/scenegraph/group-creater/cell-type/radio-cell.js +2 -2
  181. package/es/scenegraph/group-creater/cell-type/radio-cell.js.map +1 -1
  182. package/es/scenegraph/group-creater/cell-type/spark-line-cell.js +2 -2
  183. package/es/scenegraph/group-creater/cell-type/spark-line-cell.js.map +1 -1
  184. package/es/scenegraph/group-creater/cell-type/switch-cell.js +2 -2
  185. package/es/scenegraph/group-creater/cell-type/switch-cell.js.map +1 -1
  186. package/es/scenegraph/group-creater/cell-type/text-cell.js +5 -5
  187. package/es/scenegraph/group-creater/cell-type/text-cell.js.map +1 -1
  188. package/es/scenegraph/group-creater/cell-type/video-cell.js +99 -12
  189. package/es/scenegraph/group-creater/cell-type/video-cell.js.map +1 -1
  190. package/es/scenegraph/group-creater/column-helper.js +4 -3
  191. package/es/scenegraph/group-creater/column-helper.js.map +1 -1
  192. package/es/scenegraph/layout/compute-col-width.js +1 -1
  193. package/es/scenegraph/layout/compute-col-width.js.map +1 -1
  194. package/es/scenegraph/layout/compute-row-height.js +1 -1
  195. package/es/scenegraph/layout/compute-row-height.js.map +1 -1
  196. package/es/scenegraph/layout/frozen.js +7 -3
  197. package/es/scenegraph/layout/frozen.js.map +1 -1
  198. package/es/scenegraph/layout/update-row.js +3 -3
  199. package/es/scenegraph/layout/update-row.js.map +1 -1
  200. package/es/scenegraph/runtime-contributions.d.ts +2 -0
  201. package/es/scenegraph/runtime-contributions.js +20 -0
  202. package/es/scenegraph/runtime-contributions.js.map +1 -0
  203. package/es/scenegraph/scenegraph.d.ts +4 -1
  204. package/es/scenegraph/scenegraph.js +47 -19
  205. package/es/scenegraph/scenegraph.js.map +1 -1
  206. package/es/scenegraph/utils/padding.d.ts +5 -2
  207. package/es/scenegraph/utils/padding.js +13 -9
  208. package/es/scenegraph/utils/padding.js.map +1 -1
  209. package/es/scenegraph/utils/text-icon-layout.d.ts +4 -0
  210. package/es/scenegraph/utils/text-icon-layout.js +18 -2
  211. package/es/scenegraph/utils/text-icon-layout.js.map +1 -1
  212. package/es/scenegraph/utils/text-measure.js.map +1 -1
  213. package/es/state/state.js +15 -13
  214. package/es/state/state.js.map +1 -1
  215. package/es/ts-types/base-table.d.ts +7 -1
  216. package/es/ts-types/base-table.js.map +1 -1
  217. package/es/ts-types/table-engine.d.ts +1 -1
  218. package/es/ts-types/table-engine.js.map +1 -1
  219. package/es/vrender-app.d.ts +20 -0
  220. package/es/vrender-app.js +161 -0
  221. package/es/vrender-app.js.map +1 -0
  222. package/es/vrender.d.ts +17 -1
  223. package/es/vrender.js +27 -8
  224. package/es/vrender.js.map +1 -1
  225. package/package.json +11 -10
@@ -0,0 +1,161 @@
1
+ import { acquireSharedVRenderApp } from "@visactor/vrender/entries/shared";
2
+
3
+ import { installPoptipToApp } from "@visactor/vrender-components";
4
+
5
+ import { installBrowserEnvToApp, installFeishuEnvToApp, installHarmonyEnvToApp, installLynxEnvToApp, installNodeEnvToApp, installTaroEnvToApp, installTTEnvToApp, installWxEnvToApp } from "@visactor/vrender-kits/installers/app";
6
+
7
+ import { loadBrowserEnv } from "@visactor/vrender-kits/env/browser";
8
+
9
+ import { loadFeishuEnv } from "@visactor/vrender-kits/env/feishu";
10
+
11
+ import { loadHarmonyEnv } from "@visactor/vrender-kits/env/harmony";
12
+
13
+ import { loadLynxEnv } from "@visactor/vrender-kits/env/lynx";
14
+
15
+ import { loadNodeEnv } from "@visactor/vrender-kits/env/node";
16
+
17
+ import { loadTaroEnv } from "@visactor/vrender-kits/env/taro";
18
+
19
+ import { loadTTEnv } from "@visactor/vrender-kits/env/tt";
20
+
21
+ import { loadWxEnv } from "@visactor/vrender-kits/env/wx";
22
+
23
+ import { vglobal } from "@visactor/vrender-core";
24
+
25
+ import { Env } from "./tools/env";
26
+
27
+ import { installVTableRuntimeContributions } from "./scenegraph/runtime-contributions";
28
+
29
+ const envParamsKeyMap = new WeakMap;
30
+
31
+ let envParamsKeyId = 0;
32
+
33
+ const getVRenderAppEnv = mode => "desktop-browser" === mode ? "browser" : null != mode ? mode : "node" === Env.mode ? "node" : "browser", getEnvParamsKey = envParams => {
34
+ if (null == envParams) return "default";
35
+ if ("object" == typeof envParams || "function" == typeof envParams) {
36
+ const envParamsObject = envParams, existingKey = envParamsKeyMap.get(envParamsObject);
37
+ return null != existingKey ? `object:${existingKey}` : (envParamsKeyId += 1, envParamsKeyMap.set(envParamsObject, envParamsKeyId),
38
+ `object:${envParamsKeyId}`);
39
+ }
40
+ return `primitive:${String(envParams)}`;
41
+ }, getVRenderAppKey = (env, scope, envParams) => `${env}:${null != scope ? scope : "default"}:${getEnvParamsKey(envParams)}`, getForcedEnvParams = envParams => null == envParams || "object" != typeof envParams && "function" != typeof envParams ? {
42
+ force: !0
43
+ } : Object.assign(Object.create(envParams), {
44
+ force: !0
45
+ }), activateLegacyVGlobalEnv = (env, envParams) => {
46
+ switch (env) {
47
+ case "node":
48
+ loadNodeEnv();
49
+ break;
50
+
51
+ case "wx":
52
+ loadWxEnv();
53
+ break;
54
+
55
+ case "lynx":
56
+ loadLynxEnv();
57
+ break;
58
+
59
+ case "harmony":
60
+ loadHarmonyEnv();
61
+ break;
62
+
63
+ case "taro":
64
+ loadTaroEnv();
65
+ break;
66
+
67
+ case "feishu":
68
+ loadFeishuEnv();
69
+ break;
70
+
71
+ case "tt":
72
+ loadTTEnv();
73
+ break;
74
+
75
+ default:
76
+ loadBrowserEnv();
77
+ }
78
+ vglobal.setEnv(env, getForcedEnvParams(envParams));
79
+ }, activateSharedVRenderAppEnv = (app, env, envParams) => {
80
+ switch (env) {
81
+ case "node":
82
+ installNodeEnvToApp(app, envParams);
83
+ break;
84
+
85
+ case "wx":
86
+ installWxEnvToApp(app, envParams);
87
+ break;
88
+
89
+ case "lynx":
90
+ installLynxEnvToApp(app, envParams);
91
+ break;
92
+
93
+ case "harmony":
94
+ installHarmonyEnvToApp(app, envParams);
95
+ break;
96
+
97
+ case "taro":
98
+ installTaroEnvToApp(app, envParams);
99
+ break;
100
+
101
+ case "feishu":
102
+ installFeishuEnvToApp(app, envParams);
103
+ break;
104
+
105
+ case "tt":
106
+ installTTEnvToApp(app, envParams);
107
+ break;
108
+
109
+ default:
110
+ installBrowserEnvToApp(app, envParams);
111
+ }
112
+ activateLegacyVGlobalEnv(env, envParams), installPoptipToApp(app);
113
+ }, retainDefaultVRenderApp = (env, scope, envParams) => {
114
+ const key = getVRenderAppKey(env, scope, envParams), sharedOptions = Object.assign({
115
+ env: env,
116
+ key: key
117
+ }, null == envParams ? void 0 : {
118
+ envParams: envParams
119
+ }), handle = acquireSharedVRenderApp(sharedOptions);
120
+ let released = !1;
121
+ return activateSharedVRenderAppEnv(handle.app, env, envParams), {
122
+ app: handle.app,
123
+ releaseAppRef: () => {
124
+ released || (released = !0, handle.release());
125
+ }
126
+ };
127
+ }, resolveVRenderApp = (options = {}) => {
128
+ return options.app ? {
129
+ app: options.app,
130
+ appOwned: !1,
131
+ releaseAppRef: () => {}
132
+ } : Object.assign(Object.assign({}, retainDefaultVRenderApp("desktop-browser" === (mode = options.mode) ? "browser" : null != mode ? mode : "node" === Env.mode ? "node" : "browser", options.scope, options.envParams)), {
133
+ appOwned: !0
134
+ });
135
+ var mode;
136
+ };
137
+
138
+ export function createStageFromVRenderApp(params, options = {}) {
139
+ if (options.stage) return {
140
+ app: options.app,
141
+ stage: options.stage,
142
+ releaseAppRef: () => {},
143
+ stageOwned: !1,
144
+ appOwned: !1
145
+ };
146
+ const resolvedApp = resolveVRenderApp(options);
147
+ try {
148
+ installVTableRuntimeContributions(resolvedApp.app);
149
+ const stage = resolvedApp.app.createStage(params);
150
+ return {
151
+ app: resolvedApp.app,
152
+ stage: stage,
153
+ releaseAppRef: resolvedApp.releaseAppRef,
154
+ stageOwned: !0,
155
+ appOwned: resolvedApp.appOwned
156
+ };
157
+ } catch (error) {
158
+ throw resolvedApp.releaseAppRef(), error;
159
+ }
160
+ }
161
+ //# sourceMappingURL=vrender-app.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/vrender-app.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EACL,sBAAsB,EACtB,qBAAqB,EACrB,sBAAsB,EACtB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,iBAAiB,EACjB,iBAAiB,EAClB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAE1D,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAEjD,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAClC,OAAO,EAAE,iCAAiC,EAAE,MAAM,oCAAoC,CAAC;AAqBvF,MAAM,eAAe,GAAG,IAAI,OAAO,EAAkB,CAAC;AACtD,IAAI,cAAc,GAAG,CAAC,CAAC;AAEvB,MAAM,gBAAgB,GAAG,CAAC,IAAuB,EAAiB,EAAE;IAClE,IAAI,IAAI,KAAK,iBAAiB,EAAE;QAC9B,OAAO,SAAS,CAAC;KAClB;IAED,OAAO,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,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O,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,KAAK,EAAE,OAAO,CAAC,SAAS,CAAC,KAC5F,QAAQ,EAAE,IAAI,IACd;AACJ,CAAC,CAAC;AAEF,MAAM,UAAU,yBAAyB,CACvC,MAA6B,EAC7B,UAAkC,EAAE;IAEpC,IAAI,OAAO,CAAC,KAAK,EAAE;QACjB,OAAO;YACL,GAAG,EAAE,OAAO,CAAC,GAAG;YAChB,KAAK,EAAE,OAAO,CAAC,KAAK;YACpB,aAAa,EAAE,GAAS,EAAE,CAAC,SAAS;YACpC,UAAU,EAAE,KAAK;YACjB,QAAQ,EAAE,KAAK;SAChB,CAAC;KACH;IAED,MAAM,WAAW,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;IAE/C,IAAI;QACF,iCAAiC,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;QACnD,MAAM,KAAK,GAAG,WAAW,CAAC,GAAG,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;QAElD,OAAO;YACL,GAAG,EAAE,WAAW,CAAC,GAAG;YACpB,KAAK;YACL,aAAa,EAAE,WAAW,CAAC,aAAa;YACxC,UAAU,EAAE,IAAI;YAChB,QAAQ,EAAE,WAAW,CAAC,QAAQ;SAC/B,CAAC;KACH;IAAC,OAAO,KAAK,EAAE;QACd,WAAW,CAAC,aAAa,EAAE,CAAC;QAC5B,MAAM,KAAK,CAAC;KACb;AACH,CAAC","file":"vrender-app.js","sourcesContent":["import { acquireSharedVRenderApp } from '@visactor/vrender/entries/shared';\nimport { installPoptipToApp } from '@visactor/vrender-components';\nimport {\n installBrowserEnvToApp,\n installFeishuEnvToApp,\n installHarmonyEnvToApp,\n installLynxEnvToApp,\n installNodeEnvToApp,\n installTaroEnvToApp,\n installTTEnvToApp,\n installWxEnvToApp\n} from '@visactor/vrender-kits/installers/app';\nimport { loadBrowserEnv } from '@visactor/vrender-kits/env/browser';\nimport { loadFeishuEnv } from '@visactor/vrender-kits/env/feishu';\nimport { loadHarmonyEnv } from '@visactor/vrender-kits/env/harmony';\nimport { loadLynxEnv } from '@visactor/vrender-kits/env/lynx';\nimport { loadNodeEnv } from '@visactor/vrender-kits/env/node';\nimport { loadTaroEnv } from '@visactor/vrender-kits/env/taro';\nimport { loadTTEnv } from '@visactor/vrender-kits/env/tt';\nimport { loadWxEnv } from '@visactor/vrender-kits/env/wx';\nimport type { TVRenderSharedAppEnv, TVRenderSharedAppOptions } from '@visactor/vrender/entries/shared';\nimport { vglobal } from '@visactor/vrender-core';\nimport type { IApp, IEnvParamsMap, IStage, IStageParams } from '@visactor/vrender-core';\nimport { Env } from './tools/env';\nimport { installVTableRuntimeContributions } from './scenegraph/runtime-contributions';\n\ntype VRenderAppEnv = TVRenderSharedAppEnv;\ntype VRenderStageMode = VRenderAppEnv | 'desktop-browser';\n\nexport type VRenderStageAppOptions = {\n mode?: VRenderStageMode;\n scope?: string;\n app?: IApp;\n stage?: IStage;\n envParams?: IEnvParamsMap[VRenderAppEnv];\n};\n\nexport type VRenderStageAppRef = {\n app?: IApp;\n stage: IStage;\n releaseAppRef: () => void;\n stageOwned: boolean;\n appOwned: boolean;\n};\n\nconst envParamsKeyMap = new WeakMap<object, number>();\nlet envParamsKeyId = 0;\n\nconst getVRenderAppEnv = (mode?: VRenderStageMode): VRenderAppEnv => {\n if (mode === 'desktop-browser') {\n return 'browser';\n }\n\n return mode ?? (Env.mode === 'node' ? 'node' : 'browser');\n};\n\nconst getEnvParamsKey = (envParams?: IEnvParamsMap[VRenderAppEnv]): string => {\n if (envParams == null) {\n return 'default';\n }\n\n if (typeof envParams === 'object' || typeof envParams === 'function') {\n const envParamsObject = envParams as object;\n const existingKey = envParamsKeyMap.get(envParamsObject);\n\n if (existingKey != null) {\n return `object:${existingKey}`;\n }\n\n envParamsKeyId += 1;\n envParamsKeyMap.set(envParamsObject, envParamsKeyId);\n return `object:${envParamsKeyId}`;\n }\n\n return `primitive:${String(envParams)}`;\n};\n\nconst getVRenderAppKey = (env: VRenderAppEnv, scope?: string, envParams?: IEnvParamsMap[VRenderAppEnv]): string =>\n `${env}:${scope ?? 'default'}:${getEnvParamsKey(envParams)}`;\n\nconst getForcedEnvParams = (\n envParams?: IEnvParamsMap[VRenderAppEnv]\n): IEnvParamsMap[VRenderAppEnv] & { force: true } => {\n if (envParams != null && (typeof envParams === 'object' || typeof envParams === 'function')) {\n return Object.assign(Object.create(envParams as object), { force: true });\n }\n\n return { force: true } as IEnvParamsMap[VRenderAppEnv] & { force: true };\n};\n\nconst activateLegacyVGlobalEnv = (env: VRenderAppEnv, envParams?: IEnvParamsMap[VRenderAppEnv]): void => {\n switch (env) {\n case 'node':\n loadNodeEnv();\n break;\n case 'wx':\n loadWxEnv();\n break;\n case 'lynx':\n loadLynxEnv();\n break;\n case 'harmony':\n loadHarmonyEnv();\n break;\n case 'taro':\n loadTaroEnv();\n break;\n case 'feishu':\n loadFeishuEnv();\n break;\n case 'tt':\n loadTTEnv();\n break;\n case 'browser':\n default:\n loadBrowserEnv();\n break;\n }\n\n vglobal.setEnv(env, getForcedEnvParams(envParams));\n};\n\nconst activateSharedVRenderAppEnv = (app: IApp, env: VRenderAppEnv, envParams?: IEnvParamsMap[VRenderAppEnv]): void => {\n switch (env) {\n case 'node':\n installNodeEnvToApp(app, envParams as IEnvParamsMap['node']);\n break;\n case 'wx':\n installWxEnvToApp(app, envParams as IEnvParamsMap['wx']);\n break;\n case 'lynx':\n installLynxEnvToApp(app, envParams as IEnvParamsMap['lynx']);\n break;\n case 'harmony':\n installHarmonyEnvToApp(app, envParams as IEnvParamsMap['harmony']);\n break;\n case 'taro':\n installTaroEnvToApp(app, envParams as IEnvParamsMap['taro']);\n break;\n case 'feishu':\n installFeishuEnvToApp(app, envParams as IEnvParamsMap['feishu']);\n break;\n case 'tt':\n installTTEnvToApp(app, envParams as IEnvParamsMap['tt']);\n break;\n case 'browser':\n default:\n installBrowserEnvToApp(app, envParams as IEnvParamsMap['browser']);\n break;\n }\n\n activateLegacyVGlobalEnv(env, envParams);\n installPoptipToApp(app);\n};\n\nconst retainDefaultVRenderApp = (env: VRenderAppEnv, scope?: string, envParams?: IEnvParamsMap[VRenderAppEnv]) => {\n const key = getVRenderAppKey(env, scope, envParams);\n const sharedOptions = {\n env,\n key,\n ...(envParams == null ? undefined : { envParams })\n } as TVRenderSharedAppOptions<VRenderAppEnv>;\n const handle = acquireSharedVRenderApp(sharedOptions);\n let released = false;\n\n activateSharedVRenderAppEnv(handle.app, env, envParams);\n\n return {\n app: handle.app,\n releaseAppRef: () => {\n if (released) {\n return;\n }\n released = true;\n handle.release();\n }\n };\n};\n\nconst resolveVRenderApp = (options: VRenderStageAppOptions = {}) => {\n if (options.app) {\n return {\n app: options.app,\n appOwned: false,\n releaseAppRef: (): void => undefined\n };\n }\n\n return {\n ...retainDefaultVRenderApp(getVRenderAppEnv(options.mode), options.scope, options.envParams),\n appOwned: true\n };\n};\n\nexport function createStageFromVRenderApp(\n params: Partial<IStageParams>,\n options: VRenderStageAppOptions = {}\n): VRenderStageAppRef {\n if (options.stage) {\n return {\n app: options.app,\n stage: options.stage,\n releaseAppRef: (): void => undefined,\n stageOwned: false,\n appOwned: false\n };\n }\n\n const resolvedApp = resolveVRenderApp(options);\n\n try {\n installVTableRuntimeContributions(resolvedApp.app);\n const stage = resolvedApp.app.createStage(params);\n\n return {\n app: resolvedApp.app,\n stage,\n releaseAppRef: resolvedApp.releaseAppRef,\n stageOwned: true,\n appOwned: resolvedApp.appOwned\n };\n } catch (error) {\n resolvedApp.releaseAppRef();\n throw error;\n }\n}\n"]}
package/es/vrender.d.ts CHANGED
@@ -1,7 +1,23 @@
1
- import '@visactor/vrender-core';
1
+ import { type ILegacyBindingContext, type ServiceIdentifier } from '@visactor/vrender-core';
2
2
  export declare function registerForVrender(): void;
3
+ type LegacyBind = ILegacyBindingContext['bind'];
4
+ type LegacyRebind = ILegacyBindingContext['rebind'];
5
+ type LegacyIsBound = ILegacyBindingContext['isBound'];
6
+ type LegacyContainerModuleHandler = (bind: LegacyBind, unbind: (serviceIdentifier: ServiceIdentifier<unknown>) => void, isBound: LegacyIsBound, rebind: LegacyRebind) => void;
7
+ export declare class ContainerModule {
8
+ readonly registry: LegacyContainerModuleHandler;
9
+ constructor(registry: LegacyContainerModuleHandler);
10
+ }
11
+ export declare const container: ILegacyBindingContext & {
12
+ load(module: ContainerModule | ((context: ILegacyBindingContext) => void)): void;
13
+ get<T>(serviceIdentifier: unknown): T;
14
+ };
15
+ export declare const injectable: () => <T>(target: T) => T;
16
+ export declare const inject: (_serviceIdentifier: unknown) => (..._args: unknown[]) => void;
17
+ export declare const named: (_name: unknown) => (..._args: unknown[]) => void;
3
18
  export type { Direction } from '@visactor/vrender-core';
4
19
  export type { State } from '@visactor/vrender-components';
20
+ export type { VRenderStageAppOptions, VRenderStageAppRef } from './vrender-app';
5
21
  export * from '@visactor/vrender-core';
6
22
  export * from '@visactor/vrender-kits';
7
23
  export * from '@visactor/vrender-components';
package/es/vrender.js CHANGED
@@ -1,20 +1,39 @@
1
1
  import { loadPoptip } from "@visactor/vrender-components";
2
2
 
3
- import "@visactor/vrender-core";
3
+ import { getRuntimeInstallerBindingContext } from "@visactor/vrender-core/entries/runtime-installer";
4
4
 
5
- import { container, isBrowserEnv, isNodeEnv, preLoadAllModule, registerFlexLayoutPlugin } from "@visactor/vrender-core";
6
-
7
- import { loadBrowserEnv, loadNodeEnv, registerArc, registerCircle, registerGroup, registerImage, registerLine, registerRect, registerRichtext, registerShadowRoot, registerSymbol, registerText } from "@visactor/vrender-kits";
5
+ import { container as legacyContainer } from "@visactor/vrender-core";
8
6
 
9
7
  let registed = !1;
10
8
 
11
9
  export function registerForVrender() {
12
- registed || (registed = !0, preLoadAllModule(), isBrowserEnv() ? loadBrowserEnv(container) : isNodeEnv() && loadNodeEnv(container),
13
- registerArc(), registerCircle(), registerGroup(), registerImage(), registerLine(),
14
- registerRect(), registerRichtext(), registerShadowRoot(), registerSymbol(), registerText(),
15
- registerFlexLayoutPlugin(), loadPoptip(), registerFlexLayoutPlugin());
10
+ registed || (registed = !0, loadPoptip());
11
+ }
12
+
13
+ export class ContainerModule {
14
+ constructor(registry) {
15
+ this.registry = registry;
16
+ }
16
17
  }
17
18
 
19
+ const unbindLegacyService = () => {};
20
+
21
+ export const container = Object.assign(legacyContainer, {
22
+ load(module) {
23
+ const runtimeInstallerContext = getRuntimeInstallerBindingContext();
24
+ if (module instanceof ContainerModule) return module.registry(legacyContainer.bind, unbindLegacyService, legacyContainer.isBound, legacyContainer.rebind),
25
+ void module.registry(runtimeInstallerContext.bind, unbindLegacyService, runtimeInstallerContext.isBound, runtimeInstallerContext.rebind);
26
+ module(legacyContainer), module(runtimeInstallerContext);
27
+ },
28
+ get: serviceIdentifier => legacyContainer.getAll(serviceIdentifier)[0]
29
+ });
30
+
31
+ export const injectable = () => target => target;
32
+
33
+ export const inject = _serviceIdentifier => (..._args) => {};
34
+
35
+ export const named = _name => (..._args) => {};
36
+
18
37
  export * from "@visactor/vrender-core";
19
38
 
20
39
  export * from "@visactor/vrender-kits";
package/es/vrender.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/vrender.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,wBAAwB,CAAC;AAChC,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,SAAS,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AACxH,OAAO,EACL,cAAc,EACd,WAAW,EACX,WAAW,EAGX,cAAc,EAEd,aAAa,EACb,aAAa,EACb,YAAY,EAIZ,YAAY,EAEZ,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,EACd,YAAY,EAEb,MAAM,wBAAwB,CAAC;AAIhC,IAAI,QAAQ,GAAG,KAAK,CAAC;AACrB,MAAM,UAAU,kBAAkB;IAChC,IAAI,QAAQ,EAAE;QACZ,OAAO;KACR;IACD,QAAQ,GAAG,IAAI,CAAC;IAEhB,gBAAgB,EAAE,CAAC;IAEnB,IAAI,YAAY,EAAE,EAAE;QAClB,cAAc,CAAC,SAAS,CAAC,CAAC;KAC3B;SAAM,IAAI,SAAS,EAAE,EAAE;QACtB,WAAW,CAAC,SAAS,CAAC,CAAC;KACxB;IACD,WAAW,EAAE,CAAC;IAGd,cAAc,EAAE,CAAC;IAEjB,aAAa,EAAE,CAAC;IAChB,aAAa,EAAE,CAAC;IAChB,YAAY,EAAE,CAAC;IAIf,YAAY,EAAE,CAAC;IAEf,gBAAgB,EAAE,CAAC;IACnB,kBAAkB,EAAE,CAAC;IACrB,cAAc,EAAE,CAAC;IACjB,YAAY,EAAE,CAAC;IACf,wBAAwB,EAAE,CAAC;IAE3B,UAAU,EAAE,CAAC;IAEb,wBAAwB,EAAE,CAAC;AAC7B,CAAC;AAOD,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC","file":"vrender.js","sourcesContent":["import { loadPoptip } from '@visactor/vrender-components';\nimport '@visactor/vrender-core';\nimport { container, isBrowserEnv, isNodeEnv, preLoadAllModule, registerFlexLayoutPlugin } from '@visactor/vrender-core';\nimport {\n loadBrowserEnv,\n loadNodeEnv,\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 '@visactor/vrender-kits';\n// 导出版本号\n// export const version = \"1.0.36\";\n\nlet registed = false;\nexport function registerForVrender() {\n if (registed) {\n return;\n }\n registed = true;\n // 注册内置组件\n preLoadAllModule();\n\n if (isBrowserEnv()) {\n loadBrowserEnv(container);\n } else if (isNodeEnv()) {\n loadNodeEnv(container);\n }\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 registerFlexLayoutPlugin();\n // registerWrapText();\n loadPoptip();\n\n registerFlexLayoutPlugin();\n}\n\nexport type { Direction } from '@visactor/vrender-core';\nexport type { State } from '@visactor/vrender-components';\n// export { GroupFadeIn } from '@visactor/vrender-core';\n// export { GroupFadeOut } from '@visactor/vrender-core';\n\nexport * from '@visactor/vrender-core';\nexport * from '@visactor/vrender-kits';\nexport * from '@visactor/vrender-components';\nexport * from '@visactor/vrender-animate';\n"]}
1
+ {"version":3,"sources":["../src/vrender.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAE,iCAAiC,EAAE,MAAM,kDAAkD,CAAC;AACrG,OAAO,EACL,SAAS,IAAI,eAAe,EAG7B,MAAM,wBAAwB,CAAC;AAIhC,IAAI,QAAQ,GAAG,KAAK,CAAC;AACrB,MAAM,UAAU,kBAAkB;IAChC,IAAI,QAAQ,EAAE;QACZ,OAAO;KACR;IACD,QAAQ,GAAG,IAAI,CAAC;IAGhB,UAAU,EAAE,CAAC;AACf,CAAC;AAYD,MAAM,OAAO,eAAe;IAC1B,YAA4B,QAAsC;QAAtC,aAAQ,GAAR,QAAQ,CAA8B;IAAG,CAAC;CACvE;AAED,MAAM,mBAAmB,GAAG,GAAS,EAAE,CAAC,SAAS,CAAC;AAElD,MAAM,CAAC,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,eAAe,EAAE;IACtD,IAAI,CAAC,MAAoE;QACvE,MAAM,uBAAuB,GAAG,iCAAiC,EAAE,CAAC;QAEpE,IAAI,MAAM,YAAY,eAAe,EAAE;YACrC,MAAM,CAAC,QAAQ,CAAC,eAAe,CAAC,IAAI,EAAE,mBAAmB,EAAE,eAAe,CAAC,OAAO,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;YAC5G,MAAM,CAAC,QAAQ,CACb,uBAAuB,CAAC,IAAI,EAC5B,mBAAmB,EACnB,uBAAuB,CAAC,OAAO,EAC/B,uBAAuB,CAAC,MAAM,CAC/B,CAAC;YACF,OAAO;SACR;QAED,MAAM,CAAC,eAAe,CAAC,CAAC;QACxB,MAAM,CAAC,uBAAuB,CAAC,CAAC;IAClC,CAAC;IACD,GAAG,CAAI,iBAA0B;QAC/B,OAAO,eAAe,CAAC,MAAM,CAAI,iBAA0B,CAAC,CAAC,CAAC,CAAC,CAAC;IAClE,CAAC;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,UAAU,GACrB,GAAG,EAAE,CACL,CAAI,MAAS,EAAK,EAAE,CAClB,MAAM,CAAC;AAEX,MAAM,CAAC,MAAM,MAAM,GACjB,CAAC,kBAA2B,EAAE,EAAE,CAChC,CAAC,GAAG,KAAgB,EAAQ,EAAE,CAC5B,SAAS,CAAC;AAEd,MAAM,CAAC,MAAM,KAAK,GAChB,CAAC,KAAc,EAAE,EAAE,CACnB,CAAC,GAAG,KAAgB,EAAQ,EAAE,CAC5B,SAAS,CAAC;AAQd,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC","file":"vrender.js","sourcesContent":["import { loadPoptip } from '@visactor/vrender-components';\nimport { getRuntimeInstallerBindingContext } from '@visactor/vrender-core/entries/runtime-installer';\nimport {\n container as legacyContainer,\n type ILegacyBindingContext,\n type ServiceIdentifier\n} from '@visactor/vrender-core';\n// 导出版本号\n// export const version = \"1.0.38\";\n\nlet registed = false;\nexport function registerForVrender() {\n if (registed) {\n return;\n }\n registed = true;\n // Default env and graphic bootstrap is owned by create*VRenderApp().\n // VTable keeps only component/custom assembly that is not covered by the app creator.\n loadPoptip();\n}\n\ntype LegacyBind = ILegacyBindingContext['bind'];\ntype LegacyRebind = ILegacyBindingContext['rebind'];\ntype LegacyIsBound = ILegacyBindingContext['isBound'];\ntype LegacyContainerModuleHandler = (\n bind: LegacyBind,\n unbind: (serviceIdentifier: ServiceIdentifier<unknown>) => void,\n isBound: LegacyIsBound,\n rebind: LegacyRebind\n) => void;\n\nexport class ContainerModule {\n constructor(public readonly registry: LegacyContainerModuleHandler) {}\n}\n\nconst unbindLegacyService = (): void => undefined;\n\nexport const container = Object.assign(legacyContainer, {\n load(module: ContainerModule | ((context: ILegacyBindingContext) => void)): void {\n const runtimeInstallerContext = getRuntimeInstallerBindingContext();\n\n if (module instanceof ContainerModule) {\n module.registry(legacyContainer.bind, unbindLegacyService, legacyContainer.isBound, legacyContainer.rebind);\n module.registry(\n runtimeInstallerContext.bind,\n unbindLegacyService,\n runtimeInstallerContext.isBound,\n runtimeInstallerContext.rebind\n );\n return;\n }\n\n module(legacyContainer);\n module(runtimeInstallerContext);\n },\n get<T>(serviceIdentifier: unknown): T {\n return legacyContainer.getAll<T>(serviceIdentifier as never)[0];\n }\n});\n\nexport const injectable =\n () =>\n <T>(target: T): T =>\n target;\n\nexport const inject =\n (_serviceIdentifier: unknown) =>\n (..._args: unknown[]): void =>\n undefined;\n\nexport const named =\n (_name: unknown) =>\n (..._args: unknown[]): void =>\n undefined;\n\nexport type { Direction } from '@visactor/vrender-core';\nexport type { State } from '@visactor/vrender-components';\nexport type { VRenderStageAppOptions, VRenderStageAppRef } from './vrender-app';\n// export { GroupFadeIn } from '@visactor/vrender-core';\n// export { GroupFadeOut } from '@visactor/vrender-core';\n\nexport * from '@visactor/vrender-core';\nexport * from '@visactor/vrender-kits';\nexport * from '@visactor/vrender-components';\nexport * from '@visactor/vrender-animate';\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "k-vtable",
3
- "version": "1.0.36",
3
+ "version": "1.0.38",
4
4
  "description": "canvas table width high performance",
5
5
  "keywords": [
6
6
  "grid",
@@ -52,11 +52,12 @@
52
52
  "fix-memory-limit": "cross-env LIMIT=10240 increase-memory-limit"
53
53
  },
54
54
  "dependencies": {
55
- "@visactor/vtable-editors": "1.26.0",
56
- "@visactor/vrender-core": "~1.0.41",
57
- "@visactor/vrender-kits": "~1.0.41",
58
- "@visactor/vrender-components": "~1.0.41",
59
- "@visactor/vrender-animate": "~1.0.41",
55
+ "@visactor/vtable-editors": "workspace:1.26.5",
56
+ "@visactor/vrender": "1.1.4",
57
+ "@visactor/vrender-core": "1.1.4",
58
+ "@visactor/vrender-kits": "1.1.4",
59
+ "@visactor/vrender-components": "1.1.4",
60
+ "@visactor/vrender-animate": "1.1.4",
60
61
  "@visactor/vutils": "~1.0.17",
61
62
  "@visactor/vscale": "~1.0.17",
62
63
  "@visactor/vdataset": "~1.0.17",
@@ -69,10 +70,10 @@
69
70
  "cross-env": "^7.0.3",
70
71
  "increase-memory-limit": "^1.0.7",
71
72
  "luxon": "*",
72
- "@visactor/vchart": "2.0.13-alpha.10",
73
- "@internal/bundler": "0.0.1",
74
- "@internal/eslint-config": "0.0.1",
75
- "@internal/ts-config": "0.0.1",
73
+ "@visactor/vchart": "2.1.3",
74
+ "@internal/bundler": "workspace:*",
75
+ "@internal/eslint-config": "workspace:*",
76
+ "@internal/ts-config": "workspace:*",
76
77
  "@rushstack/eslint-patch": "~1.1.4",
77
78
  "react": "18.2.0",
78
79
  "react-dom": "18.2.0",