@umituz/web-virtual 1.1.1 → 1.2.0
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.
- package/README.md +60 -2
- package/package.json +1 -1
- package/src/components/DigitalHQView.tsx +136 -54
- package/src/components/EntityInspector.tsx +8 -8
- package/src/components/VirtualCommandBar.tsx +24 -14
- package/src/components/VirtualEntityDrawer.tsx +15 -15
- package/src/components/VirtualReportModal.tsx +7 -6
- package/src/components/VirtualRoster.tsx +8 -6
- package/src/components/VirtualWorld.tsx +208 -49
- package/src/components/WorldControls.tsx +12 -12
- package/src/core/environment.ts +2 -2
- package/src/engine/renderer.ts +61 -5
- package/src/entities/architecture/OfficeArchitectureBuilder.ts +16 -0
- package/src/entities/people/AvatarBuilder.test.ts +75 -0
- package/src/entities/people/AvatarBuilder.ts +23 -3
- package/src/presets/factoryPreset.ts +15 -15
- package/src/presets/farmPreset.ts +15 -15
- package/src/presets/hospitalPreset.ts +12 -12
- package/src/presets/officePreset.ts +84 -84
- package/src/presets/schoolPreset.ts +12 -12
- package/src/styles/virtual.css +494 -193
|
@@ -9,44 +9,44 @@ import { ModelLoader } from '../engine/modelLoader'
|
|
|
9
9
|
export const DEFAULT_OFFICE_ZONES: WorldZone[] = [
|
|
10
10
|
{
|
|
11
11
|
id: 'executive',
|
|
12
|
-
name: '
|
|
12
|
+
name: 'Executive & Strategy Office',
|
|
13
13
|
color: '#8b5cf6',
|
|
14
|
-
description: '
|
|
14
|
+
description: 'Company leadership, general manager and strategic advisory workspace.',
|
|
15
15
|
cameraFocus: [11, 1.2, -5.5],
|
|
16
16
|
},
|
|
17
17
|
{
|
|
18
18
|
id: 'meeting',
|
|
19
|
-
name: '
|
|
19
|
+
name: 'Conference & Client Room',
|
|
20
20
|
color: '#06b6d4',
|
|
21
|
-
description: '
|
|
21
|
+
description: 'Client meetings, executive strategy sessions and the launch room.',
|
|
22
22
|
cameraFocus: [11, 1.2, 4.5],
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
id: 'creative',
|
|
26
|
-
name: '
|
|
26
|
+
name: 'Creative & Content Studio',
|
|
27
27
|
color: '#ec4899',
|
|
28
|
-
description: '
|
|
28
|
+
description: 'Visual design, video production and creative copywriting workspace.',
|
|
29
29
|
cameraFocus: [-6, 1.0, -6.5],
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
32
|
id: 'tech',
|
|
33
|
-
name: '
|
|
33
|
+
name: 'Software & Technology Center',
|
|
34
34
|
color: '#3b82f6',
|
|
35
|
-
description: '
|
|
35
|
+
description: 'System development, data analytics and platform engineering station.',
|
|
36
36
|
cameraFocus: [-6, 1.0, -1.8],
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
39
|
id: 'growth',
|
|
40
|
-
name: '
|
|
40
|
+
name: 'Growth & Digital Marketing',
|
|
41
41
|
color: '#10b981',
|
|
42
|
-
description: '
|
|
42
|
+
description: 'Performance ads, SEO, email automation and growth operations.',
|
|
43
43
|
cameraFocus: [-6, 1.0, 3.2],
|
|
44
44
|
},
|
|
45
45
|
{
|
|
46
46
|
id: 'operations',
|
|
47
|
-
name: '
|
|
47
|
+
name: 'Operations & Finance Desk',
|
|
48
48
|
color: '#f59e0b',
|
|
49
|
-
description: '
|
|
49
|
+
description: 'Budget, invoicing, corporate archive and operational quality control.',
|
|
50
50
|
cameraFocus: [-6, 1.0, 7.8],
|
|
51
51
|
},
|
|
52
52
|
]
|
|
@@ -66,55 +66,55 @@ export interface DepartmentInfo {
|
|
|
66
66
|
export const DEFAULT_OFFICE_DEPARTMENTS: DepartmentInfo[] = [
|
|
67
67
|
{
|
|
68
68
|
id: 'dept-management',
|
|
69
|
-
name: '
|
|
69
|
+
name: 'General Management & Strategy',
|
|
70
70
|
slug: 'management',
|
|
71
|
-
description: '
|
|
71
|
+
description: 'Company vision, department coordination, strategic planning and approval audits.',
|
|
72
72
|
managerSlotId: 'slot-1',
|
|
73
|
-
managerRole: '
|
|
73
|
+
managerRole: 'Digital Agency Director (General Manager)',
|
|
74
74
|
color: '#3b82f6',
|
|
75
75
|
slotIds: ['slot-1', 'slot-13'],
|
|
76
76
|
iconName: 'briefcase',
|
|
77
77
|
},
|
|
78
78
|
{
|
|
79
79
|
id: 'dept-creative',
|
|
80
|
-
name: '
|
|
80
|
+
name: 'Content & Creative Design',
|
|
81
81
|
slug: 'creative',
|
|
82
|
-
description: '
|
|
82
|
+
description: 'Social media content, visual concepts, ad hooks and viral video production.',
|
|
83
83
|
managerSlotId: 'slot-3',
|
|
84
|
-
managerRole: '
|
|
84
|
+
managerRole: 'Creative Visual Director',
|
|
85
85
|
color: '#a855f7',
|
|
86
86
|
slotIds: ['slot-2', 'slot-3', 'slot-4', 'slot-5'],
|
|
87
87
|
iconName: 'palette',
|
|
88
88
|
},
|
|
89
89
|
{
|
|
90
90
|
id: 'dept-marketing',
|
|
91
|
-
name: '
|
|
91
|
+
name: 'Marketing & Growth',
|
|
92
92
|
slug: 'marketing',
|
|
93
|
-
description: 'Google & Meta
|
|
93
|
+
description: 'Google & Meta ads, organic SEO, email funnel automation and customer relationships (CRM).',
|
|
94
94
|
managerSlotId: 'slot-6',
|
|
95
|
-
managerRole: '
|
|
95
|
+
managerRole: 'Performance Marketing & Media Buying',
|
|
96
96
|
color: '#10b981',
|
|
97
97
|
slotIds: ['slot-6', 'slot-7', 'slot-8', 'slot-9', 'slot-14'],
|
|
98
98
|
iconName: 'megaphone',
|
|
99
99
|
},
|
|
100
100
|
{
|
|
101
101
|
id: 'dept-tech',
|
|
102
|
-
name: '
|
|
102
|
+
name: 'Technology, UI/UX & Data',
|
|
103
103
|
slug: 'tech',
|
|
104
|
-
description: '
|
|
104
|
+
description: 'Conversion-focused web interfaces, landing page wireframes and campaign growth analytics.',
|
|
105
105
|
managerSlotId: 'slot-11',
|
|
106
|
-
managerRole: 'UI/UX & Web
|
|
106
|
+
managerRole: 'UI/UX & Web Interface Designer',
|
|
107
107
|
color: '#06b6d4',
|
|
108
108
|
slotIds: ['slot-11', 'slot-12'],
|
|
109
109
|
iconName: 'globe',
|
|
110
110
|
},
|
|
111
111
|
{
|
|
112
112
|
id: 'dept-operations',
|
|
113
|
-
name: '
|
|
113
|
+
name: 'Operations, Quality & Finance',
|
|
114
114
|
slug: 'operations',
|
|
115
|
-
description: '
|
|
115
|
+
description: 'Revenue/expense balance, budget control, quality assurance and the corporate knowledge archive.',
|
|
116
116
|
managerSlotId: 'slot-10',
|
|
117
|
-
managerRole: '
|
|
117
|
+
managerRole: 'Agency Accountant & Finance Specialist',
|
|
118
118
|
color: '#f59e0b',
|
|
119
119
|
slotIds: ['slot-10', 'slot-15', 'slot-16', 'slot-17'],
|
|
120
120
|
iconName: 'shield',
|
|
@@ -123,13 +123,13 @@ export const DEFAULT_OFFICE_DEPARTMENTS: DepartmentInfo[] = [
|
|
|
123
123
|
|
|
124
124
|
// 17 standard desk positions matching the reference architectural layout
|
|
125
125
|
export const DEFAULT_OFFICE_ENTITIES: WorldEntity[] = [
|
|
126
|
-
// 1.
|
|
126
|
+
// 1. General Manager / Executive Suite
|
|
127
127
|
{
|
|
128
128
|
id: 'slot-1',
|
|
129
129
|
type: 'person',
|
|
130
|
-
name: '
|
|
131
|
-
role: '
|
|
132
|
-
department: '
|
|
130
|
+
name: 'General Manager (CEO)',
|
|
131
|
+
role: 'Company director & orchestrator',
|
|
132
|
+
department: 'Management',
|
|
133
133
|
zoneId: 'executive',
|
|
134
134
|
status: 'idle',
|
|
135
135
|
pinNumber: 1,
|
|
@@ -142,9 +142,9 @@ export const DEFAULT_OFFICE_ENTITIES: WorldEntity[] = [
|
|
|
142
142
|
{
|
|
143
143
|
id: 'slot-2',
|
|
144
144
|
type: 'person',
|
|
145
|
-
name: '
|
|
146
|
-
role: 'Ads &
|
|
147
|
-
department: '
|
|
145
|
+
name: 'Performance Marketing Specialist',
|
|
146
|
+
role: 'Ads & campaign optimization',
|
|
147
|
+
department: 'Marketing',
|
|
148
148
|
zoneId: 'growth',
|
|
149
149
|
status: 'idle',
|
|
150
150
|
pinNumber: 2,
|
|
@@ -155,9 +155,9 @@ export const DEFAULT_OFFICE_ENTITIES: WorldEntity[] = [
|
|
|
155
155
|
{
|
|
156
156
|
id: 'slot-3',
|
|
157
157
|
type: 'person',
|
|
158
|
-
name: '
|
|
159
|
-
role: '
|
|
160
|
-
department: '
|
|
158
|
+
name: 'Creative Director',
|
|
159
|
+
role: 'Visual identity & design',
|
|
160
|
+
department: 'Creative',
|
|
161
161
|
zoneId: 'creative',
|
|
162
162
|
status: 'idle',
|
|
163
163
|
pinNumber: 3,
|
|
@@ -168,9 +168,9 @@ export const DEFAULT_OFFICE_ENTITIES: WorldEntity[] = [
|
|
|
168
168
|
{
|
|
169
169
|
id: 'slot-4',
|
|
170
170
|
type: 'person',
|
|
171
|
-
name: '
|
|
172
|
-
role: '
|
|
173
|
-
department: '
|
|
171
|
+
name: 'Ads Manager',
|
|
172
|
+
role: 'Budget & conversion strategy',
|
|
173
|
+
department: 'Marketing',
|
|
174
174
|
zoneId: 'growth',
|
|
175
175
|
status: 'idle',
|
|
176
176
|
pinNumber: 4,
|
|
@@ -181,9 +181,9 @@ export const DEFAULT_OFFICE_ENTITIES: WorldEntity[] = [
|
|
|
181
181
|
{
|
|
182
182
|
id: 'slot-5',
|
|
183
183
|
type: 'person',
|
|
184
|
-
name: '
|
|
185
|
-
role: 'CRM &
|
|
186
|
-
department: '
|
|
184
|
+
name: 'Email Marketing Specialist',
|
|
185
|
+
role: 'CRM & newsletter flows',
|
|
186
|
+
department: 'Marketing',
|
|
187
187
|
zoneId: 'growth',
|
|
188
188
|
status: 'idle',
|
|
189
189
|
pinNumber: 5,
|
|
@@ -196,9 +196,9 @@ export const DEFAULT_OFFICE_ENTITIES: WorldEntity[] = [
|
|
|
196
196
|
{
|
|
197
197
|
id: 'slot-6',
|
|
198
198
|
type: 'person',
|
|
199
|
-
name: '
|
|
200
|
-
role: '
|
|
201
|
-
department: '
|
|
199
|
+
name: 'Social Media Manager',
|
|
200
|
+
role: 'Community & content calendar',
|
|
201
|
+
department: 'Creative',
|
|
202
202
|
zoneId: 'creative',
|
|
203
203
|
status: 'idle',
|
|
204
204
|
pinNumber: 6,
|
|
@@ -209,9 +209,9 @@ export const DEFAULT_OFFICE_ENTITIES: WorldEntity[] = [
|
|
|
209
209
|
{
|
|
210
210
|
id: 'slot-7',
|
|
211
211
|
type: 'person',
|
|
212
|
-
name: '
|
|
213
|
-
role: '
|
|
214
|
-
department: '
|
|
212
|
+
name: 'Agency Operations Lead',
|
|
213
|
+
role: 'Process & workflow tracking',
|
|
214
|
+
department: 'Operations',
|
|
215
215
|
zoneId: 'operations',
|
|
216
216
|
status: 'idle',
|
|
217
217
|
pinNumber: 7,
|
|
@@ -223,8 +223,8 @@ export const DEFAULT_OFFICE_ENTITIES: WorldEntity[] = [
|
|
|
223
223
|
id: 'slot-8',
|
|
224
224
|
type: 'person',
|
|
225
225
|
name: 'Video & Motion Producer',
|
|
226
|
-
role: 'Reels,
|
|
227
|
-
department: '
|
|
226
|
+
role: 'Reels, editing & animation',
|
|
227
|
+
department: 'Creative',
|
|
228
228
|
zoneId: 'creative',
|
|
229
229
|
status: 'idle',
|
|
230
230
|
pinNumber: 8,
|
|
@@ -235,9 +235,9 @@ export const DEFAULT_OFFICE_ENTITIES: WorldEntity[] = [
|
|
|
235
235
|
{
|
|
236
236
|
id: 'slot-9',
|
|
237
237
|
type: 'person',
|
|
238
|
-
name: '
|
|
239
|
-
role: '
|
|
240
|
-
department: '
|
|
238
|
+
name: 'Client Services Director',
|
|
239
|
+
role: 'Team & client coordination',
|
|
240
|
+
department: 'Management',
|
|
241
241
|
zoneId: 'executive',
|
|
242
242
|
status: 'idle',
|
|
243
243
|
pinNumber: 9,
|
|
@@ -250,9 +250,9 @@ export const DEFAULT_OFFICE_ENTITIES: WorldEntity[] = [
|
|
|
250
250
|
{
|
|
251
251
|
id: 'slot-10',
|
|
252
252
|
type: 'person',
|
|
253
|
-
name: '
|
|
254
|
-
role: 'Landing &
|
|
255
|
-
department: '
|
|
253
|
+
name: 'Copywriter',
|
|
254
|
+
role: 'Landing & ad copy',
|
|
255
|
+
department: 'Creative',
|
|
256
256
|
zoneId: 'creative',
|
|
257
257
|
status: 'idle',
|
|
258
258
|
pinNumber: 10,
|
|
@@ -263,9 +263,9 @@ export const DEFAULT_OFFICE_ENTITIES: WorldEntity[] = [
|
|
|
263
263
|
{
|
|
264
264
|
id: 'slot-11',
|
|
265
265
|
type: 'person',
|
|
266
|
-
name: '
|
|
267
|
-
role: '
|
|
268
|
-
department: '
|
|
266
|
+
name: 'Market Researcher',
|
|
267
|
+
role: 'Competitor & trend analysis',
|
|
268
|
+
department: 'Marketing',
|
|
269
269
|
zoneId: 'growth',
|
|
270
270
|
status: 'idle',
|
|
271
271
|
pinNumber: 11,
|
|
@@ -276,9 +276,9 @@ export const DEFAULT_OFFICE_ENTITIES: WorldEntity[] = [
|
|
|
276
276
|
{
|
|
277
277
|
id: 'slot-12',
|
|
278
278
|
type: 'person',
|
|
279
|
-
name: '
|
|
280
|
-
role: '
|
|
281
|
-
department: '
|
|
279
|
+
name: 'Brand Strategist',
|
|
280
|
+
role: 'Positioning & messaging',
|
|
281
|
+
department: 'Management',
|
|
282
282
|
zoneId: 'executive',
|
|
283
283
|
status: 'idle',
|
|
284
284
|
pinNumber: 12,
|
|
@@ -289,9 +289,9 @@ export const DEFAULT_OFFICE_ENTITIES: WorldEntity[] = [
|
|
|
289
289
|
{
|
|
290
290
|
id: 'slot-13',
|
|
291
291
|
type: 'person',
|
|
292
|
-
name: 'SEO &
|
|
293
|
-
role: '
|
|
294
|
-
department: '
|
|
292
|
+
name: 'SEO & Organic Growth',
|
|
293
|
+
role: 'Search engine & content distribution',
|
|
294
|
+
department: 'Marketing',
|
|
295
295
|
zoneId: 'growth',
|
|
296
296
|
status: 'idle',
|
|
297
297
|
pinNumber: 13,
|
|
@@ -304,9 +304,9 @@ export const DEFAULT_OFFICE_ENTITIES: WorldEntity[] = [
|
|
|
304
304
|
{
|
|
305
305
|
id: 'slot-14',
|
|
306
306
|
type: 'person',
|
|
307
|
-
name: '
|
|
308
|
-
role: '
|
|
309
|
-
department: '
|
|
307
|
+
name: 'Visual Designer (UI/UX)',
|
|
308
|
+
role: 'Interface & web design',
|
|
309
|
+
department: 'Technology',
|
|
310
310
|
zoneId: 'tech',
|
|
311
311
|
status: 'idle',
|
|
312
312
|
pinNumber: 14,
|
|
@@ -317,9 +317,9 @@ export const DEFAULT_OFFICE_ENTITIES: WorldEntity[] = [
|
|
|
317
317
|
{
|
|
318
318
|
id: 'slot-15',
|
|
319
319
|
type: 'person',
|
|
320
|
-
name: '
|
|
321
|
-
role: '
|
|
322
|
-
department: '
|
|
320
|
+
name: 'Art Director (AI imagery)',
|
|
321
|
+
role: 'AI visual artist',
|
|
322
|
+
department: 'Creative',
|
|
323
323
|
zoneId: 'creative',
|
|
324
324
|
status: 'idle',
|
|
325
325
|
pinNumber: 15,
|
|
@@ -332,9 +332,9 @@ export const DEFAULT_OFFICE_ENTITIES: WorldEntity[] = [
|
|
|
332
332
|
{
|
|
333
333
|
id: 'slot-16',
|
|
334
334
|
type: 'person',
|
|
335
|
-
name: '
|
|
336
|
-
role: '
|
|
337
|
-
department: '
|
|
335
|
+
name: 'Knowledge Librarian & QA',
|
|
336
|
+
role: 'Process validation & documentation',
|
|
337
|
+
department: 'Operations',
|
|
338
338
|
zoneId: 'operations',
|
|
339
339
|
status: 'idle',
|
|
340
340
|
pinNumber: 16,
|
|
@@ -345,9 +345,9 @@ export const DEFAULT_OFFICE_ENTITIES: WorldEntity[] = [
|
|
|
345
345
|
{
|
|
346
346
|
id: 'slot-17',
|
|
347
347
|
type: 'person',
|
|
348
|
-
name: '
|
|
349
|
-
role: 'Onboarding &
|
|
350
|
-
department: '
|
|
348
|
+
name: 'Client Relations Lead',
|
|
349
|
+
role: 'Onboarding & communication',
|
|
350
|
+
department: 'Operations',
|
|
351
351
|
zoneId: 'meeting',
|
|
352
352
|
status: 'idle',
|
|
353
353
|
pinNumber: 17,
|
|
@@ -381,10 +381,10 @@ export const officePreset: WorldPreset = {
|
|
|
381
381
|
},
|
|
382
382
|
lighting: {
|
|
383
383
|
ambientColor: '#ffffff',
|
|
384
|
-
ambientIntensity: 0.
|
|
385
|
-
sunColor: '#
|
|
386
|
-
sunIntensity: 1.
|
|
387
|
-
sunPosition: [
|
|
384
|
+
ambientIntensity: 0.95,
|
|
385
|
+
sunColor: '#fff8f0',
|
|
386
|
+
sunIntensity: 1.2,
|
|
387
|
+
sunPosition: [22, 32, 16],
|
|
388
388
|
nightAmbientColor: '#1e293b',
|
|
389
389
|
nightAmbientIntensity: 0.35,
|
|
390
390
|
nightSunColor: '#60a5fa',
|
|
@@ -400,8 +400,8 @@ export const officePreset: WorldPreset = {
|
|
|
400
400
|
glassColor: '#93c5fd',
|
|
401
401
|
glassOpacity: 0.28,
|
|
402
402
|
accentColor: '#3b82f6',
|
|
403
|
-
backgroundColor: '#
|
|
404
|
-
nightBackgroundColor: '#
|
|
403
|
+
backgroundColor: '#f8fafc',
|
|
404
|
+
nightBackgroundColor: '#0f172a',
|
|
405
405
|
},
|
|
406
406
|
zones: DEFAULT_OFFICE_ZONES,
|
|
407
407
|
defaultEntities: DEFAULT_OFFICE_ENTITIES,
|
|
@@ -5,23 +5,23 @@ import { MaterialPalette } from '../engine/materials'
|
|
|
5
5
|
export const DEFAULT_SCHOOL_ZONES: WorldZone[] = [
|
|
6
6
|
{
|
|
7
7
|
id: 'lecture_hall',
|
|
8
|
-
name: '
|
|
8
|
+
name: 'Main Lecture Hall & Classroom',
|
|
9
9
|
color: '#6366f1',
|
|
10
|
-
description: '
|
|
10
|
+
description: 'Interactive smartboard and student seating area.',
|
|
11
11
|
cameraFocus: [-6, 1.2, 0],
|
|
12
12
|
},
|
|
13
13
|
{
|
|
14
14
|
id: 'stem_lab',
|
|
15
|
-
name: 'STEM &
|
|
15
|
+
name: 'STEM & Robotics Lab',
|
|
16
16
|
color: '#06b6d4',
|
|
17
|
-
description: '
|
|
17
|
+
description: 'Experiment benches and prototyping stations.',
|
|
18
18
|
cameraFocus: [6, 1.0, -3],
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
21
|
id: 'library',
|
|
22
|
-
name: '
|
|
22
|
+
name: 'Library & Study Hall',
|
|
23
23
|
color: '#8b5cf6',
|
|
24
|
-
description: '
|
|
24
|
+
description: 'Quiet research and stacks section.',
|
|
25
25
|
cameraFocus: [6, 1.0, 4],
|
|
26
26
|
},
|
|
27
27
|
]
|
|
@@ -30,9 +30,9 @@ export const DEFAULT_SCHOOL_ENTITIES: WorldEntity[] = [
|
|
|
30
30
|
{
|
|
31
31
|
id: 'teacher-1',
|
|
32
32
|
type: 'person',
|
|
33
|
-
name: 'Prof. Deniz —
|
|
34
|
-
role: '
|
|
35
|
-
department: '
|
|
33
|
+
name: 'Prof. Deniz — Department Head',
|
|
34
|
+
role: 'Lecturing & mentoring',
|
|
35
|
+
department: 'Academic',
|
|
36
36
|
zoneId: 'lecture_hall',
|
|
37
37
|
status: 'working',
|
|
38
38
|
pinNumber: 1,
|
|
@@ -42,9 +42,9 @@ export const DEFAULT_SCHOOL_ENTITIES: WorldEntity[] = [
|
|
|
42
42
|
{
|
|
43
43
|
id: 'student-1',
|
|
44
44
|
type: 'person',
|
|
45
|
-
name: 'Zeynep —
|
|
46
|
-
role: 'STEM
|
|
47
|
-
department: '
|
|
45
|
+
name: 'Zeynep — Graduate Researcher',
|
|
46
|
+
role: 'STEM experiment practitioner',
|
|
47
|
+
department: 'Research',
|
|
48
48
|
zoneId: 'stem_lab',
|
|
49
49
|
status: 'idle',
|
|
50
50
|
pinNumber: 2,
|