docs(Lensflare): add demo#232
Conversation
✅ Deploy Preview for cientos-tresjs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
alvarosabu
left a comment
There was a problem hiding this comment.
That looks awesome @andretchen0. I would probably use a darker clear color for the canvas, the teal one does not necessarily provide justice to the effect. 😅
Did you consider adding a GUI with tresleches for the scale?
|
Good call on the color.
I hadn't considered it for the docs demo – mostly just because Lensflare has a lot of props. It's no problem though. Would you like me to add a scale control? There's another demo that includes most of the props as Leches controls – including scale – that I was going to add to the playground. In the cientos repo, if you run ... ... you can see the demo at: |
|
Oh yeah @andretchen0 the demo in the playground is the one I used for the video on the announcement. I think it would be cool to add the scale control for the docs demo. |
|
I've added a Leches controller for the scale, following the example at: /guide/controls/transform-controls.html I added small CSS Screen.Recording.2023-09-27.at.19.56.10.movShould I open a Leches issue, or is there a "blessed" way to handle that? |
The CSS important will collide with the draggable, that's why is fixed. Maybe we should add an option to place it (left, right, top, bottom 🤔) |
alvarosabu
left a comment
There was a problem hiding this comment.
@andretchen0 nice work with the demo, just solve the latest conflicts with the main and we are ready to merge
Ok, I've merged in main. I think it's ready to go. |
This adds a demo to the Lensflare docs page.
It also updates the "Usage" example. It's now a working SFC.