fake-bpy-module 20250604__py3-none-any.whl → 20250606__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.
Potentially problematic release.
This version of fake-bpy-module might be problematic. Click here for more details.
- _bpy_internal/addons/cli/__init__.pyi +1 -1
- _bpy_internal/extensions/junction_module/__init__.pyi +7 -7
- _bpy_internal/extensions/stale_file_manager/__init__.pyi +8 -8
- _bpy_internal/extensions/wheel_manager/__init__.pyi +3 -3
- _bpy_internal/freedesktop/__init__.pyi +16 -16
- _bpy_internal/grease_pencil/stroke/__init__.pyi +4 -4
- _bpy_internal/system_info/text_generate_runtime/__init__.pyi +1 -1
- _bpy_internal/system_info/url_prefill_runtime/__init__.pyi +1 -1
- _bpy_internal/system_info/url_prefill_startup/__init__.pyi +2 -2
- addon_utils/__init__.pyi +12 -12
- animsys_refactor/__init__.pyi +6 -6
- aud/__init__.pyi +11 -11
- bgl/__init__.pyi +272 -252
- bl_app_override/__init__.pyi +3 -3
- bl_app_override/helpers/__init__.pyi +2 -2
- bl_app_template_utils/__init__.pyi +4 -4
- bl_console_utils/autocomplete/complete_namespace/__init__.pyi +2 -2
- bl_i18n_utils/bl_extract_messages/__init__.pyi +18 -16
- bl_i18n_utils/merge_po/__init__.pyi +1 -1
- bl_i18n_utils/settings/__init__.pyi +6 -6
- bl_i18n_utils/utils/__init__.pyi +48 -46
- bl_i18n_utils/utils_cli/__init__.pyi +6 -6
- bl_i18n_utils/utils_languages_menu/__init__.pyi +1 -1
- bl_i18n_utils/utils_rtl/__init__.pyi +2 -2
- bl_keymap_utils/io/__init__.pyi +9 -9
- bl_keymap_utils/keymap_from_toolbar/__init__.pyi +1 -1
- bl_keymap_utils/keymap_hierarchy/__init__.pyi +1 -1
- bl_keymap_utils/platform_helpers/__init__.pyi +2 -2
- bl_keymap_utils/versioning/__init__.pyi +1 -1
- bl_operators/__init__.pyi +2 -2
- bl_operators/add_mesh_torus/__init__.pyi +6 -6
- bl_operators/anim/__init__.pyi +24 -24
- bl_operators/assets/__init__.pyi +9 -9
- bl_operators/bmesh/find_adjacent/__init__.pyi +11 -9
- bl_operators/bone_selection_sets/__init__.pyi +18 -18
- bl_operators/clip/__init__.pyi +26 -26
- bl_operators/connect_to_output/__init__.pyi +17 -15
- bl_operators/console/__init__.pyi +10 -10
- bl_operators/constraint/__init__.pyi +8 -8
- bl_operators/file/__init__.pyi +6 -6
- bl_operators/freestyle/__init__.pyi +9 -9
- bl_operators/geometry_nodes/__init__.pyi +24 -24
- bl_operators/grease_pencil/__init__.pyi +2 -2
- bl_operators/image/__init__.pyi +7 -7
- bl_operators/image_as_planes/__init__.pyi +32 -32
- bl_operators/mesh/__init__.pyi +7 -7
- bl_operators/node/__init__.pyi +31 -31
- bl_operators/node_editor/node_functions/__init__.pyi +9 -9
- bl_operators/object/__init__.pyi +31 -31
- bl_operators/object_align/__init__.pyi +5 -5
- bl_operators/object_quick_effects/__init__.pyi +9 -9
- bl_operators/object_randomize_transform/__init__.pyi +3 -3
- bl_operators/presets/__init__.pyi +18 -18
- bl_operators/rigidbody/__init__.pyi +7 -7
- bl_operators/screen_play_rendered_anim/__init__.pyi +2 -2
- bl_operators/sequencer/__init__.pyi +19 -19
- bl_operators/spreadsheet/__init__.pyi +4 -4
- bl_operators/userpref/__init__.pyi +42 -42
- bl_operators/uvcalc_follow_active/__init__.pyi +5 -5
- bl_operators/uvcalc_lightmap/__init__.pyi +8 -8
- bl_operators/uvcalc_transform/__init__.pyi +20 -20
- bl_operators/vertexpaint_dirt/__init__.pyi +4 -4
- bl_operators/view3d/__init__.pyi +21 -19
- bl_operators/wm/__init__.pyi +88 -88
- bl_operators/world/__init__.pyi +2 -2
- bl_previews_utils/bl_previews_render/__init__.pyi +9 -7
- bl_rna_utils/data_path/__init__.pyi +2 -2
- bl_text_utils/external_editor/__init__.pyi +1 -1
- bl_ui/__init__.pyi +10 -10
- bl_ui/anim/__init__.pyi +2 -2
- bl_ui/asset_shelf/__init__.pyi +2 -2
- bl_ui/generic_ui_list/__init__.pyi +6 -6
- bl_ui/node_add_menu/__init__.pyi +15 -13
- bl_ui/node_add_menu_compositor/__init__.pyi +18 -18
- bl_ui/node_add_menu_geometry/__init__.pyi +54 -54
- bl_ui/node_add_menu_shader/__init__.pyi +16 -16
- bl_ui/node_add_menu_texture/__init__.pyi +9 -9
- bl_ui/properties_animviz/__init__.pyi +2 -2
- bl_ui/properties_collection/__init__.pyi +10 -8
- bl_ui/properties_constraint/__init__.pyi +125 -125
- bl_ui/properties_data_armature/__init__.pyi +22 -22
- bl_ui/properties_data_bone/__init__.pyi +20 -20
- bl_ui/properties_data_camera/__init__.pyi +19 -19
- bl_ui/properties_data_curve/__init__.pyi +23 -23
- bl_ui/properties_data_curves/__init__.pyi +9 -9
- bl_ui/properties_data_empty/__init__.pyi +4 -4
- bl_ui/properties_data_grease_pencil/__init__.pyi +25 -25
- bl_ui/properties_data_lattice/__init__.pyi +4 -4
- bl_ui/properties_data_light/__init__.pyi +14 -14
- bl_ui/properties_data_lightprobe/__init__.pyi +18 -18
- bl_ui/properties_data_mesh/__init__.pyi +26 -26
- bl_ui/properties_data_metaball/__init__.pyi +6 -6
- bl_ui/properties_data_modifier/__init__.pyi +12 -12
- bl_ui/properties_data_pointcloud/__init__.pyi +8 -8
- bl_ui/properties_data_shaderfx/__init__.pyi +1 -1
- bl_ui/properties_data_speaker/__init__.pyi +5 -5
- bl_ui/properties_data_volume/__init__.pyi +9 -9
- bl_ui/properties_freestyle/__init__.pyi +51 -51
- bl_ui/properties_grease_pencil_common/__init__.pyi +30 -30
- bl_ui/properties_mask_common/__init__.pyi +24 -24
- bl_ui/properties_material/__init__.pyi +27 -27
- bl_ui/properties_material_gpencil/__init__.pyi +12 -12
- bl_ui/properties_object/__init__.pyi +29 -29
- bl_ui/properties_output/__init__.pyi +29 -29
- bl_ui/properties_paint_common/__init__.pyi +59 -49
- bl_ui/properties_particle/__init__.pyi +101 -101
- bl_ui/properties_physics_cloth/__init__.pyi +20 -20
- bl_ui/properties_physics_common/__init__.pyi +8 -8
- bl_ui/properties_physics_dynamicpaint/__init__.pyi +57 -57
- bl_ui/properties_physics_field/__init__.pyi +23 -23
- bl_ui/properties_physics_fluid/__init__.pyi +76 -76
- bl_ui/properties_physics_geometry_nodes/__init__.pyi +3 -3
- bl_ui/properties_physics_rigidbody/__init__.pyi +18 -18
- bl_ui/properties_physics_rigidbody_constraint/__init__.pyi +29 -29
- bl_ui/properties_physics_softbody/__init__.pyi +21 -21
- bl_ui/properties_render/__init__.pyi +81 -81
- bl_ui/properties_scene/__init__.pyi +22 -22
- bl_ui/properties_texture/__init__.pyi +39 -39
- bl_ui/properties_view_layer/__init__.pyi +12 -12
- bl_ui/properties_workspace/__init__.pyi +5 -5
- bl_ui/properties_world/__init__.pyi +18 -18
- bl_ui/space_clip/__init__.pyi +81 -81
- bl_ui/space_console/__init__.pyi +6 -6
- bl_ui/space_dopesheet/__init__.pyi +32 -32
- bl_ui/space_filebrowser/__init__.pyi +45 -45
- bl_ui/space_graph/__init__.pyi +21 -21
- bl_ui/space_image/__init__.pyi +73 -73
- bl_ui/space_info/__init__.pyi +6 -6
- bl_ui/space_nla/__init__.pyi +18 -18
- bl_ui/space_node/__init__.pyi +42 -42
- bl_ui/space_outliner/__init__.pyi +21 -21
- bl_ui/space_properties/__init__.pyi +6 -6
- bl_ui/space_sequencer/__init__.pyi +133 -133
- bl_ui/space_spreadsheet/__init__.pyi +4 -4
- bl_ui/space_statusbar/__init__.pyi +1 -1
- bl_ui/space_text/__init__.pyi +17 -17
- bl_ui/space_time/__init__.pyi +12 -12
- bl_ui/space_toolsystem_common/__init__.pyi +28 -26
- bl_ui/space_toolsystem_toolbar/__init__.pyi +36 -36
- bl_ui/space_topbar/__init__.pyi +32 -32
- bl_ui/space_userpref/__init__.pyi +132 -132
- bl_ui/space_view3d/__init__.pyi +297 -297
- bl_ui/space_view3d_toolbar/__init__.pyi +148 -149
- bl_ui/utils/__init__.pyi +5 -5
- bl_ui_utils/layout/__init__.pyi +1 -1
- blend_render_info/__init__.pyi +2 -2
- blf/__init__.pyi +15 -15
- bmesh/__init__.pyi +1 -1
- bmesh/ops/__init__.pyi +366 -357
- bmesh/types/__init__.pyi +59 -57
- bmesh/utils/__init__.pyi +2 -2
- bpy/app/__init__.pyi +3 -3
- bpy/app/icons/__init__.pyi +1 -1
- bpy/app/timers/__init__.pyi +2 -2
- bpy/app/translations/__init__.pyi +9 -9
- bpy/msgbus/__init__.pyi +3 -3
- bpy/ops/action/__init__.pyi +62 -38
- bpy/ops/anim/__init__.pyi +63 -61
- bpy/ops/armature/__init__.pyi +58 -48
- bpy/ops/asset/__init__.pyi +31 -17
- bpy/ops/boid/__init__.pyi +18 -8
- bpy/ops/brush/__init__.pyi +19 -13
- bpy/ops/buttons/__init__.pyi +14 -6
- bpy/ops/cachefile/__init__.pyi +9 -5
- bpy/ops/camera/__init__.pyi +2 -2
- bpy/ops/clip/__init__.pyi +112 -92
- bpy/ops/cloth/__init__.pyi +1 -1
- bpy/ops/collection/__init__.pyi +11 -9
- bpy/ops/console/__init__.pyi +37 -21
- bpy/ops/constraint/__init__.pyi +20 -18
- bpy/ops/curve/__init__.pyi +81 -51
- bpy/ops/curves/__init__.pyi +50 -30
- bpy/ops/cycles/__init__.pyi +3 -3
- bpy/ops/dpaint/__init__.pyi +5 -5
- bpy/ops/ed/__init__.pyi +19 -13
- bpy/ops/export_anim/__init__.pyi +1 -1
- bpy/ops/export_scene/__init__.pyi +2 -2
- bpy/ops/extensions/__init__.pyi +38 -32
- bpy/ops/file/__init__.pyi +72 -40
- bpy/ops/fluid/__init__.pyi +36 -14
- bpy/ops/font/__init__.pyi +41 -23
- bpy/ops/geometry/__init__.pyi +10 -10
- bpy/ops/gizmogroup/__init__.pyi +4 -2
- bpy/ops/gpencil/__init__.pyi +12 -8
- bpy/ops/graph/__init__.pyi +81 -65
- bpy/ops/grease_pencil/__init__.pyi +159 -115
- bpy/ops/image/__init__.pyi +63 -49
- bpy/ops/import_anim/__init__.pyi +1 -1
- bpy/ops/import_curve/__init__.pyi +1 -1
- bpy/ops/import_scene/__init__.pyi +2 -2
- bpy/ops/info/__init__.pyi +13 -7
- bpy/ops/lattice/__init__.pyi +14 -8
- bpy/ops/marker/__init__.pyi +13 -11
- bpy/ops/mask/__init__.pyi +59 -39
- bpy/ops/material/__init__.pyi +3 -3
- bpy/ops/mball/__init__.pyi +8 -8
- bpy/ops/mesh/__init__.pyi +182 -164
- bpy/ops/nla/__init__.pyi +65 -39
- bpy/ops/node/__init__.pyi +181 -147
- bpy/ops/object/__init__.pyi +262 -242
- bpy/ops/outliner/__init__.pyi +98 -72
- bpy/ops/paint/__init__.pyi +58 -54
- bpy/ops/paintcurve/__init__.pyi +12 -8
- bpy/ops/palette/__init__.pyi +11 -7
- bpy/ops/particle/__init__.pyi +58 -36
- bpy/ops/pointcloud/__init__.pyi +13 -7
- bpy/ops/pose/__init__.pyi +65 -51
- bpy/ops/poselib/__init__.pyi +17 -11
- bpy/ops/preferences/__init__.pyi +41 -35
- bpy/ops/ptcache/__init__.pyi +13 -7
- bpy/ops/render/__init__.pyi +17 -13
- bpy/ops/rigidbody/__init__.pyi +19 -13
- bpy/ops/scene/__init__.pyi +39 -37
- bpy/ops/screen/__init__.pyi +59 -39
- bpy/ops/script/__init__.pyi +5 -3
- bpy/ops/sculpt/__init__.pyi +44 -40
- bpy/ops/sculpt_curves/__init__.pyi +4 -4
- bpy/ops/sequencer/__init__.pyi +142 -100
- bpy/ops/sound/__init__.pyi +7 -7
- bpy/ops/spreadsheet/__init__.pyi +13 -7
- bpy/ops/surface/__init__.pyi +6 -6
- bpy/ops/text/__init__.pyi +73 -43
- bpy/ops/text_editor/__init__.pyi +1 -1
- bpy/ops/texture/__init__.pyi +8 -4
- bpy/ops/transform/__init__.pyi +29 -27
- bpy/ops/ui/__init__.pyi +42 -34
- bpy/ops/uilist/__init__.pyi +3 -3
- bpy/ops/uv/__init__.pyi +59 -49
- bpy/ops/view2d/__init__.pyi +14 -14
- bpy/ops/view3d/__init__.pyi +87 -67
- bpy/ops/wm/__init__.pyi +138 -116
- bpy/ops/workspace/__init__.pyi +11 -7
- bpy/ops/world/__init__.pyi +2 -2
- bpy/props/__init__.pyi +16 -13
- bpy/types/__init__.pyi +1206 -1157
- bpy/utils/__init__.pyi +23 -23
- bpy/utils/previews/__init__.pyi +3 -3
- bpy_extras/anim_utils/__init__.pyi +7 -7
- bpy_extras/bmesh_utils/__init__.pyi +1 -1
- bpy_extras/id_map_utils/__init__.pyi +3 -3
- bpy_extras/io_utils/__init__.pyi +14 -12
- bpy_extras/keyconfig_utils/__init__.pyi +3 -3
- bpy_extras/mesh_utils/__init__.pyi +2 -2
- bpy_extras/node_shader_utils/__init__.pyi +63 -63
- bpy_extras/node_utils/__init__.pyi +3 -3
- bpy_extras/object_utils/__init__.pyi +4 -4
- bpy_extras/wm_utils/progress_report/__init__.pyi +10 -10
- bpy_types/__init__.pyi +4 -4
- console_python/__init__.pyi +7 -7
- console_shell/__init__.pyi +5 -5
- {fake_bpy_module-20250604.dist-info → fake_bpy_module-20250606.dist-info}/METADATA +1 -1
- fake_bpy_module-20250606.dist-info/RECORD +367 -0
- freestyle/chainingiterators/__init__.pyi +35 -33
- freestyle/functions/__init__.pyi +55 -55
- freestyle/predicates/__init__.pyi +8 -8
- freestyle/shaders/__init__.pyi +79 -75
- freestyle/types/__init__.pyi +146 -142
- freestyle/utils/ContextFunctions/__init__.pyi +3 -1
- freestyle/utils/__init__.pyi +25 -25
- gpu/matrix/__init__.pyi +14 -14
- gpu/select/__init__.pyi +1 -1
- gpu/shader/__init__.pyi +1 -1
- gpu/state/__init__.pyi +19 -19
- gpu/types/__init__.pyi +50 -44
- gpu_extras/presets/__init__.pyi +2 -2
- graphviz_export/__init__.pyi +2 -2
- idprop/types/__init__.pyi +9 -9
- imbuf/__init__.pyi +3 -1
- imbuf/types/__init__.pyi +3 -3
- keyingsets_builtins/__init__.pyi +26 -26
- keyingsets_utils/__init__.pyi +14 -14
- mathutils/__init__.pyi +61 -53
- mathutils/bvhtree/__init__.pyi +4 -4
- mathutils/kdtree/__init__.pyi +3 -3
- mathutils/noise/__init__.pyi +1 -1
- nodeitems_builtins/__init__.pyi +4 -4
- nodeitems_utils/__init__.pyi +9 -9
- rna_info/__init__.pyi +25 -25
- rna_keymap_ui/__init__.pyi +6 -6
- rna_prop_ui/__init__.pyi +12 -12
- rna_xml/__init__.pyi +6 -6
- fake_bpy_module-20250604.dist-info/RECORD +0 -367
- {fake_bpy_module-20250604.dist-info → fake_bpy_module-20250606.dist-info}/WHEEL +0 -0
- {fake_bpy_module-20250604.dist-info → fake_bpy_module-20250606.dist-info}/top_level.txt +0 -0
|
@@ -44,7 +44,9 @@ def get_time_stamp() -> int:
|
|
|
44
44
|
:rtype: int
|
|
45
45
|
"""
|
|
46
46
|
|
|
47
|
-
def load_map(
|
|
47
|
+
def load_map(
|
|
48
|
+
file_name: str, map_name: str, num_levels: int = 4, sigma: float = 1.0
|
|
49
|
+
) -> None:
|
|
48
50
|
"""Loads an image map for further reading.
|
|
49
51
|
|
|
50
52
|
:param file_name: The name of the image file.
|
freestyle/utils/__init__.pyi
CHANGED
|
@@ -21,7 +21,7 @@ from . import ContextFunctions as ContextFunctions
|
|
|
21
21
|
class BoundingBox:
|
|
22
22
|
"""Object representing a bounding box consisting out of 2 2D vectors"""
|
|
23
23
|
|
|
24
|
-
def inside(self, other):
|
|
24
|
+
def inside(self, other) -> None:
|
|
25
25
|
"""True if self inside other, False otherwise
|
|
26
26
|
|
|
27
27
|
:param other:
|
|
@@ -30,21 +30,21 @@ class BoundingBox:
|
|
|
30
30
|
class StrokeCollector:
|
|
31
31
|
"""Collects and Stores stroke objects"""
|
|
32
32
|
|
|
33
|
-
def shade(self, stroke):
|
|
33
|
+
def shade(self, stroke) -> None:
|
|
34
34
|
"""
|
|
35
35
|
|
|
36
36
|
:param stroke:
|
|
37
37
|
"""
|
|
38
38
|
|
|
39
|
-
def angle_x_normal(it):
|
|
39
|
+
def angle_x_normal(it) -> None:
|
|
40
40
|
"""unsigned angle between a Point's normal and the X axis, in radians"""
|
|
41
41
|
|
|
42
|
-
def bound(lower, x, higher): ...
|
|
43
|
-
def bounding_box(stroke):
|
|
42
|
+
def bound(lower, x, higher) -> None: ...
|
|
43
|
+
def bounding_box(stroke) -> None:
|
|
44
44
|
"""Returns the maximum and minimum coordinates (the bounding box) of the stroke's vertices"""
|
|
45
45
|
|
|
46
|
-
def curvature_from_stroke_vertex(svert): ...
|
|
47
|
-
def find_matching_vertex(id, it):
|
|
46
|
+
def curvature_from_stroke_vertex(svert) -> None: ...
|
|
47
|
+
def find_matching_vertex(id, it) -> None:
|
|
48
48
|
"""Finds the matching vertex, or returns None."""
|
|
49
49
|
|
|
50
50
|
def getCurrentScene() -> bpy.types.Scene:
|
|
@@ -54,16 +54,16 @@ def getCurrentScene() -> bpy.types.Scene:
|
|
|
54
54
|
:rtype: bpy.types.Scene
|
|
55
55
|
"""
|
|
56
56
|
|
|
57
|
-
def get_chain_length(ve, orientation):
|
|
57
|
+
def get_chain_length(ve, orientation) -> None:
|
|
58
58
|
"""Returns the 2d length of a given ViewEdge."""
|
|
59
59
|
|
|
60
|
-
def get_object_name(stroke):
|
|
60
|
+
def get_object_name(stroke) -> None:
|
|
61
61
|
"""Returns the name of the object that this stroke is drawn on."""
|
|
62
62
|
|
|
63
|
-
def get_strokes():
|
|
63
|
+
def get_strokes() -> None:
|
|
64
64
|
"""Get all strokes that are currently available"""
|
|
65
65
|
|
|
66
|
-
def get_test_stroke():
|
|
66
|
+
def get_test_stroke() -> None:
|
|
67
67
|
"""Returns a static stroke object for testing"""
|
|
68
68
|
|
|
69
69
|
def integrate(
|
|
@@ -95,53 +95,53 @@ def integrate(
|
|
|
95
95
|
:rtype: float
|
|
96
96
|
"""
|
|
97
97
|
|
|
98
|
-
def is_poly_clockwise(stroke):
|
|
98
|
+
def is_poly_clockwise(stroke) -> None:
|
|
99
99
|
"""True if the stroke is orientated in a clockwise way, False otherwise"""
|
|
100
100
|
|
|
101
|
-
def iter_distance_along_stroke(stroke):
|
|
101
|
+
def iter_distance_along_stroke(stroke) -> None:
|
|
102
102
|
"""Yields the absolute distance along the stroke up to the current vertex."""
|
|
103
103
|
|
|
104
|
-
def iter_distance_from_camera(stroke, range_min, range_max, normfac):
|
|
104
|
+
def iter_distance_from_camera(stroke, range_min, range_max, normfac) -> None:
|
|
105
105
|
"""Yields the distance to the camera relative to the maximum
|
|
106
106
|
possible distance for every stroke vertex, constrained by
|
|
107
107
|
given minimum and maximum values.
|
|
108
108
|
|
|
109
109
|
"""
|
|
110
110
|
|
|
111
|
-
def iter_distance_from_object(stroke, location, range_min, range_max, normfac):
|
|
111
|
+
def iter_distance_from_object(stroke, location, range_min, range_max, normfac) -> None:
|
|
112
112
|
"""yields the distance to the given object relative to the maximum
|
|
113
113
|
possible distance for every stroke vertex, constrained by
|
|
114
114
|
given minimum and maximum values.
|
|
115
115
|
|
|
116
116
|
"""
|
|
117
117
|
|
|
118
|
-
def iter_material_value(stroke, func, attribute):
|
|
118
|
+
def iter_material_value(stroke, func, attribute) -> None:
|
|
119
119
|
"""Yields a specific material attribute from the vertex' underlying material."""
|
|
120
120
|
|
|
121
|
-
def iter_t2d_along_stroke(stroke):
|
|
121
|
+
def iter_t2d_along_stroke(stroke) -> None:
|
|
122
122
|
"""Yields the progress along the stroke."""
|
|
123
123
|
|
|
124
|
-
def material_from_fedge(fe):
|
|
124
|
+
def material_from_fedge(fe) -> None:
|
|
125
125
|
"""get the diffuse RGBA color from an FEdge"""
|
|
126
126
|
|
|
127
|
-
def normal_at_I0D(it): ...
|
|
128
|
-
def pairwise(iterable, types={StrokeVertexIterator, Stroke}):
|
|
127
|
+
def normal_at_I0D(it) -> None: ...
|
|
128
|
+
def pairwise(iterable, types={StrokeVertexIterator, Stroke}) -> None:
|
|
129
129
|
"""Yields a tuple containing the previous and current object"""
|
|
130
130
|
|
|
131
|
-
def rgb_to_bw(r, g, b):
|
|
131
|
+
def rgb_to_bw(r, g, b) -> None:
|
|
132
132
|
"""Method to convert rgb to a bw intensity value."""
|
|
133
133
|
|
|
134
|
-
def simplify(points, tolerance):
|
|
134
|
+
def simplify(points, tolerance) -> None:
|
|
135
135
|
"""Simplifies a set of points"""
|
|
136
136
|
|
|
137
|
-
def stroke_curvature(it):
|
|
137
|
+
def stroke_curvature(it) -> None:
|
|
138
138
|
"""Compute the 2D curvature at the stroke vertex pointed by the iterator 'it'.
|
|
139
139
|
K = 1 / R
|
|
140
140
|
where R is the radius of the circle going through the current vertex and its neighbors
|
|
141
141
|
|
|
142
142
|
"""
|
|
143
143
|
|
|
144
|
-
def stroke_normal(stroke):
|
|
144
|
+
def stroke_normal(stroke) -> None:
|
|
145
145
|
"""Compute the 2D normal at the stroke vertex pointed by the iterator
|
|
146
146
|
'it'. It is noted that Normal2DF0D computes normals based on
|
|
147
147
|
underlying FEdges instead, which is inappropriate for strokes when
|
|
@@ -152,5 +152,5 @@ def stroke_normal(stroke):
|
|
|
152
152
|
|
|
153
153
|
"""
|
|
154
154
|
|
|
155
|
-
def tripplewise(iterable):
|
|
155
|
+
def tripplewise(iterable) -> None:
|
|
156
156
|
"""Yields a tuple containing the current object and its immediate neighbors"""
|
gpu/matrix/__init__.pyi
CHANGED
|
@@ -30,13 +30,13 @@ def get_projection_matrix() -> mathutils.Matrix:
|
|
|
30
30
|
:rtype: mathutils.Matrix
|
|
31
31
|
"""
|
|
32
32
|
|
|
33
|
-
def load_identity():
|
|
33
|
+
def load_identity() -> None:
|
|
34
34
|
"""Load an identity matrix into the stack."""
|
|
35
35
|
|
|
36
36
|
def load_matrix(
|
|
37
37
|
matrix: collections.abc.Sequence[collections.abc.Sequence[float]]
|
|
38
38
|
| mathutils.Matrix,
|
|
39
|
-
):
|
|
39
|
+
) -> None:
|
|
40
40
|
"""Load a matrix into the stack.
|
|
41
41
|
|
|
42
42
|
:param matrix: A 4x4 matrix.
|
|
@@ -46,7 +46,7 @@ def load_matrix(
|
|
|
46
46
|
def load_projection_matrix(
|
|
47
47
|
matrix: collections.abc.Sequence[collections.abc.Sequence[float]]
|
|
48
48
|
| mathutils.Matrix,
|
|
49
|
-
):
|
|
49
|
+
) -> None:
|
|
50
50
|
"""Load a projection matrix into the stack.
|
|
51
51
|
|
|
52
52
|
:param matrix: A 4x4 matrix.
|
|
@@ -56,49 +56,49 @@ def load_projection_matrix(
|
|
|
56
56
|
def multiply_matrix(
|
|
57
57
|
matrix: collections.abc.Sequence[collections.abc.Sequence[float]]
|
|
58
58
|
| mathutils.Matrix,
|
|
59
|
-
):
|
|
59
|
+
) -> None:
|
|
60
60
|
"""Multiply the current stack matrix.
|
|
61
61
|
|
|
62
62
|
:param matrix: A 4x4 matrix.
|
|
63
63
|
:type matrix: collections.abc.Sequence[collections.abc.Sequence[float]] | mathutils.Matrix
|
|
64
64
|
"""
|
|
65
65
|
|
|
66
|
-
def pop():
|
|
66
|
+
def pop() -> None:
|
|
67
67
|
"""Remove the last model-view matrix from the stack."""
|
|
68
68
|
|
|
69
|
-
def pop_projection():
|
|
69
|
+
def pop_projection() -> None:
|
|
70
70
|
"""Remove the last projection matrix from the stack."""
|
|
71
71
|
|
|
72
|
-
def push():
|
|
72
|
+
def push() -> None:
|
|
73
73
|
"""Add to the model-view matrix stack."""
|
|
74
74
|
|
|
75
|
-
def push_pop():
|
|
75
|
+
def push_pop() -> None:
|
|
76
76
|
"""Context manager to ensure balanced push/pop calls, even in the case of an error."""
|
|
77
77
|
|
|
78
|
-
def push_pop_projection():
|
|
78
|
+
def push_pop_projection() -> None:
|
|
79
79
|
"""Context manager to ensure balanced push/pop calls, even in the case of an error."""
|
|
80
80
|
|
|
81
|
-
def push_projection():
|
|
81
|
+
def push_projection() -> None:
|
|
82
82
|
"""Add to the projection matrix stack."""
|
|
83
83
|
|
|
84
|
-
def reset():
|
|
84
|
+
def reset() -> None:
|
|
85
85
|
"""Empty stack and set to identity."""
|
|
86
86
|
|
|
87
|
-
def scale(scale: collections.abc.Sequence[float]):
|
|
87
|
+
def scale(scale: collections.abc.Sequence[float]) -> None:
|
|
88
88
|
"""Scale the current stack matrix.
|
|
89
89
|
|
|
90
90
|
:param scale: Scale the current stack matrix with 2 or 3 floats.
|
|
91
91
|
:type scale: collections.abc.Sequence[float]
|
|
92
92
|
"""
|
|
93
93
|
|
|
94
|
-
def scale_uniform(scale: float):
|
|
94
|
+
def scale_uniform(scale: float) -> None:
|
|
95
95
|
"""
|
|
96
96
|
|
|
97
97
|
:param scale: Scale the current stack matrix.
|
|
98
98
|
:type scale: float
|
|
99
99
|
"""
|
|
100
100
|
|
|
101
|
-
def translate(offset: collections.abc.Sequence[float]):
|
|
101
|
+
def translate(offset: collections.abc.Sequence[float]) -> None:
|
|
102
102
|
"""Scale the current stack matrix.
|
|
103
103
|
|
|
104
104
|
:param offset: Translate the current stack matrix with 2 or 3 floats.
|
gpu/select/__init__.pyi
CHANGED
gpu/shader/__init__.pyi
CHANGED
gpu/state/__init__.pyi
CHANGED
|
@@ -8,13 +8,13 @@ import collections.abc
|
|
|
8
8
|
import typing_extensions
|
|
9
9
|
import numpy.typing as npt
|
|
10
10
|
|
|
11
|
-
def active_framebuffer_get(enable):
|
|
11
|
+
def active_framebuffer_get(enable) -> None:
|
|
12
12
|
"""Return the active frame-buffer in context."""
|
|
13
13
|
|
|
14
|
-
def blend_get():
|
|
14
|
+
def blend_get() -> None:
|
|
15
15
|
"""Current blending equation."""
|
|
16
16
|
|
|
17
|
-
def blend_set(mode: str):
|
|
17
|
+
def blend_set(mode: str) -> None:
|
|
18
18
|
"""Defines the fixed pipeline blending equation.
|
|
19
19
|
|
|
20
20
|
:param mode: The type of blend mode.
|
|
@@ -37,33 +37,33 @@ def blend_set(mode: str):
|
|
|
37
37
|
:type mode: str
|
|
38
38
|
"""
|
|
39
39
|
|
|
40
|
-
def clip_distances_set(distances_enabled: int):
|
|
40
|
+
def clip_distances_set(distances_enabled: int) -> None:
|
|
41
41
|
"""Sets the number of gl_ClipDistance planes used for clip geometry.
|
|
42
42
|
|
|
43
43
|
:param distances_enabled: Number of clip distances enabled.
|
|
44
44
|
:type distances_enabled: int
|
|
45
45
|
"""
|
|
46
46
|
|
|
47
|
-
def color_mask_set(r: bool, g, b, a):
|
|
47
|
+
def color_mask_set(r: bool, g, b, a) -> None:
|
|
48
48
|
"""Enable or disable writing of frame buffer color components.
|
|
49
49
|
|
|
50
50
|
:param r: components red, green, blue, and alpha.
|
|
51
51
|
:type r: bool
|
|
52
52
|
"""
|
|
53
53
|
|
|
54
|
-
def depth_mask_get():
|
|
54
|
+
def depth_mask_get() -> None:
|
|
55
55
|
"""Writing status in the depth component."""
|
|
56
56
|
|
|
57
|
-
def depth_mask_set(value):
|
|
57
|
+
def depth_mask_set(value) -> None:
|
|
58
58
|
"""Write to depth component.
|
|
59
59
|
|
|
60
60
|
:param value: True for writing to the depth component.
|
|
61
61
|
"""
|
|
62
62
|
|
|
63
|
-
def depth_test_get():
|
|
63
|
+
def depth_test_get() -> None:
|
|
64
64
|
"""Current depth_test equation."""
|
|
65
65
|
|
|
66
|
-
def depth_test_set(mode: str):
|
|
66
|
+
def depth_test_set(mode: str) -> None:
|
|
67
67
|
"""Defines the depth_test equation.
|
|
68
68
|
|
|
69
69
|
:param mode: The depth test equation name.
|
|
@@ -71,28 +71,28 @@ def depth_test_set(mode: str):
|
|
|
71
71
|
:type mode: str
|
|
72
72
|
"""
|
|
73
73
|
|
|
74
|
-
def face_culling_set(culling):
|
|
74
|
+
def face_culling_set(culling) -> None:
|
|
75
75
|
"""Specify whether none, front-facing or back-facing facets can be culled."""
|
|
76
76
|
|
|
77
|
-
def front_facing_set(invert):
|
|
77
|
+
def front_facing_set(invert) -> None:
|
|
78
78
|
"""Specifies the orientation of front-facing polygons.
|
|
79
79
|
|
|
80
80
|
:param invert: True for clockwise polygons as front-facing.
|
|
81
81
|
"""
|
|
82
82
|
|
|
83
|
-
def line_width_get():
|
|
83
|
+
def line_width_get() -> None:
|
|
84
84
|
"""Current width of rasterized lines."""
|
|
85
85
|
|
|
86
|
-
def line_width_set(width):
|
|
86
|
+
def line_width_set(width) -> None:
|
|
87
87
|
"""Specify the width of rasterized lines."""
|
|
88
88
|
|
|
89
|
-
def point_size_set(size):
|
|
89
|
+
def point_size_set(size) -> None:
|
|
90
90
|
"""Specify the diameter of rasterized points.
|
|
91
91
|
|
|
92
92
|
:param size: New diameter.
|
|
93
93
|
"""
|
|
94
94
|
|
|
95
|
-
def program_point_size_set(enable: bool):
|
|
95
|
+
def program_point_size_set(enable: bool) -> None:
|
|
96
96
|
"""If enabled, the derived point size is taken from the (potentially clipped) shader builtin gl_PointSize.
|
|
97
97
|
|
|
98
98
|
:param enable: True for shader builtin gl_PointSize.
|
|
@@ -110,7 +110,7 @@ def scissor_get() -> tuple[int, int, int, int]:
|
|
|
110
110
|
:rtype: tuple[int, int, int, int]
|
|
111
111
|
"""
|
|
112
112
|
|
|
113
|
-
def scissor_set(x: int, y, xsize: int, ysize):
|
|
113
|
+
def scissor_set(x: int, y, xsize: int, ysize) -> None:
|
|
114
114
|
"""Specifies the scissor area of the active framebuffer.
|
|
115
115
|
Note: The scissor state is not saved upon framebuffer rebind.
|
|
116
116
|
|
|
@@ -120,7 +120,7 @@ def scissor_set(x: int, y, xsize: int, ysize):
|
|
|
120
120
|
:type xsize: int
|
|
121
121
|
"""
|
|
122
122
|
|
|
123
|
-
def scissor_test_set(enable: bool):
|
|
123
|
+
def scissor_test_set(enable: bool) -> None:
|
|
124
124
|
"""Enable/disable scissor testing on the active framebuffer.
|
|
125
125
|
|
|
126
126
|
:param enable: True - enable scissor testing.
|
|
@@ -128,10 +128,10 @@ def scissor_test_set(enable: bool):
|
|
|
128
128
|
:type enable: bool
|
|
129
129
|
"""
|
|
130
130
|
|
|
131
|
-
def viewport_get():
|
|
131
|
+
def viewport_get() -> None:
|
|
132
132
|
"""Viewport of the active framebuffer."""
|
|
133
133
|
|
|
134
|
-
def viewport_set(x: int, y, xsize: int, ysize):
|
|
134
|
+
def viewport_set(x: int, y, xsize: int, ysize) -> None:
|
|
135
135
|
"""Specifies the viewport of the active framebuffer.
|
|
136
136
|
Note: The viewport state is not saved upon framebuffer rebind.
|
|
137
137
|
|