Skip to content

Commit

Permalink
feat: update blocky tree structures
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentdchan committed Nov 7, 2023
1 parent 9cf144d commit f08bfd7
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions packages/blocky-data/src/tree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,21 @@ export interface DocumentInitProps {
bodyChildren: DataBaseNode[];
}

/**
* The data model in Blocky Editor is represented as an XML Document:
*
* <document>
* <head>
* <Title />
* </head>
* <body>
* <Text />
* <Text />
* <Image src="" />
* </Text>
* </body>
* </document>
*/
export class BlockyDocument extends DataBaseElement {
readonly title: BlockDataElement;
readonly head: DataBaseElement;
Expand Down

1 comment on commit f08bfd7

@vercel
Copy link

@vercel vercel bot commented on f08bfd7 Nov 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.