@celljs/ta 4.10.0 → 4.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +3 -1
- package/README.md +3 -1
- package/dist/cli.mjs +1675 -51
- package/dist/gateway.mjs +167 -5
- package/dist/pi/CHANGELOG.md +23 -0
- package/dist/pi/package.json +1 -1
- package/dist/pi/packages/ta-agents/extension/index.mjs +166 -139
- package/dist/pi/packages/ta-agents/lib/acp-agent.js +30 -10
- package/dist/pi/packages/ta-agents/lib/agent-catalog.d.ts +2 -2
- package/dist/pi/packages/ta-agents/lib/agent-catalog.js +4 -4
- package/dist/pi/packages/ta-agents/lib/agent-prompt.d.ts +6 -0
- package/dist/pi/packages/ta-agents/lib/agent-prompt.js +19 -0
- package/dist/pi/packages/ta-agents/lib/agent-session.d.ts +2 -0
- package/dist/pi/packages/ta-agents/lib/agent-session.js +2 -0
- package/dist/pi/packages/ta-agents/lib/agent-streamer.js +7 -0
- package/dist/pi/packages/ta-agents/lib/agent-tool.js +3 -2
- package/dist/pi/packages/ta-agents/package.json +1 -1
- package/dist/pi/packages/ta-bots/extension/index.mjs +31 -299
- package/dist/pi/packages/ta-bots/host/index.mjs +143 -1
- package/dist/pi/packages/ta-bots/lib/bots-protocol.d.ts +2 -0
- package/dist/pi/packages/ta-bots/lib/bots-protocol.js +3 -1
- package/dist/pi/packages/ta-bots/lib/bots-view.js +24 -12
- package/dist/pi/packages/ta-bots/lib/composer.js +1 -0
- package/dist/pi/packages/ta-bots/lib/extension.js +10 -17
- package/dist/pi/packages/ta-bots/lib/i18n.d.ts +1 -0
- package/dist/pi/packages/ta-bots/lib/i18n.js +2 -0
- package/dist/pi/packages/ta-bots/lib/index.js +2 -0
- package/dist/pi/packages/ta-bots/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-bots/lib/style.js +1 -0
- package/dist/pi/packages/ta-bots/lib/text-util.js +8 -1
- package/dist/pi/packages/ta-bots/lib/tool-line.d.ts +8 -0
- package/dist/pi/packages/ta-bots/lib/tool-line.js +19 -0
- package/dist/pi/packages/ta-bots/package.json +1 -1
- package/dist/pi/packages/ta-bots/web/index.js +47 -16
- package/dist/pi/packages/ta-changes/extension/index.mjs +23 -13
- package/dist/pi/packages/ta-changes/lib/card.js +18 -4
- package/dist/pi/packages/ta-changes/lib/changes-protocol.d.ts +0 -4
- package/dist/pi/packages/ta-changes/lib/changes-protocol.js +1 -5
- package/dist/pi/packages/ta-changes/lib/extension.js +5 -13
- package/dist/pi/packages/ta-changes/package.json +1 -1
- package/dist/pi/packages/ta-changes/web/index.js +16 -3
- package/dist/pi/packages/ta-channels/README.en.md +4 -3
- package/dist/pi/packages/ta-channels/README.md +4 -3
- package/dist/pi/packages/ta-channels/extension/index.mjs +350 -28
- package/dist/pi/packages/ta-channels/host/index.mjs +588 -43
- package/dist/pi/packages/ta-channels/lib/agent-cards.d.ts +19 -0
- package/dist/pi/packages/ta-channels/lib/agent-cards.js +58 -0
- package/dist/pi/packages/ta-channels/lib/agent-menu.d.ts +2 -2
- package/dist/pi/packages/ta-channels/lib/agent-menu.js +20 -6
- package/dist/pi/packages/ta-channels/lib/card.d.ts +27 -0
- package/dist/pi/packages/ta-channels/lib/card.js +178 -0
- package/dist/pi/packages/ta-channels/lib/channels-model.d.ts +65 -13
- package/dist/pi/packages/ta-channels/lib/channels-model.js +15 -6
- package/dist/pi/packages/ta-channels/lib/channels-util.d.ts +31 -2
- package/dist/pi/packages/ta-channels/lib/channels-util.js +100 -6
- package/dist/pi/packages/ta-channels/lib/channels.d.ts +28 -18
- package/dist/pi/packages/ta-channels/lib/channels.js +65 -65
- package/dist/pi/packages/ta-channels/lib/create.js +3 -1
- package/dist/pi/packages/ta-channels/lib/extension.d.ts +8 -0
- package/dist/pi/packages/ta-channels/lib/extension.js +104 -18
- package/dist/pi/packages/ta-channels/lib/faces.d.ts +2 -0
- package/dist/pi/packages/ta-channels/lib/faces.js +6 -0
- package/dist/pi/packages/ta-channels/lib/handoff-view.d.ts +19 -0
- package/dist/pi/packages/ta-channels/lib/handoff-view.js +113 -0
- package/dist/pi/packages/ta-channels/lib/handoff.d.ts +67 -0
- package/dist/pi/packages/ta-channels/lib/handoff.js +114 -0
- package/dist/pi/packages/ta-channels/lib/host.d.ts +1 -1
- package/dist/pi/packages/ta-channels/lib/host.js +1 -1
- package/dist/pi/packages/ta-channels/lib/i18n.d.ts +45 -0
- package/dist/pi/packages/ta-channels/lib/i18n.js +90 -0
- package/dist/pi/packages/ta-channels/lib/index.js +10 -1
- package/dist/pi/packages/ta-channels/lib/member-tools.d.ts +23 -0
- package/dist/pi/packages/ta-channels/lib/member-tools.js +56 -0
- package/dist/pi/packages/ta-channels/lib/members.js +6 -2
- package/dist/pi/packages/ta-channels/lib/notice.d.ts +25 -0
- package/dist/pi/packages/ta-channels/lib/notice.js +101 -0
- package/dist/pi/packages/ta-channels/lib/room.js +13 -2
- package/dist/pi/packages/ta-channels/lib/sidebar.d.ts +1 -6
- package/dist/pi/packages/ta-channels/lib/sidebar.js +132 -69
- package/dist/pi/packages/ta-channels/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-channels/lib/style.js +69 -4
- package/dist/pi/packages/ta-channels/lib/team.d.ts +58 -10
- package/dist/pi/packages/ta-channels/lib/team.js +159 -38
- package/dist/pi/packages/ta-channels/lib/tool-lines.d.ts +22 -0
- package/dist/pi/packages/ta-channels/lib/tool-lines.js +113 -0
- package/dist/pi/packages/ta-channels/lib/views.d.ts +21 -16
- package/dist/pi/packages/ta-channels/lib/views.js +60 -31
- package/dist/pi/packages/ta-channels/package.json +2 -1
- package/dist/pi/packages/ta-channels/web/index.js +1507 -309
- package/dist/pi/packages/ta-computer-use/package.json +6 -1
- package/dist/pi/packages/ta-cron/README.en.md +4 -2
- package/dist/pi/packages/ta-cron/README.md +4 -2
- package/dist/pi/packages/ta-cron/extension/index.mjs +416 -44
- package/dist/pi/packages/ta-cron/host/index.mjs +24 -3
- package/dist/pi/packages/ta-cron/lib/chat-task.d.ts +48 -0
- package/dist/pi/packages/ta-cron/lib/chat-task.js +133 -0
- package/dist/pi/packages/ta-cron/lib/commands.d.ts +2 -1
- package/dist/pi/packages/ta-cron/lib/commands.js +10 -4
- package/dist/pi/packages/ta-cron/lib/composer.d.ts +11 -0
- package/dist/pi/packages/ta-cron/lib/composer.js +58 -0
- package/dist/pi/packages/ta-cron/lib/cron-protocol.d.ts +10 -3
- package/dist/pi/packages/ta-cron/lib/cron-protocol.js +6 -3
- package/dist/pi/packages/ta-cron/lib/editor.js +5 -3
- package/dist/pi/packages/ta-cron/lib/extension.d.ts +2 -0
- package/dist/pi/packages/ta-cron/lib/extension.js +33 -13
- package/dist/pi/packages/ta-cron/lib/i18n.d.ts +18 -0
- package/dist/pi/packages/ta-cron/lib/i18n.js +36 -0
- package/dist/pi/packages/ta-cron/lib/index.js +4 -0
- package/dist/pi/packages/ta-cron/lib/page.d.ts +5 -1
- package/dist/pi/packages/ta-cron/lib/page.js +12 -0
- package/dist/pi/packages/ta-cron/lib/react.d.ts +3 -0
- package/dist/pi/packages/ta-cron/lib/react.js +8 -0
- package/dist/pi/packages/ta-cron/lib/scheduler.js +3 -2
- package/dist/pi/packages/ta-cron/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-cron/lib/style.js +11 -13
- package/dist/pi/packages/ta-cron/lib/task-util.d.ts +2 -0
- package/dist/pi/packages/ta-cron/lib/task-util.js +20 -1
- package/dist/pi/packages/ta-cron/lib/tasks-view.js +6 -2
- package/dist/pi/packages/ta-cron/lib/tool-line.d.ts +9 -0
- package/dist/pi/packages/ta-cron/lib/tool-line.js +40 -0
- package/dist/pi/packages/ta-cron/lib/tool.d.ts +5 -1
- package/dist/pi/packages/ta-cron/lib/tool.js +6 -3
- package/dist/pi/packages/ta-cron/package.json +12 -1
- package/dist/pi/packages/ta-cron/web/index.js +661 -254
- package/dist/pi/packages/ta-extensions/README.en.md +1 -1
- package/dist/pi/packages/ta-extensions/README.md +1 -1
- package/dist/pi/packages/ta-extensions/host/index.mjs +3 -2
- package/dist/pi/packages/ta-extensions/lib/actions.d.ts +4 -0
- package/dist/pi/packages/ta-extensions/lib/actions.js +13 -4
- package/dist/pi/packages/ta-extensions/lib/extensions-util.d.ts +5 -0
- package/dist/pi/packages/ta-extensions/lib/extensions-util.js +10 -0
- package/dist/pi/packages/ta-extensions/lib/market-parts.js +8 -2
- package/dist/pi/packages/ta-extensions/lib/market-style.d.ts +1 -1
- package/dist/pi/packages/ta-extensions/lib/market-style.js +4 -5
- package/dist/pi/packages/ta-extensions/lib/market-util.d.ts +2 -2
- package/dist/pi/packages/ta-extensions/lib/market-util.js +2 -2
- package/dist/pi/packages/ta-extensions/lib/page.js +12 -7
- package/dist/pi/packages/ta-extensions/lib/react.d.ts +3 -0
- package/dist/pi/packages/ta-extensions/lib/react.js +8 -0
- package/dist/pi/packages/ta-extensions/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-extensions/lib/style.js +3 -2
- package/dist/pi/packages/ta-extensions/package.json +6 -1
- package/dist/pi/packages/ta-extensions/skills/ta-package/SKILL.md +19 -8
- package/dist/pi/packages/ta-extensions/web/index.js +191 -22
- package/dist/pi/packages/ta-games/README.en.md +47 -0
- package/dist/pi/packages/ta-games/README.md +47 -0
- package/dist/pi/packages/ta-games/host/index.mjs +65 -0
- package/dist/pi/packages/ta-games/lib/games-view.d.ts +16 -0
- package/dist/pi/packages/ta-games/lib/games-view.js +77 -0
- package/dist/pi/packages/ta-games/lib/host.d.ts +36 -0
- package/dist/pi/packages/ta-games/lib/host.js +83 -0
- package/dist/pi/packages/ta-games/lib/i18n.d.ts +35 -0
- package/dist/pi/packages/ta-games/lib/i18n.js +71 -0
- package/dist/pi/packages/ta-games/lib/ideas.d.ts +6 -0
- package/dist/pi/packages/ta-games/lib/ideas.js +62 -0
- package/dist/pi/packages/ta-games/lib/index.d.ts +7 -0
- package/dist/pi/packages/ta-games/lib/index.js +24 -0
- package/dist/pi/packages/ta-games/lib/make-game.d.ts +23 -0
- package/dist/pi/packages/ta-games/lib/make-game.js +67 -0
- package/dist/pi/packages/ta-games/lib/react.d.ts +11 -0
- package/dist/pi/packages/ta-games/lib/react.js +16 -0
- package/dist/pi/packages/ta-games/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-games/lib/style.js +33 -0
- package/dist/pi/packages/ta-games/package.json +60 -0
- package/dist/pi/packages/ta-games/skills/ta-game/SKILL.md +127 -0
- package/dist/pi/packages/ta-games/skills/ta-game/examples/dino-run/package.json +22 -0
- package/dist/pi/packages/ta-games/skills/ta-game/examples/dino-run/web.js +389 -0
- package/dist/pi/packages/ta-games/skills/ta-game/examples/stack/package.json +22 -0
- package/dist/pi/packages/ta-games/skills/ta-game/examples/stack/web.js +423 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/LICENSE.md +22 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/actions-and-utilities/SKILL.md +343 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/animations/SKILL.md +481 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/audio-and-sound/SKILL.md +453 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/cameras/SKILL.md +497 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/cameras/references/REFERENCE.md +128 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/curves-and-paths/SKILL.md +359 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/data-manager/SKILL.md +406 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/events-system/SKILL.md +497 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/filters-and-postfx/SKILL.md +449 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/game-object-components/SKILL.md +478 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/game-object-components/references/REFERENCE.md +76 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/game-setup-and-config/SKILL.md +485 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/geometry-and-math/SKILL.md +497 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/graphics-and-shapes/SKILL.md +473 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/groups-and-containers/SKILL.md +418 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/input-keyboard-mouse-touch/SKILL.md +500 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/input-keyboard-mouse-touch/references/REFERENCE.md +372 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/loading-assets/SKILL.md +474 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/loading-assets/references/REFERENCE.md +148 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/particles/SKILL.md +499 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/particles/references/REFERENCE.md +17 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/physics-arcade/SKILL.md +468 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/physics-matter/SKILL.md +499 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/render-textures/SKILL.md +441 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/scale-and-responsive/SKILL.md +371 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/scenes/SKILL.md +450 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/scenes/references/REFERENCE.md +78 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/sprites-and-images/SKILL.md +417 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/sprites-and-images/references/REFERENCE.md +160 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/text-and-bitmaptext/SKILL.md +460 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/tilemaps/SKILL.md +440 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/time-and-timers/SKILL.md +496 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/tweens/SKILL.md +414 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/v3-to-v4-migration/SKILL.md +430 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/v4-new-features/SKILL.md +384 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/v4-new-features/references/REFERENCE.md +69 -0
- package/dist/pi/packages/ta-games/web/index.js +431 -0
- package/dist/pi/packages/ta-glance/README.en.md +11 -0
- package/dist/pi/packages/ta-glance/README.md +11 -0
- package/dist/pi/packages/ta-glance/extension/index.mjs +67 -0
- package/dist/pi/packages/ta-glance/lib/card.d.ts +8 -0
- package/dist/pi/packages/ta-glance/lib/card.js +268 -0
- package/dist/pi/packages/ta-glance/lib/extension.d.ts +15 -0
- package/dist/pi/packages/ta-glance/lib/extension.js +24 -0
- package/dist/pi/packages/ta-glance/lib/glance-json.d.ts +9 -0
- package/dist/pi/packages/ta-glance/lib/glance-json.js +85 -0
- package/dist/pi/packages/ta-glance/lib/glance-prompt.d.ts +7 -0
- package/dist/pi/packages/ta-glance/lib/glance-prompt.js +34 -0
- package/dist/pi/packages/ta-glance/lib/glance-protocol.d.ts +98 -0
- package/dist/pi/packages/ta-glance/lib/glance-protocol.js +8 -0
- package/dist/pi/packages/ta-glance/lib/glance-spec.d.ts +6 -0
- package/dist/pi/packages/ta-glance/lib/glance-spec.js +204 -0
- package/dist/pi/packages/ta-glance/lib/glance-util.d.ts +3 -0
- package/dist/pi/packages/ta-glance/lib/glance-util.js +12 -0
- package/dist/pi/packages/ta-glance/lib/i18n.d.ts +22 -0
- package/dist/pi/packages/ta-glance/lib/i18n.js +41 -0
- package/dist/pi/packages/ta-glance/lib/index.d.ts +7 -0
- package/dist/pi/packages/ta-glance/lib/index.js +22 -0
- package/dist/pi/packages/ta-glance/lib/react.d.ts +8 -0
- package/dist/pi/packages/ta-glance/lib/react.js +8 -0
- package/dist/pi/packages/ta-glance/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-glance/lib/style.js +164 -0
- package/dist/pi/packages/ta-glance/package.json +53 -0
- package/dist/pi/packages/ta-glance/web/index.js +933 -0
- package/dist/pi/packages/ta-launcher/lib/actions.d.ts +4 -4
- package/dist/pi/packages/ta-launcher/lib/actions.js +7 -3
- package/dist/pi/packages/ta-launcher/lib/launcher-util.d.ts +7 -7
- package/dist/pi/packages/ta-launcher/lib/launcher-util.js +11 -8
- package/dist/pi/packages/ta-launcher/lib/launcher-view.js +13 -7
- package/dist/pi/packages/ta-launcher/lib/react.d.ts +3 -0
- package/dist/pi/packages/ta-launcher/lib/react.js +8 -0
- package/dist/pi/packages/ta-launcher/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-launcher/lib/style.js +6 -4
- package/dist/pi/packages/ta-launcher/package.json +1 -1
- package/dist/pi/packages/ta-launcher/web/index.js +34 -17
- package/dist/pi/packages/ta-manual/README.en.md +10 -0
- package/dist/pi/packages/ta-manual/README.md +10 -0
- package/dist/pi/packages/ta-manual/lib/i18n.d.ts +15 -0
- package/dist/pi/packages/ta-manual/lib/i18n.js +31 -0
- package/dist/pi/packages/ta-manual/lib/index.d.ts +7 -0
- package/dist/pi/packages/ta-manual/lib/index.js +24 -0
- package/dist/pi/packages/ta-manual/lib/manual-util.d.ts +18 -0
- package/dist/pi/packages/ta-manual/lib/manual-util.js +40 -0
- package/dist/pi/packages/ta-manual/lib/manual-view.d.ts +9 -0
- package/dist/pi/packages/ta-manual/lib/manual-view.js +81 -0
- package/dist/pi/packages/ta-manual/lib/pictures-a.d.ts +2 -0
- package/dist/pi/packages/ta-manual/lib/pictures-a.js +263 -0
- package/dist/pi/packages/ta-manual/lib/pictures-b.d.ts +2 -0
- package/dist/pi/packages/ta-manual/lib/pictures-b.js +216 -0
- package/dist/pi/packages/ta-manual/lib/pictures.d.ts +9 -0
- package/dist/pi/packages/ta-manual/lib/pictures.js +16 -0
- package/dist/pi/packages/ta-manual/lib/react.d.ts +8 -0
- package/dist/pi/packages/ta-manual/lib/react.js +8 -0
- package/dist/pi/packages/ta-manual/lib/scene.d.ts +68 -0
- package/dist/pi/packages/ta-manual/lib/scene.js +115 -0
- package/dist/pi/packages/ta-manual/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-manual/lib/style.js +47 -0
- package/dist/pi/packages/ta-manual/lib/topics.d.ts +42 -0
- package/dist/pi/packages/ta-manual/lib/topics.js +354 -0
- package/dist/pi/packages/ta-manual/package.json +54 -0
- package/dist/pi/packages/ta-manual/skills/ta-manual/SKILL.md +119 -0
- package/dist/pi/packages/ta-manual/web/index.js +2223 -0
- package/dist/pi/packages/ta-notify/README.en.md +29 -0
- package/dist/pi/packages/ta-notify/README.md +29 -0
- package/dist/pi/packages/ta-notify/extension/index.mjs +259 -0
- package/dist/pi/packages/ta-notify/host/index.mjs +163 -0
- package/dist/pi/packages/ta-notify/lib/ask-card.d.ts +9 -0
- package/dist/pi/packages/ta-notify/lib/ask-card.js +40 -0
- package/dist/pi/packages/ta-notify/lib/extension.d.ts +24 -0
- package/dist/pi/packages/ta-notify/lib/extension.js +102 -0
- package/dist/pi/packages/ta-notify/lib/host.d.ts +4 -0
- package/dist/pi/packages/ta-notify/lib/host.js +9 -0
- package/dist/pi/packages/ta-notify/lib/i18n.d.ts +31 -0
- package/dist/pi/packages/ta-notify/lib/i18n.js +63 -0
- package/dist/pi/packages/ta-notify/lib/index.d.ts +8 -0
- package/dist/pi/packages/ta-notify/lib/index.js +29 -0
- package/dist/pi/packages/ta-notify/lib/notify-protocol.d.ts +74 -0
- package/dist/pi/packages/ta-notify/lib/notify-protocol.js +23 -0
- package/dist/pi/packages/ta-notify/lib/notify-service.d.ts +21 -0
- package/dist/pi/packages/ta-notify/lib/notify-service.js +75 -0
- package/dist/pi/packages/ta-notify/lib/notify-util.d.ts +39 -0
- package/dist/pi/packages/ta-notify/lib/notify-util.js +119 -0
- package/dist/pi/packages/ta-notify/lib/react.d.ts +8 -0
- package/dist/pi/packages/ta-notify/lib/react.js +8 -0
- package/dist/pi/packages/ta-notify/lib/server-texts.d.ts +9 -0
- package/dist/pi/packages/ta-notify/lib/server-texts.js +22 -0
- package/dist/pi/packages/ta-notify/lib/settings.d.ts +8 -0
- package/dist/pi/packages/ta-notify/lib/settings.js +85 -0
- package/dist/pi/packages/ta-notify/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-notify/lib/style.js +29 -0
- package/dist/pi/packages/ta-notify/lib/tool-line.d.ts +9 -0
- package/dist/pi/packages/ta-notify/lib/tool-line.js +20 -0
- package/dist/pi/packages/ta-notify/lib/tool.d.ts +37 -0
- package/dist/pi/packages/ta-notify/lib/tool.js +46 -0
- package/dist/pi/packages/ta-notify/lib/watcher.d.ts +15 -0
- package/dist/pi/packages/ta-notify/lib/watcher.js +81 -0
- package/dist/pi/packages/ta-notify/package.json +55 -0
- package/dist/pi/packages/ta-notify/web/index.js +436 -0
- package/dist/pi/packages/ta-recall/README.en.md +19 -0
- package/dist/pi/packages/ta-recall/README.md +19 -0
- package/dist/pi/packages/ta-recall/extension/index.mjs +614 -0
- package/dist/pi/packages/ta-recall/host/index.mjs +820 -0
- package/dist/pi/packages/ta-recall/lib/brief-card.d.ts +21 -0
- package/dist/pi/packages/ta-recall/lib/brief-card.js +67 -0
- package/dist/pi/packages/ta-recall/lib/brief-home.d.ts +49 -0
- package/dist/pi/packages/ta-recall/lib/brief-home.js +143 -0
- package/dist/pi/packages/ta-recall/lib/brief-seen.d.ts +9 -0
- package/dist/pi/packages/ta-recall/lib/brief-seen.js +26 -0
- package/dist/pi/packages/ta-recall/lib/brief-util.d.ts +64 -0
- package/dist/pi/packages/ta-recall/lib/brief-util.js +179 -0
- package/dist/pi/packages/ta-recall/lib/chat-icons.d.ts +8 -0
- package/dist/pi/packages/ta-recall/lib/chat-icons.js +56 -0
- package/dist/pi/packages/ta-recall/lib/composer.d.ts +7 -0
- package/dist/pi/packages/ta-recall/lib/composer.js +38 -0
- package/dist/pi/packages/ta-recall/lib/conversation-index.d.ts +25 -0
- package/dist/pi/packages/ta-recall/lib/conversation-index.js +72 -0
- package/dist/pi/packages/ta-recall/lib/conversation-util.d.ts +16 -0
- package/dist/pi/packages/ta-recall/lib/conversation-util.js +109 -0
- package/dist/pi/packages/ta-recall/lib/conversations.d.ts +11 -0
- package/dist/pi/packages/ta-recall/lib/conversations.js +46 -0
- package/dist/pi/packages/ta-recall/lib/extension.d.ts +24 -0
- package/dist/pi/packages/ta-recall/lib/extension.js +131 -0
- package/dist/pi/packages/ta-recall/lib/host.d.ts +4 -0
- package/dist/pi/packages/ta-recall/lib/host.js +11 -0
- package/dist/pi/packages/ta-recall/lib/i18n.d.ts +41 -0
- package/dist/pi/packages/ta-recall/lib/i18n.js +83 -0
- package/dist/pi/packages/ta-recall/lib/index.d.ts +9 -0
- package/dist/pi/packages/ta-recall/lib/index.js +45 -0
- package/dist/pi/packages/ta-recall/lib/react.d.ts +11 -0
- package/dist/pi/packages/ta-recall/lib/react.js +16 -0
- package/dist/pi/packages/ta-recall/lib/recall-protocol.d.ts +186 -0
- package/dist/pi/packages/ta-recall/lib/recall-protocol.js +60 -0
- package/dist/pi/packages/ta-recall/lib/recall-service.d.ts +42 -0
- package/dist/pi/packages/ta-recall/lib/recall-service.js +241 -0
- package/dist/pi/packages/ta-recall/lib/search-source.d.ts +7 -0
- package/dist/pi/packages/ta-recall/lib/search-source.js +49 -0
- package/dist/pi/packages/ta-recall/lib/search-util.d.ts +30 -0
- package/dist/pi/packages/ta-recall/lib/search-util.js +167 -0
- package/dist/pi/packages/ta-recall/lib/server-texts.d.ts +7 -0
- package/dist/pi/packages/ta-recall/lib/server-texts.js +17 -0
- package/dist/pi/packages/ta-recall/lib/settings.d.ts +4 -0
- package/dist/pi/packages/ta-recall/lib/settings.js +77 -0
- package/dist/pi/packages/ta-recall/lib/skill-card.d.ts +9 -0
- package/dist/pi/packages/ta-recall/lib/skill-card.js +51 -0
- package/dist/pi/packages/ta-recall/lib/skill-util.d.ts +19 -0
- package/dist/pi/packages/ta-recall/lib/skill-util.js +110 -0
- package/dist/pi/packages/ta-recall/lib/stored.d.ts +5 -0
- package/dist/pi/packages/ta-recall/lib/stored.js +28 -0
- package/dist/pi/packages/ta-recall/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-recall/lib/style.js +48 -0
- package/dist/pi/packages/ta-recall/lib/tool-line.d.ts +10 -0
- package/dist/pi/packages/ta-recall/lib/tool-line.js +23 -0
- package/dist/pi/packages/ta-recall/lib/tool.d.ts +63 -0
- package/dist/pi/packages/ta-recall/lib/tool.js +71 -0
- package/dist/pi/packages/ta-recall/package.json +55 -0
- package/dist/pi/packages/ta-recall/web/index.js +1038 -0
- package/dist/pi/packages/ta-rooms/README.en.md +23 -0
- package/dist/pi/packages/ta-rooms/README.md +23 -0
- package/dist/pi/packages/ta-rooms/lib/dialogs.d.ts +39 -0
- package/dist/pi/packages/ta-rooms/lib/dialogs.js +235 -0
- package/dist/pi/packages/ta-rooms/lib/i18n.d.ts +101 -0
- package/dist/pi/packages/ta-rooms/lib/i18n.js +203 -0
- package/dist/pi/packages/ta-rooms/lib/index.d.ts +9 -0
- package/dist/pi/packages/ta-rooms/lib/index.js +85 -0
- package/dist/pi/packages/ta-rooms/lib/members-view.d.ts +3 -0
- package/dist/pi/packages/ta-rooms/lib/members-view.js +64 -0
- package/dist/pi/packages/ta-rooms/lib/page.d.ts +105 -0
- package/dist/pi/packages/ta-rooms/lib/page.js +306 -0
- package/dist/pi/packages/ta-rooms/lib/react.d.ts +8 -0
- package/dist/pi/packages/ta-rooms/lib/react.js +8 -0
- package/dist/pi/packages/ta-rooms/lib/room-view.d.ts +17 -0
- package/dist/pi/packages/ta-rooms/lib/room-view.js +150 -0
- package/dist/pi/packages/ta-rooms/lib/rooms-page.d.ts +8 -0
- package/dist/pi/packages/ta-rooms/lib/rooms-page.js +174 -0
- package/dist/pi/packages/ta-rooms/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-rooms/lib/style.js +154 -0
- package/dist/pi/packages/ta-rooms/package.json +50 -0
- package/dist/pi/packages/ta-rooms/web/index.js +1932 -0
- package/dist/pi/packages/ta-share/README.en.md +27 -0
- package/dist/pi/packages/ta-share/README.md +27 -0
- package/dist/pi/packages/ta-share/extension/index.mjs +184 -0
- package/dist/pi/packages/ta-share/host/index.mjs +364 -0
- package/dist/pi/packages/ta-share/lib/extension.d.ts +15 -0
- package/dist/pi/packages/ta-share/lib/extension.js +115 -0
- package/dist/pi/packages/ta-share/lib/host.d.ts +4 -0
- package/dist/pi/packages/ta-share/lib/host.js +9 -0
- package/dist/pi/packages/ta-share/lib/i18n.d.ts +106 -0
- package/dist/pi/packages/ta-share/lib/i18n.js +213 -0
- package/dist/pi/packages/ta-share/lib/index.d.ts +9 -0
- package/dist/pi/packages/ta-share/lib/index.js +77 -0
- package/dist/pi/packages/ta-share/lib/page.d.ts +48 -0
- package/dist/pi/packages/ta-share/lib/page.js +105 -0
- package/dist/pi/packages/ta-share/lib/react.d.ts +8 -0
- package/dist/pi/packages/ta-share/lib/react.js +8 -0
- package/dist/pi/packages/ta-share/lib/server-texts.d.ts +14 -0
- package/dist/pi/packages/ta-share/lib/server-texts.js +52 -0
- package/dist/pi/packages/ta-share/lib/share-dialog.d.ts +18 -0
- package/dist/pi/packages/ta-share/lib/share-dialog.js +233 -0
- package/dist/pi/packages/ta-share/lib/share-protocol.d.ts +86 -0
- package/dist/pi/packages/ta-share/lib/share-protocol.js +30 -0
- package/dist/pi/packages/ta-share/lib/share-service.d.ts +50 -0
- package/dist/pi/packages/ta-share/lib/share-service.js +130 -0
- package/dist/pi/packages/ta-share/lib/shared-view.d.ts +18 -0
- package/dist/pi/packages/ta-share/lib/shared-view.js +225 -0
- package/dist/pi/packages/ta-share/lib/shares-page.d.ts +3 -0
- package/dist/pi/packages/ta-share/lib/shares-page.js +54 -0
- package/dist/pi/packages/ta-share/lib/snapshot.d.ts +30 -0
- package/dist/pi/packages/ta-share/lib/snapshot.js +195 -0
- package/dist/pi/packages/ta-share/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-share/lib/style.js +111 -0
- package/dist/pi/packages/ta-share/package.json +56 -0
- package/dist/pi/packages/ta-share/web/index.js +1197 -0
- package/dist/pi/packages/ta-workspace/README.md +1 -1
- package/dist/pi/packages/ta-workspace/README.zh-cn.md +1 -1
- package/dist/pi/packages/ta-workspace/lib/browser-common.d.ts +1 -1
- package/dist/pi/packages/ta-workspace/lib/browser-common.js +29 -30
- package/dist/pi/packages/ta-workspace/lib/browser-tool-line.d.ts +15 -0
- package/dist/pi/packages/ta-workspace/lib/browser-tool-line.js +70 -0
- package/dist/pi/packages/ta-workspace/lib/editors.js +29 -2
- package/dist/pi/packages/ta-workspace/lib/i18n.d.ts +13 -2
- package/dist/pi/packages/ta-workspace/lib/i18n.js +29 -7
- package/dist/pi/packages/ta-workspace/lib/index.js +2 -0
- package/dist/pi/packages/ta-workspace/lib/preview.d.ts +10 -1
- package/dist/pi/packages/ta-workspace/lib/preview.js +136 -11
- package/dist/pi/packages/ta-workspace/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-workspace/lib/style.js +56 -40
- package/dist/pi/packages/ta-workspace/lib/terminal-sessions.d.ts +15 -4
- package/dist/pi/packages/ta-workspace/lib/terminal-sessions.js +31 -9
- package/dist/pi/packages/ta-workspace/lib/terminal.d.ts +3 -2
- package/dist/pi/packages/ta-workspace/lib/terminal.js +51 -21
- package/dist/pi/packages/ta-workspace/lib/util/preview.d.ts +27 -0
- package/dist/pi/packages/ta-workspace/lib/util/preview.js +74 -0
- package/dist/pi/packages/ta-workspace/lib/util/terminal.d.ts +5 -0
- package/dist/pi/packages/ta-workspace/lib/util/terminal.js +14 -0
- package/dist/pi/packages/ta-workspace/package.json +1 -1
- package/dist/pi/packages/ta-workspace/web/index.js +823 -341
- package/dist/public/assets/OrbitControls-DVf70a7w.js +1 -0
- package/dist/public/assets/{abnfDiagram-S7VZAUFO-BmIko5tV.js → abnfDiagram-S7VZAUFO-D9uU0Tx2.js} +1 -1
- package/dist/public/assets/{architecture-WOLXFQ4H-XgsdQ7ul.js → architecture-WOLXFQ4H-f7Nm7EIo.js} +1 -1
- package/dist/public/assets/{architectureDiagram-YGSQEFNW--sVhMS03.js → architectureDiagram-YGSQEFNW-DSAqlcms.js} +1 -1
- package/dist/public/assets/{blockDiagram-APKKGZFW-8f9b-9k2.js → blockDiagram-APKKGZFW-C0lPIW9g.js} +1 -1
- package/dist/public/assets/{browser-DOHZ0JCf.js → browser-WLpgVYno.js} +1 -1
- package/dist/public/assets/{c4Diagram-KJ2TOQU5-CwYQ0Jfy.js → c4Diagram-KJ2TOQU5-CDcZ7mJq.js} +1 -1
- package/dist/public/assets/{chunk-6MUBBAK2-7Y9ezehi.js → chunk-6MUBBAK2-CXPuyqPL.js} +1 -1
- package/dist/public/assets/{chunk-AXFCVDMN-CZIH4pWz.js → chunk-AXFCVDMN-Du6JRX1x.js} +1 -1
- package/dist/public/assets/{chunk-BG4553SI-DsNATY2m.js → chunk-BG4553SI-D592E55X.js} +1 -1
- package/dist/public/assets/{chunk-DQASFODM-CoXkfYE-.js → chunk-DQASFODM-BW2r2SL4.js} +1 -1
- package/dist/public/assets/{chunk-HFQBQIA3-C5OLqki8.js → chunk-HFQBQIA3-C3yoe54R.js} +1 -1
- package/dist/public/assets/{chunk-KQLB2F66-DMHuYGEF.js → chunk-KQLB2F66-DF8gfYCy.js} +1 -1
- package/dist/public/assets/{chunk-KS47KZWR-BKeOttO1.js → chunk-KS47KZWR-C8CRMTv1.js} +1 -1
- package/dist/public/assets/{chunk-LEVMRMFU-D6zCwkk7.js → chunk-LEVMRMFU-BDcMKiwj.js} +1 -1
- package/dist/public/assets/{chunk-M57EVK23-B5-QqcZg.js → chunk-M57EVK23-CKJPBygc.js} +1 -1
- package/dist/public/assets/{chunk-OY52VR5R-DQrq3n0T.js → chunk-OY52VR5R-B3ZWH07L.js} +1 -1
- package/dist/public/assets/{chunk-QB3YPZ4I-j6ZT7EDR.js → chunk-QB3YPZ4I-DI-z4UPL.js} +1 -1
- package/dist/public/assets/{chunk-R3KSYZAL-D5MXUO36.js → chunk-R3KSYZAL-Bg4-haAc.js} +1 -1
- package/dist/public/assets/{chunk-STOXU5M4-DaBkw4dD.js → chunk-STOXU5M4-l_SHib3p.js} +1 -1
- package/dist/public/assets/{chunk-TU62E6Q5-vXcRfGci.js → chunk-TU62E6Q5-BINu9tIm.js} +1 -1
- package/dist/public/assets/{chunk-X4PVCEUW-CIh6H4Y2.js → chunk-X4PVCEUW-BQn-mvV5.js} +1 -1
- package/dist/public/assets/{chunk-XXDRQBXY-C_Vwv1FM.js → chunk-XXDRQBXY-uvpAu0Ys.js} +1 -1
- package/dist/public/assets/{classDiagram-v2-L25IHNXF-DccDWEJn.js → classDiagram-v2-L25IHNXF-BIowooW1.js} +1 -1
- package/dist/public/assets/{cose-bilkent-JH36ORCC-BX47lumZ.js → cose-bilkent-JH36ORCC-BTyx1Mh2.js} +1 -1
- package/dist/public/assets/cynefin-EF2NZ3EQ-Dg54eFzZ.js +1 -0
- package/dist/public/assets/{cynefinDiagram-L36ESFBY-BE6WOGxW.js → cynefinDiagram-L36ESFBY-D64EU9I0.js} +1 -1
- package/dist/public/assets/{d3-selection-ZcE6yRN5.js → d3-selection-CN9k6_B9.js} +1 -1
- package/dist/public/assets/{dagre-SPEB5RXH-CE6SOOcN.js → dagre-SPEB5RXH-FCbz2-Kk.js} +1 -1
- package/dist/public/assets/{diagram-3B7GL73J-xC8VtiYL.js → diagram-3B7GL73J-OhHUSI7j.js} +1 -1
- package/dist/public/assets/{diagram-DNEMPZML-4dmcBbjL.js → diagram-DNEMPZML-Be4xMtp6.js} +1 -1
- package/dist/public/assets/{diagram-L3MUGCDN-D14Yn3sQ.js → diagram-L3MUGCDN-CmKSs3aG.js} +1 -1
- package/dist/public/assets/{diagram-LA4NIPWU-GxSXIhsK.js → diagram-LA4NIPWU-D1C32rMN.js} +1 -1
- package/dist/public/assets/{diagram-MHCOC4E2-Cm7Prlpc.js → diagram-MHCOC4E2-BjoE6JXs.js} +1 -1
- package/dist/public/assets/{diagram-XPFHEONP-mkUnnKFu.js → diagram-XPFHEONP-B22k4v8R.js} +1 -1
- package/dist/public/assets/{dist-acJS-BlA.js → dist-DcBP8Cf6.js} +1 -1
- package/dist/public/assets/{ebnfDiagram-UZSYDL2S-m77ua3UQ.js → ebnfDiagram-UZSYDL2S-Tn-K8-X7.js} +1 -1
- package/dist/public/assets/{editor.api-CljTm-EQ.js → editor.api-Bz4sjRz_.js} +1 -1
- package/dist/public/assets/{elk-XV6XMXQE-DsQY1hw9.js → elk-XV6XMXQE-COnQsWlN.js} +1 -1
- package/dist/public/assets/{erDiagram-EYBAPDEH-CV8gJM0P.js → erDiagram-EYBAPDEH-c53dJilq.js} +1 -1
- package/dist/public/assets/{eventmodeling-K75KTNOO-C1pymbUr.js → eventmodeling-K75KTNOO-DaFpPPks.js} +1 -1
- package/dist/public/assets/flowDiagram-MALGAFMO-V5qkYWIO.js +1 -0
- package/dist/public/assets/{freemarker2-DYJXaMHN.js → freemarker2-BLxfRHsw.js} +1 -1
- package/dist/public/assets/{ganttDiagram-23REXITY-CppxOWRh.js → ganttDiagram-23REXITY-Md-SavIS.js} +1 -1
- package/dist/public/assets/gitGraph-VSP46ZUC-1q8ldRXU.js +1 -0
- package/dist/public/assets/{gitGraphDiagram-STJD7YCW-CrQrZhcP.js → gitGraphDiagram-STJD7YCW-CMSwTghO.js} +1 -1
- package/dist/public/assets/{handlebars-DZCnH9e2.js → handlebars-sNpu01kP.js} +1 -1
- package/dist/public/assets/{html-DuzouNES.js → html-C_tKd-uP.js} +1 -1
- package/dist/public/assets/{index-B7OYKvCE.js → index-Bn86rI4n.js} +2 -2
- package/dist/public/assets/info-OHQRW6UA-Crere6sx.js +1 -0
- package/dist/public/assets/{infoDiagram-KBXO4MBG-6pby19tQ.js → infoDiagram-KBXO4MBG-CwgNj-7i.js} +1 -1
- package/dist/public/assets/{ishikawaDiagram-M35NCXHK-Duf8c8rQ.js → ishikawaDiagram-M35NCXHK-BSlzQNMN.js} +1 -1
- package/dist/public/assets/{javascript-2d_L6cVd.js → javascript-l3qKw0L-.js} +1 -1
- package/dist/public/assets/{journeyDiagram-OPLOXDXO-Dvv-xzNo.js → journeyDiagram-OPLOXDXO-B09LPEnF.js} +1 -1
- package/dist/public/assets/{jsonMode-CFadYXyI.js → jsonMode-5SQQn1EX.js} +1 -1
- package/dist/public/assets/{kanban-definition-BZKZHSQY-Dsk6F-TT.js → kanban-definition-BZKZHSQY-BiW4aJ29.js} +1 -1
- package/dist/public/assets/{liquid-Din4CF34.js → liquid-BGyTIIUt.js} +1 -1
- package/dist/public/assets/{mdx-DivDuCWI.js → mdx-8tGjz4em.js} +1 -1
- package/dist/public/assets/{mermaid-parser.core-BfCv4CYZ.js → mermaid-parser.core-CctN5b0z.js} +3 -3
- package/dist/public/assets/{mermaid.core-DC20ZwJj.js → mermaid.core-7ERSdZ4-.js} +4 -4
- package/dist/public/assets/{mindmap-definition-I2QAS2VK-DRZRrJU_.js → mindmap-definition-I2QAS2VK-D-GOUwW1.js} +1 -1
- package/dist/public/assets/module-DEqsdd00.js +1 -0
- package/dist/public/assets/module-TWc52XwT.js +2244 -0
- package/dist/public/assets/{monaco-D1d6MOPe.js → monaco-B_9hlk78.js} +3 -3
- package/dist/public/assets/packet-JDAUHWVQ-qMf5LkHT.js +1 -0
- package/dist/public/assets/{pegDiagram-FD4XPPHP-DcGr3Tbk.js → pegDiagram-FD4XPPHP-Dmy1fWB3.js} +1 -1
- package/dist/public/assets/phaser.esm-BxCDEWDb.js +3202 -0
- package/dist/public/assets/pie-XZMESJXO-BjqLn4qm.js +1 -0
- package/dist/public/assets/{pieDiagram-J4AKIIQI-GF7pu6ch.js → pieDiagram-J4AKIIQI-CXFHLYTg.js} +1 -1
- package/dist/public/assets/{python-BQbTTTT5.js → python-e-JK0s5M.js} +1 -1
- package/dist/public/assets/{quadrantDiagram-XTYBLID2-D-bcu7Ey.js → quadrantDiagram-XTYBLID2-RQvEpGWO.js} +1 -1
- package/dist/public/assets/radar-ABXABTNO-DWO6t_4C.js +1 -0
- package/dist/public/assets/railroad-I3PHUGI6-D1XOJPWy.js +1 -0
- package/dist/public/assets/{railroad-abnf-LNEFI6M7-BiBHsI-K.js → railroad-abnf-LNEFI6M7-CDOSPZwX.js} +1 -1
- package/dist/public/assets/{railroad-ebnf-DWYD2UWJ-zKjrfkHs.js → railroad-ebnf-DWYD2UWJ-BTrNQ0DX.js} +1 -1
- package/dist/public/assets/{railroad-peg-JR7BVNR7-DKuVn0GT.js → railroad-peg-JR7BVNR7-B7NtVofS.js} +1 -1
- package/dist/public/assets/{railroadDiagram-MRQ6NCDL-Cyn-16mJ.js → railroadDiagram-MRQ6NCDL-DsDrT0Jf.js} +1 -1
- package/dist/public/assets/{razor-DiLk54O0.js → razor-DtSPwumi.js} +1 -1
- package/dist/public/assets/{requirementDiagram-Y7LWUY3S-CwU2EBkW.js → requirementDiagram-Y7LWUY3S-BQh0hFuA.js} +1 -1
- package/dist/public/assets/{sankeyDiagram-WGJFYUXA-ajf00HyW.js → sankeyDiagram-WGJFYUXA-BUXNAQEF.js} +1 -1
- package/dist/public/assets/{sequenceDiagram-5NDRBG5M-DiX_OIAw.js → sequenceDiagram-5NDRBG5M-05f-N5V_.js} +1 -1
- package/dist/public/assets/{stateDiagram-v2-FJ4FJNEA-CV5bRqB7.js → stateDiagram-v2-FJ4FJNEA-D6V1fGWV.js} +1 -1
- package/dist/public/assets/{swimlanes-UMQ2AFYF-BGQKSlj7.js → swimlanes-UMQ2AFYF-DWhlPvKs.js} +1 -1
- package/dist/public/assets/swimlanesDiagram-OMPLPG4O-CRn5uHsY.js +8 -0
- package/dist/public/assets/three.module-CeVBJVoU.js +4225 -0
- package/dist/public/assets/{timeline-definition-SEUHKTQE-DhQoApff.js → timeline-definition-SEUHKTQE-CMdocOui.js} +1 -1
- package/dist/public/assets/treeView-D4JQ5SDB-D09wHNzT.js +1 -0
- package/dist/public/assets/treemap-SAJKECNS-ChxAT7Fq.js +1 -0
- package/dist/public/assets/{typescript-COQ1g-up.js → typescript-65jNyipU.js} +1 -1
- package/dist/public/assets/{usecaseDiagram-AFA6YXN4-CmLFzjie.js → usecaseDiagram-AFA6YXN4-BQTHUX1f.js} +1 -1
- package/dist/public/assets/{vennDiagram-NNMJR3RB-DOa6JR5K.js → vennDiagram-NNMJR3RB-BULkVTfA.js} +1 -1
- package/dist/public/assets/wardley-7MLQ67FV-DfSjKzbJ.js +1 -0
- package/dist/public/assets/{wardleyDiagram-S7YFUSEH-BV7EEShp.js → wardleyDiagram-S7YFUSEH-Cek6l8lz.js} +1 -1
- package/dist/public/assets/{xml-BbvtjuaG.js → xml-DWBejfu-.js} +1 -1
- package/dist/public/assets/{xychartDiagram-GGNKY7IX-DtMpPbsq.js → xychartDiagram-GGNKY7IX-ujnZQTWA.js} +1 -1
- package/dist/public/assets/{yaml-Bw8NFga9.js → yaml-CwRCT7q1.js} +1 -1
- package/dist/public/index.html +1 -1
- package/dist/serve/index.mjs +5853 -2164
- package/package.json +32 -25
- package/dist/public/assets/cynefin-EF2NZ3EQ-MaI-3dMQ.js +0 -1
- package/dist/public/assets/flowDiagram-MALGAFMO-shBnAQFk.js +0 -1
- package/dist/public/assets/gitGraph-VSP46ZUC-BtQWboBz.js +0 -1
- package/dist/public/assets/info-OHQRW6UA-CDSLjba_.js +0 -1
- package/dist/public/assets/module-BAQaY56j.js +0 -1
- package/dist/public/assets/module-DxRGg3ED.js +0 -1947
- package/dist/public/assets/packet-JDAUHWVQ-dYb4P9eU.js +0 -1
- package/dist/public/assets/pie-XZMESJXO-CIompBnc.js +0 -1
- package/dist/public/assets/radar-ABXABTNO-DiJl7BtK.js +0 -1
- package/dist/public/assets/railroad-I3PHUGI6-B5cRBukM.js +0 -1
- package/dist/public/assets/swimlanesDiagram-OMPLPG4O-DxXlavVT.js +0 -8
- package/dist/public/assets/treeView-D4JQ5SDB-BOP6mkZC.js +0 -1
- package/dist/public/assets/treemap-SAJKECNS-BJxuPMz3.js +0 -1
- package/dist/public/assets/wardley-7MLQ67FV-jqlowjVL.js +0 -1
|
@@ -0,0 +1,497 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cameras
|
|
3
|
+
description: "Use this skill when working with cameras in Phaser 4. Covers camera effects (shake, fade, flash, pan, zoom), following sprites, scroll, bounds, viewports, multiple cameras, and minimap. Triggers on: camera, viewport, scroll, zoom, follow, shake, fade."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Cameras
|
|
7
|
+
> Camera system in Phaser 4 -- CameraManager, main camera, viewport vs scroll, zoom, bounds, following sprites, camera effects (fade, flash, shake, pan, zoomTo, rotateTo), ignore lists, filters, and keyboard controls.
|
|
8
|
+
|
|
9
|
+
**Key source paths:** `src/cameras/2d/CameraManager.js`, `src/cameras/2d/BaseCamera.js`, `src/cameras/2d/Camera.js`, `src/cameras/2d/effects/`, `src/cameras/controls/`
|
|
10
|
+
**Related skills:** ../game-setup-and-config/SKILL.md, ../sprites-and-images/SKILL.md, ../filters-and-postfx/SKILL.md
|
|
11
|
+
|
|
12
|
+
## Quick Start
|
|
13
|
+
|
|
14
|
+
```js
|
|
15
|
+
// In a Scene's create() method:
|
|
16
|
+
|
|
17
|
+
// Access the default camera (created automatically)
|
|
18
|
+
const cam = this.cameras.main;
|
|
19
|
+
|
|
20
|
+
// Scroll the camera to look at a different part of the world
|
|
21
|
+
cam.setScroll(200, 100);
|
|
22
|
+
|
|
23
|
+
// Center camera on a world coordinate
|
|
24
|
+
cam.centerOn(400, 300);
|
|
25
|
+
|
|
26
|
+
// Zoom in (2x) -- values < 1 zoom out, > 1 zoom in
|
|
27
|
+
cam.setZoom(2);
|
|
28
|
+
|
|
29
|
+
// Follow a sprite with smooth lerp
|
|
30
|
+
cam.startFollow(player, false, 0.1, 0.1);
|
|
31
|
+
|
|
32
|
+
// Constrain the camera to the world bounds
|
|
33
|
+
cam.setBounds(0, 0, 2048, 2048);
|
|
34
|
+
|
|
35
|
+
// Fade in from black over 1 second
|
|
36
|
+
cam.fadeIn(1000);
|
|
37
|
+
|
|
38
|
+
// Add a filter to the camera (v4 feature)
|
|
39
|
+
cam.filters.external.addBlur(1, 2);
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Core Concepts
|
|
43
|
+
|
|
44
|
+
### CameraManager
|
|
45
|
+
|
|
46
|
+
Every Scene has a `CameraManager` accessible via `this.cameras`. It manages all cameras for that Scene and is registered as a plugin under the key `'CameraManager'`.
|
|
47
|
+
|
|
48
|
+
```js
|
|
49
|
+
// The manager is at this.cameras (not this.camera)
|
|
50
|
+
this.cameras // CameraManager instance
|
|
51
|
+
this.cameras.cameras // Array of Camera objects (render order)
|
|
52
|
+
this.cameras.main // Reference to the "main" camera (first one by default)
|
|
53
|
+
this.cameras.default // Un-transformed utility camera (not in the cameras array)
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
**Key methods on CameraManager:**
|
|
57
|
+
|
|
58
|
+
| Method | Signature | Description |
|
|
59
|
+
|---|---|---|
|
|
60
|
+
| `add` | `(x?, y?, width?, height?, makeMain?, name?)` | Create a new Camera. Defaults to full game size at 0,0. Returns `Camera`. |
|
|
61
|
+
| `addExisting` | `(camera, makeMain?)` | Add a pre-built Camera instance. Returns the Camera or `null` if it already exists. |
|
|
62
|
+
| `remove` | `(camera, runDestroy?)` | Remove and optionally destroy a Camera or array of Cameras. If main is removed, resets to cameras[0]. |
|
|
63
|
+
| `getCamera` | `(name)` | Find a Camera by its `name` string. Returns Camera or `null`. |
|
|
64
|
+
| `getTotal` | `(isVisible?)` | Count cameras. Pass `true` to count only visible ones. |
|
|
65
|
+
| `fromJSON` | `(config)` | Create cameras from a config object or array. Used for scene-level camera config. |
|
|
66
|
+
| `resetAll` | `()` | Destroy all cameras and create one fresh default camera. |
|
|
67
|
+
| `resize` | `(width, height)` | Resize all cameras to given dimensions. |
|
|
68
|
+
|
|
69
|
+
**Camera limit:** The manager supports up to 32 cameras that can use `ignore()` for Game Object exclusion (IDs are bitmasks). Cameras beyond 32 get ID 0 and cannot exclude objects.
|
|
70
|
+
|
|
71
|
+
### Main Camera
|
|
72
|
+
|
|
73
|
+
The `main` property is a convenience reference to a Camera, typically `cameras[0]`. It is set automatically when:
|
|
74
|
+
- The scene boots (first camera created becomes main)
|
|
75
|
+
- You pass `makeMain: true` to `add()` or `addExisting()`
|
|
76
|
+
- The current main camera is removed (falls back to `cameras[0]`)
|
|
77
|
+
|
|
78
|
+
### Viewport vs World (Scroll)
|
|
79
|
+
|
|
80
|
+
A Camera has two independent coordinate concepts:
|
|
81
|
+
|
|
82
|
+
1. **Viewport** -- The physical rectangle on the canvas where the Camera renders. Controlled by `setPosition(x, y)`, `setSize(w, h)`, or `setViewport(x, y, w, h)`. By default, fills the entire game canvas.
|
|
83
|
+
|
|
84
|
+
2. **Scroll** -- Where the Camera is "looking" in the game world. Controlled by `scrollX` / `scrollY` properties or `setScroll(x, y)`. Scrolling does not affect the viewport rectangle.
|
|
85
|
+
|
|
86
|
+
```js
|
|
87
|
+
// Viewport: a 320x200 mini-map in the top-right corner
|
|
88
|
+
const miniCam = this.cameras.add(480, 0, 320, 200);
|
|
89
|
+
|
|
90
|
+
// Scroll: make the mini-map look at a different world area
|
|
91
|
+
miniCam.setScroll(1000, 500);
|
|
92
|
+
|
|
93
|
+
// Zoom: the mini-cam shows more of the world
|
|
94
|
+
miniCam.setZoom(0.25);
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
**worldView** is a read-only `Rectangle` updated each frame that reflects what area of the world the camera can currently see, accounting for scroll, zoom, and bounds. Use it for culling or intersection checks.
|
|
98
|
+
|
|
99
|
+
```js
|
|
100
|
+
const view = cam.worldView; // { x, y, width, height }
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
## Common Patterns
|
|
104
|
+
|
|
105
|
+
### Scrolling the Camera
|
|
106
|
+
|
|
107
|
+
```js
|
|
108
|
+
// Direct property access
|
|
109
|
+
cam.scrollX = 100;
|
|
110
|
+
cam.scrollY = 200;
|
|
111
|
+
|
|
112
|
+
// Chainable setter
|
|
113
|
+
cam.setScroll(100, 200);
|
|
114
|
+
|
|
115
|
+
// Center the camera on a world coordinate
|
|
116
|
+
cam.centerOn(500, 400);
|
|
117
|
+
|
|
118
|
+
// Get the scroll values needed to center on a point (without moving)
|
|
119
|
+
const point = cam.getScroll(500, 400); // returns Vector2
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
### Following a Sprite
|
|
123
|
+
|
|
124
|
+
```js
|
|
125
|
+
// Instant follow (lerp = 1, the default)
|
|
126
|
+
cam.startFollow(player);
|
|
127
|
+
|
|
128
|
+
// Smooth follow with lerp (0..1, lower = smoother)
|
|
129
|
+
cam.startFollow(player, false, 0.1, 0.1);
|
|
130
|
+
|
|
131
|
+
// Full signature:
|
|
132
|
+
// startFollow(target, roundPixels?, lerpX?, lerpY?, offsetX?, offsetY?)
|
|
133
|
+
cam.startFollow(player, true, 0.05, 0.05, 0, -50);
|
|
134
|
+
|
|
135
|
+
// Change lerp or offset after starting follow
|
|
136
|
+
cam.setLerp(0.08, 0.08);
|
|
137
|
+
cam.setFollowOffset(0, -50);
|
|
138
|
+
|
|
139
|
+
// Dead zone: camera only scrolls when target leaves this rectangle
|
|
140
|
+
cam.setDeadzone(200, 150);
|
|
141
|
+
|
|
142
|
+
// Stop following
|
|
143
|
+
cam.stopFollow();
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
`startFollow` accepts any object with `x` and `y` properties -- it does not have to be a Game Object. Lerp of `1` snaps instantly; `0.1` gives smooth tracking. A lerp of `0` on an axis disables tracking on that axis.
|
|
147
|
+
|
|
148
|
+
When a deadzone is set, the camera does not scroll while the target remains inside the deadzone rectangle. The deadzone is re-centered on the camera midpoint each frame.
|
|
149
|
+
|
|
150
|
+
### Zoom
|
|
151
|
+
|
|
152
|
+
```js
|
|
153
|
+
// Uniform zoom
|
|
154
|
+
cam.setZoom(2); // 2x zoom in
|
|
155
|
+
cam.setZoom(0.5); // zoom out (see twice as much)
|
|
156
|
+
|
|
157
|
+
// Independent horizontal/vertical zoom
|
|
158
|
+
cam.setZoom(2, 1); // stretch horizontally
|
|
159
|
+
|
|
160
|
+
// Read current zoom
|
|
161
|
+
cam.zoom; // shortcut -- reads zoomX (assumes uniform)
|
|
162
|
+
cam.zoomX;
|
|
163
|
+
cam.zoomY;
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
**Never set zoom to 0.** The minimum is clamped to 0.001.
|
|
167
|
+
|
|
168
|
+
### Bounds
|
|
169
|
+
|
|
170
|
+
```js
|
|
171
|
+
// Constrain scrolling to a world area
|
|
172
|
+
cam.setBounds(0, 0, worldWidth, worldHeight);
|
|
173
|
+
|
|
174
|
+
// Center on the new bounds immediately
|
|
175
|
+
cam.setBounds(0, 0, 2048, 2048, true);
|
|
176
|
+
|
|
177
|
+
// Temporarily disable bounds without removing them
|
|
178
|
+
cam.useBounds = false;
|
|
179
|
+
|
|
180
|
+
// Remove bounds entirely
|
|
181
|
+
cam.removeBounds();
|
|
182
|
+
|
|
183
|
+
// Read the current bounds
|
|
184
|
+
const rect = cam.getBounds(); // returns a new Rectangle copy
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
Bounds only restrict scrolling. They do not prevent Game Objects from being placed outside the bounds, and they do not affect the viewport position.
|
|
188
|
+
|
|
189
|
+
### Multiple Cameras
|
|
190
|
+
|
|
191
|
+
```js
|
|
192
|
+
// Full-screen main camera
|
|
193
|
+
const main = this.cameras.main;
|
|
194
|
+
|
|
195
|
+
// Mini-map in top-right corner
|
|
196
|
+
const minimap = this.cameras.add(600, 0, 200, 150).setZoom(0.2).setName('minimap');
|
|
197
|
+
minimap.setScroll(0, 0);
|
|
198
|
+
minimap.setBackgroundColor('rgba(0,0,0,0.5)');
|
|
199
|
+
|
|
200
|
+
// HUD camera that doesn't scroll (ignores world objects, shows HUD layer only)
|
|
201
|
+
const hudCam = this.cameras.add(0, 0, 800, 600).setName('hud');
|
|
202
|
+
hudCam.setScroll(0, 0);
|
|
203
|
+
|
|
204
|
+
// Make the main camera ignore HUD objects
|
|
205
|
+
main.ignore(hudGroup);
|
|
206
|
+
// Make the HUD camera ignore world objects
|
|
207
|
+
hudCam.ignore(worldGroup);
|
|
208
|
+
|
|
209
|
+
// Find a camera by name
|
|
210
|
+
const found = this.cameras.getCamera('minimap');
|
|
211
|
+
|
|
212
|
+
// Remove a camera
|
|
213
|
+
this.cameras.remove(minimap);
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
### Camera Effects
|
|
217
|
+
|
|
218
|
+
All effects are on the `Camera` class (not `BaseCamera`). Each returns `this` for chaining. Effects that are already running will not restart unless you pass `force: true`.
|
|
219
|
+
|
|
220
|
+
#### Fade
|
|
221
|
+
|
|
222
|
+
```js
|
|
223
|
+
// Fade out to black over 1 second
|
|
224
|
+
cam.fadeOut(1000);
|
|
225
|
+
|
|
226
|
+
// Fade out to red
|
|
227
|
+
cam.fadeOut(1000, 255, 0, 0);
|
|
228
|
+
|
|
229
|
+
// Fade in from black over 500ms
|
|
230
|
+
cam.fadeIn(500);
|
|
231
|
+
|
|
232
|
+
// Lower-level: fade (out direction) and fadeFrom (in direction)
|
|
233
|
+
// with a force parameter
|
|
234
|
+
cam.fade(1000, 0, 0, 0, true); // force start even if running
|
|
235
|
+
cam.fadeFrom(1000, 0, 0, 0, true);
|
|
236
|
+
|
|
237
|
+
// With per-frame callback
|
|
238
|
+
cam.fadeOut(1000, 0, 0, 0, (cam, progress) => {
|
|
239
|
+
// progress goes from 0 to 1
|
|
240
|
+
});
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
Fade direction: `fadeOut` / `fade` goes transparent-to-color. `fadeIn` / `fadeFrom` goes color-to-transparent.
|
|
244
|
+
|
|
245
|
+
#### Flash
|
|
246
|
+
|
|
247
|
+
```js
|
|
248
|
+
// White flash over 250ms (default)
|
|
249
|
+
cam.flash(250);
|
|
250
|
+
|
|
251
|
+
// Red flash over 500ms
|
|
252
|
+
cam.flash(500, 255, 0, 0);
|
|
253
|
+
|
|
254
|
+
// Full signature: flash(duration?, r?, g?, b?, force?, callback?, context?)
|
|
255
|
+
cam.flash(300, 255, 255, 255, true, (cam, progress) => {});
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
#### Shake
|
|
259
|
+
|
|
260
|
+
```js
|
|
261
|
+
// Default shake: 100ms at intensity 0.05
|
|
262
|
+
cam.shake(100);
|
|
263
|
+
|
|
264
|
+
// Stronger shake for 500ms
|
|
265
|
+
cam.shake(500, 0.02);
|
|
266
|
+
|
|
267
|
+
// Independent x/y intensity using a Vector2
|
|
268
|
+
cam.shake(300, new Phaser.Math.Vector2(0.1, 0.02));
|
|
269
|
+
|
|
270
|
+
// Full signature: shake(duration?, intensity?, force?, callback?, context?)
|
|
271
|
+
```
|
|
272
|
+
|
|
273
|
+
The `intensity` value is a small float. The default 0.05 means the camera shifts up to 5% of the viewport size.
|
|
274
|
+
|
|
275
|
+
#### Pan
|
|
276
|
+
|
|
277
|
+
```js
|
|
278
|
+
// Pan camera center to world coordinate (400, 300) over 2 seconds
|
|
279
|
+
cam.pan(400, 300, 2000);
|
|
280
|
+
|
|
281
|
+
// With easing
|
|
282
|
+
cam.pan(400, 300, 2000, 'Power2');
|
|
283
|
+
|
|
284
|
+
// Full signature: pan(x, y, duration?, ease?, force?, callback?, context?)
|
|
285
|
+
cam.pan(800, 600, 1500, 'Sine.easeInOut', false, (cam, progress, x, y) => {});
|
|
286
|
+
```
|
|
287
|
+
|
|
288
|
+
Pan scrolls the camera so its viewport center finishes at the given world coordinate.
|
|
289
|
+
|
|
290
|
+
#### ZoomTo
|
|
291
|
+
|
|
292
|
+
```js
|
|
293
|
+
// Animate zoom to 2x over 1 second
|
|
294
|
+
cam.zoomTo(2, 1000);
|
|
295
|
+
|
|
296
|
+
// With easing
|
|
297
|
+
cam.zoomTo(0.5, 2000, 'Cubic.easeOut');
|
|
298
|
+
|
|
299
|
+
// Full signature: zoomTo(zoom, duration?, ease?, force?, callback?, context?)
|
|
300
|
+
```
|
|
301
|
+
|
|
302
|
+
#### RotateTo
|
|
303
|
+
|
|
304
|
+
```js
|
|
305
|
+
// Rotate camera to 45 degrees (in radians) over 1 second
|
|
306
|
+
cam.rotateTo(Phaser.Math.DegToRad(45), false, 1000);
|
|
307
|
+
|
|
308
|
+
// Shortest path rotation
|
|
309
|
+
cam.rotateTo(Math.PI, true, 1500, 'Quad.easeInOut');
|
|
310
|
+
|
|
311
|
+
// Full signature: rotateTo(angle, shortestPath?, duration?, ease?, force?, callback?, context?)
|
|
312
|
+
```
|
|
313
|
+
|
|
314
|
+
The angle is in **radians**. Set `shortestPath` to `true` to take the shortest rotation direction.
|
|
315
|
+
|
|
316
|
+
#### Reset All Effects
|
|
317
|
+
|
|
318
|
+
```js
|
|
319
|
+
cam.resetFX(); // stops and resets all running effects (rotate, pan, shake, flash, fade)
|
|
320
|
+
```
|
|
321
|
+
|
|
322
|
+
### Keyboard Controls
|
|
323
|
+
|
|
324
|
+
Phaser provides two built-in camera control classes. Both require you to call `update(delta)` in your scene's `update` method.
|
|
325
|
+
|
|
326
|
+
#### FixedKeyControl
|
|
327
|
+
|
|
328
|
+
Moves at a fixed speed per frame. No smoothing.
|
|
329
|
+
|
|
330
|
+
```js
|
|
331
|
+
// In create():
|
|
332
|
+
const cursors = this.input.keyboard.createCursorKeys();
|
|
333
|
+
this.camControl = new Phaser.Cameras.Controls.FixedKeyControl({
|
|
334
|
+
camera: this.cameras.main,
|
|
335
|
+
left: cursors.left,
|
|
336
|
+
right: cursors.right,
|
|
337
|
+
up: cursors.up,
|
|
338
|
+
down: cursors.down,
|
|
339
|
+
speed: 0.5 // can also be { x: 0.5, y: 0.3 }
|
|
340
|
+
});
|
|
341
|
+
|
|
342
|
+
// In update(time, delta):
|
|
343
|
+
this.camControl.update(delta);
|
|
344
|
+
```
|
|
345
|
+
|
|
346
|
+
#### SmoothedKeyControl
|
|
347
|
+
|
|
348
|
+
Applies acceleration, drag, and max speed for smooth camera movement.
|
|
349
|
+
|
|
350
|
+
```js
|
|
351
|
+
this.camControl = new Phaser.Cameras.Controls.SmoothedKeyControl({
|
|
352
|
+
camera: this.cameras.main,
|
|
353
|
+
left: cursors.left,
|
|
354
|
+
right: cursors.right,
|
|
355
|
+
up: cursors.up,
|
|
356
|
+
down: cursors.down,
|
|
357
|
+
zoomIn: this.input.keyboard.addKey('Q'),
|
|
358
|
+
zoomOut: this.input.keyboard.addKey('E'),
|
|
359
|
+
zoomSpeed: 0.02,
|
|
360
|
+
acceleration: 0.06,
|
|
361
|
+
drag: 0.0005,
|
|
362
|
+
maxSpeed: 1.0
|
|
363
|
+
});
|
|
364
|
+
|
|
365
|
+
// In update(time, delta):
|
|
366
|
+
this.camControl.update(delta);
|
|
367
|
+
```
|
|
368
|
+
|
|
369
|
+
Both controls support `zoomIn` and `zoomOut` keys and a `zoomSpeed` config value.
|
|
370
|
+
|
|
371
|
+
### Ignore Lists
|
|
372
|
+
|
|
373
|
+
The `ignore` method updates a Game Object's `cameraFilter` bitmask so the camera skips rendering it.
|
|
374
|
+
|
|
375
|
+
```js
|
|
376
|
+
// Ignore a single object
|
|
377
|
+
cam.ignore(uiText);
|
|
378
|
+
|
|
379
|
+
// Ignore an array
|
|
380
|
+
cam.ignore([scoreText, livesIcon, pauseButton]);
|
|
381
|
+
|
|
382
|
+
// Ignore all children in a Group
|
|
383
|
+
cam.ignore(uiGroup);
|
|
384
|
+
|
|
385
|
+
// Ignore a Layer and all its children
|
|
386
|
+
cam.ignore(uiLayer);
|
|
387
|
+
```
|
|
388
|
+
|
|
389
|
+
This is the primary mechanism for HUD-style setups: one camera ignores world objects, another ignores HUD objects.
|
|
390
|
+
|
|
391
|
+
### Camera Deadzone
|
|
392
|
+
|
|
393
|
+
The deadzone defines a rectangular area around the follow target where the camera does not scroll. The camera only moves when the target leaves this rectangle.
|
|
394
|
+
|
|
395
|
+
```js
|
|
396
|
+
// Set a deadzone of 200x150 pixels centered on the camera viewport
|
|
397
|
+
cam.setDeadzone(200, 150);
|
|
398
|
+
|
|
399
|
+
// Access the deadzone rectangle (read-only, updated internally)
|
|
400
|
+
console.log(cam.deadzone); // Phaser.Geom.Rectangle or null
|
|
401
|
+
|
|
402
|
+
// Remove the deadzone
|
|
403
|
+
cam.setDeadzone();
|
|
404
|
+
```
|
|
405
|
+
|
|
406
|
+
### World Point Conversion
|
|
407
|
+
|
|
408
|
+
Convert screen (pointer) coordinates to world coordinates, accounting for scroll, zoom, and rotation:
|
|
409
|
+
|
|
410
|
+
```js
|
|
411
|
+
const worldPoint = cam.getWorldPoint(pointer.x, pointer.y);
|
|
412
|
+
// Reuse an output object to avoid allocation
|
|
413
|
+
const output = new Phaser.Math.Vector2();
|
|
414
|
+
cam.getWorldPoint(pointer.x, pointer.y, output);
|
|
415
|
+
```
|
|
416
|
+
|
|
417
|
+
Essential when working with scrolled/zoomed cameras -- raw pointer coordinates are screen space, not world space.
|
|
418
|
+
|
|
419
|
+
### Camera Render List
|
|
420
|
+
|
|
421
|
+
Each frame, `renderList` is populated with Game Objects visible to this camera. Rebuilt every frame.
|
|
422
|
+
|
|
423
|
+
```js
|
|
424
|
+
const visible = cam.renderList; // array of GameObjects rendered this frame
|
|
425
|
+
```
|
|
426
|
+
|
|
427
|
+
### Force Composite (Offscreen Framebuffer)
|
|
428
|
+
|
|
429
|
+
Force the camera to render to an offscreen framebuffer. Required for `CaptureFrame` and similar features.
|
|
430
|
+
|
|
431
|
+
```js
|
|
432
|
+
cam.setForceComposite(true); // enable offscreen framebuffer
|
|
433
|
+
cam.setForceComposite(false); // disable
|
|
434
|
+
```
|
|
435
|
+
|
|
436
|
+
Filters enable framebuffer rendering automatically. Use `setForceComposite(true)` when you need it without filters.
|
|
437
|
+
|
|
438
|
+
### Filters on Cameras (v4)
|
|
439
|
+
|
|
440
|
+
In Phaser 4, `Camera` has a `filters` property with two `FilterList` instances:
|
|
441
|
+
|
|
442
|
+
```js
|
|
443
|
+
cam.filters.internal // FilterList -- applied by the system
|
|
444
|
+
cam.filters.external // FilterList -- for user-added filters
|
|
445
|
+
```
|
|
446
|
+
|
|
447
|
+
Add post-processing effects to a camera the same way you add them to Game Objects:
|
|
448
|
+
|
|
449
|
+
```js
|
|
450
|
+
// Add a blur filter to the camera
|
|
451
|
+
cam.filters.external.addBlur(1, 2);
|
|
452
|
+
|
|
453
|
+
// Add a glow
|
|
454
|
+
cam.filters.external.addGlow(0xff0000, 4, 0, false, 0.1, 10);
|
|
455
|
+
|
|
456
|
+
// Add a color matrix filter
|
|
457
|
+
const fx = cam.filters.external.addColorMatrix();
|
|
458
|
+
fx.grayscale();
|
|
459
|
+
|
|
460
|
+
// Remove all external filters
|
|
461
|
+
cam.filters.external.clear();
|
|
462
|
+
```
|
|
463
|
+
|
|
464
|
+
Filters require WebGL. The camera must render via a framebuffer when filters are active. See `setForceComposite(true)` to explicitly enable this even without filters.
|
|
465
|
+
|
|
466
|
+
## Events
|
|
467
|
+
|
|
468
|
+
Camera events are emitted on the Camera instance itself (it extends `EventEmitter`). Listen with `cam.on(event, handler)`.
|
|
469
|
+
|
|
470
|
+
| Event constant | Dispatched when |
|
|
471
|
+
|---|---|
|
|
472
|
+
| `Phaser.Cameras.Scene2D.Events.FADE_IN_START` | `fadeIn` / `fadeFrom` begins |
|
|
473
|
+
| `Phaser.Cameras.Scene2D.Events.FADE_IN_COMPLETE` | Fade-in finishes |
|
|
474
|
+
| `Phaser.Cameras.Scene2D.Events.FADE_OUT_START` | `fadeOut` / `fade` begins |
|
|
475
|
+
| `Phaser.Cameras.Scene2D.Events.FADE_OUT_COMPLETE` | Fade-out finishes |
|
|
476
|
+
| `Phaser.Cameras.Scene2D.Events.FLASH_START` | Flash begins |
|
|
477
|
+
| `Phaser.Cameras.Scene2D.Events.FLASH_COMPLETE` | Flash finishes |
|
|
478
|
+
| `Phaser.Cameras.Scene2D.Events.SHAKE_START` | Shake begins |
|
|
479
|
+
| `Phaser.Cameras.Scene2D.Events.SHAKE_COMPLETE` | Shake finishes |
|
|
480
|
+
| `Phaser.Cameras.Scene2D.Events.PAN_START` | Pan begins |
|
|
481
|
+
| `Phaser.Cameras.Scene2D.Events.PAN_COMPLETE` | Pan finishes |
|
|
482
|
+
| `Phaser.Cameras.Scene2D.Events.ZOOM_START` | Zoom effect begins |
|
|
483
|
+
| `Phaser.Cameras.Scene2D.Events.ZOOM_COMPLETE` | Zoom effect finishes |
|
|
484
|
+
| `Phaser.Cameras.Scene2D.Events.ROTATE_START` | RotateTo begins |
|
|
485
|
+
| `Phaser.Cameras.Scene2D.Events.ROTATE_COMPLETE` | RotateTo finishes |
|
|
486
|
+
| `Phaser.Cameras.Scene2D.Events.FOLLOW_UPDATE` | Camera updates its follow position (each frame while following). Args: `(camera, target)` |
|
|
487
|
+
| `Phaser.Cameras.Scene2D.Events.PRE_RENDER` | Before the camera renders |
|
|
488
|
+
| `Phaser.Cameras.Scene2D.Events.POST_RENDER` | After the camera renders |
|
|
489
|
+
| `Phaser.Cameras.Scene2D.Events.DESTROY` | Camera is destroyed |
|
|
490
|
+
|
|
491
|
+
```js
|
|
492
|
+
cam.on(Phaser.Cameras.Scene2D.Events.FADE_OUT_COMPLETE, () => {
|
|
493
|
+
this.scene.start('GameOver');
|
|
494
|
+
});
|
|
495
|
+
```
|
|
496
|
+
|
|
497
|
+
For detailed configuration options, API reference tables, and source file maps, see [the reference guide](references/REFERENCE..//SKILL.md).
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
# Cameras — Reference
|
|
2
|
+
|
|
3
|
+
> Detailed configuration, API tables, and source file maps for the cameras skill.
|
|
4
|
+
|
|
5
|
+
## API Quick Reference
|
|
6
|
+
|
|
7
|
+
### BaseCamera Properties (inherited by Camera)
|
|
8
|
+
|
|
9
|
+
| Property | Type | Default | Description |
|
|
10
|
+
|---|---|---|---|
|
|
11
|
+
| `scrollX` / `scrollY` | number | 0 | World position the camera is looking at |
|
|
12
|
+
| `zoomX` / `zoomY` | number | 1 | Zoom level per axis |
|
|
13
|
+
| `zoom` | number | 1 | Shortcut: sets/gets both zoomX and zoomY |
|
|
14
|
+
| `rotation` | number | 0 | Rotation in radians |
|
|
15
|
+
| `originX` / `originY` | number | 0.5 | Rotation origin within the viewport (0..1) |
|
|
16
|
+
| `x` / `y` | number | 0 | Viewport position on the canvas |
|
|
17
|
+
| `width` / `height` | number | game size | Viewport dimensions |
|
|
18
|
+
| `worldView` | Rectangle | -- | Read-only rect of visible world area |
|
|
19
|
+
| `midPoint` | Vector2 | -- | Read-only center of camera in world coords |
|
|
20
|
+
| `alpha` | number | 1 | Opacity of everything rendered by this camera |
|
|
21
|
+
| `visible` | boolean | true | Whether the camera renders at all |
|
|
22
|
+
| `backgroundColor` | Color | transparent | Background fill color |
|
|
23
|
+
| `transparent` | boolean | true | False when backgroundColor has alpha > 0 |
|
|
24
|
+
| `roundPixels` | boolean | false | Round positions to integers during render |
|
|
25
|
+
| `name` | string | '' | Optional name for lookup |
|
|
26
|
+
| `id` | number | bitmask | Assigned by manager for ignore-list filtering |
|
|
27
|
+
| `useBounds` | boolean | false | Whether scroll bounds are active |
|
|
28
|
+
| `inputEnabled` | boolean | true | Whether objects through this camera receive input |
|
|
29
|
+
| `disableCull` | boolean | false | Skip culling before input hit tests |
|
|
30
|
+
| `mask` | GeometryMask | null | Canvas-only mask. In WebGL, use filters instead. |
|
|
31
|
+
| `forceComposite` | boolean | false | Force framebuffer rendering (WebGL only, v4) |
|
|
32
|
+
|
|
33
|
+
### BaseCamera Methods
|
|
34
|
+
|
|
35
|
+
| Method | Signature |
|
|
36
|
+
|---|---|
|
|
37
|
+
| `setScroll` | `(x, y?)` |
|
|
38
|
+
| `setZoom` | `(x?, y?)` |
|
|
39
|
+
| `setRotation` | `(radians?)` |
|
|
40
|
+
| `setAngle` | `(degrees?)` |
|
|
41
|
+
| `setPosition` | `(x, y?)` -- viewport position |
|
|
42
|
+
| `setSize` | `(width, height?)` -- viewport size |
|
|
43
|
+
| `setViewport` | `(x, y, width, height?)` -- position + size |
|
|
44
|
+
| `setOrigin` | `(x?, y?)` -- rotation origin |
|
|
45
|
+
| `setBounds` | `(x, y, width, height, centerOn?)` |
|
|
46
|
+
| `removeBounds` | `()` |
|
|
47
|
+
| `getBounds` | `(out?)` -- returns Rectangle copy |
|
|
48
|
+
| `centerOn` | `(x, y)` |
|
|
49
|
+
| `centerOnX` | `(x)` |
|
|
50
|
+
| `centerOnY` | `(y)` |
|
|
51
|
+
| `getScroll` | `(x, y, out?)` -- returns Vector2 |
|
|
52
|
+
| `getWorldPoint` | `(x, y, output?)` -- screen to world coords |
|
|
53
|
+
| `ignore` | `(entries)` -- GameObject, array, Group, or Layer |
|
|
54
|
+
| `setBackgroundColor` | `(color?)` |
|
|
55
|
+
| `setAlpha` | `(value?)` |
|
|
56
|
+
| `setVisible` | `(value)` |
|
|
57
|
+
| `setName` | `(value?)` |
|
|
58
|
+
| `setRoundPixels` | `(value)` |
|
|
59
|
+
| `setMask` | `(mask, fixedPosition?)` -- Canvas only |
|
|
60
|
+
| `clearMask` | `(destroyMask?)` |
|
|
61
|
+
| `setForceComposite` | `(value)` -- WebGL only, v4 |
|
|
62
|
+
|
|
63
|
+
### Camera Methods (extends BaseCamera)
|
|
64
|
+
|
|
65
|
+
| Method | Signature |
|
|
66
|
+
|---|---|
|
|
67
|
+
| `startFollow` | `(target, roundPixels?, lerpX?, lerpY?, offsetX?, offsetY?)` |
|
|
68
|
+
| `stopFollow` | `()` |
|
|
69
|
+
| `setLerp` | `(x?, y?)` |
|
|
70
|
+
| `setFollowOffset` | `(x?, y?)` |
|
|
71
|
+
| `setDeadzone` | `(width?, height?)` -- omit args to clear |
|
|
72
|
+
| `fadeIn` | `(duration?, r?, g?, b?, callback?, context?)` |
|
|
73
|
+
| `fadeOut` | `(duration?, r?, g?, b?, callback?, context?)` |
|
|
74
|
+
| `fade` | `(duration?, r?, g?, b?, force?, callback?, context?)` |
|
|
75
|
+
| `fadeFrom` | `(duration?, r?, g?, b?, force?, callback?, context?)` |
|
|
76
|
+
| `flash` | `(duration?, r?, g?, b?, force?, callback?, context?)` |
|
|
77
|
+
| `shake` | `(duration?, intensity?, force?, callback?, context?)` |
|
|
78
|
+
| `pan` | `(x, y, duration?, ease?, force?, callback?, context?)` |
|
|
79
|
+
| `zoomTo` | `(zoom, duration?, ease?, force?, callback?, context?)` |
|
|
80
|
+
| `rotateTo` | `(angle, shortestPath?, duration?, ease?, force?, callback?, context?)` |
|
|
81
|
+
| `resetFX` | `()` |
|
|
82
|
+
|
|
83
|
+
### Effect Handler Properties
|
|
84
|
+
|
|
85
|
+
Each effect is accessible as a property on Camera: `fadeEffect`, `flashEffect`, `shakeEffect`, `panEffect`, `zoomEffect`, `rotateToEffect`. All have `isRunning` (boolean) and `progress` (0..1) properties you can check.
|
|
86
|
+
|
|
87
|
+
## Gotchas
|
|
88
|
+
|
|
89
|
+
1. **`this.cameras` is the CameraManager, not an array.** The array of cameras is `this.cameras.cameras`. The main camera is `this.cameras.main`.
|
|
90
|
+
|
|
91
|
+
2. **Viewport vs Scroll confusion.** `setPosition` / `setViewport` move the camera's rendering rectangle on screen. `setScroll` / `scrollX` / `scrollY` move what the camera is *looking at* in the world. These are independent.
|
|
92
|
+
|
|
93
|
+
3. **Zoom of 0 will break rendering.** `setZoom(0)` is clamped to 0.001 internally, but avoid passing 0.
|
|
94
|
+
|
|
95
|
+
4. **Effects do not restart by default.** Calling `cam.fade()` while a fade is running does nothing unless you pass `force: true`. The same applies to flash, shake, pan, zoomTo, and rotateTo.
|
|
96
|
+
|
|
97
|
+
5. **`startFollow` snaps immediately on first call.** The camera jumps to the target position, then lerps from there. To avoid a visible snap, set scroll to the target position before calling `startFollow`.
|
|
98
|
+
|
|
99
|
+
6. **Ignore list limit of 32 cameras.** Only the first 32 cameras created get unique bitmask IDs for `ignore()`. Camera 33+ gets ID 0 and cannot use Game Object exclusion.
|
|
100
|
+
|
|
101
|
+
7. **`roundPixels` and non-integer zoom.** Setting `roundPixels: true` only works correctly when zoom is an integer. Non-integer zoom with `roundPixels` causes jitter.
|
|
102
|
+
|
|
103
|
+
8. **Camera rotation does not rotate the viewport rectangle.** The viewport is always axis-aligned. Rotation is applied during rendering only.
|
|
104
|
+
|
|
105
|
+
9. **Masks vs Filters in v4.** `setMask` only works with Canvas renderer (GeometryMask). For WebGL, use `cam.filters.external` (FilterList) instead.
|
|
106
|
+
|
|
107
|
+
10. **Keyboard controls require manual `update` call.** Both `FixedKeyControl` and `SmoothedKeyControl` must have their `update(delta)` called in your Scene's `update` method -- they do not auto-update.
|
|
108
|
+
|
|
109
|
+
11. **`pan()` overrides follow.** While a pan effect is running, the follow logic is paused. It resumes after the pan completes.
|
|
110
|
+
|
|
111
|
+
12. **Camera setViewport caveats.** The viewport is limited to an axis-aligned rectangle, cannot be rotated, and filters/masks may render incorrectly with non-default viewports. For mini-cam effects, consider using `RenderTexture` or `DynamicTexture` instead.
|
|
112
|
+
|
|
113
|
+
## Source File Map
|
|
114
|
+
|
|
115
|
+
| File | Description |
|
|
116
|
+
|---|---|
|
|
117
|
+
| `src/cameras/2d/CameraManager.js` | Scene plugin managing all cameras. Access via `this.cameras`. |
|
|
118
|
+
| `src/cameras/2d/BaseCamera.js` | Base class with scroll, zoom, bounds, viewport, ignore, mask, background. |
|
|
119
|
+
| `src/cameras/2d/Camera.js` | Extends BaseCamera. Adds effects (fade, flash, shake, pan, zoomTo, rotateTo), follow, deadzone, filters. |
|
|
120
|
+
| `src/cameras/2d/effects/Fade.js` | Fade effect implementation. |
|
|
121
|
+
| `src/cameras/2d/effects/Flash.js` | Flash effect implementation. |
|
|
122
|
+
| `src/cameras/2d/effects/Shake.js` | Shake effect implementation. |
|
|
123
|
+
| `src/cameras/2d/effects/Pan.js` | Pan effect implementation. |
|
|
124
|
+
| `src/cameras/2d/effects/Zoom.js` | Zoom effect implementation. |
|
|
125
|
+
| `src/cameras/2d/effects/RotateTo.js` | RotateTo effect implementation. |
|
|
126
|
+
| `src/cameras/2d/events/` | Event constant modules (FADE_IN_START, FLASH_COMPLETE, etc.). |
|
|
127
|
+
| `src/cameras/controls/FixedKeyControl.js` | Fixed-speed keyboard camera control. |
|
|
128
|
+
| `src/cameras/controls/SmoothedKeyControl.js` | Smoothed (acceleration/drag) keyboard camera control. |
|