Create notch-shape.js
Browse files
src/extension-support/notch-shape.js
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* Types of block notch/nub shapes
|
| 3 |
+
* @enum {string}
|
| 4 |
+
*/
|
| 5 |
+
const NotchShape = {
|
| 6 |
+
/**
|
| 7 |
+
* Notch shape: switchCase (switch-case).
|
| 8 |
+
*/
|
| 9 |
+
SWITCH: "switchCase",
|
| 10 |
+
|
| 11 |
+
/**
|
| 12 |
+
* Notch shape: hexagonal (booleans/predicates).
|
| 13 |
+
*/
|
| 14 |
+
HEXAGON: "hexagon",
|
| 15 |
+
|
| 16 |
+
/**
|
| 17 |
+
* Notch shape: rounded (numbers/strings).
|
| 18 |
+
*/
|
| 19 |
+
ROUND: "round",
|
| 20 |
+
|
| 21 |
+
/**
|
| 22 |
+
* Notch shape: squared (arrays/array buffers/uint arrays).
|
| 23 |
+
*/
|
| 24 |
+
SQUARE: "square",
|
| 25 |
+
|
| 26 |
+
/**
|
| 27 |
+
* pm: Notch shape: leaf-ed (vectors).
|
| 28 |
+
*/
|
| 29 |
+
LEAF: "leaf",
|
| 30 |
+
|
| 31 |
+
/**
|
| 32 |
+
* pm: Notch shape: plus (objects/classes or class instances).
|
| 33 |
+
*/
|
| 34 |
+
PLUS: "plus",
|
| 35 |
+
|
| 36 |
+
/**
|
| 37 |
+
* pm: Notch shape: octagonal (Scratch targets).
|
| 38 |
+
*/
|
| 39 |
+
OCTAGONAL: "octagonal",
|
| 40 |
+
|
| 41 |
+
/**
|
| 42 |
+
* pm: Notch shape: bumped (BigInt).
|
| 43 |
+
*/
|
| 44 |
+
BUMPED: "bumped",
|
| 45 |
+
|
| 46 |
+
/**
|
| 47 |
+
* pm: Notch shape: indented (Symbols).
|
| 48 |
+
*/
|
| 49 |
+
INDENTED: "indented",
|
| 50 |
+
|
| 51 |
+
/**
|
| 52 |
+
* pm: Notch shape: scrapped (Maps).
|
| 53 |
+
*/
|
| 54 |
+
SCRAPPED: "scrapped",
|
| 55 |
+
|
| 56 |
+
/**
|
| 57 |
+
* pm: Notch shape: arrow (Sets).
|
| 58 |
+
*/
|
| 59 |
+
ARROW: "arrow",
|
| 60 |
+
|
| 61 |
+
/**
|
| 62 |
+
* pm: Notch shape: ticket (Dates).
|
| 63 |
+
*/
|
| 64 |
+
TICKET: "ticket",
|
| 65 |
+
|
| 66 |
+
/**
|
| 67 |
+
* these notches dont really coresspond to any data type
|
| 68 |
+
*/
|
| 69 |
+
JIGSAW: "jigsaw",
|
| 70 |
+
INVERTED: "inverted",
|
| 71 |
+
PINCER: "pincer",
|
| 72 |
+
};
|
| 73 |
+
|
| 74 |
+
module.exports = NotchShape;
|