eda_sch_primitive_attribute_modify
Update a schematic primitive attribute's position, rotation, color, font, alignment, and visibility in EasyEDA Pro, returning the modified attribute object.
Instructions
sch_PrimitiveAttribute.modify(primitiveId: string | ISCH_PrimitiveAttribute, property: { x?: number | null; y?: number | null; rotation?: number | null; color?: string | null; fontName?: string | null; fontSize?: number | null; bold?: boolean | null; italic?: boolean | null; underLine?: boolean | null; alignMode?: ESCH_PrimitiveTextAlignMode | null; fillColor?: string | null; key?: string; value?: string; keyVisible?: boolean | null; valueVisible?: boolean | null }) -> Promise<ISCH_PrimitiveAttribute | undefined> 修改属性 returns: 属性图元对象
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | 按官方签名顺序排列的JSON参数数组 | |
| windowId | No | 目标EDA窗口ID;省略时使用当前活动窗口 |