Skip to content

Commit 8bb4999

Browse files
author
zhaokai
committed
【问题】【childIds未判断问题】
1 parent 0f2da04 commit 8bb4999

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/service/PlotBase/Animation/AnimationTypes/PlotBaseAnimation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ export default class PlotBaseAnimation {
283283
return false;
284284
}
285285
resetGeometryStatus() {
286-
this.render(0.001);
286+
this.render(0.000001);
287287
}
288288
updateGeometry() {
289289
if (this._updateGeometry) {

src/service/PlotBase/SvgLoader/element/BasePlotElement.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @Author: zk
44
* @Date: 2021-11-18 15:08:49
55
* @LastEditors: zk
6-
* @LastEditTime: 2022-07-02 14:22:55
6+
* @LastEditTime: 2022-07-06 11:22:37
77
*/
88
import Point from '../../../PlotUtilBase/Geometry/Point';
99
import { createGuid } from '../../../PlotUtilBase/Util/Guid';
@@ -319,6 +319,7 @@ class BasePlotElement extends SvgElement {
319319
* @return {*}
320320
*/
321321
setNodeAttr(type, value, childIds) {
322+
if(!childIds) return;
322323
const { baseSVGAttributes, extendElementAttributes } = this.getSaveBaseAttributes();
323324
const baseSVGStyleAttributes = this.getStyleObject().getSVGStyleNameArr();
324325

0 commit comments

Comments
 (0)