@league-of-foundry-developers/foundry-vtt-types 12.331.3-beta → 12.331.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -18
- package/package.json +91 -32
- package/src/configuration/configuration.d.mts +316 -0
- package/src/configuration/documents.d.mts +295 -0
- package/src/configuration/globals.d.mts +357 -0
- package/src/configuration/index.d.mts +5 -0
- package/src/foundry/client/apps/app.d.mts +129 -122
- package/src/foundry/client/apps/av/av-config.d.mts +12 -7
- package/src/foundry/client/apps/av/cameras.d.mts +12 -7
- package/src/foundry/client/apps/dice/dice-config.d.mts +59 -0
- package/src/foundry/client/apps/dice/index.d.mts +1 -0
- package/src/foundry/client/apps/form.d.mts +114 -86
- package/src/foundry/client/apps/forms/actor.d.mts +21 -11
- package/src/foundry/client/apps/forms/adventure-exporter.d.mts +12 -7
- package/src/foundry/client/apps/forms/adventure-importer.d.mts +14 -6
- package/src/foundry/client/apps/forms/base-sheet.d.mts +16 -8
- package/src/foundry/client/apps/forms/card-config.d.mts +16 -8
- package/src/foundry/client/apps/forms/cards-config.d.mts +15 -14
- package/src/foundry/client/apps/forms/combat-config.d.mts +7 -7
- package/src/foundry/client/apps/forms/combatant-config.d.mts +3 -3
- package/src/foundry/client/apps/forms/default-sheets-config.d.mts +1 -1
- package/src/foundry/client/apps/forms/effect-config.d.mts +7 -7
- package/src/foundry/client/apps/forms/folder-config.d.mts +10 -5
- package/src/foundry/client/apps/forms/fonts.d.mts +42 -35
- package/src/foundry/client/apps/forms/grid-config.d.mts +12 -13
- package/src/foundry/client/apps/forms/image-popout.d.mts +29 -23
- package/src/foundry/client/apps/forms/item.d.mts +9 -9
- package/src/foundry/client/apps/forms/journal-page-sheet.d.mts +16 -14
- package/src/foundry/client/apps/forms/journal-sheet.d.mts +48 -38
- package/src/foundry/client/apps/forms/macro-config.d.mts +7 -7
- package/src/foundry/client/apps/forms/measure-template.d.mts +10 -12
- package/src/foundry/client/apps/forms/ownership.d.mts +5 -5
- package/src/foundry/client/apps/forms/playlist-config.d.mts +8 -10
- package/src/foundry/client/apps/forms/playlist-sound-config.d.mts +7 -7
- package/src/foundry/client/apps/forms/roll-table-config.d.mts +11 -10
- package/src/foundry/client/apps/forms/scene-config.d.mts +40 -41
- package/src/foundry/client/apps/forms/sheet-config.d.mts +9 -21
- package/src/foundry/client/apps/forms/user-config.d.mts +13 -12
- package/src/foundry/client/apps/hud/chatbubble.d.mts +18 -6
- package/src/foundry/client/apps/hud/container.d.mts +4 -4
- package/src/foundry/client/apps/hud/controls.d.mts +126 -81
- package/src/foundry/client/apps/hud/hotbar.d.mts +17 -12
- package/src/foundry/client/apps/hud/hud.d.mts +5 -5
- package/src/foundry/client/apps/hud/menu.d.mts +10 -3
- package/src/foundry/client/apps/hud/navigation.d.mts +14 -9
- package/src/foundry/client/apps/hud/pause.d.mts +9 -4
- package/src/foundry/client/apps/hud/players.d.mts +14 -9
- package/src/foundry/client/apps/i18n.d.mts +31 -27
- package/src/foundry/client/apps/index.d.mts +1 -0
- package/src/foundry/client/apps/placeables/drawing-config.d.mts +41 -33
- package/src/foundry/client/apps/placeables/drawing-hud.d.mts +5 -5
- package/src/foundry/client/apps/placeables/index.d.mts +0 -2
- package/src/foundry/client/apps/placeables/note-config.d.mts +28 -18
- package/src/foundry/client/apps/placeables/tile-config.d.mts +23 -10
- package/src/foundry/client/apps/placeables/tile-hud.d.mts +10 -5
- package/src/foundry/client/apps/placeables/token-config.d.mts +91 -58
- package/src/foundry/client/apps/placeables/token-hud.d.mts +12 -7
- package/src/foundry/client/apps/placeables/wall-config.d.mts +21 -17
- package/src/foundry/client/apps/sidebar/apps/chat-popout.d.mts +5 -5
- package/src/foundry/client/apps/sidebar/apps/client-settings.d.mts +3 -3
- package/src/foundry/client/apps/sidebar/apps/compendium.d.mts +15 -13
- package/src/foundry/client/apps/sidebar/apps/invitation-links.d.mts +3 -3
- package/src/foundry/client/apps/sidebar/apps/keybindings-config.d.mts +3 -2
- package/src/foundry/client/apps/sidebar/apps/module-management.d.mts +6 -6
- package/src/foundry/client/apps/sidebar/apps/permission-config.d.mts +6 -6
- package/src/foundry/client/apps/sidebar/apps/support-details.d.mts +34 -29
- package/src/foundry/client/apps/sidebar/apps/tours-management.d.mts +2 -2
- package/src/foundry/client/apps/sidebar/apps/world-config.d.mts +13 -10
- package/src/foundry/client/apps/sidebar/directory-tab-mixin.d.mts +50 -35
- package/src/foundry/client/apps/sidebar/document-directory.d.mts +52 -38
- package/src/foundry/client/apps/sidebar/package-configuration.d.mts +4 -4
- package/src/foundry/client/apps/sidebar/sidebar-tab.d.mts +3 -3
- package/src/foundry/client/apps/sidebar/sidebar.d.mts +9 -4
- package/src/foundry/client/apps/sidebar/tabs/actors-directory.d.mts +11 -2
- package/src/foundry/client/apps/sidebar/tabs/cards-directory.d.mts +11 -2
- package/src/foundry/client/apps/sidebar/tabs/chat-log.d.mts +39 -27
- package/src/foundry/client/apps/sidebar/tabs/combat-tracker.d.mts +21 -12
- package/src/foundry/client/apps/sidebar/tabs/compendium-directory.d.mts +30 -15
- package/src/foundry/client/apps/sidebar/tabs/items-directory.d.mts +11 -2
- package/src/foundry/client/apps/sidebar/tabs/journal-directory.d.mts +11 -2
- package/src/foundry/client/apps/sidebar/tabs/macros-directory.d.mts +14 -5
- package/src/foundry/client/apps/sidebar/tabs/playlists-directory.d.mts +30 -22
- package/src/foundry/client/apps/sidebar/tabs/roll-table-directory.d.mts +11 -2
- package/src/foundry/client/apps/sidebar/tabs/scenes-directory.d.mts +14 -5
- package/src/foundry/client/apps/sidebar/tabs/settings.d.mts +23 -5
- package/src/foundry/client/apps/templates.d.mts +1 -1
- package/src/foundry/client/av/client.d.mts +1 -1
- package/src/foundry/client/av/clients/simplepeer.d.mts +11 -1
- package/src/foundry/client/av/master.d.mts +2 -2
- package/src/foundry/client/av/settings.d.mts +17 -15
- package/src/foundry/client/config.d.mts +444 -312
- package/src/foundry/client/core/document-index.d.mts +11 -3
- package/src/foundry/client/core/hooks.d.mts +2 -4
- package/src/foundry/client/core/image.d.mts +14 -13
- package/src/foundry/client/core/issues.d.mts +9 -4
- package/src/foundry/client/core/keybindings.d.mts +5 -5
- package/src/foundry/client/core/nue.d.mts +1 -1
- package/src/foundry/client/core/packages.d.mts +400 -62
- package/src/foundry/client/core/settings.d.mts +62 -38
- package/src/foundry/client/core/socket.d.mts +2 -2
- package/src/foundry/client/core/sorting.d.mts +6 -6
- package/src/foundry/client/core/time.d.mts +6 -3
- package/src/foundry/client/core/tooltip.d.mts +2 -2
- package/src/foundry/client/core/tour.d.mts +59 -50
- package/src/foundry/client/core/tours.d.mts +1 -1
- package/src/foundry/client/core/utils.d.mts +33 -10
- package/src/foundry/client/core/video.d.mts +1 -1
- package/src/foundry/client/core/workers.d.mts +24 -17
- package/src/foundry/client/data/abstract/canvas-document.d.mts +22 -28
- package/src/foundry/client/data/abstract/client-document.d.mts +238 -206
- package/src/foundry/client/data/abstract/directory-collection-mixin.d.mts +24 -40
- package/src/foundry/client/data/abstract/document-collection.d.mts +96 -68
- package/src/foundry/client/data/abstract/world-collection.d.mts +53 -54
- package/src/foundry/client/data/collections/actors.d.mts +30 -28
- package/src/foundry/client/data/collections/cards.d.mts +16 -3
- package/src/foundry/client/data/collections/combats.d.mts +18 -5
- package/src/foundry/client/data/collections/compendium-collection.d.mts +84 -101
- package/src/foundry/client/data/collections/compendium-folders.d.mts +6 -6
- package/src/foundry/client/data/collections/compendium-packs.d.mts +5 -5
- package/src/foundry/client/data/collections/fog.d.mts +16 -3
- package/src/foundry/client/data/collections/folder.d.mts +20 -6
- package/src/foundry/client/data/collections/items.d.mts +17 -4
- package/src/foundry/client/data/collections/journal.d.mts +22 -7
- package/src/foundry/client/data/collections/macros.d.mts +21 -19
- package/src/foundry/client/data/collections/messages.d.mts +19 -6
- package/src/foundry/client/data/collections/playlists.d.mts +17 -5
- package/src/foundry/client/data/collections/scenes.d.mts +24 -27
- package/src/foundry/client/data/collections/settings.d.mts +16 -3
- package/src/foundry/client/data/collections/tables.d.mts +18 -5
- package/src/foundry/client/data/collections/users.d.mts +22 -10
- package/src/foundry/client/data/documents/active-effect.d.mts +780 -112
- package/src/foundry/client/data/documents/actor-delta.d.mts +705 -31
- package/src/foundry/client/data/documents/actor.d.mts +806 -98
- package/src/foundry/client/data/documents/adventure.d.mts +522 -59
- package/src/foundry/client/data/documents/ambient-light.d.mts +427 -20
- package/src/foundry/client/data/documents/ambient-sound.d.mts +478 -14
- package/src/foundry/client/data/documents/card.d.mts +598 -44
- package/src/foundry/client/data/documents/cards.d.mts +862 -169
- package/src/foundry/client/data/documents/chat-message.d.mts +668 -77
- package/src/foundry/client/data/documents/combat.d.mts +757 -107
- package/src/foundry/client/data/documents/combatant.d.mts +545 -32
- package/src/foundry/client/data/documents/drawing.d.mts +545 -14
- package/src/foundry/client/data/documents/fog-exploration.d.mts +465 -30
- package/src/foundry/client/data/documents/folder.d.mts +567 -51
- package/src/foundry/client/data/documents/index.d.mts +2 -0
- package/src/foundry/client/data/documents/item.d.mts +691 -24
- package/src/foundry/client/data/documents/journal-entry-page.d.mts +654 -55
- package/src/foundry/client/data/documents/journal-entry.d.mts +631 -35
- package/src/foundry/client/data/documents/macro.d.mts +560 -31
- package/src/foundry/client/data/documents/measured-template.d.mts +484 -15
- package/src/foundry/client/data/documents/note.d.mts +498 -15
- package/src/foundry/client/data/documents/playlist-sound.d.mts +443 -45
- package/src/foundry/client/data/documents/playlist.d.mts +710 -99
- package/src/foundry/client/data/documents/region-behavior.d.mts +516 -0
- package/src/foundry/client/data/documents/region.d.mts +789 -0
- package/src/foundry/client/data/documents/scene.d.mts +1216 -159
- package/src/foundry/client/data/documents/setting.d.mts +406 -23
- package/src/foundry/client/data/documents/table-result.d.mts +488 -14
- package/src/foundry/client/data/documents/table.d.mts +667 -78
- package/src/foundry/client/data/documents/tile.d.mts +505 -14
- package/src/foundry/client/data/documents/token.d.mts +1191 -143
- package/src/foundry/client/data/documents/user.d.mts +613 -57
- package/src/foundry/client/data/documents/wall.d.mts +555 -14
- package/src/foundry/client/game.d.mts +60 -92
- package/src/foundry/client/head.d.mts +9 -9
- package/src/foundry/client/hooks.d.mts +259 -248
- package/src/foundry/client/pixi/board.d.mts +107 -94
- package/src/foundry/client/pixi/core/containers/base-canvas-group.d.mts +97 -25
- package/src/foundry/client/pixi/core/containers/cached-container.d.mts +37 -19
- package/src/foundry/client/pixi/core/containers/full-canvas-container.d.mts +7 -10
- package/src/foundry/client/pixi/core/containers/point-source-mesh.d.mts +25 -15
- package/src/foundry/client/pixi/core/containers/quad-mesh.d.mts +16 -6
- package/src/foundry/client/pixi/core/containers/quadtree.d.mts +113 -54
- package/src/foundry/client/pixi/core/containers/sprite-mesh.d.mts +69 -26
- package/src/foundry/client/pixi/core/containers/unbound-container.d.mts +20 -2
- package/src/foundry/client/pixi/core/interaction/canvas-animation.d.mts +164 -99
- package/src/foundry/client/pixi/core/interaction/control-icon.d.mts +61 -22
- package/src/foundry/client/pixi/core/interaction/mouse-handler.d.mts +120 -53
- package/src/foundry/client/pixi/core/interaction/ping.d.mts +62 -31
- package/src/foundry/client/pixi/core/interaction/pings/chevron.d.mts +23 -10
- package/src/foundry/client/pixi/core/interaction/pings/pulse.d.mts +91 -34
- package/src/foundry/client/pixi/core/interaction/render-flags.d.mts +69 -30
- package/src/foundry/client/pixi/core/interaction/resize-handle.d.mts +35 -5
- package/src/foundry/client/pixi/core/interaction/targets.d.mts +21 -18
- package/src/foundry/client/pixi/core/loader.d.mts +86 -76
- package/src/foundry/client/pixi/core/shapes/limited-angle-polygon.d.mts +42 -17
- package/src/foundry/client/pixi/core/shapes/polygon-mesher.d.mts +92 -64
- package/src/foundry/client/pixi/core/shapes/precise-text.d.mts +28 -10
- package/src/foundry/client/pixi/core/shapes/ray.d.mts +47 -23
- package/src/foundry/client/pixi/core/shapes/source-polygon.d.mts +170 -75
- package/src/foundry/client/pixi/extensions/circle.d.mts +128 -125
- package/src/foundry/client/pixi/extensions/graphics.d.mts +3 -1
- package/src/foundry/client/pixi/extensions/observable-transform.d.mts +5 -4
- package/src/foundry/client/pixi/extensions/polygon.d.mts +154 -134
- package/src/foundry/client/pixi/extensions/rectangle.d.mts +242 -259
- package/src/foundry/client/pixi/groups/effects.d.mts +75 -24
- package/src/foundry/client/pixi/groups/environment.d.mts +68 -19
- package/src/foundry/client/pixi/groups/hidden.d.mts +27 -11
- package/src/foundry/client/pixi/groups/interface.d.mts +62 -38
- package/src/foundry/client/pixi/groups/overlay.d.mts +19 -7
- package/src/foundry/client/pixi/groups/primary.d.mts +66 -44
- package/src/foundry/client/pixi/groups/rendered.d.mts +19 -7
- package/src/foundry/client/pixi/layers/base/canvas-layer.d.mts +11 -15
- package/src/foundry/client/pixi/layers/base/interaction-layer.d.mts +29 -28
- package/src/foundry/client/pixi/layers/base/placeables-layer.d.mts +306 -272
- package/src/foundry/client/pixi/layers/controls/cursor.d.mts +18 -9
- package/src/foundry/client/pixi/layers/controls/door.d.mts +32 -11
- package/src/foundry/client/pixi/layers/controls/layer.d.mts +89 -77
- package/src/foundry/client/pixi/layers/controls/ruler.d.mts +121 -96
- package/src/foundry/client/pixi/layers/effects/background-effects.d.mts +9 -12
- package/src/foundry/client/pixi/layers/effects/coloration-effects.d.mts +9 -10
- package/src/foundry/client/pixi/layers/effects/darkness-effects.d.mts +8 -8
- package/src/foundry/client/pixi/layers/effects/illumination-effects.d.mts +22 -22
- package/src/foundry/client/pixi/layers/effects/visibility.d.mts +106 -86
- package/src/foundry/client/pixi/layers/effects/weather/particles/effect.d.mts +14 -5
- package/src/foundry/client/pixi/layers/effects/weather/particles/leaves.d.mts +31 -2
- package/src/foundry/client/pixi/layers/effects/weather-effects.d.mts +137 -65
- package/src/foundry/client/pixi/layers/grid/highlight.d.mts +14 -4
- package/src/foundry/client/pixi/layers/grid/layer.d.mts +92 -92
- package/src/foundry/client/pixi/layers/grid/mesh.d.mts +37 -16
- package/src/foundry/client/pixi/layers/masks/depth.d.mts +12 -7
- package/src/foundry/client/pixi/layers/masks/occlusion.d.mts +19 -12
- package/src/foundry/client/pixi/layers/masks/vision.d.mts +104 -18
- package/src/foundry/client/pixi/layers/placeables/drawings.d.mts +16 -15
- package/src/foundry/client/pixi/layers/placeables/index.d.mts +1 -0
- package/src/foundry/client/pixi/layers/placeables/lighting.d.mts +12 -14
- package/src/foundry/client/pixi/layers/placeables/notes.d.mts +49 -32
- package/src/foundry/client/pixi/layers/placeables/regions.d.mts +113 -0
- package/src/foundry/client/pixi/layers/placeables/sounds.d.mts +81 -67
- package/src/foundry/client/pixi/layers/placeables/templates.d.mts +11 -15
- package/src/foundry/client/pixi/layers/placeables/tiles.d.mts +30 -21
- package/src/foundry/client/pixi/layers/placeables/tokens.d.mts +66 -52
- package/src/foundry/client/pixi/layers/placeables/walls.d.mts +54 -57
- package/src/foundry/client/pixi/perception/clockwise-sweep.d.mts +62 -27
- package/src/foundry/client/pixi/perception/detection-mode.d.mts +121 -47
- package/src/foundry/client/pixi/perception/fog.d.mts +38 -15
- package/src/foundry/client/pixi/perception/perception-manager.d.mts +136 -136
- package/src/foundry/client/pixi/perception/vision-mode.d.mts +91 -64
- package/src/foundry/client/pixi/perception/weiler-atherton-clipping.d.mts +44 -16
- package/src/foundry/client/pixi/placeable.d.mts +239 -137
- package/src/foundry/client/pixi/placeables/drawing.d.mts +255 -133
- package/src/foundry/client/pixi/placeables/index.d.mts +1 -0
- package/src/foundry/client/pixi/placeables/light.d.mts +193 -64
- package/src/foundry/client/pixi/placeables/note.d.mts +145 -54
- package/src/foundry/client/pixi/placeables/primary-canvas-objects/primary-canvas-object.d.mts +30 -8
- package/src/foundry/client/pixi/placeables/primary-canvas-objects/primary-graphics.d.mts +41 -11
- package/src/foundry/client/pixi/placeables/primary-canvas-objects/primary-occludable-object.d.mts +59 -18
- package/src/foundry/client/pixi/placeables/primary-canvas-objects/primary-sprite-mesh.d.mts +120 -37
- package/src/foundry/client/pixi/placeables/region.d.mts +280 -0
- package/src/foundry/client/pixi/placeables/sound.d.mts +205 -66
- package/src/foundry/client/pixi/placeables/template.d.mts +181 -100
- package/src/foundry/client/pixi/placeables/tile.d.mts +206 -140
- package/src/foundry/client/pixi/placeables/token.d.mts +916 -449
- package/src/foundry/client/pixi/placeables/wall.d.mts +249 -129
- package/src/foundry/client/pixi/webgl/extensions/batch-renderer.d.mts +72 -33
- package/src/foundry/client/pixi/webgl/extensions/batch-shader-generator.d.mts +10 -9
- package/src/foundry/client/pixi/webgl/helpers/{framebugger-snapshot.d.mts → framebuffer-snapshot.d.mts} +10 -9
- package/src/foundry/client/pixi/webgl/helpers/index.d.mts +1 -1
- package/src/foundry/client/pixi/webgl/helpers/smooth-noise.d.mts +38 -23
- package/src/foundry/client/pixi/webgl/helpers/texture-extractor.d.mts +82 -53
- package/src/foundry/client/pixi/webgl/shaders/base-shader-mixin.d.mts +12 -12
- package/src/foundry/client/pixi/webgl/shaders/base-shader.d.mts +45 -28
- package/src/foundry/client/pixi/webgl/shaders/filters/base-filter.d.mts +12 -11
- package/src/foundry/client/pixi/webgl/shaders/filters/base-mask-filter.d.mts +12 -10
- package/src/foundry/client/pixi/webgl/shaders/filters/blur.d.mts +22 -20
- package/src/foundry/client/pixi/webgl/shaders/filters/effects-masking.d.mts +36 -32
- package/src/foundry/client/pixi/webgl/shaders/filters/environment.d.mts +10 -9
- package/src/foundry/client/pixi/webgl/shaders/filters/glow-overlay.d.mts +12 -11
- package/src/foundry/client/pixi/webgl/shaders/filters/invisibility.d.mts +10 -9
- package/src/foundry/client/pixi/webgl/shaders/filters/outline-overlay.d.mts +12 -11
- package/src/foundry/client/pixi/webgl/shaders/filters/transition.d.mts +67 -60
- package/src/foundry/client/pixi/webgl/shaders/filters/visibility.d.mts +24 -17
- package/src/foundry/client/pixi/webgl/shaders/filters/vision-mask-filter.d.mts +13 -10
- package/src/foundry/client/pixi/webgl/shaders/filters/void.d.mts +10 -9
- package/src/foundry/client/pixi/webgl/shaders/filters/weather-occlusion-masks.d.mts +11 -10
- package/src/foundry/client/pixi/webgl/shaders/fragment-channel-mixin.d.mts +20 -14
- package/src/foundry/client/pixi/webgl/shaders/grid/grid.d.mts +12 -11
- package/src/foundry/client/pixi/webgl/shaders/lighting/background-lighting.d.mts +10 -9
- package/src/foundry/client/pixi/webgl/shaders/lighting/base-lighting.d.mts +33 -33
- package/src/foundry/client/pixi/webgl/shaders/lighting/coloration-lighting.d.mts +10 -9
- package/src/foundry/client/pixi/webgl/shaders/lighting/darkness-lighting.d.mts +10 -9
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/bewitching-wave.d.mts +19 -17
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/black-hole.d.mts +10 -9
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/chroma.d.mts +10 -9
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/emanation.d.mts +10 -9
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/energy-field.d.mts +10 -9
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/fairy-light.d.mts +19 -17
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/flame.d.mts +19 -17
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/fog.d.mts +10 -9
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/force-grid.d.mts +10 -8
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/ghost-light.d.mts +19 -17
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/hexa-dome.d.mts +10 -9
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/light-dome.d.mts +10 -9
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/magical-gloom.d.mts +10 -9
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/pulse.d.mts +19 -17
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/radial-rainbow.d.mts +10 -9
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/revolving-light.d.mts +10 -9
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/roiling-mass.d.mts +10 -9
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/siren-light.d.mts +19 -17
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/smoke-patch.d.mts +20 -17
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/star-light.d.mts +10 -9
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/sunburst.d.mts +19 -17
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/swirling-rainbow.d.mts +10 -9
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/torch.d.mts +19 -17
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/vortex.d.mts +19 -17
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/wave.d.mts +19 -17
- package/src/foundry/client/pixi/webgl/shaders/lighting/illumination-lighting.d.mts +10 -9
- package/src/foundry/client/pixi/webgl/shaders/region/adjust-darkness-level.d.mts +71 -29
- package/src/foundry/client/pixi/webgl/shaders/region/base.d.mts +54 -10
- package/src/foundry/client/pixi/webgl/shaders/region/highlight.d.mts +69 -9
- package/src/foundry/client/pixi/webgl/shaders/samplers/base-sampler.d.mts +24 -25
- package/src/foundry/client/pixi/webgl/shaders/samplers/baseline-illumination.d.mts +10 -9
- package/src/foundry/client/pixi/webgl/shaders/samplers/color-adjustment.d.mts +38 -29
- package/src/foundry/client/pixi/webgl/shaders/samplers/depth.d.mts +21 -17
- package/src/foundry/client/pixi/webgl/shaders/samplers/fog-of-war.d.mts +10 -9
- package/src/foundry/client/pixi/webgl/shaders/samplers/occlusion.d.mts +20 -18
- package/src/foundry/client/pixi/webgl/shaders/samplers/primary.d.mts +11 -2
- package/src/foundry/client/pixi/webgl/shaders/samplers/token-ring.d.mts +28 -2
- package/src/foundry/client/pixi/webgl/shaders/vision/background-vision.d.mts +10 -9
- package/src/foundry/client/pixi/webgl/shaders/vision/base-vision.d.mts +11 -9
- package/src/foundry/client/pixi/webgl/shaders/vision/coloration-vision.d.mts +10 -9
- package/src/foundry/client/pixi/webgl/shaders/vision/effects/amplification.d.mts +10 -9
- package/src/foundry/client/pixi/webgl/shaders/vision/effects/wave.d.mts +19 -17
- package/src/foundry/client/pixi/webgl/shaders/vision/illumination-vision.d.mts +10 -9
- package/src/foundry/client/pixi/webgl/shaders/weather/base-weather.d.mts +40 -36
- package/src/foundry/client/pixi/webgl/shaders/weather/effect.d.mts +27 -33
- package/src/foundry/client/pixi/webgl/shaders/weather/fog.d.mts +17 -16
- package/src/foundry/client/pixi/webgl/shaders/weather/rain.d.mts +19 -18
- package/src/foundry/client/pixi/webgl/shaders/weather/snow.d.mts +15 -14
- package/src/foundry/client/pixi/workers/texture-worker.d.mts +33 -53
- package/src/foundry/client/tours/setup-tour.d.mts +15 -10
- package/src/foundry/client/ui/context.d.mts +48 -40
- package/src/foundry/client/ui/dialog.d.mts +137 -126
- package/src/foundry/client/ui/drag.d.mts +1 -1
- package/src/foundry/client/ui/dragdrop.d.mts +34 -28
- package/src/foundry/client/ui/editor.d.mts +29 -21
- package/src/foundry/client/ui/filepicker.d.mts +43 -38
- package/src/foundry/client/ui/filter.d.mts +62 -50
- package/src/foundry/client/ui/forms.d.mts +22 -22
- package/src/foundry/client/ui/notifications.d.mts +10 -3
- package/src/foundry/client/ui/prosemirror.d.mts +15 -7
- package/src/foundry/client/ui/secrets.d.mts +42 -27
- package/src/foundry/client/ui/tabs.d.mts +40 -33
- package/src/foundry/client-esm/applications/_module.d.mts +3 -3
- package/src/foundry/client-esm/applications/_types.d.mts +0 -2
- package/src/foundry/client-esm/applications/api/_module.d.mts +2 -2
- package/src/foundry/client-esm/applications/api/application.d.mts +28 -19
- package/src/foundry/client-esm/applications/api/dialog.d.mts +20 -22
- package/src/foundry/client-esm/applications/api/document-sheet.d.mts +26 -12
- package/src/foundry/client-esm/applications/api/handlebars-application.d.mts +142 -126
- package/src/foundry/client-esm/applications/apps/_module.d.mts +2 -2
- package/src/foundry/client-esm/applications/apps/compendium-art-config.d.mts +10 -10
- package/src/foundry/client-esm/applications/apps/permission-config.d.mts +3 -3
- package/src/foundry/client-esm/applications/dice/_module.d.mts +2 -2
- package/src/foundry/client-esm/applications/dice/roll-resolver.d.mts +14 -2
- package/src/foundry/client-esm/applications/elements/_module.d.mts +2 -2
- package/src/foundry/client-esm/applications/elements/document-tags.d.mts +2 -0
- package/src/foundry/client-esm/applications/elements/file-picker.d.mts +1 -1
- package/src/foundry/client-esm/applications/elements/multi-select.d.mts +15 -5
- package/src/foundry/client-esm/applications/elements/string-tags.d.mts +1 -1
- package/src/foundry/client-esm/applications/forms/fields.d.mts +1 -1
- package/src/foundry/client-esm/applications/sheets/_module.d.mts +2 -2
- package/src/foundry/client-esm/applications/sheets/actor-sheet.d.mts +3 -3
- package/src/foundry/client-esm/applications/sheets/ambient-light-config.d.mts +10 -8
- package/src/foundry/client-esm/applications/sheets/ambient-sound-config.d.mts +9 -7
- package/src/foundry/client-esm/applications/sheets/item-sheet.d.mts +3 -3
- package/src/foundry/client-esm/applications/sheets/region-behavior-config.d.mts +30 -5
- package/src/foundry/client-esm/applications/sheets/region-config.d.mts +36 -5
- package/src/foundry/client-esm/applications/sheets/user-config.d.mts +8 -7
- package/src/foundry/client-esm/applications/ui/_module.d.mts +2 -2
- package/src/foundry/client-esm/applications/ui/region-legend.d.mts +45 -3
- package/src/foundry/client-esm/audio/_module.d.mts +2 -3
- package/src/foundry/client-esm/audio/_types.d.mts +2 -0
- package/src/foundry/client-esm/audio/biquad.d.mts +76 -26
- package/src/foundry/client-esm/audio/cache.d.mts +31 -20
- package/src/foundry/client-esm/audio/convolver.d.mts +47 -25
- package/src/foundry/client-esm/audio/helper.d.mts +124 -80
- package/src/foundry/client-esm/audio/sound.d.mts +230 -126
- package/src/foundry/client-esm/audio/timeout.d.mts +28 -12
- package/src/foundry/client-esm/canvas/_module.d.mts +2 -2
- package/src/foundry/client-esm/canvas/edges/_module.d.mts +2 -2
- package/src/foundry/client-esm/canvas/edges/collision.d.mts +69 -18
- package/src/foundry/client-esm/canvas/edges/edge.d.mts +110 -41
- package/src/foundry/client-esm/canvas/edges/edges.d.mts +10 -0
- package/src/foundry/client-esm/canvas/edges/vertex.d.mts +56 -26
- package/src/foundry/client-esm/canvas/regions/_module.d.mts +6 -11
- package/src/foundry/client-esm/canvas/regions/geometry.d.mts +38 -0
- package/src/foundry/client-esm/canvas/regions/mesh.d.mts +72 -0
- package/src/foundry/client-esm/canvas/regions/polygon-tree.d.mts +130 -0
- package/src/foundry/client-esm/canvas/regions/shape.d.mts +129 -0
- package/src/foundry/client-esm/canvas/scene-manager.d.mts +13 -3
- package/src/foundry/client-esm/canvas/smaa/blend.d.mts +14 -3
- package/src/foundry/client-esm/canvas/smaa/edges.d.mts +25 -3
- package/src/foundry/client-esm/canvas/smaa/smaa.d.mts +121 -23
- package/src/foundry/client-esm/canvas/smaa/weights.d.mts +26 -3
- package/src/foundry/client-esm/canvas/sources/_module.d.mts +2 -2
- package/src/foundry/client-esm/canvas/sources/base-effect-source.d.mts +84 -40
- package/src/foundry/client-esm/canvas/sources/base-light-source.d.mts +103 -39
- package/src/foundry/client-esm/canvas/sources/global-light-source.d.mts +89 -15
- package/src/foundry/client-esm/canvas/sources/point-darkness-source.d.mts +71 -27
- package/src/foundry/client-esm/canvas/sources/point-effect-source.d.mts +49 -20
- package/src/foundry/client-esm/canvas/sources/point-light-source.d.mts +57 -16
- package/src/foundry/client-esm/canvas/sources/point-movement-source.d.mts +31 -4
- package/src/foundry/client-esm/canvas/sources/point-sound-source.d.mts +45 -12
- package/src/foundry/client-esm/canvas/sources/point-vision-source.d.mts +98 -52
- package/src/foundry/client-esm/canvas/sources/rendered-effect-source.d.mts +180 -69
- package/src/foundry/client-esm/canvas/tokens/_module.d.mts +2 -3
- package/src/foundry/client-esm/canvas/tokens/ring-config.d.mts +175 -2
- package/src/foundry/client-esm/canvas/tokens/ring-data.d.mts +142 -2
- package/src/foundry/client-esm/canvas/tokens/ring.d.mts +284 -2
- package/src/foundry/client-esm/client.d.mts +47 -54
- package/src/foundry/client-esm/data/_module.d.mts +2 -2
- package/src/foundry/client-esm/data/client-backend.d.mts +22 -23
- package/src/foundry/client-esm/data/region-behaviors/_module.d.mts +11 -14
- package/src/foundry/client-esm/data/region-behaviors/adjust-darkness-level.d.mts +56 -0
- package/src/foundry/client-esm/data/region-behaviors/base.d.mts +59 -0
- package/src/foundry/client-esm/data/region-behaviors/display-scrolling-text.d.mts +64 -0
- package/src/foundry/client-esm/data/region-behaviors/execute-macro.d.mts +27 -0
- package/src/foundry/client-esm/data/region-behaviors/execute-script.d.mts +23 -0
- package/src/foundry/client-esm/data/region-behaviors/pause-game.d.mts +23 -0
- package/src/foundry/client-esm/data/region-behaviors/suppress-weather.d.mts +17 -0
- package/src/foundry/client-esm/data/region-behaviors/teleport-token.d.mts +32 -0
- package/src/foundry/client-esm/data/region-behaviors/toggle-behavior.d.mts +31 -0
- package/src/foundry/client-esm/dice/_module.d.mts +2 -3
- package/src/foundry/client-esm/dice/parser.d.mts +11 -25
- package/src/foundry/client-esm/dice/roll.d.mts +112 -89
- package/src/foundry/client-esm/dice/terms/_module.d.mts +2 -3
- package/src/foundry/client-esm/dice/terms/coin.d.mts +8 -5
- package/src/foundry/client-esm/dice/terms/dice.d.mts +93 -63
- package/src/foundry/client-esm/dice/terms/die.d.mts +11 -4
- package/src/foundry/client-esm/dice/terms/fate.d.mts +9 -2
- package/src/foundry/client-esm/dice/terms/function.d.mts +18 -18
- package/src/foundry/client-esm/dice/terms/numeric.d.mts +3 -5
- package/src/foundry/client-esm/dice/terms/operator.d.mts +2 -2
- package/src/foundry/client-esm/dice/terms/parenthetical.d.mts +9 -10
- package/src/foundry/client-esm/dice/terms/pool.d.mts +25 -31
- package/src/foundry/client-esm/dice/terms/string.d.mts +4 -4
- package/src/foundry/client-esm/dice/terms/term.d.mts +18 -4
- package/src/foundry/client-esm/dice/twister.d.mts +3 -3
- package/src/foundry/client-esm/helpers/_module.d.mts +2 -2
- package/src/foundry/client-esm/helpers/_types.d.mts +12 -46
- package/src/foundry/client-esm/helpers/compendium-art.d.mts +56 -4
- package/src/foundry/common/abstract/_types.d.mts +60 -54
- package/src/foundry/common/abstract/backend.d.mts +51 -45
- package/src/foundry/common/abstract/data.d.mts +265 -236
- package/src/foundry/common/abstract/document.d.mts +1449 -464
- package/src/foundry/common/abstract/embedded-collection-delta.d.mts +1 -1
- package/src/foundry/common/abstract/embedded-collection.d.mts +37 -7
- package/src/foundry/common/abstract/module.d.mts +3 -2
- package/src/foundry/common/abstract/singleton-collection.d.mts +1 -1
- package/src/foundry/common/abstract/socket.d.mts +1 -1
- package/src/foundry/common/abstract/type-data.d.mts +61 -55
- package/src/foundry/common/config.d.mts +11 -3
- package/src/foundry/common/constants.d.mts +261 -231
- package/src/foundry/common/data/data.d.mts +238 -102
- package/src/foundry/common/data/fields.d.mts +1334 -874
- package/src/foundry/common/data/module.d.mts +2 -2
- package/src/foundry/common/data/validation-failure.d.mts +12 -9
- package/src/foundry/common/documents/_module.d.mts +4 -2
- package/src/foundry/common/documents/_types.d.mts +22 -56
- package/src/foundry/common/documents/active-effect.d.mts +358 -194
- package/src/foundry/common/documents/actor-delta.d.mts +403 -73
- package/src/foundry/common/documents/actor.d.mts +359 -117
- package/src/foundry/common/documents/adventure.d.mts +312 -142
- package/src/foundry/common/documents/ambient-light.d.mts +296 -75
- package/src/foundry/common/documents/ambient-sound.d.mts +296 -109
- package/src/foundry/common/documents/card.d.mts +321 -187
- package/src/foundry/common/documents/cards.d.mts +353 -125
- package/src/foundry/common/documents/chat-message.d.mts +338 -167
- package/src/foundry/common/documents/combat.d.mts +358 -94
- package/src/foundry/common/documents/combatant.d.mts +323 -92
- package/src/foundry/common/documents/drawing.d.mts +327 -206
- package/src/foundry/common/documents/fog-exploration.d.mts +303 -69
- package/src/foundry/common/documents/folder.d.mts +307 -82
- package/src/foundry/common/documents/item.d.mts +377 -100
- package/src/foundry/common/documents/journal-entry-page.d.mts +327 -187
- package/src/foundry/common/documents/journal-entry.d.mts +345 -68
- package/src/foundry/common/documents/macro.d.mts +325 -139
- package/src/foundry/common/documents/measured-template.d.mts +328 -138
- package/src/foundry/common/documents/note.d.mts +312 -151
- package/src/foundry/common/documents/playlist-sound.d.mts +309 -102
- package/src/foundry/common/documents/playlist.d.mts +341 -131
- package/src/foundry/common/documents/region-behavior.d.mts +360 -0
- package/src/foundry/common/documents/region.d.mts +355 -0
- package/src/foundry/common/documents/roll-table.d.mts +320 -102
- package/src/foundry/common/documents/scene.d.mts +437 -350
- package/src/foundry/common/documents/setting.d.mts +285 -54
- package/src/foundry/common/documents/table-result.d.mts +326 -103
- package/src/foundry/common/documents/tile.d.mts +337 -172
- package/src/foundry/common/documents/token.d.mts +396 -447
- package/src/foundry/common/documents/user.d.mts +296 -173
- package/src/foundry/common/documents/wall.d.mts +303 -156
- package/src/foundry/common/grid/_module.d.mts +3 -3
- package/src/foundry/common/grid/base.d.mts +66 -49
- package/src/foundry/common/grid/gridless.d.mts +2 -2
- package/src/foundry/common/grid/hexagonal.d.mts +35 -28
- package/src/foundry/common/grid/square.d.mts +3 -3
- package/src/foundry/common/packages/base-module.d.mts +6 -24
- package/src/foundry/common/packages/base-package.d.mts +56 -31
- package/src/foundry/common/packages/base-system.d.mts +45 -63
- package/src/foundry/common/packages/base-world.d.mts +15 -61
- package/src/foundry/common/packages/module.d.mts +7 -7
- package/src/foundry/common/packages/sub-types.d.mts +4 -6
- package/src/foundry/common/primitives/array.d.mts +4 -4
- package/src/foundry/common/primitives/math.d.mts +7 -1
- package/src/foundry/common/primitives/number.d.mts +2 -2
- package/src/foundry/common/primitives/set.d.mts +17 -14
- package/src/foundry/common/primitives/string.d.mts +1 -1
- package/src/foundry/common/prosemirror/_module.d.mts +15 -15
- package/src/foundry/common/prosemirror/dirty-plugin.d.mts +1 -1
- package/src/foundry/common/prosemirror/dom-parser.d.mts +2 -1
- package/src/foundry/common/prosemirror/dropdown.d.mts +1 -1
- package/src/foundry/common/prosemirror/highlight-matches-plugin.d.mts +2 -2
- package/src/foundry/common/prosemirror/image-plugin.d.mts +1 -1
- package/src/foundry/common/prosemirror/menu.d.mts +3 -3
- package/src/foundry/common/prosemirror/paste-transformer.d.mts +1 -1
- package/src/foundry/common/prosemirror/plugin.d.mts +2 -2
- package/src/foundry/common/prosemirror/schema/index.d.mts +0 -1
- package/src/foundry/common/prosemirror/schema/lists.d.mts +2 -0
- package/src/foundry/common/prosemirror/util.d.mts +1 -1
- package/src/foundry/common/types.d.mts +3 -3
- package/src/foundry/common/utils/bitmask.d.mts +23 -11
- package/src/foundry/common/utils/collection.d.mts +61 -38
- package/src/foundry/common/utils/color.d.mts +20 -2
- package/src/foundry/common/utils/event-emitter.d.mts +32 -17
- package/src/foundry/common/utils/helpers.d.mts +36 -26
- package/src/foundry/common/utils/http.d.mts +2 -2
- package/src/foundry/common/utils/module.d.mts +2 -2
- package/src/foundry/common/utils/string-tree.d.mts +45 -39
- package/src/foundry/common/utils/word-tree.d.mts +10 -23
- package/src/foundry/index.d.mts +0 -1
- package/src/foundry/{clipper → public/scripts/clipper}/clipper.d.mts +58 -16
- package/src/foundry/public/scripts/index.d.mts +1 -0
- package/src/foundry/public/scripts/workers/image-compressor.d.mts +23 -0
- package/src/foundry/public/scripts/workers/index.d.mts +1 -0
- package/{index-lenient.d.mts → src/index-lenient.d.mts} +2 -0
- package/src/index.d.mts +6 -0
- package/src/tsconfig.json +15 -0
- package/src/types/augments/particles.d.mts +29 -0
- package/src/types/augments/pixi.d.mts +1024 -21
- package/src/types/augments/smooth.d.mts +31 -0
- package/src/types/augments/tinyMCE.d.mts +1 -1
- package/src/types/config.d.mts +18 -313
- package/src/types/documentConfiguration.d.mts +286 -542
- package/src/types/index.d.mts +1 -1
- package/src/types/lib.d.mts +12 -0
- package/src/types/workers/image-compressor.d.mts +176 -0
- package/src/utils/index.d.mts +1279 -0
- package/tsconfig.json +29 -0
- package/tsconfig.main.json +8 -0
- package/tsconfig.miscellaneous.json +16 -0
- package/index.d.mts +0 -5
- package/src/foundry/client/apps/placeables/light-config.d.mts +0 -100
- package/src/foundry/client/apps/placeables/sound-config.d.mts +0 -43
- package/src/foundry/common/documents/module.d.mts +0 -35
- package/src/foundry/common/primitives/regex.d.mts +0 -12
- package/src/types/helperTypes.d.mts +0 -583
- package/src/types/utils.d.mts +0 -539
- /package/src/foundry/{clipper → public/scripts/clipper}/index.d.mts +0 -0
@@ -1,6 +1,14 @@
|
|
1
|
+
import type { Brand, Identity } from "#utils";
|
1
2
|
import * as _PIXI from "pixi.js";
|
2
|
-
|
3
|
-
|
3
|
+
|
4
|
+
// Note(LukeAbby): The `smooth.d.mts` and `smooth.d.mts` files exist to make it DRY to selectively tweak PIXI sub-namespaces.
|
5
|
+
// Each of them write `export * from "..."` and then selectively shadow or augment the exports.
|
6
|
+
|
7
|
+
// eslint-disable-next-line import-x/extensions
|
8
|
+
import * as _smooth from "./smooth.mjs";
|
9
|
+
|
10
|
+
// eslint-disable-next-line import-x/extensions
|
11
|
+
import * as _particles from "./particles.mjs";
|
4
12
|
|
5
13
|
export * from "pixi.js";
|
6
14
|
|
@@ -11,89 +19,1084 @@ export as namespace PIXI;
|
|
11
19
|
|
12
20
|
declare global {
|
13
21
|
namespace PIXI {
|
14
|
-
|
15
|
-
|
22
|
+
type ALPHA_MODES = Brand<number, "PIXI.ALPHA_MODES">;
|
23
|
+
|
24
|
+
/** How to treat textures with premultiplied alpha */
|
25
|
+
const ALPHA_MODES: {
|
26
|
+
/** Alias for NO_PREMULTIPLIED_ALPHA. */
|
27
|
+
NPM: 0 & ALPHA_MODES;
|
28
|
+
|
29
|
+
/** Default option, alias for PREMULTIPLY_ON_UPLOAD. */
|
30
|
+
UNPACK: 1 & ALPHA_MODES;
|
31
|
+
|
32
|
+
/** Alias for PREMULTIPLIED_ALPHA. */
|
33
|
+
PMA: 2 & ALPHA_MODES;
|
34
|
+
|
35
|
+
/**
|
36
|
+
* Source is not premultiplied, leave it like that.
|
37
|
+
* Option for compressed and data textures that are created from typed arrays.
|
38
|
+
*/
|
39
|
+
NO_PREMULTIPLIED_ALPHA: 0 & ALPHA_MODES;
|
40
|
+
|
41
|
+
/**
|
42
|
+
* Source is not premultiplied, premultiply on upload.
|
43
|
+
* Default option, used for all loaded images.
|
44
|
+
*/
|
45
|
+
PREMULTIPLY_ON_UPLOAD: 1 & ALPHA_MODES;
|
46
|
+
|
47
|
+
/** Source is already premultiplied. Example: spine atlases with `_pma` suffix. */
|
48
|
+
PREMULTIPLIED_ALPHA: 2 & ALPHA_MODES;
|
49
|
+
};
|
50
|
+
|
51
|
+
type BLEND_MODES = Brand<number, "PIXI.BLEND_MODES">;
|
52
|
+
|
53
|
+
/**
|
54
|
+
* Various blend modes supported by PIXI.
|
55
|
+
*
|
56
|
+
* IMPORTANT - The WebGL renderer only supports the NORMAL, ADD, MULTIPLY and SCREEN blend modes.
|
57
|
+
* Anything else will silently act like NORMAL.
|
58
|
+
* @remarks Includes Foundry's extra keys `MAX_COLOR`, `MIN_COLOR`, and `MIN_ALL`
|
59
|
+
*/
|
60
|
+
const BLEND_MODES: {
|
61
|
+
NORMAL: 0 & BLEND_MODES;
|
62
|
+
ADD: 1 & BLEND_MODES;
|
63
|
+
|
64
|
+
/**
|
65
|
+
* The pixels of the top layer are multiplied with the corresponding pixel of the bottom layer.
|
66
|
+
* A darker picture is the result.
|
67
|
+
*/
|
68
|
+
MULTIPLY: 2 & BLEND_MODES;
|
69
|
+
|
70
|
+
/** The pixels are inverted, multiplied, and inverted again. A lighter picture is the result (opposite of multiply) */
|
71
|
+
SCREEN: 3 & BLEND_MODES;
|
72
|
+
|
73
|
+
/**
|
74
|
+
* A combination of multiply and screen. Dark parts on the base layer become darker, and light parts become lighter.
|
75
|
+
*
|
76
|
+
* Canvas Renderer only.
|
77
|
+
*/
|
78
|
+
OVERLAY: 4 & BLEND_MODES;
|
79
|
+
|
80
|
+
/**
|
81
|
+
* Retains the darkest pixels of both layers.
|
82
|
+
*
|
83
|
+
* Canvas Renderer only.
|
84
|
+
*/
|
85
|
+
DARKEN: 5 & BLEND_MODES;
|
86
|
+
|
87
|
+
/**
|
88
|
+
* Retains the lightest pixels of both layers.
|
89
|
+
*
|
90
|
+
* Canvas Renderer only.
|
91
|
+
*/
|
92
|
+
LIGHTEN: 6 & BLEND_MODES;
|
93
|
+
|
94
|
+
/**
|
95
|
+
* Divides the bottom layer by the inverted top layer.
|
96
|
+
*
|
97
|
+
* Canvas Renderer only.
|
98
|
+
*/
|
99
|
+
COLOR_DODGE: 7 & BLEND_MODES;
|
100
|
+
|
101
|
+
/**
|
102
|
+
* Divides the inverted bottom layer by the top layer, and then inverts the result.
|
103
|
+
*
|
104
|
+
* Canvas Renderer only.
|
105
|
+
*/
|
106
|
+
COLOR_BURN: 8 & BLEND_MODES;
|
107
|
+
|
108
|
+
/**
|
109
|
+
* A combination of multiply and screen like overlay, but with top and bottom layer swapped.
|
110
|
+
*
|
111
|
+
* Canvas Renderer only.
|
112
|
+
*/
|
113
|
+
HARD_LIGHT: 9 & BLEND_MODES;
|
114
|
+
|
115
|
+
/**
|
116
|
+
* A softer version of hard-light. Pure black or white does not result in pure black or white.
|
117
|
+
*
|
118
|
+
* Canvas Renderer only.
|
119
|
+
*/
|
120
|
+
SOFT_LIGHT: 10 & BLEND_MODES;
|
121
|
+
|
122
|
+
/**
|
123
|
+
* Subtracts the bottom layer from the top layer or the other way round to always get a positive value.
|
124
|
+
*
|
125
|
+
* Canvas Renderer only.
|
126
|
+
*/
|
127
|
+
DIFFERENCE: 11 & BLEND_MODES;
|
128
|
+
|
129
|
+
/**
|
130
|
+
* Like difference, but with lower contrast.
|
131
|
+
*
|
132
|
+
* Canvas Renderer only.
|
133
|
+
*/
|
134
|
+
EXCLUSION: 12 & BLEND_MODES;
|
135
|
+
|
136
|
+
/**
|
137
|
+
* Preserves the luma and chroma of the bottom layer, while adopting the hue of the top layer.
|
138
|
+
*
|
139
|
+
* Canvas Renderer only.
|
140
|
+
*/
|
141
|
+
HUE: 13 & BLEND_MODES;
|
142
|
+
|
143
|
+
/**
|
144
|
+
* Preserves the luma and hue of the bottom layer, while adopting the chroma of the top layer.
|
145
|
+
*
|
146
|
+
* Canvas Renderer only.
|
147
|
+
*/
|
148
|
+
SATURATION: 14 & BLEND_MODES;
|
149
|
+
|
150
|
+
/**
|
151
|
+
* Preserves the luma of the bottom layer, while adopting the hue and chroma of the top layer.
|
152
|
+
*
|
153
|
+
* Canvas Renderer only.
|
154
|
+
*/
|
155
|
+
COLOR: 15 & BLEND_MODES;
|
156
|
+
|
157
|
+
/**
|
158
|
+
* Preserves the hue and chroma of the bottom layer, while adopting the luma of the top layer.
|
159
|
+
*
|
160
|
+
* Canvas Renderer only.
|
161
|
+
*/
|
162
|
+
LUMINOSITY: 16 & BLEND_MODES;
|
163
|
+
|
164
|
+
NORMAL_NPM: 17 & BLEND_MODES;
|
165
|
+
ADD_NPM: 18 & BLEND_MODES;
|
166
|
+
SCREEN_NPM: 19 & BLEND_MODES;
|
167
|
+
NONE: 20 & BLEND_MODES;
|
168
|
+
|
169
|
+
/** Draws new shapes on top of the existing canvas content. */
|
170
|
+
SRC_OVER: 0 & BLEND_MODES;
|
171
|
+
|
172
|
+
/**
|
173
|
+
* The new shape is drawn only where both the new shape and the destination canvas overlap.
|
174
|
+
* Everything else is made transparent.
|
175
|
+
*/
|
176
|
+
SRC_IN: 21 & BLEND_MODES;
|
177
|
+
|
178
|
+
/** The new shape is drawn where it doesn't overlap the existing canvas content. */
|
179
|
+
SRC_OUT: 22 & BLEND_MODES;
|
180
|
+
|
181
|
+
/** The new shape is only drawn where it overlaps the existing canvas content. */
|
182
|
+
SRC_ATOP: 23 & BLEND_MODES;
|
183
|
+
|
184
|
+
/** New shapes are drawn behind the existing canvas content. */
|
185
|
+
DST_OVER: 24 & BLEND_MODES;
|
186
|
+
|
187
|
+
/**
|
188
|
+
* The existing canvas content is kept where both the new shape and existing canvas content overlap.
|
189
|
+
* Everything else is made transparent.
|
190
|
+
*/
|
191
|
+
DST_IN: 25 & BLEND_MODES;
|
192
|
+
|
193
|
+
/** The existing content is kept where it doesn't overlap the new shape. */
|
194
|
+
DST_OUT: 26 & BLEND_MODES;
|
195
|
+
|
196
|
+
/** The existing canvas is only kept where it overlaps the new shape. The new shape is drawn behind the canvas content. */
|
197
|
+
DST_ATOP: 27 & BLEND_MODES;
|
198
|
+
|
199
|
+
ERASE: 26 & BLEND_MODES;
|
200
|
+
SUBTRACT: 28 & BLEND_MODES;
|
201
|
+
|
202
|
+
/** Shapes are made transparent where both overlap and drawn normal everywhere else. */
|
203
|
+
XOR: 29 & BLEND_MODES;
|
204
|
+
|
205
|
+
/**
|
206
|
+
* A custom blend mode equation which chooses the maximum color from each channel within the stack.
|
207
|
+
* @remarks Foundry addition
|
208
|
+
*/
|
209
|
+
MAX_COLOR: 30 & BLEND_MODES;
|
210
|
+
|
211
|
+
/**
|
212
|
+
* A custom blend mode equation which chooses the minimum color from each channel within the stack.
|
213
|
+
* @remarks Foundry addition
|
214
|
+
*/
|
215
|
+
MIN_COLOR: 31 & BLEND_MODES;
|
216
|
+
|
217
|
+
/**
|
218
|
+
* A custom blend mode equation which chooses the minimum color for color channels and min alpha from alpha channel.
|
219
|
+
* @remarks Foundry addition
|
220
|
+
*/
|
221
|
+
MIN_ALL: 32 & BLEND_MODES;
|
222
|
+
};
|
223
|
+
|
224
|
+
type BUFFER_BITS = Brand<number, "PIXI.BUFFER_BITS">;
|
225
|
+
|
226
|
+
/** Bitwise OR of masks that indicate the buffers to be cleared. */
|
227
|
+
const BUFFER_BITS: {
|
228
|
+
/**
|
229
|
+
* Indicates the buffers currently enabled for color writing.
|
230
|
+
* @defaultValue `0x4000`
|
231
|
+
*/
|
232
|
+
COLOR: 16384 & PIXI.BUFFER_BITS;
|
233
|
+
|
234
|
+
/**
|
235
|
+
* Indicates the depth buffer.
|
236
|
+
* @defaultValue `0x100`
|
237
|
+
*/
|
238
|
+
DEPTH: 256 & PIXI.BUFFER_BITS;
|
239
|
+
|
240
|
+
/**
|
241
|
+
* Indicates the stencil buffer.
|
242
|
+
* @defaultValue `0x400`
|
243
|
+
*/
|
244
|
+
STENCIL: 1024 & PIXI.BUFFER_BITS;
|
245
|
+
};
|
246
|
+
|
247
|
+
type BUFFER_TYPE = Brand<number, "PIXI.BUFFER_TYPE">;
|
248
|
+
|
249
|
+
/** Constants for various buffer types in Pixi */
|
250
|
+
const BUFFER_TYPE: {
|
251
|
+
/**
|
252
|
+
* buffer type for using as an index buffer
|
253
|
+
* @defaultValue `0x8893`
|
254
|
+
*/
|
255
|
+
ELEMENT_ARRAY_BUFFER: 34963 & BUFFER_TYPE;
|
256
|
+
|
257
|
+
/**
|
258
|
+
* buffer type for using attribute data
|
259
|
+
* @defaultValue `0x8892`
|
260
|
+
*/
|
261
|
+
ARRAY_BUFFER: 34962 & BUFFER_TYPE;
|
262
|
+
|
263
|
+
/**
|
264
|
+
* the buffer type is for uniform buffer objects
|
265
|
+
* @defaultValue `0x8A11`
|
266
|
+
*/
|
267
|
+
UNIFORM_BUFFER: 35345 & BUFFER_TYPE;
|
268
|
+
};
|
269
|
+
|
270
|
+
type CLEAR_MODES = Brand<number, "PIXI.CLEAR_MODES">;
|
271
|
+
|
272
|
+
/**
|
273
|
+
* Configure whether filter textures are cleared after binding.
|
274
|
+
*
|
275
|
+
* Filter textures need not be cleared if the filter does not use pixel blending. {@link PIXI.CLEAR_MODES.BLIT | `PIXI.CLEAR_MODES.BLIT`} will detect
|
276
|
+
* this and skip clearing as an optimization.
|
277
|
+
*/
|
278
|
+
const CLEAR_MODES: {
|
279
|
+
/** Alias for BLEND, same as `false` in earlier versions */
|
280
|
+
NO: 0 & CLEAR_MODES;
|
281
|
+
|
282
|
+
/** Alias for CLEAR, same as `true` in earlier versions */
|
283
|
+
YES: 1 & CLEAR_MODES;
|
284
|
+
|
285
|
+
/** Alias for BLIT */
|
286
|
+
AUTO: 2 & CLEAR_MODES;
|
287
|
+
|
288
|
+
/** Do not clear the filter texture. The filter's output will blend on top of the output texture. */
|
289
|
+
BLEND: 0 & CLEAR_MODES;
|
290
|
+
|
291
|
+
/** Always clear the filter texture. */
|
292
|
+
CLEAR: 1 & CLEAR_MODES;
|
293
|
+
|
294
|
+
/** Clear only if {@link PIXI.FilterSystem.forceClear | `PIXI.FilterSystem.forceClear`} is set or if the filter uses pixel blending. */
|
295
|
+
BLIT: 2 & CLEAR_MODES;
|
296
|
+
};
|
297
|
+
|
298
|
+
type COLOR_MASK_BITS = Brand<number, "PIXI.COLOR_MASK_BITS">;
|
299
|
+
|
300
|
+
/** Bitwise OR of masks that indicate the color channels that are rendered to. */
|
301
|
+
const COLOR_MASK_BITS: {
|
302
|
+
/** Red channel. */
|
303
|
+
RED: 1 & COLOR_MASK_BITS;
|
304
|
+
|
305
|
+
/** Green channel */
|
306
|
+
GREEN: 2 & COLOR_MASK_BITS;
|
307
|
+
|
308
|
+
/** Blue channel. */
|
309
|
+
BLUE: 4 & COLOR_MASK_BITS;
|
310
|
+
|
311
|
+
/** Alpha channel. */
|
312
|
+
ALPHA: 8 & COLOR_MASK_BITS;
|
313
|
+
};
|
314
|
+
|
315
|
+
type DRAW_MODES = Brand<number, "PIXI.DRAW_MODES">;
|
316
|
+
|
317
|
+
/**
|
318
|
+
* Various webgl draw modes. These can be used to specify which GL drawMode to use
|
319
|
+
* under certain situations and renderers.
|
320
|
+
*/
|
321
|
+
const DRAW_MODES: {
|
322
|
+
/** To draw a series of points. */
|
323
|
+
POINTS: 0 & DRAW_MODES;
|
324
|
+
|
325
|
+
/** To draw a series of unconnected line segments (individual lines). */
|
326
|
+
LINES: 1 & DRAW_MODES;
|
327
|
+
|
328
|
+
/** To draw a series of connected line segments. It also joins the first and last vertices to form a loop. */
|
329
|
+
LINE_LOOP: 2 & DRAW_MODES;
|
330
|
+
|
331
|
+
/** To draw a series of connected line segments. */
|
332
|
+
LINE_STRIP: 3 & DRAW_MODES;
|
333
|
+
|
334
|
+
/** To draw a series of separate triangles. */
|
335
|
+
TRIANGLES: 4 & DRAW_MODES;
|
336
|
+
|
337
|
+
/** To draw a series of connected triangles in strip fashion. */
|
338
|
+
TRIANGLE_STRIP: 5 & DRAW_MODES;
|
339
|
+
|
340
|
+
/** To draw a series of connected triangles sharing the first vertex in a fan-like fashion. */
|
341
|
+
TRIANGLE_FAN: 6 & DRAW_MODES;
|
342
|
+
};
|
343
|
+
|
344
|
+
type ENV = Brand<number, "PIXI.ENV">;
|
345
|
+
|
346
|
+
/** Different types of environments for WebGL. */
|
347
|
+
const ENV: {
|
348
|
+
/**
|
349
|
+
* Used for older v1 WebGL devices. PixiJS will aim to ensure compatibility
|
350
|
+
* with older / less advanced devices. If you experience unexplained flickering prefer this environment.
|
351
|
+
*/
|
352
|
+
WEBGL_LEGACY: 0 & ENV;
|
353
|
+
|
354
|
+
/** Version 1 of WebGL */
|
355
|
+
WEBGL: 1 & ENV;
|
356
|
+
|
357
|
+
/** Version 2 of WebGL */
|
358
|
+
WEBGL2: 2 & ENV;
|
359
|
+
};
|
360
|
+
|
361
|
+
type ExtensionType = Brand<string, "PIXI.ExtensionType">;
|
362
|
+
|
363
|
+
/** Collection of valid extension types. */
|
364
|
+
const ExtensionType: {
|
365
|
+
Renderer: "renderer" & ExtensionType;
|
366
|
+
|
367
|
+
/** Application plugins */
|
368
|
+
Application: "application" & ExtensionType;
|
369
|
+
|
370
|
+
RendererSystem: "renderer-webgl-system" & ExtensionType;
|
371
|
+
|
372
|
+
/** Plugins for Renderer */
|
373
|
+
RendererPlugin: "renderer-webgl-plugin" & ExtensionType;
|
374
|
+
|
375
|
+
CanvasRendererSystem: "renderer-canvas-system" & ExtensionType;
|
376
|
+
|
377
|
+
/** Plugins for CanvasRenderer */
|
378
|
+
CanvasRendererPlugin: "renderer-canvas-plugin" & ExtensionType;
|
379
|
+
|
380
|
+
Asset: "asset" & ExtensionType;
|
381
|
+
|
382
|
+
/** Parsers for Assets loader. */
|
383
|
+
LoadParser: "load-parser" & ExtensionType;
|
384
|
+
|
385
|
+
/** Parsers for Assets resolvers. */
|
386
|
+
ResolveParser: "resolve-parser" & ExtensionType;
|
387
|
+
|
388
|
+
/** Parsers for Assets cache. */
|
389
|
+
CacheParser: "cache-parser" & ExtensionType;
|
390
|
+
|
391
|
+
DetectionParser: "detection-parser" & ExtensionType;
|
392
|
+
};
|
393
|
+
|
394
|
+
type FORMATS = Brand<number, "PIXI.FORMATS">;
|
395
|
+
|
396
|
+
/** Various GL texture/resources formats. */
|
397
|
+
const FORMATS: {
|
398
|
+
/** @defaultValue `0x1908` */
|
399
|
+
RGBA: 6408 & FORMATS;
|
400
|
+
|
401
|
+
/** @defaultValue `0x1907` */
|
402
|
+
RGB: 6407 & FORMATS;
|
403
|
+
|
404
|
+
/** @defaultValue `0x8227` */
|
405
|
+
RG: 33319 & FORMATS;
|
406
|
+
|
407
|
+
/** @defaultValue `0x1903` */
|
408
|
+
RED: 6403 & FORMATS;
|
409
|
+
|
410
|
+
/** @defaultValue `0x8D99` */
|
411
|
+
RGBA_INTEGER: 36249 & FORMATS;
|
412
|
+
|
413
|
+
/** @defaultValue `0x8D98` */
|
414
|
+
RGB_INTEGER: 36248 & FORMATS;
|
415
|
+
|
416
|
+
/** @defaultValue `0x8228` */
|
417
|
+
RG_INTEGER: 33320 & FORMATS;
|
418
|
+
|
419
|
+
/** @defaultValue `0x8D94` */
|
420
|
+
RED_INTEGER: 36244 & FORMATS;
|
421
|
+
|
422
|
+
/** @defaultValue `0x1906` */
|
423
|
+
ALPHA: 6406 & FORMATS;
|
424
|
+
|
425
|
+
/** @defaultValue `0x1909` */
|
426
|
+
LUMINANCE: 6409 & FORMATS;
|
427
|
+
|
428
|
+
/** @defaultValue `0x190A` */
|
429
|
+
LUMINANCE_ALPHA: 6410 & FORMATS;
|
430
|
+
|
431
|
+
/** @defaultValue `0x1902` */
|
432
|
+
DEPTH_COMPONENT: 6402 & FORMATS;
|
433
|
+
|
434
|
+
/** @defaultValue `0x84F9` */
|
435
|
+
DEPTH_STENCIL: 34041 & FORMATS;
|
436
|
+
};
|
437
|
+
|
438
|
+
type GC_MODES = Brand<number, "PIXI.GC_MODES">;
|
439
|
+
|
440
|
+
/**
|
441
|
+
* The gc modes that are supported by pixi.
|
442
|
+
*
|
443
|
+
* The {@link PIXI.TextureGCSystem.defaultMode | `PIXI.TextureGCSystem.defaultMode`} Garbage Collection mode for PixiJS textures is AUTO
|
444
|
+
* If set to GC_MODE, the renderer will occasionally check textures usage. If they are not
|
445
|
+
* used for a specified period of time they will be removed from the GPU. They will of course
|
446
|
+
* be uploaded again when they are required. This is a silent behind the scenes process that
|
447
|
+
* should ensure that the GPU does not get filled up.
|
448
|
+
*
|
449
|
+
* Handy for mobile devices!
|
450
|
+
* This property only affects WebGL.
|
451
|
+
*/
|
452
|
+
const GC_MODES: {
|
453
|
+
/** Garbage collection will happen periodically automatically */
|
454
|
+
AUTO: 0 & GC_MODES;
|
455
|
+
|
456
|
+
/** Garbage collection will need to be called manually */
|
457
|
+
MANUAL: 1 & GC_MODES;
|
458
|
+
};
|
459
|
+
|
460
|
+
type INTERNAL_FORMATS = Brand<number, "PIXI.INTERNAL_FORMATS">;
|
461
|
+
|
462
|
+
/** WebGL internal formats, including compressed texture formats provided by extensions */
|
463
|
+
const INTERNAL_FORMATS: {
|
464
|
+
/** @defaultValue `0x83F0` */
|
465
|
+
COMPRESSED_RGB_S3TC_DXT1_EXT: 33776 & INTERNAL_FORMATS;
|
466
|
+
|
467
|
+
/** @defaultValue `0x83F1` */
|
468
|
+
COMPRESSED_RGBA_S3TC_DXT1_EXT: 33777 & INTERNAL_FORMATS;
|
469
|
+
|
470
|
+
/** @defaultValue `0x83F2` */
|
471
|
+
COMPRESSED_RGBA_S3TC_DXT3_EXT: 33778 & INTERNAL_FORMATS;
|
472
|
+
|
473
|
+
/** @defaultValue `0x83F3` */
|
474
|
+
COMPRESSED_RGBA_S3TC_DXT5_EXT: 33779 & INTERNAL_FORMATS;
|
475
|
+
|
476
|
+
/** @defaultValue `0x8C4D` */
|
477
|
+
COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT: 35917 & INTERNAL_FORMATS;
|
478
|
+
|
479
|
+
/** @defaultValue `0x8C4E` */
|
480
|
+
COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT: 35918 & INTERNAL_FORMATS;
|
481
|
+
|
482
|
+
/** @defaultValue `0x8C4F` */
|
483
|
+
COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT: 35919 & INTERNAL_FORMATS;
|
484
|
+
|
485
|
+
/** @defaultValue `0x8C4C` */
|
486
|
+
COMPRESSED_SRGB_S3TC_DXT1_EXT: 35916 & INTERNAL_FORMATS;
|
487
|
+
|
488
|
+
/** @defaultValue `0x9270` */
|
489
|
+
COMPRESSED_R11_EAC: 37488 & INTERNAL_FORMATS;
|
490
|
+
|
491
|
+
/** @defaultValue `0x9271` */
|
492
|
+
COMPRESSED_SIGNED_R11_EAC: 37489 & INTERNAL_FORMATS;
|
493
|
+
|
494
|
+
/** @defaultValue `0x9272` */
|
495
|
+
COMPRESSED_RG11_EAC: 37490 & INTERNAL_FORMATS;
|
496
|
+
|
497
|
+
/** @defaultValue `0x9273` */
|
498
|
+
COMPRESSED_SIGNED_RG11_EAC: 37491 & INTERNAL_FORMATS;
|
499
|
+
|
500
|
+
/** @defaultValue `0x9274` */
|
501
|
+
COMPRESSED_RGB8_ETC2: 37492 & INTERNAL_FORMATS;
|
502
|
+
|
503
|
+
/** @defaultValue `0x9278` */
|
504
|
+
COMPRESSED_RGBA8_ETC2_EAC: 37496 & INTERNAL_FORMATS;
|
505
|
+
|
506
|
+
/** @defaultValue `0x9275` */
|
507
|
+
COMPRESSED_SRGB8_ETC2: 37493 & INTERNAL_FORMATS;
|
508
|
+
|
509
|
+
/** @defaultValue `0x9279` */
|
510
|
+
COMPRESSED_SRGB8_ALPHA8_ETC2_EAC: 37497 & INTERNAL_FORMATS;
|
511
|
+
|
512
|
+
/** @defaultValue `0x9276` */
|
513
|
+
COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2: 37494 & INTERNAL_FORMATS;
|
514
|
+
|
515
|
+
/** @defaultValue `0x9277` */
|
516
|
+
COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2: 37495 & INTERNAL_FORMATS;
|
517
|
+
|
518
|
+
/** @defaultValue `0x8C00` */
|
519
|
+
COMPRESSED_RGB_PVRTC_4BPPV1_IMG: 35840 & INTERNAL_FORMATS;
|
520
|
+
|
521
|
+
/** @defaultValue `0x8C02` */
|
522
|
+
COMPRESSED_RGBA_PVRTC_4BPPV1_IMG: 35842 & INTERNAL_FORMATS;
|
523
|
+
|
524
|
+
/** @defaultValue `0x8C01` */
|
525
|
+
COMPRESSED_RGB_PVRTC_2BPPV1_IMG: 35841 & INTERNAL_FORMATS;
|
526
|
+
|
527
|
+
/** @defaultValue `0x8C03` */
|
528
|
+
COMPRESSED_RGBA_PVRTC_2BPPV1_IMG: 35843 & INTERNAL_FORMATS;
|
529
|
+
|
530
|
+
/** @defaultValue `0x8D64` */
|
531
|
+
COMPRESSED_RGB_ETC1_WEBGL: 36196 & INTERNAL_FORMATS;
|
532
|
+
|
533
|
+
/** @defaultValue `0x8C92` */
|
534
|
+
COMPRESSED_RGB_ATC_WEBGL: 35986 & INTERNAL_FORMATS;
|
535
|
+
|
536
|
+
/** @defaultValue `0x8C93` */
|
537
|
+
COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL: 35987 & INTERNAL_FORMATS;
|
538
|
+
|
539
|
+
/** @defaultValue `0x87EE` */
|
540
|
+
COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL: 34798 & INTERNAL_FORMATS;
|
541
|
+
|
542
|
+
/** @defaultValue `0x93B0` */
|
543
|
+
COMPRESSED_RGBA_ASTC_4x4_KHR: 37808 & INTERNAL_FORMATS;
|
544
|
+
|
545
|
+
/** @defaultValue `0x8E8C` */
|
546
|
+
COMPRESSED_RGBA_BPTC_UNORM_EXT: 36492 & INTERNAL_FORMATS;
|
547
|
+
|
548
|
+
/** @defaultValue `0x8E8D` */
|
549
|
+
COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT: 36493 & INTERNAL_FORMATS;
|
550
|
+
|
551
|
+
/** @defaultValue `0x8E8E` */
|
552
|
+
COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT: 36494 & INTERNAL_FORMATS;
|
553
|
+
|
554
|
+
/** @defaultValue `0x8E8F` */
|
555
|
+
COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT: 36495 & INTERNAL_FORMATS;
|
556
|
+
};
|
557
|
+
|
558
|
+
type LINE_CAP = Brand<string, "PIXI.LINE_CAP">;
|
559
|
+
|
560
|
+
/** Support line caps in `PIXI.LineStyle` for graphics. */
|
561
|
+
const LINE_CAP: {
|
562
|
+
/** 'butt': don't add any cap at line ends (leaves orthogonal edges) */
|
563
|
+
BUTT: "butt" & LINE_CAP;
|
564
|
+
|
565
|
+
/** 'round': add semicircle at ends */
|
566
|
+
ROUND: "round" & LINE_CAP;
|
567
|
+
|
568
|
+
/** 'square': add square at end (like `BUTT` except more length at end) */
|
569
|
+
SQUARE: "square" & LINE_CAP;
|
570
|
+
};
|
571
|
+
|
572
|
+
type LINE_JOIN = Brand<string, "PIXI.LINE_JOIN">;
|
573
|
+
|
574
|
+
/**
|
575
|
+
* Supported line joints in `PIXI.LineStyle` for graphics.
|
576
|
+
* @see {@link PIXI.Graphics.lineStyle | `PIXI.Graphics#lineStyle`}
|
577
|
+
* @see {@link https://graphicdesign.stackexchange.com/questions/59018/what-is-a-bevel-join-of-two-lines-exactly-illustrator}
|
578
|
+
*/
|
579
|
+
const LINE_JOIN: {
|
580
|
+
/** 'miter': make a sharp corner where outer part of lines meet */
|
581
|
+
MITER: "miter" & LINE_JOIN;
|
582
|
+
|
583
|
+
/** 'bevel': add a square butt at each end of line segment and fill the triangle at turn */
|
584
|
+
BEVEL: "bevel" & LINE_JOIN;
|
585
|
+
|
586
|
+
/** 'round': add an arc at the joint */
|
587
|
+
ROUND: "round" & LINE_JOIN;
|
588
|
+
};
|
589
|
+
|
590
|
+
type LoaderParserPriority = Brand<number, "PIXI.LoaderParserPriority">;
|
591
|
+
|
592
|
+
/**
|
593
|
+
* The extension priority for loader parsers.
|
594
|
+
* Helpful when managing multiple parsers that share the same extension test.
|
595
|
+
* The higher priority parsers will be checked first.
|
596
|
+
*/
|
597
|
+
const LoaderParserPriority: {
|
598
|
+
/** Generic parsers: txt, json, webfonts */
|
599
|
+
Low: 0 & LoaderParserPriority;
|
600
|
+
|
601
|
+
/** PixiJS assets with generic extensions: spritesheets, bitmapfonts */
|
602
|
+
Normal: 1 & LoaderParserPriority;
|
603
|
+
|
604
|
+
/** Specific texture types: svg, png, ktx, dds, basis */
|
605
|
+
High: 2 & LoaderParserPriority;
|
606
|
+
};
|
607
|
+
|
608
|
+
type MASK_TYPES = Brand<number, "PIXI.MASK_TYPES">;
|
609
|
+
|
610
|
+
/**
|
611
|
+
* Constants for mask implementations.
|
612
|
+
* We use `type` suffix because it leads to very different behaviours
|
613
|
+
*/
|
614
|
+
const MASK_TYPES: {
|
615
|
+
/** Mask is ignored */
|
616
|
+
NONE: 0 & MASK_TYPES;
|
617
|
+
|
618
|
+
/** Scissor mask, rectangle on screen, cheap */
|
619
|
+
SCISSOR: 1 & MASK_TYPES;
|
620
|
+
|
621
|
+
/** Stencil mask, 1-bit, medium, works only if renderer supports stencil */
|
622
|
+
STENCIL: 2 & MASK_TYPES;
|
623
|
+
|
624
|
+
/** Mask that uses SpriteMaskFilter, uses temporary RenderTexture */
|
625
|
+
SPRITE: 3 & MASK_TYPES;
|
626
|
+
|
627
|
+
/** Color mask (RGBA) */
|
628
|
+
COLOR: 4 & MASK_TYPES;
|
629
|
+
};
|
630
|
+
|
631
|
+
type MIPMAP_MODES = Brand<number, "PIXI.MIPMAP_MODES">;
|
632
|
+
|
633
|
+
/**
|
634
|
+
* Mipmap filtering modes that are supported by pixi.
|
635
|
+
*
|
636
|
+
* The {@link PIXI.BaseTexture.defaultOptions.mipmap | `PIXI.BaseTexture.defaultOptions.mipmap`} affects default texture filtering.
|
637
|
+
* Mipmaps are generated for a baseTexture if its `mipmap` field is `ON`,
|
638
|
+
* or its `POW2` and texture dimensions are powers of 2.
|
639
|
+
* Since WebGL 1 don't support mipmap for non-power-of-two textures,
|
640
|
+
* `ON` option will work like `POW2` for WebGL 1.
|
641
|
+
*
|
642
|
+
* This property only affects WebGL.
|
643
|
+
*/
|
644
|
+
const MIPMAP_MODES: {
|
645
|
+
/** No mipmaps. */
|
646
|
+
OFF: 0 & MIPMAP_MODES;
|
647
|
+
|
648
|
+
/** Generate mipmaps if texture dimensions are powers of 2. */
|
649
|
+
POW2: 1 & MIPMAP_MODES;
|
650
|
+
|
651
|
+
/** Always generate mipmaps. */
|
652
|
+
ON: 2 & MIPMAP_MODES;
|
653
|
+
|
654
|
+
/**
|
655
|
+
* Use mipmaps, but do not auto-generate them.
|
656
|
+
* this is used with a resource that supports buffering each level-of-detail.
|
657
|
+
*/
|
658
|
+
ON_MANUAL: 3 & MIPMAP_MODES;
|
659
|
+
};
|
660
|
+
|
661
|
+
type MSAA_QUALITY = Brand<number, "PIXI.MSAA_QUALITY">;
|
662
|
+
|
663
|
+
/** Constants for multi-sampling antialiasing. */
|
664
|
+
const MSAA_QUALITY: {
|
665
|
+
/** No multisampling for this renderTexture */
|
666
|
+
NONE: 0 & MSAA_QUALITY;
|
667
|
+
|
668
|
+
/** Try 2 samples */
|
669
|
+
LOW: 2 & MSAA_QUALITY;
|
670
|
+
|
671
|
+
/** Try 4 samples */
|
672
|
+
MEDIUM: 4 & MSAA_QUALITY;
|
673
|
+
|
674
|
+
/** Try 8 samples */
|
675
|
+
HIGH: 8 & MSAA_QUALITY;
|
676
|
+
};
|
677
|
+
|
678
|
+
type PRECISION = Brand<string, "PIXI.PRECISION">;
|
679
|
+
|
680
|
+
/** Constants that specify float precision in shaders. */
|
681
|
+
const PRECISION: {
|
682
|
+
/**
|
683
|
+
* lowp is at least an 9 bit value.
|
684
|
+
* For floating point values they can range from: -2 to +2,
|
685
|
+
* for integer values they are similar to Uint8Array or Int8Array
|
686
|
+
*/
|
687
|
+
LOW: "lowp" & PRECISION;
|
688
|
+
|
689
|
+
/**
|
690
|
+
* mediump is at least a 16 bit value.
|
691
|
+
* For floating point values they can range from: -2^14 to +2^14,
|
692
|
+
* for integer values they are similar to Uint16Array or Int16Array
|
693
|
+
*/
|
694
|
+
MEDIUM: "mediump" & PRECISION;
|
695
|
+
|
696
|
+
/**
|
697
|
+
* highp is at least a 32 bit value.
|
698
|
+
* For floating point values they can range from: -2^62 to +2^62,
|
699
|
+
* for integer values they are similar to Uint32Array or Int32Array
|
700
|
+
*/
|
701
|
+
HIGH: "highp" & PRECISION;
|
702
|
+
};
|
703
|
+
|
704
|
+
type RENDERER_TYPE = Brand<number, "PIXI.RENDERER_TYPE">;
|
705
|
+
|
706
|
+
/**
|
707
|
+
* Constant to identify the Renderer Type.
|
708
|
+
*/
|
709
|
+
const RENDERER_TYPE: {
|
710
|
+
/** Unknown render type. */
|
711
|
+
UNKNOWN: 0 & RENDERER_TYPE;
|
712
|
+
|
713
|
+
/** WebGL render type. */
|
714
|
+
WEBGL: 1 & RENDERER_TYPE;
|
715
|
+
|
716
|
+
/** Canvas render type. */
|
717
|
+
CANVAS: 2 & RENDERER_TYPE;
|
718
|
+
};
|
719
|
+
|
720
|
+
type SAMPLER_TYPES = Brand<number, "PIXI.SAMPLER_TYPES">;
|
721
|
+
|
722
|
+
/**
|
723
|
+
* Various sampler types. Correspond to `sampler`, `isampler`, `usampler` GLSL types respectively.
|
724
|
+
* WebGL1 works only with FLOAT.
|
725
|
+
*/
|
726
|
+
const SAMPLER_TYPES: {
|
727
|
+
FLOAT: 0 & SAMPLER_TYPES;
|
728
|
+
|
729
|
+
INT: 1 & SAMPLER_TYPES;
|
730
|
+
|
731
|
+
UINT: 2 & SAMPLER_TYPES;
|
732
|
+
};
|
733
|
+
|
734
|
+
type SCALE_MODES = Brand<number, "PIXI.SCALE_MODES">;
|
735
|
+
|
736
|
+
/**
|
737
|
+
* The scale modes that are supported by pixi.
|
738
|
+
*
|
739
|
+
* The {@link PIXI.BaseTexture.defaultOptions.scaleMode | `PIXI.BaseTexture.defaultOptions.scaleMode`} scale mode affects the default scaling mode of future operations.
|
740
|
+
* It can be re-assigned to either LINEAR or NEAREST, depending upon suitability.
|
741
|
+
*/
|
742
|
+
const SCALE_MODES: {
|
743
|
+
/** Pixelating scaling */
|
744
|
+
NEAREST: 0 & SCALE_MODES;
|
745
|
+
|
746
|
+
/** Smooth scaling */
|
747
|
+
LINEAR: 1 & SCALE_MODES;
|
748
|
+
};
|
749
|
+
|
750
|
+
type SHAPES = Brand<number, "PIXI.SHAPES">;
|
751
|
+
|
752
|
+
/** Constants that identify shapes, mainly to prevent `instanceof` calls. */
|
753
|
+
const SHAPES: {
|
754
|
+
POLY: 0 & SHAPES;
|
755
|
+
RECT: 1 & SHAPES;
|
756
|
+
CIRC: 2 & SHAPES;
|
757
|
+
ELIP: 3 & SHAPES;
|
758
|
+
RREC: 4 & SHAPES;
|
759
|
+
};
|
760
|
+
|
761
|
+
type TARGETS = Brand<number, "PIXI.TARGETS">;
|
762
|
+
|
763
|
+
/** Various GL target types. */
|
764
|
+
const TARGETS: {
|
765
|
+
/**
|
766
|
+
* A two-dimensional texture
|
767
|
+
* @defaultValue `0xDE1`
|
768
|
+
*/
|
769
|
+
TEXTURE_2D: 3553 & TARGETS;
|
770
|
+
|
771
|
+
/**
|
772
|
+
* A cube-mapped texture. When using a WebGL 2 context, the following values are available additionally:
|
773
|
+
* - gl.TEXTURE_3D: A three-dimensional texture.
|
774
|
+
* - gl.TEXTURE_2D_ARRAY: A two-dimensional array texture.
|
775
|
+
* @defaultValue `0x8513`
|
776
|
+
*/
|
777
|
+
TEXTURE_CUBE_MAP: 34067 & TARGETS;
|
778
|
+
|
779
|
+
/**
|
780
|
+
* A two-dimensional array texture.
|
781
|
+
* @defaultValue `0x8C1A`
|
782
|
+
*/
|
783
|
+
TEXTURE_2D_ARRAY: 35866 & TARGETS;
|
784
|
+
|
785
|
+
/**
|
786
|
+
* Positive X face for a cube-mapped texture.
|
787
|
+
* @defaultValue `0x8515`
|
788
|
+
*/
|
789
|
+
TEXTURE_CUBE_MAP_POSITIVE_X: 34069 & TARGETS;
|
790
|
+
|
791
|
+
/**
|
792
|
+
* Negative X face for a cube-mapped texture.
|
793
|
+
* @defaultValue `0x8516`
|
794
|
+
*/
|
795
|
+
TEXTURE_CUBE_MAP_NEGATIVE_X: 34070 & TARGETS;
|
796
|
+
|
797
|
+
/**
|
798
|
+
* Positive Y face for a cube-mapped texture.
|
799
|
+
* @defaultValue `0x8517`
|
800
|
+
*/
|
801
|
+
TEXTURE_CUBE_MAP_POSITIVE_Y: 34071 & TARGETS;
|
802
|
+
|
803
|
+
/**
|
804
|
+
* Negative Y face for a cube-mapped texture.
|
805
|
+
* @defaultValue `0x8518`
|
806
|
+
*/
|
807
|
+
TEXTURE_CUBE_MAP_NEGATIVE_Y: 34072 & TARGETS;
|
808
|
+
|
809
|
+
/**
|
810
|
+
* Positive Z face for a cube-mapped texture.
|
811
|
+
* @defaultValue `0x9519`
|
812
|
+
*/
|
813
|
+
TEXTURE_CUBE_MAP_POSITIVE_Z: 34073 & TARGETS;
|
814
|
+
|
815
|
+
/**
|
816
|
+
* Negative Z face for a cube-mapped texture.
|
817
|
+
* @defaultValue `0x851A`
|
818
|
+
*/
|
819
|
+
TEXTURE_CUBE_MAP_NEGATIVE_Z: 34074 & TARGETS;
|
820
|
+
};
|
821
|
+
|
822
|
+
type TEXT_GRADIENT = Brand<number, "PIXI.TEXT_GRADIENT">;
|
823
|
+
|
824
|
+
/** Constants that define the type of gradient on text. */
|
825
|
+
const TEXT_GRADIENT: {
|
826
|
+
/** Vertical gradient */
|
827
|
+
LINEAR_VERTICAL: 0 & TEXT_GRADIENT;
|
828
|
+
|
829
|
+
/**
|
830
|
+
* Linear gradient
|
831
|
+
* @privateRemarks [sic]
|
832
|
+
*/
|
833
|
+
LINEAR_HORIZONTAL: 1 & TEXT_GRADIENT;
|
834
|
+
};
|
835
|
+
|
836
|
+
type TYPES = Brand<number, "PIXI.TYPES">;
|
837
|
+
|
838
|
+
/** Various GL data format types. */
|
839
|
+
const TYPES: {
|
840
|
+
/**
|
841
|
+
* 8 bits per channel for gl.RGBA
|
842
|
+
* @defaultValue `0x1401`
|
843
|
+
*/
|
844
|
+
UNSIGNED_BYTE: 5121 & TYPES;
|
845
|
+
|
846
|
+
/** @defaultValue `0x1403` */
|
847
|
+
UNSIGNED_SHORT: 5123 & TYPES;
|
848
|
+
|
849
|
+
/**
|
850
|
+
* 5 red bits, 6 green bits, 5 blue bits.
|
851
|
+
* @defaultValue `0x8363`
|
852
|
+
*/
|
853
|
+
UNSIGNED_SHORT_5_6_5: 33635 & TYPES;
|
854
|
+
|
855
|
+
/**
|
856
|
+
* 4 red bits, 4 green bits, 4 blue bits, 4 alpha bits.
|
857
|
+
* @defaultValue `0x8033`
|
858
|
+
*/
|
859
|
+
UNSIGNED_SHORT_4_4_4_4: 32819 & TYPES;
|
860
|
+
|
861
|
+
/**
|
862
|
+
* 5 red bits, 5 green bits, 5 blue bits, 1 alpha bit.
|
863
|
+
* @defaultValue `0x8034`
|
864
|
+
*/
|
865
|
+
UNSIGNED_SHORT_5_5_5_1: 32820 & TYPES;
|
866
|
+
|
867
|
+
/** @defaultValue `0x1405` */
|
868
|
+
UNSIGNED_INT: 5125 & TYPES;
|
869
|
+
|
870
|
+
/** @defaultValue `0x8C3B` */
|
871
|
+
UNSIGNED_INT_10F_11F_11F_REV: 35899 & TYPES;
|
872
|
+
|
873
|
+
/** @defaultValue `0x8368` */
|
874
|
+
UNSIGNED_INT_2_10_10_10_REV: 33640 & TYPES;
|
875
|
+
|
876
|
+
/** @defaultValue `0x84FA` */
|
877
|
+
UNSIGNED_INT_24_8: 34042 & TYPES;
|
878
|
+
|
879
|
+
/** @defaultValue `0x8C3E` */
|
880
|
+
UNSIGNED_INT_5_9_9_9_REV: 35902 & TYPES;
|
881
|
+
|
882
|
+
/** @defaultValue `0x1400` */
|
883
|
+
BYTE: 5120 & TYPES;
|
884
|
+
|
885
|
+
/** @defaultValue `0x1402` */
|
886
|
+
SHORT: 5122 & TYPES;
|
887
|
+
|
888
|
+
/** @defaultValue `0x1404` */
|
889
|
+
INT: 5124 & TYPES;
|
890
|
+
|
891
|
+
/** @defaultValue `0x1406` */
|
892
|
+
FLOAT: 5126 & TYPES;
|
893
|
+
|
894
|
+
/** @defaultValue `0x8DAD` */
|
895
|
+
FLOAT_32_UNSIGNED_INT_24_8_REV: 36269 & TYPES;
|
896
|
+
|
897
|
+
/** @defaultValue `0x8D61` */
|
898
|
+
HALF_FLOAT: 36193 & TYPES;
|
899
|
+
};
|
900
|
+
|
901
|
+
type UPDATE_PRIORITY = Brand<number, "PIXI.UPDATE_PRIORITY">;
|
902
|
+
|
903
|
+
/**
|
904
|
+
* Represents the update priorities used by internal PIXI classes when registered with
|
905
|
+
* the {@link PIXI.Ticker | `PIXI.Ticker`} object. Higher priority items are updated first and lower
|
906
|
+
* priority items, such as render, should go later.
|
907
|
+
* @remarks Includes Foundry's additions of `OBJECTS`, `PRIMARY`, and `PERCEPTION`
|
908
|
+
*/
|
909
|
+
const UPDATE_PRIORITY: {
|
910
|
+
/** Highest priority used for interaction events in {@link PIXI.EventSystem | `PIXI.EventSystem`} */
|
911
|
+
INTERACTION: 50 & UPDATE_PRIORITY;
|
912
|
+
|
913
|
+
/** High priority updating, used by {@link PIXI.AnimatedSprite | `PIXI.AnimatedSprite`} */
|
914
|
+
HIGH: 25 & UPDATE_PRIORITY;
|
915
|
+
|
916
|
+
/** Default priority for ticker events, see {@link PIXI.Ticker.add | `PIXI.Ticker#add`}. */
|
917
|
+
NORMAL: 0 & UPDATE_PRIORITY;
|
918
|
+
|
919
|
+
/** Low priority used for {@link PIXI.Application | `PIXI.Application`} rendering. */
|
920
|
+
LOW: 25 & UPDATE_PRIORITY;
|
921
|
+
|
922
|
+
/** Lowest priority used for {@link PIXI.BasePrepare | `PIXI.BasePrepare`} utility. */
|
923
|
+
UTILITY: 50 & UPDATE_PRIORITY;
|
924
|
+
|
925
|
+
/** @remarks Foundry addition, defined as `HIGH - 2` */
|
926
|
+
OBJECTS: 23 & UPDATE_PRIORITY;
|
927
|
+
|
928
|
+
/** @remarks Foundry addition, defined as `NORMAL + 3` */
|
929
|
+
PRIMARY: 3 & UPDATE_PRIORITY;
|
930
|
+
|
931
|
+
/** @remarks Foundry addition, defined as `NORMAL + 2` */
|
932
|
+
PERCEPTION: 2 & UPDATE_PRIORITY;
|
933
|
+
};
|
934
|
+
|
935
|
+
type WRAP_MODES = Brand<number, "PIXI.WRAP_MODES">;
|
936
|
+
|
937
|
+
/**
|
938
|
+
* The wrap modes that are supported by pixi.
|
939
|
+
*
|
940
|
+
* The wrap mode affects the default wrapping mode of future operations.
|
941
|
+
* It can be re-assigned to either CLAMP or REPEAT, depending upon suitability.
|
942
|
+
* If the texture is non power of two then clamp will be used regardless as WebGL can
|
943
|
+
* only use REPEAT if the texture is po2.
|
944
|
+
*
|
945
|
+
* This property only affects WebGL.
|
946
|
+
*/
|
947
|
+
const WRAP_MODES: {
|
948
|
+
/**
|
949
|
+
* The textures uvs are clamped
|
950
|
+
* @defaultValue `0x812F`
|
951
|
+
*/
|
952
|
+
CLAMP: 33071 & WRAP_MODES;
|
953
|
+
|
954
|
+
/**
|
955
|
+
* The texture uvs tile and repeat
|
956
|
+
* @defaultValue `0x2901`
|
957
|
+
*/
|
958
|
+
REPEAT: 10497 & WRAP_MODES;
|
959
|
+
|
960
|
+
/**
|
961
|
+
* The texture uvs tile and repeat with mirroring
|
962
|
+
* @defaultValue `0x8370`
|
963
|
+
*/
|
964
|
+
MIRRORED_REPEAT: 33648 & WRAP_MODES;
|
965
|
+
};
|
966
|
+
|
967
|
+
export import smooth = _smooth;
|
968
|
+
export import particles = _particles;
|
16
969
|
|
17
970
|
export class Graphics extends PIXI.smooth.SmoothGraphics {}
|
18
971
|
|
19
972
|
export import BatchGeometry = _PIXI.BatchGeometry;
|
20
973
|
|
21
974
|
namespace BatchGeometry {
|
22
|
-
|
975
|
+
interface Any extends AnyPIXIBatchGeometry {}
|
976
|
+
interface AnyConstructor extends Identity<typeof AnyPIXIBatchGeometry> {}
|
23
977
|
}
|
24
978
|
|
25
979
|
export import BatchRenderer = _PIXI.BatchRenderer;
|
26
980
|
|
27
981
|
namespace BatchRenderer {
|
28
|
-
|
982
|
+
interface Any extends AnyPIXIBatchRenderer {}
|
983
|
+
interface AnyConstructor extends Identity<typeof AnyPIXIBatchRenderer> {}
|
29
984
|
}
|
30
985
|
|
31
986
|
export import Container = _PIXI.Container;
|
32
987
|
|
33
988
|
namespace Container {
|
34
|
-
|
989
|
+
interface Any extends AnyPIXIContainer {}
|
990
|
+
interface AnyConstructor extends Identity<typeof AnyPIXIContainer> {}
|
35
991
|
}
|
36
992
|
|
37
993
|
export import DisplayObject = _PIXI.DisplayObject;
|
38
994
|
|
39
995
|
namespace DisplayObject {
|
40
|
-
|
41
|
-
|
42
|
-
type DestroyOptions = _PIXI.IDestroyOptions | boolean;
|
996
|
+
interface Any extends AnyPIXIDisplayObject {}
|
997
|
+
interface AnyConstructor extends Identity<typeof AnyPIXIDisplayObject> {}
|
43
998
|
}
|
44
999
|
|
45
1000
|
export import Filter = _PIXI.Filter;
|
46
1001
|
|
47
1002
|
namespace Filter {
|
48
|
-
|
1003
|
+
interface Any extends AnyPIXIFilter {}
|
1004
|
+
interface AnyConstructor extends Identity<typeof AnyPIXIFilter> {}
|
49
1005
|
}
|
50
1006
|
|
51
1007
|
export import Shader = _PIXI.Shader;
|
52
1008
|
|
53
1009
|
namespace Shader {
|
54
|
-
|
1010
|
+
interface Any extends AnyPIXIShader {}
|
1011
|
+
interface AnyConstructor extends Identity<typeof AnyPIXIShader> {}
|
55
1012
|
}
|
56
1013
|
}
|
57
1014
|
}
|
58
1015
|
|
1016
|
+
declare module "@pixi/events" {
|
1017
|
+
interface FederatedPointerEvent {
|
1018
|
+
/**
|
1019
|
+
* The angle in radians of a pointer or stylus measuring the vertical angle between
|
1020
|
+
* the device's surface to the pointer or stylus.
|
1021
|
+
* A stylus at 0 degrees would be directly parallel whereas at π/2 degrees it would be perpendicular.
|
1022
|
+
* @see {@link https://developer.mozilla.org/docs/Web/API/PointerEvent/altitudeAngle}
|
1023
|
+
*/
|
1024
|
+
altitudeAngle: number;
|
1025
|
+
|
1026
|
+
/**
|
1027
|
+
* The angle in radians of a pointer or stylus measuring an arc from the X axis of the device to
|
1028
|
+
* the pointer or stylus projected onto the screen's plane.
|
1029
|
+
* A stylus at 0 degrees would be pointing to the "0 o'clock" whereas at π/2 degrees it would be pointing at "6 o'clock".
|
1030
|
+
* @see {@link https://developer.mozilla.org/docs/Web/API/PointerEvent/azimuthAngle}
|
1031
|
+
*/
|
1032
|
+
azimuthAngle: number;
|
1033
|
+
}
|
1034
|
+
}
|
1035
|
+
|
59
1036
|
declare module "pixi.js" {
|
60
1037
|
export import LegacyGraphics = _PIXI.Graphics;
|
61
1038
|
|
1039
|
+
export enum BLEND_MODES {
|
1040
|
+
/**
|
1041
|
+
* A custom blend mode equation which chooses the maximum color from each channel within the stack.
|
1042
|
+
* @remarks Foundry addition, value is technically dynamic as it's the last PIXI entry at the time + 1, but effectively static
|
1043
|
+
*/
|
1044
|
+
MAX_COLOR = 30,
|
1045
|
+
|
1046
|
+
/**
|
1047
|
+
* A custom blend mode equation which chooses the minimum color from each channel within the stack.
|
1048
|
+
* @remarks Foundry addition, value is technically dynamic as it's the last PIXI entry at the time + 1, but effectively static
|
1049
|
+
*/
|
1050
|
+
MIN_COLOR = 31,
|
1051
|
+
|
1052
|
+
/**
|
1053
|
+
* A custom blend mode equation which chooses the minimum color for color channels and min alpha from alpha channel.
|
1054
|
+
* @remarks Foundry addition, value is technically dynamic as it's the last PIXI entry at the time + 1, but effectively static
|
1055
|
+
*/
|
1056
|
+
MIN_ALL = 32,
|
1057
|
+
}
|
1058
|
+
|
62
1059
|
export enum UPDATE_PRIORITY {
|
63
1060
|
/**
|
64
1061
|
* @remarks Foundry defined custom ticker priority
|
65
|
-
* Handled in Canvas##activateTicker
|
1062
|
+
* Handled in Canvas##activateTicker, defined as `HIGH - 2`
|
66
1063
|
*/
|
67
1064
|
OBJECTS = 23,
|
68
1065
|
|
69
1066
|
/**
|
70
1067
|
* @remarks Foundry defined custom ticker priority
|
71
|
-
* Handled in Canvas##activateTicker
|
1068
|
+
* Handled in Canvas##activateTicker, defined as `NORMAL + 3`
|
1069
|
+
*/
|
1070
|
+
PRIMARY = 3,
|
1071
|
+
|
1072
|
+
/**
|
1073
|
+
* @remarks Foundry defined custom ticker priority
|
1074
|
+
* Handled in Canvas##activateTicker, defined as `NORMAL + 2`
|
72
1075
|
*/
|
73
1076
|
PERCEPTION = 2,
|
74
1077
|
}
|
75
1078
|
}
|
76
1079
|
|
77
1080
|
declare abstract class AnyPIXIBatchGeometry extends PIXI.BatchGeometry {
|
78
|
-
constructor(
|
1081
|
+
constructor(...args: never);
|
79
1082
|
}
|
80
1083
|
|
81
1084
|
declare abstract class AnyPIXIBatchRenderer extends PIXI.BatchRenderer {
|
82
|
-
constructor(
|
1085
|
+
constructor(...args: never);
|
83
1086
|
}
|
84
1087
|
|
85
1088
|
declare abstract class AnyPIXIContainer extends PIXI.Container {
|
86
|
-
constructor(
|
1089
|
+
constructor(...args: never);
|
87
1090
|
}
|
88
1091
|
|
89
|
-
declare abstract class
|
90
|
-
constructor(
|
1092
|
+
declare abstract class AnyPIXIDisplayObject extends PIXI.DisplayObject {
|
1093
|
+
constructor(...args: never);
|
91
1094
|
}
|
92
1095
|
|
93
1096
|
declare abstract class AnyPIXIFilter extends PIXI.Filter {
|
94
|
-
constructor(
|
1097
|
+
constructor(...args: never);
|
95
1098
|
}
|
96
1099
|
|
97
1100
|
declare abstract class AnyPIXIShader extends PIXI.Shader {
|
98
|
-
constructor(
|
1101
|
+
constructor(...args: never);
|
99
1102
|
}
|