mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 14:53:44 +08:00
This commit is contained in:
1 parent
7f79d1e70a
commit
3a867a7cac
15 files changed
+444
-81
No files matched your search
@@ -49,6 +49,13 @@ func (e *Editor) resolveEditorStyle(object GraphicObject, layer string) (Graphic
|
||||
id = object.TextObject.DrawParam
|
||||
case "PathObject":
|
||||
id = object.PathObject.DrawParam
|
||||
case "CompositeObject", "CompositeGraphicUnit":
|
||||
for _, id := range []string{layer, object.CompositeGraphicUnit.DrawParam} {
|
||||
if _, err := e.editorDrawParam(id, make(map[string]bool)); err != nil {
|
||||
return GraphicObject{}, err
|
||||
}
|
||||
}
|
||||
return object, nil
|
||||
default:
|
||||
return object, nil
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user