@umituz/web-virtual 1.1.2 → 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.
@@ -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: 'Yönetim & Strateji Ofisi',
12
+ name: 'Executive & Strategy Office',
13
13
  color: '#8b5cf6',
14
- description: 'Şirket liderliği, genel müdür ve stratejik danışmanlık çalışma alanı.',
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: 'Konferans & Müşteri Salonu',
19
+ name: 'Conference & Client Room',
20
20
  color: '#06b6d4',
21
- description: 'Müşteri görüşmeleri, büyük strateji toplantıları ve lansman odası.',
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: 'Kreatif & İçerik Stüdyosu',
26
+ name: 'Creative & Content Studio',
27
27
  color: '#ec4899',
28
- description: 'Görsel tasarım, video prodüksiyon ve yaratıcı metin geliştirme alanı.',
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: 'Yazılım & Teknoloji Merkezi',
33
+ name: 'Software & Technology Center',
34
34
  color: '#3b82f6',
35
- description: 'Sistem geliştirme, veri analitiği ve platform mühendisliği istasyonu.',
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: 'Büyüme & Dijital Pazarlama',
40
+ name: 'Growth & Digital Marketing',
41
41
  color: '#10b981',
42
- description: 'Performans reklamları, SEO, e-posta otomasyonu ve büyüme operasyonları.',
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: 'Operasyon & Finans Masası',
47
+ name: 'Operations & Finance Desk',
48
48
  color: '#f59e0b',
49
- description: 'Bütçe, fatura, kurumsal arşiv ve operasyonel kalite kontrol merkezi.',
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: 'Genel Yönetim & Strateji',
69
+ name: 'General Management & Strategy',
70
70
  slug: 'management',
71
- description: 'Şirket vizyonu, departman koordinasyonu, stratejik iş planlaması ve onay denetimleri.',
71
+ description: 'Company vision, department coordination, strategic planning and approval audits.',
72
72
  managerSlotId: 'slot-1',
73
- managerRole: 'Dijital Ajans Yöneticisi (Genel Müdür)',
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: 'İçerik & Kreatif Tasarım',
80
+ name: 'Content & Creative Design',
81
81
  slug: 'creative',
82
- description: 'Sosyal medya içerikleri, görsel konseptler, reklam kancaları ve viral video prodüksiyonu.',
82
+ description: 'Social media content, visual concepts, ad hooks and viral video production.',
83
83
  managerSlotId: 'slot-3',
84
- managerRole: 'Kreatif Görsel Direktörü',
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: 'Pazarlama & Büyüme',
91
+ name: 'Marketing & Growth',
92
92
  slug: 'marketing',
93
- description: 'Google & Meta reklamları, organik SEO, e-posta funnel otomasyonu ve müşteri ilişkileri (CRM).',
93
+ description: 'Google & Meta ads, organic SEO, email funnel automation and customer relationships (CRM).',
94
94
  managerSlotId: 'slot-6',
95
- managerRole: 'Performans Pazarlama & Medya Satın Alma',
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: 'Teknoloji, UI/UX & Veri',
102
+ name: 'Technology, UI/UX & Data',
103
103
  slug: 'tech',
104
- description: 'Dönüşüm odaklı web arayüzleri, açılış sayfaları tel kafesleri ve kampanya büyüme analitiği.',
104
+ description: 'Conversion-focused web interfaces, landing page wireframes and campaign growth analytics.',
105
105
  managerSlotId: 'slot-11',
106
- managerRole: 'UI/UX & Web Arayüz Tasarımcısı',
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: 'Operasyon, Kalite & Finans',
113
+ name: 'Operations, Quality & Finance',
114
114
  slug: 'operations',
115
- description: 'Gelir/gider dengesi, bütçe denetimi, kalite güvence kontrolleri ve kurumsal bilgi arşivi.',
115
+ description: 'Revenue/expense balance, budget control, quality assurance and the corporate knowledge archive.',
116
116
  managerSlotId: 'slot-10',
117
- managerRole: 'Ajans Muhasebecisi & Finans Uzmanı',
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. Genel Müdür / Executive Suite
126
+ // 1. General Manager / Executive Suite
127
127
  {
128
128
  id: 'slot-1',
129
129
  type: 'person',
130
- name: 'Genel Müdür (CEO)',
131
- role: 'Şirket Direktörü & Orkestratör',
132
- department: 'Yönetim',
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: 'Performans Pazarlama Uzmanı',
146
- role: 'Ads & Kampanya Optimizasyonu',
147
- department: 'Pazarlama',
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: 'Kreatif Direktör',
159
- role: 'Görsel Kimlik & Tasarım',
160
- department: 'Kreatif',
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: 'Reklam Yöneticisi',
172
- role: 'Bütçe & Dönüşüm Stratejisi',
173
- department: 'Pazarlama',
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: 'E-Posta Pazarlama Uzmanı',
185
- role: 'CRM & Bülten Akışları',
186
- department: 'Pazarlama',
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: 'Sosyal Medya Yöneticisi',
200
- role: 'Topluluk & Gönderi Takvimi',
201
- department: 'Kreatif',
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: 'Ajans Operasyon Lideri',
213
- role: 'Süreç & İş Akışı Takibi',
214
- department: 'Operasyon',
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, Kurgu & Animasyon',
227
- department: 'Kreatif',
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: 'Dijital Ajans Yöneticisi',
239
- role: 'Ekip Koordinasyonu',
240
- department: 'Yönetim',
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: 'Metin Yazarı & Copywriter',
254
- role: 'Landing & Reklam Metinleri',
255
- department: 'Kreatif',
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: 'Pazar Araştırmacısı',
267
- role: 'Rakip & Trend Analizi',
268
- department: 'Pazarlama',
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: 'Marka Stratejisti',
280
- role: 'Konumlandırma & Mesajlaşma',
281
- department: 'Yönetim',
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 & Organik Büyüme',
293
- role: 'Arama Motoru & İçerik Dağıtımı',
294
- department: 'Pazarlama',
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: 'Görsel Tasarımcı (UI/UX)',
308
- role: 'Arayüz & Web Tasarımı',
309
- department: 'Teknoloji',
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: 'Görsel Yönetmen (Midjourney)',
321
- role: 'Yapay Zeka Sanatçısı',
322
- department: 'Kreatif',
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: 'Bilgi Kütüphanecisi & QA',
336
- role: 'Süreç Doğrulama & Dokümantasyon',
337
- department: 'Operasyon',
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: 'Müşteri İlişkileri Lideri',
349
- role: 'Onboarding & İletişim',
350
- department: 'Operasyon',
348
+ name: 'Client Relations Lead',
349
+ role: 'Onboarding & communication',
350
+ department: 'Operations',
351
351
  zoneId: 'meeting',
352
352
  status: 'idle',
353
353
  pinNumber: 17,
@@ -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: 'Ana Amfi & Derslik',
8
+ name: 'Main Lecture Hall & Classroom',
9
9
  color: '#6366f1',
10
- description: 'Etkileşimli akıllı tahta ve öğrenci sıraları alanı.',
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 & Robotik Laboratuvarı',
15
+ name: 'STEM & Robotics Lab',
16
16
  color: '#06b6d4',
17
- description: 'Deney masaları ve prototipleme istasyonu.',
17
+ description: 'Experiment benches and prototyping stations.',
18
18
  cameraFocus: [6, 1.0, -3],
19
19
  },
20
20
  {
21
21
  id: 'library',
22
- name: 'Kütüphane & Çalışma Salonu',
22
+ name: 'Library & Study Hall',
23
23
  color: '#8b5cf6',
24
- description: 'Sessiz araştırma ve kitaplık bölümü.',
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 — Bölüm Başkanı',
34
- role: 'Ders Anlatımı & Mentorluk',
35
- department: 'Akademik',
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 — Lisansüstü Araştırmacı',
46
- role: 'STEM Deney Uygulayıcısı',
47
- department: 'Araştırma',
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,
@@ -1853,3 +1853,132 @@
1853
1853
  .wv-hq-container.is-night .wv-task-prompt {
1854
1854
  color: #f8fafc;
1855
1855
  }
1856
+
1857
+ /* ============================================
1858
+ WebGL FALLBACK & CONTEXT-LOST RECOVERY
1859
+ ============================================ */
1860
+
1861
+ .wv-webgl-fallback {
1862
+ display: flex;
1863
+ align-items: center;
1864
+ justify-content: center;
1865
+ background: linear-gradient(160deg, #f8fafc 0%, #e2e8f0 100%);
1866
+ color: #334155;
1867
+ }
1868
+
1869
+ .wv-container.is-night.wv-webgl-fallback,
1870
+ .wv-hq-container.is-night .wv-webgl-fallback {
1871
+ background: linear-gradient(160deg, #0f172a 0%, #1e293b 100%);
1872
+ color: #e2e8f0;
1873
+ }
1874
+
1875
+ .wv-fallback-card {
1876
+ max-width: 420px;
1877
+ width: calc(100% - 48px);
1878
+ background: rgba(255, 255, 255, 0.86);
1879
+ border: 1px solid rgba(148, 163, 184, 0.35);
1880
+ border-radius: 14px;
1881
+ box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
1882
+ padding: 28px 24px;
1883
+ text-align: center;
1884
+ display: flex;
1885
+ flex-direction: column;
1886
+ align-items: center;
1887
+ gap: 10px;
1888
+ font-size: 13px;
1889
+ line-height: 1.5;
1890
+ }
1891
+
1892
+ .wv-fallback-card > svg {
1893
+ color: #3b82f6;
1894
+ opacity: 0.85;
1895
+ }
1896
+
1897
+ .wv-fallback-card h3 {
1898
+ margin: 0;
1899
+ font-size: 15px;
1900
+ font-weight: 700;
1901
+ color: #1e293b;
1902
+ }
1903
+
1904
+ .wv-fallback-card p {
1905
+ margin: 0;
1906
+ color: #64748b;
1907
+ }
1908
+
1909
+ .wv-container.is-night .wv-fallback-card,
1910
+ .wv-hq-container.is-night .wv-fallback-card {
1911
+ background: rgba(15, 23, 42, 0.86);
1912
+ border-color: rgba(255, 255, 255, 0.14);
1913
+ }
1914
+
1915
+ .wv-container.is-night .wv-fallback-card h3,
1916
+ .wv-hq-container.is-night .wv-fallback-card h3 {
1917
+ color: #f8fafc;
1918
+ }
1919
+
1920
+ .wv-container.is-night .wv-fallback-card p,
1921
+ .wv-hq-container.is-night .wv-fallback-card p {
1922
+ color: #94a3b8;
1923
+ }
1924
+
1925
+ .wv-fallback-entity-list {
1926
+ list-style: none;
1927
+ margin: 6px 0 0;
1928
+ padding: 0;
1929
+ display: flex;
1930
+ flex-direction: column;
1931
+ gap: 6px;
1932
+ width: 100%;
1933
+ max-height: 200px;
1934
+ overflow-y: auto;
1935
+ text-align: left;
1936
+ }
1937
+
1938
+ .wv-fallback-entity-list li {
1939
+ display: flex;
1940
+ align-items: center;
1941
+ gap: 8px;
1942
+ padding: 6px 10px;
1943
+ border-radius: 8px;
1944
+ background: rgba(148, 163, 184, 0.14);
1945
+ font-size: 12px;
1946
+ font-weight: 500;
1947
+ }
1948
+
1949
+ .wv-fallback-btn {
1950
+ margin-top: 4px;
1951
+ display: inline-flex;
1952
+ align-items: center;
1953
+ justify-content: center;
1954
+ gap: 6px;
1955
+ padding: 8px 18px;
1956
+ border-radius: 9px;
1957
+ border: 1px solid rgba(59, 130, 246, 0.4);
1958
+ background: linear-gradient(135deg, #3b82f6, #2563eb);
1959
+ color: #ffffff;
1960
+ font-size: 13px;
1961
+ font-weight: 600;
1962
+ cursor: pointer;
1963
+ transition: transform 0.15s ease, box-shadow 0.15s ease;
1964
+ }
1965
+
1966
+ .wv-fallback-btn:hover {
1967
+ transform: translateY(-1px);
1968
+ box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
1969
+ }
1970
+
1971
+ .wv-context-lost-overlay {
1972
+ position: absolute;
1973
+ inset: 0;
1974
+ z-index: 40;
1975
+ background: rgba(248, 250, 252, 0.82);
1976
+ backdrop-filter: blur(6px);
1977
+ display: flex;
1978
+ align-items: center;
1979
+ justify-content: center;
1980
+ }
1981
+
1982
+ .wv-container.is-night .wv-context-lost-overlay {
1983
+ background: rgba(15, 23, 42, 0.82);
1984
+ }