| 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 | |
| }; | |