@visactor/vrender 0.16.2-alpha.0 → 0.16.2
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 +5 -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.2
|
|
24
|
+
exports.version = "0.16.2", (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.2\";\n\nloadAllModule(container);\n\nexport * from '@visactor/vrender-core';\nexport * from '@visactor/vrender-kits';\n"]}
|
package/dist/index.js
CHANGED
|
@@ -20808,16 +20808,17 @@
|
|
|
20808
20808
|
key: "createCommonPattern",
|
|
20809
20809
|
value: function createCommonPattern(size, padding, color, targetContext, cb) {
|
|
20810
20810
|
var r = (size - 2 * padding) / 2,
|
|
20811
|
+
dpr = targetContext.dpr,
|
|
20811
20812
|
canvas = canvasAllocate.allocate({
|
|
20812
20813
|
width: size,
|
|
20813
20814
|
height: size,
|
|
20814
|
-
dpr:
|
|
20815
|
+
dpr: dpr
|
|
20815
20816
|
}),
|
|
20816
20817
|
ctx = canvas.getContext("2d");
|
|
20817
20818
|
if (!ctx) return null;
|
|
20818
|
-
ctx.clearRect(0, 0, size, size), cb(r, ctx);
|
|
20819
|
+
ctx.inuse = !0, ctx.clearMatrix(), ctx.setTransformForCurrent(!0), ctx.clearRect(0, 0, size, size), cb(r, ctx);
|
|
20819
20820
|
var pattern = targetContext.createPattern(canvas.nativeCanvas, "repeat");
|
|
20820
|
-
return canvasAllocate.free(canvas), pattern;
|
|
20821
|
+
return pattern.setTransform && pattern.setTransform(new DOMMatrix([1 / dpr, 0, 0, 1 / dpr, 0, 0])), canvasAllocate.free(canvas), pattern;
|
|
20821
20822
|
}
|
|
20822
20823
|
}, {
|
|
20823
20824
|
key: "createCirclePattern",
|
|
@@ -34426,7 +34427,7 @@
|
|
|
34426
34427
|
|
|
34427
34428
|
var roughModule = _roughModule;
|
|
34428
34429
|
|
|
34429
|
-
const version = "0.16.2
|
|
34430
|
+
const version = "0.16.2";
|
|
34430
34431
|
loadAllModule(container);
|
|
34431
34432
|
|
|
34432
34433
|
exports.ACustomAnimate = ACustomAnimate;
|