treeform / fidget

Figma based UI library for nim, with HTML and OpenGL backends.
MIT License
768 stars 33 forks source link

ellipse is built by plugin but missing in fidget code: undeclared identifier: 'ellipse' #119

Closed ridcully99 closed 3 years ago

ridcully99 commented 3 years ago

I created a little layout and exported it with figma plugin, but the exported code produces error: undeclared identifier: 'ellipse'

ellipse "Ellipse 1":
      box 0, 0, 20, 25
      constraints cScale, cScale
      fill "#ff0000"
treeform commented 3 years ago

Yes most geometric commands like ellipse are missing at the moment.

ridcully99 commented 3 years ago

Thanks for answering. I had a closer look at the code now and also at the demo and saw that I can use a rectangle with rounded corners instead for now. Also digged down into the code to see if I could help implementing missing geometrics but it becomes very low level and it's been quite I while that I learned about image algorithms. So I'll leave this to you. But let me say that I am very impressed with your code and the vast amount of projects you do with nim.

treeform commented 3 years ago

I am working on code that can do all of the primitives in pixie first.

On Sat, Dec 5, 2020 at 12:21 PM ridcully99 notifications@github.com wrote:

Closed #119 https://github.com/treeform/fidget/issues/119.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/treeform/fidget/issues/119#event-4075962353, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAA6X7CMAMKR4ZA7MRBMLV3STKI57ANCNFSM4UORNCMQ .