Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions src/kicad/schematic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -864,7 +864,9 @@ export class LibSymbol {
};
in_bom = false;
on_board = false;
in_pos_files = true;
exclude_from_sim = false;
duplicate_pin_numbers_are_jumpers = false;
properties: Map<string, Property> = new Map();
children: LibSymbol[] = [];
drawings: Drawing[] = [];
Expand Down Expand Up @@ -896,6 +898,8 @@ export class LibSymbol {
),
P.pair("in_bom", T.boolean),
P.pair("on_board", T.boolean),
P.pair("in_pos_files", T.boolean),
P.pair("duplicate_pin_numbers_are_jumpers", T.boolean),
P.pair("exclude_from_sim", T.boolean),
P.mapped_collection(
"properties",
Expand Down Expand Up @@ -1060,6 +1064,7 @@ export class Property {
text: string;
id: number;
at: At;
hide = false;
show_name = false;
do_not_autoplace = false;
#effects?: Effects;
Expand All @@ -1074,6 +1079,7 @@ export class Property {
P.positional("name", T.string),
P.positional("text", T.string),
P.pair("id", T.number),
P.pair("hide", T.boolean),
P.item("at", At),
P.item("effects", Effects),
P.atom("show_name"),
Expand All @@ -1083,6 +1089,17 @@ export class Property {
this.#effects = parsed["effects"];
delete parsed["effects"];

// KiCad 10 (ver 20260306)
// (property "ki_fp_filters" "R_*"
// (at 0 0 0)
// (hide yes))
// KiCad 9 and 8
// (property "ki_keywords" "quartz ceramic resonator oscillator"
// (at 0 0 0)
// (effects
// (hide yes)))
this.hide = this.hide || (this.#effects?.hide ?? false);

Object.assign(this, parsed);
}

Expand Down
2 changes: 1 addition & 1 deletion src/viewers/schematic/painter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ class PropertyPainter extends SchematicItemPainter {
}

paint(layer: ViewLayer, p: schematic_items.Property) {
if (p.effects.hide || !p.text) {
if (p.hide || !p.text) {
return;
}

Expand Down
Loading
Loading