k-vtable 1.0.37 → 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.
- package/cjs/ListTable.d.ts +2 -1
- package/cjs/ListTable.js +31 -10
- package/cjs/ListTable.js.map +1 -1
- package/cjs/body-helper/body-helper.d.ts +1 -0
- package/cjs/body-helper/body-helper.js +4 -3
- package/cjs/body-helper/body-helper.js.map +1 -1
- package/cjs/body-helper/style.js +2 -1
- package/cjs/components/legend/discrete-legend/discrete-legend.d.ts +1 -1
- package/cjs/core/BaseTable.d.ts +1 -0
- package/cjs/core/BaseTable.js +28 -22
- package/cjs/core/BaseTable.js.map +1 -1
- package/cjs/core/row-series-number-helper.d.ts +1 -0
- package/cjs/core/row-series-number-helper.js +3 -1
- package/cjs/core/row-series-number-helper.js.map +1 -1
- package/cjs/data/CachedDataSource.js +5 -3
- package/cjs/data/CachedDataSource.js.map +1 -1
- package/cjs/data/DataSource.js +1 -2
- package/cjs/dataset/DataStatistics.js +2 -1
- package/cjs/header-helper/header-helper.d.ts +1 -0
- package/cjs/header-helper/header-helper.js +4 -3
- package/cjs/header-helper/header-helper.js.map +1 -1
- package/cjs/header-helper/style.js +2 -1
- package/cjs/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/cjs/plugins/custom-cell-style.js +1 -1
- package/cjs/scenegraph/animation/appear.js +18 -3
- package/cjs/scenegraph/animation/appear.js.map +1 -1
- package/cjs/scenegraph/component/custom.js +3 -3
- package/cjs/scenegraph/component/custom.js.map +1 -1
- package/cjs/scenegraph/component/menu.js +4 -4
- package/cjs/scenegraph/component/menu.js.map +1 -1
- package/cjs/scenegraph/graphic/chart.d.ts +6 -1
- package/cjs/scenegraph/graphic/chart.js +38 -4
- package/cjs/scenegraph/graphic/chart.js.map +1 -1
- package/cjs/scenegraph/graphic/contributions/chart-render-helper.js +2 -1
- package/cjs/scenegraph/graphic/contributions/chart-render-helper.js.map +1 -1
- package/cjs/scenegraph/graphic/group.d.ts +3 -1
- package/cjs/scenegraph/graphic/group.js +21 -3
- package/cjs/scenegraph/graphic/group.js.map +1 -1
- package/cjs/scenegraph/group-creater/cell-helper.js +4 -3
- package/cjs/scenegraph/group-creater/cell-helper.js.map +1 -1
- package/cjs/scenegraph/group-creater/cell-type/button-cell.js +2 -2
- package/cjs/scenegraph/group-creater/cell-type/button-cell.js.map +1 -1
- package/cjs/scenegraph/group-creater/cell-type/chart-cell.js +4 -4
- package/cjs/scenegraph/group-creater/cell-type/chart-cell.js.map +1 -1
- package/cjs/scenegraph/group-creater/cell-type/checkbox-cell.js +2 -2
- package/cjs/scenegraph/group-creater/cell-type/checkbox-cell.js.map +1 -1
- package/cjs/scenegraph/group-creater/cell-type/image-cell.js +3 -3
- package/cjs/scenegraph/group-creater/cell-type/image-cell.js.map +1 -1
- package/cjs/scenegraph/group-creater/cell-type/radio-cell.js +2 -2
- package/cjs/scenegraph/group-creater/cell-type/radio-cell.js.map +1 -1
- package/cjs/scenegraph/group-creater/cell-type/spark-line-cell.js +2 -2
- package/cjs/scenegraph/group-creater/cell-type/spark-line-cell.js.map +1 -1
- package/cjs/scenegraph/group-creater/cell-type/switch-cell.js +2 -2
- package/cjs/scenegraph/group-creater/cell-type/switch-cell.js.map +1 -1
- package/cjs/scenegraph/group-creater/cell-type/text-cell.js +6 -6
- package/cjs/scenegraph/group-creater/cell-type/text-cell.js.map +1 -1
- package/cjs/scenegraph/group-creater/cell-type/video-cell.js +101 -12
- package/cjs/scenegraph/group-creater/cell-type/video-cell.js.map +1 -1
- package/cjs/scenegraph/group-creater/column-helper.js +4 -3
- package/cjs/scenegraph/group-creater/column-helper.js.map +1 -1
- package/cjs/scenegraph/layout/update-row.js +3 -3
- package/cjs/scenegraph/layout/update-row.js.map +1 -1
- package/cjs/scenegraph/runtime-contributions.d.ts +2 -0
- package/cjs/scenegraph/runtime-contributions.js +28 -0
- package/cjs/scenegraph/runtime-contributions.js.map +1 -0
- package/cjs/scenegraph/scenegraph.d.ts +4 -1
- package/cjs/scenegraph/scenegraph.js +40 -16
- package/cjs/scenegraph/scenegraph.js.map +1 -1
- package/cjs/scenegraph/utils/text-icon-layout.d.ts +4 -0
- package/cjs/scenegraph/utils/text-icon-layout.js +23 -6
- package/cjs/scenegraph/utils/text-icon-layout.js.map +1 -1
- package/cjs/scenegraph/utils/text-measure.js.map +1 -1
- package/cjs/ts-types/base-table.d.ts +7 -1
- package/cjs/ts-types/base-table.js.map +1 -1
- package/cjs/ts-types/table-engine.d.ts +1 -1
- package/cjs/ts-types/table-engine.js.map +1 -1
- package/cjs/vrender-app.d.ts +20 -0
- package/cjs/vrender-app.js +141 -0
- package/cjs/vrender-app.js.map +1 -0
- package/cjs/vrender.d.ts +17 -1
- package/cjs/vrender.js +36 -15
- package/cjs/vrender.js.map +1 -1
- package/dist/vtable.js +106132 -96965
- package/dist/vtable.min.js +1 -1
- package/es/ListTable.d.ts +2 -1
- package/es/ListTable.js +30 -9
- package/es/ListTable.js.map +1 -1
- package/es/body-helper/body-helper.d.ts +1 -0
- package/es/body-helper/body-helper.js +4 -3
- package/es/body-helper/body-helper.js.map +1 -1
- package/es/body-helper/style.js +2 -1
- package/es/components/legend/discrete-legend/discrete-legend.d.ts +1 -1
- package/es/core/BaseTable.d.ts +1 -0
- package/es/core/BaseTable.js +30 -24
- package/es/core/BaseTable.js.map +1 -1
- package/es/core/row-series-number-helper.d.ts +1 -0
- package/es/core/row-series-number-helper.js +3 -1
- package/es/core/row-series-number-helper.js.map +1 -1
- package/es/data/CachedDataSource.js +5 -3
- package/es/data/CachedDataSource.js.map +1 -1
- package/es/data/DataSource.js +1 -2
- package/es/dataset/DataStatistics.js +2 -1
- package/es/header-helper/header-helper.d.ts +1 -0
- package/es/header-helper/header-helper.js +4 -3
- package/es/header-helper/header-helper.js.map +1 -1
- package/es/header-helper/style.js +2 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/es/plugins/custom-cell-style.js +1 -1
- package/es/scenegraph/animation/appear.js +18 -3
- package/es/scenegraph/animation/appear.js.map +1 -1
- package/es/scenegraph/component/custom.js +3 -3
- package/es/scenegraph/component/custom.js.map +1 -1
- package/es/scenegraph/component/menu.js +4 -4
- package/es/scenegraph/component/menu.js.map +1 -1
- package/es/scenegraph/graphic/chart.d.ts +6 -1
- package/es/scenegraph/graphic/chart.js +39 -3
- package/es/scenegraph/graphic/chart.js.map +1 -1
- package/es/scenegraph/graphic/contributions/chart-render-helper.js +2 -1
- package/es/scenegraph/graphic/contributions/chart-render-helper.js.map +1 -1
- package/es/scenegraph/graphic/group.d.ts +3 -1
- package/es/scenegraph/graphic/group.js +21 -3
- package/es/scenegraph/graphic/group.js.map +1 -1
- package/es/scenegraph/group-creater/cell-helper.js +4 -3
- package/es/scenegraph/group-creater/cell-helper.js.map +1 -1
- package/es/scenegraph/group-creater/cell-type/button-cell.js +2 -2
- package/es/scenegraph/group-creater/cell-type/button-cell.js.map +1 -1
- package/es/scenegraph/group-creater/cell-type/chart-cell.js +4 -4
- package/es/scenegraph/group-creater/cell-type/chart-cell.js.map +1 -1
- package/es/scenegraph/group-creater/cell-type/checkbox-cell.js +2 -2
- package/es/scenegraph/group-creater/cell-type/checkbox-cell.js.map +1 -1
- package/es/scenegraph/group-creater/cell-type/image-cell.js +3 -3
- package/es/scenegraph/group-creater/cell-type/image-cell.js.map +1 -1
- package/es/scenegraph/group-creater/cell-type/radio-cell.js +2 -2
- package/es/scenegraph/group-creater/cell-type/radio-cell.js.map +1 -1
- package/es/scenegraph/group-creater/cell-type/spark-line-cell.js +2 -2
- package/es/scenegraph/group-creater/cell-type/spark-line-cell.js.map +1 -1
- package/es/scenegraph/group-creater/cell-type/switch-cell.js +2 -2
- package/es/scenegraph/group-creater/cell-type/switch-cell.js.map +1 -1
- package/es/scenegraph/group-creater/cell-type/text-cell.js +5 -5
- package/es/scenegraph/group-creater/cell-type/text-cell.js.map +1 -1
- package/es/scenegraph/group-creater/cell-type/video-cell.js +99 -12
- package/es/scenegraph/group-creater/cell-type/video-cell.js.map +1 -1
- package/es/scenegraph/group-creater/column-helper.js +4 -3
- package/es/scenegraph/group-creater/column-helper.js.map +1 -1
- package/es/scenegraph/layout/update-row.js +3 -3
- package/es/scenegraph/layout/update-row.js.map +1 -1
- package/es/scenegraph/runtime-contributions.d.ts +2 -0
- package/es/scenegraph/runtime-contributions.js +20 -0
- package/es/scenegraph/runtime-contributions.js.map +1 -0
- package/es/scenegraph/scenegraph.d.ts +4 -1
- package/es/scenegraph/scenegraph.js +42 -16
- package/es/scenegraph/scenegraph.js.map +1 -1
- package/es/scenegraph/utils/text-icon-layout.d.ts +4 -0
- package/es/scenegraph/utils/text-icon-layout.js +18 -2
- package/es/scenegraph/utils/text-icon-layout.js.map +1 -1
- package/es/scenegraph/utils/text-measure.js.map +1 -1
- package/es/ts-types/base-table.d.ts +7 -1
- package/es/ts-types/base-table.js.map +1 -1
- package/es/ts-types/table-engine.d.ts +1 -1
- package/es/ts-types/table-engine.js.map +1 -1
- package/es/vrender-app.d.ts +20 -0
- package/es/vrender-app.js +161 -0
- package/es/vrender-app.js.map +1 -0
- package/es/vrender.d.ts +17 -1
- package/es/vrender.js +27 -8
- package/es/vrender.js.map +1 -1
- 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,GAA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AC,UAAkC,EAAE,EAAE,EAAE;IACjE,IAAI,OAAO,CAAC,GAAG,EAAE;QACf,OAAO;YACL,GAAG,EAAE,OAAO,CAAC,GAAG;YAChB,QAAQ,EAAE,KAAK;YACf,aAAa,EAAE,GAAS,EAAE,CAAC,SAAS;SACrC,CAAC;KACH;IAED,uCACK,uBAAuB,CAAC,gBAAgB,CAAC,OAAO,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
|
|
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,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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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AAC,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.
|
|
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.
|
|
56
|
-
"@visactor/vrender
|
|
57
|
-
"@visactor/vrender-
|
|
58
|
-
"@visactor/vrender-
|
|
59
|
-
"@visactor/vrender-
|
|
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.
|
|
73
|
-
"@internal/bundler": "
|
|
74
|
-
"@internal/eslint-config": "
|
|
75
|
-
"@internal/ts-config": "
|
|
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",
|