Method
__init__
(
self,
width=20,
height=20,
radius=12,
weight=2.0,
color="#3388ff",
fill_color="#3388ff",
opacity=0.75,
fill_opacity=0.5,
)
Source from the content-addressed store, hash-verified
| 123 | ] |
| 124 | |
| 125 | def __init__( |
| 126 | self, |
| 127 | width=20, |
| 128 | height=20, |
| 129 | radius=12, |
| 130 | weight=2.0, |
| 131 | color="#3388ff", |
| 132 | fill_color="#3388ff", |
| 133 | opacity=0.75, |
| 134 | fill_opacity=0.5, |
| 135 | ): |
| 136 | super().__init__() |
| 137 | self._name = "CirclePattern" |
| 138 | self.options_pattern_circle = dict( |
| 139 | x=radius + 2 * weight, |
| 140 | y=radius + 2 * weight, |
| 141 | weight=weight, |
| 142 | radius=radius, |
| 143 | color=color, |
| 144 | fill_color=fill_color, |
| 145 | opacity=opacity, |
| 146 | fill_opacity=fill_opacity, |
| 147 | fill=True, |
| 148 | ) |
| 149 | self.options_pattern = dict( |
| 150 | width=width, |
| 151 | height=height, |
| 152 | ) |
| 153 | self.parent_map = None |
| 154 | |
| 155 | def render(self, **kwargs): |
| 156 | self.parent_map = get_obj_in_upper_tree(self, Map).get_name() |
Callers
nothing calls this directly
Tested by
no test coverage detected