Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I store the location of a path as a list of offsets? #35

Closed
PeterTF656 opened this issue Jun 18, 2021 · 2 comments
Closed

How can I store the location of a path as a list of offsets? #35

PeterTF656 opened this issue Jun 18, 2021 · 2 comments

Comments

@PeterTF656
Copy link

I would like to save the drawing as a list of lists. More specifically, a list of paths that each has a list of offset points in (x and y). Is this possible using the PainterController in this package?

@EP-u-NW
Copy link
Collaborator

EP-u-NW commented Jun 25, 2021

Not out of the box, but I'm sure you could work something out to fit your needs. Maybe if you look at the _PathHistory class here
https://github.com/EPNW/painter/blob/ac1555d1bab8dd1afb0976d97bc9dcb78f527e93/lib/painter.dart#L99
and make it public, as well as making the respective property of the PainterController public here
https://github.com/EPNW/painter/blob/ac1555d1bab8dd1afb0976d97bc9dcb78f527e93/lib/painter.dart#L204
you could access the information you need.

@PeterTF656
Copy link
Author

Not out of the box, but I'm sure you could work something out to fit your needs. Maybe if you look at the _PathHistory class here
https://github.com/EPNW/painter/blob/ac1555d1bab8dd1afb0976d97bc9dcb78f527e93/lib/painter.dart#L99

and make it public, as well as making the respective property of the PainterController public here
https://github.com/EPNW/painter/blob/ac1555d1bab8dd1afb0976d97bc9dcb78f527e93/lib/painter.dart#L204

you could access the information you need.

Thank you! I have figured it out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant