@visactor/vrender 0.13.3-alpha.3 → 0.13.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 +2 -1
- package/cjs/index.js +16 -2
- package/cjs/index.js.map +1 -1
- package/dist/index.js +6 -1
- package/dist/index.min.js +1 -1
- package/es/index.d.ts +2 -1
- package/es/index.js +3 -1
- package/es/index.js.map +1 -1
- package/es/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -4
package/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import 'core-js/proposals/reflect-metadata';
|
|
2
2
|
import './modules';
|
|
3
|
-
export declare const version = "0.13.
|
|
3
|
+
export declare const version = "0.13.4";
|
|
4
4
|
export * from './container';
|
|
5
5
|
export * from './core/global';
|
|
6
6
|
export * from './graphic';
|
|
@@ -39,3 +39,4 @@ export * from './common/enums';
|
|
|
39
39
|
export * from './common/generator';
|
|
40
40
|
export * from './plugins/constants';
|
|
41
41
|
export * from './animate/default-ticker';
|
|
42
|
+
export { wrapCanvas, wrapContext } from './canvas/util';
|
package/cjs/index.js
CHANGED
|
@@ -17,8 +17,8 @@ var __createBinding = this && this.__createBinding || (Object.create ? function(
|
|
|
17
17
|
|
|
18
18
|
Object.defineProperty(exports, "__esModule", {
|
|
19
19
|
value: !0
|
|
20
|
-
}), exports.version = void 0, require("core-js/proposals/reflect-metadata"),
|
|
21
|
-
exports.version = "0.13.
|
|
20
|
+
}), exports.wrapContext = exports.wrapCanvas = exports.version = void 0, require("core-js/proposals/reflect-metadata"),
|
|
21
|
+
require("./modules"), exports.version = "0.13.4", __exportStar(require("./container"), exports),
|
|
22
22
|
__exportStar(require("./core/global"), exports), __exportStar(require("./graphic"), exports),
|
|
23
23
|
__exportStar(require("./modules"), exports), __exportStar(require("./create"), exports),
|
|
24
24
|
__exportStar(require("./event"), exports), __exportStar(require("./interface"), exports),
|
|
@@ -38,4 +38,18 @@ __exportStar(require("./common/sort"), exports), __exportStar(require("./common/
|
|
|
38
38
|
__exportStar(require("./common/split-path"), exports), __exportStar(require("./common/enums"), exports),
|
|
39
39
|
__exportStar(require("./common/generator"), exports), __exportStar(require("./plugins/constants"), exports),
|
|
40
40
|
__exportStar(require("./animate/default-ticker"), exports);
|
|
41
|
+
|
|
42
|
+
var util_1 = require("./canvas/util");
|
|
43
|
+
|
|
44
|
+
Object.defineProperty(exports, "wrapCanvas", {
|
|
45
|
+
enumerable: !0,
|
|
46
|
+
get: function() {
|
|
47
|
+
return util_1.wrapCanvas;
|
|
48
|
+
}
|
|
49
|
+
}), Object.defineProperty(exports, "wrapContext", {
|
|
50
|
+
enumerable: !0,
|
|
51
|
+
get: function() {
|
|
52
|
+
return util_1.wrapContext;
|
|
53
|
+
}
|
|
54
|
+
});
|
|
41
55
|
//# sourceMappingURL=index.js.map
|
package/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,8CAA4C;AAC5C,qBAAmB;AAGN,QAAA,OAAO,GAAG,
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,8CAA4C;AAC5C,qBAAmB;AAGN,QAAA,OAAO,GAAG,QAAQ,CAAC;AAEhC,8CAA4B;AAC5B,gDAA8B;AAC9B,4CAA0B;AAC1B,4CAA0B;AAC1B,2CAAyB;AACzB,0CAAwB;AACxB,8CAA4B;AAC5B,2CAAyB;AACzB,4EAA0D;AAC1D,2CAAyB;AACzB,yCAAuB;AACvB,2CAAyB;AACzB,yCAAuB;AACvB,4CAA0B;AAC1B,2DAAyC;AAGzC,gDAA8B;AAC9B,wDAAsC;AACtC,0DAAwC;AACxC,uDAAqC;AACrC,yDAAuC;AACvC,mDAAiC;AACjC,wDAAsC;AACtC,iEAA+C;AAC/C,qDAAmC;AACnC,iDAA+B;AAC/B,qDAAmC;AACnC,sDAAoC;AAEpC,oDAAkC;AAClC,wDAAsC;AACtC,uDAAqC;AACrC,+DAA6C;AAC7C,gDAA8B;AAC9B,0DAAwC;AACxC,sDAAoC;AACpC,iDAA+B;AAC/B,qDAAmC;AACnC,sDAAoC;AAEpC,2DAAyC;AACzC,sCAAwD;AAA/C,kGAAA,UAAU,OAAA;AAAE,mGAAA,WAAW,OAAA","file":"index.js","sourcesContent":["import 'core-js/proposals/reflect-metadata';\nimport './modules';\n\n// 导出版本号\nexport const version = \"0.13.4\";\n\nexport * from './container';\nexport * from './core/global';\nexport * from './graphic';\nexport * from './modules';\nexport * from './create';\nexport * from './event';\nexport * from './interface';\nexport * from './render';\nexport * from './render/contributions/render/base-render';\nexport * from './canvas';\nexport * from './core';\nexport * from './picker';\nexport * from './kits';\nexport * from './animate';\nexport * from './resource-loader/loader';\n\n/* export common */\nexport * from './common/text';\nexport * from './common/bezier-utils';\nexport * from './common/bounds-context';\nexport * from './common/seg-context';\nexport * from './common/custom-path2d';\nexport * from './common/segment';\nexport * from './common/canvas-utils';\nexport * from './common/contribution-provider';\nexport * from './common/generator';\nexport * from './common/utils';\nexport * from './common/shape/arc';\nexport * from './common/shape/rect';\n\nexport * from './common/path-svg';\nexport * from './common/render-curve';\nexport * from './common/render-area';\nexport * from './common/render-command-list';\nexport * from './common/sort';\nexport * from './common/morphing-utils';\nexport * from './common/split-path';\nexport * from './common/enums';\nexport * from './common/generator';\nexport * from './plugins/constants';\n\nexport * from './animate/default-ticker';\nexport { wrapCanvas, wrapContext } from './canvas/util';\n"]}
|
package/dist/index.js
CHANGED
|
@@ -9601,6 +9601,9 @@
|
|
|
9601
9601
|
function wrapCanvas(params) {
|
|
9602
9602
|
return container.getNamed(CanvasFactory, application.global.env)(params);
|
|
9603
9603
|
}
|
|
9604
|
+
function wrapContext(canvas, dpr) {
|
|
9605
|
+
return container.getNamed(Context2dFactory, application.global.env)(canvas, dpr);
|
|
9606
|
+
}
|
|
9604
9607
|
const EPSILON_NUMERIC = 1e-4;
|
|
9605
9608
|
const THREE_SQRT = Math.sqrt(3);
|
|
9606
9609
|
const ONE_THIRD = 1 / 3;
|
|
@@ -36301,7 +36304,7 @@
|
|
|
36301
36304
|
'rect'
|
|
36302
36305
|
];
|
|
36303
36306
|
|
|
36304
|
-
const version = "0.13.
|
|
36307
|
+
const version = "0.13.4";
|
|
36305
36308
|
|
|
36306
36309
|
exports.ACustomAnimate = ACustomAnimate;
|
|
36307
36310
|
exports.ARC3D_NUMBER_TYPE = ARC3D_NUMBER_TYPE;
|
|
@@ -36615,5 +36618,7 @@
|
|
|
36615
36618
|
exports.translate = translate;
|
|
36616
36619
|
exports.version = version;
|
|
36617
36620
|
exports.waitForAllSubLayers = waitForAllSubLayers;
|
|
36621
|
+
exports.wrapCanvas = wrapCanvas;
|
|
36622
|
+
exports.wrapContext = wrapContext;
|
|
36618
36623
|
|
|
36619
36624
|
}));
|