zrender-nightly 5.6.1-dev.20240628 → 5.6.1-dev.20240630

Sign up to get free protection for your applications and to get access to all the features.
package/dist/zrender.js CHANGED
@@ -7339,7 +7339,7 @@
7339
7339
  function registerSSRDataGetter(getter) {
7340
7340
  ssrDataGetter = getter;
7341
7341
  }
7342
- var version = '5.6.1-dev.20240628';
7342
+ var version = '5.6.1-dev.20240630';
7343
7343
 
7344
7344
  var STYLE_MAGIC_KEY = '__zr_style_' + Math.round((Math.random() * 10));
7345
7345
  var DEFAULT_COMMON_STYLE = {
@@ -16417,12 +16417,12 @@
16417
16417
  else if (isFillStroke && isPattern(val)) {
16418
16418
  setPattern(el, attrs, key, scope);
16419
16419
  }
16420
- else if (isFillStroke && val === 'none') {
16421
- attrs[key] = 'transparent';
16422
- }
16423
16420
  else {
16424
16421
  attrs[key] = val;
16425
16422
  }
16423
+ if (isFillStroke && scope.ssr && val === 'none') {
16424
+ attrs['pointer-events'] = 'visible';
16425
+ }
16426
16426
  }, style, el, false);
16427
16427
  setShadow(el, attrs, scope);
16428
16428
  }
@@ -17201,6 +17201,7 @@
17201
17201
  scope.willUpdate = opts.willUpdate;
17202
17202
  scope.compress = opts.compress;
17203
17203
  scope.emphasis = opts.emphasis;
17204
+ scope.ssr = this._opts.ssr;
17204
17205
  var children = [];
17205
17206
  var bgVNode = this._bgVNode = createBackgroundVNode(width, height, this._backgroundColor, scope);
17206
17207
  bgVNode && children.push(bgVNode);