@visactor/vrender 0.16.3-alpha.0 → 0.16.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.
- package/cjs/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/dist/index.js +17 -4
- 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.3
|
|
24
|
+
exports.version = "0.16.3", (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.3\";\n\nloadAllModule(container);\n\nexport * from '@visactor/vrender-core';\nexport * from '@visactor/vrender-kits';\n"]}
|
package/dist/index.js
CHANGED
|
@@ -26014,7 +26014,11 @@
|
|
|
26014
26014
|
}, {
|
|
26015
26015
|
key: "containsPoint",
|
|
26016
26016
|
value: function containsPoint(graphic, point, params) {
|
|
26017
|
-
|
|
26017
|
+
var _a;
|
|
26018
|
+
return !!(null === (_a = this.pickItem(graphic, point, null, null != params ? params : {
|
|
26019
|
+
pickContext: this.pickContext,
|
|
26020
|
+
pickerService: this
|
|
26021
|
+
})) || void 0 === _a ? void 0 : _a.graphic);
|
|
26018
26022
|
}
|
|
26019
26023
|
}, {
|
|
26020
26024
|
key: "pickGroup",
|
|
@@ -29845,7 +29849,8 @@
|
|
|
29845
29849
|
height: domref.height,
|
|
29846
29850
|
width: domref.width
|
|
29847
29851
|
};
|
|
29848
|
-
}
|
|
29852
|
+
},
|
|
29853
|
+
nativeCanvas: _canvas
|
|
29849
29854
|
};
|
|
29850
29855
|
canvasMap.set(id, canvas), i >= freeCanvasIdx && freeCanvasList.push(canvas);
|
|
29851
29856
|
});
|
|
@@ -33335,6 +33340,12 @@
|
|
|
33335
33340
|
value: function init() {
|
|
33336
33341
|
this._context = new LynxContext2d(this, this._dpr);
|
|
33337
33342
|
}
|
|
33343
|
+
}, {
|
|
33344
|
+
key: "resize",
|
|
33345
|
+
value: function resize(width, height) {
|
|
33346
|
+
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);
|
|
33347
|
+
this._context.dpr = this._dpr;
|
|
33348
|
+
}
|
|
33338
33349
|
}, {
|
|
33339
33350
|
key: "release",
|
|
33340
33351
|
value: function release() {}
|
|
@@ -33472,7 +33483,9 @@
|
|
|
33472
33483
|
value: function releaseWindow() {}
|
|
33473
33484
|
}, {
|
|
33474
33485
|
key: "resizeWindow",
|
|
33475
|
-
value: function resizeWindow(width, height) {
|
|
33486
|
+
value: function resizeWindow(width, height) {
|
|
33487
|
+
this.canvas.resize(width, height);
|
|
33488
|
+
}
|
|
33476
33489
|
}, {
|
|
33477
33490
|
key: "setDpr",
|
|
33478
33491
|
value: function setDpr(dpr) {
|
|
@@ -34450,7 +34463,7 @@
|
|
|
34450
34463
|
|
|
34451
34464
|
var roughModule = _roughModule;
|
|
34452
34465
|
|
|
34453
|
-
const version = "0.16.3
|
|
34466
|
+
const version = "0.16.3";
|
|
34454
34467
|
loadAllModule(container);
|
|
34455
34468
|
|
|
34456
34469
|
exports.ACustomAnimate = ACustomAnimate;
|