Download src/lib/modes.js from soiz1/s4s-paint: direct link, hf CLI and curl.
- Browser
- Download file 1.09 kB
-
https://huggingface.co/datasets/soiz1/s4s-paint/resolve/main/src/lib/modes.js
- Command line
-
hf download hf://datasets/soiz1/s4s-paint/src/lib/modes.js
-
curl -L -o modes.js https://huggingface.co/datasets/soiz1/s4s-paint/resolve/main/src/lib/modes.js
1.09 kB
| import keyMirror from 'keymirror'; | |
| const vectorModesObj = { | |
| BRUSH: null, | |
| ERASER: null, | |
| LINE: null, | |
| FILL: null, | |
| SELECT: null, | |
| RESHAPE: null, | |
| PEN: null, | |
| OVAL: null, | |
| RECT: null, | |
| ROUNDED_RECT: null, | |
| TEXT: null, | |
| SUSSY: null, | |
| TRIANGLE: null, | |
| ARROW: null | |
| }; | |
| const bitmapModesObj = { | |
| BIT_BRUSH: null, | |
| BIT_LINE: null, | |
| BIT_OVAL: null, | |
| BIT_RECT: null, | |
| BIT_TEXT: null, | |
| BIT_FILL: null, | |
| BIT_ERASER: null, | |
| BIT_SELECT: null | |
| }; | |
| const VectorModes = keyMirror(vectorModesObj); | |
| const BitmapModes = keyMirror(bitmapModesObj); | |
| const Modes = keyMirror({...vectorModesObj, ...bitmapModesObj}); | |
| const GradientToolsModes = keyMirror({ | |
| FILL: null, | |
| SELECT: null, | |
| RESHAPE: null, | |
| OVAL: null, | |
| RECT: null, | |
| ROUNDED_RECT: null, | |
| LINE: null, | |
| BIT_OVAL: null, | |
| BIT_RECT: null, | |
| BIT_SELECT: null, | |
| BIT_FILL: null, | |
| TEXT: null, | |
| SUSSY: null, | |
| TRIANGLE: null, | |
| ARROW: null | |
| }); | |
| export { | |
| Modes as default, | |
| VectorModes, | |
| BitmapModes, | |
| GradientToolsModes | |
| }; | |