DWilliames / google-sheets-sync-figma

80 stars 8 forks source link

set coordinates of points on a line (shape) #220

Open BHIBJ opened 4 months ago

BHIBJ commented 4 months ago

Is your feature request related to a problem? Please describe. This is not a problem but it is something I have to manually update. Like creating a graph. I can set the points on the graph because those are individual layers. But the line of the graph itself is a single line with multiple points that I have to manually move.

Describe the solution you'd like If possible (and I don't know if it is), ideally I could target an individual point in a line (shape) and set the X and Y coordinates for that point.

Describe alternatives you've considered Right now I have to manually move each one. Maybe if I broke up the single graph line into individual shapes (lines between each point), then use the Y coordinate to change the height, and maybe the rotation to change the angle so it lines up with the two points. That could be a way to solve it. Would take some intricate math to make sure it perfectly lines up and doesn't look wonky.

Additional context Thank you for the plugin. it has proven to be very useful so far. Have only been testing it for a week. But I'm using it to generate a dashboard in Figma, that I then export as PDFs to my team. I'm sure I'll end up using it for other mockups and prototyping but right now this has been the most data-driven need.

BHIBJ commented 4 months ago

i have tried another way, which is to create individual lines between each point, find the center of the distance between the two points to position the line, then the length of it using the hypotenuse in the Pythagorean Theorem (haven't used that since 7th grade), then the rotation which is the angle of the hypotenuse. Total B.S. way to do it but it works. 🤣