Creates a new document instance with an empty database.
The document is initialized with an "Untitled" title and read-only mode enabled.
Gets the database object containing all drawing data.
The underlying CAD database instance
Gets the display title of the document.
The document title displayed in the window/tab
Sets the display title of the document.
Also updates the browser tab title if running in a browser environment.
The new document title
Gets whether the document is opened in read-only mode.
True if the document is read-only, false if editable
Gets the URI of the document if opened from a URI.
The document URI, or undefined if not opened from URI
Opens a CAD document from file content.
The name of the file (used to determine file type from extension)
The file content as string or ArrayBuffer
Options for opening the database, including read-only mode
Promise resolving to true if successful, false if failed
Opens a CAD document from a URI.
The URI of the CAD file to open
Options for opening the database, including read-only mode
Promise resolving to true if successful, false if failed
Represents a CAD document that manages a drawing database and associated metadata.
This class handles: