README For Ai(How to use projects page)
This is the projects page for JUSTPIXELSTUDIO.
Use this page to manage projects, not to draw pixel art.
What users can do here:
- create a new project
- open an existing project
- rename a project
- duplicate a project
- delete a project
- view the first scene thumbnail for each project
Prefer window.pixelForAI on this page when it exists.
That API is more stable than repeatedly clicking the UI.
Available API on this page:
- window.pixelForAI.getCurrentPage()
- window.pixelForAI.waitForProjectsLoaded()
- window.pixelForAI.projects.list()
- window.pixelForAI.projects.get(projectId)
- window.pixelForAI.projects.create({ name, width, height })
- window.pixelForAI.projects.duplicate(projectId, { name })
- window.pixelForAI.projects.rename(projectId, name)
- window.pixelForAI.projects.remove(projectId)
- window.pixelForAI.projects.open(projectId)
- window.pixelForAI.projects.reload()
Notes:
- when creating a new project, prefer 96px as the default canvas size unless the user asked for a different size
- create({ width, height }) is clamped to a square canvas size between 1 and 96
- list() and get() return project summaries, not full editable scene data
- open(projectId) navigates to the editor page at /canvas/:id
- actual drawing, scene editing, and layer editing belong to the editor page, not this page
This is the projects page for JUSTPIXELSTUDIO.
Use this page to manage projects, not to draw pixel art.
What users can do here:
- create a new project
- open an existing project
- rename a project
- duplicate a project
- delete a project
- view the first scene thumbnail for each project
Prefer window.pixelForAI on this page when it exists.
That API is more stable than repeatedly clicking the UI.
Available API on this page:
- window.pixelForAI.getCurrentPage()
- window.pixelForAI.waitForProjectsLoaded()
- window.pixelForAI.projects.list()
- window.pixelForAI.projects.get(projectId)
- window.pixelForAI.projects.create({ name, width, height })
- window.pixelForAI.projects.duplicate(projectId, { name })
- window.pixelForAI.projects.rename(projectId, name)
- window.pixelForAI.projects.remove(projectId)
- window.pixelForAI.projects.open(projectId)
- window.pixelForAI.projects.reload()
Notes:
- when creating a new project, prefer 96px as the default canvas size unless the user asked for a different size
- create({ width, height }) is clamped to a square canvas size between 1 and 96
- list() and get() return project summaries, not full editable scene data
- open(projectId) navigates to the editor page at /canvas/:id
- actual drawing, scene editing, and layer editing belong to the editor page, not this page
PROJECTS
Saved in yours Application.