Keyframes.js 818 B

12345678910111213141516171819202122
  1. import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
  2. import _createClass from "@babel/runtime/helpers/esm/createClass";
  3. import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
  4. var Keyframe = /*#__PURE__*/function () {
  5. function Keyframe(name, style) {
  6. _classCallCheck(this, Keyframe);
  7. _defineProperty(this, "name", void 0);
  8. _defineProperty(this, "style", void 0);
  9. _defineProperty(this, "_keyframe", true);
  10. this.name = name;
  11. this.style = style;
  12. }
  13. _createClass(Keyframe, [{
  14. key: "getName",
  15. value: function getName() {
  16. var hashId = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  17. return hashId ? "".concat(hashId, "-").concat(this.name) : this.name;
  18. }
  19. }]);
  20. return Keyframe;
  21. }();
  22. export default Keyframe;