@visactor/vrender 0.16.0-alpha.3 → 0.16.0-alpha.4
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/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/dist/index.js +25 -12
- package/dist/index.min.js +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/package.json +3 -3
package/cjs/index.d.ts
CHANGED
package/cjs/index.js
CHANGED
|
@@ -21,5 +21,5 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
21
21
|
|
|
22
22
|
const vrender_core_1 = require("@visactor/vrender-core"), vrender_kits_1 = require("@visactor/vrender-kits");
|
|
23
23
|
|
|
24
|
-
exports.version = "0.16.0-alpha.
|
|
24
|
+
exports.version = "0.16.0-alpha.4", (0, vrender_kits_1.loadAllModule)(vrender_core_1.container),
|
|
25
25
|
__exportStar(require("@visactor/vrender-core"), exports), __exportStar(require("@visactor/vrender-kits"), exports);
|
package/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,yDAAmD;AACnD,yDAAuD;AAG1C,QAAA,OAAO,GAAG,gBAAgB,CAAC;AAExC,IAAA,4BAAa,EAAC,wBAAS,CAAC,CAAC;AAEzB,yDAAuC;AACvC,yDAAuC","file":"index.js","sourcesContent":["import { container } from '@visactor/vrender-core';\nimport { loadAllModule } from '@visactor/vrender-kits';\n\n// 导出版本号\nexport const version = \"0.16.0-alpha.
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,yDAAmD;AACnD,yDAAuD;AAG1C,QAAA,OAAO,GAAG,gBAAgB,CAAC;AAExC,IAAA,4BAAa,EAAC,wBAAS,CAAC,CAAC;AAEzB,yDAAuC;AACvC,yDAAuC","file":"index.js","sourcesContent":["import { container } from '@visactor/vrender-core';\nimport { loadAllModule } from '@visactor/vrender-kits';\n\n// 导出版本号\nexport const version = \"0.16.0-alpha.4\";\n\nloadAllModule(container);\n\nexport * from '@visactor/vrender-core';\nexport * from '@visactor/vrender-kits';\n"]}
|
package/dist/index.js
CHANGED
|
@@ -13673,7 +13673,8 @@
|
|
|
13673
13673
|
layer = new Layer(stage, this.global, stage.window, Object.assign(Object.assign({
|
|
13674
13674
|
main: !1
|
|
13675
13675
|
}, options), {
|
|
13676
|
-
layerMode: layerMode,
|
|
13676
|
+
layerMode: options.canvasId ? "static" : layerMode,
|
|
13677
|
+
canvasId: options.canvasId,
|
|
13677
13678
|
layerHandler: layerHandler
|
|
13678
13679
|
})),
|
|
13679
13680
|
stageLayers = this.layerMap.get(stage) || [];
|
|
@@ -24887,7 +24888,7 @@
|
|
|
24887
24888
|
}
|
|
24888
24889
|
}, {
|
|
24889
24890
|
key: "createLayer",
|
|
24890
|
-
value: function createLayer(layerMode) {
|
|
24891
|
+
value: function createLayer(canvasId, layerMode) {
|
|
24891
24892
|
var layer = this.layerService.createLayer(this, {
|
|
24892
24893
|
main: !1,
|
|
24893
24894
|
layerMode: layerMode
|
|
@@ -32353,16 +32354,16 @@
|
|
|
32353
32354
|
bind(DefaultMathCirclePicker).toSelf().inSingletonScope(), bind(MathCirclePicker).toService(DefaultMathCirclePicker), bind(MathPickerContribution).toService(MathCirclePicker), bind(DefaultMathRectPicker).toSelf().inSingletonScope(), bind(MathRectPicker).toService(DefaultMathRectPicker), bind(MathPickerContribution).toService(MathRectPicker), bind(DefaultMathArcPicker).toSelf().inSingletonScope(), bind(MathArcPicker).toService(DefaultMathArcPicker), bind(MathPickerContribution).toService(MathArcPicker), bind(DefaultMathAreaPicker).toSelf().inSingletonScope(), bind(MathAreaPicker).toService(DefaultMathAreaPicker), bind(MathPickerContribution).toService(MathAreaPicker), bind(DefaultMathLinePicker).toSelf().inSingletonScope(), bind(MathLinePicker).toService(DefaultMathLinePicker), bind(MathPickerContribution).toService(MathLinePicker), bind(DefaultMathPathPicker).toSelf().inSingletonScope(), bind(MathPathPicker).toService(DefaultMathPathPicker), bind(MathPickerContribution).toService(MathPathPicker), bind(DefaultMathSymbolPicker).toSelf().inSingletonScope(), bind(MathSymbolPicker).toService(DefaultMathSymbolPicker), bind(MathPickerContribution).toService(MathSymbolPicker), bind(DefaultMathTextPicker).toSelf().inSingletonScope(), bind(MathTextPicker).toService(DefaultMathTextPicker), bind(MathPickerContribution).toService(MathTextPicker), bind(DefaultMathPolygonPicker).toSelf().inSingletonScope(), bind(MathPolygonPicker).toService(DefaultMathPolygonPicker), bind(MathPickerContribution).toService(MathPolygonPicker), bind(DefaultMathGlyphPicker).toSelf().inSingletonScope(), bind(MathGlyphPicker).toService(DefaultMathGlyphPicker), bind(DefaultMathGlyphPicker).toService(MathGlyphPicker), bindContributionProvider(bind, MathPickerContribution);
|
|
32354
32355
|
});
|
|
32355
32356
|
|
|
32356
|
-
var mathPickerModule = new ContainerModule(function (bind, unbind, isBound, rebind) {
|
|
32357
|
+
var mathPickerModule$1 = new ContainerModule(function (bind, unbind, isBound, rebind) {
|
|
32357
32358
|
isBound(DefaultMathPickerService) || bind(DefaultMathPickerService).toSelf().inSingletonScope(), isBound(PickerService) ? rebind(PickerService).toService(DefaultMathPickerService) : bind(PickerService).toService(DefaultMathPickerService);
|
|
32358
32359
|
});
|
|
32359
|
-
function loadMathPicker(c) {
|
|
32360
|
-
c.load(mathModule), c.load(mathPickerModule);
|
|
32360
|
+
function loadMathPicker$1(c) {
|
|
32361
|
+
c.load(mathModule), c.load(mathPickerModule$1);
|
|
32361
32362
|
}
|
|
32362
32363
|
|
|
32363
32364
|
function loadFeishuEnv(container) {
|
|
32364
32365
|
var loadPicker = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !0;
|
|
32365
|
-
container.load(feishuEnvModule), container.load(feishuCanvasModule), container.load(feishuWindowModule), loadPicker && loadMathPicker(container);
|
|
32366
|
+
container.load(feishuEnvModule), container.load(feishuCanvasModule), container.load(feishuWindowModule), loadPicker && loadMathPicker$1(container);
|
|
32366
32367
|
}
|
|
32367
32368
|
function initFeishuEnv() {
|
|
32368
32369
|
loadFeishuEnv(container);
|
|
@@ -33408,7 +33409,7 @@
|
|
|
33408
33409
|
|
|
33409
33410
|
function loadLynxEnv(container) {
|
|
33410
33411
|
var loadPicker = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !0;
|
|
33411
|
-
container.load(lynxEnvModule), container.load(lynxCanvasModule), container.load(lynxWindowModule), loadPicker && loadMathPicker(container);
|
|
33412
|
+
container.load(lynxEnvModule), container.load(lynxCanvasModule), container.load(lynxWindowModule), loadPicker && loadMathPicker$1(container);
|
|
33412
33413
|
}
|
|
33413
33414
|
function initLynxEnv() {
|
|
33414
33415
|
loadLynxEnv(container);
|
|
@@ -33637,7 +33638,7 @@
|
|
|
33637
33638
|
|
|
33638
33639
|
function loadNodeEnv(container) {
|
|
33639
33640
|
var loadPicker = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !0;
|
|
33640
|
-
container.load(nodeEnvModule), container.load(nodeCanvasModule), container.load(nodeWindowModule), loadPicker && loadMathPicker(container);
|
|
33641
|
+
container.load(nodeEnvModule), container.load(nodeCanvasModule), container.load(nodeWindowModule), loadPicker && loadMathPicker$1(container);
|
|
33641
33642
|
}
|
|
33642
33643
|
function initNodeEnv() {
|
|
33643
33644
|
loadNodeEnv(container);
|
|
@@ -33992,7 +33993,7 @@
|
|
|
33992
33993
|
|
|
33993
33994
|
function loadTaroEnv(container) {
|
|
33994
33995
|
var loadPicker = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !0;
|
|
33995
|
-
container.load(taroEnvModule), container.load(taroCanvasModule), container.load(taroWindowModule), loadPicker && loadMathPicker(container);
|
|
33996
|
+
container.load(taroEnvModule), container.load(taroCanvasModule), container.load(taroWindowModule), loadPicker && loadMathPicker$1(container);
|
|
33996
33997
|
}
|
|
33997
33998
|
function initTaroEnv() {
|
|
33998
33999
|
loadTaroEnv(container);
|
|
@@ -34268,17 +34269,29 @@
|
|
|
34268
34269
|
|
|
34269
34270
|
function loadWxEnv(container) {
|
|
34270
34271
|
var loadPicker = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !0;
|
|
34271
|
-
container.load(wxEnvModule), container.load(wxCanvasModule), container.load(wxWindowModule), loadPicker && loadMathPicker(container);
|
|
34272
|
+
container.load(wxEnvModule), container.load(wxCanvasModule), container.load(wxWindowModule), loadPicker && loadMathPicker$1(container);
|
|
34272
34273
|
}
|
|
34273
34274
|
function initWxEnv() {
|
|
34274
34275
|
loadWxEnv(container);
|
|
34275
34276
|
}
|
|
34276
34277
|
|
|
34278
|
+
new ContainerModule(function (bind, unbind, isBound, rebind) {
|
|
34279
|
+
isBound(DefaultCanvasPickerService) || bind(DefaultCanvasPickerService).toSelf().inSingletonScope(), isBound(PickerService) ? rebind(PickerService).toService(DefaultCanvasPickerService) : bind(PickerService).toService(DefaultCanvasPickerService);
|
|
34280
|
+
});
|
|
34281
|
+
var mathPickerModule = new ContainerModule(function (bind, unbind, isBound, rebind) {
|
|
34282
|
+
isBound(DefaultMathPickerService) || bind(DefaultMathPickerService).toSelf().inSingletonScope(), isBound(PickerService) ? rebind(PickerService).toService(DefaultMathPickerService) : bind(PickerService).toService(DefaultMathPickerService);
|
|
34283
|
+
});
|
|
34284
|
+
function loadMathPicker(c) {
|
|
34285
|
+
c.load(mathModule), c.load(mathPickerModule);
|
|
34286
|
+
}
|
|
34287
|
+
|
|
34277
34288
|
function loadAllEnv(container) {
|
|
34278
34289
|
loadAllModule(container);
|
|
34279
34290
|
}
|
|
34280
34291
|
function loadAllModule(container) {
|
|
34281
|
-
loadBrowserEnv(container, !1), loadFeishuEnv(container, !1), loadLynxEnv(container, !1), loadNodeEnv(container, !1), loadTaroEnv(container, !1), loadWxEnv(container, !1), loadCanvasPicker(container)
|
|
34292
|
+
loadBrowserEnv(container, !1), loadFeishuEnv(container, !1), loadLynxEnv(container, !1), loadNodeEnv(container, !1), loadTaroEnv(container, !1), loadWxEnv(container, !1), loadCanvasPicker(container), vglobal.hooks.onSetEnv.tap("loadMathPicker", function (lastEnv, env) {
|
|
34293
|
+
"browser" !== env && loadMathPicker(container);
|
|
34294
|
+
});
|
|
34282
34295
|
}
|
|
34283
34296
|
function initAllEnv() {
|
|
34284
34297
|
loadAllEnv(container);
|
|
@@ -34286,7 +34299,7 @@
|
|
|
34286
34299
|
|
|
34287
34300
|
var roughModule = _roughModule;
|
|
34288
34301
|
|
|
34289
|
-
const version = "0.16.0-alpha.
|
|
34302
|
+
const version = "0.16.0-alpha.4";
|
|
34290
34303
|
loadAllModule(container);
|
|
34291
34304
|
|
|
34292
34305
|
exports.ACustomAnimate = ACustomAnimate;
|