@visactor/vrender 0.16.3-alpha.0 → 0.16.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 +36 -8
- 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 +5 -5
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.
|
|
24
|
+
exports.version = "0.16.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,
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,yDAAmD;AACnD,yDAAuD;AAG1C,QAAA,OAAO,GAAG,QAAQ,CAAC;AAEhC,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.4\";\n\nloadAllModule(container);\n\nexport * from '@visactor/vrender-core';\nexport * from '@visactor/vrender-kits';\n"]}
|
package/dist/index.js
CHANGED
|
@@ -13718,12 +13718,13 @@
|
|
|
13718
13718
|
main: !1
|
|
13719
13719
|
};
|
|
13720
13720
|
this.tryInit();
|
|
13721
|
-
var layerMode = this.getRecommendedLayerType(options.layerMode)
|
|
13722
|
-
|
|
13721
|
+
var layerMode = this.getRecommendedLayerType(options.layerMode);
|
|
13722
|
+
layerMode = options.canvasId ? "static" : layerMode;
|
|
13723
|
+
var layerHandler = this.getLayerHandler(layerMode),
|
|
13723
13724
|
layer = new Layer(stage, this.global, stage.window, Object.assign(Object.assign({
|
|
13724
13725
|
main: !1
|
|
13725
13726
|
}, options), {
|
|
13726
|
-
layerMode:
|
|
13727
|
+
layerMode: layerMode,
|
|
13727
13728
|
canvasId: options.canvasId,
|
|
13728
13729
|
layerHandler: layerHandler
|
|
13729
13730
|
})),
|
|
@@ -25024,7 +25025,8 @@
|
|
|
25024
25025
|
value: function createLayer(canvasId, layerMode) {
|
|
25025
25026
|
var layer = this.layerService.createLayer(this, {
|
|
25026
25027
|
main: !1,
|
|
25027
|
-
layerMode: layerMode
|
|
25028
|
+
layerMode: layerMode,
|
|
25029
|
+
canvasId: canvasId
|
|
25028
25030
|
});
|
|
25029
25031
|
return this.appendChild(layer), layer;
|
|
25030
25032
|
}
|
|
@@ -26014,7 +26016,11 @@
|
|
|
26014
26016
|
}, {
|
|
26015
26017
|
key: "containsPoint",
|
|
26016
26018
|
value: function containsPoint(graphic, point, params) {
|
|
26017
|
-
|
|
26019
|
+
var _a;
|
|
26020
|
+
return !!(null === (_a = this.pickItem(graphic, point, null, null != params ? params : {
|
|
26021
|
+
pickContext: this.pickContext,
|
|
26022
|
+
pickerService: this
|
|
26023
|
+
})) || void 0 === _a ? void 0 : _a.graphic);
|
|
26018
26024
|
}
|
|
26019
26025
|
}, {
|
|
26020
26026
|
key: "pickGroup",
|
|
@@ -26092,6 +26098,16 @@
|
|
|
26092
26098
|
}();
|
|
26093
26099
|
exports.DefaultPickService = __decorate$Y([injectable(), __param$A(0, inject(VGlobal)), __param$A(1, inject(ContributionProvider)), __param$A(1, named(PickItemInterceptor)), __metadata$N("design:paramtypes", [Object, Object])], exports.DefaultPickService);
|
|
26094
26100
|
|
|
26101
|
+
function isBrowserEnv() {
|
|
26102
|
+
return new Function("try {return this===window;}catch(e){ return false;}")();
|
|
26103
|
+
}
|
|
26104
|
+
function isNodeEnv() {
|
|
26105
|
+
return new Function("try {return this===global;}catch(e){return false;}")();
|
|
26106
|
+
}
|
|
26107
|
+
function getCurrentEnv() {
|
|
26108
|
+
return isBrowserEnv() ? "browser" : "node";
|
|
26109
|
+
}
|
|
26110
|
+
|
|
26095
26111
|
function t(t, e, s) {
|
|
26096
26112
|
if (t && t.length) {
|
|
26097
26113
|
var _e = _slicedToArray(e, 2),
|
|
@@ -29845,7 +29861,8 @@
|
|
|
29845
29861
|
height: domref.height,
|
|
29846
29862
|
width: domref.width
|
|
29847
29863
|
};
|
|
29848
|
-
}
|
|
29864
|
+
},
|
|
29865
|
+
nativeCanvas: _canvas
|
|
29849
29866
|
};
|
|
29850
29867
|
canvasMap.set(id, canvas), i >= freeCanvasIdx && freeCanvasList.push(canvas);
|
|
29851
29868
|
});
|
|
@@ -33335,6 +33352,12 @@
|
|
|
33335
33352
|
value: function init() {
|
|
33336
33353
|
this._context = new LynxContext2d(this, this._dpr);
|
|
33337
33354
|
}
|
|
33355
|
+
}, {
|
|
33356
|
+
key: "resize",
|
|
33357
|
+
value: function resize(width, height) {
|
|
33358
|
+
this._pixelWidth = width * this._dpr, this._pixelHeight = height * this._dpr, this._displayWidth = width, this._displayHeight = height, this._nativeCanvas.width = this._pixelWidth, this._nativeCanvas.height = this._pixelHeight, this._nativeCanvas.nativeCanvas && (this._nativeCanvas.nativeCanvas.width = this._pixelWidth, this._nativeCanvas.nativeCanvas.height = this._pixelHeight);
|
|
33359
|
+
this._context.dpr = this._dpr;
|
|
33360
|
+
}
|
|
33338
33361
|
}, {
|
|
33339
33362
|
key: "release",
|
|
33340
33363
|
value: function release() {}
|
|
@@ -33472,7 +33495,9 @@
|
|
|
33472
33495
|
value: function releaseWindow() {}
|
|
33473
33496
|
}, {
|
|
33474
33497
|
key: "resizeWindow",
|
|
33475
|
-
value: function resizeWindow(width, height) {
|
|
33498
|
+
value: function resizeWindow(width, height) {
|
|
33499
|
+
this.canvas.resize(width, height);
|
|
33500
|
+
}
|
|
33476
33501
|
}, {
|
|
33477
33502
|
key: "setDpr",
|
|
33478
33503
|
value: function setDpr(dpr) {
|
|
@@ -34450,7 +34475,7 @@
|
|
|
34450
34475
|
|
|
34451
34476
|
var roughModule = _roughModule;
|
|
34452
34477
|
|
|
34453
|
-
const version = "0.16.
|
|
34478
|
+
const version = "0.16.4";
|
|
34454
34479
|
loadAllModule(container);
|
|
34455
34480
|
|
|
34456
34481
|
exports.ACustomAnimate = ACustomAnimate;
|
|
@@ -34749,6 +34774,7 @@
|
|
|
34749
34774
|
exports.getAttributeFromDefaultAttrList = getAttributeFromDefaultAttrList;
|
|
34750
34775
|
exports.getConicGradientAt = getConicGradientAt;
|
|
34751
34776
|
exports.getContextFont = getContextFont;
|
|
34777
|
+
exports.getCurrentEnv = getCurrentEnv;
|
|
34752
34778
|
exports.getExtraModelMatrix = getExtraModelMatrix;
|
|
34753
34779
|
exports.getModelMatrix = getModelMatrix;
|
|
34754
34780
|
exports.getRichTextBounds = getRichTextBounds;
|
|
@@ -34776,6 +34802,8 @@
|
|
|
34776
34802
|
exports.interpolateGradientRadialColor = interpolateGradientRadialColor;
|
|
34777
34803
|
exports.interpolatePureColorArray = interpolatePureColorArray;
|
|
34778
34804
|
exports.intersect = intersect;
|
|
34805
|
+
exports.isBrowserEnv = isBrowserEnv;
|
|
34806
|
+
exports.isNodeEnv = isNodeEnv;
|
|
34779
34807
|
exports.isSvg = isSvg;
|
|
34780
34808
|
exports.isTransformKey = isTransformKey;
|
|
34781
34809
|
exports.isXML = isXML;
|