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

Sign up to get free protection for your applications and to get access to all the features.
package/README.md CHANGED
@@ -41,3 +41,7 @@ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
41
41
  CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
42
42
  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
43
43
  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
44
+
45
+ ## Notice
46
+
47
+ The Apache Software Foundation [Apache ECharts, ECharts](https://echarts.apache.org/), Apache, the Apache feather, and the Apache ECharts project logo are either registered trademarks or trademarks of the [Apache Software Foundation](https://www.apache.org/).
package/dist/zrender.js CHANGED
@@ -38,8 +38,9 @@
38
38
  else if (typeof document === 'undefined' && typeof self !== 'undefined') {
39
39
  env.worker = true;
40
40
  }
41
- else if (typeof navigator === 'undefined'
42
- || navigator.userAgent.indexOf('Node.js') === 0) {
41
+ else if ((typeof process !== 'undefined' && typeof process.version === 'string')
42
+ || (typeof navigator === 'undefined' || typeof navigator.userAgent === 'undefined')
43
+ || (env.hasGlobalWindow && 'Deno' in window)) {
43
44
  env.node = true;
44
45
  env.svgSupported = true;
45
46
  }
@@ -125,7 +126,7 @@
125
126
  else {
126
127
  text = text || '';
127
128
  font = font || DEFAULT_FONT;
128
- var res = /(\d+)px/.exec(font);
129
+ var res = /((?:\d+)?\.?\d*)px/.exec(font);
129
130
  var fontSize = res && +res[1] || DEFAULT_FONT_SIZE;
130
131
  var width = 0;
131
132
  if (font.indexOf('mono') >= 0) {
@@ -7338,7 +7339,7 @@
7338
7339
  function registerSSRDataGetter(getter) {
7339
7340
  ssrDataGetter = getter;
7340
7341
  }
7341
- var version = '5.6.0-dev.20240628';
7342
+ var version = '5.6.1-dev.20240628';
7342
7343
 
7343
7344
  var STYLE_MAGIC_KEY = '__zr_style_' + Math.round((Math.random() * 10));
7344
7345
  var DEFAULT_COMMON_STYLE = {