@adminide-stack/yantra-mobile 12.0.171 → 12.0.172-alpha.1
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/lib/components/GatewayConnector/GatewayConnector.js +10 -4
- package/lib/components/GatewayConnector/GatewayConnector.js.map +1 -1
- package/lib/components/GatewayConnector/GatewayStatusSheet.js +174 -0
- package/lib/components/GatewayConnector/GatewayStatusSheet.js.map +1 -0
- package/lib/components/GatewayToolbarButtonMobile.js +6 -2
- package/lib/components/GatewayToolbarButtonMobile.js.map +1 -1
- package/lib/compute.js +51 -1
- package/lib/compute.js.map +1 -1
- package/lib/config/env-config.js +12 -3
- package/lib/config/env-config.js.map +1 -1
- package/lib/features/apps/AppsCatalog.js +10 -0
- package/lib/features/apps/AppsCatalog.js.map +1 -1
- package/lib/features/apps/mobileAppCatalog.js +9 -0
- package/lib/features/apps/mobileAppCatalog.js.map +1 -1
- package/lib/features/apps/nativeAppHandoff.js +31 -13
- package/lib/features/apps/nativeAppHandoff.js.map +1 -1
- package/lib/features/apps/nativeSurfaceTwin.js +2 -1
- package/lib/features/apps/nativeSurfaceTwin.js.map +1 -1
- package/lib/features/canvas/set/agent/prompt.js +4 -5
- package/lib/features/canvas/set/agent/prompt.js.map +1 -1
- package/lib/features/canvas/set/supplyLibrary.js +1294 -2
- package/lib/features/canvas/set/supplyLibrary.js.map +1 -1
- package/lib/features/chat/PromptFillBar.js +153 -0
- package/lib/features/chat/PromptFillBar.js.map +1 -0
- package/lib/features/chat/promptBlanks.js +120 -0
- package/lib/features/chat/promptBlanks.js.map +1 -0
- package/lib/features/chat/savedReply.js +11 -0
- package/lib/features/chat/savedReply.js.map +1 -0
- package/lib/features/games/GameInviteCard.js +93 -0
- package/lib/features/games/GameInviteCard.js.map +1 -0
- package/lib/features/games/cubeforge3D.js +97 -0
- package/lib/features/games/cubeforge3D.js.map +1 -0
- package/lib/features/games/cubeforgeFriends.js +112 -0
- package/lib/features/games/cubeforgeFriends.js.map +1 -0
- package/lib/features/games/gameInvite.js +13 -0
- package/lib/features/games/gameInvite.js.map +1 -0
- package/lib/features/games/useCubeforgeFriends.js +63 -0
- package/lib/features/games/useCubeforgeFriends.js.map +1 -0
- package/lib/features/games/vendored/core/classroom/permissions.js +76 -0
- package/lib/features/games/vendored/core/classroom/permissions.js.map +1 -0
- package/lib/features/games/vendored/core/classroom/resourceLink.js +101 -0
- package/lib/features/games/vendored/core/classroom/resourceLink.js.map +1 -0
- package/lib/features/games/vendored/core/classroom/rules.js +83 -0
- package/lib/features/games/vendored/core/classroom/rules.js.map +1 -0
- package/lib/features/games/vendored/core/classroom/worldSettings.js +49 -0
- package/lib/features/games/vendored/core/classroom/worldSettings.js.map +1 -0
- package/lib/features/games/vendored/core/cubeforge/cycle.js +15 -0
- package/lib/features/games/vendored/core/cubeforge/cycle.js.map +1 -0
- package/lib/features/games/vendored/core/cubeforge/inventory.js +75 -0
- package/lib/features/games/vendored/core/cubeforge/inventory.js.map +1 -0
- package/lib/features/games/vendored/core/cubeforge/items.js +62 -0
- package/lib/features/games/vendored/core/cubeforge/items.js.map +1 -0
- package/lib/features/games/vendored/core/cubeforge/nativeWorld.js +4 -0
- package/lib/features/games/vendored/core/cubeforge/nativeWorld.js.map +1 -0
- package/lib/features/games/vendored/core/cubeforge/nativeWorlds.js +68 -0
- package/lib/features/games/vendored/core/cubeforge/nativeWorlds.js.map +1 -0
- package/lib/features/games/vendored/core/cubeforge/recipes.js +52 -0
- package/lib/features/games/vendored/core/cubeforge/recipes.js.map +1 -0
- package/lib/features/games/vendored/core/cubeforge/save.js +92 -0
- package/lib/features/games/vendored/core/cubeforge/save.js.map +1 -0
- package/lib/features/games/vendored/core/cubeforge/session.js +154 -0
- package/lib/features/games/vendored/core/cubeforge/session.js.map +1 -0
- package/lib/features/games/vendored/core/cubeforge/sharedWorlds.js +10 -0
- package/lib/features/games/vendored/core/cubeforge/sharedWorlds.js.map +1 -0
- package/lib/features/games/vendored/core/cubeforge/worldgen.js +44 -0
- package/lib/features/games/vendored/core/cubeforge/worldgen.js.map +1 -0
- package/lib/features/games/vendored/core/engine/iso.js +41 -0
- package/lib/features/games/vendored/core/engine/iso.js.map +1 -0
- package/lib/features/games/vendored/core/engine/palette.js +53 -0
- package/lib/features/games/vendored/core/engine/palette.js.map +1 -0
- package/lib/features/games/vendored/core/engine/world.js +148 -0
- package/lib/features/games/vendored/core/engine/world.js.map +1 -0
- package/lib/features/games/vendored/core/games/catalog.js +34 -0
- package/lib/features/games/vendored/core/games/catalog.js.map +1 -0
- package/lib/features/games/vendored/core/lessons/lessons.js +97 -0
- package/lib/features/games/vendored/core/lessons/lessons.js.map +1 -0
- package/lib/features/games/vendored/core/logging/events.js +24 -0
- package/lib/features/games/vendored/core/logging/events.js.map +1 -0
- package/lib/features/games/vendored/core/logging/logger.js +54 -0
- package/lib/features/games/vendored/core/logging/logger.js.map +1 -0
- package/lib/features/games/vendored/core/session/gameSession.js +317 -0
- package/lib/features/games/vendored/core/session/gameSession.js.map +1 -0
- package/lib/features/games/vendored/core/storage/worldRepository.js +192 -0
- package/lib/features/games/vendored/core/storage/worldRepository.js.map +1 -0
- package/lib/features/games/vendored/core/store/reactive.js +78 -0
- package/lib/features/games/vendored/core/store/reactive.js.map +1 -0
- package/lib/features/games/vendored/ui/GamesRoot.js +223 -0
- package/lib/features/games/vendored/ui/GamesRoot.js.map +1 -0
- package/lib/features/games/vendored/ui/components/BlockPalette.js +64 -0
- package/lib/features/games/vendored/ui/components/BlockPalette.js.map +1 -0
- package/lib/features/games/vendored/ui/components/IsoCanvas.js +124 -0
- package/lib/features/games/vendored/ui/components/IsoCanvas.js.map +1 -0
- package/lib/features/games/vendored/ui/components/primitives.js +257 -0
- package/lib/features/games/vendored/ui/components/primitives.js.map +1 -0
- package/lib/features/games/vendored/ui/hooks/useReactiveQuery.js +3 -0
- package/lib/features/games/vendored/ui/hooks/useReactiveQuery.js.map +1 -0
- package/lib/features/games/vendored/ui/screens/ActivityScreen.js +68 -0
- package/lib/features/games/vendored/ui/screens/ActivityScreen.js.map +1 -0
- package/lib/features/games/vendored/ui/screens/BuilderScreen.js +227 -0
- package/lib/features/games/vendored/ui/screens/BuilderScreen.js.map +1 -0
- package/lib/features/games/vendored/ui/screens/ClassroomScreen.js +95 -0
- package/lib/features/games/vendored/ui/screens/ClassroomScreen.js.map +1 -0
- package/lib/features/games/vendored/ui/screens/Cubeforge3DHomeScreen.js +296 -0
- package/lib/features/games/vendored/ui/screens/Cubeforge3DHomeScreen.js.map +1 -0
- package/lib/features/games/vendored/ui/screens/CubeforgeScreen.js +342 -0
- package/lib/features/games/vendored/ui/screens/CubeforgeScreen.js.map +1 -0
- package/lib/features/games/vendored/ui/screens/HubScreen.js +131 -0
- package/lib/features/games/vendored/ui/screens/HubScreen.js.map +1 -0
- package/lib/features/games/vendored/ui/screens/ScreenHeader.js +51 -0
- package/lib/features/games/vendored/ui/screens/ScreenHeader.js.map +1 -0
- package/lib/features/games/vendored/ui/screens/WorldListScreen.js +134 -0
- package/lib/features/games/vendored/ui/screens/WorldListScreen.js.map +1 -0
- package/lib/features/games/vendored/ui/storage/asyncStorageAdapter.js +23 -0
- package/lib/features/games/vendored/ui/storage/asyncStorageAdapter.js.map +1 -0
- package/lib/features/games/vendored/ui/theme.js +53 -0
- package/lib/features/games/vendored/ui/theme.js.map +1 -0
- package/lib/features/messaging/ChatComponents.js +12 -4
- package/lib/features/messaging/ChatComponents.js.map +1 -1
- package/lib/features/messaging/messageCards.js +22 -0
- package/lib/features/messaging/messageCards.js.map +1 -0
- package/lib/features/travel/TravelAgentChatPane.js +9 -1
- package/lib/features/travel/TravelAgentChatPane.js.map +1 -1
- package/lib/hooks/useCdecliAutoConnect.js +8 -1
- package/lib/hooks/useCdecliAutoConnect.js.map +1 -1
- package/lib/hooks/useCdecliChannel.js +142 -49
- package/lib/hooks/useCdecliChannel.js.map +1 -1
- package/lib/hooks/useChatApi.js +21 -10
- package/lib/hooks/useChatApi.js.map +1 -1
- package/lib/hooks/useChatStream.js +18 -5
- package/lib/hooks/useChatStream.js.map +1 -1
- package/lib/module.js +2 -1
- package/lib/module.js.map +1 -1
- package/lib/routes.json +50 -0
- package/lib/screens/Chat/index.js +23 -15
- package/lib/screens/Chat/index.js.map +1 -1
- package/lib/screens/GamesNative/index.js +75 -0
- package/lib/screens/GamesNative/index.js.map +1 -0
- package/lib/screens/Home/HomeScreen.js +147 -33
- package/lib/screens/Home/HomeScreen.js.map +1 -1
- package/lib/screens/Home/components/HomeSuggestions.js +1 -1
- package/lib/screens/Home/components/HomeSuggestions.js.map +1 -1
- package/lib/screens/Home/components/homeCatalog.js +68 -16
- package/lib/screens/Home/components/homeCatalog.js.map +1 -1
- package/package.json +4 -4
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
const GREY = "#9aa0aa";
|
|
2
2
|
const WARM = "#c9b79c";
|
|
3
3
|
const DARK = "#5c6069";
|
|
4
|
+
const legs = (w, d, h, t = 0.05) => [[-w / 2, -d / 2], [w / 2, -d / 2], [-w / 2, d / 2], [w / 2, d / 2]].map(([x, z]) => ({
|
|
5
|
+
shape: "box",
|
|
6
|
+
a: t,
|
|
7
|
+
b: h,
|
|
8
|
+
c: t,
|
|
9
|
+
offset: [x, h / 2, z]
|
|
10
|
+
}));
|
|
4
11
|
const KIT_ENTRIES = [
|
|
5
12
|
// ── Blocks: the vocabulary of a rough layout ──────────────────────────────
|
|
6
13
|
{
|
|
@@ -387,11 +394,1296 @@ const KIT_ENTRIES = [
|
|
|
387
394
|
}],
|
|
388
395
|
color: "#41454d",
|
|
389
396
|
heightM: 2.35
|
|
397
|
+
},
|
|
398
|
+
// ── More people: the poses a shot usually needs ───────────────────────────
|
|
399
|
+
{
|
|
400
|
+
id: "figure-seated",
|
|
401
|
+
label: "Seated figure",
|
|
402
|
+
category: "standins",
|
|
403
|
+
hint: "Sitting, hands forward at desk height. Same x/z as its chair, y 0 - the feet stay on the floor",
|
|
404
|
+
parts: [{
|
|
405
|
+
shape: "sphere",
|
|
406
|
+
a: 0.115,
|
|
407
|
+
offset: [0, 1.24, 0]
|
|
408
|
+
}, {
|
|
409
|
+
shape: "capsule",
|
|
410
|
+
a: 0.055,
|
|
411
|
+
b: 0.08,
|
|
412
|
+
offset: [0, 1.08, 0]
|
|
413
|
+
}, {
|
|
414
|
+
shape: "capsule",
|
|
415
|
+
a: 0.17,
|
|
416
|
+
b: 0.36,
|
|
417
|
+
offset: [0, 0.76, 0]
|
|
418
|
+
}, {
|
|
419
|
+
shape: "capsule",
|
|
420
|
+
a: 0.08,
|
|
421
|
+
b: 0.36,
|
|
422
|
+
offset: [-0.1, 0.5, 0.2],
|
|
423
|
+
rotate: [90, 0, 0]
|
|
424
|
+
}, {
|
|
425
|
+
shape: "capsule",
|
|
426
|
+
a: 0.08,
|
|
427
|
+
b: 0.36,
|
|
428
|
+
offset: [0.1, 0.5, 0.2],
|
|
429
|
+
rotate: [90, 0, 0]
|
|
430
|
+
}, {
|
|
431
|
+
shape: "capsule",
|
|
432
|
+
a: 0.07,
|
|
433
|
+
b: 0.36,
|
|
434
|
+
offset: [-0.1, 0.27, 0.42]
|
|
435
|
+
}, {
|
|
436
|
+
shape: "capsule",
|
|
437
|
+
a: 0.07,
|
|
438
|
+
b: 0.36,
|
|
439
|
+
offset: [0.1, 0.27, 0.42]
|
|
440
|
+
}, {
|
|
441
|
+
shape: "capsule",
|
|
442
|
+
a: 0.055,
|
|
443
|
+
b: 0.24,
|
|
444
|
+
offset: [-0.24, 0.9, 0.02],
|
|
445
|
+
rotate: [12, 0, 0]
|
|
446
|
+
}, {
|
|
447
|
+
shape: "capsule",
|
|
448
|
+
a: 0.055,
|
|
449
|
+
b: 0.24,
|
|
450
|
+
offset: [0.24, 0.9, 0.02],
|
|
451
|
+
rotate: [12, 0, 0]
|
|
452
|
+
}, {
|
|
453
|
+
shape: "capsule",
|
|
454
|
+
a: 0.05,
|
|
455
|
+
b: 0.24,
|
|
456
|
+
offset: [-0.22, 0.75, 0.24],
|
|
457
|
+
rotate: [90, 0, 0]
|
|
458
|
+
}, {
|
|
459
|
+
shape: "capsule",
|
|
460
|
+
a: 0.05,
|
|
461
|
+
b: 0.24,
|
|
462
|
+
offset: [0.22, 0.75, 0.24],
|
|
463
|
+
rotate: [90, 0, 0]
|
|
464
|
+
}],
|
|
465
|
+
color: "#c8ccd4",
|
|
466
|
+
heightM: 1.36
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
id: "figure-walking",
|
|
470
|
+
label: "Walking figure",
|
|
471
|
+
category: "standins",
|
|
472
|
+
hint: "Mid-stride, heading +Z - for anyone crossing the frame",
|
|
473
|
+
parts: [{
|
|
474
|
+
shape: "sphere",
|
|
475
|
+
a: 0.115,
|
|
476
|
+
offset: [0, 1.63, 0]
|
|
477
|
+
}, {
|
|
478
|
+
shape: "capsule",
|
|
479
|
+
a: 0.055,
|
|
480
|
+
b: 0.1,
|
|
481
|
+
offset: [0, 1.47, 0]
|
|
482
|
+
}, {
|
|
483
|
+
shape: "capsule",
|
|
484
|
+
a: 0.17,
|
|
485
|
+
b: 0.42,
|
|
486
|
+
offset: [0, 1.15, 0]
|
|
487
|
+
}, {
|
|
488
|
+
shape: "capsule",
|
|
489
|
+
a: 0.055,
|
|
490
|
+
b: 0.5,
|
|
491
|
+
offset: [-0.25, 1.15, -0.08],
|
|
492
|
+
rotate: [14, 0, 8]
|
|
493
|
+
}, {
|
|
494
|
+
shape: "capsule",
|
|
495
|
+
a: 0.055,
|
|
496
|
+
b: 0.5,
|
|
497
|
+
offset: [0.25, 1.15, 0.08],
|
|
498
|
+
rotate: [-14, 0, -8]
|
|
499
|
+
}, {
|
|
500
|
+
shape: "capsule",
|
|
501
|
+
a: 0.08,
|
|
502
|
+
b: 0.78,
|
|
503
|
+
offset: [-0.1, 0.44, 0.12],
|
|
504
|
+
rotate: [-16, 0, 0]
|
|
505
|
+
}, {
|
|
506
|
+
shape: "capsule",
|
|
507
|
+
a: 0.08,
|
|
508
|
+
b: 0.78,
|
|
509
|
+
offset: [0.1, 0.44, -0.12],
|
|
510
|
+
rotate: [16, 0, 0]
|
|
511
|
+
}],
|
|
512
|
+
color: "#c8ccd4",
|
|
513
|
+
heightM: 1.75
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
id: "figure-child",
|
|
517
|
+
label: "Child",
|
|
518
|
+
category: "standins",
|
|
519
|
+
hint: "1.2m - a child, or anyone who has to read as small against the set",
|
|
520
|
+
parts: [{
|
|
521
|
+
shape: "sphere",
|
|
522
|
+
a: 0.1,
|
|
523
|
+
offset: [0, 1.1, 0]
|
|
524
|
+
}, {
|
|
525
|
+
shape: "capsule",
|
|
526
|
+
a: 0.12,
|
|
527
|
+
b: 0.26,
|
|
528
|
+
offset: [0, 0.74, 0]
|
|
529
|
+
}, {
|
|
530
|
+
shape: "capsule",
|
|
531
|
+
a: 0.04,
|
|
532
|
+
b: 0.34,
|
|
533
|
+
offset: [-0.18, 0.74, 0],
|
|
534
|
+
rotate: [0, 0, 8]
|
|
535
|
+
}, {
|
|
536
|
+
shape: "capsule",
|
|
537
|
+
a: 0.04,
|
|
538
|
+
b: 0.34,
|
|
539
|
+
offset: [0.18, 0.74, 0],
|
|
540
|
+
rotate: [0, 0, -8]
|
|
541
|
+
}, {
|
|
542
|
+
shape: "capsule",
|
|
543
|
+
a: 0.06,
|
|
544
|
+
b: 0.42,
|
|
545
|
+
offset: [-0.08, 0.27, 0]
|
|
546
|
+
}, {
|
|
547
|
+
shape: "capsule",
|
|
548
|
+
a: 0.06,
|
|
549
|
+
b: 0.42,
|
|
550
|
+
offset: [0.08, 0.27, 0]
|
|
551
|
+
}],
|
|
552
|
+
color: "#c8ccd4",
|
|
553
|
+
heightM: 1.2
|
|
554
|
+
},
|
|
555
|
+
// ── Furniture: what a room is furnished with ──────────────────────────────
|
|
556
|
+
{
|
|
557
|
+
id: "chair",
|
|
558
|
+
label: "Chair",
|
|
559
|
+
category: "furniture",
|
|
560
|
+
hint: "A plain dining chair, seat 0.48m. Faces +Z",
|
|
561
|
+
parts: [{
|
|
562
|
+
shape: "box",
|
|
563
|
+
a: 0.45,
|
|
564
|
+
b: 0.05,
|
|
565
|
+
c: 0.45,
|
|
566
|
+
offset: [0, 0.46, 0]
|
|
567
|
+
}, ...legs(0.38, 0.38, 0.44, 0.04), {
|
|
568
|
+
shape: "box",
|
|
569
|
+
a: 0.45,
|
|
570
|
+
b: 0.4,
|
|
571
|
+
c: 0.04,
|
|
572
|
+
offset: [0, 0.69, -0.205]
|
|
573
|
+
}],
|
|
574
|
+
color: WARM,
|
|
575
|
+
heightM: 0.89
|
|
576
|
+
},
|
|
577
|
+
{
|
|
578
|
+
id: "stool",
|
|
579
|
+
label: "Stool",
|
|
580
|
+
category: "furniture",
|
|
581
|
+
hint: "Bar or counter height, seat 0.65m",
|
|
582
|
+
parts: [{
|
|
583
|
+
shape: "cylinder",
|
|
584
|
+
a: 0.18,
|
|
585
|
+
b: 0.05,
|
|
586
|
+
offset: [0, 0.625, 0]
|
|
587
|
+
}, {
|
|
588
|
+
shape: "cylinder",
|
|
589
|
+
a: 0.03,
|
|
590
|
+
b: 0.6,
|
|
591
|
+
offset: [0, 0.3, 0]
|
|
592
|
+
}, {
|
|
593
|
+
shape: "cylinder",
|
|
594
|
+
a: 0.17,
|
|
595
|
+
b: 0.03,
|
|
596
|
+
offset: [0, 0.015, 0]
|
|
597
|
+
}],
|
|
598
|
+
color: DARK,
|
|
599
|
+
heightM: 0.65
|
|
600
|
+
},
|
|
601
|
+
{
|
|
602
|
+
id: "office-chair",
|
|
603
|
+
label: "Office chair",
|
|
604
|
+
category: "furniture",
|
|
605
|
+
hint: "Task chair on a swivel base, seat 0.54m. Faces +Z",
|
|
606
|
+
parts: [{
|
|
607
|
+
shape: "box",
|
|
608
|
+
a: 0.5,
|
|
609
|
+
b: 0.08,
|
|
610
|
+
c: 0.5,
|
|
611
|
+
offset: [0, 0.5, 0]
|
|
612
|
+
}, {
|
|
613
|
+
shape: "box",
|
|
614
|
+
a: 0.46,
|
|
615
|
+
b: 0.55,
|
|
616
|
+
c: 0.06,
|
|
617
|
+
offset: [0, 0.86, -0.24]
|
|
618
|
+
}, {
|
|
619
|
+
shape: "cylinder",
|
|
620
|
+
a: 0.03,
|
|
621
|
+
b: 0.44,
|
|
622
|
+
offset: [0, 0.26, 0]
|
|
623
|
+
}, {
|
|
624
|
+
shape: "cylinder",
|
|
625
|
+
a: 0.3,
|
|
626
|
+
b: 0.05,
|
|
627
|
+
offset: [0, 0.04, 0]
|
|
628
|
+
}, {
|
|
629
|
+
shape: "box",
|
|
630
|
+
a: 0.05,
|
|
631
|
+
b: 0.2,
|
|
632
|
+
c: 0.04,
|
|
633
|
+
offset: [-0.27, 0.62, -0.02]
|
|
634
|
+
}, {
|
|
635
|
+
shape: "box",
|
|
636
|
+
a: 0.05,
|
|
637
|
+
b: 0.2,
|
|
638
|
+
c: 0.04,
|
|
639
|
+
offset: [0.27, 0.62, -0.02]
|
|
640
|
+
}, {
|
|
641
|
+
shape: "box",
|
|
642
|
+
a: 0.06,
|
|
643
|
+
b: 0.04,
|
|
644
|
+
c: 0.3,
|
|
645
|
+
offset: [-0.27, 0.73, -0.02]
|
|
646
|
+
}, {
|
|
647
|
+
shape: "box",
|
|
648
|
+
a: 0.06,
|
|
649
|
+
b: 0.04,
|
|
650
|
+
c: 0.3,
|
|
651
|
+
offset: [0.27, 0.73, -0.02]
|
|
652
|
+
}],
|
|
653
|
+
color: "#3f434b",
|
|
654
|
+
heightM: 1.14
|
|
655
|
+
},
|
|
656
|
+
{
|
|
657
|
+
id: "desk",
|
|
658
|
+
label: "Desk",
|
|
659
|
+
category: "furniture",
|
|
660
|
+
hint: "Work desk with a drawer pedestal, top 0.75m. The worker sits on the +Z side",
|
|
661
|
+
parts: [{
|
|
662
|
+
shape: "box",
|
|
663
|
+
a: 1.5,
|
|
664
|
+
b: 0.04,
|
|
665
|
+
c: 0.75,
|
|
666
|
+
offset: [0, 0.73, 0]
|
|
667
|
+
}, ...legs(1.4, 0.65, 0.71), {
|
|
668
|
+
shape: "box",
|
|
669
|
+
a: 0.42,
|
|
670
|
+
b: 0.6,
|
|
671
|
+
c: 0.62,
|
|
672
|
+
offset: [0.48, 0.41, 0],
|
|
673
|
+
color: "#8f8676"
|
|
674
|
+
}],
|
|
675
|
+
color: WARM,
|
|
676
|
+
heightM: 0.75
|
|
677
|
+
},
|
|
678
|
+
{
|
|
679
|
+
id: "coffee-table",
|
|
680
|
+
label: "Coffee table",
|
|
681
|
+
category: "furniture",
|
|
682
|
+
hint: "Low table in front of a sofa, top 0.45m",
|
|
683
|
+
parts: [{
|
|
684
|
+
shape: "box",
|
|
685
|
+
a: 1.1,
|
|
686
|
+
b: 0.05,
|
|
687
|
+
c: 0.6,
|
|
688
|
+
offset: [0, 0.425, 0]
|
|
689
|
+
}, ...legs(1, 0.5, 0.4)],
|
|
690
|
+
color: WARM,
|
|
691
|
+
heightM: 0.45
|
|
692
|
+
},
|
|
693
|
+
{
|
|
694
|
+
id: "side-table",
|
|
695
|
+
label: "Side table",
|
|
696
|
+
category: "furniture",
|
|
697
|
+
hint: "Round table for a lamp or a drink, top 0.55m",
|
|
698
|
+
parts: [{
|
|
699
|
+
shape: "cylinder",
|
|
700
|
+
a: 0.25,
|
|
701
|
+
b: 0.03,
|
|
702
|
+
offset: [0, 0.535, 0]
|
|
703
|
+
}, {
|
|
704
|
+
shape: "cylinder",
|
|
705
|
+
a: 0.03,
|
|
706
|
+
b: 0.5,
|
|
707
|
+
offset: [0, 0.27, 0]
|
|
708
|
+
}, {
|
|
709
|
+
shape: "cylinder",
|
|
710
|
+
a: 0.2,
|
|
711
|
+
b: 0.03,
|
|
712
|
+
offset: [0, 0.015, 0]
|
|
713
|
+
}],
|
|
714
|
+
color: WARM,
|
|
715
|
+
heightM: 0.55
|
|
716
|
+
},
|
|
717
|
+
{
|
|
718
|
+
id: "sofa",
|
|
719
|
+
label: "Sofa",
|
|
720
|
+
category: "furniture",
|
|
721
|
+
hint: "Three-seater, seat 0.6m, 2.2m wide. Faces +Z",
|
|
722
|
+
parts: [{
|
|
723
|
+
shape: "box",
|
|
724
|
+
a: 1.8,
|
|
725
|
+
b: 0.4,
|
|
726
|
+
c: 0.9,
|
|
727
|
+
offset: [0, 0.24, 0]
|
|
728
|
+
}, {
|
|
729
|
+
shape: "box",
|
|
730
|
+
a: 1.76,
|
|
731
|
+
b: 0.16,
|
|
732
|
+
c: 0.72,
|
|
733
|
+
offset: [0, 0.52, 0.06]
|
|
734
|
+
}, {
|
|
735
|
+
shape: "box",
|
|
736
|
+
a: 2.2,
|
|
737
|
+
b: 0.5,
|
|
738
|
+
c: 0.22,
|
|
739
|
+
offset: [0, 0.6, -0.34]
|
|
740
|
+
}, {
|
|
741
|
+
shape: "box",
|
|
742
|
+
a: 0.2,
|
|
743
|
+
b: 0.6,
|
|
744
|
+
c: 0.9,
|
|
745
|
+
offset: [-1, 0.3, 0]
|
|
746
|
+
}, {
|
|
747
|
+
shape: "box",
|
|
748
|
+
a: 0.2,
|
|
749
|
+
b: 0.6,
|
|
750
|
+
c: 0.9,
|
|
751
|
+
offset: [1, 0.3, 0]
|
|
752
|
+
}],
|
|
753
|
+
color: "#6f7a86",
|
|
754
|
+
heightM: 0.85
|
|
755
|
+
},
|
|
756
|
+
{
|
|
757
|
+
id: "armchair",
|
|
758
|
+
label: "Armchair",
|
|
759
|
+
category: "furniture",
|
|
760
|
+
hint: "Upholstered single seat, seat 0.55m. Faces +Z",
|
|
761
|
+
parts: [{
|
|
762
|
+
shape: "box",
|
|
763
|
+
a: 0.62,
|
|
764
|
+
b: 0.38,
|
|
765
|
+
c: 0.76,
|
|
766
|
+
offset: [0, 0.23, 0]
|
|
767
|
+
}, {
|
|
768
|
+
shape: "box",
|
|
769
|
+
a: 0.6,
|
|
770
|
+
b: 0.14,
|
|
771
|
+
c: 0.62,
|
|
772
|
+
offset: [0, 0.48, 0.05]
|
|
773
|
+
}, {
|
|
774
|
+
shape: "box",
|
|
775
|
+
a: 0.86,
|
|
776
|
+
b: 0.56,
|
|
777
|
+
c: 0.18,
|
|
778
|
+
offset: [0, 0.62, -0.3]
|
|
779
|
+
}, {
|
|
780
|
+
shape: "box",
|
|
781
|
+
a: 0.14,
|
|
782
|
+
b: 0.56,
|
|
783
|
+
c: 0.76,
|
|
784
|
+
offset: [-0.38, 0.28, 0]
|
|
785
|
+
}, {
|
|
786
|
+
shape: "box",
|
|
787
|
+
a: 0.14,
|
|
788
|
+
b: 0.56,
|
|
789
|
+
c: 0.76,
|
|
790
|
+
offset: [0.38, 0.28, 0]
|
|
791
|
+
}],
|
|
792
|
+
color: "#6f7a86",
|
|
793
|
+
heightM: 0.9
|
|
794
|
+
},
|
|
795
|
+
{
|
|
796
|
+
id: "bed",
|
|
797
|
+
label: "Bed",
|
|
798
|
+
category: "furniture",
|
|
799
|
+
hint: "Double bed, mattress top 0.58m. The headboard is on the -Z side",
|
|
800
|
+
parts: [{
|
|
801
|
+
shape: "box",
|
|
802
|
+
a: 1.66,
|
|
803
|
+
b: 0.28,
|
|
804
|
+
c: 2.06,
|
|
805
|
+
offset: [0, 0.16, 0]
|
|
806
|
+
}, {
|
|
807
|
+
shape: "box",
|
|
808
|
+
a: 1.6,
|
|
809
|
+
b: 0.28,
|
|
810
|
+
c: 2,
|
|
811
|
+
offset: [0, 0.44, 0],
|
|
812
|
+
color: "#e6e3dc"
|
|
813
|
+
}, {
|
|
814
|
+
shape: "box",
|
|
815
|
+
a: 1.66,
|
|
816
|
+
b: 1.05,
|
|
817
|
+
c: 0.08,
|
|
818
|
+
offset: [0, 0.525, -1.04]
|
|
819
|
+
}, {
|
|
820
|
+
shape: "box",
|
|
821
|
+
a: 0.66,
|
|
822
|
+
b: 0.12,
|
|
823
|
+
c: 0.42,
|
|
824
|
+
offset: [-0.4, 0.64, -0.72],
|
|
825
|
+
color: "#f4f1e8"
|
|
826
|
+
}, {
|
|
827
|
+
shape: "box",
|
|
828
|
+
a: 0.66,
|
|
829
|
+
b: 0.12,
|
|
830
|
+
c: 0.42,
|
|
831
|
+
offset: [0.4, 0.64, -0.72],
|
|
832
|
+
color: "#f4f1e8"
|
|
833
|
+
}],
|
|
834
|
+
color: "#7a6a58",
|
|
835
|
+
heightM: 1.05
|
|
836
|
+
},
|
|
837
|
+
{
|
|
838
|
+
id: "bookshelf",
|
|
839
|
+
label: "Bookshelf",
|
|
840
|
+
category: "furniture",
|
|
841
|
+
hint: "Tall shelves with books, 1m wide. Stands against a wall",
|
|
842
|
+
parts: [{
|
|
843
|
+
shape: "box",
|
|
844
|
+
a: 0.04,
|
|
845
|
+
b: 1.9,
|
|
846
|
+
c: 0.3,
|
|
847
|
+
offset: [-0.48, 0.95, 0]
|
|
848
|
+
}, {
|
|
849
|
+
shape: "box",
|
|
850
|
+
a: 0.04,
|
|
851
|
+
b: 1.9,
|
|
852
|
+
c: 0.3,
|
|
853
|
+
offset: [0.48, 0.95, 0]
|
|
854
|
+
}, {
|
|
855
|
+
shape: "box",
|
|
856
|
+
a: 1,
|
|
857
|
+
b: 1.9,
|
|
858
|
+
c: 0.02,
|
|
859
|
+
offset: [0, 0.95, -0.14]
|
|
860
|
+
}, {
|
|
861
|
+
shape: "box",
|
|
862
|
+
a: 0.96,
|
|
863
|
+
b: 0.03,
|
|
864
|
+
c: 0.3,
|
|
865
|
+
offset: [0, 0.02, 0]
|
|
866
|
+
}, {
|
|
867
|
+
shape: "box",
|
|
868
|
+
a: 0.96,
|
|
869
|
+
b: 0.03,
|
|
870
|
+
c: 0.3,
|
|
871
|
+
offset: [0, 0.48, 0]
|
|
872
|
+
}, {
|
|
873
|
+
shape: "box",
|
|
874
|
+
a: 0.96,
|
|
875
|
+
b: 0.03,
|
|
876
|
+
c: 0.3,
|
|
877
|
+
offset: [0, 0.94, 0]
|
|
878
|
+
}, {
|
|
879
|
+
shape: "box",
|
|
880
|
+
a: 0.96,
|
|
881
|
+
b: 0.03,
|
|
882
|
+
c: 0.3,
|
|
883
|
+
offset: [0, 1.4, 0]
|
|
884
|
+
}, {
|
|
885
|
+
shape: "box",
|
|
886
|
+
a: 0.96,
|
|
887
|
+
b: 0.03,
|
|
888
|
+
c: 0.3,
|
|
889
|
+
offset: [0, 1.88, 0]
|
|
890
|
+
}, {
|
|
891
|
+
shape: "box",
|
|
892
|
+
a: 0.62,
|
|
893
|
+
b: 0.3,
|
|
894
|
+
c: 0.2,
|
|
895
|
+
offset: [-0.14, 0.18, 0.01],
|
|
896
|
+
color: "#8a4f3d"
|
|
897
|
+
}, {
|
|
898
|
+
shape: "box",
|
|
899
|
+
a: 0.5,
|
|
900
|
+
b: 0.28,
|
|
901
|
+
c: 0.2,
|
|
902
|
+
offset: [0.18, 0.64, 0.01],
|
|
903
|
+
color: "#3f6b73"
|
|
904
|
+
}, {
|
|
905
|
+
shape: "box",
|
|
906
|
+
a: 0.7,
|
|
907
|
+
b: 0.3,
|
|
908
|
+
c: 0.2,
|
|
909
|
+
offset: [-0.08, 1.1, 0.01],
|
|
910
|
+
color: "#b08a4e"
|
|
911
|
+
}, {
|
|
912
|
+
shape: "box",
|
|
913
|
+
a: 0.42,
|
|
914
|
+
b: 0.26,
|
|
915
|
+
c: 0.2,
|
|
916
|
+
offset: [0.2, 1.55, 0.01],
|
|
917
|
+
color: "#5c6069"
|
|
918
|
+
}],
|
|
919
|
+
color: WARM,
|
|
920
|
+
heightM: 1.9
|
|
921
|
+
},
|
|
922
|
+
{
|
|
923
|
+
id: "filing-cabinet",
|
|
924
|
+
label: "Filing cabinet",
|
|
925
|
+
category: "furniture",
|
|
926
|
+
hint: "Four metal drawers. Faces +Z",
|
|
927
|
+
parts: [{
|
|
928
|
+
shape: "box",
|
|
929
|
+
a: 0.47,
|
|
930
|
+
b: 1.3,
|
|
931
|
+
c: 0.62,
|
|
932
|
+
offset: [0, 0.65, 0]
|
|
933
|
+
}, {
|
|
934
|
+
shape: "box",
|
|
935
|
+
a: 0.16,
|
|
936
|
+
b: 0.02,
|
|
937
|
+
c: 0.02,
|
|
938
|
+
offset: [0, 0.2, 0.32],
|
|
939
|
+
color: DARK
|
|
940
|
+
}, {
|
|
941
|
+
shape: "box",
|
|
942
|
+
a: 0.16,
|
|
943
|
+
b: 0.02,
|
|
944
|
+
c: 0.02,
|
|
945
|
+
offset: [0, 0.52, 0.32],
|
|
946
|
+
color: DARK
|
|
947
|
+
}, {
|
|
948
|
+
shape: "box",
|
|
949
|
+
a: 0.16,
|
|
950
|
+
b: 0.02,
|
|
951
|
+
c: 0.02,
|
|
952
|
+
offset: [0, 0.84, 0.32],
|
|
953
|
+
color: DARK
|
|
954
|
+
}, {
|
|
955
|
+
shape: "box",
|
|
956
|
+
a: 0.16,
|
|
957
|
+
b: 0.02,
|
|
958
|
+
c: 0.02,
|
|
959
|
+
offset: [0, 1.16, 0.32],
|
|
960
|
+
color: DARK
|
|
961
|
+
}],
|
|
962
|
+
color: "#8b8f99",
|
|
963
|
+
heightM: 1.3
|
|
964
|
+
},
|
|
965
|
+
{
|
|
966
|
+
id: "counter",
|
|
967
|
+
label: "Counter",
|
|
968
|
+
category: "furniture",
|
|
969
|
+
hint: "Kitchen, bar or shop counter, top 0.95m, 2.5m long",
|
|
970
|
+
parts: [{
|
|
971
|
+
shape: "box",
|
|
972
|
+
a: 2.4,
|
|
973
|
+
b: 0.9,
|
|
974
|
+
c: 0.6,
|
|
975
|
+
offset: [0, 0.45, 0]
|
|
976
|
+
}, {
|
|
977
|
+
shape: "box",
|
|
978
|
+
a: 2.5,
|
|
979
|
+
b: 0.05,
|
|
980
|
+
c: 0.66,
|
|
981
|
+
offset: [0, 0.925, 0],
|
|
982
|
+
color: "#d9d6cf"
|
|
983
|
+
}],
|
|
984
|
+
color: "#7b8089",
|
|
985
|
+
heightM: 0.95
|
|
986
|
+
},
|
|
987
|
+
{
|
|
988
|
+
id: "floor-lamp",
|
|
989
|
+
label: "Floor lamp",
|
|
990
|
+
category: "furniture",
|
|
991
|
+
hint: "Standing lamp. Dresses the frame; set_light is what lights the set",
|
|
992
|
+
parts: [{
|
|
993
|
+
shape: "cylinder",
|
|
994
|
+
a: 0.16,
|
|
995
|
+
b: 0.03,
|
|
996
|
+
offset: [0, 0.015, 0]
|
|
997
|
+
}, {
|
|
998
|
+
shape: "cylinder",
|
|
999
|
+
a: 0.015,
|
|
1000
|
+
b: 1.4,
|
|
1001
|
+
offset: [0, 0.72, 0]
|
|
1002
|
+
}, {
|
|
1003
|
+
shape: "cylinder",
|
|
1004
|
+
a: 0.18,
|
|
1005
|
+
b: 0.24,
|
|
1006
|
+
offset: [0, 1.48, 0],
|
|
1007
|
+
color: "#f4e7c9"
|
|
1008
|
+
}],
|
|
1009
|
+
color: DARK,
|
|
1010
|
+
heightM: 1.6
|
|
1011
|
+
},
|
|
1012
|
+
{
|
|
1013
|
+
id: "rug",
|
|
1014
|
+
label: "Rug",
|
|
1015
|
+
category: "furniture",
|
|
1016
|
+
hint: "2.4 x 1.6m, lies on the floor",
|
|
1017
|
+
parts: [{
|
|
1018
|
+
shape: "box",
|
|
1019
|
+
a: 2.4,
|
|
1020
|
+
b: 0.015,
|
|
1021
|
+
c: 1.6,
|
|
1022
|
+
offset: [0, 75e-4, 0]
|
|
1023
|
+
}],
|
|
1024
|
+
color: "#7d5f52",
|
|
1025
|
+
heightM: 0.015
|
|
1026
|
+
},
|
|
1027
|
+
{
|
|
1028
|
+
id: "plant",
|
|
1029
|
+
label: "Potted plant",
|
|
1030
|
+
category: "furniture",
|
|
1031
|
+
hint: "A pot and foliage. height_m 0.3 for a desk plant, 1.6 for a corner plant",
|
|
1032
|
+
parts: [{
|
|
1033
|
+
shape: "cylinder",
|
|
1034
|
+
a: 0.16,
|
|
1035
|
+
b: 0.28,
|
|
1036
|
+
offset: [0, 0.14, 0],
|
|
1037
|
+
color: "#a8684a"
|
|
1038
|
+
}, {
|
|
1039
|
+
shape: "cylinder",
|
|
1040
|
+
a: 0.025,
|
|
1041
|
+
b: 0.34,
|
|
1042
|
+
offset: [0, 0.42, 0],
|
|
1043
|
+
color: "#5b4a35"
|
|
1044
|
+
}, {
|
|
1045
|
+
shape: "sphere",
|
|
1046
|
+
a: 0.27,
|
|
1047
|
+
offset: [0, 0.76, 0]
|
|
1048
|
+
}, {
|
|
1049
|
+
shape: "sphere",
|
|
1050
|
+
a: 0.19,
|
|
1051
|
+
offset: [0.16, 0.66, 0.08]
|
|
1052
|
+
}, {
|
|
1053
|
+
shape: "sphere",
|
|
1054
|
+
a: 0.18,
|
|
1055
|
+
offset: [-0.14, 0.9, -0.06]
|
|
1056
|
+
}],
|
|
1057
|
+
color: "#4f7a4c",
|
|
1058
|
+
heightM: 1.08
|
|
1059
|
+
},
|
|
1060
|
+
{
|
|
1061
|
+
id: "window",
|
|
1062
|
+
label: "Window",
|
|
1063
|
+
category: "furniture",
|
|
1064
|
+
hint: "Framed glass, 1.2 x 1.4m. Set y to the sill height, ~0.9m, on the wall line",
|
|
1065
|
+
parts: [{
|
|
1066
|
+
shape: "box",
|
|
1067
|
+
a: 1.2,
|
|
1068
|
+
b: 1.4,
|
|
1069
|
+
c: 0.02,
|
|
1070
|
+
offset: [0, 0.7, 0],
|
|
1071
|
+
color: "#bcd4e6"
|
|
1072
|
+
}, {
|
|
1073
|
+
shape: "box",
|
|
1074
|
+
a: 1.28,
|
|
1075
|
+
b: 0.06,
|
|
1076
|
+
c: 0.08,
|
|
1077
|
+
offset: [0, 0.03, 0]
|
|
1078
|
+
}, {
|
|
1079
|
+
shape: "box",
|
|
1080
|
+
a: 1.28,
|
|
1081
|
+
b: 0.06,
|
|
1082
|
+
c: 0.08,
|
|
1083
|
+
offset: [0, 1.37, 0]
|
|
1084
|
+
}, {
|
|
1085
|
+
shape: "box",
|
|
1086
|
+
a: 0.06,
|
|
1087
|
+
b: 1.4,
|
|
1088
|
+
c: 0.08,
|
|
1089
|
+
offset: [-0.61, 0.7, 0]
|
|
1090
|
+
}, {
|
|
1091
|
+
shape: "box",
|
|
1092
|
+
a: 0.06,
|
|
1093
|
+
b: 1.4,
|
|
1094
|
+
c: 0.08,
|
|
1095
|
+
offset: [0.61, 0.7, 0]
|
|
1096
|
+
}, {
|
|
1097
|
+
shape: "box",
|
|
1098
|
+
a: 0.04,
|
|
1099
|
+
b: 1.4,
|
|
1100
|
+
c: 0.06,
|
|
1101
|
+
offset: [0, 0.7, 0]
|
|
1102
|
+
}],
|
|
1103
|
+
color: "#e6e3dc",
|
|
1104
|
+
heightM: 1.4
|
|
1105
|
+
},
|
|
1106
|
+
{
|
|
1107
|
+
id: "door",
|
|
1108
|
+
label: "Door",
|
|
1109
|
+
category: "furniture",
|
|
1110
|
+
hint: "A closed door in its frame, 2.05m. Goes on the wall line",
|
|
1111
|
+
parts: [{
|
|
1112
|
+
shape: "box",
|
|
1113
|
+
a: 0.9,
|
|
1114
|
+
b: 2.05,
|
|
1115
|
+
c: 0.05,
|
|
1116
|
+
offset: [0, 1.025, 0]
|
|
1117
|
+
}, {
|
|
1118
|
+
shape: "box",
|
|
1119
|
+
a: 0.08,
|
|
1120
|
+
b: 2.12,
|
|
1121
|
+
c: 0.1,
|
|
1122
|
+
offset: [-0.49, 1.06, 0],
|
|
1123
|
+
color: "#e6e3dc"
|
|
1124
|
+
}, {
|
|
1125
|
+
shape: "box",
|
|
1126
|
+
a: 0.08,
|
|
1127
|
+
b: 2.12,
|
|
1128
|
+
c: 0.1,
|
|
1129
|
+
offset: [0.49, 1.06, 0],
|
|
1130
|
+
color: "#e6e3dc"
|
|
1131
|
+
}, {
|
|
1132
|
+
shape: "box",
|
|
1133
|
+
a: 1.06,
|
|
1134
|
+
b: 0.08,
|
|
1135
|
+
c: 0.1,
|
|
1136
|
+
offset: [0, 2.09, 0],
|
|
1137
|
+
color: "#e6e3dc"
|
|
1138
|
+
}, {
|
|
1139
|
+
shape: "sphere",
|
|
1140
|
+
a: 0.03,
|
|
1141
|
+
offset: [0.36, 1, 0.05],
|
|
1142
|
+
color: "#b08a4e"
|
|
1143
|
+
}],
|
|
1144
|
+
color: "#a07d5a",
|
|
1145
|
+
heightM: 2.13
|
|
1146
|
+
},
|
|
1147
|
+
{
|
|
1148
|
+
id: "tv",
|
|
1149
|
+
label: "TV",
|
|
1150
|
+
category: "furniture",
|
|
1151
|
+
hint: "55-inch on a stand. Sits on a side table or counter. Faces +Z",
|
|
1152
|
+
parts: [{
|
|
1153
|
+
shape: "box",
|
|
1154
|
+
a: 1.25,
|
|
1155
|
+
b: 0.72,
|
|
1156
|
+
c: 0.05,
|
|
1157
|
+
offset: [0, 0.46, 0],
|
|
1158
|
+
color: "#101216"
|
|
1159
|
+
}, {
|
|
1160
|
+
shape: "box",
|
|
1161
|
+
a: 0.1,
|
|
1162
|
+
b: 0.1,
|
|
1163
|
+
c: 0.05,
|
|
1164
|
+
offset: [0, 0.06, 0]
|
|
1165
|
+
}, {
|
|
1166
|
+
shape: "box",
|
|
1167
|
+
a: 0.5,
|
|
1168
|
+
b: 0.02,
|
|
1169
|
+
c: 0.22,
|
|
1170
|
+
offset: [0, 0.01, 0]
|
|
1171
|
+
}],
|
|
1172
|
+
color: DARK,
|
|
1173
|
+
heightM: 0.82
|
|
1174
|
+
},
|
|
1175
|
+
{
|
|
1176
|
+
id: "whiteboard",
|
|
1177
|
+
label: "Whiteboard",
|
|
1178
|
+
category: "furniture",
|
|
1179
|
+
hint: "On a rolling frame, for meetings and classrooms. Faces +Z",
|
|
1180
|
+
parts: [{
|
|
1181
|
+
shape: "box",
|
|
1182
|
+
a: 1.6,
|
|
1183
|
+
b: 1,
|
|
1184
|
+
c: 0.03,
|
|
1185
|
+
offset: [0, 1.3, 0],
|
|
1186
|
+
color: "#f4f4f0"
|
|
1187
|
+
}, {
|
|
1188
|
+
shape: "box",
|
|
1189
|
+
a: 1.66,
|
|
1190
|
+
b: 0.04,
|
|
1191
|
+
c: 0.05,
|
|
1192
|
+
offset: [0, 0.8, 0]
|
|
1193
|
+
}, {
|
|
1194
|
+
shape: "box",
|
|
1195
|
+
a: 0.04,
|
|
1196
|
+
b: 1.8,
|
|
1197
|
+
c: 0.04,
|
|
1198
|
+
offset: [-0.82, 0.9, 0]
|
|
1199
|
+
}, {
|
|
1200
|
+
shape: "box",
|
|
1201
|
+
a: 0.04,
|
|
1202
|
+
b: 1.8,
|
|
1203
|
+
c: 0.04,
|
|
1204
|
+
offset: [0.82, 0.9, 0]
|
|
1205
|
+
}, {
|
|
1206
|
+
shape: "box",
|
|
1207
|
+
a: 0.06,
|
|
1208
|
+
b: 0.04,
|
|
1209
|
+
c: 0.6,
|
|
1210
|
+
offset: [-0.82, 0.02, 0]
|
|
1211
|
+
}, {
|
|
1212
|
+
shape: "box",
|
|
1213
|
+
a: 0.06,
|
|
1214
|
+
b: 0.04,
|
|
1215
|
+
c: 0.6,
|
|
1216
|
+
offset: [0.82, 0.02, 0]
|
|
1217
|
+
}],
|
|
1218
|
+
color: "#8b8f99",
|
|
1219
|
+
heightM: 1.8
|
|
1220
|
+
},
|
|
1221
|
+
// ── Desk and props: the things that make it someone's place ───────────────
|
|
1222
|
+
{
|
|
1223
|
+
id: "monitor",
|
|
1224
|
+
label: "Monitor",
|
|
1225
|
+
category: "props",
|
|
1226
|
+
hint: "A 27-inch screen on its stand. Stands on a desk (y 0.75), facing the worker",
|
|
1227
|
+
parts: [{
|
|
1228
|
+
shape: "box",
|
|
1229
|
+
a: 0.62,
|
|
1230
|
+
b: 0.37,
|
|
1231
|
+
c: 0.04,
|
|
1232
|
+
offset: [0, 0.34, 0],
|
|
1233
|
+
color: "#101216"
|
|
1234
|
+
}, {
|
|
1235
|
+
shape: "box",
|
|
1236
|
+
a: 0.05,
|
|
1237
|
+
b: 0.18,
|
|
1238
|
+
c: 0.05,
|
|
1239
|
+
offset: [0, 0.1, -0.02]
|
|
1240
|
+
}, {
|
|
1241
|
+
shape: "box",
|
|
1242
|
+
a: 0.22,
|
|
1243
|
+
b: 0.02,
|
|
1244
|
+
c: 0.18,
|
|
1245
|
+
offset: [0, 0.01, -0.02]
|
|
1246
|
+
}],
|
|
1247
|
+
color: DARK,
|
|
1248
|
+
heightM: 0.525
|
|
1249
|
+
},
|
|
1250
|
+
{
|
|
1251
|
+
id: "laptop",
|
|
1252
|
+
label: "Laptop",
|
|
1253
|
+
category: "props",
|
|
1254
|
+
hint: "Open laptop, the screen on the -Z side. Sits on a desk",
|
|
1255
|
+
parts: [{
|
|
1256
|
+
shape: "box",
|
|
1257
|
+
a: 0.34,
|
|
1258
|
+
b: 0.02,
|
|
1259
|
+
c: 0.24,
|
|
1260
|
+
offset: [0, 0.01, 0]
|
|
1261
|
+
}, {
|
|
1262
|
+
shape: "box",
|
|
1263
|
+
a: 0.34,
|
|
1264
|
+
b: 0.23,
|
|
1265
|
+
c: 0.012,
|
|
1266
|
+
offset: [0, 0.125, -0.13],
|
|
1267
|
+
rotate: [-12, 0, 0],
|
|
1268
|
+
color: "#101216"
|
|
1269
|
+
}],
|
|
1270
|
+
color: "#a7abb4",
|
|
1271
|
+
heightM: 0.24
|
|
1272
|
+
},
|
|
1273
|
+
{
|
|
1274
|
+
id: "keyboard",
|
|
1275
|
+
label: "Keyboard",
|
|
1276
|
+
category: "props",
|
|
1277
|
+
hint: "Flat on a desk, in front of a monitor",
|
|
1278
|
+
parts: [{
|
|
1279
|
+
shape: "box",
|
|
1280
|
+
a: 0.44,
|
|
1281
|
+
b: 0.025,
|
|
1282
|
+
c: 0.14,
|
|
1283
|
+
offset: [0, 0.0125, 0]
|
|
1284
|
+
}],
|
|
1285
|
+
color: "#41454d",
|
|
1286
|
+
heightM: 0.025
|
|
1287
|
+
},
|
|
1288
|
+
{
|
|
1289
|
+
id: "desk-lamp",
|
|
1290
|
+
label: "Desk lamp",
|
|
1291
|
+
category: "props",
|
|
1292
|
+
hint: "Angled task lamp. Sits on a desk",
|
|
1293
|
+
parts: [{
|
|
1294
|
+
shape: "cylinder",
|
|
1295
|
+
a: 0.09,
|
|
1296
|
+
b: 0.02,
|
|
1297
|
+
offset: [0, 0.01, 0]
|
|
1298
|
+
}, {
|
|
1299
|
+
shape: "cylinder",
|
|
1300
|
+
a: 0.012,
|
|
1301
|
+
b: 0.32,
|
|
1302
|
+
offset: [0, 0.16, 0],
|
|
1303
|
+
rotate: [-14, 0, 0]
|
|
1304
|
+
}, {
|
|
1305
|
+
shape: "cylinder",
|
|
1306
|
+
a: 0.012,
|
|
1307
|
+
b: 0.24,
|
|
1308
|
+
offset: [0, 0.38, 0.14],
|
|
1309
|
+
rotate: [64, 0, 0]
|
|
1310
|
+
}, {
|
|
1311
|
+
shape: "cone",
|
|
1312
|
+
a: 0.08,
|
|
1313
|
+
b: 0.12,
|
|
1314
|
+
offset: [0, 0.4, 0.28],
|
|
1315
|
+
rotate: [-160, 0, 0],
|
|
1316
|
+
color: "#d9d6cf"
|
|
1317
|
+
}],
|
|
1318
|
+
color: DARK,
|
|
1319
|
+
heightM: 0.47
|
|
1320
|
+
},
|
|
1321
|
+
{
|
|
1322
|
+
id: "phone",
|
|
1323
|
+
label: "Phone",
|
|
1324
|
+
category: "props",
|
|
1325
|
+
hint: "Flat on a surface",
|
|
1326
|
+
parts: [{
|
|
1327
|
+
shape: "box",
|
|
1328
|
+
a: 0.075,
|
|
1329
|
+
b: 0.01,
|
|
1330
|
+
c: 0.15,
|
|
1331
|
+
offset: [0, 5e-3, 0]
|
|
1332
|
+
}],
|
|
1333
|
+
color: "#101216",
|
|
1334
|
+
heightM: 0.01
|
|
1335
|
+
},
|
|
1336
|
+
{
|
|
1337
|
+
id: "mug",
|
|
1338
|
+
label: "Mug",
|
|
1339
|
+
category: "props",
|
|
1340
|
+
hint: "A coffee mug",
|
|
1341
|
+
parts: [{
|
|
1342
|
+
shape: "cylinder",
|
|
1343
|
+
a: 0.045,
|
|
1344
|
+
b: 0.1,
|
|
1345
|
+
offset: [0, 0.05, 0]
|
|
1346
|
+
}, {
|
|
1347
|
+
shape: "torus",
|
|
1348
|
+
a: 0.028,
|
|
1349
|
+
b: 8e-3,
|
|
1350
|
+
offset: [0.058, 0.05, 0]
|
|
1351
|
+
}],
|
|
1352
|
+
color: "#e6e3dc",
|
|
1353
|
+
heightM: 0.1
|
|
1354
|
+
},
|
|
1355
|
+
{
|
|
1356
|
+
id: "bottle",
|
|
1357
|
+
label: "Bottle",
|
|
1358
|
+
category: "props",
|
|
1359
|
+
hint: "Wine, beer or water, 0.3m",
|
|
1360
|
+
parts: [{
|
|
1361
|
+
shape: "cylinder",
|
|
1362
|
+
a: 0.04,
|
|
1363
|
+
b: 0.2,
|
|
1364
|
+
offset: [0, 0.1, 0]
|
|
1365
|
+
}, {
|
|
1366
|
+
shape: "cylinder",
|
|
1367
|
+
a: 0.015,
|
|
1368
|
+
b: 0.1,
|
|
1369
|
+
offset: [0, 0.25, 0]
|
|
1370
|
+
}],
|
|
1371
|
+
color: "#35573f",
|
|
1372
|
+
heightM: 0.3
|
|
1373
|
+
},
|
|
1374
|
+
{
|
|
1375
|
+
id: "books",
|
|
1376
|
+
label: "Book stack",
|
|
1377
|
+
category: "props",
|
|
1378
|
+
hint: "Three books lying flat on a surface",
|
|
1379
|
+
parts: [{
|
|
1380
|
+
shape: "box",
|
|
1381
|
+
a: 0.24,
|
|
1382
|
+
b: 0.04,
|
|
1383
|
+
c: 0.17,
|
|
1384
|
+
offset: [0, 0.02, 0]
|
|
1385
|
+
}, {
|
|
1386
|
+
shape: "box",
|
|
1387
|
+
a: 0.22,
|
|
1388
|
+
b: 0.04,
|
|
1389
|
+
c: 0.16,
|
|
1390
|
+
offset: [0.01, 0.06, 0],
|
|
1391
|
+
rotate: [0, 8, 0],
|
|
1392
|
+
color: "#3f6b73"
|
|
1393
|
+
}, {
|
|
1394
|
+
shape: "box",
|
|
1395
|
+
a: 0.2,
|
|
1396
|
+
b: 0.04,
|
|
1397
|
+
c: 0.15,
|
|
1398
|
+
offset: [-0.01, 0.1, 0],
|
|
1399
|
+
rotate: [0, -6, 0],
|
|
1400
|
+
color: "#b08a4e"
|
|
1401
|
+
}],
|
|
1402
|
+
color: "#8a4f3d",
|
|
1403
|
+
heightM: 0.12
|
|
1404
|
+
},
|
|
1405
|
+
{
|
|
1406
|
+
id: "picture-frame",
|
|
1407
|
+
label: "Picture frame",
|
|
1408
|
+
category: "props",
|
|
1409
|
+
hint: "Set y to hang it on a wall, ~1.3m. Faces +Z",
|
|
1410
|
+
parts: [{
|
|
1411
|
+
shape: "box",
|
|
1412
|
+
a: 0.4,
|
|
1413
|
+
b: 0.5,
|
|
1414
|
+
c: 0.03,
|
|
1415
|
+
offset: [0, 0.25, 0]
|
|
1416
|
+
}, {
|
|
1417
|
+
shape: "box",
|
|
1418
|
+
a: 0.34,
|
|
1419
|
+
b: 0.44,
|
|
1420
|
+
c: 0.01,
|
|
1421
|
+
offset: [0, 0.25, 0.018],
|
|
1422
|
+
color: "#d9d6cf"
|
|
1423
|
+
}],
|
|
1424
|
+
color: "#41454d",
|
|
1425
|
+
heightM: 0.5
|
|
1426
|
+
},
|
|
1427
|
+
{
|
|
1428
|
+
id: "vase",
|
|
1429
|
+
label: "Vase",
|
|
1430
|
+
category: "props",
|
|
1431
|
+
hint: "For a table or a shelf",
|
|
1432
|
+
parts: [{
|
|
1433
|
+
shape: "sphere",
|
|
1434
|
+
a: 0.09,
|
|
1435
|
+
offset: [0, 0.1, 0]
|
|
1436
|
+
}, {
|
|
1437
|
+
shape: "cylinder",
|
|
1438
|
+
a: 0.04,
|
|
1439
|
+
b: 0.14,
|
|
1440
|
+
offset: [0, 0.22, 0]
|
|
1441
|
+
}],
|
|
1442
|
+
color: "#7a8fa1",
|
|
1443
|
+
heightM: 0.29
|
|
1444
|
+
},
|
|
1445
|
+
{
|
|
1446
|
+
id: "wall-clock",
|
|
1447
|
+
label: "Wall clock",
|
|
1448
|
+
category: "props",
|
|
1449
|
+
hint: "Set y to hang it on a wall, ~2.1m. Faces +Z",
|
|
1450
|
+
parts: [{
|
|
1451
|
+
shape: "cylinder",
|
|
1452
|
+
a: 0.18,
|
|
1453
|
+
b: 0.04,
|
|
1454
|
+
offset: [0, 0.18, 0],
|
|
1455
|
+
rotate: [90, 0, 0]
|
|
1456
|
+
}, {
|
|
1457
|
+
shape: "cylinder",
|
|
1458
|
+
a: 0.155,
|
|
1459
|
+
b: 0.01,
|
|
1460
|
+
offset: [0, 0.18, 0.024],
|
|
1461
|
+
rotate: [90, 0, 0],
|
|
1462
|
+
color: "#f4f4f0"
|
|
1463
|
+
}],
|
|
1464
|
+
color: DARK,
|
|
1465
|
+
heightM: 0.36
|
|
1466
|
+
},
|
|
1467
|
+
{
|
|
1468
|
+
id: "crate",
|
|
1469
|
+
label: "Crate",
|
|
1470
|
+
category: "props",
|
|
1471
|
+
hint: "A wooden shipping crate, 0.8m",
|
|
1472
|
+
parts: [{
|
|
1473
|
+
shape: "box",
|
|
1474
|
+
a: 0.8,
|
|
1475
|
+
b: 0.8,
|
|
1476
|
+
c: 0.8,
|
|
1477
|
+
offset: [0, 0.4, 0]
|
|
1478
|
+
}, {
|
|
1479
|
+
shape: "box",
|
|
1480
|
+
a: 0.84,
|
|
1481
|
+
b: 0.08,
|
|
1482
|
+
c: 0.84,
|
|
1483
|
+
offset: [0, 0.04, 0],
|
|
1484
|
+
color: "#8f7a5c"
|
|
1485
|
+
}, {
|
|
1486
|
+
shape: "box",
|
|
1487
|
+
a: 0.84,
|
|
1488
|
+
b: 0.08,
|
|
1489
|
+
c: 0.84,
|
|
1490
|
+
offset: [0, 0.76, 0],
|
|
1491
|
+
color: "#8f7a5c"
|
|
1492
|
+
}],
|
|
1493
|
+
color: "#b39a78",
|
|
1494
|
+
heightM: 0.8
|
|
1495
|
+
},
|
|
1496
|
+
{
|
|
1497
|
+
id: "suitcase",
|
|
1498
|
+
label: "Suitcase",
|
|
1499
|
+
category: "props",
|
|
1500
|
+
hint: "Upright with its handle out",
|
|
1501
|
+
parts: [{
|
|
1502
|
+
shape: "box",
|
|
1503
|
+
a: 0.45,
|
|
1504
|
+
b: 0.62,
|
|
1505
|
+
c: 0.26,
|
|
1506
|
+
offset: [0, 0.35, 0]
|
|
1507
|
+
}, {
|
|
1508
|
+
shape: "box",
|
|
1509
|
+
a: 0.02,
|
|
1510
|
+
b: 0.3,
|
|
1511
|
+
c: 0.02,
|
|
1512
|
+
offset: [-0.1, 0.8, -0.1],
|
|
1513
|
+
color: "#a7abb4"
|
|
1514
|
+
}, {
|
|
1515
|
+
shape: "box",
|
|
1516
|
+
a: 0.02,
|
|
1517
|
+
b: 0.3,
|
|
1518
|
+
c: 0.02,
|
|
1519
|
+
offset: [0.1, 0.8, -0.1],
|
|
1520
|
+
color: "#a7abb4"
|
|
1521
|
+
}, {
|
|
1522
|
+
shape: "box",
|
|
1523
|
+
a: 0.22,
|
|
1524
|
+
b: 0.02,
|
|
1525
|
+
c: 0.03,
|
|
1526
|
+
offset: [0, 0.95, -0.1],
|
|
1527
|
+
color: "#41454d"
|
|
1528
|
+
}],
|
|
1529
|
+
color: "#3f6b73",
|
|
1530
|
+
heightM: 0.96
|
|
1531
|
+
},
|
|
1532
|
+
// ── Outdoors ──────────────────────────────────────────────────────────────
|
|
1533
|
+
{
|
|
1534
|
+
id: "tree",
|
|
1535
|
+
label: "Tree",
|
|
1536
|
+
category: "outdoor",
|
|
1537
|
+
hint: "3.5m - scale it with height_m for anything from a sapling to an oak",
|
|
1538
|
+
parts: [{
|
|
1539
|
+
shape: "cylinder",
|
|
1540
|
+
a: 0.16,
|
|
1541
|
+
b: 1.8,
|
|
1542
|
+
offset: [0, 0.9, 0],
|
|
1543
|
+
color: "#5b4a35"
|
|
1544
|
+
}, {
|
|
1545
|
+
shape: "sphere",
|
|
1546
|
+
a: 1.05,
|
|
1547
|
+
offset: [0, 2.45, 0]
|
|
1548
|
+
}, {
|
|
1549
|
+
shape: "sphere",
|
|
1550
|
+
a: 0.72,
|
|
1551
|
+
offset: [0.72, 2, 0.2]
|
|
1552
|
+
}, {
|
|
1553
|
+
shape: "sphere",
|
|
1554
|
+
a: 0.68,
|
|
1555
|
+
offset: [-0.7, 2.1, -0.2]
|
|
1556
|
+
}],
|
|
1557
|
+
color: "#4f7a4c",
|
|
1558
|
+
heightM: 3.5
|
|
1559
|
+
},
|
|
1560
|
+
{
|
|
1561
|
+
id: "bush",
|
|
1562
|
+
label: "Bush",
|
|
1563
|
+
category: "outdoor",
|
|
1564
|
+
hint: "Low planting to dress a foreground",
|
|
1565
|
+
parts: [{
|
|
1566
|
+
shape: "sphere",
|
|
1567
|
+
a: 0.42,
|
|
1568
|
+
offset: [0, 0.38, 0]
|
|
1569
|
+
}, {
|
|
1570
|
+
shape: "sphere",
|
|
1571
|
+
a: 0.3,
|
|
1572
|
+
offset: [0.34, 0.28, 0.08]
|
|
1573
|
+
}, {
|
|
1574
|
+
shape: "sphere",
|
|
1575
|
+
a: 0.3,
|
|
1576
|
+
offset: [-0.32, 0.28, -0.06]
|
|
1577
|
+
}],
|
|
1578
|
+
color: "#4f7a4c",
|
|
1579
|
+
heightM: 0.8
|
|
1580
|
+
},
|
|
1581
|
+
{
|
|
1582
|
+
id: "bench",
|
|
1583
|
+
label: "Bench",
|
|
1584
|
+
category: "outdoor",
|
|
1585
|
+
hint: "Park bench, seat 0.47m, 1.5m wide. Faces +Z",
|
|
1586
|
+
parts: [{
|
|
1587
|
+
shape: "box",
|
|
1588
|
+
a: 1.5,
|
|
1589
|
+
b: 0.05,
|
|
1590
|
+
c: 0.42,
|
|
1591
|
+
offset: [0, 0.45, 0]
|
|
1592
|
+
}, {
|
|
1593
|
+
shape: "box",
|
|
1594
|
+
a: 1.5,
|
|
1595
|
+
b: 0.36,
|
|
1596
|
+
c: 0.04,
|
|
1597
|
+
offset: [0, 0.68, -0.2]
|
|
1598
|
+
}, ...legs(1.3, 0.32, 0.43, 0.06)],
|
|
1599
|
+
color: "#7a6a58",
|
|
1600
|
+
heightM: 0.86
|
|
1601
|
+
},
|
|
1602
|
+
{
|
|
1603
|
+
id: "car",
|
|
1604
|
+
label: "Car",
|
|
1605
|
+
category: "outdoor",
|
|
1606
|
+
hint: "A sedan, 4.4m long. The bonnet points +X",
|
|
1607
|
+
parts: [{
|
|
1608
|
+
shape: "box",
|
|
1609
|
+
a: 4.4,
|
|
1610
|
+
b: 0.5,
|
|
1611
|
+
c: 1.8,
|
|
1612
|
+
offset: [0, 0.62, 0]
|
|
1613
|
+
}, {
|
|
1614
|
+
shape: "box",
|
|
1615
|
+
a: 2.2,
|
|
1616
|
+
b: 0.5,
|
|
1617
|
+
c: 1.62,
|
|
1618
|
+
offset: [-0.25, 1.12, 0],
|
|
1619
|
+
color: "#2e3a46"
|
|
1620
|
+
}, {
|
|
1621
|
+
shape: "cylinder",
|
|
1622
|
+
a: 0.32,
|
|
1623
|
+
b: 0.22,
|
|
1624
|
+
offset: [1.35, 0.32, 0.86],
|
|
1625
|
+
rotate: [90, 0, 0],
|
|
1626
|
+
color: "#17191d"
|
|
1627
|
+
}, {
|
|
1628
|
+
shape: "cylinder",
|
|
1629
|
+
a: 0.32,
|
|
1630
|
+
b: 0.22,
|
|
1631
|
+
offset: [1.35, 0.32, -0.86],
|
|
1632
|
+
rotate: [90, 0, 0],
|
|
1633
|
+
color: "#17191d"
|
|
1634
|
+
}, {
|
|
1635
|
+
shape: "cylinder",
|
|
1636
|
+
a: 0.32,
|
|
1637
|
+
b: 0.22,
|
|
1638
|
+
offset: [-1.35, 0.32, 0.86],
|
|
1639
|
+
rotate: [90, 0, 0],
|
|
1640
|
+
color: "#17191d"
|
|
1641
|
+
}, {
|
|
1642
|
+
shape: "cylinder",
|
|
1643
|
+
a: 0.32,
|
|
1644
|
+
b: 0.22,
|
|
1645
|
+
offset: [-1.35, 0.32, -0.86],
|
|
1646
|
+
rotate: [90, 0, 0],
|
|
1647
|
+
color: "#17191d"
|
|
1648
|
+
}],
|
|
1649
|
+
color: "#7a8fa1",
|
|
1650
|
+
heightM: 1.37
|
|
1651
|
+
},
|
|
1652
|
+
{
|
|
1653
|
+
id: "street-lamp",
|
|
1654
|
+
label: "Street lamp",
|
|
1655
|
+
category: "outdoor",
|
|
1656
|
+
hint: "4m. Dresses the frame; set_light is what lights the set",
|
|
1657
|
+
parts: [{
|
|
1658
|
+
shape: "cylinder",
|
|
1659
|
+
a: 0.07,
|
|
1660
|
+
b: 3.8,
|
|
1661
|
+
offset: [0, 1.9, 0]
|
|
1662
|
+
}, {
|
|
1663
|
+
shape: "box",
|
|
1664
|
+
a: 0.7,
|
|
1665
|
+
b: 0.05,
|
|
1666
|
+
c: 0.06,
|
|
1667
|
+
offset: [0.32, 3.82, 0]
|
|
1668
|
+
}, {
|
|
1669
|
+
shape: "box",
|
|
1670
|
+
a: 0.34,
|
|
1671
|
+
b: 0.08,
|
|
1672
|
+
c: 0.18,
|
|
1673
|
+
offset: [0.6, 3.78, 0],
|
|
1674
|
+
color: "#f4e7c9"
|
|
1675
|
+
}],
|
|
1676
|
+
color: DARK,
|
|
1677
|
+
heightM: 3.86
|
|
390
1678
|
}
|
|
391
1679
|
];
|
|
392
1680
|
const KIT_CATEGORY_LABEL = {
|
|
393
1681
|
blocks: "Blocks",
|
|
394
1682
|
set: "Set pieces",
|
|
395
|
-
standins: "
|
|
1683
|
+
standins: "People and stand-ins",
|
|
1684
|
+
furniture: "Furniture",
|
|
1685
|
+
props: "Desk and props",
|
|
1686
|
+
outdoor: "Outdoors"
|
|
396
1687
|
};
|
|
397
|
-
const
|
|
1688
|
+
const KIT_CATEGORIES = ["standins", "furniture", "props", "set", "outdoor", "blocks"];
|
|
1689
|
+
const findKitEntry = (id) => id ? KIT_ENTRIES.find((entry) => entry.id === id) : void 0;export{KIT_CATEGORIES,KIT_CATEGORY_LABEL,KIT_ENTRIES,findKitEntry};//# sourceMappingURL=supplyLibrary.js.map
|