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.
@@ -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.setData(pathProxy.data);
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.20241013";
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
@@ -324,5 +324,5 @@ export function getElementSSRData(el) {
324
324
  export function registerSSRDataGetter(getter) {
325
325
  ssrDataGetter = getter;
326
326
  }
327
- export var version = '5.6.1-dev.20241013';
327
+ export var version = '5.6.1-dev.20241015';
328
328
  ;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zrender-nightly",
3
- "version": "5.6.1-dev.20241013",
3
+ "version": "5.6.1-dev.20241015",
4
4
  "description": "A lightweight graphic library providing 2d draw for Apache ECharts",
5
5
  "keywords": [
6
6
  "canvas",
@@ -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.setData(pathProxy.data);
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.20241013';
559
+ export const version = '5.6.1-dev.20241015';
560
560
 
561
561
 
562
562
  export interface ZRenderType extends ZRender {};