@adminide-stack/yantra-mobile 12.0.187 → 12.0.188-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/assets/canvas/apps/holiday-clip/christmas_photo_shoot.webp +0 -0
- package/lib/assets/canvas/apps/holiday-clip/instant_christmas.webp +0 -0
- package/lib/assets/canvas/apps/holiday-clip/jumping_ginger_joy.webp +0 -0
- package/lib/assets/canvas/apps/holiday-clip/my_santa_pic.webp +0 -0
- package/lib/assets/canvas/apps/holiday-clip/ornament_crash.webp +0 -0
- package/lib/assets/canvas/apps/holiday-clip/santa_express.webp +0 -0
- package/lib/assets/canvas/apps/holiday-clip/santa_gift.webp +0 -0
- package/lib/assets/canvas/apps/micro-beasts/alpacas.webp +0 -0
- package/lib/assets/canvas/apps/micro-beasts/bunnies.webp +0 -0
- package/lib/assets/canvas/apps/micro-beasts/ducklings.webp +0 -0
- package/lib/assets/canvas/apps/micro-beasts/fawns.webp +0 -0
- package/lib/assets/canvas/apps/micro-beasts/fox-cubs.webp +0 -0
- package/lib/assets/canvas/apps/micro-beasts/hedgehogs.webp +0 -0
- package/lib/assets/canvas/apps/micro-beasts/kittens.webp +0 -0
- package/lib/assets/canvas/apps/micro-beasts/lambs.webp +0 -0
- package/lib/assets/canvas/apps/micro-beasts/mix.webp +0 -0
- package/lib/assets/canvas/apps/micro-beasts/otters.webp +0 -0
- package/lib/assets/canvas/apps/micro-beasts/owlets.webp +0 -0
- package/lib/assets/canvas/apps/micro-beasts/penguins.webp +0 -0
- package/lib/assets/canvas/apps/micro-beasts/piglets.webp +0 -0
- package/lib/assets/canvas/apps/micro-beasts/puppies.webp +0 -0
- package/lib/assets/canvas/apps/micro-beasts/red-pandas.webp +0 -0
- package/lib/assets/canvas/apps/monster-makeover/cute_pumpkin_transform.webp +0 -0
- package/lib/assets/canvas/apps/monster-makeover/demon_transform.webp +0 -0
- package/lib/assets/canvas/apps/monster-makeover/mummy_transform.webp +0 -0
- package/lib/assets/canvas/apps/monster-makeover/pumpkin_head_transform.webp +0 -0
- package/lib/assets/canvas/apps/monster-makeover/vampire_transform.webp +0 -0
- package/lib/assets/canvas/apps/monster-makeover/witch_transform.webp +0 -0
- package/lib/assets/canvas/apps/monster-makeover/zombie_transform.webp +0 -0
- package/lib/assets/canvas/apps/party-clip/birthday_star.webp +0 -0
- package/lib/assets/canvas/apps/party-clip/bouquet_drop.webp +0 -0
- package/lib/assets/canvas/apps/party-clip/box_of_joy.webp +0 -0
- package/lib/assets/canvas/apps/party-clip/happy_birthday.webp +0 -0
- package/lib/assets/canvas/apps/party-clip/surprise_bouquet.webp +0 -0
- package/lib/assets/canvas/apps/pet-tricks/drunk_dance_pet.webp +0 -0
- package/lib/assets/canvas/apps/pet-tricks/pet_bee_pro.webp +0 -0
- package/lib/assets/canvas/apps/pet-tricks/pet_lion_pro.webp +0 -0
- package/lib/assets/canvas/cinematic/era/contemporary.webp +0 -0
- package/lib/assets/canvas/cinematic/era/digital-2000s.webp +0 -0
- package/lib/assets/canvas/cinematic/era/dye-transfer-50s.webp +0 -0
- package/lib/assets/canvas/cinematic/era/far-future.webp +0 -0
- package/lib/assets/canvas/cinematic/era/golden-age.webp +0 -0
- package/lib/assets/canvas/cinematic/era/gritty-70s.webp +0 -0
- package/lib/assets/canvas/cinematic/era/indie-90s.webp +0 -0
- package/lib/assets/canvas/cinematic/era/near-future.webp +0 -0
- package/lib/assets/canvas/cinematic/era/neon-80s.webp +0 -0
- package/lib/assets/canvas/cinematic/era/new-wave.webp +0 -0
- package/lib/assets/canvas/cinematic/era/silent-era.webp +0 -0
- package/lib/assets/canvas/cinematic/era/victorian.webp +0 -0
- package/lib/assets/canvas/cinematic/genre/action.webp +0 -0
- package/lib/assets/canvas/cinematic/genre/adventure.webp +0 -0
- package/lib/assets/canvas/cinematic/genre/comedy.webp +0 -0
- package/lib/assets/canvas/cinematic/genre/coming-of-age.webp +0 -0
- package/lib/assets/canvas/cinematic/genre/documentary.webp +0 -0
- package/lib/assets/canvas/cinematic/genre/drama.webp +0 -0
- package/lib/assets/canvas/cinematic/genre/epic.webp +0 -0
- package/lib/assets/canvas/cinematic/genre/fantasy.webp +0 -0
- package/lib/assets/canvas/cinematic/genre/horror.webp +0 -0
- package/lib/assets/canvas/cinematic/genre/musical.webp +0 -0
- package/lib/assets/canvas/cinematic/genre/mystery.webp +0 -0
- package/lib/assets/canvas/cinematic/genre/noir.webp +0 -0
- package/lib/assets/canvas/cinematic/genre/romance.webp +0 -0
- package/lib/assets/canvas/cinematic/genre/sci-fi.webp +0 -0
- package/lib/assets/canvas/cinematic/genre/thriller.webp +0 -0
- package/lib/assets/canvas/cinematic/genre/western.webp +0 -0
- package/lib/assets/canvas/cinematic/lighting/backlit.webp +0 -0
- package/lib/assets/canvas/cinematic/lighting/blue-hour.webp +0 -0
- package/lib/assets/canvas/cinematic/lighting/candlelight.webp +0 -0
- package/lib/assets/canvas/cinematic/lighting/daylight.webp +0 -0
- package/lib/assets/canvas/cinematic/lighting/golden-hour.webp +0 -0
- package/lib/assets/canvas/cinematic/lighting/hard-sun.webp +0 -0
- package/lib/assets/canvas/cinematic/lighting/high-key.webp +0 -0
- package/lib/assets/canvas/cinematic/lighting/low-key.webp +0 -0
- package/lib/assets/canvas/cinematic/lighting/moonlight.webp +0 -0
- package/lib/assets/canvas/cinematic/lighting/neon-practicals.webp +0 -0
- package/lib/assets/canvas/cinematic/lighting/overcast.webp +0 -0
- package/lib/assets/canvas/cinematic/lighting/overhead.webp +0 -0
- package/lib/assets/canvas/cinematic/lighting/practicals.webp +0 -0
- package/lib/assets/canvas/cinematic/lighting/silhouette.webp +0 -0
- package/lib/assets/canvas/cinematic/lighting/soft-cross.webp +0 -0
- package/lib/assets/canvas/cinematic/lighting/three-point.webp +0 -0
- package/lib/assets/canvas/cinematic/lighting/window-light.webp +0 -0
- package/lib/assets/canvas/cinematic/stock/16mm.webp +0 -0
- package/lib/assets/canvas/cinematic/stock/35mm-film.webp +0 -0
- package/lib/assets/canvas/cinematic/stock/70mm-large-format.webp +0 -0
- package/lib/assets/canvas/cinematic/stock/70s-zoom.webp +0 -0
- package/lib/assets/canvas/cinematic/stock/anamorphic.webp +0 -0
- package/lib/assets/canvas/cinematic/stock/black-and-white-film.webp +0 -0
- package/lib/assets/canvas/cinematic/stock/clean-sharp-prime.webp +0 -0
- package/lib/assets/canvas/cinematic/stock/disposable-camera.webp +0 -0
- package/lib/assets/canvas/cinematic/stock/dv-camcorder.webp +0 -0
- package/lib/assets/canvas/cinematic/stock/fisheye.webp +0 -0
- package/lib/assets/canvas/cinematic/stock/halation.webp +0 -0
- package/lib/assets/canvas/cinematic/stock/instant-film.webp +0 -0
- package/lib/assets/canvas/cinematic/stock/large-format-digital.webp +0 -0
- package/lib/assets/canvas/cinematic/stock/macro.webp +0 -0
- package/lib/assets/canvas/cinematic/stock/medium-format.webp +0 -0
- package/lib/assets/canvas/cinematic/stock/modern-digital.webp +0 -0
- package/lib/assets/canvas/cinematic/stock/pinhole.webp +0 -0
- package/lib/assets/canvas/cinematic/stock/soft-focus.webp +0 -0
- package/lib/assets/canvas/cinematic/stock/super-35.webp +0 -0
- package/lib/assets/canvas/cinematic/stock/super-8.webp +0 -0
- package/lib/assets/canvas/cinematic/stock/swirl-bokeh.webp +0 -0
- package/lib/assets/canvas/cinematic/stock/tilt-shift.webp +0 -0
- package/lib/assets/canvas/cinematic/stock/vintage-anamorphic.webp +0 -0
- package/lib/assets/canvas/cinematic/stock/vintage-prime.webp +0 -0
- package/lib/assets/canvas/cinematic/stock/warm-cinema-prime.webp +0 -0
- package/lib/assets/canvas/stylize/animated_series.webp +0 -0
- package/lib/assets/canvas/stylize/anime.webp +0 -0
- package/lib/assets/canvas/stylize/anime_character.webp +0 -0
- package/lib/assets/canvas/stylize/anime_game_style.webp +0 -0
- package/lib/assets/canvas/stylize/art_nouveau.webp +0 -0
- package/lib/assets/canvas/stylize/baroque.webp +0 -0
- package/lib/assets/canvas/stylize/black_and_white_film.webp +0 -0
- package/lib/assets/canvas/stylize/blueprint.webp +0 -0
- package/lib/assets/canvas/stylize/brick_toy.webp +0 -0
- package/lib/assets/canvas/stylize/cartoon_3d.webp +0 -0
- package/lib/assets/canvas/stylize/cartoon_animation.webp +0 -0
- package/lib/assets/canvas/stylize/cartoon_portrait.webp +0 -0
- package/lib/assets/canvas/stylize/celestial.webp +0 -0
- package/lib/assets/canvas/stylize/chalk_pastel.webp +0 -0
- package/lib/assets/canvas/stylize/charcoal.webp +0 -0
- package/lib/assets/canvas/stylize/chibi.webp +0 -0
- package/lib/assets/canvas/stylize/cinematic_still.webp +0 -0
- package/lib/assets/canvas/stylize/claymation.webp +0 -0
- package/lib/assets/canvas/stylize/colored_pencil.webp +0 -0
- package/lib/assets/canvas/stylize/comic_book_animation.webp +0 -0
- package/lib/assets/canvas/stylize/cottagecore.webp +0 -0
- package/lib/assets/canvas/stylize/crayon.webp +0 -0
- package/lib/assets/canvas/stylize/cubism.webp +0 -0
- package/lib/assets/canvas/stylize/dark_academia.webp +0 -0
- package/lib/assets/canvas/stylize/dark_fantasy.webp +0 -0
- package/lib/assets/canvas/stylize/disposable_camera.webp +0 -0
- package/lib/assets/canvas/stylize/double_exposure.webp +0 -0
- package/lib/assets/canvas/stylize/dreamcore.webp +0 -0
- package/lib/assets/canvas/stylize/etching.webp +0 -0
- package/lib/assets/canvas/stylize/expired_film.webp +0 -0
- package/lib/assets/canvas/stylize/expressionism.webp +0 -0
- package/lib/assets/canvas/stylize/fairy_tale.webp +0 -0
- package/lib/assets/canvas/stylize/fashion_editorial.webp +0 -0
- package/lib/assets/canvas/stylize/fauvism.webp +0 -0
- package/lib/assets/canvas/stylize/film_noir.webp +0 -0
- package/lib/assets/canvas/stylize/flat_vector.webp +0 -0
- package/lib/assets/canvas/stylize/folk_art.webp +0 -0
- package/lib/assets/canvas/stylize/fresco.webp +0 -0
- package/lib/assets/canvas/stylize/glass_sculpture.webp +0 -0
- package/lib/assets/canvas/stylize/gothic.webp +0 -0
- package/lib/assets/canvas/stylize/gouache.webp +0 -0
- package/lib/assets/canvas/stylize/grunge_zine.webp +0 -0
- package/lib/assets/canvas/stylize/hand_drawn_animation.webp +0 -0
- package/lib/assets/canvas/stylize/hyperrealistic.webp +0 -0
- package/lib/assets/canvas/stylize/impressionist.webp +0 -0
- package/lib/assets/canvas/stylize/ink_wash.webp +0 -0
- package/lib/assets/canvas/stylize/instant_photo.webp +0 -0
- package/lib/assets/canvas/stylize/isometric.webp +0 -0
- package/lib/assets/canvas/stylize/kawaii.webp +0 -0
- package/lib/assets/canvas/stylize/liminal_space.webp +0 -0
- package/lib/assets/canvas/stylize/line_art.webp +0 -0
- package/lib/assets/canvas/stylize/linocut.webp +0 -0
- package/lib/assets/canvas/stylize/liquid_chrome.webp +0 -0
- package/lib/assets/canvas/stylize/lofi_aesthetic.webp +0 -0
- package/lib/assets/canvas/stylize/low_poly.webp +0 -0
- package/lib/assets/canvas/stylize/manga_ink.webp +0 -0
- package/lib/assets/canvas/stylize/miniature.webp +0 -0
- package/lib/assets/canvas/stylize/oil_painting.webp +0 -0
- package/lib/assets/canvas/stylize/pen_and_ink.webp +0 -0
- package/lib/assets/canvas/stylize/pencil_sketch.webp +0 -0
- package/lib/assets/canvas/stylize/photorealistic.webp +0 -0
- package/lib/assets/canvas/stylize/pointillism.webp +0 -0
- package/lib/assets/canvas/stylize/pop_art.webp +0 -0
- package/lib/assets/canvas/stylize/post_impressionist.webp +0 -0
- package/lib/assets/canvas/stylize/renaissance.webp +0 -0
- package/lib/assets/canvas/stylize/risograph.webp +0 -0
- package/lib/assets/canvas/stylize/romantic_landscape.webp +0 -0
- package/lib/assets/canvas/stylize/screen_print.webp +0 -0
- package/lib/assets/canvas/stylize/sepia_photo.webp +0 -0
- package/lib/assets/canvas/stylize/shoujo_manga.webp +0 -0
- package/lib/assets/canvas/stylize/storybook.webp +0 -0
- package/lib/assets/canvas/stylize/surrealism.webp +0 -0
- package/lib/assets/canvas/stylize/tarot_card.webp +0 -0
- package/lib/assets/canvas/stylize/tintype.webp +0 -0
- package/lib/assets/canvas/stylize/video_tape.webp +0 -0
- package/lib/assets/canvas/stylize/vintage_cartoon.webp +0 -0
- package/lib/assets/canvas/stylize/vintage_horror.webp +0 -0
- package/lib/assets/canvas/stylize/vinyl_toy.webp +0 -0
- package/lib/assets/canvas/stylize/voxel_art.webp +0 -0
- package/lib/assets/canvas/stylize/watercolor.webp +0 -0
- package/lib/assets/canvas/stylize/webtoon.webp +0 -0
- package/lib/assets/canvas/stylize/weirdcore.webp +0 -0
- package/lib/assets/canvas/stylize/woodblock_print.webp +0 -0
- package/lib/components/KeyboardComposerDock.js +95 -4
- package/lib/components/KeyboardComposerDock.js.map +1 -1
- package/lib/config/env-config.js +10 -0
- package/lib/config/env-config.js.map +1 -1
- package/lib/contexts/cdecliConnection.js +4 -1
- package/lib/contexts/cdecliConnection.js.map +1 -1
- package/lib/features/agent-chat/NativeAgentChat.js +3 -2
- package/lib/features/agent-chat/NativeAgentChat.js.map +1 -1
- package/lib/features/canvas/CanvasAgentChatPane.js +364 -22
- package/lib/features/canvas/CanvasAgentChatPane.js.map +1 -1
- package/lib/features/canvas/CanvasAppsPanel.js +619 -54
- package/lib/features/canvas/CanvasAppsPanel.js.map +1 -1
- package/lib/features/canvas/CanvasBoardsGrid.js +138 -19
- package/lib/features/canvas/CanvasBoardsGrid.js.map +1 -1
- package/lib/features/canvas/CanvasEditToolsPanel.js +189 -14
- package/lib/features/canvas/CanvasEditToolsPanel.js.map +1 -1
- package/lib/features/canvas/CanvasExperience.js +847 -165
- package/lib/features/canvas/CanvasExperience.js.map +1 -1
- package/lib/features/canvas/CanvasGeneratePanel.js +464 -93
- package/lib/features/canvas/CanvasGeneratePanel.js.map +1 -1
- package/lib/features/canvas/CanvasLibrarySheet.js +506 -18
- package/lib/features/canvas/CanvasLibrarySheet.js.map +1 -1
- package/lib/features/canvas/CanvasToolDock.js +430 -19
- package/lib/features/canvas/CanvasToolDock.js.map +1 -1
- package/lib/features/canvas/ImageEditorExperience.js +212 -20
- package/lib/features/canvas/ImageEditorExperience.js.map +1 -1
- package/lib/features/canvas/InfluencerStudioExperience.js +409 -105
- package/lib/features/canvas/InfluencerStudioExperience.js.map +1 -1
- package/lib/features/canvas/NativeCanvasViewer.js +637 -32
- package/lib/features/canvas/NativeCanvasViewer.js.map +1 -1
- package/lib/features/canvas/PromoContextFields.js +103 -5
- package/lib/features/canvas/PromoContextFields.js.map +1 -1
- package/lib/features/canvas/SetStudioExperience.js +419 -790
- package/lib/features/canvas/SetStudioExperience.js.map +1 -1
- package/lib/features/canvas/VideoClipsExperience.js +20 -186
- package/lib/features/canvas/VideoClipsExperience.js.map +1 -1
- package/lib/features/canvas/VideoEditorExperience.js +308 -55
- package/lib/features/canvas/VideoEditorExperience.js.map +1 -1
- package/lib/features/canvas/VideoGeneratorExperience.js +59 -8
- package/lib/features/canvas/VideoGeneratorExperience.js.map +1 -1
- package/lib/features/canvas/agent/HostChatPane.js +327 -0
- package/lib/features/canvas/agent/HostChatPane.js.map +1 -0
- package/lib/features/canvas/agent/agentBlocks.js +42 -0
- package/lib/features/canvas/agent/agentBlocks.js.map +1 -0
- package/lib/features/canvas/agent/agentPlan.js +120 -0
- package/lib/features/canvas/agent/agentPlan.js.map +1 -0
- package/lib/features/canvas/agent/agentProtocol.js +62 -0
- package/lib/features/canvas/agent/agentProtocol.js.map +1 -0
- package/lib/features/canvas/agent/agentSettings.js +26 -0
- package/lib/features/canvas/agent/agentSettings.js.map +1 -0
- package/lib/features/canvas/agent/boardActions.js +295 -0
- package/lib/features/canvas/agent/boardActions.js.map +1 -0
- package/lib/features/canvas/agent/boardNoteActions.js +139 -0
- package/lib/features/canvas/agent/boardNoteActions.js.map +1 -0
- package/lib/features/canvas/agent/durableSessionGuard.js +145 -0
- package/lib/features/canvas/agent/durableSessionGuard.js.map +1 -0
- package/lib/features/canvas/agent/hostChat.js +19 -0
- package/lib/features/canvas/agent/hostChat.js.map +1 -0
- package/lib/features/canvas/agent/useHostAgent.js +248 -0
- package/lib/features/canvas/agent/useHostAgent.js.map +1 -0
- package/lib/features/canvas/analysis/AnalysisControls.js +487 -0
- package/lib/features/canvas/analysis/AnalysisControls.js.map +1 -0
- package/lib/features/canvas/analysis/ViralityControls.js +349 -0
- package/lib/features/canvas/analysis/ViralityControls.js.map +1 -0
- package/lib/features/canvas/analysis/breakdownActions.js +286 -0
- package/lib/features/canvas/analysis/breakdownActions.js.map +1 -0
- package/lib/features/canvas/analysis/editTextActions.js +131 -0
- package/lib/features/canvas/analysis/editTextActions.js.map +1 -0
- package/lib/features/canvas/analysis/imageReadRpc.js +173 -0
- package/lib/features/canvas/analysis/imageReadRpc.js.map +1 -0
- package/lib/features/canvas/analysis/layerActions.js +265 -0
- package/lib/features/canvas/analysis/layerActions.js.map +1 -0
- package/lib/features/canvas/analysis/panelStore.js +43 -0
- package/lib/features/canvas/analysis/panelStore.js.map +1 -0
- package/lib/features/canvas/analysis/saveFile.js +60 -0
- package/lib/features/canvas/analysis/saveFile.js.map +1 -0
- package/lib/features/canvas/analysis/viralityClips.js +94 -0
- package/lib/features/canvas/analysis/viralityClips.js.map +1 -0
- package/lib/features/canvas/analysis/viralityScore.js +141 -0
- package/lib/features/canvas/analysis/viralityScore.js.map +1 -0
- package/lib/features/canvas/analysis/viralityVision.js +98 -0
- package/lib/features/canvas/analysis/viralityVision.js.map +1 -0
- package/lib/features/canvas/apps/AppHistoryView.js +125 -0
- package/lib/features/canvas/apps/AppHistoryView.js.map +1 -0
- package/lib/features/canvas/apps/AppSheet.js +122 -0
- package/lib/features/canvas/apps/AppSheet.js.map +1 -0
- package/lib/features/canvas/apps/analysisApps.js +44 -0
- package/lib/features/canvas/apps/analysisApps.js.map +1 -0
- package/lib/features/canvas/apps/appClips.js +247 -0
- package/lib/features/canvas/apps/appClips.js.map +1 -0
- package/lib/features/canvas/apps/appHistory.js +116 -0
- package/lib/features/canvas/apps/appHistory.js.map +1 -0
- package/lib/features/canvas/apps/appLink.js +22 -0
- package/lib/features/canvas/apps/appLink.js.map +1 -0
- package/lib/features/canvas/apps/appPreviews.js +50 -0
- package/lib/features/canvas/apps/appPreviews.js.map +1 -0
- package/lib/features/canvas/apps/appWords.js +2 -0
- package/lib/features/canvas/apps/appWords.js.map +1 -0
- package/lib/features/canvas/apps/clipApps.js +285 -0
- package/lib/features/canvas/apps/clipApps.js.map +1 -0
- package/lib/features/canvas/apps/consentApps.js +43 -0
- package/lib/features/canvas/apps/consentApps.js.map +1 -0
- package/lib/features/canvas/apps/lookSets.js +25 -0
- package/lib/features/canvas/apps/lookSets.js.map +1 -0
- package/lib/features/canvas/apps/makerApps.js +34 -0
- package/lib/features/canvas/apps/makerApps.js.map +1 -0
- package/lib/features/canvas/apps/makers/MakerFooter.js +150 -0
- package/lib/features/canvas/apps/makers/MakerFooter.js.map +1 -0
- package/lib/features/canvas/apps/makers/makerStore.js +149 -0
- package/lib/features/canvas/apps/makers/makerStore.js.map +1 -0
- package/lib/features/canvas/apps/meme/MemeMaker.js +285 -0
- package/lib/features/canvas/apps/meme/MemeMaker.js.map +1 -0
- package/lib/features/canvas/apps/meme/memeCaptions.js +46 -0
- package/lib/features/canvas/apps/meme/memeCaptions.js.map +1 -0
- package/lib/features/canvas/apps/meme/memeCharacters.js +64 -0
- package/lib/features/canvas/apps/meme/memeCharacters.js.map +1 -0
- package/lib/features/canvas/apps/meme/memeRun.js +276 -0
- package/lib/features/canvas/apps/meme/memeRun.js.map +1 -0
- package/lib/features/canvas/apps/meme/memeText.js +188 -0
- package/lib/features/canvas/apps/meme/memeText.js.map +1 -0
- package/lib/features/canvas/apps/reels/BeatReel.js +193 -0
- package/lib/features/canvas/apps/reels/BeatReel.js.map +1 -0
- package/lib/features/canvas/apps/reels/audioDecode.js +146 -0
- package/lib/features/canvas/apps/reels/audioDecode.js.map +1 -0
- package/lib/features/canvas/apps/reels/beatCuts.js +185 -0
- package/lib/features/canvas/apps/reels/beatCuts.js.map +1 -0
- package/lib/features/canvas/apps/reels/beats.js +128 -0
- package/lib/features/canvas/apps/reels/beats.js.map +1 -0
- package/lib/features/canvas/apps/reels/reelActions.js +153 -0
- package/lib/features/canvas/apps/reels/reelActions.js.map +1 -0
- package/lib/features/canvas/apps/reels/reelRun.js +235 -0
- package/lib/features/canvas/apps/reels/reelRun.js.map +1 -0
- package/lib/features/canvas/appsCatalog.js +1767 -67
- package/lib/features/canvas/appsCatalog.js.map +1 -1
- package/lib/features/canvas/board/BoardNodesLayer.js +117 -0
- package/lib/features/canvas/board/BoardNodesLayer.js.map +1 -0
- package/lib/features/canvas/board/ItemSheets.js +240 -0
- package/lib/features/canvas/board/ItemSheets.js.map +1 -0
- package/lib/features/canvas/board/MultiSelect.js +163 -0
- package/lib/features/canvas/board/MultiSelect.js.map +1 -0
- package/lib/features/canvas/board/NodeTools.js +525 -0
- package/lib/features/canvas/board/NodeTools.js.map +1 -0
- package/lib/features/canvas/board/boardClipboard.js +266 -0
- package/lib/features/canvas/board/boardClipboard.js.map +1 -0
- package/lib/features/canvas/board/boardPages.js +79 -0
- package/lib/features/canvas/board/boardPages.js.map +1 -0
- package/lib/features/canvas/board/boardSearch.js +152 -0
- package/lib/features/canvas/board/boardSearch.js.map +1 -0
- package/lib/features/canvas/board/folderStore.js +165 -0
- package/lib/features/canvas/board/folderStore.js.map +1 -0
- package/lib/features/canvas/board/geometry.js +45 -0
- package/lib/features/canvas/board/geometry.js.map +1 -0
- package/lib/features/canvas/board/nodes.js +311 -0
- package/lib/features/canvas/board/nodes.js.map +1 -0
- package/lib/features/canvas/board/selection.js +169 -0
- package/lib/features/canvas/board/selection.js.map +1 -0
- package/lib/features/canvas/board/svgSource.js +54 -0
- package/lib/features/canvas/board/svgSource.js.map +1 -0
- package/lib/features/canvas/boardActions.js +99 -9
- package/lib/features/canvas/boardActions.js.map +1 -1
- package/lib/features/canvas/canvasAgentChat.js +16 -8
- package/lib/features/canvas/canvasAgentChat.js.map +1 -1
- package/lib/features/canvas/canvasArtifacts.js +45 -3
- package/lib/features/canvas/canvasArtifacts.js.map +1 -1
- package/lib/features/canvas/canvasCore.js +67 -11
- package/lib/features/canvas/canvasCore.js.map +1 -1
- package/lib/features/canvas/canvasEditOps.js +52 -6
- package/lib/features/canvas/canvasEditOps.js.map +1 -1
- package/lib/features/canvas/canvasTasks.js +4 -4
- package/lib/features/canvas/canvasTasks.js.map +1 -1
- package/lib/features/canvas/characters/CharacterBuilder.js +211 -35
- package/lib/features/canvas/characters/CharacterBuilder.js.map +1 -1
- package/lib/features/canvas/characters/CharacterStudio.js +12 -6
- package/lib/features/canvas/characters/CharacterStudio.js.map +1 -1
- package/lib/features/canvas/characters/DramaTool.js +142 -0
- package/lib/features/canvas/characters/DramaTool.js.map +1 -0
- package/lib/features/canvas/characters/ExploreTool.js +347 -0
- package/lib/features/canvas/characters/ExploreTool.js.map +1 -0
- package/lib/features/canvas/characters/FashionTool.js +212 -0
- package/lib/features/canvas/characters/FashionTool.js.map +1 -0
- package/lib/features/canvas/characters/HostTool.js +303 -0
- package/lib/features/canvas/characters/HostTool.js.map +1 -0
- package/lib/features/canvas/characters/MotionTool.js +198 -0
- package/lib/features/canvas/characters/MotionTool.js.map +1 -0
- package/lib/features/canvas/characters/PhotoDumpTool.js +9 -4
- package/lib/features/canvas/characters/PhotoDumpTool.js.map +1 -1
- package/lib/features/canvas/characters/RunFooter.js.map +1 -1
- package/lib/features/canvas/characters/SpokespersonTool.js +112 -0
- package/lib/features/canvas/characters/SpokespersonTool.js.map +1 -0
- package/lib/features/canvas/characters/StoryFramesTool.js +34 -6
- package/lib/features/canvas/characters/StoryFramesTool.js.map +1 -1
- package/lib/features/canvas/characters/StudioCheck.js +61 -0
- package/lib/features/canvas/characters/StudioCheck.js.map +1 -0
- package/lib/features/canvas/characters/SubjectPicker.js +23 -4
- package/lib/features/canvas/characters/SubjectPicker.js.map +1 -1
- package/lib/features/canvas/characters/VoiceField.js +70 -0
- package/lib/features/canvas/characters/VoiceField.js.map +1 -0
- package/lib/features/canvas/characters/castingSheet.js +91 -0
- package/lib/features/canvas/characters/castingSheet.js.map +1 -0
- package/lib/features/canvas/characters/characterActions.js +238 -26
- package/lib/features/canvas/characters/characterActions.js.map +1 -1
- package/lib/features/canvas/characters/characterLibrary.js +196 -0
- package/lib/features/canvas/characters/characterLibrary.js.map +1 -0
- package/lib/features/canvas/characters/characterRuns.js +85 -10
- package/lib/features/canvas/characters/characterRuns.js.map +1 -1
- package/lib/features/canvas/characters/characterStore.js +149 -6
- package/lib/features/canvas/characters/characterStore.js.map +1 -1
- package/lib/features/canvas/characters/characterTools.js +50 -2
- package/lib/features/canvas/characters/characterTools.js.map +1 -1
- package/lib/features/canvas/characters/characterVocabulary.js +100 -8
- package/lib/features/canvas/characters/characterVocabulary.js.map +1 -1
- package/lib/features/canvas/characters/charactersRpc.js +3 -2
- package/lib/features/canvas/characters/charactersRpc.js.map +1 -1
- package/lib/features/canvas/characters/dramaActions.js +218 -0
- package/lib/features/canvas/characters/dramaActions.js.map +1 -0
- package/lib/features/canvas/characters/dramaScript.js +185 -0
- package/lib/features/canvas/characters/dramaScript.js.map +1 -0
- package/lib/features/canvas/characters/fashionActions.js +182 -0
- package/lib/features/canvas/characters/fashionActions.js.map +1 -0
- package/lib/features/canvas/characters/fashionShoot.js +147 -0
- package/lib/features/canvas/characters/fashionShoot.js.map +1 -0
- package/lib/features/canvas/characters/hostActions.js +391 -0
- package/lib/features/canvas/characters/hostActions.js.map +1 -0
- package/lib/features/canvas/characters/hostBlocks.js +59 -0
- package/lib/features/canvas/characters/hostBlocks.js.map +1 -0
- package/lib/features/canvas/characters/hostStudio.js +114 -0
- package/lib/features/canvas/characters/hostStudio.js.map +1 -0
- package/lib/features/canvas/characters/motionActions.js +156 -0
- package/lib/features/canvas/characters/motionActions.js.map +1 -0
- package/lib/features/canvas/characters/motionMoves.js +81 -0
- package/lib/features/canvas/characters/motionMoves.js.map +1 -0
- package/lib/features/canvas/characters/placement.js +83 -8
- package/lib/features/canvas/characters/placement.js.map +1 -1
- package/lib/features/canvas/characters/spokesperson.js +101 -0
- package/lib/features/canvas/characters/spokesperson.js.map +1 -0
- package/lib/features/canvas/characters/spokespersonActions.js +191 -0
- package/lib/features/canvas/characters/spokespersonActions.js.map +1 -0
- package/lib/features/canvas/characters/storyFilm.js +64 -0
- package/lib/features/canvas/characters/storyFilm.js.map +1 -0
- package/lib/features/canvas/characters/storyFilmActions.js +129 -0
- package/lib/features/canvas/characters/storyFilmActions.js.map +1 -0
- package/lib/features/canvas/characters/studioSets.js +91 -0
- package/lib/features/canvas/characters/studioSets.js.map +1 -0
- package/lib/features/canvas/characters/studioUi.js +137 -0
- package/lib/features/canvas/characters/studioUi.js.map +1 -0
- package/lib/features/canvas/characters/talkingTake.js +87 -0
- package/lib/features/canvas/characters/talkingTake.js.map +1 -0
- package/lib/features/canvas/characters/training/TrainTool.js +476 -0
- package/lib/features/canvas/characters/training/TrainTool.js.map +1 -0
- package/lib/features/canvas/characters/training/TrainedSwitch.js +11 -0
- package/lib/features/canvas/characters/training/TrainedSwitch.js.map +1 -0
- package/lib/features/canvas/characters/training/imageTrainingRpc.js +231 -0
- package/lib/features/canvas/characters/training/imageTrainingRpc.js.map +1 -0
- package/lib/features/canvas/characters/training/soulIdRpc.js +111 -0
- package/lib/features/canvas/characters/training/soulIdRpc.js.map +1 -0
- package/lib/features/canvas/characters/training/soulIdRuns.js +204 -0
- package/lib/features/canvas/characters/training/soulIdRuns.js.map +1 -0
- package/lib/features/canvas/characters/training/trainedMentions.js +24 -0
- package/lib/features/canvas/characters/training/trainedMentions.js.map +1 -0
- package/lib/features/canvas/characters/training/trainedRuns.js +103 -0
- package/lib/features/canvas/characters/training/trainedRuns.js.map +1 -0
- package/lib/features/canvas/characters/training/trainingActions.js +252 -0
- package/lib/features/canvas/characters/training/trainingActions.js.map +1 -0
- package/lib/features/canvas/characters/training/trainingCopy.js +34 -0
- package/lib/features/canvas/characters/training/trainingCopy.js.map +1 -0
- package/lib/features/canvas/characters/training/trainingRuns.js +245 -0
- package/lib/features/canvas/characters/training/trainingRuns.js.map +1 -0
- package/lib/features/canvas/characters/training/useResumeTrainings.js +9 -0
- package/lib/features/canvas/characters/training/useResumeTrainings.js.map +1 -0
- package/lib/features/canvas/characters/training/useSoulModels.js +21 -0
- package/lib/features/canvas/characters/training/useSoulModels.js.map +1 -0
- package/lib/features/canvas/characters/youtubeRpc.js +65 -0
- package/lib/features/canvas/characters/youtubeRpc.js.map +1 -0
- package/lib/features/canvas/chat/CanvasDesignChatCard.js +180 -0
- package/lib/features/canvas/chat/CanvasDesignChatCard.js.map +1 -0
- package/lib/features/canvas/chat/ChatSendsBar.js +120 -0
- package/lib/features/canvas/chat/ChatSendsBar.js.map +1 -0
- package/lib/features/canvas/chat/MediaAskCard.js +128 -0
- package/lib/features/canvas/chat/MediaAskCard.js.map +1 -0
- package/lib/features/canvas/chat/SkillMenu.js +83 -0
- package/lib/features/canvas/chat/SkillMenu.js.map +1 -0
- package/lib/features/canvas/chat/canvasDesignWidget.js +48 -0
- package/lib/features/canvas/chat/canvasDesignWidget.js.map +1 -0
- package/lib/features/canvas/chat/chatMentions.js +108 -0
- package/lib/features/canvas/chat/chatMentions.js.map +1 -0
- package/lib/features/canvas/chat/chatSends.js +91 -0
- package/lib/features/canvas/chat/chatSends.js.map +1 -0
- package/lib/features/canvas/chat/chatSkills.js +170 -0
- package/lib/features/canvas/chat/chatSkills.js.map +1 -0
- package/lib/features/canvas/chat/mediaActions.js +343 -0
- package/lib/features/canvas/chat/mediaActions.js.map +1 -0
- package/lib/features/canvas/chat/mediaPort.js +427 -0
- package/lib/features/canvas/chat/mediaPort.js.map +1 -0
- package/lib/features/canvas/chat/mediaRunners.js +84 -0
- package/lib/features/canvas/chat/mediaRunners.js.map +1 -0
- package/lib/features/canvas/chat/models3d.js +17 -0
- package/lib/features/canvas/chat/models3d.js.map +1 -0
- package/lib/features/canvas/chat/useComposerAssist.js +88 -0
- package/lib/features/canvas/chat/useComposerAssist.js.map +1 -0
- package/lib/features/canvas/chat/wholeVideo.js +8 -0
- package/lib/features/canvas/chat/wholeVideo.js.map +1 -0
- package/lib/features/canvas/clips/ClipLaneOptions.js +54 -0
- package/lib/features/canvas/clips/ClipLaneOptions.js.map +1 -0
- package/lib/features/canvas/clips/ClipsStudio.js +728 -0
- package/lib/features/canvas/clips/ClipsStudio.js.map +1 -0
- package/lib/features/canvas/clips/clipCaptions.js +319 -0
- package/lib/features/canvas/clips/clipCaptions.js.map +1 -0
- package/lib/features/canvas/clips/clipsCut.js +177 -0
- package/lib/features/canvas/clips/clipsCut.js.map +1 -0
- package/lib/features/canvas/clips/clipsPlan.js +264 -0
- package/lib/features/canvas/clips/clipsPlan.js.map +1 -0
- package/lib/features/canvas/clips/clipsRpc.js +393 -0
- package/lib/features/canvas/clips/clipsRpc.js.map +1 -0
- package/lib/features/canvas/clips/clipsStore.js +54 -0
- package/lib/features/canvas/clips/clipsStore.js.map +1 -0
- package/lib/features/canvas/clips/useClipsPlan.js +534 -0
- package/lib/features/canvas/clips/useClipsPlan.js.map +1 -0
- package/lib/features/canvas/community/CommunitySheets.js +504 -0
- package/lib/features/canvas/community/CommunitySheets.js.map +1 -0
- package/lib/features/canvas/community/communityRpc.js +348 -0
- package/lib/features/canvas/community/communityRpc.js.map +1 -0
- package/lib/features/canvas/community/editToolIds.js +3 -0
- package/lib/features/canvas/community/editToolIds.js.map +1 -0
- package/lib/features/canvas/community/provenance.js +63 -0
- package/lib/features/canvas/community/provenance.js.map +1 -0
- package/lib/features/canvas/community/publish.js +164 -0
- package/lib/features/canvas/community/publish.js.map +1 -0
- package/lib/features/canvas/community/recipe.js +255 -0
- package/lib/features/canvas/community/recipe.js.map +1 -0
- package/lib/features/canvas/community/recreate.js +159 -0
- package/lib/features/canvas/community/recreate.js.map +1 -0
- package/lib/features/canvas/community/swapPrompt.js +11 -0
- package/lib/features/canvas/community/swapPrompt.js.map +1 -0
- package/lib/features/canvas/connect/connectApp.js +15 -0
- package/lib/features/canvas/connect/connectApp.js.map +1 -0
- package/lib/features/canvas/createTiles.js +1 -25
- package/lib/features/canvas/createTiles.js.map +1 -1
- package/lib/features/canvas/deepLinks.js +78 -1
- package/lib/features/canvas/deepLinks.js.map +1 -1
- package/lib/features/canvas/editTools.js +138 -15
- package/lib/features/canvas/editTools.js.map +1 -1
- package/lib/features/canvas/effects/EffectsControls.js +377 -0
- package/lib/features/canvas/effects/EffectsControls.js.map +1 -0
- package/lib/features/canvas/effects/EffectsHub.js +289 -0
- package/lib/features/canvas/effects/EffectsHub.js.map +1 -0
- package/lib/features/canvas/effects/effectChains.js +95 -0
- package/lib/features/canvas/effects/effectChains.js.map +1 -0
- package/lib/features/canvas/effects/effectFamilies.js +137 -0
- package/lib/features/canvas/effects/effectFamilies.js.map +1 -0
- package/lib/features/canvas/effects/effectLibrary.js +143 -0
- package/lib/features/canvas/effects/effectLibrary.js.map +1 -0
- package/lib/features/canvas/effects/hubChains.js +454 -0
- package/lib/features/canvas/effects/hubChains.js.map +1 -0
- package/lib/features/canvas/effects/motionFamilies.js +226 -0
- package/lib/features/canvas/effects/motionFamilies.js.map +1 -0
- package/lib/features/canvas/effects/videoSeed.js +40 -0
- package/lib/features/canvas/effects/videoSeed.js.map +1 -0
- package/lib/features/canvas/elements/ElementForm.js +109 -16
- package/lib/features/canvas/elements/ElementForm.js.map +1 -1
- package/lib/features/canvas/elements/ElementImport.js +206 -0
- package/lib/features/canvas/elements/ElementImport.js.map +1 -0
- package/lib/features/canvas/elements/ElementMediaFields.js +365 -0
- package/lib/features/canvas/elements/ElementMediaFields.js.map +1 -0
- package/lib/features/canvas/elements/ElementMentionMenu.js +31 -7
- package/lib/features/canvas/elements/ElementMentionMenu.js.map +1 -1
- package/lib/features/canvas/elements/ElementThumb.js +32 -1
- package/lib/features/canvas/elements/ElementThumb.js.map +1 -1
- package/lib/features/canvas/elements/ElementsSheet.js +394 -31
- package/lib/features/canvas/elements/ElementsSheet.js.map +1 -1
- package/lib/features/canvas/elements/MentionedElements.js +3 -3
- package/lib/features/canvas/elements/MentionedElements.js.map +1 -1
- package/lib/features/canvas/elements/elementCopy.js +34 -13
- package/lib/features/canvas/elements/elementCopy.js.map +1 -1
- package/lib/features/canvas/elements/elementShare.js +264 -0
- package/lib/features/canvas/elements/elementShare.js.map +1 -0
- package/lib/features/canvas/elements/elementsStore.js +609 -41
- package/lib/features/canvas/elements/elementsStore.js.map +1 -1
- package/lib/features/canvas/elements/elementsSwitchState.js +30 -0
- package/lib/features/canvas/elements/elementsSwitchState.js.map +1 -0
- package/lib/features/canvas/elements/importElements.js +512 -0
- package/lib/features/canvas/elements/importElements.js.map +1 -0
- package/lib/features/canvas/elements/importWithModel.js +54 -0
- package/lib/features/canvas/elements/importWithModel.js.map +1 -0
- package/lib/features/canvas/elements/officeText.js +97 -0
- package/lib/features/canvas/elements/officeText.js.map +1 -0
- package/lib/features/canvas/elements/turnaround.js +104 -0
- package/lib/features/canvas/elements/turnaround.js.map +1 -0
- package/lib/features/canvas/elements/useGeneratorElements.js +47 -8
- package/lib/features/canvas/elements/useGeneratorElements.js.map +1 -1
- package/lib/features/canvas/elements/useSavedElements.js +164 -14
- package/lib/features/canvas/elements/useSavedElements.js.map +1 -1
- package/lib/features/canvas/elements/zipRead.js +222 -0
- package/lib/features/canvas/elements/zipRead.js.map +1 -0
- package/lib/features/canvas/enhance/AnimateControls.js +296 -90
- package/lib/features/canvas/enhance/AnimateControls.js.map +1 -1
- package/lib/features/canvas/enhance/ClipAudioControls.js +219 -7
- package/lib/features/canvas/enhance/ClipAudioControls.js.map +1 -1
- package/lib/features/canvas/enhance/GarmentCatalogPicker.js +45 -0
- package/lib/features/canvas/enhance/GarmentCatalogPicker.js.map +1 -0
- package/lib/features/canvas/enhance/ImageAiControls.js +181 -25
- package/lib/features/canvas/enhance/ImageAiControls.js.map +1 -1
- package/lib/features/canvas/enhance/PixelToolControls.js +122 -11
- package/lib/features/canvas/enhance/PixelToolControls.js.map +1 -1
- package/lib/features/canvas/enhance/RemixControls.js +406 -62
- package/lib/features/canvas/enhance/RemixControls.js.map +1 -1
- package/lib/features/canvas/enhance/StylistControls.js +329 -0
- package/lib/features/canvas/enhance/StylistControls.js.map +1 -0
- package/lib/features/canvas/enhance/enhanceUi.js +1 -1
- package/lib/features/canvas/enhance/garmentCatalog.js +248 -0
- package/lib/features/canvas/enhance/garmentCatalog.js.map +1 -0
- package/lib/features/canvas/enhance/imageEnhanceListing.js +113 -0
- package/lib/features/canvas/enhance/imageEnhanceListing.js.map +1 -0
- package/lib/features/canvas/enhance/motionOptions.js +165 -0
- package/lib/features/canvas/enhance/motionOptions.js.map +1 -0
- package/lib/features/canvas/enhance/myStyles.js +81 -0
- package/lib/features/canvas/enhance/myStyles.js.map +1 -0
- package/lib/features/canvas/enhance/postRemix.js +129 -0
- package/lib/features/canvas/enhance/postRemix.js.map +1 -0
- package/lib/features/canvas/enhance/relightWords.js +135 -0
- package/lib/features/canvas/enhance/relightWords.js.map +1 -0
- package/lib/features/canvas/enhance/remixCatalog.js +171 -0
- package/lib/features/canvas/enhance/remixCatalog.js.map +1 -0
- package/lib/features/canvas/enhance/stylist.js +119 -0
- package/lib/features/canvas/enhance/stylist.js.map +1 -0
- package/lib/features/canvas/enhance/upscaleWords.js +65 -0
- package/lib/features/canvas/enhance/upscaleWords.js.map +1 -0
- package/lib/features/canvas/enhance/useEnhanceRunner.js +57 -18
- package/lib/features/canvas/enhance/useEnhanceRunner.js.map +1 -1
- package/lib/features/canvas/enhanceCatalog.js +256 -9
- package/lib/features/canvas/enhanceCatalog.js.map +1 -1
- package/lib/features/canvas/enhanceOps.js +485 -121
- package/lib/features/canvas/enhanceOps.js.map +1 -1
- package/lib/features/canvas/enhancePending.js +151 -0
- package/lib/features/canvas/enhancePending.js.map +1 -0
- package/lib/features/canvas/enhanceRpc.js +202 -45
- package/lib/features/canvas/enhanceRpc.js.map +1 -1
- package/lib/features/canvas/extendVideo.js +6 -1
- package/lib/features/canvas/extendVideo.js.map +1 -1
- package/lib/features/canvas/featured/FeaturedPanel.js +134 -0
- package/lib/features/canvas/featured/FeaturedPanel.js.map +1 -0
- package/lib/features/canvas/frameExtract.js +3 -1
- package/lib/features/canvas/frameExtract.js.map +1 -1
- package/lib/features/canvas/generationModels.js +118 -18
- package/lib/features/canvas/generationModels.js.map +1 -1
- package/lib/features/canvas/generator/BottomSheet.js +55 -4
- package/lib/features/canvas/generator/BottomSheet.js.map +1 -1
- package/lib/features/canvas/generator/DirectorSheet.js +97 -11
- package/lib/features/canvas/generator/DirectorSheet.js.map +1 -1
- package/lib/features/canvas/generator/EditStyleFields.js +38 -0
- package/lib/features/canvas/generator/EditStyleFields.js.map +1 -0
- package/lib/features/canvas/generator/GeneratorModelMenu.js +70 -23
- package/lib/features/canvas/generator/GeneratorModelMenu.js.map +1 -1
- package/lib/features/canvas/generator/appClip.js +109 -0
- package/lib/features/canvas/generator/appClip.js.map +1 -0
- package/lib/features/canvas/generator/audio/AudioHistory.js +126 -0
- package/lib/features/canvas/generator/audio/AudioHistory.js.map +1 -0
- package/lib/features/canvas/generator/audio/AudioLaneSettings.js +72 -6
- package/lib/features/canvas/generator/audio/AudioLaneSettings.js.map +1 -1
- package/lib/features/canvas/generator/audio/SpeechControls.js +465 -0
- package/lib/features/canvas/generator/audio/SpeechControls.js.map +1 -0
- package/lib/features/canvas/generator/audio/audioHistoryRows.js +65 -0
- package/lib/features/canvas/generator/audio/audioHistoryRows.js.map +1 -0
- package/lib/features/canvas/generator/audio/audioLane.js +139 -19
- package/lib/features/canvas/generator/audio/audioLane.js.map +1 -1
- package/lib/features/canvas/generator/audio/audioModelCaps.js +176 -0
- package/lib/features/canvas/generator/audio/audioModelCaps.js.map +1 -0
- package/lib/features/canvas/generator/audio/audioRunParams.js +72 -0
- package/lib/features/canvas/generator/audio/audioRunParams.js.map +1 -0
- package/lib/features/canvas/generator/audio/clipAudio.js +122 -13
- package/lib/features/canvas/generator/audio/clipAudio.js.map +1 -1
- package/lib/features/canvas/generator/audio/dialogue.js +101 -0
- package/lib/features/canvas/generator/audio/dialogue.js.map +1 -0
- package/lib/features/canvas/generator/audio/lineVoice.js +67 -0
- package/lib/features/canvas/generator/audio/lineVoice.js.map +1 -0
- package/lib/features/canvas/generator/audio/lipSyncSpeakers.js +50 -0
- package/lib/features/canvas/generator/audio/lipSyncSpeakers.js.map +1 -0
- package/lib/features/canvas/generator/audio/micLine.js +14 -0
- package/lib/features/canvas/generator/audio/micLine.js.map +1 -0
- package/lib/features/canvas/generator/audio/namedReferences.js +54 -0
- package/lib/features/canvas/generator/audio/namedReferences.js.map +1 -0
- package/lib/features/canvas/generator/audio/scene.js +137 -0
- package/lib/features/canvas/generator/audio/scene.js.map +1 -0
- package/lib/features/canvas/generator/audio/talkingAvatars.js +42 -0
- package/lib/features/canvas/generator/audio/talkingAvatars.js.map +1 -0
- package/lib/features/canvas/generator/audio/useVoiceLibrary.js +34 -0
- package/lib/features/canvas/generator/audio/useVoiceLibrary.js.map +1 -0
- package/lib/features/canvas/generator/audio/voiceLibrary.js +360 -0
- package/lib/features/canvas/generator/audio/voiceLibrary.js.map +1 -0
- package/lib/features/canvas/generator/audio/voiceMentions.js +103 -0
- package/lib/features/canvas/generator/audio/voiceMentions.js.map +1 -0
- package/lib/features/canvas/generator/batchImages.js +81 -28
- package/lib/features/canvas/generator/batchImages.js.map +1 -1
- package/lib/features/canvas/generator/batchLayout.js +22 -9
- package/lib/features/canvas/generator/batchLayout.js.map +1 -1
- package/lib/features/canvas/generator/brandKitGeneration.js +4 -1
- package/lib/features/canvas/generator/brandKitGeneration.js.map +1 -1
- package/lib/features/canvas/generator/cameraVocabulary.js +177 -2
- package/lib/features/canvas/generator/cameraVocabulary.js.map +1 -1
- package/lib/features/canvas/generator/cinema/composerHandoff.js +18 -0
- package/lib/features/canvas/generator/cinema/composerHandoff.js.map +1 -0
- package/lib/features/canvas/generator/cinema/filmLook.js +30 -0
- package/lib/features/canvas/generator/cinema/filmLook.js.map +1 -0
- package/lib/features/canvas/generator/cinema/nativeCamera.js +14 -0
- package/lib/features/canvas/generator/cinema/nativeCamera.js.map +1 -0
- package/lib/features/canvas/generator/cinema/nativeCinema.js +101 -0
- package/lib/features/canvas/generator/cinema/nativeCinema.js.map +1 -0
- package/lib/features/canvas/generator/cinema/presetPictures.js +80 -0
- package/lib/features/canvas/generator/cinema/presetPictures.js.map +1 -0
- package/lib/features/canvas/generator/cinema/shotPlan.js +58 -0
- package/lib/features/canvas/generator/cinema/shotPlan.js.map +1 -0
- package/lib/features/canvas/generator/cinema/useFilmLook.js +4 -0
- package/lib/features/canvas/generator/cinema/useFilmLook.js.map +1 -0
- package/lib/features/canvas/generator/cinematicVocabulary.js +296 -3
- package/lib/features/canvas/generator/cinematicVocabulary.js.map +1 -1
- package/lib/features/canvas/generator/direction.js +3 -3
- package/lib/features/canvas/generator/direction.js.map +1 -1
- package/lib/features/canvas/generator/editStyles.js +95 -0
- package/lib/features/canvas/generator/editStyles.js.map +1 -0
- package/lib/features/canvas/generator/elementMentions.js +389 -29
- package/lib/features/canvas/generator/elementMentions.js.map +1 -1
- package/lib/features/canvas/generator/image/ImageOptionPills.js +382 -0
- package/lib/features/canvas/generator/image/ImageOptionPills.js.map +1 -0
- package/lib/features/canvas/generator/image/colorSignatures.js +128 -0
- package/lib/features/canvas/generator/image/colorSignatures.js.map +1 -0
- package/lib/features/canvas/generator/image/generateCost.js +5 -0
- package/lib/features/canvas/generator/image/generateCost.js.map +1 -0
- package/lib/features/canvas/generator/image/imageFraming.js +39 -0
- package/lib/features/canvas/generator/image/imageFraming.js.map +1 -0
- package/lib/features/canvas/generator/image/imageModelCaps.js +178 -0
- package/lib/features/canvas/generator/image/imageModelCaps.js.map +1 -0
- package/lib/features/canvas/generator/image/imageModelRouting.js +34 -0
- package/lib/features/canvas/generator/image/imageModelRouting.js.map +1 -0
- package/lib/features/canvas/generator/image/imageOutput.js +97 -0
- package/lib/features/canvas/generator/image/imageOutput.js.map +1 -0
- package/lib/features/canvas/generator/image/imageResolutions.js +10 -0
- package/lib/features/canvas/generator/image/imageResolutions.js.map +1 -0
- package/lib/features/canvas/generator/image/imageRun.js +55 -0
- package/lib/features/canvas/generator/image/imageRun.js.map +1 -0
- package/lib/features/canvas/generator/image/imageStyle.js +20 -0
- package/lib/features/canvas/generator/image/imageStyle.js.map +1 -0
- package/lib/features/canvas/generator/image/palette.js +99 -0
- package/lib/features/canvas/generator/image/palette.js.map +1 -0
- package/lib/features/canvas/generator/image/pictureColors.js +19 -0
- package/lib/features/canvas/generator/image/pictureColors.js.map +1 -0
- package/lib/features/canvas/generator/image/referenceCap.js +11 -0
- package/lib/features/canvas/generator/image/referenceCap.js.map +1 -0
- package/lib/features/canvas/generator/image/referenceLimit.js +6 -0
- package/lib/features/canvas/generator/image/referenceLimit.js.map +1 -0
- package/lib/features/canvas/generator/image/soulIdPick.js +52 -0
- package/lib/features/canvas/generator/image/soulIdPick.js.map +1 -0
- package/lib/features/canvas/generator/image/stylePictures.js +89 -0
- package/lib/features/canvas/generator/image/stylePictures.js.map +1 -0
- package/lib/features/canvas/generator/image/trainedImageRun.js +79 -0
- package/lib/features/canvas/generator/image/trainedImageRun.js.map +1 -0
- package/lib/features/canvas/generator/image/useImageComposer.js +66 -0
- package/lib/features/canvas/generator/image/useImageComposer.js.map +1 -0
- package/lib/features/canvas/generator/promoScript.js +17 -0
- package/lib/features/canvas/generator/promoScript.js.map +1 -0
- package/lib/features/canvas/generator/providerWords.js +18 -0
- package/lib/features/canvas/generator/providerWords.js.map +1 -0
- package/lib/features/canvas/generator/reuse/BatchCountPill.js +74 -13
- package/lib/features/canvas/generator/reuse/BatchCountPill.js.map +1 -1
- package/lib/features/canvas/generator/reuse/BatchStop.js +94 -0
- package/lib/features/canvas/generator/reuse/BatchStop.js.map +1 -0
- package/lib/features/canvas/generator/reuse/generationRecord.js +6 -2
- package/lib/features/canvas/generator/reuse/generationRecord.js.map +1 -1
- package/lib/features/canvas/generator/reuse/runBoard.js +21 -6
- package/lib/features/canvas/generator/reuse/runBoard.js.map +1 -1
- package/lib/features/canvas/generator/video/VideoContractControls.js +342 -0
- package/lib/features/canvas/generator/video/VideoContractControls.js.map +1 -0
- package/lib/features/canvas/generator/video/VideoExtrasControls.js +23 -6
- package/lib/features/canvas/generator/video/VideoExtrasControls.js.map +1 -1
- package/lib/features/canvas/generator/video/VoiceSoundtrack.js +152 -0
- package/lib/features/canvas/generator/video/VoiceSoundtrack.js.map +1 -0
- package/lib/features/canvas/generator/video/drivingAudio.js +33 -0
- package/lib/features/canvas/generator/video/drivingAudio.js.map +1 -0
- package/lib/features/canvas/generator/video/referenceMedia.js +9 -6
- package/lib/features/canvas/generator/video/referenceMedia.js.map +1 -1
- package/lib/features/canvas/generator/video/referenceTrim.js +54 -0
- package/lib/features/canvas/generator/video/referenceTrim.js.map +1 -0
- package/lib/features/canvas/generator/video/useVideoGenExtras.js +1 -1
- package/lib/features/canvas/generator/video/useVideoGenExtras.js.map +1 -1
- package/lib/features/canvas/generator/video/useVideoShotPlan.js +148 -0
- package/lib/features/canvas/generator/video/useVideoShotPlan.js.map +1 -0
- package/lib/features/canvas/generator/video/videoAdvanced.js +93 -0
- package/lib/features/canvas/generator/video/videoAdvanced.js.map +1 -0
- package/lib/features/canvas/generator/video/videoBatch.js +197 -0
- package/lib/features/canvas/generator/video/videoBatch.js.map +1 -0
- package/lib/features/canvas/generator/video/videoBatchSummary.js +51 -0
- package/lib/features/canvas/generator/video/videoBatchSummary.js.map +1 -0
- package/lib/features/canvas/generator/video/videoBitrate.js +27 -0
- package/lib/features/canvas/generator/video/videoBitrate.js.map +1 -0
- package/lib/features/canvas/generator/video/videoExtras.js +8 -4
- package/lib/features/canvas/generator/video/videoExtras.js.map +1 -1
- package/lib/features/canvas/generator/video/videoGenContract.js +155 -0
- package/lib/features/canvas/generator/video/videoGenContract.js.map +1 -0
- package/lib/features/canvas/generator/video/videoModelCaps.js +21 -11
- package/lib/features/canvas/generator/video/videoModelCaps.js.map +1 -1
- package/lib/features/canvas/generator/video/videoModelTiers.js +61 -0
- package/lib/features/canvas/generator/video/videoModelTiers.js.map +1 -0
- package/lib/features/canvas/generator/video/voiceClips.js +145 -0
- package/lib/features/canvas/generator/video/voiceClips.js.map +1 -0
- package/lib/features/canvas/generatorReferences.js +12 -11
- package/lib/features/canvas/generatorReferences.js.map +1 -1
- package/lib/features/canvas/history/HistoryPanel.js +283 -0
- package/lib/features/canvas/history/HistoryPanel.js.map +1 -0
- package/lib/features/canvas/history/historyIndex.js +199 -0
- package/lib/features/canvas/history/historyIndex.js.map +1 -0
- package/lib/features/canvas/history/toolRuns.js +64 -0
- package/lib/features/canvas/history/toolRuns.js.map +1 -0
- package/lib/features/canvas/home/BoardMenuSheet.js +14 -4
- package/lib/features/canvas/home/BoardMenuSheet.js.map +1 -1
- package/lib/features/canvas/home/BoardTile.js +1 -1
- package/lib/features/canvas/home/FolderSheets.js +196 -0
- package/lib/features/canvas/home/FolderSheets.js.map +1 -0
- package/lib/features/canvas/home/HeroComposer.js +7 -3
- package/lib/features/canvas/home/HeroComposer.js.map +1 -1
- package/lib/features/canvas/home/heroShots.js.map +1 -1
- package/lib/features/canvas/home/useYourWork.js +183 -4
- package/lib/features/canvas/home/useYourWork.js.map +1 -1
- package/lib/features/canvas/homeWork.js +14 -2
- package/lib/features/canvas/homeWork.js.map +1 -1
- package/lib/features/canvas/imageEditor/CropFrame.js +146 -0
- package/lib/features/canvas/imageEditor/CropFrame.js.map +1 -0
- package/lib/features/canvas/imageEditor/GradeSection.js +351 -0
- package/lib/features/canvas/imageEditor/GradeSection.js.map +1 -0
- package/lib/features/canvas/imageEditor/cropExpand.js +86 -0
- package/lib/features/canvas/imageEditor/cropExpand.js.map +1 -0
- package/lib/features/canvas/imageEditor/grade.js +376 -0
- package/lib/features/canvas/imageEditor/grade.js.map +1 -0
- package/lib/features/canvas/imageEditor/gradeHistory.js +33 -0
- package/lib/features/canvas/imageEditor/gradeHistory.js.map +1 -0
- package/lib/features/canvas/imageEditor/skiaPixels.js +117 -0
- package/lib/features/canvas/imageEditor/skiaPixels.js.map +1 -0
- package/lib/features/canvas/influencer/OnCameraFields.js +357 -0
- package/lib/features/canvas/influencer/OnCameraFields.js.map +1 -0
- package/lib/features/canvas/influencer/adDirection.js +282 -0
- package/lib/features/canvas/influencer/adDirection.js.map +1 -0
- package/lib/features/canvas/influencer/heldProduct.js +33 -0
- package/lib/features/canvas/influencer/heldProduct.js.map +1 -0
- package/lib/features/canvas/influencer/influencerPipeline.js +159 -74
- package/lib/features/canvas/influencer/influencerPipeline.js.map +1 -1
- package/lib/features/canvas/influencer/presenters.js +94 -0
- package/lib/features/canvas/influencer/presenters.js.map +1 -0
- package/lib/features/canvas/influencer/productInShot.js +39 -0
- package/lib/features/canvas/influencer/productInShot.js.map +1 -0
- package/lib/features/canvas/influencer/reelCast.js +107 -0
- package/lib/features/canvas/influencer/reelCast.js.map +1 -0
- package/lib/features/canvas/influencer/reelCost.js +29 -0
- package/lib/features/canvas/influencer/reelCost.js.map +1 -0
- package/lib/features/canvas/influencer/reelPlan.js +6 -2
- package/lib/features/canvas/influencer/reelPlan.js.map +1 -1
- package/lib/features/canvas/influencer/reelRun.js +229 -0
- package/lib/features/canvas/influencer/reelRun.js.map +1 -0
- package/lib/features/canvas/lazyEditors.js +3 -1
- package/lib/features/canvas/lazyEditors.js.map +1 -1
- package/lib/features/canvas/library/libraryDownload.js +221 -0
- package/lib/features/canvas/library/libraryDownload.js.map +1 -0
- package/lib/features/canvas/library/libraryStore.js +149 -0
- package/lib/features/canvas/library/libraryStore.js.map +1 -0
- package/lib/features/canvas/libraryIndex.js +714 -0
- package/lib/features/canvas/libraryIndex.js.map +1 -0
- package/lib/features/canvas/longform/NewSeriesForm.js +290 -0
- package/lib/features/canvas/longform/NewSeriesForm.js.map +1 -0
- package/lib/features/canvas/longform/SeriesStudio.js +528 -0
- package/lib/features/canvas/longform/SeriesStudio.js.map +1 -0
- package/lib/features/canvas/longform/episodes.js +137 -0
- package/lib/features/canvas/longform/episodes.js.map +1 -0
- package/lib/features/canvas/longform/manga.js +43 -0
- package/lib/features/canvas/longform/manga.js.map +1 -0
- package/lib/features/canvas/longform/narratorVoices.js +67 -0
- package/lib/features/canvas/longform/narratorVoices.js.map +1 -0
- package/lib/features/canvas/longform/planner.js +84 -0
- package/lib/features/canvas/longform/planner.js.map +1 -0
- package/lib/features/canvas/longform/productionCatalog.js +382 -0
- package/lib/features/canvas/longform/productionCatalog.js.map +1 -0
- package/lib/features/canvas/longform/productionResolution.js +11 -0
- package/lib/features/canvas/longform/productionResolution.js.map +1 -0
- package/lib/features/canvas/longform/seriesHost.js +77 -0
- package/lib/features/canvas/longform/seriesHost.js.map +1 -0
- package/lib/features/canvas/longform/seriesList.js +125 -0
- package/lib/features/canvas/longform/seriesList.js.map +1 -0
- package/lib/features/canvas/longform/seriesStore.js +287 -0
- package/lib/features/canvas/longform/seriesStore.js.map +1 -0
- package/lib/features/canvas/longform/styleOrder.js +9 -0
- package/lib/features/canvas/longform/styleOrder.js.map +1 -0
- package/lib/features/canvas/marketing/AdReferenceTool.js +171 -0
- package/lib/features/canvas/marketing/AdReferenceTool.js.map +1 -0
- package/lib/features/canvas/marketing/CatalogPanel.js +163 -0
- package/lib/features/canvas/marketing/CatalogPanel.js.map +1 -0
- package/lib/features/canvas/marketing/DraftLines.js +34 -0
- package/lib/features/canvas/marketing/DraftLines.js.map +1 -0
- package/lib/features/canvas/marketing/LibrarySection.js +130 -0
- package/lib/features/canvas/marketing/LibrarySection.js.map +1 -0
- package/lib/features/canvas/marketing/PersonPicker.js +131 -0
- package/lib/features/canvas/marketing/PersonPicker.js.map +1 -0
- package/lib/features/canvas/marketing/ProductPanel.js +603 -0
- package/lib/features/canvas/marketing/ProductPanel.js.map +1 -0
- package/lib/features/canvas/marketing/ProductTools.js +648 -0
- package/lib/features/canvas/marketing/ProductTools.js.map +1 -0
- package/lib/features/canvas/marketing/UgcPresetCards.js +139 -0
- package/lib/features/canvas/marketing/UgcPresetCards.js.map +1 -0
- package/lib/features/canvas/marketing/adReference.js +97 -0
- package/lib/features/canvas/marketing/adReference.js.map +1 -0
- package/lib/features/canvas/marketing/adReferenceActions.js +151 -0
- package/lib/features/canvas/marketing/adReferenceActions.js.map +1 -0
- package/lib/features/canvas/marketing/adSet.js +215 -0
- package/lib/features/canvas/marketing/adSet.js.map +1 -0
- package/lib/features/canvas/marketing/brandIdentity.js +330 -0
- package/lib/features/canvas/marketing/brandIdentity.js.map +1 -0
- package/lib/features/canvas/marketing/captionTranslate.js +25 -0
- package/lib/features/canvas/marketing/captionTranslate.js.map +1 -0
- package/lib/features/canvas/marketing/catalogImport.js +272 -0
- package/lib/features/canvas/marketing/catalogImport.js.map +1 -0
- package/lib/features/canvas/marketing/cells.js +70 -0
- package/lib/features/canvas/marketing/cells.js.map +1 -0
- package/lib/features/canvas/marketing/cleanOffer.js +41 -0
- package/lib/features/canvas/marketing/cleanOffer.js.map +1 -0
- package/lib/features/canvas/marketing/handoffs.js +184 -0
- package/lib/features/canvas/marketing/handoffs.js.map +1 -0
- package/lib/features/canvas/marketing/marketplaceSet.js +76 -0
- package/lib/features/canvas/marketing/marketplaceSet.js.map +1 -0
- package/lib/features/canvas/marketing/multiplier.js +256 -0
- package/lib/features/canvas/marketing/multiplier.js.map +1 -0
- package/lib/features/canvas/marketing/pastedDetails.js +53 -0
- package/lib/features/canvas/marketing/pastedDetails.js.map +1 -0
- package/lib/features/canvas/marketing/product.js +151 -0
- package/lib/features/canvas/marketing/product.js.map +1 -0
- package/lib/features/canvas/marketing/productActions.js +708 -0
- package/lib/features/canvas/marketing/productActions.js.map +1 -0
- package/lib/features/canvas/marketing/productDraft.js +68 -0
- package/lib/features/canvas/marketing/productDraft.js.map +1 -0
- package/lib/features/canvas/marketing/productLibrary.js +116 -0
- package/lib/features/canvas/marketing/productLibrary.js.map +1 -0
- package/lib/features/canvas/marketing/productPage.js +340 -0
- package/lib/features/canvas/marketing/productPage.js.map +1 -0
- package/lib/features/canvas/marketing/productStore.js +162 -0
- package/lib/features/canvas/marketing/productStore.js.map +1 -0
- package/lib/features/canvas/marketing/research.js +233 -0
- package/lib/features/canvas/marketing/research.js.map +1 -0
- package/lib/features/canvas/marketing/shotStyles.js +96 -0
- package/lib/features/canvas/marketing/shotStyles.js.map +1 -0
- package/lib/features/canvas/marketing/templates.js +152 -0
- package/lib/features/canvas/marketing/templates.js.map +1 -0
- package/lib/features/canvas/marketing/ugcPresetArt.js +175 -0
- package/lib/features/canvas/marketing/ugcPresetArt.js.map +1 -0
- package/lib/features/canvas/marketing/videoAd.js +6 -0
- package/lib/features/canvas/marketing/videoAd.js.map +1 -0
- package/lib/features/canvas/marketing/videoMultiplier.js +373 -0
- package/lib/features/canvas/marketing/videoMultiplier.js.map +1 -0
- package/lib/features/canvas/mask/MaskPainter.js +125 -0
- package/lib/features/canvas/mask/MaskPainter.js.map +1 -0
- package/lib/features/canvas/mask/maskRaster.js +222 -0
- package/lib/features/canvas/mask/maskRaster.js.map +1 -0
- package/lib/features/canvas/native/nativeCaps.js +82 -0
- package/lib/features/canvas/native/nativeCaps.js.map +1 -0
- package/lib/features/canvas/nativeViewerRegistry.js.map +1 -1
- package/lib/features/canvas/nav/CanvasTopNav.js +220 -0
- package/lib/features/canvas/nav/CanvasTopNav.js.map +1 -0
- package/lib/features/canvas/nav/FeaturePage.js +207 -0
- package/lib/features/canvas/nav/FeaturePage.js.map +1 -0
- package/lib/features/canvas/nav/canvasView.js +40 -0
- package/lib/features/canvas/nav/canvasView.js.map +1 -0
- package/lib/features/canvas/nav/features.js +334 -0
- package/lib/features/canvas/nav/features.js.map +1 -0
- package/lib/features/canvas/promoVideo.js +154 -21
- package/lib/features/canvas/promoVideo.js.map +1 -1
- package/lib/features/canvas/recorder/recorderOps.js +12 -1
- package/lib/features/canvas/recorder/recorderOps.js.map +1 -1
- package/lib/features/canvas/set/SetViewport.js +817 -0
- package/lib/features/canvas/set/SetViewport.js.map +1 -0
- package/lib/features/canvas/set/agent/agentTurn.js +178 -0
- package/lib/features/canvas/set/agent/agentTurn.js.map +1 -0
- package/lib/features/canvas/set/agent/brain.js +104 -0
- package/lib/features/canvas/set/agent/brain.js.map +1 -0
- package/lib/features/canvas/set/agent/prompt.js +90 -5
- package/lib/features/canvas/set/agent/prompt.js.map +1 -1
- package/lib/features/canvas/set/agent/reference.js +131 -0
- package/lib/features/canvas/set/agent/reference.js.map +1 -0
- package/lib/features/canvas/set/agent/review.js +141 -0
- package/lib/features/canvas/set/agent/review.js.map +1 -0
- package/lib/features/canvas/set/agent/setOps.js +322 -18
- package/lib/features/canvas/set/agent/setOps.js.map +1 -1
- package/lib/features/canvas/set/agent/setTurn.js +39 -94
- package/lib/features/canvas/set/agent/setTurn.js.map +1 -1
- package/lib/features/canvas/set/agent/snapshot.js +71 -6
- package/lib/features/canvas/set/agent/snapshot.js.map +1 -1
- package/lib/features/canvas/set/agent/surveyPlan.js +223 -0
- package/lib/features/canvas/set/agent/surveyPlan.js.map +1 -0
- package/lib/features/canvas/set/agent/tools.js +1735 -176
- package/lib/features/canvas/set/agent/tools.js.map +1 -1
- package/lib/features/canvas/set/agent/useSetAgent.js +399 -0
- package/lib/features/canvas/set/agent/useSetAgent.js.map +1 -0
- package/lib/features/canvas/set/animation.js +637 -0
- package/lib/features/canvas/set/animation.js.map +1 -0
- package/lib/features/canvas/set/backup.js +107 -0
- package/lib/features/canvas/set/backup.js.map +1 -0
- package/lib/features/canvas/set/cameraPath.js.map +1 -1
- package/lib/features/canvas/set/cleanMeshRuns.js +82 -0
- package/lib/features/canvas/set/cleanMeshRuns.js.map +1 -0
- package/lib/features/canvas/set/continuity.js +162 -0
- package/lib/features/canvas/set/continuity.js.map +1 -0
- package/lib/features/canvas/set/drawPreview.js +74 -0
- package/lib/features/canvas/set/drawPreview.js.map +1 -0
- package/lib/features/canvas/set/drawnPath.js +175 -0
- package/lib/features/canvas/set/drawnPath.js.map +1 -0
- package/lib/features/canvas/set/endCard.js +68 -0
- package/lib/features/canvas/set/endCard.js.map +1 -0
- package/lib/features/canvas/set/figure.js +448 -0
- package/lib/features/canvas/set/figure.js.map +1 -0
- package/lib/features/canvas/set/filmParts.js +81 -0
- package/lib/features/canvas/set/filmParts.js.map +1 -0
- package/lib/features/canvas/set/filmShot.js +142 -0
- package/lib/features/canvas/set/filmShot.js.map +1 -0
- package/lib/features/canvas/set/formations.js +207 -0
- package/lib/features/canvas/set/formations.js.map +1 -0
- package/lib/features/canvas/set/glAssets.js +113 -0
- package/lib/features/canvas/set/glAssets.js.map +1 -0
- package/lib/features/canvas/set/inspectorValues.js +3 -0
- package/lib/features/canvas/set/inspectorValues.js.map +1 -0
- package/lib/features/canvas/set/links.js +110 -0
- package/lib/features/canvas/set/links.js.map +1 -0
- package/lib/features/canvas/set/notes.js +72 -0
- package/lib/features/canvas/set/notes.js.map +1 -0
- package/lib/features/canvas/set/orbit.js +118 -0
- package/lib/features/canvas/set/orbit.js.map +1 -0
- package/lib/features/canvas/set/paidAsk.js +101 -0
- package/lib/features/canvas/set/paidAsk.js.map +1 -0
- package/lib/features/canvas/set/paidCost.js +94 -0
- package/lib/features/canvas/set/paidCost.js.map +1 -0
- package/lib/features/canvas/set/panels/BuildPanel.js +499 -0
- package/lib/features/canvas/set/panels/BuildPanel.js.map +1 -0
- package/lib/features/canvas/set/panels/InspectorPanel.js +773 -0
- package/lib/features/canvas/set/panels/InspectorPanel.js.map +1 -0
- package/lib/features/canvas/set/panels/ObjectsPanel.js +337 -0
- package/lib/features/canvas/set/panels/ObjectsPanel.js.map +1 -0
- package/lib/features/canvas/set/panels/RenderPanel.js +1111 -0
- package/lib/features/canvas/set/panels/RenderPanel.js.map +1 -0
- package/lib/features/canvas/set/panels/TimelinePanel.js +883 -0
- package/lib/features/canvas/set/panels/TimelinePanel.js.map +1 -0
- package/lib/features/canvas/set/panels/WorldPanel.js +284 -0
- package/lib/features/canvas/set/panels/WorldPanel.js.map +1 -0
- package/lib/features/canvas/set/pickFile.js +22 -0
- package/lib/features/canvas/set/pickFile.js.map +1 -0
- package/lib/features/canvas/set/recording.js +155 -0
- package/lib/features/canvas/set/recording.js.map +1 -0
- package/lib/features/canvas/set/renderMove.js +92 -0
- package/lib/features/canvas/set/renderMove.js.map +1 -0
- package/lib/features/canvas/set/renderPrompt.js +12 -0
- package/lib/features/canvas/set/renderPrompt.js.map +1 -0
- package/lib/features/canvas/set/renderSize.js +44 -0
- package/lib/features/canvas/set/renderSize.js.map +1 -0
- package/lib/features/canvas/set/retime.js +96 -0
- package/lib/features/canvas/set/retime.js.map +1 -0
- package/lib/features/canvas/set/rigRuns.js +93 -0
- package/lib/features/canvas/set/rigRuns.js.map +1 -0
- package/lib/features/canvas/set/rotation.js +89 -0
- package/lib/features/canvas/set/rotation.js.map +1 -0
- package/lib/features/canvas/set/script.js +192 -0
- package/lib/features/canvas/set/script.js.map +1 -0
- package/lib/features/canvas/set/setFile.js +17 -0
- package/lib/features/canvas/set/setFile.js.map +1 -0
- package/lib/features/canvas/set/setRpc.js +263 -0
- package/lib/features/canvas/set/setRpc.js.map +1 -0
- package/lib/features/canvas/set/shotCamera.js +545 -0
- package/lib/features/canvas/set/shotCamera.js.map +1 -0
- package/lib/features/canvas/set/splatWorldJob.js +167 -0
- package/lib/features/canvas/set/splatWorldJob.js.map +1 -0
- package/lib/features/canvas/set/state.js +880 -0
- package/lib/features/canvas/set/state.js.map +1 -0
- package/lib/features/canvas/set/storyboard.js +168 -0
- package/lib/features/canvas/set/storyboard.js.map +1 -0
- package/lib/features/canvas/set/supplyLibrary.js +246 -89
- package/lib/features/canvas/set/supplyLibrary.js.map +1 -1
- package/lib/features/canvas/set/three/framing.js +30 -0
- package/lib/features/canvas/set/three/framing.js.map +1 -0
- package/lib/features/canvas/set/three/objects.js +296 -0
- package/lib/features/canvas/set/three/objects.js.map +1 -0
- package/lib/features/canvas/set/three/skeletonRig.js +108 -0
- package/lib/features/canvas/set/three/skeletonRig.js.map +1 -0
- package/lib/features/canvas/set/three/splatWorld.js +1 -0
- package/lib/features/canvas/set/three/splatWorld.js.map +1 -0
- package/lib/features/canvas/set/three/stage.js +1387 -0
- package/lib/features/canvas/set/three/stage.js.map +1 -0
- package/lib/features/canvas/set/three/threeLib.js +3 -0
- package/lib/features/canvas/set/three/threeLib.js.map +1 -0
- package/lib/features/canvas/set/transformClipboard.js +53 -0
- package/lib/features/canvas/set/transformClipboard.js.map +1 -0
- package/lib/features/canvas/set/types.js +609 -0
- package/lib/features/canvas/set/types.js.map +1 -0
- package/lib/features/canvas/set/ui/setUi.js +224 -0
- package/lib/features/canvas/set/ui/setUi.js.map +1 -0
- package/lib/features/canvas/shorts/ShortsControls.js +533 -0
- package/lib/features/canvas/shorts/ShortsControls.js.map +1 -0
- package/lib/features/canvas/shorts/shortsPlan.js +188 -0
- package/lib/features/canvas/shorts/shortsPlan.js.map +1 -0
- package/lib/features/canvas/shorts/shortsRun.js +609 -0
- package/lib/features/canvas/shorts/shortsRun.js.map +1 -0
- package/lib/features/canvas/shorts/shortsStore.js +240 -0
- package/lib/features/canvas/shorts/shortsStore.js.map +1 -0
- package/lib/features/canvas/shorts/shortsStyle.js +26 -0
- package/lib/features/canvas/shorts/shortsStyle.js.map +1 -0
- package/lib/features/canvas/skills/SkillsShowcase.js +153 -0
- package/lib/features/canvas/skills/SkillsShowcase.js.map +1 -0
- package/lib/features/canvas/skills/skillsCatalog.js +543 -0
- package/lib/features/canvas/skills/skillsCatalog.js.map +1 -0
- package/lib/features/canvas/storageLibrary.js +5 -1
- package/lib/features/canvas/storageLibrary.js.map +1 -1
- package/lib/features/canvas/surfaceIndex.js +3 -3
- package/lib/features/canvas/surfaceIndex.js.map +1 -1
- package/lib/features/canvas/useBoardDocument.js +126 -0
- package/lib/features/canvas/useBoardDocument.js.map +1 -0
- package/lib/features/canvas/video3d.js +167 -19
- package/lib/features/canvas/video3d.js.map +1 -1
- package/lib/features/canvas/videoClips.js +3 -42
- package/lib/features/canvas/videoClips.js.map +1 -1
- package/lib/features/canvas/videoEditor/EditorPanels.js +55 -4
- package/lib/features/canvas/videoEditor/EditorPanels.js.map +1 -1
- package/lib/features/canvas/videoEditor/OverlayStage.js +77 -0
- package/lib/features/canvas/videoEditor/OverlayStage.js.map +1 -0
- package/lib/features/canvas/videoEditor/agent/AgentCutPane.js +41 -8
- package/lib/features/canvas/videoEditor/agent/AgentCutPane.js.map +1 -1
- package/lib/features/canvas/videoEditor/agent/MakeVideoAsk.js +113 -0
- package/lib/features/canvas/videoEditor/agent/MakeVideoAsk.js.map +1 -0
- package/lib/features/canvas/videoEditor/agent/agentLoop.js +70 -22
- package/lib/features/canvas/videoEditor/agent/agentLoop.js.map +1 -1
- package/lib/features/canvas/videoEditor/agent/cutTools.js +624 -63
- package/lib/features/canvas/videoEditor/agent/cutTools.js.map +1 -1
- package/lib/features/canvas/videoEditor/agent/finishingOps.js +269 -0
- package/lib/features/canvas/videoEditor/agent/finishingOps.js.map +1 -0
- package/lib/features/canvas/videoEditor/agent/makeRequest.js +147 -0
- package/lib/features/canvas/videoEditor/agent/makeRequest.js.map +1 -0
- package/lib/features/canvas/videoEditor/agent/overlayTools.js +570 -0
- package/lib/features/canvas/videoEditor/agent/overlayTools.js.map +1 -0
- package/lib/features/canvas/videoEditor/agent/reference.js +163 -0
- package/lib/features/canvas/videoEditor/agent/reference.js.map +1 -0
- package/lib/features/canvas/videoEditor/agent/voiceLines.js +152 -0
- package/lib/features/canvas/videoEditor/agent/voiceLines.js.map +1 -0
- package/lib/features/canvas/videoEditor/backdrop.js +145 -0
- package/lib/features/canvas/videoEditor/backdrop.js.map +1 -0
- package/lib/features/canvas/videoEditor/captionLooks.js +334 -0
- package/lib/features/canvas/videoEditor/captionLooks.js.map +1 -0
- package/lib/features/canvas/videoEditor/captions.js +33 -1
- package/lib/features/canvas/videoEditor/captions.js.map +1 -1
- package/lib/features/canvas/videoEditor/compileTimeline.js +156 -11
- package/lib/features/canvas/videoEditor/compileTimeline.js.map +1 -1
- package/lib/features/canvas/videoEditor/editorModel.js +12 -4
- package/lib/features/canvas/videoEditor/editorModel.js.map +1 -1
- package/lib/features/canvas/videoEditor/exportPipeline.js +135 -6
- package/lib/features/canvas/videoEditor/exportPipeline.js.map +1 -1
- package/lib/features/canvas/videoEditor/exportTask.js +5 -3
- package/lib/features/canvas/videoEditor/exportTask.js.map +1 -1
- package/lib/features/canvas/videoEditor/layers.js +26 -4
- package/lib/features/canvas/videoEditor/layers.js.map +1 -1
- package/lib/features/canvas/videoEditor/mediaActions.js +7 -3
- package/lib/features/canvas/videoEditor/mediaActions.js.map +1 -1
- package/lib/features/canvas/videoEditor/motion/apng.js +7 -0
- package/lib/features/canvas/videoEditor/motion/apng.js.map +1 -0
- package/lib/features/canvas/videoEditor/motion/bake.js +4 -0
- package/lib/features/canvas/videoEditor/motion/bake.js.map +1 -0
- package/lib/features/canvas/videoEditor/motion/fonts.js +185 -0
- package/lib/features/canvas/videoEditor/motion/fonts.js.map +1 -0
- package/lib/features/canvas/videoEditor/motion/presets.js +722 -0
- package/lib/features/canvas/videoEditor/motion/presets.js.map +1 -0
- package/lib/features/canvas/videoEditor/motion/skiaContext.js +437 -0
- package/lib/features/canvas/videoEditor/motion/skiaContext.js.map +1 -0
- package/lib/features/canvas/videoEditor/motion/spec.js +414 -0
- package/lib/features/canvas/videoEditor/motion/spec.js.map +1 -0
- package/lib/features/canvas/videoEditor/overlays.js +200 -0
- package/lib/features/canvas/videoEditor/overlays.js.map +1 -0
- package/lib/features/canvas/videoEditor/produce/produceScenes.js +96 -20
- package/lib/features/canvas/videoEditor/produce/produceScenes.js.map +1 -1
- package/lib/features/canvas/videoEditor/produce/speechPad.js +66 -0
- package/lib/features/canvas/videoEditor/produce/speechPad.js.map +1 -0
- package/lib/features/canvas/videoEditor/recreate/RecreateSection.js +318 -0
- package/lib/features/canvas/videoEditor/recreate/RecreateSection.js.map +1 -0
- package/lib/features/canvas/videoEditor/recreate/motionRecreate.js +294 -0
- package/lib/features/canvas/videoEditor/recreate/motionRecreate.js.map +1 -0
- package/lib/features/canvas/videoEditor/renewLinks.js +14 -4
- package/lib/features/canvas/videoEditor/renewLinks.js.map +1 -1
- package/lib/features/canvas/videoEditor/sceneLayers.js +5 -2
- package/lib/features/canvas/videoEditor/sceneLayers.js.map +1 -1
- package/lib/features/canvas/videoEditor/transitions.js +5 -1
- package/lib/features/canvas/videoEditor/transitions.js.map +1 -1
- package/lib/features/canvas/videoEditor/videoProjectsStore.js +6 -4
- package/lib/features/canvas/videoEditor/videoProjectsStore.js.map +1 -1
- package/lib/features/canvas/videoTools/VideoAiControls.js +432 -0
- package/lib/features/canvas/videoTools/VideoAiControls.js.map +1 -0
- package/lib/features/canvas/videoTools/capabilityPanels.js +349 -0
- package/lib/features/canvas/videoTools/capabilityPanels.js.map +1 -0
- package/lib/features/canvas/videoTools/frameMarks.js +73 -0
- package/lib/features/canvas/videoTools/frameMarks.js.map +1 -0
- package/lib/features/canvas/videoTools/videoDrafts.js +106 -0
- package/lib/features/canvas/videoTools/videoDrafts.js.map +1 -0
- package/lib/features/canvas/videoTools/videoEnhanceRpc.js +179 -0
- package/lib/features/canvas/videoTools/videoEnhanceRpc.js.map +1 -0
- package/lib/features/canvas/videoTools/videoToolCatalog.js +266 -0
- package/lib/features/canvas/videoTools/videoToolCatalog.js.map +1 -0
- package/lib/features/canvas/videoTools/videoToolOps.js +314 -0
- package/lib/features/canvas/videoTools/videoToolOps.js.map +1 -0
- package/lib/features/canvas/workflow/StepSheet.js +581 -0
- package/lib/features/canvas/workflow/StepSheet.js.map +1 -0
- package/lib/features/canvas/workflow/WorkflowExperience.js +702 -0
- package/lib/features/canvas/workflow/WorkflowExperience.js.map +1 -0
- package/lib/features/canvas/workflow/WorkflowPlane.js +319 -0
- package/lib/features/canvas/workflow/WorkflowPlane.js.map +1 -0
- package/lib/features/canvas/workflow/WorkflowSheets.js +346 -0
- package/lib/features/canvas/workflow/WorkflowSheets.js.map +1 -0
- package/lib/features/canvas/workflow/characterCards.js +23 -0
- package/lib/features/canvas/workflow/characterCards.js.map +1 -0
- package/lib/features/canvas/workflow/draftLane.js +73 -0
- package/lib/features/canvas/workflow/draftLane.js.map +1 -0
- package/lib/features/canvas/workflow/errors.js +8 -0
- package/lib/features/canvas/workflow/errors.js.map +1 -0
- package/lib/features/canvas/workflow/graphView.js +166 -0
- package/lib/features/canvas/workflow/graphView.js.map +1 -0
- package/lib/features/canvas/workflow/lookWords.js +11 -0
- package/lib/features/canvas/workflow/lookWords.js.map +1 -0
- package/lib/features/canvas/workflow/runLanding.js +140 -0
- package/lib/features/canvas/workflow/runLanding.js.map +1 -0
- package/lib/features/canvas/workflow/spend.js +41 -0
- package/lib/features/canvas/workflow/spend.js.map +1 -0
- package/lib/features/canvas/workflow/starters.js +339 -0
- package/lib/features/canvas/workflow/starters.js.map +1 -0
- package/lib/features/canvas/workflow/stepSignature.js +117 -0
- package/lib/features/canvas/workflow/stepSignature.js.map +1 -0
- package/lib/features/canvas/workflow/templateStore.js +227 -0
- package/lib/features/canvas/workflow/templateStore.js.map +1 -0
- package/lib/features/canvas/workflow/useWorkflow.js +1415 -0
- package/lib/features/canvas/workflow/useWorkflow.js.map +1 -0
- package/lib/features/canvas/workflow/workflowGraph.js +803 -0
- package/lib/features/canvas/workflow/workflowGraph.js.map +1 -0
- package/lib/features/canvas/workflow/workflowRunner.js +96 -0
- package/lib/features/canvas/workflow/workflowRunner.js.map +1 -0
- package/lib/features/canvas/workflow/workflowSteps.js +444 -0
- package/lib/features/canvas/workflow/workflowSteps.js.map +1 -0
- package/lib/features/canvas/workflow/workflowUi.js +212 -0
- package/lib/features/canvas/workflow/workflowUi.js.map +1 -0
- package/lib/features/chat/ComposerModeSwitch.js +37 -7
- package/lib/features/chat/ComposerModeSwitch.js.map +1 -1
- package/lib/features/chat/ShoppingResultsWidgetCard.js +152 -0
- package/lib/features/chat/ShoppingResultsWidgetCard.js.map +1 -0
- package/lib/features/chat/hostTranscriptProtocol.js +12 -2
- package/lib/features/chat/hostTranscriptProtocol.js.map +1 -1
- package/lib/features/design/surface/useBrandKitInUse.js +22 -10
- package/lib/features/design/surface/useBrandKitInUse.js.map +1 -1
- package/lib/features/shopping/BetterPricePanel.js +277 -0
- package/lib/features/shopping/BetterPricePanel.js.map +1 -0
- package/lib/features/shopping/CardOpeningNotice.js +67 -0
- package/lib/features/shopping/CardOpeningNotice.js.map +1 -0
- package/lib/features/shopping/CompareProducts.js +398 -0
- package/lib/features/shopping/CompareProducts.js.map +1 -0
- package/lib/features/shopping/CompareToggle.js +30 -0
- package/lib/features/shopping/CompareToggle.js.map +1 -0
- package/lib/features/shopping/DealCard.js +289 -0
- package/lib/features/shopping/DealCard.js.map +1 -0
- package/lib/features/shopping/DealRails.js +361 -0
- package/lib/features/shopping/DealRails.js.map +1 -0
- package/lib/features/shopping/DealsPanel.js +460 -171
- package/lib/features/shopping/DealsPanel.js.map +1 -1
- package/lib/features/shopping/DeliverToControl.js +189 -0
- package/lib/features/shopping/DeliverToControl.js.map +1 -0
- package/lib/features/shopping/HorizontalScroller.js +192 -0
- package/lib/features/shopping/HorizontalScroller.js.map +1 -0
- package/lib/features/shopping/ProductCard.js +440 -45
- package/lib/features/shopping/ProductCard.js.map +1 -1
- package/lib/features/shopping/ProductCardDetails.js +133 -0
- package/lib/features/shopping/ProductCardDetails.js.map +1 -0
- package/lib/features/shopping/ProductDetailSheet.js +279 -120
- package/lib/features/shopping/ProductDetailSheet.js.map +1 -1
- package/lib/features/shopping/ProductFilterBar.js +207 -77
- package/lib/features/shopping/ProductFilterBar.js.map +1 -1
- package/lib/features/shopping/ProductMediaCarousel.js +229 -0
- package/lib/features/shopping/ProductMediaCarousel.js.map +1 -0
- package/lib/features/shopping/ProductPageSections.js +448 -0
- package/lib/features/shopping/ProductPageSections.js.map +1 -0
- package/lib/features/shopping/ProductSwatches.js +136 -0
- package/lib/features/shopping/ProductSwatches.js.map +1 -0
- package/lib/features/shopping/ProductVideoSlide.js +117 -0
- package/lib/features/shopping/ProductVideoSlide.js.map +1 -0
- package/lib/features/shopping/RequirementChips.js +90 -0
- package/lib/features/shopping/RequirementChips.js.map +1 -0
- package/lib/features/shopping/SearchResults.js +608 -0
- package/lib/features/shopping/SearchResults.js.map +1 -0
- package/lib/features/shopping/ShoppingAgentChatPane.js +205 -87
- package/lib/features/shopping/ShoppingAgentChatPane.js.map +1 -1
- package/lib/features/shopping/ShoppingComputerMonitor.js +51 -0
- package/lib/features/shopping/ShoppingComputerMonitor.js.map +1 -0
- package/lib/features/shopping/ShoppingExperience.js +236 -296
- package/lib/features/shopping/ShoppingExperience.js.map +1 -1
- package/lib/features/shopping/ShoppingHero.js +321 -0
- package/lib/features/shopping/ShoppingHero.js.map +1 -0
- package/lib/features/shopping/TrendingSections.js +29 -23
- package/lib/features/shopping/TrendingSections.js.map +1 -1
- package/lib/features/shopping/WatchlistPanel.js +287 -63
- package/lib/features/shopping/WatchlistPanel.js.map +1 -1
- package/lib/features/shopping/cartCloudSync.js +17 -17
- package/lib/features/shopping/cartCloudSync.js.map +1 -1
- package/lib/features/shopping/catalog.js +46 -86
- package/lib/features/shopping/catalog.js.map +1 -1
- package/lib/features/shopping/chat/brainRouter.js +165 -0
- package/lib/features/shopping/chat/brainRouter.js.map +1 -0
- package/lib/features/shopping/chat/brainRouterKit.js +95 -0
- package/lib/features/shopping/chat/brainRouterKit.js.map +1 -0
- package/lib/features/shopping/chat/chatKit.js +93 -0
- package/lib/features/shopping/chat/chatKit.js.map +1 -0
- package/lib/features/shopping/chat/computerHandoff.js +13 -0
- package/lib/features/shopping/chat/computerHandoff.js.map +1 -0
- package/lib/features/shopping/chat/openShopNative.js +18 -2
- package/lib/features/shopping/chat/openShopNative.js.map +1 -1
- package/lib/features/shopping/chat/pickReplies.js +20 -0
- package/lib/features/shopping/chat/pickReplies.js.map +1 -0
- package/lib/features/shopping/chat/shoppingTurn.js +106 -0
- package/lib/features/shopping/chat/shoppingTurn.js.map +1 -0
- package/lib/features/shopping/chat/widgetContent.js +49 -162
- package/lib/features/shopping/chat/widgetContent.js.map +1 -1
- package/lib/features/shopping/deals/aggregate.js +191 -0
- package/lib/features/shopping/deals/aggregate.js.map +1 -0
- package/lib/features/shopping/deals/registry.js +101 -0
- package/lib/features/shopping/deals/registry.js.map +1 -0
- package/lib/features/shopping/deliveryText.js +33 -0
- package/lib/features/shopping/deliveryText.js.map +1 -0
- package/lib/features/shopping/heroBackground.js +64 -0
- package/lib/features/shopping/heroBackground.js.map +1 -0
- package/lib/features/shopping/hooks/useNearViewport.js +37 -0
- package/lib/features/shopping/hooks/useNearViewport.js.map +1 -0
- package/lib/features/shopping/hooks/useProductMedia.js +24 -0
- package/lib/features/shopping/hooks/useProductMedia.js.map +1 -0
- package/lib/features/shopping/hooks/useProductPage.js +42 -0
- package/lib/features/shopping/hooks/useProductPage.js.map +1 -0
- package/lib/features/shopping/hooks/useShoppingHistorySync.js +134 -0
- package/lib/features/shopping/hooks/useShoppingHistorySync.js.map +1 -0
- package/lib/features/shopping/hooks/useTrendingProducts.js +194 -83
- package/lib/features/shopping/hooks/useTrendingProducts.js.map +1 -1
- package/lib/features/shopping/imageSizing.js +69 -0
- package/lib/features/shopping/imageSizing.js.map +1 -0
- package/lib/features/shopping/mediaSlides.js +39 -0
- package/lib/features/shopping/mediaSlides.js.map +1 -0
- package/lib/features/shopping/mobile/PosterCard.js +408 -0
- package/lib/features/shopping/mobile/PosterCard.js.map +1 -0
- package/lib/features/shopping/mobile/PosterDeck.js +310 -0
- package/lib/features/shopping/mobile/PosterDeck.js.map +1 -0
- package/lib/features/shopping/mobile/PosterResults.js +133 -0
- package/lib/features/shopping/mobile/PosterResults.js.map +1 -0
- package/lib/features/shopping/mobile/deckGesture.js +18 -0
- package/lib/features/shopping/mobile/deckGesture.js.map +1 -0
- package/lib/features/shopping/mobile/posterLayout.js +78 -0
- package/lib/features/shopping/mobile/posterLayout.js.map +1 -0
- package/lib/features/shopping/mobile/vetting.js +49 -0
- package/lib/features/shopping/mobile/vetting.js.map +1 -0
- package/lib/features/shopping/productHighlight.js +39 -0
- package/lib/features/shopping/productHighlight.js.map +1 -0
- package/lib/features/shopping/productImage.js +7 -28
- package/lib/features/shopping/productImage.js.map +1 -1
- package/lib/features/shopping/resolveProductImage.js +56 -0
- package/lib/features/shopping/resolveProductImage.js.map +1 -0
- package/lib/features/shopping/savedProducts.js +33 -18
- package/lib/features/shopping/savedProducts.js.map +1 -1
- package/lib/features/shopping/services/amazonProductSearch.js +170 -0
- package/lib/features/shopping/services/amazonProductSearch.js.map +1 -0
- package/lib/features/shopping/services/betterPrice.js +306 -0
- package/lib/features/shopping/services/betterPrice.js.map +1 -0
- package/lib/features/shopping/services/buildShoppingAttachment.js +95 -0
- package/lib/features/shopping/services/buildShoppingAttachment.js.map +1 -0
- package/lib/features/shopping/services/buildShoppingWidgetMessage.js +125 -0
- package/lib/features/shopping/services/buildShoppingWidgetMessage.js.map +1 -0
- package/lib/features/shopping/services/cartCloud.js +18 -12
- package/lib/features/shopping/services/cartCloud.js.map +1 -1
- package/lib/features/shopping/services/catalogProductSearch.js +411 -0
- package/lib/features/shopping/services/catalogProductSearch.js.map +1 -0
- package/lib/features/shopping/services/compareTable.js +120 -0
- package/lib/features/shopping/services/compareTable.js.map +1 -0
- package/lib/features/shopping/services/countText.js +18 -0
- package/lib/features/shopping/services/countText.js.map +1 -0
- package/lib/features/shopping/services/couponDeals.js +125 -0
- package/lib/features/shopping/services/couponDeals.js.map +1 -0
- package/lib/features/shopping/services/dealProviders.js +158 -0
- package/lib/features/shopping/services/dealProviders.js.map +1 -0
- package/lib/features/shopping/services/dealsSearch.js +127 -0
- package/lib/features/shopping/services/dealsSearch.js.map +1 -0
- package/lib/features/shopping/services/liveDealLanes.js +111 -0
- package/lib/features/shopping/services/liveDealLanes.js.map +1 -0
- package/lib/features/shopping/services/livePriceCheckClient.js +112 -0
- package/lib/features/shopping/services/livePriceCheckClient.js.map +1 -0
- package/lib/features/shopping/services/livePriceCheckReport.js +71 -0
- package/lib/features/shopping/services/livePriceCheckReport.js.map +1 -0
- package/lib/features/shopping/services/parsePriceCheckIntent.js +17 -4
- package/lib/features/shopping/services/parsePriceCheckIntent.js.map +1 -1
- package/lib/features/shopping/services/parseShoppingIntent.js +25 -2
- package/lib/features/shopping/services/parseShoppingIntent.js.map +1 -1
- package/lib/features/shopping/services/parseShoppingIntentViaBrain.js +134 -0
- package/lib/features/shopping/services/parseShoppingIntentViaBrain.js.map +1 -0
- package/lib/features/shopping/services/pricing.js +93 -0
- package/lib/features/shopping/services/pricing.js.map +1 -0
- package/lib/features/shopping/services/productAvailability.js.map +1 -1
- package/lib/features/shopping/services/productFilters.js +240 -4
- package/lib/features/shopping/services/productFilters.js.map +1 -1
- package/lib/features/shopping/services/productMedia.js +169 -0
- package/lib/features/shopping/services/productMedia.js.map +1 -0
- package/lib/features/shopping/services/productOffers.js +133 -0
- package/lib/features/shopping/services/productOffers.js.map +1 -0
- package/lib/features/shopping/services/productPage.js +229 -0
- package/lib/features/shopping/services/productPage.js.map +1 -0
- package/lib/features/shopping/services/productPageEvidence.js +66 -0
- package/lib/features/shopping/services/productPageEvidence.js.map +1 -0
- package/lib/features/shopping/services/productTitleQuality.js +30 -0
- package/lib/features/shopping/services/productTitleQuality.js.map +1 -0
- package/lib/features/shopping/services/readShoppingAttachment.js +173 -0
- package/lib/features/shopping/services/readShoppingAttachment.js.map +1 -0
- package/lib/features/shopping/services/resolveShoppingRelevance.js +23 -0
- package/lib/features/shopping/services/resolveShoppingRelevance.js.map +1 -0
- package/lib/features/shopping/services/retailerProductSearch.js +240 -0
- package/lib/features/shopping/services/retailerProductSearch.js.map +1 -0
- package/lib/features/shopping/services/retailerUrl.js +103 -9
- package/lib/features/shopping/services/retailerUrl.js.map +1 -1
- package/lib/features/shopping/services/salesDealsStore.js +336 -0
- package/lib/features/shopping/services/salesDealsStore.js.map +1 -0
- package/lib/features/shopping/services/searchCardFields.js +155 -0
- package/lib/features/shopping/services/searchCardFields.js.map +1 -0
- package/lib/features/shopping/services/searchRelevance.js +143 -0
- package/lib/features/shopping/services/searchRelevance.js.map +1 -0
- package/lib/features/shopping/services/searchRequirements.js +226 -0
- package/lib/features/shopping/services/searchRequirements.js.map +1 -0
- package/lib/features/shopping/services/shoppingChatReply.js +1 -46
- package/lib/features/shopping/services/shoppingChatReply.js.map +1 -1
- package/lib/features/shopping/services/shoppingComputer.js +80 -0
- package/lib/features/shopping/services/shoppingComputer.js.map +1 -0
- package/lib/features/shopping/services/shoppingDepartments.js +1 -0
- package/lib/features/shopping/services/shoppingDepartments.js.map +1 -0
- package/lib/features/shopping/services/shoppingProductSearch.js +261 -146
- package/lib/features/shopping/services/shoppingProductSearch.js.map +1 -1
- package/lib/features/shopping/services/shoppingSearchConnectorClient.js +208 -9
- package/lib/features/shopping/services/shoppingSearchConnectorClient.js.map +1 -1
- package/lib/features/shopping/services/shoppingSubgraph.js +76 -0
- package/lib/features/shopping/services/shoppingSubgraph.js.map +1 -0
- package/lib/features/shopping/services/surfaceChannel.js +35 -0
- package/lib/features/shopping/services/surfaceChannel.js.map +1 -0
- package/lib/features/shopping/services/variantCards.js +221 -0
- package/lib/features/shopping/services/variantCards.js.map +1 -0
- package/lib/features/shopping/services/verifyProducts.js +188 -0
- package/lib/features/shopping/services/verifyProducts.js.map +1 -0
- package/lib/features/shopping/services/webPriceSearch.js +107 -0
- package/lib/features/shopping/services/webPriceSearch.js.map +1 -0
- package/lib/features/shopping/shoppingCart.js.map +1 -1
- package/lib/features/shopping/shoppingHistoryStore.js +55 -3
- package/lib/features/shopping/shoppingHistoryStore.js.map +1 -1
- package/lib/features/shopping/shoppingRuntime.js +10 -1
- package/lib/features/shopping/shoppingRuntime.js.map +1 -1
- package/lib/features/shopping/state/compareSelection.js +70 -0
- package/lib/features/shopping/state/compareSelection.js.map +1 -0
- package/lib/features/shopping/state/deliveryLocation.js +118 -0
- package/lib/features/shopping/state/deliveryLocation.js.map +1 -0
- package/lib/features/shopping/tutorials/ShoppingTutorialDock.js +216 -0
- package/lib/features/shopping/tutorials/ShoppingTutorialDock.js.map +1 -0
- package/lib/features/shopping/tutorials/shoppingTutorials.js +52 -0
- package/lib/features/shopping/tutorials/shoppingTutorials.js.map +1 -0
- package/lib/features/shopping/tutorials/tutorials.js +88 -0
- package/lib/features/shopping/tutorials/tutorials.js.map +1 -0
- package/lib/features/shopping/useShoppingSearch.js +752 -115
- package/lib/features/shopping/useShoppingSearch.js.map +1 -1
- package/lib/features/webbuilder/WebBuilderExperience.js +15 -1
- package/lib/features/webbuilder/WebBuilderExperience.js.map +1 -1
- package/lib/features/webbuilder/components/SiteUploadSheet.js +88 -12
- package/lib/features/webbuilder/components/SiteUploadSheet.js.map +1 -1
- package/lib/features/webbuilder/components/TemplatePreviewSheet.js +132 -0
- package/lib/features/webbuilder/components/TemplatePreviewSheet.js.map +1 -0
- package/lib/features/webbuilder/components/TemplatesSheet.js +42 -5
- package/lib/features/webbuilder/components/TemplatesSheet.js.map +1 -1
- package/lib/features/webbuilder/connectorTemplates.js +7 -2
- package/lib/features/webbuilder/connectorTemplates.js.map +1 -1
- package/lib/features/webbuilder/templateCatalog.js +20 -2
- package/lib/features/webbuilder/templateCatalog.js.map +1 -1
- package/lib/features/webbuilder/templateClip.js +5 -0
- package/lib/features/webbuilder/templateClip.js.map +1 -0
- package/lib/features/webbuilder/web/upload/sitePhotos.js +51 -6
- package/lib/features/webbuilder/web/upload/sitePhotos.js.map +1 -1
- package/lib/features/webbuilder/workflow.js +7 -3
- package/lib/features/webbuilder/workflow.js.map +1 -1
- package/lib/hooks/useKeyboardBottomOffset.js +17 -1
- package/lib/hooks/useKeyboardBottomOffset.js.map +1 -1
- package/lib/screens/CanvasBoard/index.js +17 -0
- package/lib/screens/CanvasBoard/index.js.map +1 -1
- package/lib/screens/CanvasBoard/useCanvasHostChat.js +50 -0
- package/lib/screens/CanvasBoard/useCanvasHostChat.js.map +1 -0
- package/lib/screens/Home/HomeScreen.js +68 -15
- package/lib/screens/Home/HomeScreen.js.map +1 -1
- package/lib/screens/ShoppingNative/index.js +9 -3
- package/lib/screens/ShoppingNative/index.js.map +1 -1
- package/lib/services/brainQuickReply.js +16 -1
- package/lib/services/brainQuickReply.js.map +1 -1
- package/package.json +8 -5
- package/lib/features/canvas/set/SetViewportWebView.js +0 -345
- package/lib/features/canvas/set/SetViewportWebView.js.map +0 -1
- package/lib/features/canvas/set/setPresets.js +0 -85
- package/lib/features/canvas/set/setPresets.js.map +0 -1
- package/lib/features/canvas/set/setProject.js +0 -66
- package/lib/features/canvas/set/setProject.js.map +0 -1
- package/lib/features/shopping/services/catalogActions.js +0 -166
- package/lib/features/shopping/services/catalogActions.js.map +0 -1
- package/lib/features/shopping/useCartCloudSync.js +0 -33
- package/lib/features/shopping/useCartCloudSync.js.map +0 -1
|
@@ -0,0 +1,1387 @@
|
|
|
1
|
+
import {THREE}from'./threeLib.js';import {SPLAT_ON_PHONE}from'./splatWorld.js';import {drawableModelUrl,disposeObject,applyTransform,buildSceneObject,applyFigure,LOAD_FAILURE_KEY}from'./objects.js';import {DEFAULT_CAMERA,aspectRatio,DEFAULT_WORLD}from'../types.js';import {poseObjectIn,frameTimes}from'../animation.js';import {shotCameraAt,liveCameraIdAt,editCameraAt}from'../shotCamera.js';import {limbPoseAt}from'../figure.js';import {guideFov,previewBox,PREVIEW_MARGIN_PX}from'./framing.js';import {orbitCamera,panCamera,zoomCamera}from'../orbit.js';var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
+
var __spreadValues = (a, b) => {
|
|
7
|
+
for (var prop in b || (b = {}))
|
|
8
|
+
if (__hasOwnProp.call(b, prop))
|
|
9
|
+
__defNormalProp(a, prop, b[prop]);
|
|
10
|
+
if (__getOwnPropSymbols)
|
|
11
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
12
|
+
if (__propIsEnum.call(b, prop))
|
|
13
|
+
__defNormalProp(a, prop, b[prop]);
|
|
14
|
+
}
|
|
15
|
+
return a;
|
|
16
|
+
};
|
|
17
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
18
|
+
const CAMERA_COLOR = 15906354;
|
|
19
|
+
const SUN_COLOR = 16765562;
|
|
20
|
+
const FRUSTUM_LENGTH_M = 1.4;
|
|
21
|
+
const MAX_FOG_DENSITY = 0.12;
|
|
22
|
+
const SUN_DISTANCE_M = 9;
|
|
23
|
+
const SUN_HANDLE_DISTANCE_M = 5;
|
|
24
|
+
const MIN_DISTANCE = 0.4;
|
|
25
|
+
const MAX_DISTANCE = 80;
|
|
26
|
+
const MAX_POLAR = Math.PI / 2 - 0.01;
|
|
27
|
+
const TAP_SLOP = 6;
|
|
28
|
+
const rad = (d) => d * Math.PI / 180;
|
|
29
|
+
const degrees = (r) => r * 180 / Math.PI;
|
|
30
|
+
const tidy = (n) => Math.round(n * 1e3) / 1e3;
|
|
31
|
+
const STILLS_BUILD_WAIT_MS = 8e3;
|
|
32
|
+
const STAGE_LOOK = {
|
|
33
|
+
dark: {
|
|
34
|
+
background: DEFAULT_WORLD.background,
|
|
35
|
+
ground: 2764083,
|
|
36
|
+
gridCenter: 4869976,
|
|
37
|
+
grid: 3356478
|
|
38
|
+
},
|
|
39
|
+
light: {
|
|
40
|
+
background: "#e6e7ea",
|
|
41
|
+
ground: 13882842,
|
|
42
|
+
gridCenter: 10396330,
|
|
43
|
+
grid: 12501447
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
class SetStage {
|
|
47
|
+
constructor(surface, callbacks) {
|
|
48
|
+
this.surface = surface;
|
|
49
|
+
this.callbacks = callbacks;
|
|
50
|
+
__publicField(this, "renderer");
|
|
51
|
+
__publicField(this, "scene", new THREE.Scene());
|
|
52
|
+
__publicField(this, "camera");
|
|
53
|
+
__publicField(this, "director");
|
|
54
|
+
__publicField(this, "raycaster", new THREE.Raycaster());
|
|
55
|
+
__publicField(this, "pointer", new THREE.Vector2());
|
|
56
|
+
/** What the active camera orbits: the shot's aim in the shot view, the Director's in the Director view. */
|
|
57
|
+
__publicField(this, "orbitTarget", new THREE.Vector3(DEFAULT_CAMERA.target.x, DEFAULT_CAMERA.target.y, DEFAULT_CAMERA.target.z));
|
|
58
|
+
__publicField(this, "built", /* @__PURE__ */ new Map());
|
|
59
|
+
__publicField(this, "drawn", /* @__PURE__ */ new Map());
|
|
60
|
+
__publicField(this, "building", /* @__PURE__ */ new Set());
|
|
61
|
+
__publicField(this, "noteMode", false);
|
|
62
|
+
__publicField(this, "pathMode", false);
|
|
63
|
+
__publicField(this, "draftPath", new THREE.Group());
|
|
64
|
+
__publicField(this, "otherCameras", new THREE.Group());
|
|
65
|
+
__publicField(this, "posedFigures", /* @__PURE__ */ new Set());
|
|
66
|
+
__publicField(this, "shotRoll", 0);
|
|
67
|
+
__publicField(this, "onAir", null);
|
|
68
|
+
__publicField(this, "recording", null);
|
|
69
|
+
__publicField(this, "drag", null);
|
|
70
|
+
__publicField(this, "playing", false);
|
|
71
|
+
__publicField(this, "posedAt", null);
|
|
72
|
+
__publicField(this, "billboards", /* @__PURE__ */ new Set());
|
|
73
|
+
__publicField(this, "key");
|
|
74
|
+
__publicField(this, "ambient");
|
|
75
|
+
__publicField(this, "ground");
|
|
76
|
+
__publicField(this, "grid");
|
|
77
|
+
__publicField(this, "viewLight", false);
|
|
78
|
+
__publicField(this, "shownWorld", DEFAULT_WORLD);
|
|
79
|
+
__publicField(this, "worldSphere", null);
|
|
80
|
+
__publicField(this, "worldTextureUrl", "");
|
|
81
|
+
__publicField(this, "splatShown", "");
|
|
82
|
+
__publicField(this, "shadowCatcher");
|
|
83
|
+
__publicField(this, "view", "camera");
|
|
84
|
+
__publicField(this, "shotTarget", new THREE.Vector3(DEFAULT_CAMERA.target.x, DEFAULT_CAMERA.target.y, DEFAULT_CAMERA.target.z));
|
|
85
|
+
__publicField(this, "directorTarget", new THREE.Vector3(0, 0.8, 0));
|
|
86
|
+
__publicField(this, "directorPlaced", false);
|
|
87
|
+
__publicField(this, "rig", new THREE.Group());
|
|
88
|
+
__publicField(this, "cameraMark", new THREE.Group());
|
|
89
|
+
__publicField(this, "targetMark");
|
|
90
|
+
__publicField(this, "sunMark", new THREE.Group());
|
|
91
|
+
__publicField(this, "paths", new THREE.Group());
|
|
92
|
+
__publicField(this, "aimLine");
|
|
93
|
+
__publicField(this, "sunLine");
|
|
94
|
+
__publicField(this, "frustum");
|
|
95
|
+
__publicField(this, "frustumKey", "");
|
|
96
|
+
__publicField(this, "fog", new THREE.FogExp2(16777215, 0));
|
|
97
|
+
__publicField(this, "gizmoMode", "translate");
|
|
98
|
+
/** The selected piece's outline: the phone's stand-in for the gizmo's handles. */
|
|
99
|
+
__publicField(this, "selectionBox", null);
|
|
100
|
+
__publicField(this, "selectedId", null);
|
|
101
|
+
__publicField(this, "selectedLocked", false);
|
|
102
|
+
__publicField(this, "disposed", false);
|
|
103
|
+
__publicField(this, "dirty", true);
|
|
104
|
+
__publicField(this, "aspect", 16 / 9);
|
|
105
|
+
__publicField(this, "shotFov", DEFAULT_CAMERA.fov);
|
|
106
|
+
/** The view's size in points (web: CSS pixels); the drawing buffer is this times `pixelRatio`. */
|
|
107
|
+
__publicField(this, "viewWidth", 1);
|
|
108
|
+
__publicField(this, "viewHeight", 1);
|
|
109
|
+
__publicField(this, "pixelRatio", 1);
|
|
110
|
+
// ── Frames ────────────────────────────────────────────────────────────────
|
|
111
|
+
/** Render targets by size, kept while a render runs: a 144-frame shot does not make 144 of them. */
|
|
112
|
+
__publicField(this, "targets", /* @__PURE__ */ new Map());
|
|
113
|
+
const {
|
|
114
|
+
gl
|
|
115
|
+
} = surface;
|
|
116
|
+
this.renderer = new THREE.WebGLRenderer({
|
|
117
|
+
canvas: {
|
|
118
|
+
width: gl.drawingBufferWidth,
|
|
119
|
+
height: gl.drawingBufferHeight,
|
|
120
|
+
style: {},
|
|
121
|
+
addEventListener: () => void 0,
|
|
122
|
+
removeEventListener: () => void 0,
|
|
123
|
+
clientWidth: gl.drawingBufferWidth,
|
|
124
|
+
clientHeight: gl.drawingBufferHeight,
|
|
125
|
+
getContext: () => gl
|
|
126
|
+
},
|
|
127
|
+
context: gl,
|
|
128
|
+
antialias: false
|
|
129
|
+
});
|
|
130
|
+
this.renderer.setPixelRatio(1);
|
|
131
|
+
this.renderer.setSize(gl.drawingBufferWidth, gl.drawingBufferHeight, false);
|
|
132
|
+
this.renderer.shadowMap.enabled = true;
|
|
133
|
+
this.renderer.shadowMap.type = THREE.PCFShadowMap;
|
|
134
|
+
this.renderer.toneMapping = THREE.ACESFilmicToneMapping;
|
|
135
|
+
this.renderer.toneMappingExposure = 1.05;
|
|
136
|
+
this.camera = new THREE.PerspectiveCamera(40, 1, 0.05, 400);
|
|
137
|
+
this.camera.position.set(3.2, 2.1, 4.4);
|
|
138
|
+
this.director = new THREE.PerspectiveCamera(40, 1, 0.05, 400);
|
|
139
|
+
this.director.position.set(7, 6, 9);
|
|
140
|
+
this.ambient = new THREE.AmbientLight(16777215, 0.55);
|
|
141
|
+
this.scene.add(this.ambient);
|
|
142
|
+
this.key = new THREE.DirectionalLight(16777215, 2.6);
|
|
143
|
+
this.key.castShadow = true;
|
|
144
|
+
this.key.shadow.mapSize.set(1024, 1024);
|
|
145
|
+
this.key.shadow.bias = -4e-4;
|
|
146
|
+
this.key.shadow.normalBias = 0.02;
|
|
147
|
+
this.key.shadow.camera.near = 0.5;
|
|
148
|
+
this.key.shadow.camera.far = 40;
|
|
149
|
+
const shadowCam = this.key.shadow.camera;
|
|
150
|
+
shadowCam.left = -8;
|
|
151
|
+
shadowCam.right = 8;
|
|
152
|
+
shadowCam.top = 8;
|
|
153
|
+
shadowCam.bottom = -8;
|
|
154
|
+
this.scene.add(this.key);
|
|
155
|
+
this.scene.add(this.key.target);
|
|
156
|
+
const fill = new THREE.DirectionalLight(16777215, 0.45);
|
|
157
|
+
fill.position.set(-4, 3, -5);
|
|
158
|
+
this.scene.add(fill);
|
|
159
|
+
this.ground = new THREE.Mesh(new THREE.PlaneGeometry(80, 80), new THREE.MeshStandardMaterial({
|
|
160
|
+
color: STAGE_LOOK.dark.ground,
|
|
161
|
+
roughness: 0.95,
|
|
162
|
+
metalness: 0
|
|
163
|
+
}));
|
|
164
|
+
this.ground.rotation.x = -Math.PI / 2;
|
|
165
|
+
this.ground.receiveShadow = true;
|
|
166
|
+
this.scene.add(this.ground);
|
|
167
|
+
this.shadowCatcher = new THREE.Mesh(new THREE.PlaneGeometry(80, 80), new THREE.ShadowMaterial({
|
|
168
|
+
opacity: 0.38,
|
|
169
|
+
depthWrite: false
|
|
170
|
+
}));
|
|
171
|
+
this.shadowCatcher.rotation.x = -Math.PI / 2;
|
|
172
|
+
this.shadowCatcher.receiveShadow = true;
|
|
173
|
+
this.shadowCatcher.renderOrder = 1;
|
|
174
|
+
this.shadowCatcher.visible = false;
|
|
175
|
+
this.scene.add(this.shadowCatcher);
|
|
176
|
+
this.grid = new THREE.GridHelper(40, 40, STAGE_LOOK.dark.gridCenter, STAGE_LOOK.dark.grid);
|
|
177
|
+
this.grid.position.y = 2e-3;
|
|
178
|
+
this.scene.add(this.grid);
|
|
179
|
+
const handle = (color) => new THREE.MeshBasicMaterial({
|
|
180
|
+
color,
|
|
181
|
+
fog: false,
|
|
182
|
+
toneMapped: false
|
|
183
|
+
});
|
|
184
|
+
const line = (color, opacity = 0.75) => new THREE.LineBasicMaterial({
|
|
185
|
+
color,
|
|
186
|
+
fog: false,
|
|
187
|
+
toneMapped: false,
|
|
188
|
+
transparent: true,
|
|
189
|
+
opacity
|
|
190
|
+
});
|
|
191
|
+
const body = new THREE.Mesh(new THREE.BoxGeometry(0.26, 0.2, 0.4), handle(CAMERA_COLOR));
|
|
192
|
+
const lens = new THREE.Mesh(new THREE.CylinderGeometry(0.09, 0.11, 0.16, 20), handle(2829619));
|
|
193
|
+
lens.rotation.x = Math.PI / 2;
|
|
194
|
+
lens.position.z = -0.27;
|
|
195
|
+
this.cameraMark.add(body, lens);
|
|
196
|
+
this.frustum = new THREE.LineSegments(new THREE.BufferGeometry(), line(CAMERA_COLOR, 0.9));
|
|
197
|
+
this.cameraMark.add(this.frustum);
|
|
198
|
+
this.targetMark = new THREE.Mesh(new THREE.SphereGeometry(0.1, 20, 14), handle(CAMERA_COLOR));
|
|
199
|
+
this.aimLine = new THREE.Line(new THREE.BufferGeometry().setFromPoints([new THREE.Vector3(), new THREE.Vector3()]), line(CAMERA_COLOR, 0.5));
|
|
200
|
+
const sunCore = new THREE.Mesh(new THREE.SphereGeometry(0.26, 20, 14), handle(SUN_COLOR));
|
|
201
|
+
const rays = [];
|
|
202
|
+
for (let i = 0; i < 12; i += 1) {
|
|
203
|
+
const angle = i / 12 * Math.PI * 2;
|
|
204
|
+
const direction = new THREE.Vector3(Math.cos(angle), Math.sin(angle), 0);
|
|
205
|
+
rays.push(direction.clone().multiplyScalar(0.36), direction.clone().multiplyScalar(0.56));
|
|
206
|
+
}
|
|
207
|
+
this.sunMark.add(sunCore, new THREE.LineSegments(new THREE.BufferGeometry().setFromPoints(rays), line(SUN_COLOR, 0.95)));
|
|
208
|
+
this.sunLine = new THREE.Line(new THREE.BufferGeometry().setFromPoints([new THREE.Vector3(), new THREE.Vector3()]), line(SUN_COLOR, 0.45));
|
|
209
|
+
this.rig.add(this.cameraMark, this.targetMark, this.aimLine, this.sunMark, this.sunLine, this.paths, this.otherCameras);
|
|
210
|
+
this.rig.visible = false;
|
|
211
|
+
this.scene.add(this.rig);
|
|
212
|
+
this.scene.add(this.draftPath);
|
|
213
|
+
this.camera.lookAt(this.orbitTarget);
|
|
214
|
+
}
|
|
215
|
+
// ── Drawing ───────────────────────────────────────────────────────────────
|
|
216
|
+
/** Something changed: draw on the next frame. */
|
|
217
|
+
invalidate() {
|
|
218
|
+
this.dirty = true;
|
|
219
|
+
}
|
|
220
|
+
/** One display frame: draws when something changed, or every frame while the shot plays. */
|
|
221
|
+
frame() {
|
|
222
|
+
if (this.disposed) return;
|
|
223
|
+
if (!this.dirty && !this.playing && !this.recording) return;
|
|
224
|
+
this.dirty = false;
|
|
225
|
+
this.renderFrame();
|
|
226
|
+
this.surface.present();
|
|
227
|
+
}
|
|
228
|
+
// ── Touch ─────────────────────────────────────────────────────────────────
|
|
229
|
+
aimAt(x, y) {
|
|
230
|
+
this.pointer.x = x / this.viewWidth * 2 - 1;
|
|
231
|
+
this.pointer.y = -(y / this.viewHeight) * 2 + 1;
|
|
232
|
+
this.raycaster.setFromCamera(this.pointer, this.activeCamera());
|
|
233
|
+
}
|
|
234
|
+
floorAt(x, y, height = 0) {
|
|
235
|
+
this.aimAt(x, y);
|
|
236
|
+
const hit = new THREE.Vector3();
|
|
237
|
+
return this.raycaster.ray.intersectPlane(new THREE.Plane(new THREE.Vector3(0, 1, 0), -height), hit) ? hit : null;
|
|
238
|
+
}
|
|
239
|
+
/** The built piece a ray lands on first. */
|
|
240
|
+
pieceHit() {
|
|
241
|
+
const targets = [...this.built.entries()].filter(([, obj]) => obj.visible);
|
|
242
|
+
const hits = this.raycaster.intersectObjects(targets.map(([, obj]) => obj), true);
|
|
243
|
+
if (hits.length === 0) return null;
|
|
244
|
+
let node = hits[0].object;
|
|
245
|
+
while (node) {
|
|
246
|
+
const entry = targets.find(([, obj]) => obj === node);
|
|
247
|
+
if (entry) return {
|
|
248
|
+
id: entry[0],
|
|
249
|
+
point: hits[0].point
|
|
250
|
+
};
|
|
251
|
+
node = node.parent;
|
|
252
|
+
}
|
|
253
|
+
return null;
|
|
254
|
+
}
|
|
255
|
+
/** A tap, in the view's points: select, drop a note, lay a route point, or grab a Director handle (web onPointerUp). */
|
|
256
|
+
tap(x, y) {
|
|
257
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
258
|
+
if (this.disposed) return;
|
|
259
|
+
this.aimAt(x, y);
|
|
260
|
+
if (this.view === "director" && this.rigPartHit()) return;
|
|
261
|
+
if (this.pathMode) {
|
|
262
|
+
const floor = this.floorAt(x, y);
|
|
263
|
+
if (floor) (_b = (_a = this.callbacks).onPathPoint) == null ? void 0 : _b.call(_a, {
|
|
264
|
+
x: tidy(floor.x),
|
|
265
|
+
y: 0,
|
|
266
|
+
z: tidy(floor.z)
|
|
267
|
+
});
|
|
268
|
+
return;
|
|
269
|
+
}
|
|
270
|
+
if (this.noteMode) {
|
|
271
|
+
const hit = this.pieceHit();
|
|
272
|
+
const point = (_c = hit == null ? void 0 : hit.point) != null ? _c : this.floorAt(x, y);
|
|
273
|
+
if (!point) return;
|
|
274
|
+
(_f = (_e = this.callbacks).onNotePoint) == null ? void 0 : _f.call(_e, {
|
|
275
|
+
objectId: (_d = hit == null ? void 0 : hit.id) != null ? _d : null,
|
|
276
|
+
point: {
|
|
277
|
+
x: tidy(point.x),
|
|
278
|
+
y: tidy(point.y),
|
|
279
|
+
z: tidy(point.z)
|
|
280
|
+
},
|
|
281
|
+
screen: {
|
|
282
|
+
x,
|
|
283
|
+
y
|
|
284
|
+
}
|
|
285
|
+
});
|
|
286
|
+
return;
|
|
287
|
+
}
|
|
288
|
+
this.aimAt(x, y);
|
|
289
|
+
this.callbacks.onSelect((_h = (_g = this.pieceHit()) == null ? void 0 : _g.id) != null ? _h : null);
|
|
290
|
+
}
|
|
291
|
+
/**
|
|
292
|
+
* A finger came down: answers true when it took something to drag - the performer being recorded, a Director
|
|
293
|
+
* handle, or the selected piece - and false when it should orbit.
|
|
294
|
+
*/
|
|
295
|
+
dragStart(x, y) {
|
|
296
|
+
var _a;
|
|
297
|
+
if (this.disposed) return false;
|
|
298
|
+
if (((_a = this.recording) == null ? void 0 : _a.kind) === "object") {
|
|
299
|
+
this.drag = {
|
|
300
|
+
kind: "record",
|
|
301
|
+
id: this.recording.id
|
|
302
|
+
};
|
|
303
|
+
this.followFinger(x, y);
|
|
304
|
+
return true;
|
|
305
|
+
}
|
|
306
|
+
this.aimAt(x, y);
|
|
307
|
+
if (this.view === "director") {
|
|
308
|
+
const part = this.rigPartHit();
|
|
309
|
+
if (part) {
|
|
310
|
+
const object2 = this.rigObject(part);
|
|
311
|
+
const plane2 = new THREE.Plane(new THREE.Vector3(0, 1, 0), -object2.position.y);
|
|
312
|
+
const grab2 = new THREE.Vector3();
|
|
313
|
+
if (this.raycaster.ray.intersectPlane(plane2, grab2)) {
|
|
314
|
+
this.drag = {
|
|
315
|
+
kind: "rig",
|
|
316
|
+
part,
|
|
317
|
+
plane: plane2,
|
|
318
|
+
grab: grab2,
|
|
319
|
+
from: object2.position.clone()
|
|
320
|
+
};
|
|
321
|
+
return true;
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
if (!this.selectedId || this.selectedLocked) return false;
|
|
326
|
+
const hit = this.pieceHit();
|
|
327
|
+
if (!hit || hit.id !== this.selectedId) return false;
|
|
328
|
+
const object = this.built.get(hit.id);
|
|
329
|
+
if (!object) return false;
|
|
330
|
+
const plane = new THREE.Plane(new THREE.Vector3(0, 1, 0), -object.position.y);
|
|
331
|
+
const grab = new THREE.Vector3();
|
|
332
|
+
if (!this.raycaster.ray.intersectPlane(plane, grab)) return false;
|
|
333
|
+
this.drag = {
|
|
334
|
+
kind: "object",
|
|
335
|
+
id: hit.id,
|
|
336
|
+
mode: this.gizmoMode,
|
|
337
|
+
start: {
|
|
338
|
+
x,
|
|
339
|
+
y
|
|
340
|
+
},
|
|
341
|
+
moved: false,
|
|
342
|
+
from: object.position.clone(),
|
|
343
|
+
plane,
|
|
344
|
+
grab,
|
|
345
|
+
yaw: object.rotation.y,
|
|
346
|
+
scale: object.scale.clone()
|
|
347
|
+
};
|
|
348
|
+
return true;
|
|
349
|
+
}
|
|
350
|
+
dragMove(x, y) {
|
|
351
|
+
const drag = this.drag;
|
|
352
|
+
if (!drag) return;
|
|
353
|
+
if (drag.kind === "record") {
|
|
354
|
+
this.followFinger(x, y);
|
|
355
|
+
return;
|
|
356
|
+
}
|
|
357
|
+
this.aimAt(x, y);
|
|
358
|
+
if (drag.kind === "rig") {
|
|
359
|
+
const at = new THREE.Vector3();
|
|
360
|
+
if (!this.raycaster.ray.intersectPlane(drag.plane, at)) return;
|
|
361
|
+
const object2 = this.rigObject(drag.part);
|
|
362
|
+
object2.position.copy(drag.from).add(at.sub(drag.grab));
|
|
363
|
+
this.followRigDrag(drag.part);
|
|
364
|
+
this.invalidate();
|
|
365
|
+
return;
|
|
366
|
+
}
|
|
367
|
+
const object = this.built.get(drag.id);
|
|
368
|
+
if (!object) return;
|
|
369
|
+
if (!drag.moved && Math.hypot(x - drag.start.x, y - drag.start.y) < TAP_SLOP) return;
|
|
370
|
+
drag.moved = true;
|
|
371
|
+
if (drag.mode === "translate") {
|
|
372
|
+
const at = new THREE.Vector3();
|
|
373
|
+
if (!this.raycaster.ray.intersectPlane(drag.plane, at)) return;
|
|
374
|
+
object.position.copy(drag.from).add(at.sub(drag.grab));
|
|
375
|
+
object.position.y = drag.from.y;
|
|
376
|
+
} else if (drag.mode === "rotate") {
|
|
377
|
+
object.rotation.y = drag.yaw + (x - drag.start.x) / Math.max(1, this.viewWidth) * Math.PI * 2;
|
|
378
|
+
} else {
|
|
379
|
+
const k = Math.max(0.05, 2 ** ((drag.start.y - y) / Math.max(1, this.viewHeight / 1.5)));
|
|
380
|
+
object.scale.copy(drag.scale).multiplyScalar(k);
|
|
381
|
+
}
|
|
382
|
+
this.updateSelectionBox();
|
|
383
|
+
this.invalidate();
|
|
384
|
+
}
|
|
385
|
+
dragEnd() {
|
|
386
|
+
const drag = this.drag;
|
|
387
|
+
this.drag = null;
|
|
388
|
+
if (!drag) return;
|
|
389
|
+
if (drag.kind === "rig") {
|
|
390
|
+
this.reportRig(drag.part);
|
|
391
|
+
return;
|
|
392
|
+
}
|
|
393
|
+
if (drag.kind === "object") {
|
|
394
|
+
if (drag.moved) this.reportTransform(drag.id);
|
|
395
|
+
else this.callbacks.onSelect(drag.id);
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
/** Put the performer being recorded where the finger meets the floor (web followPointer). */
|
|
399
|
+
followFinger(x, y) {
|
|
400
|
+
var _a;
|
|
401
|
+
if (((_a = this.recording) == null ? void 0 : _a.kind) !== "object") return;
|
|
402
|
+
const built = this.built.get(this.recording.id);
|
|
403
|
+
if (!built) return;
|
|
404
|
+
const floor = this.floorAt(x, y);
|
|
405
|
+
if (!floor) return;
|
|
406
|
+
const dx = floor.x - built.position.x;
|
|
407
|
+
const dz = floor.z - built.position.z;
|
|
408
|
+
if (Math.hypot(dx, dz) > 0.02) built.rotation.y = Math.atan2(dx, dz);
|
|
409
|
+
built.position.x = floor.x;
|
|
410
|
+
built.position.z = floor.z;
|
|
411
|
+
this.invalidate();
|
|
412
|
+
}
|
|
413
|
+
/** The orbit can move: playing holds it still, unless it is the take being recorded (web setPlaying). */
|
|
414
|
+
orbitEnabled() {
|
|
415
|
+
var _a, _b;
|
|
416
|
+
if (((_a = this.recording) == null ? void 0 : _a.kind) === "object") return false;
|
|
417
|
+
return ((_b = this.recording) == null ? void 0 : _b.kind) === "camera" || !(this.playing && this.view === "camera");
|
|
418
|
+
}
|
|
419
|
+
/** The active camera as the set stores one, round what it orbits: what `../orbit` moves. */
|
|
420
|
+
orbitCameraState() {
|
|
421
|
+
const viewing = this.activeCamera();
|
|
422
|
+
const p = viewing.position;
|
|
423
|
+
const t = this.orbitTarget;
|
|
424
|
+
return {
|
|
425
|
+
position: {
|
|
426
|
+
x: p.x,
|
|
427
|
+
y: p.y,
|
|
428
|
+
z: p.z
|
|
429
|
+
},
|
|
430
|
+
target: {
|
|
431
|
+
x: t.x,
|
|
432
|
+
y: t.y,
|
|
433
|
+
z: t.z
|
|
434
|
+
},
|
|
435
|
+
fov: viewing.fov
|
|
436
|
+
};
|
|
437
|
+
}
|
|
438
|
+
placeOrbit(next) {
|
|
439
|
+
const viewing = this.activeCamera();
|
|
440
|
+
this.orbitTarget.set(next.target.x, next.target.y, next.target.z);
|
|
441
|
+
const offset = new THREE.Vector3(next.position.x, next.position.y, next.position.z).sub(this.orbitTarget);
|
|
442
|
+
const spherical = new THREE.Spherical().setFromVector3(offset);
|
|
443
|
+
spherical.phi = Math.max(0.01, Math.min(MAX_POLAR, spherical.phi));
|
|
444
|
+
spherical.radius = Math.max(MIN_DISTANCE, Math.min(MAX_DISTANCE, spherical.radius));
|
|
445
|
+
spherical.makeSafe();
|
|
446
|
+
viewing.position.copy(this.orbitTarget).add(new THREE.Vector3().setFromSpherical(spherical));
|
|
447
|
+
viewing.lookAt(this.orbitTarget);
|
|
448
|
+
this.invalidate();
|
|
449
|
+
}
|
|
450
|
+
/** One finger across the view: turn round what the camera looks at (a view's height is a full turn). */
|
|
451
|
+
orbitBy(dx, dy) {
|
|
452
|
+
if (this.disposed || !this.orbitEnabled()) return;
|
|
453
|
+
this.placeOrbit(orbitCamera(this.orbitCameraState(), dx, dy, this.viewHeight));
|
|
454
|
+
}
|
|
455
|
+
/** Two fingers across the view: slide the camera and what it looks at together. */
|
|
456
|
+
panBy(dx, dy) {
|
|
457
|
+
if (this.disposed || !this.orbitEnabled()) return;
|
|
458
|
+
this.placeOrbit(panCamera(this.orbitCameraState(), dx, dy, this.viewHeight));
|
|
459
|
+
}
|
|
460
|
+
/** A pinch: further apart dollies in, closer together dollies out. */
|
|
461
|
+
zoomBy(scaleChange) {
|
|
462
|
+
if (this.disposed || !this.orbitEnabled() || !(scaleChange > 0)) return;
|
|
463
|
+
this.placeOrbit(zoomCamera(this.orbitCameraState(), scaleChange));
|
|
464
|
+
}
|
|
465
|
+
/** The fingers let go of the camera: the shot records where it was left (web orbit 'end'). */
|
|
466
|
+
gestureEnd() {
|
|
467
|
+
var _a;
|
|
468
|
+
if (this.view === "camera" && ((_a = this.recording) == null ? void 0 : _a.kind) !== "camera") this.reportCamera();
|
|
469
|
+
}
|
|
470
|
+
setRecording(recording) {
|
|
471
|
+
this.recording = recording;
|
|
472
|
+
this.drag = null;
|
|
473
|
+
this.updateSelectionBox();
|
|
474
|
+
this.invalidate();
|
|
475
|
+
}
|
|
476
|
+
sampleCamera() {
|
|
477
|
+
const aim = this.shotAim();
|
|
478
|
+
return __spreadValues({
|
|
479
|
+
position: {
|
|
480
|
+
x: tidy(this.camera.position.x),
|
|
481
|
+
y: tidy(this.camera.position.y),
|
|
482
|
+
z: tidy(this.camera.position.z)
|
|
483
|
+
},
|
|
484
|
+
target: {
|
|
485
|
+
x: tidy(aim.x),
|
|
486
|
+
y: tidy(aim.y),
|
|
487
|
+
z: tidy(aim.z)
|
|
488
|
+
},
|
|
489
|
+
fov: this.shotFov
|
|
490
|
+
}, this.shotRoll ? {
|
|
491
|
+
roll: this.shotRoll
|
|
492
|
+
} : {});
|
|
493
|
+
}
|
|
494
|
+
sampleObject(id) {
|
|
495
|
+
const built = this.built.get(id);
|
|
496
|
+
return built ? {
|
|
497
|
+
x: tidy(built.position.x),
|
|
498
|
+
y: tidy(built.position.y),
|
|
499
|
+
z: tidy(built.position.z)
|
|
500
|
+
} : null;
|
|
501
|
+
}
|
|
502
|
+
setNoteMode(on) {
|
|
503
|
+
this.noteMode = on;
|
|
504
|
+
}
|
|
505
|
+
setPathMode(on) {
|
|
506
|
+
this.pathMode = on;
|
|
507
|
+
if (!on) this.setDraftPath([]);
|
|
508
|
+
}
|
|
509
|
+
setDraftPath(points) {
|
|
510
|
+
for (const child of [...this.draftPath.children]) {
|
|
511
|
+
child.geometry.dispose();
|
|
512
|
+
child.material.dispose();
|
|
513
|
+
this.draftPath.remove(child);
|
|
514
|
+
}
|
|
515
|
+
this.invalidate();
|
|
516
|
+
if (points.length === 0) return;
|
|
517
|
+
const lifted = points.map((p) => new THREE.Vector3(p.x, 0.03, p.z));
|
|
518
|
+
const line = new THREE.Line(new THREE.BufferGeometry().setFromPoints(lifted), new THREE.LineBasicMaterial({
|
|
519
|
+
color: 3523722,
|
|
520
|
+
fog: false,
|
|
521
|
+
toneMapped: false,
|
|
522
|
+
depthTest: false,
|
|
523
|
+
transparent: true
|
|
524
|
+
}));
|
|
525
|
+
const dots = new THREE.Points(new THREE.BufferGeometry().setFromPoints(lifted), new THREE.PointsMaterial({
|
|
526
|
+
color: 3523722,
|
|
527
|
+
size: 10 * this.pixelRatio,
|
|
528
|
+
sizeAttenuation: false,
|
|
529
|
+
fog: false,
|
|
530
|
+
toneMapped: false,
|
|
531
|
+
depthTest: false,
|
|
532
|
+
transparent: true
|
|
533
|
+
}));
|
|
534
|
+
line.renderOrder = 998;
|
|
535
|
+
dots.renderOrder = 999;
|
|
536
|
+
this.draftPath.add(line, dots);
|
|
537
|
+
}
|
|
538
|
+
setCameraMarks(marks) {
|
|
539
|
+
for (const child of [...this.otherCameras.children]) {
|
|
540
|
+
child.traverse((node) => {
|
|
541
|
+
var _a, _b, _c, _d;
|
|
542
|
+
(_b = (_a = node.geometry) == null ? void 0 : _a.dispose) == null ? void 0 : _b.call(_a);
|
|
543
|
+
(_d = (_c = node.material) == null ? void 0 : _c.dispose) == null ? void 0 : _d.call(_c);
|
|
544
|
+
});
|
|
545
|
+
this.otherCameras.remove(child);
|
|
546
|
+
}
|
|
547
|
+
for (const mark of marks) {
|
|
548
|
+
const color = mark.live ? 16777215 : 10133674;
|
|
549
|
+
const group = new THREE.Group();
|
|
550
|
+
const body = new THREE.Mesh(new THREE.BoxGeometry(0.16, 0.12, 0.26), new THREE.MeshBasicMaterial({
|
|
551
|
+
color,
|
|
552
|
+
fog: false,
|
|
553
|
+
toneMapped: false
|
|
554
|
+
}));
|
|
555
|
+
const half = Math.tan(rad(mark.camera.fov) / 2) * FRUSTUM_LENGTH_M * 0.7;
|
|
556
|
+
const wide = half * this.aspect;
|
|
557
|
+
const corners = [[-wide, half], [wide, half], [wide, -half], [-wide, -half]].map(([x, y]) => new THREE.Vector3(x, y, -1.4 * 0.7));
|
|
558
|
+
const origin = new THREE.Vector3();
|
|
559
|
+
const frustum = new THREE.LineSegments(new THREE.BufferGeometry().setFromPoints(corners.flatMap((corner, index) => [origin, corner, corner, corners[(index + 1) % corners.length]])), new THREE.LineBasicMaterial({
|
|
560
|
+
color,
|
|
561
|
+
fog: false,
|
|
562
|
+
toneMapped: false,
|
|
563
|
+
transparent: true,
|
|
564
|
+
opacity: 0.8
|
|
565
|
+
}));
|
|
566
|
+
group.add(body, frustum);
|
|
567
|
+
group.position.set(mark.camera.position.x, mark.camera.position.y, mark.camera.position.z);
|
|
568
|
+
group.lookAt(mark.camera.target.x, mark.camera.target.y, mark.camera.target.z);
|
|
569
|
+
if (mark.camera.roll) group.rotateZ(rad(mark.camera.roll));
|
|
570
|
+
group.userData.cameraId = mark.id;
|
|
571
|
+
this.otherCameras.add(group);
|
|
572
|
+
}
|
|
573
|
+
this.invalidate();
|
|
574
|
+
}
|
|
575
|
+
viewFrom(side) {
|
|
576
|
+
if (this.view !== "director") return;
|
|
577
|
+
const reach = Math.max(this.director.position.distanceTo(this.orbitTarget), 6);
|
|
578
|
+
const way = {
|
|
579
|
+
top: new THREE.Vector3(0, 1, 1e-3),
|
|
580
|
+
front: new THREE.Vector3(0, 0.12, 1),
|
|
581
|
+
back: new THREE.Vector3(0, 0.12, -1),
|
|
582
|
+
left: new THREE.Vector3(-1, 0.12, 0),
|
|
583
|
+
right: new THREE.Vector3(1, 0.12, 0)
|
|
584
|
+
};
|
|
585
|
+
this.director.position.copy(this.orbitTarget).add(way[side].normalize().multiplyScalar(reach));
|
|
586
|
+
this.director.lookAt(this.orbitTarget);
|
|
587
|
+
this.invalidate();
|
|
588
|
+
}
|
|
589
|
+
viewRotation() {
|
|
590
|
+
const q = this.activeCamera().quaternion;
|
|
591
|
+
return {
|
|
592
|
+
x: q.x,
|
|
593
|
+
y: q.y,
|
|
594
|
+
z: q.z,
|
|
595
|
+
w: q.w
|
|
596
|
+
};
|
|
597
|
+
}
|
|
598
|
+
/** Where a point on the set shows in the view, in points; `visible` is false behind the camera or off the view. */
|
|
599
|
+
screenOf(point) {
|
|
600
|
+
const v = new THREE.Vector3(point.x, point.y, point.z).project(this.activeCamera());
|
|
601
|
+
const x = (v.x + 1) / 2 * this.viewWidth;
|
|
602
|
+
const y = (1 - v.y) / 2 * this.viewHeight;
|
|
603
|
+
return {
|
|
604
|
+
x,
|
|
605
|
+
y,
|
|
606
|
+
visible: v.z < 1 && v.z > -1 && x >= 0 && y >= 0 && x <= this.viewWidth && y <= this.viewHeight
|
|
607
|
+
};
|
|
608
|
+
}
|
|
609
|
+
anchorOf(id) {
|
|
610
|
+
const object = this.built.get(id);
|
|
611
|
+
if (!object || !object.visible) return null;
|
|
612
|
+
const box = new THREE.Box3().setFromObject(object);
|
|
613
|
+
if (box.isEmpty()) return null;
|
|
614
|
+
const centre = box.getCenter(new THREE.Vector3());
|
|
615
|
+
return {
|
|
616
|
+
x: centre.x,
|
|
617
|
+
y: box.max.y + 0.08,
|
|
618
|
+
z: centre.z
|
|
619
|
+
};
|
|
620
|
+
}
|
|
621
|
+
reportTransform(id) {
|
|
622
|
+
const object = this.built.get(id);
|
|
623
|
+
if (!object) return;
|
|
624
|
+
this.callbacks.onTransform(id, {
|
|
625
|
+
position: {
|
|
626
|
+
x: tidy(object.position.x),
|
|
627
|
+
y: tidy(object.position.y),
|
|
628
|
+
z: tidy(object.position.z)
|
|
629
|
+
},
|
|
630
|
+
rotation: {
|
|
631
|
+
x: tidy(degrees(object.rotation.x)),
|
|
632
|
+
y: tidy(degrees(object.rotation.y)),
|
|
633
|
+
z: tidy(degrees(object.rotation.z))
|
|
634
|
+
},
|
|
635
|
+
scale: {
|
|
636
|
+
x: tidy(object.scale.x),
|
|
637
|
+
y: tidy(object.scale.y),
|
|
638
|
+
z: tidy(object.scale.z)
|
|
639
|
+
}
|
|
640
|
+
});
|
|
641
|
+
}
|
|
642
|
+
reportCamera() {
|
|
643
|
+
const aim = this.shotAim();
|
|
644
|
+
this.callbacks.onCameraChange(__spreadValues({
|
|
645
|
+
position: {
|
|
646
|
+
x: tidy(this.camera.position.x),
|
|
647
|
+
y: tidy(this.camera.position.y),
|
|
648
|
+
z: tidy(this.camera.position.z)
|
|
649
|
+
},
|
|
650
|
+
target: {
|
|
651
|
+
x: tidy(aim.x),
|
|
652
|
+
y: tidy(aim.y),
|
|
653
|
+
z: tidy(aim.z)
|
|
654
|
+
},
|
|
655
|
+
fov: this.shotFov
|
|
656
|
+
}, this.shotRoll ? {
|
|
657
|
+
roll: this.shotRoll
|
|
658
|
+
} : {}));
|
|
659
|
+
}
|
|
660
|
+
rolled(draw) {
|
|
661
|
+
if (!this.shotRoll) {
|
|
662
|
+
draw();
|
|
663
|
+
return;
|
|
664
|
+
}
|
|
665
|
+
this.camera.rotateZ(rad(-this.shotRoll));
|
|
666
|
+
try {
|
|
667
|
+
draw();
|
|
668
|
+
} finally {
|
|
669
|
+
this.camera.rotateZ(rad(this.shotRoll));
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
shotAim() {
|
|
673
|
+
return this.view === "camera" ? this.orbitTarget : this.shotTarget;
|
|
674
|
+
}
|
|
675
|
+
activeCamera() {
|
|
676
|
+
return this.view === "director" ? this.director : this.camera;
|
|
677
|
+
}
|
|
678
|
+
// ── Director handles ──────────────────────────────────────────────────────
|
|
679
|
+
rigPartHit() {
|
|
680
|
+
const hit = (object, recursive = true) => this.raycaster.intersectObject(object, recursive).length > 0;
|
|
681
|
+
if (this.cameraMark.children.slice(0, 2).some((mesh) => hit(mesh, false))) return "camera";
|
|
682
|
+
if (hit(this.targetMark, false)) return "target";
|
|
683
|
+
if (hit(this.sunMark.children[0], false)) return "sun";
|
|
684
|
+
return null;
|
|
685
|
+
}
|
|
686
|
+
rigObject(part) {
|
|
687
|
+
return part === "camera" ? this.cameraMark : part === "target" ? this.targetMark : this.sunMark;
|
|
688
|
+
}
|
|
689
|
+
followRigDrag(part) {
|
|
690
|
+
if (part === "camera") {
|
|
691
|
+
this.camera.position.copy(this.cameraMark.position);
|
|
692
|
+
this.camera.lookAt(this.shotTarget);
|
|
693
|
+
} else if (part === "target") {
|
|
694
|
+
this.shotTarget.copy(this.targetMark.position);
|
|
695
|
+
this.camera.lookAt(this.shotTarget);
|
|
696
|
+
} else {
|
|
697
|
+
this.key.position.copy(this.sunMark.position).setLength(SUN_DISTANCE_M);
|
|
698
|
+
}
|
|
699
|
+
}
|
|
700
|
+
reportRig(part) {
|
|
701
|
+
var _a, _b;
|
|
702
|
+
if (part === "sun") {
|
|
703
|
+
const {
|
|
704
|
+
x,
|
|
705
|
+
y,
|
|
706
|
+
z
|
|
707
|
+
} = this.sunMark.position;
|
|
708
|
+
const elevation = degrees(Math.atan2(Math.max(0, y), Math.hypot(x, z)));
|
|
709
|
+
(_b = (_a = this.callbacks).onLightChange) == null ? void 0 : _b.call(_a, {
|
|
710
|
+
keyAzimuthDeg: Math.round((degrees(Math.atan2(x, z)) % 360 + 360) % 360),
|
|
711
|
+
keyElevationDeg: Math.round(Math.min(88, Math.max(5, elevation)))
|
|
712
|
+
});
|
|
713
|
+
return;
|
|
714
|
+
}
|
|
715
|
+
this.reportCamera();
|
|
716
|
+
}
|
|
717
|
+
updateRig() {
|
|
718
|
+
var _a;
|
|
719
|
+
const dragging = ((_a = this.drag) == null ? void 0 : _a.kind) === "rig" ? this.drag.part : null;
|
|
720
|
+
if (dragging !== "camera") {
|
|
721
|
+
this.cameraMark.position.copy(this.camera.position);
|
|
722
|
+
this.cameraMark.quaternion.copy(this.camera.quaternion);
|
|
723
|
+
}
|
|
724
|
+
if (dragging !== "target") this.targetMark.position.copy(this.shotTarget);
|
|
725
|
+
this.setLine(this.aimLine, this.camera.position, this.shotTarget);
|
|
726
|
+
this.setLine(this.sunLine, this.sunMark.position, new THREE.Vector3(this.sunMark.position.x, 0, this.sunMark.position.z));
|
|
727
|
+
this.sunMark.quaternion.copy(this.director.quaternion);
|
|
728
|
+
this.drawFrustum();
|
|
729
|
+
}
|
|
730
|
+
setLine(line, from, to) {
|
|
731
|
+
const positions = line.geometry.getAttribute("position");
|
|
732
|
+
positions.setXYZ(0, from.x, from.y, from.z);
|
|
733
|
+
positions.setXYZ(1, to.x, to.y, to.z);
|
|
734
|
+
positions.needsUpdate = true;
|
|
735
|
+
line.geometry.computeBoundingSphere();
|
|
736
|
+
}
|
|
737
|
+
drawFrustum() {
|
|
738
|
+
const key = `${this.shotFov}|${this.aspect}`;
|
|
739
|
+
if (key === this.frustumKey) return;
|
|
740
|
+
this.frustumKey = key;
|
|
741
|
+
const halfHeight = Math.tan(rad(this.shotFov) / 2) * FRUSTUM_LENGTH_M;
|
|
742
|
+
const halfWidth = halfHeight * this.aspect;
|
|
743
|
+
const corners = [[-halfWidth, halfHeight], [halfWidth, halfHeight], [halfWidth, -halfHeight], [-halfWidth, -halfHeight]].map(([x, y]) => new THREE.Vector3(x, y, -1.4));
|
|
744
|
+
const origin = new THREE.Vector3();
|
|
745
|
+
const points = corners.flatMap((corner, index) => [origin, corner, corner, corners[(index + 1) % corners.length]]);
|
|
746
|
+
this.frustum.geometry.dispose();
|
|
747
|
+
this.frustum.geometry = new THREE.BufferGeometry().setFromPoints(points);
|
|
748
|
+
}
|
|
749
|
+
placeDirector() {
|
|
750
|
+
const box = new THREE.Box3();
|
|
751
|
+
for (const object of this.built.values()) {
|
|
752
|
+
if (object.visible) box.expandByObject(object);
|
|
753
|
+
}
|
|
754
|
+
box.expandByPoint(this.camera.position);
|
|
755
|
+
box.expandByPoint(this.sunMark.position);
|
|
756
|
+
const centre = box.getCenter(new THREE.Vector3());
|
|
757
|
+
const radius = Math.max(box.getSize(new THREE.Vector3()).length() / 2, 3);
|
|
758
|
+
this.directorTarget.set(centre.x, Math.min(centre.y, 1), centre.z);
|
|
759
|
+
const distance = radius / Math.sin(rad(this.director.fov) / 2) * 0.92;
|
|
760
|
+
this.director.position.copy(this.directorTarget).add(new THREE.Vector3(0.62, 0.72, 0.9).normalize().multiplyScalar(distance));
|
|
761
|
+
this.directorPlaced = true;
|
|
762
|
+
}
|
|
763
|
+
setView(view) {
|
|
764
|
+
if (this.disposed || view === this.view) return;
|
|
765
|
+
if (view === "director") {
|
|
766
|
+
this.shotTarget.copy(this.orbitTarget);
|
|
767
|
+
if (!this.directorPlaced) this.placeDirector();
|
|
768
|
+
this.view = "director";
|
|
769
|
+
this.orbitTarget.copy(this.directorTarget);
|
|
770
|
+
this.director.lookAt(this.orbitTarget);
|
|
771
|
+
this.updateRig();
|
|
772
|
+
} else {
|
|
773
|
+
this.drag = null;
|
|
774
|
+
this.directorTarget.copy(this.orbitTarget);
|
|
775
|
+
this.view = "camera";
|
|
776
|
+
this.orbitTarget.copy(this.shotTarget);
|
|
777
|
+
this.camera.lookAt(this.orbitTarget);
|
|
778
|
+
}
|
|
779
|
+
this.rig.visible = view === "director";
|
|
780
|
+
this.applyShotFov();
|
|
781
|
+
this.invalidate();
|
|
782
|
+
}
|
|
783
|
+
lookFromTop() {
|
|
784
|
+
if (this.view !== "director") return;
|
|
785
|
+
const height = Math.max(this.director.position.distanceTo(this.orbitTarget), 6);
|
|
786
|
+
this.director.position.set(this.orbitTarget.x, this.orbitTarget.y + height, this.orbitTarget.z + 0.01);
|
|
787
|
+
this.director.lookAt(this.orbitTarget);
|
|
788
|
+
this.invalidate();
|
|
789
|
+
}
|
|
790
|
+
// ── Sync ──────────────────────────────────────────────────────────────────
|
|
791
|
+
static signature(object) {
|
|
792
|
+
var _a, _b, _c, _d;
|
|
793
|
+
return [object.source, (_a = object.kitId) != null ? _a : "", (_b = drawableModelUrl(object)) != null ? _b : "", (_c = object.color) != null ? _c : "", (_d = object.imageUrl) != null ? _d : ""].join("|");
|
|
794
|
+
}
|
|
795
|
+
sync(project) {
|
|
796
|
+
var _a, _b;
|
|
797
|
+
if (this.disposed) return;
|
|
798
|
+
const live = new Set(project.objects.map((o) => o.id));
|
|
799
|
+
for (const [id, object] of this.built) {
|
|
800
|
+
if (live.has(id)) continue;
|
|
801
|
+
this.scene.remove(object);
|
|
802
|
+
disposeObject(object);
|
|
803
|
+
this.built.delete(id);
|
|
804
|
+
this.drawn.delete(id);
|
|
805
|
+
this.billboards.delete(id);
|
|
806
|
+
}
|
|
807
|
+
for (const object of project.objects) {
|
|
808
|
+
if (object.billboard && object.source === "image") this.billboards.add(object.id);
|
|
809
|
+
else this.billboards.delete(object.id);
|
|
810
|
+
const existing = this.built.get(object.id);
|
|
811
|
+
const signature = SetStage.signature(object);
|
|
812
|
+
if (existing && this.drawn.get(object.id) === signature) {
|
|
813
|
+
if (!(((_a = this.drag) == null ? void 0 : _a.kind) === "object" && this.drag.id === object.id)) {
|
|
814
|
+
const yaw = existing.rotation.y;
|
|
815
|
+
applyTransform(existing, object);
|
|
816
|
+
if (this.billboards.has(object.id)) existing.rotation.y = yaw;
|
|
817
|
+
}
|
|
818
|
+
continue;
|
|
819
|
+
}
|
|
820
|
+
if (this.building.has(object.id)) continue;
|
|
821
|
+
this.building.add(object.id);
|
|
822
|
+
void buildSceneObject(object).then((group) => {
|
|
823
|
+
var _a2, _b2, _c;
|
|
824
|
+
this.building.delete(object.id);
|
|
825
|
+
if (this.disposed) {
|
|
826
|
+
disposeObject(group);
|
|
827
|
+
return;
|
|
828
|
+
}
|
|
829
|
+
const stale = this.built.get(object.id);
|
|
830
|
+
if (stale) {
|
|
831
|
+
this.scene.remove(stale);
|
|
832
|
+
disposeObject(stale);
|
|
833
|
+
}
|
|
834
|
+
this.scene.add(group);
|
|
835
|
+
this.built.set(object.id, group);
|
|
836
|
+
this.drawn.set(object.id, signature);
|
|
837
|
+
const posing = (_a2 = this.posedAt) == null ? void 0 : _a2.project.objects.find((item) => item.id === object.id);
|
|
838
|
+
const limbs = posing ? limbPoseAt(posing, this.posedAt.t) : null;
|
|
839
|
+
if (limbs) {
|
|
840
|
+
applyFigure(group, limbs);
|
|
841
|
+
this.posedFigures.add(object.id);
|
|
842
|
+
}
|
|
843
|
+
if (this.selectedId === object.id) this.updateSelectionBox();
|
|
844
|
+
const failure = group.userData[LOAD_FAILURE_KEY];
|
|
845
|
+
if (typeof failure === "string" && failure) (_c = (_b2 = this.callbacks).onObjectFailed) == null ? void 0 : _c.call(_b2, object.id, failure);
|
|
846
|
+
this.invalidate();
|
|
847
|
+
}).catch(() => this.building.delete(object.id));
|
|
848
|
+
}
|
|
849
|
+
this.applyWorld(project);
|
|
850
|
+
this.applyLighting(project);
|
|
851
|
+
this.applyFog(project);
|
|
852
|
+
this.shotRoll = (_b = project.camera.roll) != null ? _b : 0;
|
|
853
|
+
const aspect = aspectRatio(project.aspect);
|
|
854
|
+
if (this.aspect !== aspect || this.shotFov !== project.camera.fov) {
|
|
855
|
+
this.aspect = aspect;
|
|
856
|
+
this.shotFov = project.camera.fov;
|
|
857
|
+
this.applyShotFov();
|
|
858
|
+
}
|
|
859
|
+
this.updateSelectionBox();
|
|
860
|
+
this.invalidate();
|
|
861
|
+
}
|
|
862
|
+
pose(project, t, options = {}) {
|
|
863
|
+
var _a, _b, _c, _d;
|
|
864
|
+
if (this.disposed) return;
|
|
865
|
+
this.posedAt = {
|
|
866
|
+
project,
|
|
867
|
+
t
|
|
868
|
+
};
|
|
869
|
+
for (const object of project.objects) {
|
|
870
|
+
if (((_a = this.recording) == null ? void 0 : _a.kind) === "object" && this.recording.id === object.id) continue;
|
|
871
|
+
const moves = Boolean((_b = object.track) == null ? void 0 : _b.keys.length) || Boolean(object.attachedTo);
|
|
872
|
+
const limbs = limbPoseAt(object, t);
|
|
873
|
+
if (!moves && !limbs && !this.posedFigures.has(object.id)) continue;
|
|
874
|
+
const built = this.built.get(object.id);
|
|
875
|
+
if (!built || ((_c = this.drag) == null ? void 0 : _c.kind) === "object" && this.drag.id === object.id) continue;
|
|
876
|
+
const yaw = built.rotation.y;
|
|
877
|
+
applyTransform(built, poseObjectIn(project, object, t));
|
|
878
|
+
if (this.billboards.has(object.id)) built.rotation.y = yaw;
|
|
879
|
+
applyFigure(built, limbs);
|
|
880
|
+
if (limbs) this.posedFigures.add(object.id);
|
|
881
|
+
else this.posedFigures.delete(object.id);
|
|
882
|
+
}
|
|
883
|
+
const camera = (_d = options.camera) != null ? _d : "live";
|
|
884
|
+
if (camera === "live") {
|
|
885
|
+
this.applyCamera(shotCameraAt(project, t));
|
|
886
|
+
this.tellOnAir(liveCameraIdAt(project, t));
|
|
887
|
+
} else if (camera === "edit") {
|
|
888
|
+
this.applyCamera(editCameraAt(project, t));
|
|
889
|
+
this.tellOnAir(null);
|
|
890
|
+
}
|
|
891
|
+
this.updateSelectionBox();
|
|
892
|
+
this.invalidate();
|
|
893
|
+
}
|
|
894
|
+
tellOnAir(cameraId) {
|
|
895
|
+
var _a, _b;
|
|
896
|
+
if (cameraId === this.onAir) return;
|
|
897
|
+
this.onAir = cameraId;
|
|
898
|
+
(_b = (_a = this.callbacks).onLiveCamera) == null ? void 0 : _b.call(_a, cameraId);
|
|
899
|
+
}
|
|
900
|
+
setPlaying(playing) {
|
|
901
|
+
this.playing = playing;
|
|
902
|
+
this.invalidate();
|
|
903
|
+
}
|
|
904
|
+
setMotionPaths(paths) {
|
|
905
|
+
if (this.disposed) return;
|
|
906
|
+
for (const child of [...this.paths.children]) {
|
|
907
|
+
child.geometry.dispose();
|
|
908
|
+
child.material.dispose();
|
|
909
|
+
this.paths.remove(child);
|
|
910
|
+
}
|
|
911
|
+
const lift = (p) => new THREE.Vector3(p.x, p.y + 0.02, p.z);
|
|
912
|
+
for (const {
|
|
913
|
+
color,
|
|
914
|
+
points,
|
|
915
|
+
keys
|
|
916
|
+
} of paths) {
|
|
917
|
+
const line = new THREE.Line(new THREE.BufferGeometry().setFromPoints(points.map(lift)), new THREE.LineBasicMaterial({
|
|
918
|
+
color,
|
|
919
|
+
fog: false,
|
|
920
|
+
toneMapped: false,
|
|
921
|
+
depthTest: false,
|
|
922
|
+
transparent: true
|
|
923
|
+
}));
|
|
924
|
+
const dots = new THREE.Points(new THREE.BufferGeometry().setFromPoints(keys.map(lift)), new THREE.PointsMaterial({
|
|
925
|
+
color,
|
|
926
|
+
size: 9 * this.pixelRatio,
|
|
927
|
+
sizeAttenuation: false,
|
|
928
|
+
fog: false,
|
|
929
|
+
toneMapped: false,
|
|
930
|
+
depthTest: false,
|
|
931
|
+
transparent: true
|
|
932
|
+
}));
|
|
933
|
+
line.renderOrder = 998;
|
|
934
|
+
dots.renderOrder = 999;
|
|
935
|
+
this.paths.add(line, dots);
|
|
936
|
+
}
|
|
937
|
+
this.invalidate();
|
|
938
|
+
}
|
|
939
|
+
applyCamera(camera) {
|
|
940
|
+
var _a;
|
|
941
|
+
this.camera.position.set(camera.position.x, camera.position.y, camera.position.z);
|
|
942
|
+
this.shotTarget.set(camera.target.x, camera.target.y, camera.target.z);
|
|
943
|
+
this.shotFov = camera.fov;
|
|
944
|
+
this.shotRoll = (_a = camera.roll) != null ? _a : 0;
|
|
945
|
+
if (this.view === "camera") this.orbitTarget.copy(this.shotTarget);
|
|
946
|
+
this.camera.lookAt(this.shotTarget);
|
|
947
|
+
this.applyShotFov();
|
|
948
|
+
this.invalidate();
|
|
949
|
+
}
|
|
950
|
+
applyLighting(project) {
|
|
951
|
+
var _a;
|
|
952
|
+
const {
|
|
953
|
+
keyAzimuthDeg,
|
|
954
|
+
keyElevationDeg,
|
|
955
|
+
keyIntensity,
|
|
956
|
+
ambientIntensity
|
|
957
|
+
} = project.lighting;
|
|
958
|
+
const elevation = rad(keyElevationDeg);
|
|
959
|
+
const azimuth = rad(keyAzimuthDeg);
|
|
960
|
+
this.key.position.set(SUN_DISTANCE_M * Math.cos(elevation) * Math.sin(azimuth), SUN_DISTANCE_M * Math.sin(elevation), SUN_DISTANCE_M * Math.cos(elevation) * Math.cos(azimuth));
|
|
961
|
+
this.key.intensity = keyIntensity;
|
|
962
|
+
this.ambient.intensity = ambientIntensity;
|
|
963
|
+
if (!(((_a = this.drag) == null ? void 0 : _a.kind) === "rig" && this.drag.part === "sun")) this.sunMark.position.copy(this.key.position).setLength(SUN_HANDLE_DISTANCE_M);
|
|
964
|
+
}
|
|
965
|
+
applyFog(project) {
|
|
966
|
+
var _a;
|
|
967
|
+
const amount = (_a = project.lighting.fog) != null ? _a : 0;
|
|
968
|
+
if (amount <= 0) {
|
|
969
|
+
this.scene.fog = null;
|
|
970
|
+
return;
|
|
971
|
+
}
|
|
972
|
+
this.fog.color.set(project.world.imageUrl ? 13225686 : this.backdrop(project.world, this.lightStage(project.world)));
|
|
973
|
+
this.fog.density = amount * MAX_FOG_DENSITY;
|
|
974
|
+
this.scene.fog = this.fog;
|
|
975
|
+
}
|
|
976
|
+
lightStage(world) {
|
|
977
|
+
var _a;
|
|
978
|
+
return this.viewLight && !world.imageUrl && !((_a = world.splat) == null ? void 0 : _a.url) && world.background === DEFAULT_WORLD.background;
|
|
979
|
+
}
|
|
980
|
+
backdrop(world, light) {
|
|
981
|
+
return light ? STAGE_LOOK.light.background : world.background;
|
|
982
|
+
}
|
|
983
|
+
paintStage(light) {
|
|
984
|
+
const world = this.shownWorld;
|
|
985
|
+
if (!world.imageUrl) this.scene.background = new THREE.Color(this.backdrop(world, light));
|
|
986
|
+
this.ground.material.color.set(light ? STAGE_LOOK.light.ground : STAGE_LOOK.dark.ground);
|
|
987
|
+
if (this.scene.fog && !world.imageUrl) this.fog.color.set(this.backdrop(world, light));
|
|
988
|
+
}
|
|
989
|
+
setViewTheme(light) {
|
|
990
|
+
if (this.viewLight === light) return;
|
|
991
|
+
this.viewLight = light;
|
|
992
|
+
const look = light ? STAGE_LOOK.light : STAGE_LOOK.dark;
|
|
993
|
+
const grid = new THREE.GridHelper(40, 40, look.gridCenter, look.grid);
|
|
994
|
+
grid.position.copy(this.grid.position);
|
|
995
|
+
grid.visible = this.grid.visible;
|
|
996
|
+
this.scene.remove(this.grid);
|
|
997
|
+
disposeObject(this.grid);
|
|
998
|
+
this.grid = grid;
|
|
999
|
+
this.scene.add(grid);
|
|
1000
|
+
this.paintStage(this.lightStage(this.shownWorld));
|
|
1001
|
+
this.invalidate();
|
|
1002
|
+
}
|
|
1003
|
+
/** A 3D world is kept but not drawn here (./splatWorld): the stage says so once per world. */
|
|
1004
|
+
applySplatWorld(world) {
|
|
1005
|
+
var _a, _b, _c, _d;
|
|
1006
|
+
const url = (_b = (_a = world.splat) == null ? void 0 : _a.url) != null ? _b : "";
|
|
1007
|
+
this.shadowCatcher.visible = false;
|
|
1008
|
+
if (url === this.splatShown) return;
|
|
1009
|
+
this.splatShown = url;
|
|
1010
|
+
if (url) (_d = (_c = this.callbacks).onSplatWorld) == null ? void 0 : _d.call(_c, {
|
|
1011
|
+
status: "failed",
|
|
1012
|
+
reason: SPLAT_ON_PHONE
|
|
1013
|
+
});
|
|
1014
|
+
}
|
|
1015
|
+
/** Where a 3D world was seen from: the phone draws no world, so there is none. */
|
|
1016
|
+
worldViewpoint() {
|
|
1017
|
+
return null;
|
|
1018
|
+
}
|
|
1019
|
+
applyWorld(project) {
|
|
1020
|
+
const {
|
|
1021
|
+
imageUrl,
|
|
1022
|
+
background,
|
|
1023
|
+
showGround,
|
|
1024
|
+
rotationDeg
|
|
1025
|
+
} = project.world;
|
|
1026
|
+
this.shownWorld = project.world;
|
|
1027
|
+
this.ground.material.color.set(this.lightStage(project.world) ? STAGE_LOOK.light.ground : STAGE_LOOK.dark.ground);
|
|
1028
|
+
this.ground.visible = showGround;
|
|
1029
|
+
this.grid.visible = showGround;
|
|
1030
|
+
this.applySplatWorld(project.world);
|
|
1031
|
+
if (!imageUrl) {
|
|
1032
|
+
if (this.worldSphere) {
|
|
1033
|
+
this.scene.remove(this.worldSphere);
|
|
1034
|
+
disposeObject(this.worldSphere);
|
|
1035
|
+
this.worldSphere = null;
|
|
1036
|
+
this.worldTextureUrl = "";
|
|
1037
|
+
}
|
|
1038
|
+
this.scene.background = new THREE.Color(this.backdrop(project.world, this.lightStage(project.world)));
|
|
1039
|
+
return;
|
|
1040
|
+
}
|
|
1041
|
+
if (this.worldTextureUrl !== imageUrl) {
|
|
1042
|
+
this.worldTextureUrl = imageUrl;
|
|
1043
|
+
this.surface.loadTexture(imageUrl).then(({
|
|
1044
|
+
texture
|
|
1045
|
+
}) => {
|
|
1046
|
+
if (this.disposed || this.worldTextureUrl !== imageUrl) return;
|
|
1047
|
+
texture.colorSpace = THREE.SRGBColorSpace;
|
|
1048
|
+
if (this.worldSphere) {
|
|
1049
|
+
this.scene.remove(this.worldSphere);
|
|
1050
|
+
disposeObject(this.worldSphere);
|
|
1051
|
+
}
|
|
1052
|
+
const sphere = new THREE.Mesh(new THREE.SphereGeometry(160, 60, 40), new THREE.MeshBasicMaterial({
|
|
1053
|
+
map: texture,
|
|
1054
|
+
side: THREE.BackSide,
|
|
1055
|
+
toneMapped: false,
|
|
1056
|
+
fog: false
|
|
1057
|
+
}));
|
|
1058
|
+
sphere.rotation.y = rad(this.shownWorld.rotationDeg);
|
|
1059
|
+
this.worldSphere = sphere;
|
|
1060
|
+
this.scene.add(sphere);
|
|
1061
|
+
this.scene.background = null;
|
|
1062
|
+
this.invalidate();
|
|
1063
|
+
}).catch(() => {
|
|
1064
|
+
if (this.worldTextureUrl === imageUrl) this.scene.background = new THREE.Color(background);
|
|
1065
|
+
this.invalidate();
|
|
1066
|
+
});
|
|
1067
|
+
} else if (this.worldSphere) {
|
|
1068
|
+
this.worldSphere.rotation.y = rad(rotationDeg);
|
|
1069
|
+
}
|
|
1070
|
+
}
|
|
1071
|
+
// ── Selection ─────────────────────────────────────────────────────────────
|
|
1072
|
+
select(id, locked = false) {
|
|
1073
|
+
this.selectedId = id;
|
|
1074
|
+
this.selectedLocked = locked;
|
|
1075
|
+
this.updateSelectionBox();
|
|
1076
|
+
this.invalidate();
|
|
1077
|
+
}
|
|
1078
|
+
/** An outline round the selected piece: what a finger moves (the gizmo's handles on web). */
|
|
1079
|
+
updateSelectionBox() {
|
|
1080
|
+
const object = this.selectedId ? this.built.get(this.selectedId) : null;
|
|
1081
|
+
const show = Boolean(object && object.visible && !this.recording);
|
|
1082
|
+
if (!show) {
|
|
1083
|
+
if (this.selectionBox) this.selectionBox.visible = false;
|
|
1084
|
+
return;
|
|
1085
|
+
}
|
|
1086
|
+
if (!this.selectionBox) {
|
|
1087
|
+
this.selectionBox = new THREE.BoxHelper(object, this.selectedLocked ? 10133674 : 7252223);
|
|
1088
|
+
this.selectionBox.material.depthTest = false;
|
|
1089
|
+
this.selectionBox.material.transparent = true;
|
|
1090
|
+
this.selectionBox.renderOrder = 997;
|
|
1091
|
+
this.scene.add(this.selectionBox);
|
|
1092
|
+
}
|
|
1093
|
+
this.selectionBox.setFromObject(object);
|
|
1094
|
+
this.selectionBox.material.color.set(this.selectedLocked ? 10133674 : 7252223);
|
|
1095
|
+
this.selectionBox.visible = true;
|
|
1096
|
+
}
|
|
1097
|
+
setGizmoMode(mode) {
|
|
1098
|
+
this.gizmoMode = mode;
|
|
1099
|
+
}
|
|
1100
|
+
// ── Framing ───────────────────────────────────────────────────────────────
|
|
1101
|
+
frameObject(id) {
|
|
1102
|
+
const object = this.built.get(id);
|
|
1103
|
+
if (!object) return false;
|
|
1104
|
+
const box = new THREE.Box3().setFromObject(object);
|
|
1105
|
+
if (box.isEmpty()) return false;
|
|
1106
|
+
const centre = box.getCenter(new THREE.Vector3());
|
|
1107
|
+
const radius = Math.max(box.getSize(new THREE.Vector3()).length() / 2, 0.25);
|
|
1108
|
+
const viewing = this.activeCamera();
|
|
1109
|
+
const fov = this.view === "director" ? viewing.fov : this.shotFov;
|
|
1110
|
+
const distance = radius / Math.sin(rad(fov) / 2) * 1.35;
|
|
1111
|
+
const direction = viewing.position.clone().sub(this.orbitTarget).normalize();
|
|
1112
|
+
this.orbitTarget.copy(centre);
|
|
1113
|
+
viewing.position.copy(centre.clone().add(direction.multiplyScalar(distance)));
|
|
1114
|
+
viewing.lookAt(this.orbitTarget);
|
|
1115
|
+
if (this.view === "camera") this.reportCamera();
|
|
1116
|
+
this.invalidate();
|
|
1117
|
+
return true;
|
|
1118
|
+
}
|
|
1119
|
+
/** The view's size in points, and the drawing buffer's in pixels. */
|
|
1120
|
+
resize(width, height) {
|
|
1121
|
+
if (this.disposed || width <= 0 || height <= 0) return;
|
|
1122
|
+
this.viewWidth = width;
|
|
1123
|
+
this.viewHeight = height;
|
|
1124
|
+
const gl = this.surface.gl;
|
|
1125
|
+
this.pixelRatio = gl.drawingBufferWidth / width;
|
|
1126
|
+
this.renderer.setPixelRatio(this.pixelRatio);
|
|
1127
|
+
this.renderer.setSize(width, height, false);
|
|
1128
|
+
this.applyShotFov();
|
|
1129
|
+
this.invalidate();
|
|
1130
|
+
}
|
|
1131
|
+
displayFov() {
|
|
1132
|
+
return guideFov(this.shotFov, this.aspect, this.viewWidth, this.viewHeight);
|
|
1133
|
+
}
|
|
1134
|
+
applyShotFov() {
|
|
1135
|
+
if (this.view === "director") {
|
|
1136
|
+
this.camera.aspect = this.aspect;
|
|
1137
|
+
this.camera.fov = this.shotFov;
|
|
1138
|
+
this.director.aspect = this.viewWidth / Math.max(1, this.viewHeight);
|
|
1139
|
+
this.director.updateProjectionMatrix();
|
|
1140
|
+
} else {
|
|
1141
|
+
this.camera.aspect = this.viewWidth / Math.max(1, this.viewHeight);
|
|
1142
|
+
this.camera.fov = this.displayFov();
|
|
1143
|
+
}
|
|
1144
|
+
this.camera.updateProjectionMatrix();
|
|
1145
|
+
}
|
|
1146
|
+
targetOf(width, height) {
|
|
1147
|
+
const key = `${width}x${height}`;
|
|
1148
|
+
let target = this.targets.get(key);
|
|
1149
|
+
if (!target) {
|
|
1150
|
+
target = new THREE.WebGLRenderTarget(width, height, {
|
|
1151
|
+
depthBuffer: true
|
|
1152
|
+
});
|
|
1153
|
+
target.isXRRenderTarget = true;
|
|
1154
|
+
target.texture.colorSpace = THREE.SRGBColorSpace;
|
|
1155
|
+
this.targets.set(key, target);
|
|
1156
|
+
}
|
|
1157
|
+
return target;
|
|
1158
|
+
}
|
|
1159
|
+
releaseTargets() {
|
|
1160
|
+
for (const target of this.targets.values()) target.dispose();
|
|
1161
|
+
this.targets.clear();
|
|
1162
|
+
}
|
|
1163
|
+
/**
|
|
1164
|
+
* Render the shot at the project's aspect with the tooling out of it, into a frame `longEdge` long, and read it
|
|
1165
|
+
* back as a file (web `offscreen` + `toDataURL`).
|
|
1166
|
+
*/
|
|
1167
|
+
async shoot(longEdge, format, quality) {
|
|
1168
|
+
var _a, _b;
|
|
1169
|
+
const ratio = this.aspect;
|
|
1170
|
+
const width = Math.max(2, ratio >= 1 ? longEdge : Math.round(longEdge * ratio));
|
|
1171
|
+
const height = Math.max(2, ratio >= 1 ? Math.round(longEdge / ratio) : longEdge);
|
|
1172
|
+
const gridWas = this.grid.visible;
|
|
1173
|
+
const rigWas = this.rig.visible;
|
|
1174
|
+
const boxWas = (_b = (_a = this.selectionBox) == null ? void 0 : _a.visible) != null ? _b : false;
|
|
1175
|
+
const draftWas = this.draftPath.visible;
|
|
1176
|
+
const aspectWas = this.camera.aspect;
|
|
1177
|
+
const fovWas = this.camera.fov;
|
|
1178
|
+
const lightWas = this.lightStage(this.shownWorld);
|
|
1179
|
+
const target = this.targetOf(width, height);
|
|
1180
|
+
this.grid.visible = false;
|
|
1181
|
+
this.rig.visible = false;
|
|
1182
|
+
this.draftPath.visible = false;
|
|
1183
|
+
if (this.selectionBox) this.selectionBox.visible = false;
|
|
1184
|
+
if (lightWas) this.paintStage(false);
|
|
1185
|
+
this.camera.aspect = ratio;
|
|
1186
|
+
this.camera.fov = this.shotFov;
|
|
1187
|
+
this.camera.updateProjectionMatrix();
|
|
1188
|
+
try {
|
|
1189
|
+
this.faceCamera(this.camera);
|
|
1190
|
+
this.renderer.setRenderTarget(target);
|
|
1191
|
+
this.rolled(() => this.renderer.render(this.scene, this.camera));
|
|
1192
|
+
this.renderer.setRenderTarget(null);
|
|
1193
|
+
const framebuffer = this.renderer.properties.get(target).__webglFramebuffer;
|
|
1194
|
+
return await this.surface.snapshot({
|
|
1195
|
+
framebuffer,
|
|
1196
|
+
rect: {
|
|
1197
|
+
x: 0,
|
|
1198
|
+
y: 0,
|
|
1199
|
+
width,
|
|
1200
|
+
height
|
|
1201
|
+
},
|
|
1202
|
+
format,
|
|
1203
|
+
compress: quality
|
|
1204
|
+
});
|
|
1205
|
+
} finally {
|
|
1206
|
+
if (lightWas) this.paintStage(true);
|
|
1207
|
+
this.grid.visible = gridWas;
|
|
1208
|
+
this.rig.visible = rigWas;
|
|
1209
|
+
this.draftPath.visible = draftWas;
|
|
1210
|
+
if (this.selectionBox) this.selectionBox.visible = boxWas;
|
|
1211
|
+
this.camera.aspect = aspectWas;
|
|
1212
|
+
this.camera.fov = fovWas;
|
|
1213
|
+
this.camera.updateProjectionMatrix();
|
|
1214
|
+
this.invalidate();
|
|
1215
|
+
}
|
|
1216
|
+
}
|
|
1217
|
+
/** The shot as it stands, as a file. */
|
|
1218
|
+
async capture(longEdge = 1280, format = "png", quality = 0.92) {
|
|
1219
|
+
try {
|
|
1220
|
+
return await this.shoot(longEdge, format, quality);
|
|
1221
|
+
} finally {
|
|
1222
|
+
this.releaseTargets();
|
|
1223
|
+
}
|
|
1224
|
+
}
|
|
1225
|
+
/** {@link capture}: there is no 3D world to sort on the phone. */
|
|
1226
|
+
captureSorted(longEdge = 1280, format = "png", quality = 0.92) {
|
|
1227
|
+
return this.capture(longEdge, format, quality);
|
|
1228
|
+
}
|
|
1229
|
+
async stillsAt(project, times, options = {}) {
|
|
1230
|
+
const {
|
|
1231
|
+
longEdge = 768,
|
|
1232
|
+
quality = 0.85,
|
|
1233
|
+
restoreAt = 0
|
|
1234
|
+
} = options;
|
|
1235
|
+
this.sync(project);
|
|
1236
|
+
for (let waited = 0; this.building.size > 0 && waited < STILLS_BUILD_WAIT_MS; waited += 100) {
|
|
1237
|
+
await new Promise((resolve) => setTimeout(resolve, 100));
|
|
1238
|
+
}
|
|
1239
|
+
const frames = [];
|
|
1240
|
+
try {
|
|
1241
|
+
for (const t of times) {
|
|
1242
|
+
this.pose(project, t);
|
|
1243
|
+
frames.push(await this.shoot(longEdge, "jpeg", quality));
|
|
1244
|
+
}
|
|
1245
|
+
} finally {
|
|
1246
|
+
this.releaseTargets();
|
|
1247
|
+
this.pose(project, restoreAt, {
|
|
1248
|
+
camera: "edit"
|
|
1249
|
+
});
|
|
1250
|
+
}
|
|
1251
|
+
return frames;
|
|
1252
|
+
}
|
|
1253
|
+
async renderPath(cameras, options = {}) {
|
|
1254
|
+
var _a;
|
|
1255
|
+
const {
|
|
1256
|
+
longEdge = 1024,
|
|
1257
|
+
format = "jpeg",
|
|
1258
|
+
quality = 0.9,
|
|
1259
|
+
onProgress,
|
|
1260
|
+
signal
|
|
1261
|
+
} = options;
|
|
1262
|
+
const aim = this.shotAim();
|
|
1263
|
+
const live = {
|
|
1264
|
+
position: {
|
|
1265
|
+
x: this.camera.position.x,
|
|
1266
|
+
y: this.camera.position.y,
|
|
1267
|
+
z: this.camera.position.z
|
|
1268
|
+
},
|
|
1269
|
+
target: {
|
|
1270
|
+
x: aim.x,
|
|
1271
|
+
y: aim.y,
|
|
1272
|
+
z: aim.z
|
|
1273
|
+
},
|
|
1274
|
+
fov: this.shotFov,
|
|
1275
|
+
roll: this.shotRoll
|
|
1276
|
+
};
|
|
1277
|
+
const frames = [];
|
|
1278
|
+
try {
|
|
1279
|
+
for (const [index, camera] of cameras.entries()) {
|
|
1280
|
+
if (signal == null ? void 0 : signal.aborted) throw new Error("Cancelled");
|
|
1281
|
+
this.camera.position.set(camera.position.x, camera.position.y, camera.position.z);
|
|
1282
|
+
this.camera.lookAt(camera.target.x, camera.target.y, camera.target.z);
|
|
1283
|
+
this.shotFov = camera.fov;
|
|
1284
|
+
this.shotRoll = (_a = camera.roll) != null ? _a : 0;
|
|
1285
|
+
frames.push(await this.shoot(longEdge, format, quality));
|
|
1286
|
+
onProgress == null ? void 0 : onProgress(index + 1, cameras.length);
|
|
1287
|
+
}
|
|
1288
|
+
} finally {
|
|
1289
|
+
this.releaseTargets();
|
|
1290
|
+
this.applyCamera(__spreadValues({
|
|
1291
|
+
position: live.position,
|
|
1292
|
+
target: live.target,
|
|
1293
|
+
fov: live.fov
|
|
1294
|
+
}, live.roll ? {
|
|
1295
|
+
roll: live.roll
|
|
1296
|
+
} : {}));
|
|
1297
|
+
}
|
|
1298
|
+
return frames;
|
|
1299
|
+
}
|
|
1300
|
+
/**
|
|
1301
|
+
* Render the whole shot, one frame per step of its timeline. Each frame is read back before the next is drawn, so
|
|
1302
|
+
* a long render keeps going while the studio is open and lands at the size asked for (web ce3302da's hidden-tab
|
|
1303
|
+
* beat has no phone twin: the studio's JS keeps running while it is on screen).
|
|
1304
|
+
*/
|
|
1305
|
+
async renderTimeline(project, options = {}) {
|
|
1306
|
+
const {
|
|
1307
|
+
longEdge = 1024,
|
|
1308
|
+
quality = 0.9,
|
|
1309
|
+
restoreAt = 0,
|
|
1310
|
+
onProgress,
|
|
1311
|
+
signal
|
|
1312
|
+
} = options;
|
|
1313
|
+
const times = frameTimes(project);
|
|
1314
|
+
const frames = [];
|
|
1315
|
+
try {
|
|
1316
|
+
for (const [index, t] of times.entries()) {
|
|
1317
|
+
if (signal == null ? void 0 : signal.aborted) throw new Error("Cancelled");
|
|
1318
|
+
this.pose(project, t);
|
|
1319
|
+
frames.push(await this.shoot(longEdge, "jpeg", quality));
|
|
1320
|
+
onProgress == null ? void 0 : onProgress(index + 1, times.length);
|
|
1321
|
+
}
|
|
1322
|
+
} finally {
|
|
1323
|
+
this.releaseTargets();
|
|
1324
|
+
this.pose(project, restoreAt, {
|
|
1325
|
+
camera: "edit"
|
|
1326
|
+
});
|
|
1327
|
+
}
|
|
1328
|
+
return frames;
|
|
1329
|
+
}
|
|
1330
|
+
faceCamera(camera) {
|
|
1331
|
+
for (const id of this.billboards) {
|
|
1332
|
+
const object = this.built.get(id);
|
|
1333
|
+
if (!object) continue;
|
|
1334
|
+
object.rotation.y = Math.atan2(camera.position.x - object.position.x, camera.position.z - object.position.z);
|
|
1335
|
+
}
|
|
1336
|
+
}
|
|
1337
|
+
renderFrame() {
|
|
1338
|
+
var _a, _b;
|
|
1339
|
+
if (this.view === "camera") {
|
|
1340
|
+
this.faceCamera(this.camera);
|
|
1341
|
+
this.rolled(() => this.renderer.render(this.scene, this.camera));
|
|
1342
|
+
return;
|
|
1343
|
+
}
|
|
1344
|
+
this.updateRig();
|
|
1345
|
+
this.faceCamera(this.director);
|
|
1346
|
+
this.renderer.render(this.scene, this.director);
|
|
1347
|
+
const {
|
|
1348
|
+
width,
|
|
1349
|
+
height
|
|
1350
|
+
} = previewBox(this.viewWidth, this.viewHeight, this.aspect);
|
|
1351
|
+
const x = this.viewWidth - width - PREVIEW_MARGIN_PX;
|
|
1352
|
+
const gridWas = this.grid.visible;
|
|
1353
|
+
const boxWas = (_b = (_a = this.selectionBox) == null ? void 0 : _a.visible) != null ? _b : false;
|
|
1354
|
+
this.rig.visible = false;
|
|
1355
|
+
this.grid.visible = false;
|
|
1356
|
+
if (this.selectionBox) this.selectionBox.visible = false;
|
|
1357
|
+
this.faceCamera(this.camera);
|
|
1358
|
+
this.renderer.shadowMap.autoUpdate = false;
|
|
1359
|
+
this.renderer.setScissorTest(true);
|
|
1360
|
+
this.renderer.setScissor(x, PREVIEW_MARGIN_PX, width, height);
|
|
1361
|
+
this.renderer.setViewport(x, PREVIEW_MARGIN_PX, width, height);
|
|
1362
|
+
this.rolled(() => this.renderer.render(this.scene, this.camera));
|
|
1363
|
+
this.renderer.setScissorTest(false);
|
|
1364
|
+
this.renderer.setViewport(0, 0, this.viewWidth, this.viewHeight);
|
|
1365
|
+
this.renderer.shadowMap.autoUpdate = true;
|
|
1366
|
+
this.rig.visible = true;
|
|
1367
|
+
this.grid.visible = gridWas;
|
|
1368
|
+
if (this.selectionBox) this.selectionBox.visible = boxWas;
|
|
1369
|
+
}
|
|
1370
|
+
dispose() {
|
|
1371
|
+
var _a, _b;
|
|
1372
|
+
this.disposed = true;
|
|
1373
|
+
this.releaseTargets();
|
|
1374
|
+
for (const object of this.built.values()) disposeObject(object);
|
|
1375
|
+
this.built.clear();
|
|
1376
|
+
if (this.worldSphere) disposeObject(this.worldSphere);
|
|
1377
|
+
disposeObject(this.shadowCatcher);
|
|
1378
|
+
disposeObject(this.ground);
|
|
1379
|
+
this.rig.traverse((child) => {
|
|
1380
|
+
var _a2, _b2;
|
|
1381
|
+
return (_b2 = (_a2 = child.geometry) == null ? void 0 : _a2.dispose) == null ? void 0 : _b2.call(_a2);
|
|
1382
|
+
});
|
|
1383
|
+
disposeObject(this.rig);
|
|
1384
|
+
(_b = (_a = this.grid).dispose) == null ? void 0 : _b.call(_a);
|
|
1385
|
+
this.renderer.dispose();
|
|
1386
|
+
}
|
|
1387
|
+
}export{SetStage};//# sourceMappingURL=stage.js.map
|