File size: 1,085 Bytes
97420cf | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | 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
};
|