opThemeDefaults lists the default of every --op-* CSS variable that the SDK controls and drawings read. Set a name on the container of an editor or sheet, or on :root, to replace its default.
Import
Example
Notes
- A name that you do not set keeps the value in
opThemeDefaults.
planStyle
The style of an element type, in the plan state thatedgeClass names.
PLAN_STYLE
Keys are the literalElementType values elements actually report, which is not always the name you would guess: a network Wall reports WALL, Space reports SPACECONTAINER, and every opening subclass — Door, Window, WallOpening — reports its own type or OPENING.
DEFAULT_PLAN_STYLE
opThemeDefaults
The default of every CSS variable that the SDK’s in-canvas controls and on-screen drawings read.Types
PlanStyle type
Drafting style for one source element type in the plan view.Screen-constant lineweight in px. Applied with
vector-effect: non-scaling-stroke so weights stay
crisp and zoom-independent — the hallmark of CAD drafting.