MCPcopy
hub / github.com/CadQuery/cadquery / onVisibility

Method onVisibility

cadquery/fig.py:477–490  ·  view source on GitHub ↗
(self, event: dict)

Source from the content-addressed store, hash-verified

475 return self
476
477 def onVisibility(self, event: dict):
478
479 actors = self.actors[event["id"]]
480
481 for act in actors:
482 act.SetVisibility(event["visible"])
483
484 # synchronize state by hand
485 for act in self.state.actors:
486 if act["id"] == event["id"]:
487 act["visible"] = event["visible"]
488
489 self._update_state("actors")
490 self.view.update()
491
492 def onSelection(self, event: list[str]):
493

Callers 1

test_figFunction · 0.80

Calls 1

_update_stateMethod · 0.95

Tested by 1

test_figFunction · 0.64