zrender-nightly 5.6.1-dev.20241013 → 5.6.1-dev.20241015
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/zrender.js +3 -3
- package/dist/zrender.js.map +1 -1
- package/dist/zrender.min.js +1 -1
- package/lib/core/PathProxy.js +1 -1
- package/lib/tool/path.js +1 -1
- package/lib/zrender.d.ts +1 -1
- package/lib/zrender.js +1 -1
- package/package.json +1 -1
- package/src/core/PathProxy.ts +1 -1
- package/src/tool/path.ts +1 -1
- package/src/zrender.ts +1 -1
package/lib/core/PathProxy.js
CHANGED
@@ -230,7 +230,7 @@ var PathProxy = (function () {
|
|
230
230
|
for (var i = 0; i < len; i++) {
|
231
231
|
appendSize += path[i].len();
|
232
232
|
}
|
233
|
-
if (hasTypedArray && (this.data instanceof Float32Array)) {
|
233
|
+
if (hasTypedArray && (this.data instanceof Float32Array || !this.data)) {
|
234
234
|
this.data = new Float32Array(offset + appendSize);
|
235
235
|
}
|
236
236
|
for (var i = 0; i < len; i++) {
|
package/lib/tool/path.js
CHANGED
@@ -291,7 +291,7 @@ function createPathOptions(str, opts) {
|
|
291
291
|
var innerOpts = extend({}, opts);
|
292
292
|
innerOpts.buildPath = function (path) {
|
293
293
|
if (isPathProxy(path)) {
|
294
|
-
path.
|
294
|
+
path.appendPath(pathProxy);
|
295
295
|
var ctx = path.getContext();
|
296
296
|
if (ctx) {
|
297
297
|
path.rebuildPath(ctx, 1);
|
package/lib/zrender.d.ts
CHANGED
@@ -90,7 +90,7 @@ export declare type ElementSSRData = zrUtil.HashMap<unknown>;
|
|
90
90
|
export declare type ElementSSRDataGetter<T> = (el: Element) => zrUtil.HashMap<T>;
|
91
91
|
export declare function getElementSSRData(el: Element): ElementSSRData;
|
92
92
|
export declare function registerSSRDataGetter<T>(getter: ElementSSRDataGetter<T>): void;
|
93
|
-
export declare const version = "5.6.1-dev.
|
93
|
+
export declare const version = "5.6.1-dev.20241015";
|
94
94
|
export interface ZRenderType extends ZRender {
|
95
95
|
}
|
96
96
|
export {};
|
package/lib/zrender.js
CHANGED
package/package.json
CHANGED
package/src/core/PathProxy.ts
CHANGED
@@ -389,7 +389,7 @@ export default class PathProxy {
|
|
389
389
|
for (let i = 0; i < len; i++) {
|
390
390
|
appendSize += path[i].len();
|
391
391
|
}
|
392
|
-
if (hasTypedArray && (this.data instanceof Float32Array)) {
|
392
|
+
if (hasTypedArray && (this.data instanceof Float32Array || !this.data)) {
|
393
393
|
this.data = new Float32Array(offset + appendSize);
|
394
394
|
}
|
395
395
|
for (let i = 0; i < len; i++) {
|
package/src/tool/path.ts
CHANGED
@@ -389,7 +389,7 @@ function createPathOptions(str: string, opts: SVGPathOption): InnerSVGPathOption
|
|
389
389
|
const innerOpts: InnerSVGPathOption = extend({}, opts);
|
390
390
|
innerOpts.buildPath = function (path: PathProxy | CanvasRenderingContext2D) {
|
391
391
|
if (isPathProxy(path)) {
|
392
|
-
path.
|
392
|
+
path.appendPath(pathProxy);
|
393
393
|
// Svg and vml renderer don't have context
|
394
394
|
const ctx = path.getContext();
|
395
395
|
if (ctx) {
|
package/src/zrender.ts
CHANGED
@@ -556,7 +556,7 @@ export function registerSSRDataGetter<T>(getter: ElementSSRDataGetter<T>) {
|
|
556
556
|
/**
|
557
557
|
* @type {string}
|
558
558
|
*/
|
559
|
-
export const version = '5.6.1-dev.
|
559
|
+
export const version = '5.6.1-dev.20241015';
|
560
560
|
|
561
561
|
|
562
562
|
export interface ZRenderType extends ZRender {};
|