zrender-nightly 5.6.0-dev.20240627 → 5.6.1-dev.20240628
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/README.md +4 -0
- package/dist/zrender.js +5 -4
- package/dist/zrender.js.map +1 -1
- package/dist/zrender.min.js +1 -1
- package/lib/core/env.js +3 -2
- package/lib/core/platform.js +1 -1
- package/lib/zrender.d.ts +1 -1
- package/lib/zrender.js +1 -1
- package/package.json +1 -1
- package/src/core/env.ts +3 -2
- package/src/core/platform.ts +2 -2
- package/src/zrender.ts +1 -1
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
|
42
|
-
|| navigator
|
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 = /(
|
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.
|
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 = {
|