model.js 300 B

12345678910111213141516171819202122
  1. import { getElementId } from "../../plugins/utils";
  2. const MODEL = {
  3. type: "IMAGE",
  4. x: 0,
  5. y: 0,
  6. w: 150,
  7. h: 100,
  8. sign: "",
  9. borderColor: "",
  10. borderStyle: "",
  11. content: []
  12. };
  13. const getModel = () => {
  14. return {
  15. id: getElementId(),
  16. ...MODEL
  17. };
  18. };
  19. export { MODEL, getModel };