ducpy.classes.DataStateClass

Classes

Module Contents

class ducpy.classes.DataStateClass.DictionaryEntry
key: str
value: str
class ducpy.classes.DataStateClass.DucGlobalState
view_background_color: str
main_scope: str
scope_exponent_threshold: int
name: str | None
pruning_level: ducpy.enums.PRUNING_LEVEL | None = None
class ducpy.classes.DataStateClass.DucLocalState
scope: str
scroll_x: float
scroll_y: float
zoom: float
is_binding_enabled: bool
pen_mode: bool
view_mode_enabled: bool
objects_snap_mode_enabled: bool
grid_mode_enabled: bool
outline_mode_enabled: bool
current_item_stroke: ducpy.classes.ElementsClass.ElementStroke | None
current_item_background: ducpy.classes.ElementsClass.ElementBackground | None
current_item_opacity: float | None
current_item_font_family: str | None
current_item_font_size: float | None
current_item_text_align: ducpy.enums.TEXT_ALIGN | None
current_item_roundness: float | None
current_item_start_line_head: ducpy.classes.ElementsClass.DucHead | None
current_item_end_line_head: ducpy.classes.ElementsClass.DucHead | None
manual_save_mode: bool | None = None
decimal_places: int = 2
class ducpy.classes.DataStateClass.VersionBase
id: str
timestamp: int
is_manual_save: bool
parent_id: str | None
description: str | None
user_id: str | None
class ducpy.classes.DataStateClass.Checkpoint

Bases: VersionBase

version_number: int = 0
schema_version: int = 0
is_schema_boundary: bool = False
data: bytes = b''
size_bytes: int = 0
type: str = 'checkpoint'
class ducpy.classes.DataStateClass.Delta

Bases: VersionBase

version_number: int = 0
schema_version: int = 0
base_checkpoint_id: str = ''
payload: bytes = b''
size_bytes: int = 0
type: str = 'delta'
class ducpy.classes.DataStateClass.SchemaMigration
from_schema_version: int
to_schema_version: int
migration_name: str
applied_at: int
migration_checksum: str | None = None
boundary_checkpoint_id: str | None = None
class ducpy.classes.DataStateClass.VersionChain
id: str
schema_version: int
start_version: int
end_version: int | None = None
migration: SchemaMigration | None = None
root_checkpoint_id: str | None = None
class ducpy.classes.DataStateClass.VersionGraphMetadata
current_version: int
current_schema_version: int
chain_count: int
last_pruned: int
total_size: int
class ducpy.classes.DataStateClass.VersionGraph
checkpoints: List[Checkpoint]
deltas: List[Delta]
chains: List[VersionChain]
metadata: VersionGraphMetadata
user_checkpoint_version_id: str
latest_version_id: str
class ducpy.classes.DataStateClass.DisplayPrecision
linear: int = 2
angular: int = 2
class ducpy.classes.DataStateClass.DucExternalFileData
mime_type: str
id: str
data: bytes
created: int
last_retrieved: int | None
class ducpy.classes.DataStateClass.DucExternalFileEntry
key: str
value: DucExternalFileData
class ducpy.classes.DataStateClass.ExportedDataState
type: str
version: str
source: str
thumbnail: bytes
elements: List[ducpy.classes.ElementsClass.ElementWrapper]
blocks: List[ducpy.classes.ElementsClass.DucBlock]
block_instances: List[ducpy.classes.ElementsClass.DucBlockInstance]
block_collections: List[ducpy.classes.ElementsClass.DucBlockCollection]
groups: List[ducpy.classes.ElementsClass.DucGroup]
regions: List[ducpy.classes.ElementsClass.DucRegion]
layers: List[ducpy.classes.ElementsClass.DucLayer]
dictionary: Dict[str, str]
duc_local_state: DucLocalState | None
duc_global_state: DucGlobalState | None
version_graph: VersionGraph | None
files: List[DucExternalFileEntry] | None
id: str | None = None