Comparing version 2.0.6 to 2.0.7-beta.1
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27142
998877
100
1
1