Skip to content

Commit 84ea708

Browse files
committed
【杨琨】【颜色修改】
1 parent ecf7c45 commit 84ea708

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/service/3DPlot/Draw/DrawPoint.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ export default class DrawPoint extends DrawObject {
3838
const {classificationType} = that._symbol;
3939
res.classificationType = classificationType;
4040
const {style} = that._symbol;
41-
if(style){
42-
res.initNodeStyles(style);
41+
if(style && style.nodeStyles){
42+
res.initNodeStyles(style.nodeStyles);
4343
}
4444

4545
that._primitive = PrimitiveFactory.createInstance(symbol.type, {

src/service/3DPlot/Draw/DrawPolyline.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ export default class DrawPolyline extends DrawObject {
6262
const {classificationType} = that._symbol;
6363
res.classificationType = classificationType;
6464
const {style} = that._symbol;
65-
if(style){
66-
res.initNodeStyles(style);
65+
if(style && style.nodeStyles){
66+
res.initNodeStyles(style.nodeStyles);
6767
}
6868
that._primitive = PrimitiveFactory.createInstance(symbol.type, {
6969
positions: that.m_coords,

0 commit comments

Comments
 (0)