1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
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
use *;
/// Default inline viewport height in logical pixels when no explicit `style` height override is provided.
pub const VIEWPORT3D_DEFAULT_HEIGHT: f32 = 380.0;
/// Default collapsible Blender Studio inspector rail width in logical pixels.
pub const VIEWPORT3D_INSPECTOR_WIDTH: f32 = 276.0;
/// Default Blender Live-Link SSE endpoint displayed in the Studio Live-Link inspector tab (port `9877`).
pub const VIEWPORT3D_DEFAULT_LIVE_LINK_URL: &str = "http://127.0.0.1:9877/blender/events";
/// Default vertical field of view in degrees for `EuvViewport3DCameraState`.
pub const VIEWPORT3D_DEFAULT_FOV_DEG: f32 = 50.0;
/// Default orbit distance in meters for `EuvViewport3DCameraState`.
pub const VIEWPORT3D_DEFAULT_DISTANCE: f32 = 6.5;
/// Default orbit horizontal yaw angle in radians.
pub const VIEWPORT3D_DEFAULT_YAW_RAD: f32 = FRAC_PI_4;
/// Default orbit vertical pitch angle in radians (slightly elevated studio angle).
pub const VIEWPORT3D_DEFAULT_PITCH_RAD: f32 = -0.42;
/// Minimum clamped pitch angle in radians preventing gimbal-flip past zenith/nadir.
pub const VIEWPORT3D_PITCH_MIN: f32 = -1.42;
/// Maximum clamped pitch angle in radians preventing gimbal-flip past zenith/nadir.
pub const VIEWPORT3D_PITCH_MAX: f32 = 1.42;
/// Minimum allowed camera orbit distance in meters.
pub const VIEWPORT3D_DIST_MIN: f32 = 0.6;
/// Maximum allowed camera orbit distance in meters.
pub const VIEWPORT3D_DIST_MAX: f32 = 240.0;
/// Default orbit angular sensitivity in radians per logical pixel dragged.
pub const VIEWPORT3D_DEFAULT_ORBIT_SENS: f32 = 0.0085;
/// Default pan translation sensitivity multiplier scaled by current orbit distance.
pub const VIEWPORT3D_DEFAULT_PAN_SENS: f32 = 0.0018;
/// Default scroll zoom sensitivity factor per wheel delta unit.
pub const VIEWPORT3D_DEFAULT_ZOOM_SENS: f32 = 0.0016;
/// Default keyboard WASD/Arrow movement step in meters per key press.
pub const VIEWPORT3D_DEFAULT_MOVE_SPEED: f32 = 0.45;
/// Default camera near clipping plane in meters.
pub const VIEWPORT3D_DEFAULT_NEAR: f32 = 0.1;
/// Default camera far clipping plane in meters.
pub const VIEWPORT3D_DEFAULT_FAR: f32 = 600.0;
/// Floating icon-only fullscreen toggle button size in logical pixels (`32x32`).
pub const VIEWPORT3D_FS_BTN_SIZE: f32 = 32.0;
/// Vector icon glyph size inside viewport chrome buttons.
pub const VIEWPORT3D_ICON_SIZE: f32 = 14.0;
/// Half-extent in meters of the fallback studio reference ground grid.
pub const VIEWPORT3D_GRID_HALF_LINES: i32 = 6;
/// World-space spacing in meters between fallback studio reference ground grid lines.
pub const VIEWPORT3D_GRID_STEP: f32 = 1.0;
/// Overlay stack identifier for `EuvViewport3D` fullscreen portals.
pub const VIEWPORT3D_OVERLAY_NAME: &str = "euv_viewport3d_fullscreen";
/// Accessible label for entering 3D viewport fullscreen mode.
pub const VIEWPORT3D_A11Y_ENTER_FS: &str = "Enter fullscreen 3D viewport";
/// Accessible label for exiting 3D viewport fullscreen mode.
pub const VIEWPORT3D_A11Y_EXIT_FS: &str = "Exit fullscreen 3D viewport";
/// Accessible label for toggling the collapsible Studio inspector rail.
pub const VIEWPORT3D_A11Y_TOGGLE_INSPECTOR: &str = "Toggle 3D studio inspector";
/// Default accessible title for an `EuvViewport3D` canvas.
pub const VIEWPORT3D_DEFAULT_TITLE: &str = "3D Viewport";
/// Test ID attached to the interactive 3D viewport canvas surface.
pub const VIEWPORT3D_TEST_ID_CANVAS: &str = "euv-viewport3d-canvas";
/// Test ID attached to the single floating fullscreen toggle button.
pub const VIEWPORT3D_TEST_ID_FS_BTN: &str = "euv-viewport3d-fullscreen-btn";
/// Test ID attached to the collapsible Studio inspector rail.
pub const VIEWPORT3D_TEST_ID_INSPECTOR: &str = "euv-viewport3d-inspector";
/// Tab label for the Scene hierarchy inspector pane.
pub const VIEWPORT3D_TAB_SCENE: &str = "Scene";
/// Tab label for the Principled BSDF Materials inspector pane.
pub const VIEWPORT3D_TAB_MATERIALS: &str = "Materials";
/// Tab label for the Camera controls inspector pane.
pub const VIEWPORT3D_TAB_CAMERA: &str = "Camera";
/// Tab label for the Blender Live-Link inspector pane.
pub const VIEWPORT3D_TAB_LIVE_LINK: &str = "Live-Link";
/// Studio inspector rail heading text.
pub const VIEWPORT3D_INSPECTOR_HEADING: &str = "Studio Inspector";
/// Studio inspector collapse button label.
pub const VIEWPORT3D_BTN_HIDE: &str = "Hide";
/// Studio inspector expand button label.
pub const VIEWPORT3D_BTN_INSPECT: &str = "Inspector";
/// Camera preset button label resetting to default three-quarter studio view.
pub const VIEWPORT3D_CAM_RESET: &str = "Reset";
/// Camera preset button label aligning to top-down view.
pub const VIEWPORT3D_CAM_TOP: &str = "Top";
/// Camera preset button label aligning to front elevation view.
pub const VIEWPORT3D_CAM_FRONT: &str = "Front";
/// Camera preset button label aligning to side elevation view.
pub const VIEWPORT3D_CAM_SIDE: &str = "Side";
/// Live-Link action label when currently disconnected.
pub const VIEWPORT3D_LINK_CONNECT: &str = "Connect Live-Link";
/// Live-Link action label when currently connected or syncing.
pub const VIEWPORT3D_LINK_DISCONNECT: &str = "Disconnect Live-Link";
/// Material adjustment button label decreasing roughness.
pub const VIEWPORT3D_MAT_ROUGH_DEC: &str = "Rough -";
/// Material adjustment button label increasing roughness.
pub const VIEWPORT3D_MAT_ROUGH_INC: &str = "Rough +";
/// Material adjustment button label decreasing metallic factor.
pub const VIEWPORT3D_MAT_METAL_DEC: &str = "Metal -";
/// Material adjustment button label increasing metallic factor.
pub const VIEWPORT3D_MAT_METAL_INC: &str = "Metal +";
/// Empty-state message shown in the Scene tab when no scene summary is attached.
pub const VIEWPORT3D_EMPTY_SCENE: &str = "No Blender or glTF scene attached yet.";
/// Empty-state message shown in the Materials tab when no Principled BSDF materials exist.
pub const VIEWPORT3D_EMPTY_MATERIALS: &str = "No Principled BSDF materials loaded.";
/// Live-Link status label for `Disconnected`.
pub const VIEWPORT3D_STATUS_DISCONNECTED: &str = "Disconnected";
/// Live-Link status label for `Connecting`.
pub const VIEWPORT3D_STATUS_CONNECTING: &str = "Connecting";
/// Live-Link status label for `Connected`.
pub const VIEWPORT3D_STATUS_CONNECTED: &str = "Connected";
/// Live-Link status label for `Syncing`.
pub const VIEWPORT3D_STATUS_SYNCING: &str = "Syncing";
/// Live-Link status label for `Error`.
pub const VIEWPORT3D_STATUS_ERROR: &str = "Error";