mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 08:46:55 +08:00
This commit is contained in:
1 parent
cfbaa8a177
commit
2c06e5ff69
43 files changed
+3211
-397
No files matched your search
@@ -44,6 +44,9 @@ type semanticStyle struct {
|
||||
// 入参: object 源对象, state 继承状态
|
||||
// 返回: error 编译错误
|
||||
func (c *semanticCompiler) DrawObject(object *GraphicObject, state RenderState) error {
|
||||
if state.Hidden {
|
||||
return nil
|
||||
}
|
||||
switch object.Type {
|
||||
case "TextObject":
|
||||
return c.textObject(object.TextObject, state)
|
||||
|
||||
Reference in new issue
Block a user