Socket
Socket
Sign inDemoInstall

@antv/g

Package Overview
Dependencies
Maintainers
8
Versions
349
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@antv/g - npm Package Compare versions

Comparing version 3.4.0-beta.2 to 3.4.0-beta.3

.idea/deployment.xml

2

lib/core/element.js

@@ -9,3 +9,3 @@ var Util = require('../util/index');

var EventEmitter = require('./event-emitter');
var EventEmitter = require('./advanced-event-emitter');

@@ -12,0 +12,0 @@ var Element = function Element(cfg) {

var Util = require('../util/common');
var Event = require('../event');
var PROPOGATE_EVENTS = ['click', 'mousedown', 'mouseup', 'dblclick', 'contextmenu', 'mouseout', 'mouseover', 'mousemove', 'dragstart', 'drag', 'dragend', 'dragenter', 'dragleave', 'drop'];
var slice = Array.prototype.slice;

@@ -78,15 +75,2 @@

}
if (args.length >= 2 && args[1] instanceof Event && args[1].propagationStopped) {
return;
}
if (PROPOGATE_EVENTS.indexOf(evt) >= 0) {
var shape = this._cfg.parent;
while (shape && !shape.removed && !shape.destroyed) {
shape.emit.apply(shape, args);
shape = shape._cfg.parent;
}
}
},

@@ -93,0 +77,0 @@ trigger: function trigger() {

@@ -23,3 +23,3 @@ module.exports = {

// version, etc.
version: '3.4.0-beta.2'
version: '3.4.0-beta.3'
};
{
"name": "@antv/g",
"version": "3.4.0-beta.2",
"version": "3.4.0-beta.3",
"description": "A canvas library which providing 2d draw for G2.",

@@ -15,2 +15,3 @@ "keywords": [

"author": "https://github.com/orgs/antvis/people",
"license": "MIT",
"repository": {

@@ -17,0 +18,0 @@ "type": "git",

@@ -5,3 +5,3 @@ const Util = require('../util/index');

const Animate = require('./mixin/animation');
const EventEmitter = require('./event-emitter');
const EventEmitter = require('./advanced-event-emitter');

@@ -8,0 +8,0 @@ const Element = function(cfg) {

const Util = require('../util/common');
const Event = require('../event');
const PROPOGATE_EVENTS = [
'click',
'mousedown',
'mouseup',
'dblclick',
'contextmenu',
'mouseout',
'mouseover',
'mousemove',
'dragstart',
'drag',
'dragend',
'dragenter',
'dragleave',
'drop'
];
const slice = Array.prototype.slice;

@@ -76,12 +59,2 @@

}
if (args.length >= 2 && args[1] instanceof Event && args[1].propagationStopped) {
return;
}
if (PROPOGATE_EVENTS.indexOf(evt) >= 0) {
let shape = this._cfg.parent;
while (shape && !shape.removed && !shape.destroyed) {
shape.emit.apply(shape, args);
shape = shape._cfg.parent;
}
}
},

@@ -88,0 +61,0 @@ trigger() {

@@ -23,3 +23,3 @@ module.exports = {

// version, etc.
version: '3.4.0-beta.2'
version: '3.4.0-beta.3'
};

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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