@guilhermebkel/scenec 0.1.2 → 0.2.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/README.md +34 -31
- package/dist/Adapters/FileReaderAdapter.d.ts +4 -0
- package/dist/Adapters/FileReaderAdapter.js +21 -0
- package/dist/Adapters/FontAdapter.d.ts +5 -0
- package/dist/Adapters/FontAdapter.js +13 -0
- package/dist/Adapters/ResvgAdapter.d.ts +11 -0
- package/dist/Adapters/ResvgAdapter.js +18 -0
- package/dist/Commands/BaseCommand.d.ts +11 -0
- package/dist/Commands/BaseCommand.js +13 -0
- package/dist/Commands/BestCommand.d.ts +11 -0
- package/dist/Commands/BestCommand.js +73 -0
- package/dist/Commands/CatalogCommand.d.ts +6 -0
- package/dist/Commands/CatalogCommand.js +24 -0
- package/dist/Commands/CheckCommand.d.ts +5 -0
- package/dist/Commands/CheckCommand.js +8 -0
- package/dist/Commands/RenderCommand.d.ts +7 -0
- package/dist/Commands/RenderCommand.js +15 -0
- package/dist/Commands/SceneCommand.d.ts +11 -0
- package/dist/Commands/SceneCommand.js +70 -0
- package/dist/Commands/SchemaCommand.d.ts +5 -0
- package/dist/Commands/SchemaCommand.js +12 -0
- package/dist/Data/cities.json +312 -0
- package/dist/Data/europe.json +1 -0
- package/dist/Errors/SceneError.d.ts +4 -0
- package/dist/Errors/SceneError.js +11 -0
- package/dist/Errors/UnsafeSvgError.d.ts +3 -0
- package/dist/Errors/UnsafeSvgError.js +9 -0
- package/dist/Modules/BestModule.d.ts +41 -0
- package/dist/Modules/BestModule.js +159 -0
- package/dist/Modules/CheckModule.d.ts +8 -0
- package/dist/Modules/CheckModule.js +16 -0
- package/dist/Modules/CompilationModule.d.ts +23 -0
- package/dist/Modules/CompilationModule.js +210 -0
- package/dist/Modules/CritiqueModule.d.ts +9 -0
- package/dist/Modules/CritiqueModule.js +98 -0
- package/dist/Modules/MapModule.d.ts +24 -0
- package/dist/Modules/MapModule.js +99 -0
- package/dist/Modules/ParsingModule.d.ts +17 -0
- package/dist/Modules/ParsingModule.js +88 -0
- package/dist/Modules/PlaneModule.d.ts +19 -0
- package/dist/Modules/PlaneModule.js +98 -0
- package/dist/Protocols/AssetProtocol.d.ts +67 -0
- package/dist/Protocols/AssetProtocol.js +109 -0
- package/dist/Protocols/CommandProtocol.d.ts +8 -0
- package/dist/Protocols/CommandProtocol.js +0 -0
- package/dist/Protocols/CompilationProtocol.d.ts +136 -0
- package/dist/Protocols/CompilationProtocol.js +0 -0
- package/dist/Protocols/CritiqueProtocol.d.ts +58 -0
- package/dist/Protocols/CritiqueProtocol.js +14 -0
- package/dist/Protocols/CustomAssetProtocol.d.ts +24 -0
- package/dist/Protocols/CustomAssetProtocol.js +0 -0
- package/dist/Protocols/GroupProtocol.d.ts +17 -0
- package/dist/Protocols/GroupProtocol.js +12 -0
- package/dist/Protocols/KitProtocol.d.ts +32 -0
- package/dist/Protocols/KitProtocol.js +23 -0
- package/dist/Protocols/MapProtocol.d.ts +77 -0
- package/dist/Protocols/MapProtocol.js +4 -0
- package/dist/Protocols/OptionsProtocol.js +0 -0
- package/dist/Protocols/PersonProtocol.d.ts +68 -0
- package/dist/Protocols/PersonProtocol.js +42 -0
- package/dist/Protocols/PlaneProtocol.d.ts +140 -0
- package/dist/Protocols/PlaneProtocol.js +4 -0
- package/dist/{pipeline/index.d.ts → Protocols/ResultProtocol.d.ts} +0 -2
- package/dist/Protocols/ResultProtocol.js +0 -0
- package/dist/Protocols/SceneProtocol.d.ts +824 -0
- package/dist/Protocols/SceneProtocol.js +357 -0
- package/dist/{protocols/theme.d.ts → Protocols/ThemeProtocol.d.ts} +4 -0
- package/dist/Protocols/ThemeProtocol.js +28 -0
- package/dist/Resources/Assets/BackpackAsset.d.ts +10 -0
- package/dist/Resources/Assets/BackpackAsset.js +31 -0
- package/dist/Resources/Assets/BallAsset.d.ts +10 -0
- package/dist/Resources/Assets/BallAsset.js +15 -0
- package/dist/Resources/Assets/BalloonsAsset.d.ts +10 -0
- package/dist/Resources/Assets/BalloonsAsset.js +26 -0
- package/dist/Resources/Assets/BaseAsset.d.ts +17 -0
- package/dist/Resources/Assets/BaseAsset.js +11 -0
- package/dist/Resources/Assets/BeachTowelAsset.d.ts +10 -0
- package/dist/Resources/Assets/BeachTowelAsset.js +14 -0
- package/dist/Resources/Assets/BedAsset.d.ts +12 -0
- package/dist/Resources/Assets/BedAsset.js +25 -0
- package/dist/Resources/Assets/BenchAsset.d.ts +11 -0
- package/dist/Resources/Assets/BenchAsset.js +24 -0
- package/dist/Resources/Assets/BicycleAsset.d.ts +10 -0
- package/dist/Resources/Assets/BicycleAsset.js +18 -0
- package/dist/Resources/Assets/BigPlantAsset.d.ts +10 -0
- package/dist/Resources/Assets/BigPlantAsset.js +26 -0
- package/dist/Resources/Assets/BirdAsset.d.ts +10 -0
- package/dist/Resources/Assets/BirdAsset.js +14 -0
- package/dist/Resources/Assets/BlackboardAsset.d.ts +11 -0
- package/dist/Resources/Assets/BlackboardAsset.js +20 -0
- package/dist/Resources/Assets/BoardAsset.d.ts +12 -0
- package/dist/Resources/Assets/BoardAsset.js +44 -0
- package/dist/Resources/Assets/BoatAsset.d.ts +10 -0
- package/dist/Resources/Assets/BoatAsset.js +15 -0
- package/dist/Resources/Assets/BooksAsset.d.ts +10 -0
- package/dist/Resources/Assets/BooksAsset.js +35 -0
- package/dist/Resources/Assets/BookshelfAsset.d.ts +10 -0
- package/dist/Resources/Assets/BookshelfAsset.js +33 -0
- package/dist/Resources/Assets/BuildingAsset.d.ts +14 -0
- package/dist/Resources/Assets/BuildingAsset.js +34 -0
- package/dist/Resources/Assets/BurgerAsset.d.ts +9 -0
- package/dist/Resources/Assets/BurgerAsset.js +23 -0
- package/dist/Resources/Assets/BushAsset.d.ts +10 -0
- package/dist/Resources/Assets/BushAsset.js +17 -0
- package/dist/Resources/Assets/CabinetAsset.d.ts +14 -0
- package/dist/Resources/Assets/CabinetAsset.js +49 -0
- package/dist/Resources/Assets/CablesAsset.d.ts +10 -0
- package/dist/Resources/Assets/CablesAsset.js +16 -0
- package/dist/Resources/Assets/CakeAsset.d.ts +10 -0
- package/dist/Resources/Assets/CakeAsset.js +29 -0
- package/dist/Resources/Assets/CapAsset.d.ts +10 -0
- package/dist/Resources/Assets/CapAsset.js +18 -0
- package/dist/Resources/Assets/CarAsset.d.ts +10 -0
- package/dist/Resources/Assets/CarAsset.js +29 -0
- package/dist/Resources/Assets/CatAsset.d.ts +10 -0
- package/dist/Resources/Assets/CatAsset.js +17 -0
- package/dist/Resources/Assets/ChairAsset.d.ts +16 -0
- package/dist/Resources/Assets/ChairAsset.js +55 -0
- package/dist/Resources/Assets/ChatBubbleAsset.d.ts +11 -0
- package/dist/Resources/Assets/ChatBubbleAsset.js +18 -0
- package/dist/Resources/Assets/ClockAsset.d.ts +11 -0
- package/dist/Resources/Assets/ClockAsset.js +22 -0
- package/dist/Resources/Assets/CloudAsset.d.ts +10 -0
- package/dist/Resources/Assets/CloudAsset.js +17 -0
- package/dist/Resources/Assets/CoffeeMachineAsset.d.ts +10 -0
- package/dist/Resources/Assets/CoffeeMachineAsset.js +23 -0
- package/dist/Resources/Assets/ConfettiAsset.d.ts +10 -0
- package/dist/Resources/Assets/ConfettiAsset.js +18 -0
- package/dist/Resources/Assets/CounterAsset.d.ts +11 -0
- package/dist/Resources/Assets/CounterAsset.js +29 -0
- package/dist/Resources/Assets/CupAsset.d.ts +10 -0
- package/dist/Resources/Assets/CupAsset.js +17 -0
- package/dist/Resources/Assets/CursorAsset.d.ts +11 -0
- package/dist/Resources/Assets/CursorAsset.js +17 -0
- package/dist/Resources/Assets/CustomAsset.d.ts +25 -0
- package/dist/Resources/Assets/CustomAsset.js +58 -0
- package/dist/Resources/Assets/DeskAsset.d.ts +11 -0
- package/dist/Resources/Assets/DeskAsset.js +40 -0
- package/dist/Resources/Assets/DeskSlabAsset.d.ts +18 -0
- package/dist/Resources/Assets/DeskSlabAsset.js +43 -0
- package/dist/Resources/Assets/DiplomaAsset.d.ts +10 -0
- package/dist/Resources/Assets/DiplomaAsset.js +23 -0
- package/dist/Resources/Assets/DogAsset.d.ts +10 -0
- package/dist/Resources/Assets/DogAsset.js +24 -0
- package/dist/Resources/Assets/DrawerUnitAsset.d.ts +14 -0
- package/dist/Resources/Assets/DrawerUnitAsset.js +35 -0
- package/dist/Resources/Assets/FenceAsset.d.ts +10 -0
- package/dist/Resources/Assets/FenceAsset.js +26 -0
- package/dist/Resources/Assets/FigurineAsset.d.ts +10 -0
- package/dist/Resources/Assets/FigurineAsset.js +24 -0
- package/dist/Resources/Assets/FinishFlagAsset.d.ts +10 -0
- package/dist/Resources/Assets/FinishFlagAsset.js +21 -0
- package/dist/Resources/Assets/FirstAidKitAsset.d.ts +10 -0
- package/dist/Resources/Assets/FirstAidKitAsset.js +19 -0
- package/dist/Resources/Assets/FloorLampAsset.d.ts +10 -0
- package/dist/Resources/Assets/FloorLampAsset.js +22 -0
- package/dist/Resources/Assets/FlowersAsset.d.ts +10 -0
- package/dist/Resources/Assets/FlowersAsset.js +37 -0
- package/dist/Resources/Assets/FrameAsset.d.ts +11 -0
- package/dist/Resources/Assets/FrameAsset.js +24 -0
- package/dist/Resources/Assets/FruitBowlAsset.d.ts +10 -0
- package/dist/Resources/Assets/FruitBowlAsset.js +16 -0
- package/dist/Resources/Assets/GlassShelfAsset.d.ts +17 -0
- package/dist/Resources/Assets/GlassShelfAsset.js +25 -0
- package/dist/Resources/Assets/GlobeAsset.d.ts +10 -0
- package/dist/Resources/Assets/GlobeAsset.js +18 -0
- package/dist/Resources/Assets/HeadphonesAsset.d.ts +10 -0
- package/dist/Resources/Assets/HeadphonesAsset.js +23 -0
- package/dist/Resources/Assets/HouseAsset.d.ts +10 -0
- package/dist/Resources/Assets/HouseAsset.js +58 -0
- package/dist/Resources/Assets/LabAsset.d.ts +10 -0
- package/dist/Resources/Assets/LabAsset.js +52 -0
- package/dist/Resources/Assets/LampAsset.d.ts +10 -0
- package/dist/Resources/Assets/LampAsset.js +16 -0
- package/dist/Resources/Assets/LaptopAsset.d.ts +10 -0
- package/dist/Resources/Assets/LaptopAsset.js +27 -0
- package/dist/Resources/Assets/LaptopOpenAsset.d.ts +10 -0
- package/dist/Resources/Assets/LaptopOpenAsset.js +29 -0
- package/dist/Resources/Assets/LightSwitchAsset.d.ts +11 -0
- package/dist/Resources/Assets/LightSwitchAsset.js +24 -0
- package/dist/Resources/Assets/MonitorAsset.d.ts +10 -0
- package/dist/Resources/Assets/MonitorAsset.js +40 -0
- package/dist/Resources/Assets/MoonAsset.d.ts +10 -0
- package/dist/Resources/Assets/MoonAsset.js +16 -0
- package/dist/Resources/Assets/MountainAsset.d.ts +10 -0
- package/dist/Resources/Assets/MountainAsset.js +15 -0
- package/dist/Resources/Assets/OfficeChairAsset.d.ts +10 -0
- package/dist/Resources/Assets/OfficeChairAsset.js +45 -0
- package/dist/Resources/Assets/PalmAsset.d.ts +10 -0
- package/dist/Resources/Assets/PalmAsset.js +32 -0
- package/dist/Resources/Assets/PaperCupAsset.d.ts +10 -0
- package/dist/Resources/Assets/PaperCupAsset.js +17 -0
- package/dist/Resources/Assets/PendantLampAsset.d.ts +10 -0
- package/dist/Resources/Assets/PendantLampAsset.js +16 -0
- package/dist/Resources/Assets/PennantAsset.d.ts +10 -0
- package/dist/Resources/Assets/PennantAsset.js +15 -0
- package/dist/Resources/Assets/PersonAsset.d.ts +10 -0
- package/dist/Resources/Assets/PersonAsset.js +15 -0
- package/dist/Resources/Assets/PhotoFrameAsset.d.ts +15 -0
- package/dist/Resources/Assets/PhotoFrameAsset.js +68 -0
- package/dist/Resources/Assets/PineAsset.d.ts +10 -0
- package/dist/Resources/Assets/PineAsset.js +21 -0
- package/dist/Resources/Assets/PizzaAsset.d.ts +10 -0
- package/dist/Resources/Assets/PizzaAsset.js +17 -0
- package/dist/Resources/Assets/PlantAsset.d.ts +10 -0
- package/dist/Resources/Assets/PlantAsset.js +17 -0
- package/dist/Resources/Assets/PlasticBagAsset.d.ts +10 -0
- package/dist/Resources/Assets/PlasticBagAsset.js +15 -0
- package/dist/Resources/Assets/PlateAsset.d.ts +10 -0
- package/dist/Resources/Assets/PlateAsset.js +17 -0
- package/dist/Resources/Assets/PodiumAsset.d.ts +11 -0
- package/dist/Resources/Assets/PodiumAsset.js +20 -0
- package/dist/Resources/Assets/RefrigeratorAsset.d.ts +11 -0
- package/dist/Resources/Assets/RefrigeratorAsset.js +21 -0
- package/dist/Resources/Assets/RollingCartAsset.d.ts +11 -0
- package/dist/Resources/Assets/RollingCartAsset.js +34 -0
- package/dist/Resources/Assets/RugAsset.d.ts +10 -0
- package/dist/Resources/Assets/RugAsset.js +19 -0
- package/dist/Resources/Assets/SandcastleAsset.d.ts +10 -0
- package/dist/Resources/Assets/SandcastleAsset.js +30 -0
- package/dist/Resources/Assets/SchoolAsset.d.ts +10 -0
- package/dist/Resources/Assets/SchoolAsset.js +32 -0
- package/dist/Resources/Assets/ShelfWallAsset.d.ts +11 -0
- package/dist/Resources/Assets/ShelfWallAsset.js +23 -0
- package/dist/Resources/Assets/SinkAsset.d.ts +11 -0
- package/dist/Resources/Assets/SinkAsset.js +21 -0
- package/dist/Resources/Assets/SofaAsset.d.ts +16 -0
- package/dist/Resources/Assets/SofaAsset.js +66 -0
- package/dist/Resources/Assets/StageAsset.d.ts +10 -0
- package/dist/Resources/Assets/StageAsset.js +44 -0
- package/dist/Resources/Assets/StarAsset.d.ts +10 -0
- package/dist/Resources/Assets/StarAsset.js +14 -0
- package/dist/Resources/Assets/StarsAsset.d.ts +17 -0
- package/dist/Resources/Assets/StarsAsset.js +55 -0
- package/dist/Resources/Assets/StethoscopeAsset.d.ts +10 -0
- package/dist/Resources/Assets/StethoscopeAsset.js +18 -0
- package/dist/Resources/Assets/StoveAsset.d.ts +11 -0
- package/dist/Resources/Assets/StoveAsset.js +20 -0
- package/dist/Resources/Assets/StreetlightAsset.d.ts +10 -0
- package/dist/Resources/Assets/StreetlightAsset.js +20 -0
- package/dist/Resources/Assets/SuitcaseAsset.d.ts +10 -0
- package/dist/Resources/Assets/SuitcaseAsset.js +42 -0
- package/dist/Resources/Assets/SunAsset.d.ts +10 -0
- package/dist/Resources/Assets/SunAsset.js +22 -0
- package/dist/Resources/Assets/TableAsset.d.ts +15 -0
- package/dist/Resources/Assets/TableAsset.js +21 -0
- package/dist/Resources/Assets/ToggleAsset.d.ts +11 -0
- package/dist/Resources/Assets/ToggleAsset.js +21 -0
- package/dist/Resources/Assets/TrashCanAsset.d.ts +10 -0
- package/dist/Resources/Assets/TrashCanAsset.js +31 -0
- package/dist/Resources/Assets/TreeAsset.d.ts +15 -0
- package/dist/Resources/Assets/TreeAsset.js +48 -0
- package/dist/Resources/Assets/TrophyAsset.d.ts +10 -0
- package/dist/Resources/Assets/TrophyAsset.js +16 -0
- package/dist/Resources/Assets/TumblerAsset.d.ts +10 -0
- package/dist/Resources/Assets/TumblerAsset.js +17 -0
- package/dist/Resources/Assets/TvAsset.d.ts +10 -0
- package/dist/Resources/Assets/TvAsset.js +29 -0
- package/dist/Resources/Assets/TvStandAsset.d.ts +11 -0
- package/dist/Resources/Assets/TvStandAsset.js +34 -0
- package/dist/Resources/Assets/UmbrellaAsset.d.ts +10 -0
- package/dist/Resources/Assets/UmbrellaAsset.js +17 -0
- package/dist/Resources/Assets/UniversityAsset.d.ts +10 -0
- package/dist/Resources/Assets/UniversityAsset.js +22 -0
- package/dist/Resources/Assets/VaseFlowersAsset.d.ts +10 -0
- package/dist/Resources/Assets/VaseFlowersAsset.js +16 -0
- package/dist/Resources/Assets/WaterCoolerAsset.d.ts +11 -0
- package/dist/Resources/Assets/WaterCoolerAsset.js +20 -0
- package/dist/Resources/Assets/WhiteboardAsset.d.ts +10 -0
- package/dist/Resources/Assets/WhiteboardAsset.js +18 -0
- package/dist/Resources/Assets/WindowAsset.d.ts +11 -0
- package/dist/Resources/Assets/WindowAsset.js +32 -0
- package/dist/Resources/Groups/BaseGroup.d.ts +7 -0
- package/dist/Resources/Groups/BaseGroup.js +5 -0
- package/dist/Resources/Groups/CelebrationGroup.d.ts +8 -0
- package/dist/Resources/Groups/CelebrationGroup.js +19 -0
- package/dist/Resources/Groups/ConversationGroup.d.ts +9 -0
- package/dist/Resources/Groups/ConversationGroup.js +17 -0
- package/dist/Resources/Groups/DiningGroup.d.ts +8 -0
- package/dist/Resources/Groups/DiningGroup.js +21 -0
- package/dist/Resources/Groups/MeetingGroup.d.ts +8 -0
- package/dist/Resources/Groups/MeetingGroup.js +22 -0
- package/dist/Resources/Groups/ParkBenchGroup.d.ts +8 -0
- package/dist/Resources/Groups/ParkBenchGroup.js +17 -0
- package/dist/Resources/Groups/ReadingCornerGroup.d.ts +8 -0
- package/dist/Resources/Groups/ReadingCornerGroup.js +17 -0
- package/dist/Resources/Groups/WorkspaceGroup.d.ts +10 -0
- package/dist/Resources/Groups/WorkspaceGroup.js +25 -0
- package/dist/Resources/Kits/BaseKit.d.ts +13 -0
- package/dist/Resources/Kits/BaseKit.js +12 -0
- package/dist/Resources/Kits/ClayKit.d.ts +9 -0
- package/dist/Resources/Kits/ClayKit.js +11 -0
- package/dist/Resources/Kits/DuotoneKit.d.ts +16 -0
- package/dist/Resources/Kits/DuotoneKit.js +18 -0
- package/dist/Resources/Kits/FlatKit.d.ts +5 -0
- package/dist/Resources/Kits/FlatKit.js +8 -0
- package/dist/Resources/Kits/HatchKit.d.ts +15 -0
- package/dist/Resources/Kits/HatchKit.js +12 -0
- package/dist/Resources/Kits/IsometricKit.d.ts +8 -0
- package/dist/Resources/Kits/IsometricKit.js +10 -0
- package/dist/Resources/Kits/OutlineKit.d.ts +15 -0
- package/dist/Resources/Kits/OutlineKit.js +10 -0
- package/dist/Resources/Kits/PaperKit.d.ts +13 -0
- package/dist/Resources/Kits/PaperKit.js +12 -0
- package/dist/Resources/Kits/PosterKit.d.ts +14 -0
- package/dist/Resources/Kits/PosterKit.js +16 -0
- package/dist/Resources/Kits/RisoKit.d.ts +16 -0
- package/dist/Resources/Kits/RisoKit.js +11 -0
- package/dist/Resources/Kits/SketchKit.d.ts +10 -0
- package/dist/Resources/Kits/SketchKit.js +12 -0
- package/dist/Resources/Themes/BaseTheme.d.ts +5 -0
- package/dist/Resources/Themes/BaseTheme.js +5 -0
- package/dist/Resources/Themes/BeachTheme.d.ts +6 -0
- package/dist/Resources/Themes/BeachTheme.js +31 -0
- package/dist/Resources/Themes/FlatAutumnTheme.d.ts +6 -0
- package/dist/Resources/Themes/FlatAutumnTheme.js +29 -0
- package/dist/Resources/Themes/FlatCoolTheme.d.ts +6 -0
- package/dist/Resources/Themes/FlatCoolTheme.js +29 -0
- package/dist/Resources/Themes/NightTheme.d.ts +6 -0
- package/dist/Resources/Themes/NightTheme.js +29 -0
- package/dist/Resources/Themes/WarmCafeTheme.d.ts +6 -0
- package/dist/Resources/Themes/WarmCafeTheme.js +29 -0
- package/dist/Services/AssetService.d.ts +12 -0
- package/dist/Services/AssetService.js +232 -0
- package/dist/Services/BackgroundService.d.ts +41 -0
- package/dist/Services/BackgroundService.js +177 -0
- package/dist/Services/BalanceCritiqueService.d.ts +13 -0
- package/dist/Services/BalanceCritiqueService.js +64 -0
- package/dist/Services/CameraService.d.ts +21 -0
- package/dist/Services/CameraService.js +121 -0
- package/dist/Services/CatalogService.d.ts +30 -0
- package/dist/Services/CatalogService.js +56 -0
- package/dist/Services/ColorCritiqueService.d.ts +42 -0
- package/dist/Services/ColorCritiqueService.js +232 -0
- package/dist/Services/ContextService.d.ts +21 -0
- package/dist/Services/ContextService.js +98 -0
- package/dist/Services/CoverageCritiqueService.d.ts +16 -0
- package/dist/Services/CoverageCritiqueService.js +84 -0
- package/dist/Services/CustomAssetService.d.ts +31 -0
- package/dist/Services/CustomAssetService.js +184 -0
- package/dist/Services/DependencyOrderService.d.ts +12 -0
- package/dist/Services/DependencyOrderService.js +73 -0
- package/dist/Services/DescriptionService.d.ts +10 -0
- package/dist/Services/DescriptionService.js +33 -0
- package/dist/Services/DetailService.d.ts +7 -0
- package/dist/Services/DetailService.js +18 -0
- package/dist/Services/FocusCritiqueService.d.ts +23 -0
- package/dist/Services/FocusCritiqueService.js +166 -0
- package/dist/Services/FramingCheckService.d.ts +15 -0
- package/dist/Services/FramingCheckService.js +93 -0
- package/dist/Services/FramingService.d.ts +31 -0
- package/dist/Services/FramingService.js +108 -0
- package/dist/Services/GazeService.d.ts +6 -0
- package/dist/Services/GazeService.js +45 -0
- package/dist/Services/GroundDetailService.d.ts +50 -0
- package/dist/Services/GroundDetailService.js +115 -0
- package/dist/Services/GroupService.d.ts +17 -0
- package/dist/Services/GroupService.js +152 -0
- package/dist/Services/KitService.d.ts +32 -0
- package/dist/Services/KitService.js +131 -0
- package/dist/Services/LightingService.d.ts +39 -0
- package/dist/Services/LightingService.js +237 -0
- package/dist/Services/MapBaseService.d.ts +24 -0
- package/dist/Services/MapBaseService.js +104 -0
- package/dist/Services/MapLabelService.d.ts +26 -0
- package/dist/Services/MapLabelService.js +185 -0
- package/dist/Services/MapLegService.d.ts +23 -0
- package/dist/Services/MapLegService.js +87 -0
- package/dist/Services/MapPanelService.d.ts +16 -0
- package/dist/Services/MapPanelService.js +89 -0
- package/dist/Services/MapPinService.d.ts +11 -0
- package/dist/Services/MapPinService.js +56 -0
- package/dist/Services/MapProjectionService.d.ts +14 -0
- package/dist/Services/MapProjectionService.js +70 -0
- package/dist/Services/MapRouteService.d.ts +17 -0
- package/dist/Services/MapRouteService.js +79 -0
- package/dist/Services/PaletteService.d.ts +108 -0
- package/dist/Services/PaletteService.js +282 -0
- package/dist/Services/PieceService.d.ts +47 -0
- package/dist/Services/PieceService.js +175 -0
- package/dist/Services/PlacementService.d.ts +60 -0
- package/dist/Services/PlacementService.js +421 -0
- package/dist/Services/PlaneBackgroundService.d.ts +28 -0
- package/dist/Services/PlaneBackgroundService.js +209 -0
- package/dist/Services/PlaneBoxService.d.ts +27 -0
- package/dist/Services/PlaneBoxService.js +209 -0
- package/dist/Services/PlaneDepthService.d.ts +18 -0
- package/dist/Services/PlaneDepthService.js +146 -0
- package/dist/Services/PlaneLabelService.d.ts +13 -0
- package/dist/Services/PlaneLabelService.js +115 -0
- package/dist/Services/PlaneObjectService.d.ts +17 -0
- package/dist/Services/PlaneObjectService.js +147 -0
- package/dist/Services/PlanePathService.d.ts +15 -0
- package/dist/Services/PlanePathService.js +98 -0
- package/dist/Services/PlaneProjectionService.d.ts +20 -0
- package/dist/Services/PlaneProjectionService.js +119 -0
- package/dist/Services/PlaneRoadService.d.ts +13 -0
- package/dist/Services/PlaneRoadService.js +105 -0
- package/dist/Services/PlaneScatterService.d.ts +11 -0
- package/dist/Services/PlaneScatterService.js +48 -0
- package/dist/Services/PlaneSpaceService.d.ts +27 -0
- package/dist/Services/PlaneSpaceService.js +96 -0
- package/dist/Services/PlaneSpriteService.d.ts +29 -0
- package/dist/Services/PlaneSpriteService.js +95 -0
- package/dist/Services/PlaneTitleService.d.ts +17 -0
- package/dist/Services/PlaneTitleService.js +126 -0
- package/dist/Services/PlaneZoneService.d.ts +20 -0
- package/dist/Services/PlaneZoneService.js +121 -0
- package/dist/Services/RasterService.d.ts +10 -0
- package/dist/Services/RasterService.js +85 -0
- package/dist/Services/RidgeService.d.ts +31 -0
- package/dist/Services/RidgeService.js +85 -0
- package/dist/Services/ScaleCritiqueService.d.ts +11 -0
- package/dist/Services/ScaleCritiqueService.js +57 -0
- package/dist/Services/SchemaService.d.ts +3 -0
- package/dist/Services/SchemaService.js +10 -0
- package/dist/Services/SilhouetteCritiqueService.d.ts +32 -0
- package/dist/Services/SilhouetteCritiqueService.js +155 -0
- package/dist/Services/SkyDetailService.d.ts +39 -0
- package/dist/Services/SkyDetailService.js +95 -0
- package/dist/Services/TangentCritiqueService.d.ts +23 -0
- package/dist/Services/TangentCritiqueService.js +136 -0
- package/dist/Services/TextService.d.ts +87 -0
- package/dist/Services/TextService.js +434 -0
- package/dist/Services/ThemeService.d.ts +5 -0
- package/dist/Services/ThemeService.js +18 -0
- package/dist/Services/ThumbnailCritiqueService.d.ts +30 -0
- package/dist/Services/ThumbnailCritiqueService.js +130 -0
- package/dist/Utils/BoxUtil.d.ts +4 -0
- package/dist/Utils/BoxUtil.js +8 -0
- package/dist/Utils/ColorUtil.d.ts +34 -0
- package/dist/Utils/ColorUtil.js +114 -0
- package/dist/Utils/CurveUtil.d.ts +6 -0
- package/dist/Utils/CurveUtil.js +35 -0
- package/dist/Utils/DetailUtil.d.ts +7 -0
- package/dist/Utils/DetailUtil.js +15 -0
- package/dist/Utils/FallbackUtil.d.ts +3 -0
- package/dist/Utils/FallbackUtil.js +8 -0
- package/dist/Utils/FontMetricsUtil.d.ts +7 -0
- package/dist/Utils/FontMetricsUtil.js +694 -0
- package/dist/Utils/FormatUtil.d.ts +4 -0
- package/dist/Utils/FormatUtil.js +9 -0
- package/dist/Utils/IdUtil.d.ts +4 -0
- package/dist/Utils/IdUtil.js +11 -0
- package/dist/Utils/NormalizeUtil.d.ts +4 -0
- package/dist/Utils/NormalizeUtil.js +9 -0
- package/dist/Utils/OklabUtil.d.ts +41 -0
- package/dist/Utils/OklabUtil.js +151 -0
- package/dist/Utils/PersonArmUtil.d.ts +31 -0
- package/dist/Utils/PersonArmUtil.js +132 -0
- package/dist/Utils/PersonHeadUtil.d.ts +31 -0
- package/dist/Utils/PersonHeadUtil.js +156 -0
- package/dist/Utils/PersonOutfitUtil.d.ts +64 -0
- package/dist/Utils/PersonOutfitUtil.js +254 -0
- package/dist/Utils/PersonUtil.d.ts +41 -0
- package/dist/Utils/PersonUtil.js +216 -0
- package/dist/Utils/PixelUtil.d.ts +3 -0
- package/dist/Utils/PixelUtil.js +8 -0
- package/dist/Utils/RecolorUtil.d.ts +40 -0
- package/dist/Utils/RecolorUtil.js +155 -0
- package/dist/Utils/RegistryUtil.d.ts +8 -0
- package/dist/Utils/RegistryUtil.js +19 -0
- package/dist/Utils/RequireUtil.d.ts +3 -0
- package/dist/Utils/RequireUtil.js +11 -0
- package/dist/Utils/SanitizeUtil.d.ts +25 -0
- package/dist/Utils/SanitizeUtil.js +211 -0
- package/dist/Utils/SeedUtil.d.ts +6 -0
- package/dist/Utils/SeedUtil.js +15 -0
- package/dist/Utils/ShapeUtil.d.ts +40 -0
- package/dist/Utils/ShapeUtil.js +73 -0
- package/dist/Utils/SuggestUtil.d.ts +7 -0
- package/dist/Utils/SuggestUtil.js +25 -0
- package/dist/Utils/SvgUtil.d.ts +9 -0
- package/dist/Utils/SvgUtil.js +21 -0
- package/dist/Utils/ThemeUtil.d.ts +4 -0
- package/dist/Utils/ThemeUtil.js +13 -0
- package/dist/Utils/TransportUtil.d.ts +24 -0
- package/dist/Utils/TransportUtil.js +108 -0
- package/dist/Utils/TypesettingUtil.d.ts +17 -0
- package/dist/Utils/TypesettingUtil.js +92 -0
- package/dist/cli.js +52 -96
- package/dist/index.d.ts +10 -6
- package/dist/index.js +14 -2
- package/dist/render.d.ts +10 -5
- package/dist/render.js +26 -3
- package/dist/schema.d.ts +9 -2
- package/dist/schema.js +29 -5
- package/fonts/DMSerifDisplay-Regular.ttf +0 -0
- package/fonts/OFL.txt +2 -0
- package/fonts/PatrickHand-Regular.ttf +0 -0
- package/package.json +3 -2
- package/skills/{scenec → draw-scene}/SKILL.md +17 -20
- package/skills/{scenec/recipes/carrossel.yaml → draw-scene/recipes/carousel.yaml} +1 -1
- package/skills/draw-scene/recipes/conference-keynote.yaml +43 -0
- package/skills/draw-scene/recipes/product-feature.yaml +41 -0
- package/skills/{scenec/recipes/ilustracoes-produto.yaml → draw-scene/recipes/product-illustration.yaml} +2 -1
- package/skills/{scenec → draw-scene}/references/catalog.md +33 -15
- package/skills/{scenec → draw-scene}/references/dsl.md +32 -8
- package/dist/catalog.d.ts +0 -21
- package/dist/catalog.js +0 -35
- package/dist/data/europe.json +0 -1
- package/dist/drawing/assets.d.ts +0 -8
- package/dist/drawing/assets.js +0 -612
- package/dist/drawing/kits.d.ts +0 -7
- package/dist/drawing/kits.js +0 -92
- package/dist/drawing/person.d.ts +0 -18
- package/dist/drawing/person.js +0 -287
- package/dist/drawing/themes.d.ts +0 -4
- package/dist/drawing/themes.js +0 -45
- package/dist/modes/map.d.ts +0 -5
- package/dist/modes/map.js +0 -365
- package/dist/modes/plane.d.ts +0 -5
- package/dist/modes/plane.js +0 -716
- package/dist/pipeline/compile.d.ts +0 -2
- package/dist/pipeline/compile.js +0 -581
- package/dist/pipeline/custom.d.ts +0 -2
- package/dist/pipeline/custom.js +0 -120
- package/dist/pipeline/groups.d.ts +0 -2
- package/dist/pipeline/groups.js +0 -189
- package/dist/pipeline/index.js +0 -7
- package/dist/pipeline/parse.d.ts +0 -10
- package/dist/pipeline/parse.js +0 -80
- package/dist/protocols/options.js +0 -1
- package/dist/protocols/scene.d.ts +0 -299
- package/dist/protocols/scene.js +0 -118
- package/dist/protocols/theme.js +0 -1
- package/dist/render/check.d.ts +0 -6
- package/dist/render/check.js +0 -10
- package/dist/render/critic.d.ts +0 -1
- package/dist/render/critic.js +0 -235
- package/dist/render/files.d.ts +0 -2
- package/dist/render/files.js +0 -16
- package/dist/render/fonts.d.ts +0 -2
- package/dist/render/fonts.js +0 -4
- package/dist/render/png.d.ts +0 -9
- package/dist/render/png.js +0 -13
- package/dist/utils/color.d.ts +0 -5
- package/dist/utils/color.js +0 -35
- package/dist/utils/recolor.d.ts +0 -1
- package/dist/utils/recolor.js +0 -56
- package/dist/utils/sanitize.d.ts +0 -5
- package/dist/utils/sanitize.js +0 -169
- package/dist/utils/suggest.d.ts +0 -1
- package/dist/utils/suggest.js +0 -22
- package/dist/utils/svg.d.ts +0 -2
- package/dist/utils/svg.js +0 -11
- package/skills/scenec/references/fontes.md +0 -8
- /package/dist/{protocols/options.d.ts → Protocols/OptionsProtocol.d.ts} +0 -0
- /package/skills/{scenec/recipes/anuncios-variacoes.yaml → draw-scene/recipes/ad-variations.yaml} +0 -0
- /package/skills/{scenec/recipes/elearning.yaml → draw-scene/recipes/e-learning.yaml} +0 -0
- /package/skills/{scenec/recipes/reels-explicativo.yaml → draw-scene/recipes/explainer-reel.yaml} +0 -0
- /package/skills/{scenec/recipes/historia-ilustrada.yaml → draw-scene/recipes/illustrated-story.yaml} +0 -0
- /package/skills/{scenec/recipes/mapas-jornadas.yaml → draw-scene/recipes/journey-map.yaml} +0 -0
- /package/skills/{scenec/recipes/wrapped-personalizado.yaml → draw-scene/recipes/personalized-wrapped.yaml} +0 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { AssetParams, Theme } from "../../Protocols/AssetProtocol.js";
|
|
2
|
+
import { BaseAsset } from "./BaseAsset.js";
|
|
3
|
+
export declare class DrawerUnitAsset extends BaseAsset {
|
|
4
|
+
readonly id = "drawer_unit";
|
|
5
|
+
readonly kind = "ground";
|
|
6
|
+
readonly width = 26;
|
|
7
|
+
readonly height = 42;
|
|
8
|
+
readonly tags: string[];
|
|
9
|
+
size(params: AssetParams): {
|
|
10
|
+
w: number;
|
|
11
|
+
h: number;
|
|
12
|
+
};
|
|
13
|
+
draw(params: AssetParams, theme: Theme): string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ColorUtil } from "../../Utils/ColorUtil.js";
|
|
2
|
+
import { BaseAsset } from "./BaseAsset.js";
|
|
3
|
+
import { ShapeUtil } from "../../Utils/ShapeUtil.js";
|
|
4
|
+
class DrawerUnitAsset extends BaseAsset {
|
|
5
|
+
id = "drawer_unit";
|
|
6
|
+
kind = "ground";
|
|
7
|
+
width = 26;
|
|
8
|
+
height = 42;
|
|
9
|
+
tags = ["gaveteiro", "gavetas", "drawers"];
|
|
10
|
+
size(params) {
|
|
11
|
+
return { w: params.width ?? 26, h: params.height ?? 42 };
|
|
12
|
+
}
|
|
13
|
+
draw(params, theme) {
|
|
14
|
+
const wide = params.width ?? 26, tall = params.height ?? 42, count = params.drawers ?? 4, mainColor = ShapeUtil.color(theme, params.color, theme.wood), plinth = 2.5;
|
|
15
|
+
let svg = ShapeUtil.shadow(theme, wide * 0.55, 1.8) + ShapeUtil.rect(
|
|
16
|
+
-wide / 2,
|
|
17
|
+
-tall,
|
|
18
|
+
wide,
|
|
19
|
+
tall,
|
|
20
|
+
ColorUtil.sh(mainColor, -0.08)
|
|
21
|
+
) + ShapeUtil.rect(-wide / 2, -plinth, wide, plinth, ColorUtil.sh(
|
|
22
|
+
mainColor,
|
|
23
|
+
-0.25
|
|
24
|
+
));
|
|
25
|
+
const dh = (tall - plinth - 1) / count;
|
|
26
|
+
for (let index = 0; index < count; index++) {
|
|
27
|
+
const posY = -tall + 0.6 + index * dh;
|
|
28
|
+
svg += ShapeUtil.rect(-wide / 2 + 0.8, posY, wide - 1.6, dh - 0.7, mainColor, { rx: 0.6 }) + ShapeUtil.rect(-wide / 2 + 0.8, posY + dh - 1.4, wide - 1.6, 0.7, ColorUtil.sh(mainColor, -0.15)) + ShapeUtil.rect(-wide * 0.28, posY + dh * 0.42, wide * 0.56, 0.8, theme.metal, { rx: 0.4 }) + ShapeUtil.rect(-wide * 0.28, posY + dh * 0.42 + 0.6, wide * 0.56, 0.35, ColorUtil.sh(theme.metal, -0.3));
|
|
29
|
+
}
|
|
30
|
+
return svg;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
export {
|
|
34
|
+
DrawerUnitAsset
|
|
35
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { AssetParams, Theme } from "../../Protocols/AssetProtocol.js";
|
|
2
|
+
import { BaseAsset } from "./BaseAsset.js";
|
|
3
|
+
export declare class FenceAsset extends BaseAsset {
|
|
4
|
+
readonly id = "fence";
|
|
5
|
+
readonly kind = "ground";
|
|
6
|
+
readonly width = 160;
|
|
7
|
+
readonly height = 40;
|
|
8
|
+
readonly tags: string[];
|
|
9
|
+
draw(params: AssetParams, theme: Theme): string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ColorUtil } from "../../Utils/ColorUtil.js";
|
|
2
|
+
import { BaseAsset } from "./BaseAsset.js";
|
|
3
|
+
import { ShapeUtil } from "../../Utils/ShapeUtil.js";
|
|
4
|
+
class FenceAsset extends BaseAsset {
|
|
5
|
+
id = "fence";
|
|
6
|
+
kind = "ground";
|
|
7
|
+
width = 160;
|
|
8
|
+
height = 40;
|
|
9
|
+
tags = ["cerca"];
|
|
10
|
+
draw(params, theme) {
|
|
11
|
+
let svg = ShapeUtil.rect(-80, -30, 160, 5, theme.paper) + ShapeUtil.rect(-80, -15, 160, 5, theme.paper) + ShapeUtil.rect(-80, -25, 160, 2, ColorUtil.sh(theme.paper, -0.15)) + ShapeUtil.rect(
|
|
12
|
+
-80,
|
|
13
|
+
-10,
|
|
14
|
+
160,
|
|
15
|
+
2,
|
|
16
|
+
ColorUtil.sh(theme.paper, -0.15)
|
|
17
|
+
);
|
|
18
|
+
for (let posX = -76; posX <= 70; posX += 18) {
|
|
19
|
+
svg += `<path d="M${posX} 0 L${posX} -34 L${posX + 5} -40 L${posX + 10} -34 L${posX + 10} 0 Z" fill="${theme.paper}"/><path d="M${posX + 6} 0 L${posX + 6} -38 L${posX + 10} -34 L${posX + 10} 0 Z" fill="${ColorUtil.sh(theme.paper, -0.12)}"/>`;
|
|
20
|
+
}
|
|
21
|
+
return svg;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
FenceAsset
|
|
26
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { AssetParams, Theme } from "../../Protocols/AssetProtocol.js";
|
|
2
|
+
import { BaseAsset } from "./BaseAsset.js";
|
|
3
|
+
export declare class FigurineAsset extends BaseAsset {
|
|
4
|
+
readonly id = "figurine";
|
|
5
|
+
readonly kind = "surface";
|
|
6
|
+
readonly width = 4;
|
|
7
|
+
readonly height = 6;
|
|
8
|
+
readonly tags: string[];
|
|
9
|
+
draw(params: AssetParams, theme: Theme): string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ColorUtil } from "../../Utils/ColorUtil.js";
|
|
2
|
+
import { BaseAsset } from "./BaseAsset.js";
|
|
3
|
+
import { ShapeUtil } from "../../Utils/ShapeUtil.js";
|
|
4
|
+
class FigurineAsset extends BaseAsset {
|
|
5
|
+
id = "figurine";
|
|
6
|
+
kind = "surface";
|
|
7
|
+
width = 4;
|
|
8
|
+
height = 6;
|
|
9
|
+
tags = ["boneco", "miniatura", "action figure", "toy"];
|
|
10
|
+
draw(params, theme) {
|
|
11
|
+
const mainColor = ShapeUtil.color(theme, params.color, theme.primary);
|
|
12
|
+
return ShapeUtil.ellipse(0, -0.4, 2, 0.6, ColorUtil.sh(mainColor, -0.3)) + ShapeUtil.rect(
|
|
13
|
+
-1.4,
|
|
14
|
+
-3.6,
|
|
15
|
+
2.8,
|
|
16
|
+
3.2,
|
|
17
|
+
mainColor,
|
|
18
|
+
{ rx: 1 }
|
|
19
|
+
) + ShapeUtil.circle(0, -4.9, 1.7, "#F0C8A0") + `<path d="M-1.8 -5.2 Q0 -7.4 1.8 -5.2 Z" fill="${ShapeUtil.color(theme, params.hair, theme.ink)}"/>` + ShapeUtil.rect(-1.9, -3.4, 0.7, 2, ColorUtil.sh(mainColor, -0.2), { rx: 0.3 });
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
export {
|
|
23
|
+
FigurineAsset
|
|
24
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { AssetParams, Theme } from "../../Protocols/AssetProtocol.js";
|
|
2
|
+
import { BaseAsset } from "./BaseAsset.js";
|
|
3
|
+
export declare class FinishFlagAsset extends BaseAsset {
|
|
4
|
+
readonly id = "finish_flag";
|
|
5
|
+
readonly kind = "ground";
|
|
6
|
+
readonly width = 50;
|
|
7
|
+
readonly height = 90;
|
|
8
|
+
readonly tags: string[];
|
|
9
|
+
draw(params: AssetParams, theme: Theme): string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { BaseAsset } from "./BaseAsset.js";
|
|
2
|
+
import { ShapeUtil } from "../../Utils/ShapeUtil.js";
|
|
3
|
+
class FinishFlagAsset extends BaseAsset {
|
|
4
|
+
id = "finish_flag";
|
|
5
|
+
kind = "ground";
|
|
6
|
+
width = 50;
|
|
7
|
+
height = 90;
|
|
8
|
+
tags = ["bandeira de chegada", "chegada", "finish", "bandeira quadriculada"];
|
|
9
|
+
draw(params, theme) {
|
|
10
|
+
let svg = ShapeUtil.shadow(theme, 10, 2) + `<path d="M0 0 L0 -90" stroke="${theme.ink}" stroke-width="3.5" stroke-linecap="round"/>`;
|
|
11
|
+
for (let index = 0; index < 4; index++) {
|
|
12
|
+
for (let innerIndex = 0; innerIndex < 3; innerIndex++) {
|
|
13
|
+
svg += ShapeUtil.rect(2 + index * 10, -88 + innerIndex * 10 + (index % 2 ? 1 : 0), 10, 10, (index + innerIndex) % 2 ? theme.ink : theme.paper);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
return svg + ShapeUtil.rect(2, -88, 40, 30, "none", { rx: 0, extra: `stroke="${theme.ink}" stroke-width="1.2"` });
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
FinishFlagAsset
|
|
21
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { AssetParams, Theme } from "../../Protocols/AssetProtocol.js";
|
|
2
|
+
import { BaseAsset } from "./BaseAsset.js";
|
|
3
|
+
export declare class FirstAidKitAsset extends BaseAsset {
|
|
4
|
+
readonly id = "first_aid_kit";
|
|
5
|
+
readonly kind = "surface";
|
|
6
|
+
readonly width = 38;
|
|
7
|
+
readonly height = 30;
|
|
8
|
+
readonly tags: string[];
|
|
9
|
+
draw(params: AssetParams, theme: Theme): string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ColorUtil } from "../../Utils/ColorUtil.js";
|
|
2
|
+
import { BaseAsset } from "./BaseAsset.js";
|
|
3
|
+
import { ShapeUtil } from "../../Utils/ShapeUtil.js";
|
|
4
|
+
class FirstAidKitAsset extends BaseAsset {
|
|
5
|
+
id = "first_aid_kit";
|
|
6
|
+
kind = "surface";
|
|
7
|
+
width = 38;
|
|
8
|
+
height = 30;
|
|
9
|
+
tags = ["primeiros_socorros", "maleta_medica", "first_aid_kit", "medical_kit", "medicine_box"];
|
|
10
|
+
draw(params, theme) {
|
|
11
|
+
const boxColor = ShapeUtil.color(theme, params.color, theme.paper);
|
|
12
|
+
const red = "#E54D42";
|
|
13
|
+
const shade = ColorUtil.sh(boxColor, -0.12);
|
|
14
|
+
return ShapeUtil.rect(-19, -26, 38, 26, boxColor, { rx: 4 }) + ShapeUtil.rect(6, -26, 13, 26, shade, { rx: 4 }) + ShapeUtil.rect(-8, -30, 16, 4, theme.metal, { rx: 2 }) + ShapeUtil.rect(-19, -15, 38, 2, ColorUtil.sh(boxColor, -0.2)) + ShapeUtil.rect(-2, -19, 4, 10, red, { rx: 1 }) + ShapeUtil.rect(-5, -16, 10, 4, red, { rx: 1 });
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
FirstAidKitAsset
|
|
19
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { AssetParams, Theme } from "../../Protocols/AssetProtocol.js";
|
|
2
|
+
import { BaseAsset } from "./BaseAsset.js";
|
|
3
|
+
export declare class FloorLampAsset extends BaseAsset {
|
|
4
|
+
readonly id = "floor_lamp";
|
|
5
|
+
readonly kind = "ground";
|
|
6
|
+
readonly width = 40;
|
|
7
|
+
readonly height = 150;
|
|
8
|
+
readonly tags: string[];
|
|
9
|
+
draw(params: AssetParams, theme: Theme): string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ColorUtil } from "../../Utils/ColorUtil.js";
|
|
2
|
+
import { BaseAsset } from "./BaseAsset.js";
|
|
3
|
+
import { ShapeUtil } from "../../Utils/ShapeUtil.js";
|
|
4
|
+
class FloorLampAsset extends BaseAsset {
|
|
5
|
+
id = "floor_lamp";
|
|
6
|
+
kind = "ground";
|
|
7
|
+
width = 40;
|
|
8
|
+
height = 150;
|
|
9
|
+
tags = ["abajur de ch\xE3o", "lumin\xE1ria de ch\xE3o", "luminaria de chao", "floor lamp"];
|
|
10
|
+
draw(params, theme) {
|
|
11
|
+
return ShapeUtil.shadow(theme, 14, 2.5) + ShapeUtil.ellipse(0, -2, 13, 3, theme.ink) + ShapeUtil.rect(
|
|
12
|
+
-1.5,
|
|
13
|
+
-125,
|
|
14
|
+
3,
|
|
15
|
+
123,
|
|
16
|
+
theme.ink
|
|
17
|
+
) + `<path d="M-16 -122 L-11 -150 L11 -150 L16 -122 Z" fill="${theme.accent}"/><path d="M2 -150 L11 -150 L16 -122 L4 -122 Z" fill="${ColorUtil.sh(theme.accent, -0.15)}"/><path d="M-16 -122 L-40 -20 L40 -20 L16 -122 Z" fill="#FFE9A8" opacity="0.12"/>`;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
FloorLampAsset
|
|
22
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { AssetParams, Theme } from "../../Protocols/AssetProtocol.js";
|
|
2
|
+
import { BaseAsset } from "./BaseAsset.js";
|
|
3
|
+
export declare class FlowersAsset extends BaseAsset {
|
|
4
|
+
readonly id = "flowers";
|
|
5
|
+
readonly kind = "ground";
|
|
6
|
+
readonly width = 50;
|
|
7
|
+
readonly height = 30;
|
|
8
|
+
readonly tags: string[];
|
|
9
|
+
draw(params: AssetParams, theme: Theme): string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { BaseAsset } from "./BaseAsset.js";
|
|
2
|
+
import { ShapeUtil } from "../../Utils/ShapeUtil.js";
|
|
3
|
+
class FlowersAsset extends BaseAsset {
|
|
4
|
+
id = "flowers";
|
|
5
|
+
kind = "ground";
|
|
6
|
+
width = 50;
|
|
7
|
+
height = 30;
|
|
8
|
+
tags = ["flores", "canteiro", "flower_bed"];
|
|
9
|
+
draw(params, theme) {
|
|
10
|
+
const [first, second] = theme.foliage;
|
|
11
|
+
let svg = ShapeUtil.shadow(theme, 24, 2.5);
|
|
12
|
+
const blooms = [
|
|
13
|
+
[-16, -16, theme.primary],
|
|
14
|
+
[-4, -24, theme.accent],
|
|
15
|
+
[9, -18, theme.paper],
|
|
16
|
+
[19, -12, theme.primary],
|
|
17
|
+
[-20, -8, theme.accent]
|
|
18
|
+
];
|
|
19
|
+
blooms.forEach(([posX, posY, color]) => {
|
|
20
|
+
svg += `<path d="M${posX} 0 Q${posX + 1} ${posY / 2} ${posX} ${posY}" stroke="${second}" stroke-width="2" fill="none"/>` + [0, 72, 144, 216, 288].map((angle) => ShapeUtil.circle(
|
|
21
|
+
posX + Math.cos(ShapeUtil.toRadians(angle)) * 3,
|
|
22
|
+
posY + Math.sin(ShapeUtil.toRadians(angle)) * 3,
|
|
23
|
+
2.6,
|
|
24
|
+
color
|
|
25
|
+
)).join("") + ShapeUtil.circle(
|
|
26
|
+
posX,
|
|
27
|
+
posY,
|
|
28
|
+
1.8,
|
|
29
|
+
theme.accent === color ? theme.paper : theme.accent
|
|
30
|
+
);
|
|
31
|
+
});
|
|
32
|
+
return svg + ShapeUtil.ellipse(0, -2, 24, 4, first);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
export {
|
|
36
|
+
FlowersAsset
|
|
37
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { AssetParams, Theme } from "../../Protocols/AssetProtocol.js";
|
|
2
|
+
import { BaseAsset } from "./BaseAsset.js";
|
|
3
|
+
export declare class FrameAsset extends BaseAsset {
|
|
4
|
+
readonly id = "frame";
|
|
5
|
+
readonly kind = "wall";
|
|
6
|
+
readonly width = 60;
|
|
7
|
+
readonly height = 46;
|
|
8
|
+
readonly elevation = 95;
|
|
9
|
+
readonly tags: string[];
|
|
10
|
+
draw(params: AssetParams, theme: Theme): string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ColorUtil } from "../../Utils/ColorUtil.js";
|
|
2
|
+
import { BaseAsset } from "./BaseAsset.js";
|
|
3
|
+
import { ShapeUtil } from "../../Utils/ShapeUtil.js";
|
|
4
|
+
class FrameAsset extends BaseAsset {
|
|
5
|
+
id = "frame";
|
|
6
|
+
kind = "wall";
|
|
7
|
+
width = 60;
|
|
8
|
+
height = 46;
|
|
9
|
+
elevation = 95;
|
|
10
|
+
tags = ["quadro", "picture", "painting"];
|
|
11
|
+
draw(params, theme) {
|
|
12
|
+
return ShapeUtil.rect(-29, -44, 60, 46, "rgba(0,0,0,0.08)", { rx: 2 }) + ShapeUtil.rect(
|
|
13
|
+
-30,
|
|
14
|
+
-46,
|
|
15
|
+
60,
|
|
16
|
+
46,
|
|
17
|
+
theme.woodDark,
|
|
18
|
+
{ rx: 2 }
|
|
19
|
+
) + ShapeUtil.rect(-25, -41, 50, 36, theme.paper) + `<path d="M-25 -5 L-8 -26 L2 -15 L10 -24 L25 -5 Z" fill="${theme.secondary}"/><path d="M-8 -26 L2 -15 L-4 -5 L-14 -5 Z" fill="${ColorUtil.sh(theme.secondary, -0.15)}"/>` + ShapeUtil.circle(12, -32, 4, theme.accent);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
export {
|
|
23
|
+
FrameAsset
|
|
24
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { AssetParams, Theme } from "../../Protocols/AssetProtocol.js";
|
|
2
|
+
import { BaseAsset } from "./BaseAsset.js";
|
|
3
|
+
export declare class FruitBowlAsset extends BaseAsset {
|
|
4
|
+
readonly id = "fruit_bowl";
|
|
5
|
+
readonly kind = "surface";
|
|
6
|
+
readonly width = 34;
|
|
7
|
+
readonly height = 22;
|
|
8
|
+
readonly tags: string[];
|
|
9
|
+
draw(params: AssetParams, theme: Theme): string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ColorUtil } from "../../Utils/ColorUtil.js";
|
|
2
|
+
import { BaseAsset } from "./BaseAsset.js";
|
|
3
|
+
import { ShapeUtil } from "../../Utils/ShapeUtil.js";
|
|
4
|
+
class FruitBowlAsset extends BaseAsset {
|
|
5
|
+
id = "fruit_bowl";
|
|
6
|
+
kind = "surface";
|
|
7
|
+
width = 34;
|
|
8
|
+
height = 22;
|
|
9
|
+
tags = ["frutas", "fruteira", "fruit"];
|
|
10
|
+
draw(params, theme) {
|
|
11
|
+
return ShapeUtil.circle(-7, -14, 6, theme.primary) + ShapeUtil.circle(6, -14, 6, theme.accent) + ShapeUtil.circle(0, -19, 6, "#8DBA4A") + ShapeUtil.circle(-2, -21, 1.5, "#FFFFFF", 'opacity="0.4"') + `<path d="M-6 -24 L-5 -27" stroke="${theme.trunk}" stroke-width="1.5"/><path d="M-17 -12 L17 -12 Q15 0 0 0 Q-15 0 -17 -12 Z" fill="${theme.secondary}"/><path d="M4 -12 L17 -12 Q15 0 3 0 Z" fill="${ColorUtil.sh(theme.secondary, -0.15)}"/>`;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
FruitBowlAsset
|
|
16
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { AssetParams, Theme } from "../../Protocols/AssetProtocol.js";
|
|
2
|
+
import { BaseAsset } from "./BaseAsset.js";
|
|
3
|
+
export declare class GlassShelfAsset extends BaseAsset {
|
|
4
|
+
readonly id = "glass_shelf";
|
|
5
|
+
readonly kind = "ground";
|
|
6
|
+
readonly isHollow = true;
|
|
7
|
+
readonly width = 14;
|
|
8
|
+
readonly height = 46;
|
|
9
|
+
readonly top = 46;
|
|
10
|
+
readonly tags: string[];
|
|
11
|
+
size(params: AssetParams): {
|
|
12
|
+
w: number;
|
|
13
|
+
h: number;
|
|
14
|
+
};
|
|
15
|
+
topOf(params: AssetParams): number;
|
|
16
|
+
draw(params: AssetParams, theme: Theme): string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ColorUtil } from "../../Utils/ColorUtil.js";
|
|
2
|
+
import { BaseAsset } from "./BaseAsset.js";
|
|
3
|
+
import { ShapeUtil } from "../../Utils/ShapeUtil.js";
|
|
4
|
+
class GlassShelfAsset extends BaseAsset {
|
|
5
|
+
id = "glass_shelf";
|
|
6
|
+
kind = "ground";
|
|
7
|
+
isHollow = true;
|
|
8
|
+
width = 14;
|
|
9
|
+
height = 46;
|
|
10
|
+
top = 46;
|
|
11
|
+
tags = ["prateleira de vidro", "vidro", "glass shelf"];
|
|
12
|
+
size(params) {
|
|
13
|
+
return { w: params.width ?? 14, h: params.height ?? 46 };
|
|
14
|
+
}
|
|
15
|
+
topOf(params) {
|
|
16
|
+
return params.height ?? 46;
|
|
17
|
+
}
|
|
18
|
+
draw(params, theme) {
|
|
19
|
+
const wide = params.width ?? 14, tall = params.height ?? 46;
|
|
20
|
+
return `<path d="M${-wide / 2} ${-tall + 1.6} L${wide / 2} ${-tall + 1.6} L${wide / 2} ${-tall} L${-wide / 2 + 2} ${-tall} Z" fill="${theme.glass}" opacity="0.55"/><path d="M${-wide / 2} ${-tall + 1.6} L${wide / 2} ${-tall + 1.6}" stroke="${ColorUtil.sh(theme.glass, -0.35)}" stroke-width="0.5"/>` + ShapeUtil.rect(-wide / 2, -tall + 1.6, wide, 1.2, theme.ink, { rx: 0, extra: 'opacity="0.08"' });
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
GlassShelfAsset
|
|
25
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { AssetParams, Theme } from "../../Protocols/AssetProtocol.js";
|
|
2
|
+
import { BaseAsset } from "./BaseAsset.js";
|
|
3
|
+
export declare class GlobeAsset extends BaseAsset {
|
|
4
|
+
readonly id = "globe";
|
|
5
|
+
readonly kind = "surface";
|
|
6
|
+
readonly width = 36;
|
|
7
|
+
readonly height = 50;
|
|
8
|
+
readonly tags: string[];
|
|
9
|
+
draw(params: AssetParams, theme: Theme): string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BaseAsset } from "./BaseAsset.js";
|
|
2
|
+
import { ShapeUtil } from "../../Utils/ShapeUtil.js";
|
|
3
|
+
class GlobeAsset extends BaseAsset {
|
|
4
|
+
id = "globe";
|
|
5
|
+
kind = "surface";
|
|
6
|
+
width = 36;
|
|
7
|
+
height = 50;
|
|
8
|
+
tags = ["globo", "globo_terrestre", "globe", "earth", "world_map"];
|
|
9
|
+
draw(params, theme) {
|
|
10
|
+
const metal = theme.metal;
|
|
11
|
+
const ocean = ShapeUtil.color(theme, params.color, "#3B82F6");
|
|
12
|
+
const land = theme.accent;
|
|
13
|
+
return ShapeUtil.rect(-10, -4, 20, 4, metal, { rx: 2 }) + ShapeUtil.rect(-2, -14, 4, 10, metal) + `<path d="M0 -14 A16 16 0 0 1 -14 -32" stroke="${metal}" stroke-width="2.5" fill="none"/>` + ShapeUtil.circle(0, -32, 14, ocean) + `<path d="M-8 -36 Q-2 -42 4 -38 Q8 -34 2 -30 Q-6 -26 -8 -36 Z" fill="${land}"/><path d="M-4 -26 Q2 -22 6 -24 Q8 -20 2 -18 Z" fill="${land}"/>` + ShapeUtil.circle(0, -32, 14, "none", 'stroke="rgba(255,255,255,0.3)" stroke-width="1"');
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
GlobeAsset
|
|
18
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { AssetParams, Theme } from "../../Protocols/AssetProtocol.js";
|
|
2
|
+
import { BaseAsset } from "./BaseAsset.js";
|
|
3
|
+
export declare class HeadphonesAsset extends BaseAsset {
|
|
4
|
+
readonly id = "headphones";
|
|
5
|
+
readonly kind = "surface";
|
|
6
|
+
readonly width = 10;
|
|
7
|
+
readonly height = 9;
|
|
8
|
+
readonly tags: string[];
|
|
9
|
+
draw(params: AssetParams, theme: Theme): string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ColorUtil } from "../../Utils/ColorUtil.js";
|
|
2
|
+
import { BaseAsset } from "./BaseAsset.js";
|
|
3
|
+
import { ShapeUtil } from "../../Utils/ShapeUtil.js";
|
|
4
|
+
class HeadphonesAsset extends BaseAsset {
|
|
5
|
+
id = "headphones";
|
|
6
|
+
kind = "surface";
|
|
7
|
+
width = 10;
|
|
8
|
+
height = 9;
|
|
9
|
+
tags = ["fone", "headset", "fone de ouvido"];
|
|
10
|
+
draw(params, theme) {
|
|
11
|
+
const mainColor = ShapeUtil.color(theme, params.color, theme.ink);
|
|
12
|
+
return `<path d="M-4.5 -2.5 Q-4.5 -9 0 -9 Q4.5 -9 4.5 -2.5" stroke="${mainColor}" stroke-width="1.3" fill="none"/>` + ShapeUtil.ellipse(-4.2, -2.3, 2.3, 2.6, mainColor) + ShapeUtil.ellipse(
|
|
13
|
+
4.2,
|
|
14
|
+
-2.3,
|
|
15
|
+
2.3,
|
|
16
|
+
2.6,
|
|
17
|
+
ColorUtil.sh(mainColor, 0.15)
|
|
18
|
+
) + (params.mic !== false ? `<path d="M-5.5 -3 Q-9 -6 -7.5 -11" stroke="${mainColor}" stroke-width="0.7" fill="none"/>` + ShapeUtil.circle(-7.5, -11.2, 0.8, mainColor) : "");
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
HeadphonesAsset
|
|
23
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { AssetParams, Theme } from "../../Protocols/AssetProtocol.js";
|
|
2
|
+
import { BaseAsset } from "./BaseAsset.js";
|
|
3
|
+
export declare class HouseAsset extends BaseAsset {
|
|
4
|
+
readonly id = "house";
|
|
5
|
+
readonly kind = "ground";
|
|
6
|
+
readonly width = 160;
|
|
7
|
+
readonly height = 175;
|
|
8
|
+
readonly tags: string[];
|
|
9
|
+
draw(params: AssetParams, theme: Theme): string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { ColorUtil } from "../../Utils/ColorUtil.js";
|
|
2
|
+
import { BaseAsset } from "./BaseAsset.js";
|
|
3
|
+
import { DetailUtil } from "../../Utils/DetailUtil.js";
|
|
4
|
+
import { ShapeUtil } from "../../Utils/ShapeUtil.js";
|
|
5
|
+
class HouseAsset extends BaseAsset {
|
|
6
|
+
id = "house";
|
|
7
|
+
kind = "ground";
|
|
8
|
+
width = 160;
|
|
9
|
+
height = 175;
|
|
10
|
+
tags = ["casa", "home"];
|
|
11
|
+
draw(params, theme) {
|
|
12
|
+
const body = ShapeUtil.color(theme, params.color, theme.primary);
|
|
13
|
+
const roof = theme.secondary;
|
|
14
|
+
const rank = DetailUtil.rankOf(params.detail);
|
|
15
|
+
const hasParts = rank >= 1;
|
|
16
|
+
const isHigh = rank >= 2;
|
|
17
|
+
const windows = [[-52, -80], [26, -80]];
|
|
18
|
+
const shingles = isHigh ? `<path d="${[-105, -115, -125, -135, -145, -155].map((row) => {
|
|
19
|
+
const half = (170 + row) * 80 / 75 - 4;
|
|
20
|
+
return `M${-half} ${row} L${half} ${row}`;
|
|
21
|
+
}).join(" ")}" stroke="${ColorUtil.sh(roof, -0.22)}" stroke-width="0.8" fill="none" stroke-linecap="round"/>` : "";
|
|
22
|
+
const siding = isHigh ? `<path d="M-63 -88 L63 -88 M-63 -76 L-54 -76 M-24 -76 L24 -76 M-63 -52 L-17 -52 M17 -52 L63 -52 M-63 -40 L-17 -40 M17 -40 L63 -40 M-63 -28 L-17 -28 M17 -28 L63 -28 M-63 -16 L-17 -16 M17 -16 L63 -16" stroke="${ColorUtil.sh(body, -0.12)}" stroke-width="0.6" fill="none"/>` : "";
|
|
23
|
+
const door = isHigh ? `<path d="M-10 -48 L-2 -48 L-2 -30 L-10 -30 Z M-10 -26 L-2 -26 L-2 -8 L-10 -8 Z" stroke="${ColorUtil.sh(theme.woodDark, -0.25)}" stroke-width="0.8" fill="none"/>` : "";
|
|
24
|
+
const glass = (posX, posY) => {
|
|
25
|
+
const sheen = hasParts ? `<path d="M${posX + 4} ${posY + 18} L${posX + 14} ${posY + 4}" stroke="${theme.paper}" stroke-width="2.5" opacity="0.6"/>` : "";
|
|
26
|
+
const mullion = isHigh ? `<path d="M${posX + 13} ${posY} L${posX + 13} ${posY + 24} M${posX} ${posY + 12} L${posX + 26} ${posY + 12}" stroke="${theme.paper}" stroke-width="1.5"/>` : "";
|
|
27
|
+
const sill = hasParts ? ShapeUtil.rect(posX - 3, posY + 24, 32, 3, theme.paper, { rx: 1 }) : "";
|
|
28
|
+
return ShapeUtil.rect(posX, posY, 26, 24, theme.glass, {
|
|
29
|
+
rx: 2,
|
|
30
|
+
extra: `stroke="${theme.paper}" stroke-width="3"`
|
|
31
|
+
}) + sheen + mullion + sill;
|
|
32
|
+
};
|
|
33
|
+
return ShapeUtil.shadow(theme, 88, 5) + (hasParts ? ShapeUtil.rect(40, -150, 16, 32, theme.woodDark) + ShapeUtil.rect(
|
|
34
|
+
48,
|
|
35
|
+
-150,
|
|
36
|
+
8,
|
|
37
|
+
32,
|
|
38
|
+
ColorUtil.sh(theme.woodDark, -0.2)
|
|
39
|
+
) + ShapeUtil.rect(
|
|
40
|
+
38,
|
|
41
|
+
-154,
|
|
42
|
+
20,
|
|
43
|
+
6,
|
|
44
|
+
ColorUtil.sh(theme.woodDark, -0.1),
|
|
45
|
+
{ rx: 1 }
|
|
46
|
+
) : ShapeUtil.rect(40, -150, 16, 32, theme.woodDark)) + ShapeUtil.rect(-65, -100, 130, 100, body) + ShapeUtil.rect(25, -100, 40, 100, ColorUtil.sh(body, -0.12)) + siding + `<path d="M-65 -100 L65 -100 L65 -92 L-65 -92 Z" fill="${ColorUtil.sh(body, -0.28)}" opacity="0.6"/><path d="M-80 -95 L0 -170 L80 -95 Z" fill="${roof}"/><path d="M0 -170 L80 -95 L40 -95 Z" fill="${ColorUtil.sh(roof, -0.18)}"/>` + shingles + (hasParts ? `<path d="M-84 -92 L0 -172 L84 -92" stroke="${ColorUtil.sh(roof, -0.3)}" stroke-width="5" fill="none" stroke-linejoin="round" stroke-linecap="round"/>` : "") + ShapeUtil.rect(-15, -56, 30, 56, theme.woodDark, { rx: 3 }) + ShapeUtil.rect(
|
|
47
|
+
2,
|
|
48
|
+
-56,
|
|
49
|
+
13,
|
|
50
|
+
56,
|
|
51
|
+
ColorUtil.sh(theme.woodDark, -0.15),
|
|
52
|
+
{ rx: 0 }
|
|
53
|
+
) + (hasParts ? ShapeUtil.circle(9, -28, 2, theme.accent) : "") + door + (hasParts ? ShapeUtil.rect(-19, -2, 38, 3, ColorUtil.sh(body, -0.35)) : "") + windows.map(([posX, posY]) => glass(posX, posY)).join("") + ShapeUtil.circle(0, -122, 9, theme.glass, `stroke="${theme.paper}" stroke-width="3"`);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
export {
|
|
57
|
+
HouseAsset
|
|
58
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { AssetParams, Theme } from "../../Protocols/AssetProtocol.js";
|
|
2
|
+
import { BaseAsset } from "./BaseAsset.js";
|
|
3
|
+
export declare class LabAsset extends BaseAsset {
|
|
4
|
+
readonly id = "lab";
|
|
5
|
+
readonly kind = "ground";
|
|
6
|
+
readonly width = 160;
|
|
7
|
+
readonly height = 140;
|
|
8
|
+
readonly tags: string[];
|
|
9
|
+
draw(params: AssetParams, theme: Theme): string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { ColorUtil } from "../../Utils/ColorUtil.js";
|
|
2
|
+
import { BaseAsset } from "./BaseAsset.js";
|
|
3
|
+
import { ShapeUtil } from "../../Utils/ShapeUtil.js";
|
|
4
|
+
class LabAsset extends BaseAsset {
|
|
5
|
+
id = "lab";
|
|
6
|
+
kind = "ground";
|
|
7
|
+
width = 160;
|
|
8
|
+
height = 140;
|
|
9
|
+
tags = ["laborat\xF3rio", "laboratorio", "centro de pesquisa", "research"];
|
|
10
|
+
draw(params, theme) {
|
|
11
|
+
const mainColor = ShapeUtil.color(theme, params.color, theme.secondary);
|
|
12
|
+
let svg = ShapeUtil.shadow(theme, 86, 5) + ShapeUtil.rect(-80, -100, 160, 100, mainColor) + ShapeUtil.rect(
|
|
13
|
+
30,
|
|
14
|
+
-100,
|
|
15
|
+
50,
|
|
16
|
+
100,
|
|
17
|
+
ColorUtil.sh(mainColor, -0.14)
|
|
18
|
+
) + ShapeUtil.rect(-84, -106, 168, 8, ColorUtil.sh(mainColor, -0.3));
|
|
19
|
+
for (let posY = -88; posY < -20; posY += 22) {
|
|
20
|
+
for (let posX = -70; posX < 70; posX += 24) {
|
|
21
|
+
svg += ShapeUtil.rect(
|
|
22
|
+
posX,
|
|
23
|
+
posY,
|
|
24
|
+
18,
|
|
25
|
+
14,
|
|
26
|
+
theme.glass,
|
|
27
|
+
{ rx: 1 }
|
|
28
|
+
) + ShapeUtil.rect(posX, posY + 10, 18, 4, ColorUtil.sh(
|
|
29
|
+
theme.glass,
|
|
30
|
+
-0.12
|
|
31
|
+
));
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
svg += ShapeUtil.rect(-16, -30, 32, 30, ColorUtil.sh(mainColor, -0.35), { rx: 2 }) + ShapeUtil.rect(
|
|
35
|
+
-14,
|
|
36
|
+
-28,
|
|
37
|
+
13,
|
|
38
|
+
28,
|
|
39
|
+
theme.glass,
|
|
40
|
+
{ rx: 1, extra: 'opacity="0.8"' }
|
|
41
|
+
) + ShapeUtil.rect(1, -28, 13, 28, theme.glass, {
|
|
42
|
+
rx: 1,
|
|
43
|
+
extra: 'opacity="0.8"'
|
|
44
|
+
});
|
|
45
|
+
svg += `<path d="M30 -106 A26 26 0 0 1 82 -106 Z" fill="${theme.metal}"/><path d="M56 -132 A26 26 0 0 1 82 -106 L56 -106 Z" fill="${ColorUtil.sh(theme.metal, -0.15)}"/><path d="M52 -128 L70 -140" stroke="${theme.ink}" stroke-width="4" stroke-linecap="round"/>`;
|
|
46
|
+
svg += ShapeUtil.rect(-60, -128, 54, 20, theme.paper, { rx: 4 }) + `<path d="M-46 -125 L-46 -119 L-51 -111 L-37 -111 L-42 -119 L-42 -125 Z" fill="${theme.accent}"/>` + ShapeUtil.rect(-33, -121, 22, 3, theme.ink, { rx: 1 }) + ShapeUtil.rect(-33, -115, 16, 3, theme.ink, { rx: 1 });
|
|
47
|
+
return svg;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
export {
|
|
51
|
+
LabAsset
|
|
52
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { AssetParams, Theme } from "../../Protocols/AssetProtocol.js";
|
|
2
|
+
import { BaseAsset } from "./BaseAsset.js";
|
|
3
|
+
export declare class LampAsset extends BaseAsset {
|
|
4
|
+
readonly id = "lamp";
|
|
5
|
+
readonly kind = "surface";
|
|
6
|
+
readonly width = 30;
|
|
7
|
+
readonly height = 42;
|
|
8
|
+
readonly tags: string[];
|
|
9
|
+
draw(params: AssetParams, theme: Theme): string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ColorUtil } from "../../Utils/ColorUtil.js";
|
|
2
|
+
import { BaseAsset } from "./BaseAsset.js";
|
|
3
|
+
import { ShapeUtil } from "../../Utils/ShapeUtil.js";
|
|
4
|
+
class LampAsset extends BaseAsset {
|
|
5
|
+
id = "lamp";
|
|
6
|
+
kind = "surface";
|
|
7
|
+
width = 30;
|
|
8
|
+
height = 42;
|
|
9
|
+
tags = ["lumin\xE1ria", "luminaria", "desk_lamp"];
|
|
10
|
+
draw(params, theme) {
|
|
11
|
+
return ShapeUtil.rect(-10, -3, 20, 3, theme.ink, { rx: 1.5 }) + `<path d="M-2 -3 L-8 -26 L8 -36" stroke="${theme.ink}" stroke-width="2.5" fill="none" stroke-linejoin="round"/><path d="M2 -42 L18 -30 L10 -24 Z" fill="${theme.accent}"/><path d="M10 -36 L18 -30 L10 -24 Z" fill="${ColorUtil.sh(theme.accent, -0.15)}"/><path d="M14 -27 L26 -2 L-2 -2 Z" fill="${theme.accent}" opacity="0.13"/>`;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
LampAsset
|
|
16
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { AssetParams, Theme } from "../../Protocols/AssetProtocol.js";
|
|
2
|
+
import { BaseAsset } from "./BaseAsset.js";
|
|
3
|
+
export declare class LaptopAsset extends BaseAsset {
|
|
4
|
+
readonly id = "laptop";
|
|
5
|
+
readonly kind = "surface";
|
|
6
|
+
readonly width = 34;
|
|
7
|
+
readonly height = 24;
|
|
8
|
+
readonly tags: string[];
|
|
9
|
+
draw(params: AssetParams, theme: Theme): string;
|
|
10
|
+
}
|