zrender-nightly 5.7.0-dev.20250620 → 5.7.0-dev.20250621
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/README.md +1 -1
- package/build/prepublish.js +20 -0
- package/dist/zrender.js +563 -277
- package/dist/zrender.js.map +1 -1
- package/dist/zrender.min.js +1 -1
- package/lib/Element.d.ts +4 -0
- package/lib/Element.js +34 -16
- package/lib/Handler.js +1 -1
- package/lib/Storage.js +20 -20
- package/lib/canvas/graphic.js +1 -1
- package/lib/contain/text.d.ts +14 -2
- package/lib/contain/text.js +65 -15
- package/lib/core/BoundingRect.d.ts +25 -3
- package/lib/core/BoundingRect.js +182 -76
- package/lib/core/OrientedBoundingRect.d.ts +2 -2
- package/lib/core/OrientedBoundingRect.js +50 -34
- package/lib/core/PathProxy.d.ts +1 -0
- package/lib/core/PathProxy.js +16 -1
- package/lib/core/dom.d.ts +1 -0
- package/lib/core/dom.js +17 -0
- package/lib/core/env.js +15 -10
- package/lib/core/types.d.ts +1 -0
- package/lib/core/util.d.ts +1 -0
- package/lib/core/util.js +2 -1
- package/lib/graphic/Displayable.js +1 -1
- package/lib/graphic/Text.d.ts +4 -2
- package/lib/graphic/Text.js +23 -14
- package/lib/graphic/helper/parseText.d.ts +13 -4
- package/lib/graphic/helper/parseText.js +110 -54
- package/lib/svg-legacy/helper/ClippathManager.js +6 -6
- package/lib/tool/color.d.ts +3 -1
- package/lib/tool/color.js +6 -6
- package/lib/tool/parseSVG.js +11 -0
- package/lib/tool/path.js +7 -4
- package/lib/zrender.d.ts +1 -1
- package/lib/zrender.js +1 -1
- package/package.json +3 -2
- package/src/Element.ts +69 -16
- package/src/Handler.ts +1 -1
- package/src/Storage.ts +25 -24
- package/src/canvas/graphic.ts +1 -1
- package/src/canvas/helper.ts +1 -1
- package/src/contain/text.ts +103 -19
- package/src/core/BoundingRect.ts +308 -87
- package/src/core/OrientedBoundingRect.ts +86 -46
- package/src/core/PathProxy.ts +17 -1
- package/src/core/Transformable.ts +2 -0
- package/src/core/dom.ts +24 -0
- package/src/core/env.ts +31 -24
- package/src/core/matrix.ts +2 -1
- package/src/core/types.ts +2 -0
- package/src/core/util.ts +4 -2
- package/src/graphic/Displayable.ts +1 -3
- package/src/graphic/Group.ts +2 -0
- package/src/graphic/Text.ts +68 -21
- package/src/graphic/helper/parseText.ts +211 -83
- package/src/svg-legacy/helper/ClippathManager.ts +5 -5
- package/src/tool/color.ts +15 -11
- package/src/tool/parseSVG.ts +12 -1
- package/src/tool/path.ts +9 -4
- package/src/zrender.ts +1 -1
package/README.md
CHANGED
@@ -3,7 +3,7 @@ ZRender
|
|
3
3
|
|
4
4
|
A lightweight graphic library which provides 2d draw for [Apache ECharts](https://github.com/apache/echarts).
|
5
5
|
|
6
|
-
[]() [](https://www.npmjs.com/package/zrender) 
|
6
|
+
[](https://github.com/ecomfe/zrender/actions) [](https://www.npmjs.com/package/zrender) 
|
7
7
|
|
8
8
|
## Documentation
|
9
9
|
|
package/build/prepublish.js
CHANGED
@@ -75,6 +75,26 @@ if (untrackedFiles.length) {
|
|
75
75
|
console.log(chalk.green('✔️ No unexpected files found.'));
|
76
76
|
console.log();
|
77
77
|
|
78
|
+
console.log(chalk.yellow('🔎 Checking registry url of the packages in package-lock.json...\n'));
|
79
|
+
|
80
|
+
const NPM_REGISTRY = 'https://registry.npmjs.org/';
|
81
|
+
const packageLock = require('../package-lock.json');
|
82
|
+
|
83
|
+
const unexpectedPkgsFromUnofficialRegistry = Object.entries(packageLock.dependencies)
|
84
|
+
.concat(Object.entries(packageLock.packages))
|
85
|
+
.filter(([pkgName, pkgRegistry]) => pkgRegistry.resolved && !pkgRegistry.resolved.startsWith(NPM_REGISTRY));
|
86
|
+
if (unexpectedPkgsFromUnofficialRegistry.length) {
|
87
|
+
console.error(chalk.red('❌ Found packages that are not from npm registry in package-lock.json! Please double-check before publishing them to npm.'));
|
88
|
+
unexpectedPkgsFromUnofficialRegistry.forEach(([pkgName, pkgRegistry]) => {
|
89
|
+
console.log(` ∟ ${pkgName} (${pkgRegistry.resolved})`);
|
90
|
+
});
|
91
|
+
console.log();
|
92
|
+
process.exit(-1);
|
93
|
+
}
|
94
|
+
|
95
|
+
console.log(chalk.green('✔️ No unexpected packages with unofficial registry url found.'));
|
96
|
+
console.log();
|
97
|
+
|
78
98
|
function escapeOctal(str) {
|
79
99
|
const matches = str.match(/(\\\d{3}){3}/g);
|
80
100
|
if (matches) {
|