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

@antv/g

Package Overview
Dependencies
Maintainers
4
Versions
361
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 2.0.6 to 2.0.7-beta.1

dist/g-2.0.7-beta.1.min.js

27

lib/core/mixin/animate.js

@@ -23,15 +23,24 @@ var MatrixUtil = require('../../util/matrix');

if (self.get('animating')) {
var clip = self.attr('clip');
// 如果 clip 在执行动画
if (clip && clip.get('animating')) {
clip.stopAnimate();
}
var timer = self.get('animateTimer');
timer && timer.stop();
if (timer) {
timer.stop();
self.setSilent('animateTimer', null);
}
var animateCfg = self.get('animateCfg');
self.attr(animateCfg.toAttrs);
if (animateCfg.toM) {
self.setMatrix(animateCfg.toM);
if (animateCfg) {
self.attr(animateCfg.toAttrs);
if (animateCfg.toM) {
self.setMatrix(animateCfg.toM);
}
if (animateCfg.callback) {
animateCfg.callback();
}
self.setSilent('animateCfg', null);
}
if (animateCfg.callback) {
animateCfg.callback();
}
self.setSilent('animating', false); // 动画停止
self.setSilent('animateCfg', null);
self.setSilent('animateTimer', null);
canvas.draw();

@@ -38,0 +47,0 @@ }

{
"name": "@antv/g",
"version": "2.0.6",
"version": "2.0.7-beta.1",
"description": "A canvas library which providing 2d draw for G2.",

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

@@ -18,15 +18,24 @@ const MatrixUtil = require('../../util/matrix');

if (self.get('animating')) {
const clip = self.attr('clip');
// 如果 clip 在执行动画
if (clip && clip.get('animating')) {
clip.stopAnimate();
}
const timer = self.get('animateTimer');
timer && timer.stop();
if (timer) {
timer.stop();
self.setSilent('animateTimer', null);
}
const animateCfg = self.get('animateCfg');
self.attr(animateCfg.toAttrs);
if (animateCfg.toM) {
self.setMatrix(animateCfg.toM);
if (animateCfg) {
self.attr(animateCfg.toAttrs);
if (animateCfg.toM) {
self.setMatrix(animateCfg.toM);
}
if (animateCfg.callback) {
animateCfg.callback();
}
self.setSilent('animateCfg', null);
}
if (animateCfg.callback) {
animateCfg.callback();
}
self.setSilent('animating', false); // 动画停止
self.setSilent('animateCfg', null);
self.setSilent('animateTimer', null);
canvas.draw();

@@ -33,0 +42,0 @@ }

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