Property 'addPath' does not exist on type 'SkPath' #1073
-
Hello Developers, I'm writing an app where I'm rendering lines on the screen to visualize a medical scenario. Before Are there any plans to export the missing properties from the SkPath class? :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
This is definitely a method we could expose. In the meantime you can use the union path operator via path.op() to append path? |
Beta Was this translation helpful? Give feedback.
This is definitely a method we could expose.
Could you send us some use-cases/examples?
In the meantime you can use the union path operator via path.op() to append path?
You can also implement the feature yourself that using
toCmds()
to the path you want to append and add each command to the origin path. You can see the reference implementation at https://github.com/google/skia/blob/1f193df9b393d50da39570dab77a0bb5d28ec8ef/src/core/SkPath.cpp#L1395