Skip to content

Commit a069720

Browse files
author
zhaokai
committed
二三维标绘 动画
1 parent 36e566a commit a069720

File tree

10 files changed

+329
-299
lines changed

10 files changed

+329
-299
lines changed

src/service/2DPlot/Shapes/PlotObject.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* @Author: your name
33
* @Date: 2021-07-05 11:32:52
4-
* @LastEditTime: 2022-05-30 16:23:28
4+
* @LastEditTime: 2022-06-08 09:54:23
55
* @LastEditors: zk
66
* @Description: In User Settings Edit
77
* @FilePath: \MapGISPlot\src\js\Shapes\PlotObject.js
@@ -94,10 +94,12 @@ const PlotObject = fabric.util.createClass(fabric.Object, {
9494
isNotVisible: function () {
9595
return this.opacity === 0 || (!this.width && !this.height && this.strokeWidth === 0) || !this.visible || !this._elem.show;
9696
},
97-
setValue: function setValue(key, value, ids) {
97+
setValue: function setValue(key, value, ids,isWaitRender=true) {
9898
this._elem.setNodeAttr(key, value, ids);
9999
this.set('dirty', true);
100-
this.canvas.requestRenderAll();
100+
if(isWaitRender){
101+
this.canvas.requestRenderAll();
102+
}
101103
},
102104

103105
getPlotCanvas: function getPlotCanvas() {

0 commit comments

Comments
 (0)