On This Page (20) Schematic Rendering (Paint IR) Schematic Paint IR A0 scenes, presentation views, and SVG/PNG renderers.
All kinds Classes Enums Functions Constants 20 / 20 shown
class
AltiumSchJunction from altium_monkey import AltiumSchJunction
class AltiumSchJunction () -> 'None'
Wire junction record.
Wire junction dots (indicate T-junction or 4-way connection). Very simple - just a dot at a location.
Members (3) Kind Signature Summary method parse_from_record(self, record: 'dict[str, Any]', font_manager: 'FontIDManager | None' = None) -> 'None'property record_type -> 'SchRecordType'method serialize_to_record(self) -> 'dict[str, Any]'
class
SchJunctionColors from altium_monkey import SchJunctionColors
class SchJunctionColors ( wire_bgr: 'int' , bus_bgr: 'int' ) -> 'None'
Automatic Wire and Bus/Harness colors in BGR notation.
Each integer uses its low 24 bits, matching the native color conversion. These explicit presentation inputs do not load machine preferences or change persisted manual Junction colors.
class
SchPaintCommand from altium_monkey import SchPaintCommand
class SchPaintCommand ( index: 'int' , value: 'dto.Command' ) -> 'None'
Immutable view of one ordered Paint IR command.
Members (6) Kind Signature Summary property extensions -> 'Mapping[str, object]'property fields -> 'Mapping[str, object]'property index -> 'int'property kind -> 'str'property source -> 'SchPaintSourceLink | None'method to_dict(self) -> 'dict[str, object]'Return a detached mutable representation.
class
SchPaintContext from altium_monkey import SchPaintContext
class SchPaintContext (*, parameters: 'Mapping[str, str] | None' = None , view: 'SchPaintView | None' = None ) -> 'None'
Immutable snapshot of source facts required for Paint IR planning.
Members (4) Kind Signature Summary classmethod for_component(cls, component: 'AltiumSchComponent', *, part_id: 'int | None' = None, display_mode: 'int | None' = None, parameters: 'Mapping[str, str] | None' = None, view: 'SchPaintView | None' = None) -> 'SchPaintContext'Snapshot a placed component through its owning document when available. classmethod for_document(cls, document: 'AltiumSchDoc', *, project_parameters: 'Mapping[str, str] | None' = None, designator_text_overrides: 'Mapping[str, str] | None' = None, view: 'SchPaintView | None' = None) -> 'SchPaintContext'Snapshot a complete SchDoc and its object extraction identities. classmethod for_symbol(cls, library: 'AltiumSchLib', symbol_name: 'str', *, part_id: 'int | None' = None, display_mode: 'int | None' = None) -> 'SchPaintContext'Snapshot one selected SchLib symbol view and its extraction identities. property parameters -> 'Mapping[str, str]'Return the normalized, immutable parameter snapshot.
class
SchPaintDecodeError from altium_monkey import SchPaintDecodeError
class SchPaintDecodeError ( code: 'str' , reason: 'str' , *, path: 'str | None' = None , detail: 'str | None' = None ) -> 'None'
Paint IR JSON text or framing could not be decoded.
class
SchPaintError from altium_monkey import SchPaintError
class SchPaintError ( code: 'str' , reason: 'str' , *, path: 'str | None' = None , detail: 'str | None' = None ) -> 'None'
Base class for stable schematic Paint IR failures.
class
SchPaintGroup from altium_monkey import SchPaintGroup
class SchPaintGroup ( occurrence_id: 'str' , name: 'str' , role: 'str' , paint_pass: 'str' , bounds_mil: '_Rect | None' , source: 'SchPaintSourceLink | None' , start_index: 'int' , end_index: 'int' , parent_occurrence_id: 'str | None' , child_occurrence_ids: 'tuple[str, ...]' , direct_command_indexes: 'tuple[int, ...]' , command_indexes: 'tuple[int, ...]' ) -> 'None'
Derived immutable view of one balanced Paint IR group span.
class
SchPaintIR from altium_monkey import SchPaintIR
class SchPaintIR ( value: 'Mapping[str, object]' ) -> 'None'
Immutable validated schematic Paint IR A0 document.
Members (22) Kind Signature Summary property commands -> 'tuple[SchPaintCommand, ...]'classmethod compose(cls, placements: 'Iterable[SchPaintPlacement]', *, viewport_mil: '_Rect | None' = None) -> 'SchPaintIR'Compose complete scene bodies in caller-provided paint order. property coordinate_space -> 'Mapping[str, object]'property extensions -> 'Mapping[str, object]'method extract_group(self, occurrence_id: 'str') -> 'SchPaintIR'Extract a group while preserving its effective transform and clips. method find_groups(self, *, source_key: 'str | None' = None, unique_id: 'str | None' = None, record_kind: 'str | None' = None, role: 'str | None' = None, paint_pass: 'str | None' = None) -> 'tuple[SchPaintGroup, ...]'Return groups matching every supplied source or structural field. classmethod from_dict(cls, value: 'Mapping[str, object]') -> 'SchPaintIR'Copy and validate one Paint IR mapping. classmethod from_file(cls, path: 'str | Path') -> 'SchPaintIR'Read and validate one Paint IR JSON file. classmethod from_json(cls, value: 'str | bytes | bytearray') -> 'SchPaintIR'Decode strictly framed Paint IR JSON. property geometry_bounds_mil -> '_Rect | None'method get_group(self, occurrence_id: 'str') -> 'SchPaintGroup'Return one group or raise ``KeyError`` when it is absent. property groups -> 'tuple[SchPaintGroup, ...]'property profile -> 'str'property realization -> 'str'property resources -> 'tuple[SchPaintResource, ...]'property schema -> 'str'property source_kind -> 'str'method to_dict(self) -> 'dict[str, object]'Return a deep detached mutable representation. method to_json(self) -> 'str'Return RFC 8785 canonical JSON without a trailing newline. method to_png(self, options: 'SchPaintPngOptions | None' = None) -> 'bytes'Render this scene to PNG with output-only viewport and resolution. property viewport_mil -> '_Rect | None'method write_json(self, path: 'str | Path') -> 'None'Transactionally write canonical UTF-8 JSON to an existing directory.
class
SchPaintLimitError from altium_monkey import SchPaintLimitError
class SchPaintLimitError ( code: 'str' , reason: 'str' , *, path: 'str | None' = None , detail: 'str | None' = None ) -> 'None'
Paint IR exceeds a bounded resource ceiling.
class
SchPaintPlacement from altium_monkey import SchPaintPlacement
class SchPaintPlacement ( scene: 'SchPaintIR' , instance_id: 'str' , transform: '_Affine' = ( 1.0 , 0.0 , 0.0 , 1.0 , 0.0 , 0.0 )) -> 'None'
One named affine placement used to compose Paint IR scenes.
class
SchPaintPngOptions from altium_monkey import SchPaintPngOptions
class SchPaintPngOptions ( viewport_mil: '_Rect | None' = None , width_px: 'int | None' = None , height_px: 'int | None' = None , dpi: 'float | None' = None , background: 'str' = '#ffffffff' , backend: "Literal['skia', 'gdiplus']" = 'skia' , text_mode: "Literal['text', 'paths']" = 'text' , include_editor_grid: 'bool' = False , include_editor_hotspots: 'bool' = False , max_pixels: 'int | None' = None ) -> 'None'
Select a Paint IR bitmap view; large images may use substantial memory.
class
SchPaintPngRenderer from altium_monkey import SchPaintPngRenderer
class SchPaintPngRenderer ( options: 'SchPaintPngOptions | None' = None ) -> 'None'
Render validated Paint IR to PNG using a selected CPU backend.
Members (1) Kind Signature Summary method render(self, document: 'SchPaintIR') -> 'bytes'Return PNG bytes for one output view.
class
SchPaintRenderError from altium_monkey import SchPaintRenderError
class SchPaintRenderError ( code: 'str' , reason: 'str' , *, path: 'str | None' = None , detail: 'str | None' = None ) -> 'None'
Valid Paint IR cannot be represented by the requested adapter.
class
SchPaintResource from altium_monkey import SchPaintResource
class SchPaintResource ( value: 'dto.Resource' ) -> 'None'
Immutable validated PNG resource view.
Members (12) Kind Signature Summary property data -> 'bytes'property decoded_rgba_bytes -> 'int'property encoded_bytes -> 'int'property encoded_sha256 -> 'str'property extensions -> 'Mapping[str, object]'property height_px -> 'int'property id -> 'str'property kind -> 'str'property media_type -> 'str'method to_dict(self) -> 'dict[str, object]'Return a detached mutable representation. property uses -> 'tuple[str, ...]'property width_px -> 'int'
class
SchPaintSourceLink from altium_monkey import SchPaintSourceLink
class SchPaintSourceLink ( value: 'dto.SourceLink' ) -> 'None'
Immutable portable source identity scoped to one document lineage.
Members (9) Kind Signature Summary property display_mode -> 'int | None'property extensions -> 'Mapping[str, object]'property locator -> 'Mapping[str, object]'property part_id -> 'int | None'property record_kind -> 'str'property role -> 'str'property source_key -> 'str'method to_dict(self) -> 'dict[str, object]'Return a detached mutable representation. property unique_id -> 'str | None'
class
SchPaintSvgOptions from altium_monkey import SchPaintSvgOptions
class SchPaintSvgOptions ( width_px: 'float | None' = None , height_px: 'float | None' = None , viewport_mil: '_Rect | None' = None , padding_mil: 'float' = 0.0 , background: 'str | None' = None , include_xml_declaration: 'bool' = True , include_view_box: 'bool' = True , wrap_components: 'bool' = False , include_group_metadata: 'bool' = False , include_editor_grid: 'bool' = False , include_editor_hotspots: 'bool' = False , text_mode: "Literal['text', 'paths']" = 'text' , text_path_backend: "Literal['harfbuzz', 'gdiplus']" = 'harfbuzz' , outline_font_families: 'tuple[str, ...]' = (), polygon_text_tolerance_mil: 'float' = 0.5 , embed_bundled_fallback_fonts: 'bool' = False ) -> 'None'
Output-only SVG options; default size uses 96 CSS pixels per inch.
class
SchPaintSvgRenderer from altium_monkey import SchPaintSvgRenderer
class SchPaintSvgRenderer ( options: 'SchPaintSvgOptions | None' = None ) -> 'None'
Render validated schematic Paint IR through one portable SVG policy.
Members (1) Kind Signature Summary method render(self, document: 'SchPaintIR') -> 'str'Return deterministic XML 1.0 SVG for one validated document.
class
SchPaintValidationError from altium_monkey import SchPaintValidationError
class SchPaintValidationError ( code: 'str' , reason: 'str' , *, path: 'str | None' = None , detail: 'str | None' = None ) -> 'None'
Paint IR violates its structural or semantic contract.
class
SchPaintVersionError from altium_monkey import SchPaintVersionError
class SchPaintVersionError ( code: 'str' , reason: 'str' , *, path: 'str | None' = None , detail: 'str | None' = None ) -> 'None'
Paint IR has a missing or unsupported schema identity.
class
SchPaintView from altium_monkey import SchPaintView
class SchPaintView ( grid: 'bool' = False , hotspots: 'bool' = False , unconnected_ports_left_to_right: 'bool' = True , editor_artwork: 'bool' = True , junction_colors: 'SchJunctionColors | None' = None , auto_junctions_on_top: 'bool' = False ) -> 'None'
Editor-adornment and automatic-junction presentation policy.
The editor batches paint policy in one settings state rather than growing per-call arguments. Static scenes omit grid and hotspots; editor views enable them. Transient tools, cursors and selection are separate concerns.
``junction_colors=None`` retains the deterministic standalone palette. Explicit colors apply to automatic Wire and Bus/Harness junctions only. ``auto_junctions_on_top`` draws those dots after document artwork; its default preserves Altium's source-by-source draw order.
``editor_artwork`` enables project-owned watermark and reuse-icon stand-ins, tagged so consumers can recognize or replace them.
Members (2) Kind Signature Summary classmethod editor(cls, *, grid: 'bool' = True, hotspots: 'bool' = True, junction_colors: 'SchJunctionColors | None' = None, auto_junctions_on_top: 'bool' = False) -> 'SchPaintView'Return an editor view retaining supplied junction preferences. classmethod static_scene(cls, *, junction_colors: 'SchJunctionColors | None' = None, auto_junctions_on_top: 'bool' = False) -> 'SchPaintView'Return a static scene with optional automatic-junction preferences.