return new copied component.
(self)
| 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.""" |