zrender-nightly 5.6.0-dev.20240629 → 5.6.1-dev.20240629
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 +9 -7
- 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/svg/Painter.js +1 -0
- package/lib/svg/core.d.ts +1 -0
- package/lib/svg/graphic.js +3 -3
- 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/svg/Painter.ts +1 -0
- package/src/svg/core.ts +2 -0
- package/src/svg/graphic.ts +6 -4
- 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.20240629';
|
7342
7343
|
|
7343
7344
|
var STYLE_MAGIC_KEY = '__zr_style_' + Math.round((Math.random() * 10));
|
7344
7345
|
var DEFAULT_COMMON_STYLE = {
|
@@ -16416,12 +16417,12 @@
|
|
16416
16417
|
else if (isFillStroke && isPattern(val)) {
|
16417
16418
|
setPattern(el, attrs, key, scope);
|
16418
16419
|
}
|
16419
|
-
else if (isFillStroke && val === 'none') {
|
16420
|
-
attrs[key] = 'transparent';
|
16421
|
-
}
|
16422
16420
|
else {
|
16423
16421
|
attrs[key] = val;
|
16424
16422
|
}
|
16423
|
+
if (isFillStroke && scope.ssr && val === 'none') {
|
16424
|
+
attrs['pointer-events'] = 'visible';
|
16425
|
+
}
|
16425
16426
|
}, style, el, false);
|
16426
16427
|
setShadow(el, attrs, scope);
|
16427
16428
|
}
|
@@ -17200,6 +17201,7 @@
|
|
17200
17201
|
scope.willUpdate = opts.willUpdate;
|
17201
17202
|
scope.compress = opts.compress;
|
17202
17203
|
scope.emphasis = opts.emphasis;
|
17204
|
+
scope.ssr = this._opts.ssr;
|
17203
17205
|
var children = [];
|
17204
17206
|
var bgVNode = this._bgVNode = createBackgroundVNode(width, height, this._backgroundColor, scope);
|
17205
17207
|
bgVNode && children.push(bgVNode);
|