@visactor/vrender-core 0.16.14 → 0.16.15-alpha.0
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/color-string/colorName.js +1 -1
- package/cjs/color-string/index.js +1 -1
- package/cjs/color-string/interpolate.js +1 -1
- package/cjs/color-string/store.js +1 -1
- package/cjs/common/bezier-utils.js +2 -1
- package/cjs/common/custom-path2d.js +1 -2
- package/cjs/common/split-path.js +2 -1
- package/cjs/core/application.js +1 -2
- package/cjs/core/global-module.js +0 -2
- package/cjs/core/global.js +1 -1
- package/cjs/core/graphic-utils.js +1 -1
- package/cjs/core/index.js +1 -1
- package/es/color-string/colorName.js +1 -1
- package/es/color-string/index.js +1 -1
- package/es/color-string/interpolate.js +1 -1
- package/es/color-string/store.js +1 -1
- package/es/common/bezier-utils.js +2 -1
- package/es/common/custom-path2d.js +1 -2
- package/es/common/split-path.js +2 -1
- package/es/core/application.js +1 -2
- package/es/core/global-module.js +0 -2
- package/es/core/global.js +1 -1
- package/es/core/graphic-utils.js +1 -1
- package/es/core/index.js +1 -1
- package/package.json +3 -3
|
@@ -10,4 +10,4 @@ Object.keys(vutils_1.DEFAULT_COLORS).forEach((k => {
|
|
|
10
10
|
const c = vutils_1.DEFAULT_COLORS[k];
|
|
11
11
|
parsedColors[k] = [ c >> 16 & 255, c >> 8 & 255, 255 & c ];
|
|
12
12
|
})), exports.default = parsedColors;
|
|
13
|
-
//# sourceMappingURL=colorName.js.map
|
|
13
|
+
//# sourceMappingURL=colorName.js.map
|
|
@@ -19,4 +19,4 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
19
19
|
value: !0
|
|
20
20
|
}), __exportStar(require("./interpolate"), exports), __exportStar(require("./store"), exports),
|
|
21
21
|
__exportStar(require("./colorName"), exports);
|
|
22
|
-
//# sourceMappingURL=index.js.map
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -31,4 +31,5 @@ function cubicPointAt(p0, p1, p2, p3, t) {
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
exports.snapLength = snapLength, exports.cubicLength = cubicLength, exports.cubicCalc = cubicCalc,
|
|
34
|
-
exports.cubicPointAt = cubicPointAt;
|
|
34
|
+
exports.cubicPointAt = cubicPointAt;
|
|
35
|
+
//# sourceMappingURL=bezier-utils.js.map
|
|
@@ -329,5 +329,4 @@ function scale(current, sX, sY) {
|
|
|
329
329
|
temp[3] = current[3], temp[4] = current[4], temp[5] = current[5], temp[6] = sX * current[6],
|
|
330
330
|
temp[7] = sY * current[7]; else if ("h" === c || "H" === c) temp[1] = sX * current[1]; else if ("v" === c || "V" === c) temp[1] = sY * current[1]; else for (let i = 1, n = current.length; i < n; ++i) temp[i] = (i % 2 == 1 ? sX : sY) * current[i];
|
|
331
331
|
return temp;
|
|
332
|
-
}
|
|
333
|
-
//# sourceMappingURL=custom-path2d.js.map
|
|
332
|
+
}
|
package/cjs/common/split-path.js
CHANGED
package/cjs/core/application.js
CHANGED
|
@@ -2,5 +2,4 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: !0
|
|
5
|
-
}), exports.ApplicationContribution = void 0, exports.ApplicationContribution = Symbol("ApplicationContribution");
|
|
6
|
-
//# sourceMappingURL=application.js.map
|
|
5
|
+
}), exports.ApplicationContribution = void 0, exports.ApplicationContribution = Symbol("ApplicationContribution");
|
package/cjs/core/global.js
CHANGED
|
@@ -173,4 +173,4 @@ DefaultGlobal = __decorate([ (0, inversify_lite_1.injectable)(), __param(0, (0,
|
|
|
173
173
|
inversify_lite_1.inject)(contribution_provider_1.ContributionProvider)), __param(0, (0,
|
|
174
174
|
inversify_lite_1.named)(constants_1.EnvContribution)), __metadata("design:paramtypes", [ Object ]) ], DefaultGlobal),
|
|
175
175
|
exports.DefaultGlobal = DefaultGlobal;
|
|
176
|
-
//# sourceMappingURL=global.js.map
|
|
176
|
+
//# sourceMappingURL=global.js.map
|
|
@@ -136,4 +136,4 @@ let DefaultTransformUtil = class {
|
|
|
136
136
|
|
|
137
137
|
DefaultTransformUtil = __decorate([ (0, inversify_lite_1.injectable)(), __metadata("design:paramtypes", []) ], DefaultTransformUtil),
|
|
138
138
|
exports.DefaultTransformUtil = DefaultTransformUtil;
|
|
139
|
-
//# sourceMappingURL=graphic-utils.js.map
|
|
139
|
+
//# sourceMappingURL=graphic-utils.js.map
|
package/cjs/core/index.js
CHANGED
|
@@ -22,4 +22,4 @@ __exportStar(require("./layer"), exports), __exportStar(require("./stage"), expo
|
|
|
22
22
|
__exportStar(require("./graphic-utils"), exports), __exportStar(require("./contributions"), exports),
|
|
23
23
|
__exportStar(require("./layer-service"), exports), __exportStar(require("./constants"), exports),
|
|
24
24
|
__exportStar(require("../interface/core"), exports);
|
|
25
|
-
//# sourceMappingURL=index.js.map
|
|
25
|
+
//# sourceMappingURL=index.js.map
|
package/es/color-string/index.js
CHANGED
|
@@ -88,4 +88,4 @@ export function colorStringInterpolationToStr(fromColor, toColor, ratio) {
|
|
|
88
88
|
return ColorStore.Get(fromColor, ColorType.Color255, _fromColorRGB), ColorStore.Get(toColor, ColorType.Color255, _toColorRGB),
|
|
89
89
|
`rgba(${Math.round(_fromColorRGB[0] + (_toColorRGB[0] - _fromColorRGB[0]) * ratio)},${Math.round(_fromColorRGB[1] + (_toColorRGB[1] - _fromColorRGB[1]) * ratio)},${Math.round(_fromColorRGB[2] + (_toColorRGB[2] - _fromColorRGB[2]) * ratio)},${_fromColorRGB[3] + (_toColorRGB[3] - _fromColorRGB[3]) * ratio})`;
|
|
90
90
|
}
|
|
91
|
-
//# sourceMappingURL=interpolate.js.map
|
|
91
|
+
//# sourceMappingURL=interpolate.js.map
|
package/es/color-string/store.js
CHANGED
|
@@ -22,4 +22,5 @@ export function cubicCalc(p0, p1, p2, p3, t) {
|
|
|
22
22
|
export function cubicPointAt(p0, p1, p2, p3, t) {
|
|
23
23
|
const x = cubicCalc(p0.x, p1.x, p2.x, p3.x, t), y = cubicCalc(p0.y, p1.y, p2.y, p3.y, t);
|
|
24
24
|
return new Point(x, y);
|
|
25
|
-
}
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=bezier-utils.js.map
|
|
@@ -334,5 +334,4 @@ function scale(current, sX, sY) {
|
|
|
334
334
|
temp[3] = current[3], temp[4] = current[4], temp[5] = current[5], temp[6] = sX * current[6],
|
|
335
335
|
temp[7] = sY * current[7]; else if ("h" === c || "H" === c) temp[1] = sX * current[1]; else if ("v" === c || "V" === c) temp[1] = sY * current[1]; else for (let i = 1, n = current.length; i < n; ++i) temp[i] = (i % 2 == 1 ? sX : sY) * current[i];
|
|
336
336
|
return temp;
|
|
337
|
-
}
|
|
338
|
-
//# sourceMappingURL=custom-path2d.js.map
|
|
337
|
+
}
|
package/es/common/split-path.js
CHANGED
package/es/core/application.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export const ApplicationContribution = Symbol("ApplicationContribution");
|
|
2
|
-
//# sourceMappingURL=application.js.map
|
|
1
|
+
export const ApplicationContribution = Symbol("ApplicationContribution");
|
package/es/core/global-module.js
CHANGED
package/es/core/global.js
CHANGED
|
@@ -174,4 +174,4 @@ let DefaultGlobal = class {
|
|
|
174
174
|
DefaultGlobal = __decorate([ injectable(), __param(0, inject(ContributionProvider)), __param(0, named(EnvContribution)), __metadata("design:paramtypes", [ Object ]) ], DefaultGlobal);
|
|
175
175
|
|
|
176
176
|
export { DefaultGlobal };
|
|
177
|
-
//# sourceMappingURL=global.js.map
|
|
177
|
+
//# sourceMappingURL=global.js.map
|
package/es/core/graphic-utils.js
CHANGED
|
@@ -143,4 +143,4 @@ let DefaultTransformUtil = class {
|
|
|
143
143
|
DefaultTransformUtil = __decorate([ injectable(), __metadata("design:paramtypes", []) ], DefaultTransformUtil);
|
|
144
144
|
|
|
145
145
|
export { DefaultTransformUtil };
|
|
146
|
-
//# sourceMappingURL=graphic-utils.js.map
|
|
146
|
+
//# sourceMappingURL=graphic-utils.js.map
|
package/es/core/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@visactor/vrender-core",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.15-alpha.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"sideEffects": true,
|
|
6
6
|
"main": "cjs/index.js",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"vite": "3.2.6",
|
|
32
32
|
"typescript": "4.9.5",
|
|
33
33
|
"@internal/bundler": "0.0.1",
|
|
34
|
-
"@internal/
|
|
35
|
-
"@internal/
|
|
34
|
+
"@internal/ts-config": "0.0.1",
|
|
35
|
+
"@internal/eslint-config": "0.0.1"
|
|
36
36
|
},
|
|
37
37
|
"keywords": [
|
|
38
38
|
"VisActor",
|