mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 16:44:23 +08:00
This commit is contained in:
1 parent
2cc6c121f8
commit
7f79d1e70a
18 files changed
+757
-129
No files matched your search
@@ -184,7 +184,7 @@ func (e *Editor) eraseObjects(page int, ids []string, box Box, points []Point, r
|
||||
}
|
||||
|
||||
// editorObjectClips 获取基本对象的裁剪字段
|
||||
// 入参: object 文字、路径或图片对象
|
||||
// 入参: object 文字、路径、图片或复合对象
|
||||
// 返回: **Clips 裁剪字段地址,不支持的对象返回nil
|
||||
func editorObjectClips(object *GraphicObject) **Clips {
|
||||
switch object.Type {
|
||||
@@ -194,6 +194,8 @@ func editorObjectClips(object *GraphicObject) **Clips {
|
||||
return &object.PathObject.Clips
|
||||
case "ImageObject":
|
||||
return &object.ImageObject.Clips
|
||||
case "CompositeObject", "CompositeGraphicUnit":
|
||||
return &object.CompositeGraphicUnit.Clips
|
||||
}
|
||||
return nil
|
||||
}
|
||||
Reference in new issue
Block a user