Przeglądaj źródła

✨ Add enumerators for property types, transition types and easing types

Pedro Schneider 3 lat temu
rodzic
commit
797f403f4f
1 zmienionych plików z 30 dodań i 4 usunięć
  1. 30 4
      pandora/singletons/Enums.js

+ 30 - 4
pandora/singletons/Enums.js

@@ -19,17 +19,43 @@
  * along with Pandora.  If not, see <https://www.gnu.org/licenses/>.
  *************************************************************************/
 
+const PROPERTY_TYPE = {
+    NUMBER: 1,
+    VECTOR2: 2,
+    COLOR: 3,
+};
+
+const TRANS_TYPE = {
+    LINEAR: 1,
+    QUAD: 2,
+    CUBIC: 3,
+    QUART: 4,
+    QUINT: 5,
+    SINE: 6,
+    EXPONENTIAL: 7,
+    CIRCULAR: 8,
+    ELASTIC: 9,
+    BACK: 10,
+    BOUNCE: 11,
+};
+
+const EASE_TYPE = {
+    IN: 1,
+    OUT: 2,
+    IN_OUT: 3,
+};
+
 const SHAPES = {
     RECT: 1,
     ELLIPSE: 2,
-}
+};
 
 const RENDER_MODES = {
     P2D: 1,
     WEBGL: 2,
-}
+};
 
 const DEFAULT_STYLE = {
     "font-family": "Lato",
-    "font-size": "12px"
-}
+    "font-size": "12px",
+};