Skip to content

Commit d169e34

Browse files
committed
【杨琨】【解决标绘图元无法修改颜色的问题】
1 parent c8218a8 commit d169e34

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/service/3DPlot/Primitive/RegularPrimitive/RegularPointPrimitive.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ class RegularPointPrimitive extends BaseRegularPrimitive {
7171
let that = this;
7272
const scale = this.getGlobelScale();
7373
this._elem.changeAttributeStatus(true, scale, scale);
74+
this._isTranslate = false;
7475

7576
this._createGeomInstance(function (geomInstances) {
7677
that.applySelectStatus(geomInstances);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ class BasePlotElement extends SvgElement {
369369
_setNodeAttr(child, key, value) {
370370
const {baseSVGAttributes, extendElementAttributes} =
371371
child.getSaveBaseAttributes();
372-
const baseSVGStyleAttributes = this.getStyleObject().getStyleNameArr();
372+
const baseSVGStyleAttributes = child.getStyleObject().getStyleNameArr();
373373

374374
if (baseSVGStyleAttributes.indexOf(key) > -1) {
375375
child.getStyleObject().setStyle(key, value);

0 commit comments

Comments
 (0)