Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
9ed0860
fix(device-support): restore strict device detection use-editor-devic…
I-am-abdulazeez Apr 29, 2026
00ca3a4
feat(data-model): introduce AvnacPage type and bump document version …
I-am-abdulazeez Apr 29, 2026
09d6947
fix:(lib) guard against invalid storageKind before writing to IDB in …
I-am-abdulazeez Apr 29, 2026
e0389b3
feat(data-model): export AvnacPage helpers from avnac-document avnac-…
I-am-abdulazeez Apr 29, 2026
0716194
feat(store): add activePageId state and setActivePageId action editor…
I-am-abdulazeez Apr 29, 2026
6d1b186
feat(lifecycle): initialise activePageId from pages[0] on document lo…
I-am-abdulazeez Apr 29, 2026
e851fd0
feat(canvas): read artboard, bg and objects from active page canvas-s…
I-am-abdulazeez Apr 29, 2026
f62e7e2
refactor(layers): rewrite layer controls to operate on active page on…
I-am-abdulazeez Apr 29, 2026
696eeaa
refactor(ai-controller): pass AvnacPage instead of AvnacDocument use-…
I-am-abdulazeez Apr 29, 2026
c305e36
feat(render): accept AvnacPage in render and font-preload functions a…
I-am-abdulazeez Apr 29, 2026
b3f3f98
fix: avoid TS never narrowing in drawRoundedRectPath roundRect compat…
I-am-abdulazeez Apr 29, 2026
4a4862b
feat(preview): render document preview from pages[0] avnac-document-p…
I-am-abdulazeez Apr 29, 2026
bdb4626
feat(toolbar): read artboard and bg from active page in selection too…
I-am-abdulazeez Apr 29, 2026
0d7ca07
feat(editor): wire scene-editor to active page via updateActivePage h…
I-am-abdulazeez Apr 29, 2026
8887741
feat(pages-panel): add EditorPagesPanel component with scroll, fades …
I-am-abdulazeez Apr 29, 2026
d08e67e
fix: add updateActivePage to startWindowDrag deps to prevent stale pa…
I-am-abdulazeez Apr 29, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2,135 changes: 1,160 additions & 975 deletions frontend/src/components/scene-editor.tsx

Large diffs are not rendered by default.

16 changes: 13 additions & 3 deletions frontend/src/components/scene-editor/canvas-stage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,19 @@ export function CanvasStage() {
textDraft,
textEditingId,
} = state
const artboard = useEditorStore((storeState) => storeState.doc.artboard)
const bg = useEditorStore((state) => state.doc.bg)
const objects = useEditorStore((state) => state.doc.objects)
const artboard = useEditorStore((storeState) => {
const { doc, activePageId } = storeState
const page = doc.pages.find((p) => p.id === activePageId) ?? doc.pages[0]
return page.artboard
})
const bg = useEditorStore((state) => {
const page = state.doc.pages.find((p) => p.id === state.activePageId) ?? state.doc.pages[0]
return page.bg
})
const objects = useEditorStore((state) => {
const page = state.doc.pages.find((p) => p.id === state.activePageId) ?? state.doc.pages[0]
return page.objects
})
const selectedIds = useEditorStore((state) => state.selectedIds)
const hoveredId = useEditorStore((state) => state.hoveredId)
const { boardDocs } = useVectorBoardControlsContext()
Expand Down
Loading