import { nanoid } from "nanoid" import { IFrame, IScene } from "@layerhub-io/types" export const defaultTemplate: IScene = { id: nanoid(), frame: { width: 1200, height: 1200, }, layers: [ { id: "background", name: "Initial Frame", left: 0, top: 0, width: 1200, height: 1200, type: "Background", fill: "#ffffff", metadata: {}, }, ], metadata: {}, } export const getDefaultTemplate = ({ width, height }: IFrame) => { return { id: nanoid(), frame: { width, height, }, layers: [ { id: "background", name: "Initial Frame", left: 0, top: 0, width, height, type: "Background", fill: "#ffffff", metadata: {}, }, ], metadata: {}, } } export const TEXT_EFFECTS = [ { id: 1, name: "None", preview: "https://i.ibb.co/Wyx2Ftf/none.webp", }, { id: 2, name: "Shadow", preview: "https://i.ibb.co/HBQc95J/shadow.webp", }, { id: 3, name: "Lift", preview: "https://i.ibb.co/M7zpk5f/lift.webp", }, { id: 4, name: "Hollow", preview: "https://i.ibb.co/vhjCd4w/hollow.webp", }, { id: 5, name: "Splice", preview: "https://i.ibb.co/B2JPTfq/splice.webp", } ]