fake-bge-module 20250104__py3-none-any.whl → 20250201__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- addon_utils/__init__.pyi +11 -6
- aud/__init__.pyi +4 -0
- bge/types/__init__.pyi +66 -27
- bgl/__init__.pyi +2 -2
- bgui/image/__init__.pyi +3 -1
- bgui/system/__init__.pyi +12 -4
- bl_console_utils/autocomplete/complete_calltip/__init__.pyi +5 -2
- bl_console_utils/autocomplete/complete_import/__init__.pyi +6 -3
- bl_console_utils/autocomplete/complete_namespace/__init__.pyi +2 -1
- bl_console_utils/autocomplete/intellisense/__init__.pyi +8 -2
- bl_operators/node/__init__.pyi +78 -0
- bl_ui/anim/__init__.pyi +6 -0
- bl_ui/generic_ui_list/__init__.pyi +2 -2
- bl_ui/node_add_menu_shader/__init__.pyi +0 -1
- bl_ui/node_add_menu_texture/__init__.pyi +1 -0
- bl_ui/properties_data_camera/__init__.pyi +0 -2
- bl_ui/properties_mask_common/__init__.pyi +17 -0
- bl_ui/properties_material_gpencil/__init__.pyi +29 -0
- bl_ui/properties_scene/__init__.pyi +6 -0
- bl_ui/properties_view_layer/__init__.pyi +1 -0
- bl_ui/space_clip/__init__.pyi +53 -0
- bl_ui/space_graph/__init__.pyi +2 -0
- bl_ui/space_image/__init__.pyi +25 -0
- bl_ui/space_node/__init__.pyi +0 -1
- bl_ui/space_sequencer/__init__.pyi +2 -1
- blf/__init__.pyi +6 -3
- bmesh/ops/__init__.pyi +111 -54
- bmesh/types/__init__.pyi +134 -46
- bmesh/utils/__init__.pyi +17 -5
- bpy/__init__.pyi +1 -2
- bpy/_typing/__init__.pyi +4 -0
- bpy/{typing → _typing/rna_enums}/__init__.pyi +36 -36
- bpy/app/__init__.pyi +13 -5
- bpy/app/handlers/__init__.pyi +4 -2
- bpy/app/icons/__init__.pyi +6 -2
- bpy/app/translations/__init__.pyi +17 -8
- bpy/msgbus/__init__.pyi +14 -2
- bpy/ops/action/__init__.pyi +51 -151
- bpy/ops/anim/__init__.pyi +61 -179
- bpy/ops/armature/__init__.pyi +48 -147
- bpy/ops/asset/__init__.pyi +16 -71
- bpy/ops/boid/__init__.pyi +11 -44
- bpy/ops/brush/__init__.pyi +16 -42
- bpy/ops/buttons/__init__.pyi +6 -29
- bpy/ops/cachefile/__init__.pyi +5 -19
- bpy/ops/camera/__init__.pyi +2 -5
- bpy/ops/clip/__init__.pyi +95 -293
- bpy/ops/cloth/__init__.pyi +1 -3
- bpy/ops/collection/__init__.pyi +10 -26
- bpy/ops/console/__init__.pyi +21 -79
- bpy/ops/constraint/__init__.pyi +18 -45
- bpy/ops/curve/__init__.pyi +57 -186
- bpy/ops/curves/__init__.pyi +37 -109
- bpy/ops/cycles/__init__.pyi +3 -9
- bpy/ops/dpaint/__init__.pyi +8 -22
- bpy/ops/ed/__init__.pyi +20 -52
- bpy/ops/export_anim/__init__.pyi +1 -3
- bpy/ops/export_scene/__init__.pyi +55 -32
- bpy/ops/extensions/__init__.pyi +34 -110
- bpy/ops/file/__init__.pyi +40 -167
- bpy/ops/fluid/__init__.pyi +14 -77
- bpy/ops/font/__init__.pyi +23 -85
- bpy/ops/geometry/__init__.pyi +29 -46
- bpy/ops/gizmogroup/__init__.pyi +2 -9
- bpy/ops/gpencil/__init__.pyi +8 -32
- bpy/ops/graph/__init__.pyi +82 -201
- bpy/ops/grease_pencil/__init__.pyi +125 -324
- bpy/ops/image/__init__.pyi +61 -163
- bpy/ops/import_anim/__init__.pyi +1 -3
- bpy/ops/import_curve/__init__.pyi +1 -3
- bpy/ops/import_scene/__init__.pyi +4 -6
- bpy/ops/info/__init__.pyi +7 -29
- bpy/ops/lattice/__init__.pyi +11 -32
- bpy/ops/logic/__init__.pyi +26 -65
- bpy/ops/marker/__init__.pyi +11 -31
- bpy/ops/mask/__init__.pyi +39 -132
- bpy/ops/material/__init__.pyi +3 -19
- bpy/ops/mball/__init__.pyi +8 -19
- bpy/ops/mesh/__init__.pyi +223 -470
- bpy/ops/nla/__init__.pyi +42 -150
- bpy/ops/node/__init__.pyi +169 -393
- bpy/ops/object/__init__.pyi +320 -749
- bpy/ops/outliner/__init__.pyi +76 -268
- bpy/ops/paint/__init__.pyi +67 -147
- bpy/ops/paintcurve/__init__.pyi +8 -33
- bpy/ops/palette/__init__.pyi +7 -27
- bpy/ops/particle/__init__.pyi +39 -134
- bpy/ops/pose/__init__.pyi +64 -182
- bpy/ops/poselib/__init__.pyi +9 -33
- bpy/ops/preferences/__init__.pyi +35 -94
- bpy/ops/ptcache/__init__.pyi +7 -33
- bpy/ops/render/__init__.pyi +13 -37
- bpy/ops/rigidbody/__init__.pyi +22 -54
- bpy/ops/scene/__init__.pyi +47 -130
- bpy/ops/screen/__init__.pyi +46 -144
- bpy/ops/script/__init__.pyi +3 -11
- bpy/ops/sculpt/__init__.pyi +40 -94
- bpy/ops/sculpt_curves/__init__.pyi +4 -10
- bpy/ops/sequencer/__init__.pyi +104 -327
- bpy/ops/sound/__init__.pyi +17 -28
- bpy/ops/spreadsheet/__init__.pyi +4 -15
- bpy/ops/surface/__init__.pyi +6 -13
- bpy/ops/text/__init__.pyi +43 -175
- bpy/ops/text_editor/__init__.pyi +1 -3
- bpy/ops/texture/__init__.pyi +4 -21
- bpy/ops/transform/__init__.pyi +114 -134
- bpy/ops/ui/__init__.pyi +39 -120
- bpy/ops/uilist/__init__.pyi +3 -7
- bpy/ops/uv/__init__.pyi +58 -143
- bpy/ops/view2d/__init__.pyi +14 -39
- bpy/ops/view3d/__init__.pyi +68 -238
- bpy/ops/wm/__init__.pyi +178 -319
- bpy/ops/workspace/__init__.pyi +7 -33
- bpy/ops/world/__init__.pyi +2 -11
- bpy/path/__init__.pyi +16 -6
- bpy/props/__init__.pyi +157 -127
- bpy/types/__init__.pyi +35227 -34838
- bpy/utils/__init__.pyi +71 -25
- bpy/utils/previews/__init__.pyi +2 -1
- bpy/utils/units/__init__.pyi +2 -1
- bpy_extras/anim_utils/__init__.pyi +11 -3
- bpy_extras/bmesh_utils/__init__.pyi +2 -1
- bpy_extras/image_utils/__init__.pyi +5 -2
- bpy_extras/io_utils/__init__.pyi +12 -5
- bpy_extras/mesh_utils/__init__.pyi +27 -6
- bpy_extras/object_utils/__init__.pyi +6 -5
- bpy_extras/view3d_utils/__init__.pyi +9 -2
- {fake_bge_module-20250104.dist-info → fake_bge_module-20250201.dist-info}/METADATA +3 -3
- {fake_bge_module-20250104.dist-info → fake_bge_module-20250201.dist-info}/RECORD +153 -152
- {fake_bge_module-20250104.dist-info → fake_bge_module-20250201.dist-info}/WHEEL +1 -1
- freestyle/chainingiterators/__init__.pyi +7 -2
- freestyle/functions/__init__.pyi +16 -4
- freestyle/shaders/__init__.pyi +5 -1
- freestyle/types/__init__.pyi +103 -30
- freestyle/utils/ContextFunctions/__init__.pyi +2 -2
- freestyle/utils/__init__.pyi +2 -1
- gpu/capabilities/__init__.pyi +2 -1
- gpu/matrix/__init__.pyi +4 -2
- gpu/state/__init__.pyi +2 -2
- gpu/types/__init__.pyi +40 -8
- gpu_extras/batch/__init__.pyi +13 -1
- gpu_extras/presets/__init__.pyi +10 -1
- idprop/types/__init__.pyi +4 -2
- imbuf/__init__.pyi +6 -3
- imbuf/types/__init__.pyi +5 -2
- mathutils/__init__.pyi +126 -35
- mathutils/bvhtree/__init__.pyi +21 -6
- mathutils/geometry/__init__.pyi +68 -22
- mathutils/interpolate/__init__.pyi +5 -1
- mathutils/kdtree/__init__.pyi +21 -8
- mathutils/noise/__init__.pyi +2 -1
- rna_info/__init__.pyi +2 -1
- {fake_bge_module-20250104.dist-info → fake_bge_module-20250201.dist-info}/top_level.txt +0 -0
freestyle/types/__init__.pyi
CHANGED
|
@@ -273,7 +273,7 @@ class ChainingIterator:
|
|
|
273
273
|
self,
|
|
274
274
|
restrict_to_selection: bool = True,
|
|
275
275
|
restrict_to_unvisited: bool = True,
|
|
276
|
-
begin=None,
|
|
276
|
+
begin: None | ViewEdge | None = None,
|
|
277
277
|
orientation: bool = True,
|
|
278
278
|
):
|
|
279
279
|
"""Builds a Chaining Iterator from the first ViewEdge used for
|
|
@@ -286,6 +286,7 @@ class ChainingIterator:
|
|
|
286
286
|
already been chained must be ignored ot not.
|
|
287
287
|
:type restrict_to_unvisited: bool
|
|
288
288
|
:param begin: The ViewEdge from which to start the chain.
|
|
289
|
+
:type begin: None | ViewEdge | None
|
|
289
290
|
:param orientation: The direction to follow to explore the graph. If
|
|
290
291
|
true, the direction indicated by the first ViewEdge is used.
|
|
291
292
|
:type orientation: bool
|
|
@@ -306,7 +307,7 @@ class ChainingIterator:
|
|
|
306
307
|
|
|
307
308
|
"""
|
|
308
309
|
|
|
309
|
-
def traverse(self, it: AdjacencyIterator):
|
|
310
|
+
def traverse(self, it: AdjacencyIterator) -> None | ViewEdge:
|
|
310
311
|
"""This method iterates over the potential next ViewEdges and returns
|
|
311
312
|
the one that will be followed next. Returns the next ViewEdge to
|
|
312
313
|
follow or None when the end of the chain is reached.
|
|
@@ -316,6 +317,7 @@ class ChainingIterator:
|
|
|
316
317
|
restriction rules by only iterating over the valid ViewEdges.
|
|
317
318
|
:type it: AdjacencyIterator
|
|
318
319
|
:return: Returns the next ViewEdge to follow, or None if chaining ends.
|
|
320
|
+
:rtype: None | ViewEdge
|
|
319
321
|
"""
|
|
320
322
|
|
|
321
323
|
class Curve:
|
|
@@ -358,16 +360,18 @@ class Curve:
|
|
|
358
360
|
:type id: Id
|
|
359
361
|
"""
|
|
360
362
|
|
|
361
|
-
def push_vertex_back(self, vertex):
|
|
363
|
+
def push_vertex_back(self, vertex: CurvePoint | SVertex):
|
|
362
364
|
"""Adds a single vertex at the end of the Curve.
|
|
363
365
|
|
|
364
366
|
:param vertex: A vertex object.
|
|
367
|
+
:type vertex: CurvePoint | SVertex
|
|
365
368
|
"""
|
|
366
369
|
|
|
367
|
-
def push_vertex_front(self, vertex):
|
|
370
|
+
def push_vertex_front(self, vertex: CurvePoint | SVertex):
|
|
368
371
|
"""Adds a single vertex at the front of the Curve.
|
|
369
372
|
|
|
370
373
|
:param vertex: A vertex object.
|
|
374
|
+
:type vertex: CurvePoint | SVertex
|
|
371
375
|
"""
|
|
372
376
|
|
|
373
377
|
class CurvePoint:
|
|
@@ -865,12 +869,15 @@ class, the .object property refers to a `StrokeVertex` object.
|
|
|
865
869
|
:type brother: typing_extensions.Self
|
|
866
870
|
"""
|
|
867
871
|
|
|
868
|
-
def __init__(
|
|
872
|
+
def __init__(
|
|
873
|
+
self,
|
|
874
|
+
it: CurvePointIterator | SVertexIterator | StrokeVertexIterator | typing.Any,
|
|
875
|
+
):
|
|
869
876
|
"""Construct a nested Interface0DIterator using either the copy constructor
|
|
870
877
|
or the constructor that takes an he argument of a Function0D.
|
|
871
878
|
|
|
872
879
|
:param it: An iterator object to be nested.
|
|
873
|
-
:type it: CurvePointIterator | SVertexIterator
|
|
880
|
+
:type it: CurvePointIterator | SVertexIterator | StrokeVertexIterator | typing.Any
|
|
874
881
|
"""
|
|
875
882
|
|
|
876
883
|
class Interface1D:
|
|
@@ -1042,11 +1049,23 @@ class Material:
|
|
|
1042
1049
|
|
|
1043
1050
|
def __init__(
|
|
1044
1051
|
self,
|
|
1045
|
-
line: float
|
|
1052
|
+
line: collections.abc.Sequence[float]
|
|
1053
|
+
| list[float]
|
|
1054
|
+
| mathutils.Vector
|
|
1055
|
+
| tuple[float, float, float, float],
|
|
1046
1056
|
diffuse: typing.Any,
|
|
1047
|
-
ambient: float
|
|
1048
|
-
|
|
1049
|
-
|
|
1057
|
+
ambient: collections.abc.Sequence[float]
|
|
1058
|
+
| list[float]
|
|
1059
|
+
| mathutils.Vector
|
|
1060
|
+
| tuple[float, float, float, float],
|
|
1061
|
+
specular: collections.abc.Sequence[float]
|
|
1062
|
+
| list[float]
|
|
1063
|
+
| mathutils.Vector
|
|
1064
|
+
| tuple[float, float, float, float],
|
|
1065
|
+
emission: collections.abc.Sequence[float]
|
|
1066
|
+
| list[float]
|
|
1067
|
+
| mathutils.Vector
|
|
1068
|
+
| tuple[float, float, float, float],
|
|
1050
1069
|
shininess: float,
|
|
1051
1070
|
priority: int,
|
|
1052
1071
|
):
|
|
@@ -1054,15 +1073,15 @@ class Material:
|
|
|
1054
1073
|
copy constructor, or an overloaded constructor
|
|
1055
1074
|
|
|
1056
1075
|
:param line: The line color.
|
|
1057
|
-
:type line: float
|
|
1076
|
+
:type line: collections.abc.Sequence[float] | list[float] | mathutils.Vector | tuple[float, float, float, float]
|
|
1058
1077
|
:param diffuse: The diffuse color.
|
|
1059
1078
|
:type diffuse: typing.Any
|
|
1060
1079
|
:param ambient: The ambient color.
|
|
1061
|
-
:type ambient: float
|
|
1080
|
+
:type ambient: collections.abc.Sequence[float] | list[float] | mathutils.Vector | tuple[float, float, float, float]
|
|
1062
1081
|
:param specular: The specular color.
|
|
1063
|
-
:type specular: float
|
|
1082
|
+
:type specular: collections.abc.Sequence[float] | list[float] | mathutils.Vector | tuple[float, float, float, float]
|
|
1064
1083
|
:param emission: The emissive color.
|
|
1065
|
-
:type emission: float
|
|
1084
|
+
:type emission: collections.abc.Sequence[float] | list[float] | mathutils.Vector | tuple[float, float, float, float]
|
|
1066
1085
|
:param shininess: The shininess coefficient.
|
|
1067
1086
|
:type shininess: float
|
|
1068
1087
|
:param priority: The line color priority.
|
|
@@ -1098,19 +1117,32 @@ class Noise:
|
|
|
1098
1117
|
:rtype: float
|
|
1099
1118
|
"""
|
|
1100
1119
|
|
|
1101
|
-
def smoothNoise2(
|
|
1120
|
+
def smoothNoise2(
|
|
1121
|
+
self,
|
|
1122
|
+
v: collections.abc.Sequence[float]
|
|
1123
|
+
| list[float]
|
|
1124
|
+
| mathutils.Vector
|
|
1125
|
+
| tuple[float, float],
|
|
1126
|
+
) -> float:
|
|
1102
1127
|
"""Returns a smooth noise value for a 2D element.
|
|
1103
1128
|
|
|
1104
1129
|
:param v: Two-dimensional sample point.
|
|
1130
|
+
:type v: collections.abc.Sequence[float] | list[float] | mathutils.Vector | tuple[float, float]
|
|
1105
1131
|
:return: A smooth noise value.
|
|
1106
1132
|
:rtype: float
|
|
1107
1133
|
"""
|
|
1108
1134
|
|
|
1109
|
-
def smoothNoise3(
|
|
1135
|
+
def smoothNoise3(
|
|
1136
|
+
self,
|
|
1137
|
+
v: collections.abc.Sequence[float]
|
|
1138
|
+
| list[float]
|
|
1139
|
+
| mathutils.Vector
|
|
1140
|
+
| tuple[float, float, float],
|
|
1141
|
+
) -> float:
|
|
1110
1142
|
"""Returns a smooth noise value for a 3D element.
|
|
1111
1143
|
|
|
1112
1144
|
:param v: Three-dimensional sample point.
|
|
1113
|
-
:type v: float
|
|
1145
|
+
:type v: collections.abc.Sequence[float] | list[float] | mathutils.Vector | tuple[float, float, float]
|
|
1114
1146
|
:return: A smooth noise value.
|
|
1115
1147
|
:rtype: float
|
|
1116
1148
|
"""
|
|
@@ -1130,10 +1162,20 @@ class Noise:
|
|
|
1130
1162
|
:rtype: float
|
|
1131
1163
|
"""
|
|
1132
1164
|
|
|
1133
|
-
def turbulence2(
|
|
1165
|
+
def turbulence2(
|
|
1166
|
+
self,
|
|
1167
|
+
v: collections.abc.Sequence[float]
|
|
1168
|
+
| list[float]
|
|
1169
|
+
| mathutils.Vector
|
|
1170
|
+
| tuple[float, float],
|
|
1171
|
+
freq: float,
|
|
1172
|
+
amp: float,
|
|
1173
|
+
oct: int = 4,
|
|
1174
|
+
) -> float:
|
|
1134
1175
|
"""Returns a noise value for a 2D element.
|
|
1135
1176
|
|
|
1136
1177
|
:param v: Two-dimensional sample point.
|
|
1178
|
+
:type v: collections.abc.Sequence[float] | list[float] | mathutils.Vector | tuple[float, float]
|
|
1137
1179
|
:param freq: Noise frequency.
|
|
1138
1180
|
:type freq: float
|
|
1139
1181
|
:param amp: Amplitude.
|
|
@@ -1144,11 +1186,20 @@ class Noise:
|
|
|
1144
1186
|
:rtype: float
|
|
1145
1187
|
"""
|
|
1146
1188
|
|
|
1147
|
-
def turbulence3(
|
|
1189
|
+
def turbulence3(
|
|
1190
|
+
self,
|
|
1191
|
+
v: collections.abc.Sequence[float]
|
|
1192
|
+
| list[float]
|
|
1193
|
+
| mathutils.Vector
|
|
1194
|
+
| tuple[float, float, float],
|
|
1195
|
+
freq: float,
|
|
1196
|
+
amp: float,
|
|
1197
|
+
oct: int = 4,
|
|
1198
|
+
) -> float:
|
|
1148
1199
|
"""Returns a noise value for a 3D element.
|
|
1149
1200
|
|
|
1150
1201
|
:param v: Three-dimensional sample point.
|
|
1151
|
-
:type v: float
|
|
1202
|
+
:type v: collections.abc.Sequence[float] | list[float] | mathutils.Vector | tuple[float, float, float]
|
|
1152
1203
|
:param freq: Noise frequency.
|
|
1153
1204
|
:type freq: float
|
|
1154
1205
|
:param amp: Amplitude.
|
|
@@ -1269,7 +1320,7 @@ class Operators:
|
|
|
1269
1320
|
"""
|
|
1270
1321
|
|
|
1271
1322
|
@staticmethod
|
|
1272
|
-
def create(pred: UnaryPredicate1D, shaders):
|
|
1323
|
+
def create(pred: UnaryPredicate1D, shaders: list[StrokeShader]):
|
|
1273
1324
|
"""Creates and shades the strokes from the current set of chains. A
|
|
1274
1325
|
predicate can be specified to make a selection pass on the chains.
|
|
1275
1326
|
|
|
@@ -1277,6 +1328,7 @@ class Operators:
|
|
|
1277
1328
|
transform as a stroke.
|
|
1278
1329
|
:type pred: UnaryPredicate1D
|
|
1279
1330
|
:param shaders: The list of shaders used to shade the strokes.
|
|
1331
|
+
:type shaders: list[StrokeShader]
|
|
1280
1332
|
"""
|
|
1281
1333
|
|
|
1282
1334
|
@staticmethod
|
|
@@ -1621,12 +1673,18 @@ ViewVertex, and None otherwise.
|
|
|
1621
1673
|
:type fedge: FEdge
|
|
1622
1674
|
"""
|
|
1623
1675
|
|
|
1624
|
-
def add_normal(
|
|
1676
|
+
def add_normal(
|
|
1677
|
+
self,
|
|
1678
|
+
normal: collections.abc.Sequence[float]
|
|
1679
|
+
| list[float]
|
|
1680
|
+
| mathutils.Vector
|
|
1681
|
+
| tuple[float, float, float],
|
|
1682
|
+
):
|
|
1625
1683
|
"""Adds a normal to the SVertex's set of normals. If the same normal
|
|
1626
1684
|
is already in the set, nothing changes.
|
|
1627
1685
|
|
|
1628
1686
|
:param normal: A three-dimensional vector.
|
|
1629
|
-
:type normal: float
|
|
1687
|
+
:type normal: collections.abc.Sequence[float] | list[float] | mathutils.Vector | tuple[float, float, float]
|
|
1630
1688
|
"""
|
|
1631
1689
|
|
|
1632
1690
|
class SVertexIterator:
|
|
@@ -1978,7 +2036,14 @@ when following the stroke.
|
|
|
1978
2036
|
:type value: float
|
|
1979
2037
|
"""
|
|
1980
2038
|
|
|
1981
|
-
def set_attribute_vec2(
|
|
2039
|
+
def set_attribute_vec2(
|
|
2040
|
+
self,
|
|
2041
|
+
name: str,
|
|
2042
|
+
value: collections.abc.Sequence[float]
|
|
2043
|
+
| list[float]
|
|
2044
|
+
| mathutils.Vector
|
|
2045
|
+
| tuple[float, float, float],
|
|
2046
|
+
):
|
|
1982
2047
|
"""Adds a user-defined attribute of two-dimensional vector type. If
|
|
1983
2048
|
there is no attribute of the given name, it is added. Otherwise,
|
|
1984
2049
|
the new value replaces the old one.
|
|
@@ -1986,10 +2051,17 @@ when following the stroke.
|
|
|
1986
2051
|
:param name: The name of the attribute.
|
|
1987
2052
|
:type name: str
|
|
1988
2053
|
:param value: The attribute value.
|
|
1989
|
-
:type value: float
|
|
2054
|
+
:type value: collections.abc.Sequence[float] | list[float] | mathutils.Vector | tuple[float, float, float]
|
|
1990
2055
|
"""
|
|
1991
2056
|
|
|
1992
|
-
def set_attribute_vec3(
|
|
2057
|
+
def set_attribute_vec3(
|
|
2058
|
+
self,
|
|
2059
|
+
name: str,
|
|
2060
|
+
value: collections.abc.Sequence[float]
|
|
2061
|
+
| list[float]
|
|
2062
|
+
| mathutils.Vector
|
|
2063
|
+
| tuple[float, float, float],
|
|
2064
|
+
):
|
|
1993
2065
|
"""Adds a user-defined attribute of three-dimensional vector type.
|
|
1994
2066
|
If there is no attribute of the given name, it is added.
|
|
1995
2067
|
Otherwise, the new value replaces the old one.
|
|
@@ -1997,7 +2069,7 @@ when following the stroke.
|
|
|
1997
2069
|
:param name: The name of the attribute.
|
|
1998
2070
|
:type name: str
|
|
1999
2071
|
:param value: The attribute value as a 3D vector.
|
|
2000
|
-
:type value: float
|
|
2072
|
+
:type value: collections.abc.Sequence[float] | list[float] | mathutils.Vector | tuple[float, float, float]
|
|
2001
2073
|
"""
|
|
2002
2074
|
|
|
2003
2075
|
class StrokeShader:
|
|
@@ -2737,11 +2809,12 @@ of the "begin" ViewEdge.
|
|
|
2737
2809
|
:type: bool
|
|
2738
2810
|
"""
|
|
2739
2811
|
|
|
2740
|
-
def __init__(self, begin=None, orientation: bool = True):
|
|
2812
|
+
def __init__(self, begin: None | ViewEdge | None = None, orientation: bool = True):
|
|
2741
2813
|
"""Builds a ViewEdgeIterator from a starting ViewEdge and its
|
|
2742
2814
|
orientation or the copy constructor.
|
|
2743
2815
|
|
|
2744
2816
|
:param begin: The ViewEdge from where to start the iteration.
|
|
2817
|
+
:type begin: None | ViewEdge | None
|
|
2745
2818
|
:param orientation: If true, we'll look for the next ViewEdge among
|
|
2746
2819
|
the ViewEdges that surround the ending ViewVertex of begin. If
|
|
2747
2820
|
false, we'll search over the ViewEdges surrounding the ending
|
|
@@ -2925,12 +2998,12 @@ class orientedViewEdgeIterator:
|
|
|
2925
2998
|
obtained from a ViewVertex by calling edges_begin() or edges_end().
|
|
2926
2999
|
"""
|
|
2927
3000
|
|
|
2928
|
-
object: tuple[ViewEdge]
|
|
3001
|
+
object: tuple[ViewEdge, bool]
|
|
2929
3002
|
""" The oriented ViewEdge (i.e., a tuple of the pointed ViewEdge and a boolean
|
|
2930
3003
|
value) currently pointed to by this iterator. If the boolean value is true,
|
|
2931
3004
|
the ViewEdge is incoming.
|
|
2932
3005
|
|
|
2933
|
-
:type: tuple[ViewEdge]
|
|
3006
|
+
:type: tuple[ViewEdge, bool]
|
|
2934
3007
|
"""
|
|
2935
3008
|
|
|
2936
3009
|
def __init__(self):
|
|
@@ -8,11 +8,11 @@ import collections.abc
|
|
|
8
8
|
import typing_extensions
|
|
9
9
|
import freestyle.types
|
|
10
10
|
|
|
11
|
-
def get_border() -> int:
|
|
11
|
+
def get_border() -> tuple[int, int, int, int]:
|
|
12
12
|
"""Returns the border.
|
|
13
13
|
|
|
14
14
|
:return: A tuple of 4 numbers (xmin, ymin, xmax, ymax).
|
|
15
|
-
:rtype: int
|
|
15
|
+
:rtype: tuple[int, int, int, int]
|
|
16
16
|
"""
|
|
17
17
|
|
|
18
18
|
def get_canvas_height() -> int:
|
freestyle/utils/__init__.pyi
CHANGED
|
@@ -70,7 +70,7 @@ def integrate(
|
|
|
70
70
|
it: freestyle.types.Interface0DIterator,
|
|
71
71
|
it_end: freestyle.types.Interface0DIterator,
|
|
72
72
|
integration_type: freestyle.types.IntegrationType,
|
|
73
|
-
):
|
|
73
|
+
) -> float:
|
|
74
74
|
"""Returns a single value from a set of values evaluated at each 0D
|
|
75
75
|
element of this 1D element.
|
|
76
76
|
|
|
@@ -91,6 +91,7 @@ def integrate(
|
|
|
91
91
|
value type is float if func is of the `UnaryFunction0DDouble`
|
|
92
92
|
or `UnaryFunction0DFloat` type, and int if func is of the
|
|
93
93
|
`UnaryFunction0DUnsigned` type.
|
|
94
|
+
:rtype: float
|
|
94
95
|
"""
|
|
95
96
|
|
|
96
97
|
def is_poly_clockwise(stroke):
|
gpu/capabilities/__init__.pyi
CHANGED
|
@@ -14,10 +14,11 @@ def compute_shader_support_get() -> bool:
|
|
|
14
14
|
:rtype: bool
|
|
15
15
|
"""
|
|
16
16
|
|
|
17
|
-
def extensions_get():
|
|
17
|
+
def extensions_get() -> tuple[str]:
|
|
18
18
|
"""Get supported extensions in the current context.
|
|
19
19
|
|
|
20
20
|
:return: Extensions.
|
|
21
|
+
:rtype: tuple[str]
|
|
21
22
|
"""
|
|
22
23
|
|
|
23
24
|
def hdr_support_get() -> bool:
|
gpu/matrix/__init__.pyi
CHANGED
|
@@ -83,10 +83,11 @@ def push_projection():
|
|
|
83
83
|
def reset():
|
|
84
84
|
"""Empty stack and set to identity."""
|
|
85
85
|
|
|
86
|
-
def scale(scale):
|
|
86
|
+
def scale(scale: collections.abc.Sequence[float]):
|
|
87
87
|
"""Scale the current stack matrix.
|
|
88
88
|
|
|
89
89
|
:param scale: Scale the current stack matrix with 2 or 3 floats.
|
|
90
|
+
:type scale: collections.abc.Sequence[float]
|
|
90
91
|
"""
|
|
91
92
|
|
|
92
93
|
def scale_uniform(scale: float):
|
|
@@ -96,8 +97,9 @@ def scale_uniform(scale: float):
|
|
|
96
97
|
:type scale: float
|
|
97
98
|
"""
|
|
98
99
|
|
|
99
|
-
def translate(offset):
|
|
100
|
+
def translate(offset: collections.abc.Sequence[float]):
|
|
100
101
|
"""Scale the current stack matrix.
|
|
101
102
|
|
|
102
103
|
:param offset: Translate the current stack matrix with 2 or 3 floats.
|
|
104
|
+
:type offset: collections.abc.Sequence[float]
|
|
103
105
|
"""
|
gpu/state/__init__.pyi
CHANGED
|
@@ -98,7 +98,7 @@ def program_point_size_set(enable: bool):
|
|
|
98
98
|
:type enable: bool
|
|
99
99
|
"""
|
|
100
100
|
|
|
101
|
-
def scissor_get() -> int:
|
|
101
|
+
def scissor_get() -> tuple[int, int, int, int]:
|
|
102
102
|
"""Retrieve the scissors of the active framebuffer.
|
|
103
103
|
Note: Only valid between 'scissor_set' and a framebuffer rebind.
|
|
104
104
|
|
|
@@ -106,7 +106,7 @@ def scissor_get() -> int:
|
|
|
106
106
|
(x, y, xsize, ysize).
|
|
107
107
|
x, y: lower left corner of the scissor rectangle, in pixels.
|
|
108
108
|
xsize, ysize: width and height of the scissor rectangle.
|
|
109
|
-
:rtype: int
|
|
109
|
+
:rtype: tuple[int, int, int, int]
|
|
110
110
|
"""
|
|
111
111
|
|
|
112
112
|
def scissor_set(x: int, y, xsize: int, ysize):
|
gpu/types/__init__.pyi
CHANGED
|
@@ -87,11 +87,17 @@ class GPUFrameBuffer:
|
|
|
87
87
|
def bind(self):
|
|
88
88
|
"""Context manager to ensure balanced bind calls, even in the case of an error."""
|
|
89
89
|
|
|
90
|
-
def clear(
|
|
90
|
+
def clear(
|
|
91
|
+
self,
|
|
92
|
+
color: collections.abc.Sequence[float] | None = None,
|
|
93
|
+
depth: float | None = None,
|
|
94
|
+
stencil: int | None = None,
|
|
95
|
+
):
|
|
91
96
|
"""Fill color, depth and stencil textures with specific value.
|
|
92
97
|
Common values: color=(0.0, 0.0, 0.0, 1.0), depth=1.0, stencil=0.
|
|
93
98
|
|
|
94
99
|
:param color: Sequence of 3 or 4 floats representing (r, g, b, a).
|
|
100
|
+
:type color: collections.abc.Sequence[float] | None
|
|
95
101
|
:param depth: depth value.
|
|
96
102
|
:type depth: float | None
|
|
97
103
|
:param stencil: stencil value.
|
|
@@ -270,10 +276,11 @@ class GPUShader:
|
|
|
270
276
|
:rtype: int
|
|
271
277
|
"""
|
|
272
278
|
|
|
273
|
-
def attrs_info_get(self):
|
|
279
|
+
def attrs_info_get(self) -> tuple[tuple[str, str | None], ...]:
|
|
274
280
|
"""Information about the attributes used in the Shader.
|
|
275
281
|
|
|
276
282
|
:return: tuples containing information about the attributes in order (name, type)
|
|
283
|
+
:rtype: tuple[tuple[str, str | None], ...]
|
|
277
284
|
"""
|
|
278
285
|
|
|
279
286
|
def bind(self):
|
|
@@ -312,20 +319,22 @@ class GPUShader:
|
|
|
312
319
|
:rtype: int
|
|
313
320
|
"""
|
|
314
321
|
|
|
315
|
-
def uniform_bool(self, name: str, value):
|
|
322
|
+
def uniform_bool(self, name: str, value: bool | collections.abc.Sequence[bool]):
|
|
316
323
|
"""Specify the value of a uniform variable for the current program object.
|
|
317
324
|
|
|
318
325
|
:param name: Name of the uniform variable whose value is to be changed.
|
|
319
326
|
:type name: str
|
|
320
327
|
:param value: Value that will be used to update the specified uniform variable.
|
|
328
|
+
:type value: bool | collections.abc.Sequence[bool]
|
|
321
329
|
"""
|
|
322
330
|
|
|
323
|
-
def uniform_float(self, name: str, value):
|
|
331
|
+
def uniform_float(self, name: str, value: collections.abc.Sequence[float] | float):
|
|
324
332
|
"""Specify the value of a uniform variable for the current program object.
|
|
325
333
|
|
|
326
334
|
:param name: Name of the uniform variable whose value is to be changed.
|
|
327
335
|
:type name: str
|
|
328
336
|
:param value: Value that will be used to update the specified uniform variable.
|
|
337
|
+
:type value: collections.abc.Sequence[float] | float
|
|
329
338
|
"""
|
|
330
339
|
|
|
331
340
|
def uniform_from_name(self, name: str) -> int:
|
|
@@ -337,12 +346,13 @@ class GPUShader:
|
|
|
337
346
|
:rtype: int
|
|
338
347
|
"""
|
|
339
348
|
|
|
340
|
-
def uniform_int(self, name: str, seq):
|
|
349
|
+
def uniform_int(self, name: str, seq: collections.abc.Sequence[int]):
|
|
341
350
|
"""Specify the value of a uniform variable for the current program object.
|
|
342
351
|
|
|
343
352
|
:param name: name of the uniform variable whose value is to be changed.
|
|
344
353
|
:type name: str
|
|
345
354
|
:param seq: Value that will be used to update the specified uniform variable.
|
|
355
|
+
:type seq: collections.abc.Sequence[int]
|
|
346
356
|
"""
|
|
347
357
|
|
|
348
358
|
def uniform_sampler(self, name: str, texture: GPUTexture):
|
|
@@ -354,12 +364,19 @@ class GPUShader:
|
|
|
354
364
|
:type texture: GPUTexture
|
|
355
365
|
"""
|
|
356
366
|
|
|
357
|
-
def uniform_vector_float(
|
|
367
|
+
def uniform_vector_float(
|
|
368
|
+
self,
|
|
369
|
+
location: int,
|
|
370
|
+
buffer: collections.abc.Sequence[float],
|
|
371
|
+
length: int,
|
|
372
|
+
count: int,
|
|
373
|
+
):
|
|
358
374
|
"""Set the buffer to fill the uniform.
|
|
359
375
|
|
|
360
376
|
:param location: Location of the uniform variable to be modified.
|
|
361
377
|
:type location: int
|
|
362
378
|
:param buffer: The data that should be set. Can support the buffer protocol.
|
|
379
|
+
:type buffer: collections.abc.Sequence[float]
|
|
363
380
|
:param length: Size of the uniform data type:
|
|
364
381
|
|
|
365
382
|
1: float
|
|
@@ -971,13 +988,18 @@ class GPUTexture:
|
|
|
971
988
|
:type: int
|
|
972
989
|
"""
|
|
973
990
|
|
|
974
|
-
def clear(
|
|
991
|
+
def clear(
|
|
992
|
+
self,
|
|
993
|
+
format: str = "FLOAT",
|
|
994
|
+
value: collections.abc.Sequence[float] = (0.0, 0.0, 0.0, 1.0),
|
|
995
|
+
):
|
|
975
996
|
"""Fill texture with specific value.
|
|
976
997
|
|
|
977
998
|
:param format: The format that describes the content of a single item.
|
|
978
999
|
Possible values are FLOAT, INT, UINT, UBYTE, UINT_24_8 and 10_11_11_REV.
|
|
979
1000
|
:type format: str
|
|
980
1001
|
:param value: Sequence each representing the value to fill. Sizes 1..4 are supported.
|
|
1002
|
+
:type value: collections.abc.Sequence[float]
|
|
981
1003
|
"""
|
|
982
1004
|
|
|
983
1005
|
def read(self):
|
|
@@ -995,11 +1017,21 @@ class GPUUniformBuf:
|
|
|
995
1017
|
class GPUVertBuf:
|
|
996
1018
|
"""Contains a VBO."""
|
|
997
1019
|
|
|
998
|
-
def attr_fill(
|
|
1020
|
+
def attr_fill(
|
|
1021
|
+
self,
|
|
1022
|
+
id: int | str,
|
|
1023
|
+
data: Buffer
|
|
1024
|
+
| collections.abc.Sequence[collections.abc.Sequence[float]]
|
|
1025
|
+
| collections.abc.Sequence[collections.abc.Sequence[int]]
|
|
1026
|
+
| collections.abc.Sequence[float]
|
|
1027
|
+
| collections.abc.Sequence[int],
|
|
1028
|
+
):
|
|
999
1029
|
"""Insert data into the buffer for a single attribute.
|
|
1000
1030
|
|
|
1001
1031
|
:param id: Either the name or the id of the attribute.
|
|
1032
|
+
:type id: int | str
|
|
1002
1033
|
:param data: Buffer or sequence of data that should be stored in the buffer
|
|
1034
|
+
:type data: Buffer | collections.abc.Sequence[collections.abc.Sequence[float]] | collections.abc.Sequence[collections.abc.Sequence[int]] | collections.abc.Sequence[float] | collections.abc.Sequence[int]
|
|
1003
1035
|
"""
|
|
1004
1036
|
|
|
1005
1037
|
class GPUVertFormat:
|
gpu_extras/batch/__init__.pyi
CHANGED
|
@@ -4,7 +4,18 @@ import typing_extensions
|
|
|
4
4
|
import gpu.types
|
|
5
5
|
|
|
6
6
|
def batch_for_shader(
|
|
7
|
-
shader: gpu.types.GPUShader,
|
|
7
|
+
shader: gpu.types.GPUShader,
|
|
8
|
+
type: str,
|
|
9
|
+
content: dict[
|
|
10
|
+
str,
|
|
11
|
+
gpu.types.Buffer
|
|
12
|
+
| collections.abc.Sequence[float]
|
|
13
|
+
| collections.abc.Sequence[int]
|
|
14
|
+
| collections.abc.Sequence[collections.abc.Sequence[float]]
|
|
15
|
+
| collections.abc.Sequence[collections.abc.Sequence[int]],
|
|
16
|
+
],
|
|
17
|
+
*,
|
|
18
|
+
indices=None,
|
|
8
19
|
) -> gpu.types.GPUBatch:
|
|
9
20
|
"""Return a batch already configured and compatible with the shader.
|
|
10
21
|
|
|
@@ -14,6 +25,7 @@ def batch_for_shader(
|
|
|
14
25
|
:type type: str
|
|
15
26
|
:param content: Maps the name of the shader attribute with the data to fill the vertex buffer.
|
|
16
27
|
For the dictionary values see documentation for `gpu.types.GPUVertBuf.attr_fill` data argument.
|
|
28
|
+
:type content: dict[str, gpu.types.Buffer | collections.abc.Sequence[float] | collections.abc.Sequence[int] | collections.abc.Sequence[collections.abc.Sequence[float]] | collections.abc.Sequence[collections.abc.Sequence[int]]]
|
|
17
29
|
:return: compatible batch
|
|
18
30
|
:rtype: gpu.types.GPUBatch
|
|
19
31
|
"""
|
gpu_extras/presets/__init__.pyi
CHANGED
|
@@ -4,17 +4,26 @@ import typing_extensions
|
|
|
4
4
|
import gpu.types
|
|
5
5
|
import mathutils
|
|
6
6
|
|
|
7
|
-
def draw_circle_2d(
|
|
7
|
+
def draw_circle_2d(
|
|
8
|
+
position: collections.abc.Sequence[float],
|
|
9
|
+
color: collections.abc.Sequence[float],
|
|
10
|
+
radius: float,
|
|
11
|
+
*,
|
|
12
|
+
segments: None | int | None = None,
|
|
13
|
+
):
|
|
8
14
|
"""Draw a circle.
|
|
9
15
|
|
|
10
16
|
:param position: 2D position where the circle will be drawn.
|
|
17
|
+
:type position: collections.abc.Sequence[float]
|
|
11
18
|
:param color: Color of the circle (RGBA).
|
|
12
19
|
To use transparency blend must be set to ALPHA, see: `gpu.state.blend_set`.
|
|
20
|
+
:type color: collections.abc.Sequence[float]
|
|
13
21
|
:param radius: Radius of the circle.
|
|
14
22
|
:type radius: float
|
|
15
23
|
:param segments: How many segments will be used to draw the circle.
|
|
16
24
|
Higher values give better results but the drawing will take longer.
|
|
17
25
|
If None or not specified, an automatic value will be calculated.
|
|
26
|
+
:type segments: None | int | None
|
|
18
27
|
"""
|
|
19
28
|
|
|
20
29
|
def draw_texture_2d(
|
idprop/types/__init__.pyi
CHANGED
|
@@ -29,21 +29,23 @@ class IDPropertyGroup:
|
|
|
29
29
|
def keys(self):
|
|
30
30
|
"""Return the keys associated with this group as a list of strings."""
|
|
31
31
|
|
|
32
|
-
def pop(self, key: str, default):
|
|
32
|
+
def pop(self, key: str, default: typing.Any):
|
|
33
33
|
"""Remove an item from the group, returning a Python representation.
|
|
34
34
|
|
|
35
35
|
:param key: Name of item to remove.
|
|
36
36
|
:type key: str
|
|
37
37
|
:param default: Value to return when key isn't found, otherwise raise an exception.
|
|
38
|
+
:type default: typing.Any
|
|
38
39
|
"""
|
|
39
40
|
|
|
40
41
|
def to_dict(self):
|
|
41
42
|
"""Return a purely Python version of the group."""
|
|
42
43
|
|
|
43
|
-
def update(self, other):
|
|
44
|
+
def update(self, other: dict[str, typing.Any] | typing_extensions.Self):
|
|
44
45
|
"""Update key, values.
|
|
45
46
|
|
|
46
47
|
:param other: Updates the values in the group with this.
|
|
48
|
+
:type other: dict[str, typing.Any] | typing_extensions.Self
|
|
47
49
|
"""
|
|
48
50
|
|
|
49
51
|
def values(self):
|
imbuf/__init__.pyi
CHANGED
|
@@ -18,26 +18,29 @@ import imbuf.types
|
|
|
18
18
|
|
|
19
19
|
from . import types as types
|
|
20
20
|
|
|
21
|
-
def load(filepath) -> imbuf.types.ImBuf:
|
|
21
|
+
def load(filepath: bytes | str) -> imbuf.types.ImBuf:
|
|
22
22
|
"""Load an image from a file.
|
|
23
23
|
|
|
24
24
|
:param filepath: the filepath of the image.
|
|
25
|
+
:type filepath: bytes | str
|
|
25
26
|
:return: the newly loaded image.
|
|
26
27
|
:rtype: imbuf.types.ImBuf
|
|
27
28
|
"""
|
|
28
29
|
|
|
29
|
-
def new(size) -> imbuf.types.ImBuf:
|
|
30
|
+
def new(size: tuple[int, int]) -> imbuf.types.ImBuf:
|
|
30
31
|
"""Load a new image.
|
|
31
32
|
|
|
32
33
|
:param size: The size of the image in pixels.
|
|
34
|
+
:type size: tuple[int, int]
|
|
33
35
|
:return: the newly loaded image.
|
|
34
36
|
:rtype: imbuf.types.ImBuf
|
|
35
37
|
"""
|
|
36
38
|
|
|
37
|
-
def write(image: imbuf.types.ImBuf, filepath=image.filepath):
|
|
39
|
+
def write(image: imbuf.types.ImBuf, filepath: None | bytes | str = image.filepath):
|
|
38
40
|
"""Write an image.
|
|
39
41
|
|
|
40
42
|
:param image: the image to write.
|
|
41
43
|
:type image: imbuf.types.ImBuf
|
|
42
44
|
:param filepath: Optional filepath of the image (fallback to the images file path).
|
|
45
|
+
:type filepath: None | bytes | str
|
|
43
46
|
"""
|
imbuf/types/__init__.pyi
CHANGED
|
@@ -43,20 +43,23 @@ class ImBuf:
|
|
|
43
43
|
:rtype: typing_extensions.Self
|
|
44
44
|
"""
|
|
45
45
|
|
|
46
|
-
def crop(self, min, max):
|
|
46
|
+
def crop(self, min: tuple[int, int], max: tuple[int, int]):
|
|
47
47
|
"""Crop the image.
|
|
48
48
|
|
|
49
49
|
:param min: X, Y minimum.
|
|
50
|
+
:type min: tuple[int, int]
|
|
50
51
|
:param max: X, Y maximum.
|
|
52
|
+
:type max: tuple[int, int]
|
|
51
53
|
"""
|
|
52
54
|
|
|
53
55
|
def free(self):
|
|
54
56
|
"""Clear image data immediately (causing an error on re-use)."""
|
|
55
57
|
|
|
56
|
-
def resize(self, size, method: str = "FAST"):
|
|
58
|
+
def resize(self, size: tuple[int, int], method: str = "FAST"):
|
|
57
59
|
"""Resize the image.
|
|
58
60
|
|
|
59
61
|
:param size: New size.
|
|
62
|
+
:type size: tuple[int, int]
|
|
60
63
|
:param method: Method of resizing ('FAST', 'BILINEAR')
|
|
61
64
|
:type method: str
|
|
62
65
|
"""
|