whitecanvas.types
Alignment
Source code in whitecanvas\types\_enums.py
107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 |
|
split()
Split the alignment into vertical and horizontal components.
Source code in whitecanvas\types\_enums.py
147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 |
|
Location
Source code in whitecanvas\types\_enums.py
165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 |
|
is_side: bool
property
True if the location is in any of the side locations.
MeshData
Source code in whitecanvas\types\_tuples.py
139 140 141 142 143 144 145 146 147 148 149 150 |
|
from_dict(data)
classmethod
Create MeshData from a dictionary.
Source code in whitecanvas\types\_tuples.py
143 144 145 146 |
|
to_dict()
Data as a dictionary.
Source code in whitecanvas\types\_tuples.py
148 149 150 |
|
Modifier
Enum that represents the keyboard modifiers.
Source code in whitecanvas\types\_enums.py
78 79 80 81 82 83 84 |
|
MouseButton
Enum that represents the mouse buttons.
Source code in whitecanvas\types\_enums.py
87 88 89 90 91 92 93 94 95 |
|
MouseEventType
Enum that represents the mouse event type.
Source code in whitecanvas\types\_enums.py
98 99 100 101 102 103 104 |
|
Orientation
Source code in whitecanvas\types\_enums.py
211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 |
|
transpose()
Transpose the orientation.
Source code in whitecanvas\types\_enums.py
224 225 226 227 228 229 |
|
Origin
Enum that define the center of image.
1-----+ 0: corner | | 1: edge | 0 | 2: center (center of image) | | +-----+
Source code in whitecanvas\types\_enums.py
243 244 245 246 247 248 249 250 251 252 253 254 255 256 |
|
Rect
Rectangular range in left, right, bottom, top order.
Source code in whitecanvas\types\_tuples.py
153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 |
|
center: tuple[float, float]
property
Center of the range.
height: float
property
Height of the range.
size: tuple[float, float]
property
Size (width, height) of the range.
width: float
property
Width of the range.
from_dict(data)
classmethod
Create Rect from a dictionary.
Source code in whitecanvas\types\_tuples.py
201 202 203 204 |
|
to_dict()
Data as a dictionary.
Source code in whitecanvas\types\_tuples.py
206 207 208 209 210 211 212 213 |
|
XYData
Tuple of x and y array.
Used for data of Line, Markers etc.
Source code in whitecanvas\types\_tuples.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
|
from_dict(data)
classmethod
Create XYData from a dictionary.
Source code in whitecanvas\types\_tuples.py
23 24 25 26 |
|
stack()
Data as a stacked (N, 2) array.
Source code in whitecanvas\types\_tuples.py
19 20 21 |
|
to_dict()
Data as a dictionary.
Source code in whitecanvas\types\_tuples.py
28 29 30 |
|
XYTextData
Source code in whitecanvas\types\_tuples.py
62 63 64 65 66 67 68 69 70 71 72 73 74 |
|
from_dict(data)
classmethod
Create XYTextData from a dictionary.
Source code in whitecanvas\types\_tuples.py
67 68 69 70 |
|
to_dict()
Data as a dictionary.
Source code in whitecanvas\types\_tuples.py
72 73 74 |
|
XYVectorData
Source code in whitecanvas\types\_tuples.py
102 103 104 105 106 107 108 109 110 111 112 113 114 115 |
|
from_dict(data)
classmethod
Create XYVectorData from a dictionary.
Source code in whitecanvas\types\_tuples.py
108 109 110 111 |
|
to_dict()
Data as a dictionary.
Source code in whitecanvas\types\_tuples.py
113 114 115 |
|
XYYData
Tuple of x, y0, and y1 array.
Used for data of Bars, Errorbars etc.
Source code in whitecanvas\types\_tuples.py
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
|
from_dict(data)
classmethod
Create XYYData from a dictionary.
Source code in whitecanvas\types\_tuples.py
52 53 54 55 |
|
to_dict()
Data as a dictionary.
Source code in whitecanvas\types\_tuples.py
57 58 59 |
|
XYZData
Tuple of x, y, and z array.
Used for data of Surface etc.
Source code in whitecanvas\types\_tuples.py
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 |
|
from_dict(data)
classmethod
Create XYZData from a dictionary.
Source code in whitecanvas\types\_tuples.py
92 93 94 95 |
|
stack()
Data as a stacked (N, 3) array.
Source code in whitecanvas\types\_tuples.py
88 89 90 |
|
to_dict()
Data as a dictionary.
Source code in whitecanvas\types\_tuples.py
97 98 99 |
|
XYZVectorData
Source code in whitecanvas\types\_tuples.py
118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 |
|
from_dict(data)
classmethod
Create XYZVectorData from a dictionary.
Source code in whitecanvas\types\_tuples.py
126 127 128 129 |
|
to_dict()
Data as a dictionary.
Source code in whitecanvas\types\_tuples.py
131 132 133 134 135 136 |
|