zrender-nightly 6.0.1-dev.20251203 → 6.0.1-dev.20251205

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/dist/zrender.js CHANGED
@@ -4329,14 +4329,14 @@
4329
4329
  return res.join(' ');
4330
4330
  }
4331
4331
  var encodeBase64 = (function () {
4332
- if (env.hasGlobalWindow && isFunction(window.btoa)) {
4332
+ if (typeof Buffer !== 'undefined' && typeof Buffer.from === 'function') {
4333
4333
  return function (str) {
4334
- return window.btoa(unescape(encodeURIComponent(str)));
4334
+ return Buffer.from(str).toString('base64');
4335
4335
  };
4336
4336
  }
4337
- if (typeof Buffer !== 'undefined') {
4337
+ if (typeof btoa === 'function' && typeof unescape === 'function' && typeof encodeURIComponent === 'function') {
4338
4338
  return function (str) {
4339
- return Buffer.from(str).toString('base64');
4339
+ return btoa(unescape(encodeURIComponent(str)));
4340
4340
  };
4341
4341
  }
4342
4342
  return function (str) {
@@ -7498,7 +7498,7 @@
7498
7498
  function registerSSRDataGetter(getter) {
7499
7499
  ssrDataGetter = getter;
7500
7500
  }
7501
- var version = '6.0.1-dev.20251203';
7501
+ var version = '6.0.1-dev.20251205';
7502
7502
 
7503
7503
  var STYLE_MAGIC_KEY = '__zr_style_' + Math.round((Math.random() * 10));
7504
7504
  var DEFAULT_COMMON_STYLE = {