MCPcopy
hub / github.com/Kanaries/pygwalker / copy

Method copy

pygwalker/api/component.py:144–151  ·  view source on GitHub ↗

return new copied component.

(self)

Source from the content-addressed store, hash-verified

142 self._runtime_time = None
143
144 def copy(self) -> "Component":
145 """return new copied component."""
146 return self.__class__(
147 walker=self.walker,
148 render_type=self._render_type,
149 field_map=deepcopy(self._field_map),
150 single_chart_spec=deepcopy(self._single_chart_spec)
151 )
152
153 def _update_single_chart_spec(self, key: str, value: Any) -> Dict[str, Any]:
154 """update single chart spec."""

Callers 15

barMethod · 0.95
lineMethod · 0.95
areaMethod · 0.95
trailMethod · 0.95
scatterMethod · 0.95
circleMethod · 0.95
tickMethod · 0.95
rectMethod · 0.95
arcMethod · 0.95
textMethod · 0.95
boxMethod · 0.95
tableMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected