playcanvas / pcui

UI component library for web-based tools
http://playcanvas.github.io/pcui
MIT License
670 stars 65 forks source link

added color picker, gradient picker and canvas #182

Closed sri-30 closed 2 years ago

sri-30 commented 2 years ago

Added the color picker, gradient picker and canvas components:

Color Picker:

Screenshot 2022-09-07 at 10 47 20

Gradient Picker:

Screenshot 2022-09-02 at 10 14 32
slimbuck commented 2 years ago

I think the two new classes must manually be added to https://github.com/playcanvas/pcui/blob/main/react/dist/pcui-react.d.ts. @ellthompson to confirm.

sri-30 commented 2 years ago

Is it really better to copy/paste PlayCanvas engine classes instead of adding playcanvas as a dependency with tree-shaking?

This will most likely be changed in a future revision of this feature; the classes have been copied over for now as they are unlikely to change in the future.