Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

zrender

Package Overview
Dependencies
Maintainers
1
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zrender - npm Package Compare versions

Comparing version 3.0.7 to 3.0.8

8

lib/container/Group.js

@@ -58,2 +58,10 @@ /**

/**
* 所有子孙元素是否响应鼠标事件
* @name module:/zrender/container/Group#silent
* @type {boolean}
* @default false
*/
silent: false,
/**
* @return {Array.<module:zrender/Element>}

@@ -60,0 +68,0 @@ */

10

lib/Handler.js

@@ -466,9 +466,9 @@ 'use strict';

if (displayable[displayable.rectHover ? 'rectContain' : 'contain'](x, y)) {
var p = displayable.parent;
while (p) {
if (p.clipPath && !p.clipPath.contain(x, y)) {
// Clipped by parents
var el = displayable;
while (el) {
// If ancestor is silent or clipped by ancestor
if (el.silent || (el.clipPath && !el.clipPath.contain(x, y))) {
return false;
}
p = p.parent;
el = el.parent;
}

@@ -475,0 +475,0 @@ return true;

@@ -467,2 +467,3 @@ // http://www.w3.org/TR/NOTE-VML

this.buildPath(path, this.shape);
path.toStatic();
this.__dirtyPath = false;

@@ -469,0 +470,0 @@ }

@@ -31,3 +31,3 @@ /*!

*/
zrender.version = '3.0.7';
zrender.version = '3.0.8';

@@ -34,0 +34,0 @@ /**

{
"name": "zrender",
"version": "3.0.7",
"version": "3.0.8",
"description": "A lightweight canvas library.",

@@ -5,0 +5,0 @@ "keywords": [

@@ -58,2 +58,10 @@ /**

/**
* 所有子孙元素是否响应鼠标事件
* @name module:/zrender/container/Group#silent
* @type {boolean}
* @default false
*/
silent: false,
/**
* @return {Array.<module:zrender/Element>}

@@ -60,0 +68,0 @@ */

@@ -467,9 +467,9 @@ /**

if (displayable[displayable.rectHover ? 'rectContain' : 'contain'](x, y)) {
var p = displayable.parent;
while (p) {
if (p.clipPath && !p.clipPath.contain(x, y)) {
// Clipped by parents
var el = displayable;
while (el) {
// If ancestor is silent or clipped by ancestor
if (el.silent || (el.clipPath && !el.clipPath.contain(x, y))) {
return false;
}
p = p.parent;
el = el.parent;
}

@@ -476,0 +476,0 @@ return true;

@@ -467,2 +467,3 @@ // http://www.w3.org/TR/NOTE-VML

this.buildPath(path, this.shape);
path.toStatic();
this.__dirtyPath = false;

@@ -469,0 +470,0 @@ }

@@ -31,3 +31,3 @@ /*!

*/
zrender.version = '3.0.7';
zrender.version = '3.0.8';

@@ -34,0 +34,0 @@ /**

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc