Enums.js 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /************************************************************************
  2. * Enums.js
  3. ************************************************************************
  4. * Copyright (c) 2021 Pedro Tonini Rosenberg Schneider.
  5. *
  6. * This file is part of Pandora.
  7. *
  8. * Pandora is free software: you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation, either version 3 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * Pandora is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with Pandora. If not, see <https://www.gnu.org/licenses/>.
  20. *************************************************************************/
  21. const PROPERTY_TYPE = {
  22. NUMBER: 1,
  23. VECTOR2: 2,
  24. COLOR: 3,
  25. };
  26. const TRANS_TYPE = {
  27. LINEAR: 1,
  28. QUAD: 2,
  29. CUBIC: 3,
  30. QUART: 4,
  31. QUINT: 5,
  32. SINE: 6,
  33. EXPONENTIAL: 7,
  34. CIRCULAR: 8,
  35. ELASTIC: 9,
  36. BACK: 10,
  37. BOUNCE: 11,
  38. };
  39. const EASE_TYPE = {
  40. IN: 1,
  41. OUT: 2,
  42. IN_OUT: 3,
  43. };
  44. const SHAPES = {
  45. RECT: 1,
  46. ELLIPSE: 2,
  47. };
  48. const RENDER_MODES = {
  49. P2D: 1,
  50. WEBGL: 2,
  51. };
  52. const DEFAULT_STYLE = {
  53. "font-family": "Lato",
  54. "font-size": "12px",
  55. };