diff --git a/404.html b/404.html index 291dd17f8..36a0bb752 100644 --- a/404.html +++ b/404.html @@ -9,13 +9,13 @@ - - + +
Skip to main content

Page Not Found

We could not find what you were looking for.

Please contact the owner of the site that linked you to the original URL and let them know their link is broken.

- - + + \ No newline at end of file diff --git a/7.x/branding.html b/7.x/branding.html index c77c868be..25b01c422 100644 --- a/7.x/branding.html +++ b/7.x/branding.html @@ -9,8 +9,8 @@ - - + +
@@ -22,7 +22,7 @@ PNG

PixiJS Logo Full Dark

Mark (Pink)

Download: SVG PNG

PixiJS Logo Mark Dark

Mark (Light)

Download: SVG PNG

PixiJS Logo Mark Light

- - + + \ No newline at end of file diff --git a/7.x/examples.html b/7.x/examples.html index e0dce586c..64aac09a2 100644 --- a/7.x/examples.html +++ b/7.x/examples.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/advanced/collision-detection.html b/7.x/examples/advanced/collision-detection.html index 6edb88a6f..6c93426c6 100644 --- a/7.x/examples/advanced/collision-detection.html +++ b/7.x/examples/advanced/collision-detection.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/advanced/mouse-trail.html b/7.x/examples/advanced/mouse-trail.html index c62ccc865..78b9dd2a8 100644 --- a/7.x/examples/advanced/mouse-trail.html +++ b/7.x/examples/advanced/mouse-trail.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/advanced/scratch-card.html b/7.x/examples/advanced/scratch-card.html index aa68191c9..eb5d138b5 100644 --- a/7.x/examples/advanced/scratch-card.html +++ b/7.x/examples/advanced/scratch-card.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/advanced/screen-shot.html b/7.x/examples/advanced/screen-shot.html index efddd4de5..f3f89d901 100644 --- a/7.x/examples/advanced/screen-shot.html +++ b/7.x/examples/advanced/screen-shot.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/advanced/slots.html b/7.x/examples/advanced/slots.html index 9df57dd4f..609205af1 100644 --- a/7.x/examples/advanced/slots.html +++ b/7.x/examples/advanced/slots.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/advanced/spinners.html b/7.x/examples/advanced/spinners.html index 48b4c4e08..1b4065e3a 100644 --- a/7.x/examples/advanced/spinners.html +++ b/7.x/examples/advanced/spinners.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/advanced/star-warp.html b/7.x/examples/advanced/star-warp.html index 140897d87..bc723a0ba 100644 --- a/7.x/examples/advanced/star-warp.html +++ b/7.x/examples/advanced/star-warp.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/assets/async.html b/7.x/examples/assets/async.html index f27521589..e20710ec6 100644 --- a/7.x/examples/assets/async.html +++ b/7.x/examples/assets/async.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/assets/background.html b/7.x/examples/assets/background.html index 787f3383e..4f5db704a 100644 --- a/7.x/examples/assets/background.html +++ b/7.x/examples/assets/background.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/assets/bundle.html b/7.x/examples/assets/bundle.html index c8e8b6c62..1268546d1 100644 --- a/7.x/examples/assets/bundle.html +++ b/7.x/examples/assets/bundle.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/assets/multiple.html b/7.x/examples/assets/multiple.html index 5226e8e8e..b06324da1 100644 --- a/7.x/examples/assets/multiple.html +++ b/7.x/examples/assets/multiple.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/assets/promise.html b/7.x/examples/assets/promise.html index 651dd2945..11a93ee57 100644 --- a/7.x/examples/assets/promise.html +++ b/7.x/examples/assets/promise.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/basic/blend-modes.html b/7.x/examples/basic/blend-modes.html index 268642f93..eaf05d07f 100644 --- a/7.x/examples/basic/blend-modes.html +++ b/7.x/examples/basic/blend-modes.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/basic/cache-as-bitmap.html b/7.x/examples/basic/cache-as-bitmap.html index bdfdc87e7..97ada06f4 100644 --- a/7.x/examples/basic/cache-as-bitmap.html +++ b/7.x/examples/basic/cache-as-bitmap.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/basic/container.html b/7.x/examples/basic/container.html index 73028ee46..e5c2f9a29 100644 --- a/7.x/examples/basic/container.html +++ b/7.x/examples/basic/container.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/basic/particle-container.html b/7.x/examples/basic/particle-container.html index 5200c541f..d08479619 100644 --- a/7.x/examples/basic/particle-container.html +++ b/7.x/examples/basic/particle-container.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/basic/simple-plane.html b/7.x/examples/basic/simple-plane.html index 624b13fe1..910026462 100644 --- a/7.x/examples/basic/simple-plane.html +++ b/7.x/examples/basic/simple-plane.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/basic/tinting.html b/7.x/examples/basic/tinting.html index 51bbfe788..8e74edfa6 100644 --- a/7.x/examples/basic/tinting.html +++ b/7.x/examples/basic/tinting.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/basic/transparent-background.html b/7.x/examples/basic/transparent-background.html index 6f9d32f41..7c393e0ed 100644 --- a/7.x/examples/basic/transparent-background.html +++ b/7.x/examples/basic/transparent-background.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/events/click.html b/7.x/examples/events/click.html index 59a35c3e9..3596a6a82 100644 --- a/7.x/examples/events/click.html +++ b/7.x/examples/events/click.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/events/custom-hitarea.html b/7.x/examples/events/custom-hitarea.html index 1ebc54c92..e11ac7b2b 100644 --- a/7.x/examples/events/custom-hitarea.html +++ b/7.x/examples/events/custom-hitarea.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/events/custom-mouse-icon.html b/7.x/examples/events/custom-mouse-icon.html index c36870c74..f27431ced 100644 --- a/7.x/examples/events/custom-mouse-icon.html +++ b/7.x/examples/events/custom-mouse-icon.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/events/dragging.html b/7.x/examples/events/dragging.html index 3ce21f833..e9feea30c 100644 --- a/7.x/examples/events/dragging.html +++ b/7.x/examples/events/dragging.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/events/interactivity.html b/7.x/examples/events/interactivity.html index aa63fcccf..34b787e0f 100644 --- a/7.x/examples/events/interactivity.html +++ b/7.x/examples/events/interactivity.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/events/logger.html b/7.x/examples/events/logger.html index f110a412e..ae4875b1e 100644 --- a/7.x/examples/events/logger.html +++ b/7.x/examples/events/logger.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/events/nested-boundary-with-projection.html b/7.x/examples/events/nested-boundary-with-projection.html index d3bfe4de6..bc52c6fbb 100644 --- a/7.x/examples/events/nested-boundary-with-projection.html +++ b/7.x/examples/events/nested-boundary-with-projection.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/events/pointer-tracker.html b/7.x/examples/events/pointer-tracker.html index 7730d7452..ea3043c25 100644 --- a/7.x/examples/events/pointer-tracker.html +++ b/7.x/examples/events/pointer-tracker.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/events/slider.html b/7.x/examples/events/slider.html index e21d2ee0c..e20c3378f 100644 --- a/7.x/examples/events/slider.html +++ b/7.x/examples/events/slider.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/filters-advanced/custom.html b/7.x/examples/filters-advanced/custom.html index 3ac10d1e3..a62da242c 100644 --- a/7.x/examples/filters-advanced/custom.html +++ b/7.x/examples/filters-advanced/custom.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/filters-advanced/mouse-blending.html b/7.x/examples/filters-advanced/mouse-blending.html index 784c38c6d..b384bc0d8 100644 --- a/7.x/examples/filters-advanced/mouse-blending.html +++ b/7.x/examples/filters-advanced/mouse-blending.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/filters-advanced/shader-toy-filter-render-texture.html b/7.x/examples/filters-advanced/shader-toy-filter-render-texture.html index ead70bcca..e3f18962b 100644 --- a/7.x/examples/filters-advanced/shader-toy-filter-render-texture.html +++ b/7.x/examples/filters-advanced/shader-toy-filter-render-texture.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/filters-basic/blur.html b/7.x/examples/filters-basic/blur.html index 828713719..be92e6488 100644 --- a/7.x/examples/filters-basic/blur.html +++ b/7.x/examples/filters-basic/blur.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/filters-basic/color-matrix.html b/7.x/examples/filters-basic/color-matrix.html index 7d1bf64e9..066c34671 100644 --- a/7.x/examples/filters-basic/color-matrix.html +++ b/7.x/examples/filters-basic/color-matrix.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/filters-basic/displacement-map-crawlies.html b/7.x/examples/filters-basic/displacement-map-crawlies.html index 0f8bf274a..eecaec0de 100644 --- a/7.x/examples/filters-basic/displacement-map-crawlies.html +++ b/7.x/examples/filters-basic/displacement-map-crawlies.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/filters-basic/displacement-map-flag.html b/7.x/examples/filters-basic/displacement-map-flag.html index b7234530f..83ee9949d 100644 --- a/7.x/examples/filters-basic/displacement-map-flag.html +++ b/7.x/examples/filters-basic/displacement-map-flag.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/graphics/advanced.html b/7.x/examples/graphics/advanced.html index 9757fb978..595ef78d7 100644 --- a/7.x/examples/graphics/advanced.html +++ b/7.x/examples/graphics/advanced.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/graphics/dynamic.html b/7.x/examples/graphics/dynamic.html index 9fb5fe2a4..e0c5134a8 100644 --- a/7.x/examples/graphics/dynamic.html +++ b/7.x/examples/graphics/dynamic.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/graphics/simple.html b/7.x/examples/graphics/simple.html index 49419ac2a..cf0d7f4bd 100644 --- a/7.x/examples/graphics/simple.html +++ b/7.x/examples/graphics/simple.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/masks/filter.html b/7.x/examples/masks/filter.html index 2c4fe3f2f..3a82fa444 100644 --- a/7.x/examples/masks/filter.html +++ b/7.x/examples/masks/filter.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/masks/graphics.html b/7.x/examples/masks/graphics.html index 85216db93..5a6ad9584 100644 --- a/7.x/examples/masks/graphics.html +++ b/7.x/examples/masks/graphics.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/masks/sprite.html b/7.x/examples/masks/sprite.html index d317e3084..77d277051 100644 --- a/7.x/examples/masks/sprite.html +++ b/7.x/examples/masks/sprite.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/mesh-and-shaders/instanced-geometry.html b/7.x/examples/mesh-and-shaders/instanced-geometry.html index a3bbb1f31..b019dc7dc 100644 --- a/7.x/examples/mesh-and-shaders/instanced-geometry.html +++ b/7.x/examples/mesh-and-shaders/instanced-geometry.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/mesh-and-shaders/interleaving-geometry.html b/7.x/examples/mesh-and-shaders/interleaving-geometry.html index 833acc101..e5ec43f5b 100644 --- a/7.x/examples/mesh-and-shaders/interleaving-geometry.html +++ b/7.x/examples/mesh-and-shaders/interleaving-geometry.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/mesh-and-shaders/merging-geometry.html b/7.x/examples/mesh-and-shaders/merging-geometry.html index 798c311fd..871343828 100644 --- a/7.x/examples/mesh-and-shaders/merging-geometry.html +++ b/7.x/examples/mesh-and-shaders/merging-geometry.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/mesh-and-shaders/multi-pass-shader-generated-mesh.html b/7.x/examples/mesh-and-shaders/multi-pass-shader-generated-mesh.html index 5b58d5480..ddf45aeca 100644 --- a/7.x/examples/mesh-and-shaders/multi-pass-shader-generated-mesh.html +++ b/7.x/examples/mesh-and-shaders/multi-pass-shader-generated-mesh.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/mesh-and-shaders/shader-toy-mesh.html b/7.x/examples/mesh-and-shaders/shader-toy-mesh.html index b01cbd91c..81c5b0e69 100644 --- a/7.x/examples/mesh-and-shaders/shader-toy-mesh.html +++ b/7.x/examples/mesh-and-shaders/shader-toy-mesh.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/mesh-and-shaders/shared-shader.html b/7.x/examples/mesh-and-shaders/shared-shader.html index 22fad5af3..7384bf86a 100644 --- a/7.x/examples/mesh-and-shaders/shared-shader.html +++ b/7.x/examples/mesh-and-shaders/shared-shader.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/mesh-and-shaders/sharing-geometry.html b/7.x/examples/mesh-and-shaders/sharing-geometry.html index 7b3b3b27c..17928bb13 100644 --- a/7.x/examples/mesh-and-shaders/sharing-geometry.html +++ b/7.x/examples/mesh-and-shaders/sharing-geometry.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/mesh-and-shaders/textured-mesh-advanced.html b/7.x/examples/mesh-and-shaders/textured-mesh-advanced.html index 93a8ebfda..d0b1b05d8 100644 --- a/7.x/examples/mesh-and-shaders/textured-mesh-advanced.html +++ b/7.x/examples/mesh-and-shaders/textured-mesh-advanced.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/mesh-and-shaders/textured-mesh-basic.html b/7.x/examples/mesh-and-shaders/textured-mesh-basic.html index de9176c66..ab2322e5a 100644 --- a/7.x/examples/mesh-and-shaders/textured-mesh-basic.html +++ b/7.x/examples/mesh-and-shaders/textured-mesh-basic.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/mesh-and-shaders/triangle-color.html b/7.x/examples/mesh-and-shaders/triangle-color.html index 1e0a66c98..d77fef0ed 100644 --- a/7.x/examples/mesh-and-shaders/triangle-color.html +++ b/7.x/examples/mesh-and-shaders/triangle-color.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/mesh-and-shaders/triangle-textured.html b/7.x/examples/mesh-and-shaders/triangle-textured.html index d4cfe93f4..be3a8617d 100644 --- a/7.x/examples/mesh-and-shaders/triangle-textured.html +++ b/7.x/examples/mesh-and-shaders/triangle-textured.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/mesh-and-shaders/triangle.html b/7.x/examples/mesh-and-shaders/triangle.html index 3b1f56d51..c542ed67c 100644 --- a/7.x/examples/mesh-and-shaders/triangle.html +++ b/7.x/examples/mesh-and-shaders/triangle.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/mesh-and-shaders/uniforms.html b/7.x/examples/mesh-and-shaders/uniforms.html index 385b0d67d..8cfbce044 100644 --- a/7.x/examples/mesh-and-shaders/uniforms.html +++ b/7.x/examples/mesh-and-shaders/uniforms.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/offscreen-canvas/basic.html b/7.x/examples/offscreen-canvas/basic.html index 90efaeb44..83aa932d4 100644 --- a/7.x/examples/offscreen-canvas/basic.html +++ b/7.x/examples/offscreen-canvas/basic.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/sprite/animated-sprite-animation-speed.html b/7.x/examples/sprite/animated-sprite-animation-speed.html index 421dc1ea2..1b3efcb8c 100644 --- a/7.x/examples/sprite/animated-sprite-animation-speed.html +++ b/7.x/examples/sprite/animated-sprite-animation-speed.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/sprite/animated-sprite-explosion.html b/7.x/examples/sprite/animated-sprite-explosion.html index f263a1f23..068af8842 100644 --- a/7.x/examples/sprite/animated-sprite-explosion.html +++ b/7.x/examples/sprite/animated-sprite-explosion.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/sprite/animated-sprite-jet.html b/7.x/examples/sprite/animated-sprite-jet.html index 6501ce362..75a6ad77f 100644 --- a/7.x/examples/sprite/animated-sprite-jet.html +++ b/7.x/examples/sprite/animated-sprite-jet.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/sprite/basic.html b/7.x/examples/sprite/basic.html index b69621380..50b8ccd61 100644 --- a/7.x/examples/sprite/basic.html +++ b/7.x/examples/sprite/basic.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/sprite/texture-swap.html b/7.x/examples/sprite/texture-swap.html index b24b96176..4b9f87697 100644 --- a/7.x/examples/sprite/texture-swap.html +++ b/7.x/examples/sprite/texture-swap.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/sprite/tiling-sprite.html b/7.x/examples/sprite/tiling-sprite.html index 2110b2866..fdbc1f563 100644 --- a/7.x/examples/sprite/tiling-sprite.html +++ b/7.x/examples/sprite/tiling-sprite.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/sprite/video.html b/7.x/examples/sprite/video.html index b5b098e45..f2089a5cd 100644 --- a/7.x/examples/sprite/video.html +++ b/7.x/examples/sprite/video.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/text/bitmap-text.html b/7.x/examples/text/bitmap-text.html index 1a9878903..655fec559 100644 --- a/7.x/examples/text/bitmap-text.html +++ b/7.x/examples/text/bitmap-text.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/text/from-font.html b/7.x/examples/text/from-font.html index 9c9cc30a0..16f337cf7 100644 --- a/7.x/examples/text/from-font.html +++ b/7.x/examples/text/from-font.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/text/pixi-text.html b/7.x/examples/text/pixi-text.html index 2066af420..25adbbe34 100644 --- a/7.x/examples/text/pixi-text.html +++ b/7.x/examples/text/pixi-text.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/text/web-font.html b/7.x/examples/text/web-font.html index 0853e852e..9115fb9d2 100644 --- a/7.x/examples/text/web-font.html +++ b/7.x/examples/text/web-font.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/textures/gradient-basic.html b/7.x/examples/textures/gradient-basic.html index 846c34452..32da3088b 100644 --- a/7.x/examples/textures/gradient-basic.html +++ b/7.x/examples/textures/gradient-basic.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/textures/gradient-resource.html b/7.x/examples/textures/gradient-resource.html index 90ce420d4..43b04ff0e 100644 --- a/7.x/examples/textures/gradient-resource.html +++ b/7.x/examples/textures/gradient-resource.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/textures/render-texture-advanced.html b/7.x/examples/textures/render-texture-advanced.html index 1d423566f..60113fc6c 100644 --- a/7.x/examples/textures/render-texture-advanced.html +++ b/7.x/examples/textures/render-texture-advanced.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/textures/render-texture-basic.html b/7.x/examples/textures/render-texture-basic.html index 968a13509..150260b1a 100644 --- a/7.x/examples/textures/render-texture-basic.html +++ b/7.x/examples/textures/render-texture-basic.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/examples/textures/texture-rotate.html b/7.x/examples/textures/texture-rotate.html index 9cbca516b..78c78c1d8 100644 --- a/7.x/examples/textures/texture-rotate.html +++ b/7.x/examples/textures/texture-rotate.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/faq.html b/7.x/faq.html index e5daec55e..8b64a41d4 100644 --- a/7.x/faq.html +++ b/7.x/faq.html @@ -9,8 +9,8 @@ - - + +
@@ -22,7 +22,7 @@ are what make it possible to push PixiJS further, faster. Contributions allow us to commission the PixiJS developer community to accelerate feature development and create more in-depth documentation. Support Us by making a contribution via Open Collective. Go on! It will be a massive help AND make you feel good about yourself, win win ;)

Where do I get it?

Visit our GitHub page to download the very latest version of PixiJS. This is the most up-to-date resource for PixiJS and should always be your first port of call to make sure you are using the latest version. Just click the 'Download' link in the navigation.

How do I get started?

Right here! Take a look through the Resources section for a wealth of information including documentation, forums, tutorials and the Goodboy blog.

Why should I use PixiJS?

Because you care about speed. PixiJS' #1 mantra has always been speed. We really do feel the need! We do everything we can to make PixiJS as streamlined, efficient and fast as possible, whilst balancing it with offering as many crucial and valuable features as we can.

Is PixiJS a game engine?

No. PixiJS is what we've come to think of as a "creation engine". Whilst it is extremely good for making games, the core essence of PixiJS is simply moving things around on screens as quickly and efficiently as possible. It does of course happen that it is absolutely brilliant for making games though!

Who makes PixiJS?

Outside of the highly active PixiJS community, it is primarily maintained by Mat Groves, Technical Partner of our creative agency Goodboy Digital. One of the huge advantages of creating PixiJS within the framework of a working agency is that it means its features are always driven by genuine industry demands and critically are always trialled "in anger" in our cutting-edge games, sites and apps.

I found a bug. What should I do?

Two things - lets us know via the PixiJS GitHub community and even better yet, if you know how, post a fix! Our Community is stronger in numbers so we're always keen to welcome new contributors into the team to help us shape what PixiJS becomes next.

- - + + \ No newline at end of file diff --git a/7.x/guides.html b/7.x/guides.html index 86721c03c..05bde9efe 100644 --- a/7.x/guides.html +++ b/7.x/guides.html @@ -9,13 +9,13 @@ - - + +
Skip to main content

Welcome

PixiJS is an open source, web-based rendering system that provides blazing fast performance for games, data visualization, and other graphics intensive projects. These guides are designed to be a companion to the API documentation, providing a structured introduction to using the API to solve problems and build projects.

About The Guides

If you're new to PixiJS, we suggest you start with the Basics and read through them in order (a good place to start is Getting Started). While PixiJS has a mature API and solid documentation, the guides go over many common issues and questions that developers new to the system encounter.

Other Resources

As you explore the guides, you may find these resources valuable:

- - + + \ No newline at end of file diff --git a/7.x/guides/basics/architecture-overview.html b/7.x/guides/basics/architecture-overview.html index 4688c20c4..63574e6c4 100644 --- a/7.x/guides/basics/architecture-overview.html +++ b/7.x/guides/basics/architecture-overview.html @@ -9,13 +9,13 @@ - - + +
Skip to main content

Architecture Overview

OK, now that you've gotten a feel for how easy it is to build a PixiJS application, let's get into the specifics. For the rest of the Basics section, we're going to work from the high level down to the details. We'll start with an overview of how PixiJS is put together.

The Code

Before we get into how the code is layed out, let's talk about where it lives. PixiJS is an open source product hosted on GitHub. Like any GitHub repo, you can browse and download the raw source files for each PixiJS class, as well as search existing issues & bugs, and even submit your own. PixiJS is written in a JavaScript variant called TypeScript, which enables type-checking in JavaScript via a pre-compile step.

The Components

PixiJS is a modular rendering engine. Each task required for generating, updating and displaying content is broken out into its own component. Not only does this make the code cleaner, it allows for greater extensibility. Additionally, with the use of the PixiJS Customize tool, it's possible to build a custom PixiJS file containing only the subset of features your project needs, saving download size.

Here's a list of the major components that make up PixiJS. Note that this list isn't exhaustive. Additionally, don't worry too much about how each component works. The goal here is to give you a feel for what's under the hood as we start exploring the engine.

Major Components

ComponentDescription
Renderer @pixi/coreThe core of the PixiJS system is the renderer, which displays the scene graph and draws it to the screen. The default renderer for PixiJS is based on WebGL under the hood.
Container @pixi/displayMain display object which creates a scene graph: the tree of renderable objects to be displayed, such as sprites, graphics and text. See Scene Graph for more details.
Loader @pixi/loaderThe loader system provides tools for asynchronously loading resources such as images and audio files.
Ticker @pixi/tickerTickers provide periodic callbacks based on a clock. Your game update logic will generally be run in response to a tick once per frame. You can have multiple tickers in use at one time.
Application @pixi/appThe Application is a simple helper that wraps a Loader, Ticker and Renderer into a single, convenient easy-to-use object. Great for getting started quickly, prototyping and building simple projects.
Interaction @pixi/interactionPixiJS supports both touch and mouse-based interaction - making objects clickable, firing hover events, etc.
Accessibility @pixi/accessibilityWoven through our display system is a rich set of tools for enabling keyboard and screen-reader accessibility.
- - + + \ No newline at end of file diff --git a/7.x/guides/basics/getting-started.html b/7.x/guides/basics/getting-started.html index 6d6f0d03d..bee3f207b 100644 --- a/7.x/guides/basics/getting-started.html +++ b/7.x/guides/basics/getting-started.html @@ -9,8 +9,8 @@ - - + +
@@ -18,7 +18,7 @@ experience developing JavaScript-based applications. If you are a coding veteran, you may find that the level of detail here is not helpful. If that's the case, you may want to skim this guide, then jump into how to work with PixiJS and packers like webpack and npm.

A Note About JavaScript

One final note. The JavaScript universe is currently in transition from old-school JavaScript (ES5) to the newer ES6 flavor:

// ES5
var x = 5;
setTimeout(function() { alert(x); }, 1000);
// ES6
const x = 5;
setTimeout(() => alert(x), 1000);

ES6 brings a number of major advantages in terms of clearer syntax, better variable scoping, native class support, etc. By now, all major browsers support it. Given this, our examples in these guides will use ES6. This doesn't mean you can't use PixiJS with ES5 programs! Just mentally substitute "var" for "let/const", expand the shorter function-passing syntax, and everything will run just fine.

Components of a PixiJS Application

OK! With those notes out of the way, let's get started. There are only a few steps required to write a PixiJS application:

Let's walk through them together.

The HTML File

PixiJS is a JavaScript library that runs in a web page. So the first thing we're going to need is some HTML in a file. In a real PixiJS application, you might want to embed your display within a complex existing page, or you might want your display area to fill the whole page. For this demo, we'll build an empty page to start:

<!doctype html>
<html>
<head>
</head>
<body>
<h1>Hello PixiJS</h1>
</body>
</html>

Create a new folder named pixi-test, then copy and paste this HTML into a new file in the pixi-test folder named index.html.

Serving the File

You will need to run a web server to develop locally with PixiJS. Web browsers prevent loading local files (such as images and audio files) on locally loaded web pages. If you just double-click your new HTML file, you'll get an error when you try to add a sprite to the PixiJS stage.

Running a web server sounds complex and difficult, but it turns out there are a number of simple web servers that will serve this purpose. For this guide, we're going to be working with Mongoose, but you could just as easily use XAMPP or the http-server Node.js package to serve your files.

To start serving your page with Mongoose, go to the Mongoose download page and download the free server for your operating system. Mongoose defaults to serving the files in the folder it's run in, so copy the downloaded executable into the folder you created in the prior step (pixi-test). Double-click the executable, tell your operating system that you trust the file to run, and you'll have a running web server, serving your new folder.

Test that everything is working by opening your browser of choice and entering http://127.0.0.1:8080 in the location bar. (Mongoose by default serves files on port 8080.) You should see "Hello PixiJS" and nothing else. If you get an error at this step, it means you didn't name your file index.html or you mis-configured your web server.

Loading PixiJS

OK, so we have a web page, and we're serving it. But it's empty. The next step is to actually load the PixiJS library. If we were building a real application, we'd want to download a target version of PixiJS from the Pixi Github repo so that our version wouldn't change on us. But for this sample application, we'll just use the CDN version of PixiJS. Add this line to the <head> section of your index.html file:

<script src="https://pixijs.download/release/pixi.js"></script>

This will include a non-minified version of the latest version of PixiJS when your page loads, ready to be used. We use the non-minified version because we're in development. In production, you'd want to use pixi.min.js instead, which is compressed for faster download and excludes assertions and deprecation warnings that can help when building your project, but take longer to download and run.

Creating an Application

Loading the library doesn't do much good if we don't use it, so the next step is to start up PixiJS. Start by replacing the line <h1>Hello PixiJS</h1> with a script tag like so:

<script>
let app = new PIXI.Application({ width: 640, height: 360 });
</script>

What we're doing here is adding a JavaScript code block, and in that block creating a new PIXI.Application instance. Application is a helper class that simplifies working with PixiJS. It creates the renderer, creates the stage, and starts a ticker for updating. In production, you'll almost certainly want to do these steps yourself for added customization and control - we'll cover doing so in a later guide. For now, the Application class is a perfect way to start playing with PixiJS without worrying about the details.

Adding the View to the DOM

When the PIXI.Application class creates the renderer, it builds a Canvas element that it will render to. In order to see what we draw with PixiJS, we need to add this Canvas element to the web page's DOM. Append the following line to your page's script block:

  document.body.appendChild(app.view);

This takes the view created by the application (the Canvas element) and adds it to the body of your page.

Creating a Sprite

So far all we've been doing is prep work. We haven't actually told PixiJS to draw anything. Let's fix that by adding an image to be displayed.

There are a number of ways to draw images in PixiJS, but the simplest is by using a Sprite. We'll get into the details of how the scene graph works in a later guide, but for now all you need to know is that PixiJS renders a hierarchy of DisplayObjects. A Sprite is a type of DisplayObject that wraps a loaded image resource to allow drawing it, scaling it, rotating it, and so forth.

Before PixiJS can render an image, it needs to be loaded. Just like in any web page, image loading happens asynchronously. We'll talk a lot more about resource loading in later guides. For now, we can use a helper method on the PIXI.Sprite class to handle the image loading for us:

  // Magically load the PNG asynchronously
let sprite = PIXI.Sprite.from('sample.png');

Download the sample PNG here, and save it into your pixi-test directory next to your index.html.

Adding the Sprite to the Stage

Finally, we need to add our new sprite to the stage. The stage is simply a Container that is the root of the scene graph. Every child of the stage container will be rendered every frame. By adding our sprite to the stage, we tell PixiJS's renderer we want to draw it.

  app.stage.addChild(sprite);

Writing an Update Loop

While you can use PixiJS for static content, for most projects you'll want to add animation. Our sample app is actually cranking away, rendering the same sprite in the same place multiple times a second. All we have to do to make the image move is to update its attributes once per frame. To do this, we want to hook into the application's ticker. A ticker is a PixiJS object that runs one or more callbacks each frame. Doing so is surprisingly easy. Add the following to the end of your script block:

  // Add a variable to count up the seconds our demo has been running
let elapsed = 0.0;
// Tell our application's ticker to run a new callback every frame, passing
// in the amount of time that has passed since the last tick
app.ticker.add((delta) => {
// Add the time to our total elapsed time
elapsed += delta;
// Update the sprite's X position based on the cosine of our elapsed time. We divide
// by 50 to slow the animation down a bit...
sprite.x = 100.0 + Math.cos(elapsed/50.0) * 100.0;
});

All you need to do is to call app.ticker.add(...), pass it a callback function, and then update your scene in that function. It will get called every frame, and you can move, rotate etc. whatever you'd like to drive your project's animations.

Putting It All Together

That's it! The simplest PixiJS project!

Here's the whole thing in one place. Check your file and make sure it matches if you're getting errors.

<!doctype html>
<html>
<head>
<script src="https://pixijs.download/release/pixi.min.js"></script>
</head>
<body>
<script>
// Create the application helper and add its render target to the page
let app = new PIXI.Application({ width: 640, height: 360 });
document.body.appendChild(app.view);

// Create the sprite and add it to the stage
let sprite = PIXI.Sprite.from('sample.png');
app.stage.addChild(sprite);

// Add a ticker callback to move the sprite back and forth
let elapsed = 0.0;
app.ticker.add((delta) => {
elapsed += delta;
sprite.x = 100.0 + Math.cos(elapsed/50.0) * 100.0;
});
</script>
</body>
</html>

Once you have things working, the next thing to do is to read through the rest of the Basics guides to dig into how all this works in much greater depth.

- - + + \ No newline at end of file diff --git a/7.x/guides/basics/render-loop.html b/7.x/guides/basics/render-loop.html index 2062f1734..6b29bad07 100644 --- a/7.x/guides/basics/render-loop.html +++ b/7.x/guides/basics/render-loop.html @@ -9,13 +9,13 @@ - - + +
Skip to main content

Render Loop

Now that you understand the major parts of the system, let's look at how these parts work together to get your project onto the screen. Unlike a web page, PixiJS is constantly updating and re-drawing itself, over and over. You update your objects, then PixiJS renders them to the screen, then the process repeats. We call this cycle the render loop.

The majority of any PixiJS project is contained in this update + render cycle. You code the updates, PixiJS handles the rendering.

Let's walk through what happens each frame of the render loop. There are three main steps.

Running Ticker Callbacks

The first step is to calculate how much time has elapsed since the last frame, and then call the Application object's ticker callbacks with that time delta. This allows your project's code to animate and update the sprites, etc. on the stage in preparation for rendering.

Updating the Scene Graph

We'll talk a lot more about what a scene graph is and what it's made of in the next guide, but for now, all you need to know is that it contains the things you're drawing - sprites, text, etc. - and that these objects are in a tree-like hierarchy. After you've updated your game objects by moving, rotating and so forth, PixiJS needs to calculate the new positions and state of every object in the scene, before it can start drawing.

Rendering the Scene Graph

Now that our game's state has been updated, it's time to draw it to the screen. The rendering system starts with the root of the scene graph (app.stage), and starts rendering each object and its children, until all objects have been drawn. No culling or other cleverness is built into this process. If you have lots of objects outside of the visible portion of the stage, you'll want to investigate disabling them as an optimization.

Frame Rates

A note about frame rates. The render loop can't be run infinitely fast - drawing things to the screen takes time. In addition, it's not generally useful to have a frame updated more than once per screen update (commonly 60fps, but newer monitors can support 144fps and up). Finally, PixiJS runs in the context of a web browser like Chrome or Firefox. The browser itself has to balance the needs of various internal operations with servicing any open tabs. All this to say, determining when to draw a frame is a complex issue.

In cases where you want to adjust that behavior, you can set the minFPS and maxFPS attributes on a Ticker to give PixiJS hints as to the range of tick speeds you want to support. Just be aware that due to the complex environment, your project cannot guarantee a given FPS. Use the passed delta value in your ticker callbacks to scale any animations to ensure smooth playback.

Custom Render Loops

What we've just covered is the default render loop provided out of the box by the Application helper class. There are many other ways of creating a render loop that may be helpful for advanced users looking to solve a given problem. While you're prototyping and learning PixiJS, sticking with the Application's provided system is the recommended approach.

- - + + \ No newline at end of file diff --git a/7.x/guides/basics/scene-graph.html b/7.x/guides/basics/scene-graph.html index af7cc8a2e..05c83b4fc 100644 --- a/7.x/guides/basics/scene-graph.html +++ b/7.x/guides/basics/scene-graph.html @@ -9,13 +9,13 @@ - - + +
Skip to main content

Scene Graph

Every frame, PixiJS is updating and then rendering the scene graph. Let's talk about what's in the scene graph, and how it impacts how you develop your project. If you've built games before, this should all sound very familiar, but if you're coming from HTML and the DOM, it's worth understanding before we get into specific types of objects you can render.

The Scene Graph Is a Tree

The scene graph's root node is a container maintained by the application, and referenced with app.stage. When you add a sprite or other renderable object as a child to the stage, it's added to the scene graph and will be rendered and interactable. Most PixiJS objects can also have children, and so as you build more complex scenes, you will end up with a tree of parent-child relationships, rooted at the app's stage.

(A helpful tool for exploring your project is the Pixi.js devtools plugin for Chrome, which allows you to view and manipulate the scene graph in real time as it's running!)

Parents and Children

When a parent moves, its children move as well. When a parent is rotated, its children are rotated too. Hide a parent, and the children will also be hidden. If you have a game object that's made up of multiple sprites, you can collect them under a container to treat them as a single object in the world, moving and rotating as one.

Each frame, PixiJS runs through the scene graph from the root down through all the children to the leaves to calculate each object's final position, rotation, visibility, transparency, etc. If a parent's alpha is set to 0.5 (making it 50% transparent), all its children will start at 50% transparent as well. If a child is then set to 0.5 alpha, it won't be 50% transparent, it will be 0.5 x 0.5 = 0.25 alpha, or 75% transparent. Similarly, an object's position is relative to its parent, so if a parent is set to an x position of 50 pixels, and the child is set to an x position of 100 pixels, it will be drawn at a screen offset of 150 pixels, or 50 + 100.

Here's an example. We'll create three sprites, each a child of the last, and animate their position, rotation, scale and alpha. Even though each sprite's properties are set to the same values, the parent-child chain amplifies each change:

// Create the application helper and add its render target to the page
const app = new PIXI.Application({ width: 640, height: 360 });
document.body.appendChild(app.view);

// Add a container to center our sprite stack on the page
const container = new PIXI.Container();
container.x = app.screen.width / 2;
container.y = app.screen.height / 2;
app.stage.addChild(container);

// Create the 3 sprites, each a child of the last
const sprites = [];
let parent = container;
for (let i = 0; i < 3; i++) {
let sprite = PIXI.Sprite.from('assets/images/sample.png');
sprite.anchor.set(0.5);
parent.addChild(sprite);
sprites.push(sprite);
parent = sprite;
}

// Set all sprite's properties to the same value, animated over time
let elapsed = 0.0;
app.ticker.add((delta) => {
elapsed += delta / 60;
const amount = Math.sin(elapsed);
const scale = 1.0 + 0.25 * amount;
const alpha = 0.75 + 0.25 * amount;
const angle = 40 * amount;
const x = 75 * amount;
for (let i = 0; i < sprites.length; i++) {
const sprite = sprites[i];
sprite.scale.set(scale);
sprite.alpha = alpha;
sprite.angle = angle;
sprite.x = x;
}
});

The cumulative translation, rotation, scale and skew of any given node in the scene graph is stored in the object's worldTransform property. Similarly, the cumulative alpha value is stored in the worldAlpha property.

Render Order

So we have a tree of things to draw. Who gets drawn first?

PixiJS renders the tree from the root down. At each level, the current object is rendered, then each child is rendered in order of insertion. So the second child is rendered on top of the first child, and the third over the second.

Check out this example, with two parent objects A & D, and two children B & C under A:

// Create the application helper and add its render target to the page
const app = new PIXI.Application({ width: 640, height: 360 });
document.body.appendChild(app.view);

// Label showing scene graph hierarchy
const label = new PIXI.Text('Scene Graph:\n\napp.stage\n ┗ A\n ┗ B\n ┗ C\n ┗ D', {fill: '#ffffff'});
label.position = {x: 300, y: 100};
app.stage.addChild(label);

// Helper function to create a block of color with a letter
const letters = [];
function addLetter(letter, parent, color, pos) {
const bg = new PIXI.Sprite(PIXI.Texture.WHITE);
bg.width = 100;
bg.height = 100;
bg.tint = color;

const text = new PIXI.Text(letter, {fill: "#ffffff"});
text.anchor.set(0.5);
text.position = {x: 50, y: 50};

const container = new PIXI.Container();
container.position = pos;
container.visible = false;
container.addChild(bg, text);
parent.addChild(container);

letters.push(container);
return container;
}

// Define 4 letters
let a = addLetter('A', app.stage, 0xff0000, {x: 100, y: 100});
let b = addLetter('B', a, 0x00ff00, {x: 20, y: 20});
let c = addLetter('C', a, 0x0000ff, {x: 20, y: 40});
let d = addLetter('D', app.stage, 0xff8800, {x: 140, y: 100});

// Display them over time, in order
let elapsed = 0.0;
app.ticker.add((delta) => {
elapsed += delta / 60.0;
if (elapsed >= letters.length) { elapsed = 0.0; }
for (let i = 0; i < letters.length; i ++) {
letters[i].visible = elapsed >= i;
}
});

If you'd like to re-order a child object, you can use setChildIndex(). To add a child at a given point in a parent's list, use addChildAt(). Finally, you can enable automatic sorting of an object's children using the sortableChildren option combined with setting the zIndex property on each child.

Culling

If you're building a project where a large proportion of your DisplayObject's are off-screen (say, a side-scrolling game), you will want to cull those objects. Culling is the process of evaluating if an object (or its children!) is on the screen, and if not, turning off rendering for it. If you don't cull off-screen objects, the renderer will still draw them, even though none of their pixels end up on the screen.

PixiJS doesn't provide built-in support for viewport culling, but you can find 3rd party plugins that might fit your needs. Alternately, if you'd like to build your own culling system, simply run your objects during each tick and set renderable to false on any object that doesn't need to be drawn.

Local vs Global Coordinates

If you add a sprite to the stage, by default it will show up in the top left corner of the screen. That's the origin of the global coordinate space used by PixiJS. If all your objects were children of the stage, that's the only coordinates you'd need to worry about. But once you introduce containers and children, things get more complicated. A child object at [50, 100] is 50 pixels right and 100 pixels down from its parent.

We call these two coordinate systems "global" and "local" coordinates. When you use position.set(x, y) on an object, you're always working in local coordinates, relative to the object's parent.

The problem is, there are many times when you want to know the global position of an object. For example, if you want to cull offscreen objects to save render time, you need to know if a given child is outside the view rectangle.

To convert from local to global coordinates, you use the toGlobal() function. Here's a sample usage:

// Get the global position of an object, relative to the top-left of the screen
let globalPos = obj.toGlobal(new PIXI.Point(0,0));

This snippet will set globalPos to be the global coordinates for the child object, relative to [0, 0] in the global coordinate system.

Global vs Screen Coordinates

When your project is working with the host operating system or browser, there is a third coordinate system that comes into play - "screen" coordinates (aka "viewport" coordinates). Screen coordinates represent position relative to the top-left of the canvas element that PixiJS is rendering into. Things like the DOM and native mouse click events work in screen space.

Now, in many cases, screen space is equivalent to world space. This is the case if the size of the canvas is the same as the size of the render view specified when you create you PIXI.Application. By default, this will be the case - you'll create for example an 800x600 application window and add it to your HTML page, and it will stay that size. 100 pixels in world coordinates will equal 100 pixels in screen space. BUT! It is common to stretch the rendered view to have it fill the screen, or to render at a lower resolution and up-scale for speed. In that case, the screen size of the canvas element will change (e.g. via CSS), but the underlying render view will not, resulting in a mis-match between world coordinates and screen coordinates.

- - + + \ No newline at end of file diff --git a/7.x/guides/basics/what-pixijs-is-not.html b/7.x/guides/basics/what-pixijs-is-not.html index 397c7bab4..45fbdfd60 100644 --- a/7.x/guides/basics/what-pixijs-is-not.html +++ b/7.x/guides/basics/what-pixijs-is-not.html @@ -9,13 +9,13 @@ - - + +
Skip to main content

What PixiJS Is Not

While PixiJS can do many things, there are things it can't do, or that require additional tools to accomplish. Newcomers to PixiJS often struggle to identify which tasks PixiJS can solve, and which require outside solutions. If you're about to start a project, it can be helpful to know if PixiJS is a good fit for your needs. The following list is obviously incomplete - PixiJS is also not, for example, a duck - but it includes many common tasks or features that you might expect us to support.

PixiJS Is Not ... A Framework

PixiJS is a rendering engine, and it supports additional features such as interaction management that are commonly needed when using a render engine. But it is not a framework like Unity or Phaser. Frameworks are designed to do all the things you'd need to do when building a game - user settings management, music playback, object scripting, art pipeline management... the list goes on. PixiJS is designed to do one thing really well - render graphical content. This lets us focus on keeping up with new technology, and makes downloading PixiJS blazingly fast.

... A 3D Renderer

PixiJS is built for 2D. Platformers, adventure games, interactive ads, custom data visualization... all good. But if you want to render 3D models, you might want to check out babylon.js or three.js.

... A Mobile App

If you're looking to build mobile games, you can do it with PixiJS, but you'll need to use a deployment system like Apache Cordova if you want access to native bindings. We don't provide access to the camera, location services, notifications, etc.

... A UI Library

Building a truly generic UI system is a huge challenge, as anyone who has worked with Unity's UI tools can attest. We've chosen to avoid the complexity to stay true to our core focus on speed. While you can certainly build your own UI using PixiJS's scene graph and interaction manager, we don't ship with a UI library out of the box.

... A Data Store

There are many techniques and technologies that you can use to store settings, scores, and other data. Cookies, Web Storage, server-based storage... there are many solutions, each with advantages and disadvantages. You can use any of them with PixiJS, but we don't provide tools to do so.

... An Audio Library

At least, not out of the box. Again, web audio technology is a constantly evolving challenge, with constantly changing rules and requirements across many browsers. There are a number of dedicated web audio libraries (such as Howler.js that can be used with PixiJS to play sound effects and music. Alternatively, the PixiJS Sound plugin is designed to work well with PixiJS.

... A Development Environment

There are a number of tools that are useful for building 2D art and games that you might expect to be a part of PixiJS, but we're a rendering engine, not a development environment. Packing sprite sheets, processing images, building mipmaps or Retina-ready sprites - there are great standalone tools for this type of tooling. Where appropriate throughout the guides, we'll point you to tools that may be useful.

So Is PixiJS Right For Me?

Only you know! If you're looking for a tightly focused, fast and efficient rendering engine for your next web-based project, PixiJS is likely a great fit.

If you need a full game development framework, with native bindings and a rich UI library, you may want to explore other options.

Or you may not. It can be faster and easier to build just the subset of a full framework that your project needs than it can be to digest a monolithic API with bells and whistles you don't need. There are hundreds of complex, rich games and visual projects that use PixiJS for rendering, with plugins or custom code to add the UI and sound effects. There are benefits to both approaches. Regardless, we hope you have a better feel for what PixiJS can (and cannot!) offer your project.

- - + + \ No newline at end of file diff --git a/7.x/guides/basics/what-pixijs-is.html b/7.x/guides/basics/what-pixijs-is.html index aca84b868..420ed8caf 100644 --- a/7.x/guides/basics/what-pixijs-is.html +++ b/7.x/guides/basics/what-pixijs-is.html @@ -9,13 +9,13 @@ - - + +
Skip to main content

What PixiJS Is

So what exactly is PixiJS? At its heart, PixiJS is a rendering system that uses WebGL (or optionally Canvas) to display images and other 2D visual content. It provides a full scene graph (a hierarchy of objects to render), and provides interaction support to enable handling click and touch events. It is a natural replacement for Flash in the modern HTML5 world, but provides better performance and pixel-level effects that go beyond what Flash could achieve. It is perfect for online games, educational content, interactive ads, data visualization... any web-based application where complex graphics are important. And coupled with technology such as Cordova and Electron, PixiJS apps can be distributed beyond the browser as mobile and desktop applications.

Here's what else you get with PixiJS:

PixiJS Is ... Fast

One of the major features that distinguishes PixiJS from other web-based rendering solutions is speed. From the ground up, the render pipeline has been built to get the most performance possible out of your users' browsers. Automatic sprite and geometry batching, careful use of WebGL resources, a tight scene graph - no matter your application, speed is valuable, and PixiJS has it to spare.

... More Than Just Sprites

Drawing images on a page can be handled with HTML5 and the DOM, so why use PixiJS? Beyond performance, the answer is that PixiJS goes well beyond simple images. Draw trails and tracks with SimpleRope. Draw polygons, lines, circles and other primitives with Graphics. Text provides full text rendering support that's just as performant as sprites. And even when drawing simple images, PixiJS natively supports spritesheets for efficient loading and ease of development.

... WebGL Native

WebGL is the JavaScript API for accessing users' GPUs for fast rendering and advanced effects. PixiJS leverages WebGL to display thousands of moving sprites efficiently even on mobile devices. But using WebGL offers more than just speed. By using the Filter class, you can write shader programs (or use pre-built ones!) to achieve displacement maps, blurring, and other advanced visual effects that cannot be accomplished with just the DOM or Canvas APIs.

... Open Source

Want to understand how the engine works? Trying to track down a bug? Been burned by closed-source projects going dark? With PixiJS, you get a mature project with full source code access. We're MIT licensed for compatibility, and hosted on GitHub for issue tracking and ease of access.

... Extensible

Open source helps. So does being based on JavaScript. But the real reason PixiJS is easy to extend is the clean internal API that underlies every part of the system. After years of development and 5 major releases, PixiJS is ready to make your project a success, no matter what your needs.

... Easy to Deploy

Flash required the player. Unity requires an installer or app store. PixiJS requires... a browser. Deploying PixiJS on the web is exactly like deploying a web site. That's all it is - JavaScript + images + audio, like you've done a hundred times. Your users simply visit a URL, and your game or other content is ready to run. But it doesn't stop at the web. If you want to deploy a mobile app, wrap your PixiJS code in Cordova. Want to deploy a standalone desktop program? Build an Electron wrapper, and you're ready to rock.

- - + + \ No newline at end of file diff --git a/7.x/guides/components/assets.html b/7.x/guides/components/assets.html index 51b05fbc0..788522ecb 100644 --- a/7.x/guides/components/assets.html +++ b/7.x/guides/components/assets.html @@ -9,8 +9,8 @@ - - + +
@@ -23,7 +23,7 @@ See the following example:

However, if you want to take full advantage of @pixi/Assets you should use bundles. Bundles are just a way to group assets together and can be added manually by calling PIXI.Assets.addBundle(...)/PIXI.Assets.loadBundle(...).

  PIXI.Assets.addBundle('animals', {
bunny: 'bunny.png',
chicken: 'chicken.png',
thumper: 'thumper.png',
});

const assets = await PIXI.Assets.loadBundle('animals');

However, the best way to handle bundles is to use a manifest and call PIXI.Assets.init({manifest}) with said manifest (or even better, an URL pointing to it). Splitting our assets into bundles that correspond to screens or stages of our app will come in handy for loading in the background while the user is using the app instead of locking them in a single monolithic loading screen.

{
"bundles":[
{
"name":"load-screen",
"assets":[
{
"name":"background",
"srcs":"sunset.png"
},
{
"name":"bar",
"srcs":"load-bar.{png,webp}"
}
]
},
{
"name":"game-screen",
"assets":[
{
"name":"character",
"srcs":"robot.png"
},
{
"name":"enemy",
"srcs":"bad-guy.png"
}
]
}
]
}
PIXI.Assets.init({manifest: "path/manifest.json"});

Beware that you can only call init once.

Remember there is no downside in repeating URLs since they will all be cached, so if you need the same asset in two bundles you can duplicate the request without any extra cost!

Background loading

The old approach to loading was to use PIXI.Loader to load all your assets at the beginning of your app, but users are less patient now and want content to be instantly available so the practices are moving towards loading the bare minimum needed to show the user some content and, while they are interacting with that, we keep loading the following content in the background.

Luckily, @pixi/assets has us covered with a system that allows us to load everything in the background and in case we need some assets right now, bump them to the top of the queue so we can minimize loading times.

To achieve this, we have the methods PIXI.Assets.backgroundLoad(...) and PIXI.Assets.backgroundLoadBundle(...) that will passively begin to load these assets in the background. So when you finally come to loading them you will get a promise that resolves to the loaded assets immediately.

When you finally need the assets to show, you call the usual PIXI.Assets.load(...) or PIXI.Assets.loadBundle(...) and you will get the corresponding promise.

The best way to do this is using bundles, see the following example:

We create one bundle for each screen our game will have and set them all to start downloading at the beginning of our app. If the user progresses slowly enough in our app then they should never get to see a loading screen after the first one!

- - + + \ No newline at end of file diff --git a/7.x/guides/components/containers.html b/7.x/guides/components/containers.html index d74550ae3..51a78a360 100644 --- a/7.x/guides/components/containers.html +++ b/7.x/guides/components/containers.html @@ -9,13 +9,13 @@ - - + +
Skip to main content

Containers

The Container class provides a simple display object that does what its name implies - collect a set of child objects together. But beyond grouping objects, containers have a few uses that you should be aware of.

Containers as Groups

Almost every type of display object is also derived from Container - even Sprites! This means that in many cases you can create a parent-child hierarchy with the objects you want to render.

However, it's a good idea not to do this. Standalone Container objects are very cheap to render, and having a proper hierarchy of Container objects, each containing one or more renderable objects, provides flexibility in rendering order. It also future-proofs your code, as when you need to add an additional object to a branch of the tree, your animation logic doesn't need to change - just drop the new object into the proper Container, and your logic moves the Container with no changes to your code.

So that's the primary use for Containers - as groups of renderable objects in a hierarchy.

Check out the container example code.

Masking

Another common use for Container objects is as hosts for masked content. "Masking" is a technique where parts of your scene graph are only visible within a given area.

Think of a pop-up window. It has a frame made of one or more Sprites, then has a scrollable content area that hides content outside the frame. A Container plus a mask makes that scrollable area easy to implement. Add the Container, set its mask property to a Graphics object with a rect, and add the text, image, etc. content you want to display as children of that masked Container. Any content that extends beyond the rectangular mask will simply not be drawn. Move the contents of the Container to scroll as desired.

// Create the application helper and add its render target to the page
let app = new PIXI.Application({ width: 640, height: 360 });
document.body.appendChild(app.view);

// Create window frame
let frame = new PIXI.Graphics();
frame.beginFill(0x666666);
frame.lineStyle({ color: 0xffffff, width: 4, alignment: 0 });
frame.drawRect(0, 0, 208, 208);
frame.position.set(320 - 104, 180 - 104);
app.stage.addChild(frame);

// Create a graphics object to define our mask
let mask = new PIXI.Graphics();
// Add the rectangular area to show
mask.beginFill(0xffffff);
mask.drawRect(0,0,200,200);
mask.endFill();

// Add container that will hold our masked content
let maskContainer = new PIXI.Container();
// Set the mask to use our graphics object from above
maskContainer.mask = mask;
// Add the mask as a child, so that the mask is positioned relative to its parent
maskContainer.addChild(mask);
// Offset by the window's frame width
maskContainer.position.set(4,4);
// And add the container to the window!
frame.addChild(maskContainer);

// Create contents for the masked container
let text = new PIXI.Text(
'This text will scroll up and be masked, so you can see how masking works. Lorem ipsum and all that.\n\n' +
'You can put anything in the container and it will be masked!',
{
fontSize: 24,
fill: 0x1010ff,
wordWrap: true,
wordWrapWidth: 180
}
);
text.x = 10;
maskContainer.addChild(text);

// Add a ticker callback to scroll the text up and down
let elapsed = 0.0;
app.ticker.add((delta) => {
// Update the text's y coordinate to scroll it
elapsed += delta;
text.y = 10 + -100.0 + Math.cos(elapsed/50.0) * 100.0;
});

There are two types of masks supported by PixiJS:

Use a Graphics object to create a mask with an arbitrary shape - powerful, but doesn't support anti-aliasing

Sprite: Use the alpha channel from a Sprite as your mask, providing anti-aliased edging - not supported on the Canvas renderer

Filtering

Another common use for Container objects is as hosts for filtered content. Filters are an advanced, WebGL-only feature that allows PixiJS to perform per-pixel effects like blurring and displacements. By setting a filter on a Container, the area of the screen the Container encompasses will be processed by the filter after the Container's contents have been rendered.

Below are list of filters available by default in PixiJS. There is, however, a community repository with many more filters.

FilterDescription
AlphaFilter: @pixi/filter-alphaSimilar to setting alpha property, but flattens the Container instead of applying to children individually.
BlurFilter: @pixi/filter-blurApply a blur effect
ColorMatrixFilter: @pixi/filter-color-matrixA color matrix is a flexible way to apply more complex tints or color transforms (e.g., sepia tone).
DisplacementFilter: @pixi/filter-displacementDisplacement maps create visual offset pixels, for instance creating a wavy water effect.
FXAAFilter: @pixi/filter-fxaaBasic FXAA (Fast Approximate Anti-Aliasing) to create smoothing effect.
NoiseFilter: @pixi/filter-noiseCreate random noise (e.g., grain effect).

Important: Filters should be use somewhat sparingly. They can slow performance and increase memory if used too often in a scene.

- - + + \ No newline at end of file diff --git a/7.x/guides/components/display-object.html b/7.x/guides/components/display-object.html index ad69aa0c1..6dd54d6b7 100644 --- a/7.x/guides/components/display-object.html +++ b/7.x/guides/components/display-object.html @@ -9,13 +9,13 @@ - - + +
Skip to main content

Display Objects

DisplayObject is the core class for anything that can be rendered by the engine. It's the base class for sprites, text, complex graphics, containers, etc., and provides much of the common functionality for those objects. As you're learning PixiJS, it's important to read through the documentation for this class to understand how to move, scale, rotate and compose the visual elements of your project.

Be aware that you won't use DisplayObject directly - you'll use its functions and attributes in derived classes.

Commonly Used Attributes

The most common attributes you'll use when laying out and animating content in PixiJS are provided by the DisplayObject class:

PropertyDescription
positionX- and Y-position are given in pixels and change the position of the object relative to its parent, also available directly as object.x / object.y
rotationRotation is specified in radians, and turns an object clockwise (0.0 - 2 * Math.PI)
angleAngle is an alias for rotation that is specified in degrees instead of radians (0.0 - 360.0)
pivotPoint the object rotates around, in pixels - also sets origin for child objects
alphaOpacity from 0.0 (fully transparent) to 1.0 (fully opaque), inherited by children
scaleScale is specified as a percent with 1.0 being 100% or actual-size, and can be set independently for the x and y axis
skewSkew transforms the object in x and y similar to the CSS skew() function, and is specified in radians
visibleWhether the object is visible or not, as a boolean value - prevents updating and rendering object and children
renderableWhether the object should be rendered - when false, object will still be updated, but won't be rendered, doesn't affect children
- - + + \ No newline at end of file diff --git a/7.x/guides/components/graphics.html b/7.x/guides/components/graphics.html index d0846f436..a9dd874f8 100644 --- a/7.x/guides/components/graphics.html +++ b/7.x/guides/components/graphics.html @@ -9,13 +9,13 @@ - - + +
Skip to main content

Graphics

Graphics is a complex and much misunderstood tool in the PixiJS toolbox. At first glance, it looks like a tool for drawing shapes. And it is! But it can also be used to generate masks. How does that work?

In this guide, we're going to de-mystify the Graphics object, starting with how to think about what it does.

Check out the graphics example code.

Graphics Is About Building - Not Drawing

First-time users of the PIXI.Graphics class often struggle with how it works. Let's look at an example snippet that creates a Graphics object and draws a rectangle:

// Create a Graphics object, set a fill color, draw a rectangle
let obj = new PIXI.Graphics();
obj.beginFill(0xff0000);
obj.drawRect(0, 0, 200, 100);

// Add it to the stage to render
app.stage.addChild(obj);

That code will work - you'll end up with a red rectangle on the screen. But it's pretty confusing when you start to think about it. Why am I drawing a rectangle when constructing the object? Isn't drawing something a one-time action? How does the rectangle get drawn the second frame? And it gets even weirder when you create a Graphics object with a bunch of drawThis and drawThat calls, and then you use it as a mask. What???

The problem is that the function names are centered around drawing, which is an action that puts pixels on the screen. But in spite of that, the Graphics object is really about building.

Let's look a bit deeper at that drawRect() call. When you call drawRect(), PixiJS doesn't actually draw anything. Instead, it stores the rectangle you "drew" into a list of geometry for later use. If you then add the Graphics object to the scene, the renderer will come along, and ask the Graphics object to render itself. At that point, your rectangle actually gets drawn - along with any other shapes, lines, etc. that you've added to the geometry list.

Once you understand what's going on, things start to make a lot more sense. When you use a Graphics object as a mask, for example, the masking system uses that list of graphics primitives in the geometry list to constrain which pixels make it to the screen. There's no drawing involved.

That's why it helps to think of the Graphics class not as a drawing tool, but as a geometry building tool.

Types of Primitives

There are a lot of functions in the PIXI.Graphics class, but as a quick orientation, here's the list of basic primitives you can add:

  • Line
  • Rect
  • RoundRect
  • Circle
  • Ellipse
  • Arc
  • Bezier and Quadratic Curve

In addition, the Graphics Extras package (@pixi/graphics-extras) optionally includes the following complex primitives:

  • Torus
  • Chamfer Rect
  • Fillet Rect
  • Regular Polygon
  • Star
  • Rounded Polygon

The Geometry List

Inside every Graphics object is a GraphicsGeometry object. The GraphicsGeometry class manages the list of geometry primitives created by the Graphics parent object. For the most part, you will not work directly with this object. The owning Graphics object creates and manages it. However, there are two related cases where you do work with the list.

First, you can re-use geometry from one Graphics object in another. No matter whether you're re-drawing the same shape over and over, or re-using it as a mask over and over, it's more efficient to share identical GraphicsGeometry. You can do this like so:

// Create a master graphics object
let template = new PIXI.Graphics();
// Add a circle
template.drawCircle(100, 100, 50);

// Create 5 duplicate objects
for (let i = 0; i < 5; i++) {
// Initialize the duplicate using our template's pre-built geometry
let duplicate = new PIXI.Graphics(template.geometry);
}

This leads to the second time you need to be aware of the underlying GraphicsGeometry object - avoiding memory leaks. Because Graphics objects can share geometry, you must call destroy() when you no longer need them. Failure to do so will prevent the GraphicsGeometry object it owns from being properly de-referenced, and will lead to memory leaks.

Graphics For Display

OK, so now that we've covered how the PIXI.Graphics class works, let's look at how you use it. The most obvious use of a Graphics object is to draw dynamically generated shapes to the screen.

Doing so is simple. Create the object, call the various builder functions to add your custom primitives, then add the object to the scene graph. Each frame, the renderer will come along, ask the Graphics object to render itself, and each primitive, with associated line and fill styles, will be drawn to the screen.

Graphics as a Mask

You can also use a Graphics object as a complex mask. To do so, build your object and primitives as usual. Next create a PIXI.Container object that will contain the masked content, and set its mask property to your Graphics object. The children of the container will now be clipped to only show through inside the geometry you've created. This technique works for both WebGL and Canvas-based rendering.

Check out the masking example code.

Caveats and Gotchas

The Graphics class is a complex beast, and so there are a number of things to be aware of when using it.

Memory Leaks: The first has already been mentioned - call destroy() on any Graphics object you no longer need to avoid memory leaks.

Holes: Holes you create have to be completely contained in the shape or else it may not be able to triangulate correctly.

Changing Geometry: If you want to change the shape of a Graphics object, you don't need to delete and recreate it. Instead you can use the clear() function to reset the contents of the geometry list, then add new primitives as desired. Be careful of performance when doing this every frame.

Performance: Graphics objects are generally quite performant. However, if you build highly complex geometry, you may pass the threshold that permits batching during rendering, which can negatively impact performance. It's better for batching to use many Graphics objects instead of a single Graphics with many shapes.

Transparency: Because the Graphics object renders its primitives sequentially, be careful when using blend modes or partial transparency with overlapping geometry. Blend modes like ADD and MULTIPLY will work on each primitive, not on the final composite image. Similarly, partially transparent Graphics objects will show primitives overlapping. To apply transparency or blend modes to a single flattened surface, consider using AlphaFilter or RenderTexture.

- - + + \ No newline at end of file diff --git a/7.x/guides/components/interaction.html b/7.x/guides/components/interaction.html index 10eaf121b..87917c784 100644 --- a/7.x/guides/components/interaction.html +++ b/7.x/guides/components/interaction.html @@ -9,13 +9,13 @@ - - + +
Skip to main content

Interaction

PixiJS is primarily a rendering system, but it also includes support for interactivity. Adding support for mouse and touch events to your project is simple and consistent.

Event Modes

The new event-based system that replaced InteractionManager from v6 has expanded the definition of what a DisplayObject means to be interactive. With this we have introduced eventMode which allows you to control how an object responds to interaction events. This is similar to the interactive property in v6 but with more options.

eventModeDescription
noneIgnores all interaction events, similar to CSS's pointer-events: none, good optimization for non-interactive children
passiveDoes not emit events and ignores hit testing on itself but does allow for events and hit testing only its interactive children. If you want to be compatible with v6, set this as your default eventMode (see options in Renderer, Application, etc)
autoDoes not emit events and but is hit tested if parent is interactive. Same as interactive = false in v7
staticEmit events and is hit tested. Same as interaction = true in v7, useful for objects like buttons that do not move.
dynamicEmits events and is hit tested but will also receive mock interaction events fired from a ticker to allow for interaction when the mouse isn't moving. This is useful for elements that independently moving or animating.

Event Types

PixiJS supports the following event types:

Event TypeDescription
pointercancelFired when a pointer device button is released outside the display object that initially registered a pointerdown.
pointerdownFired when a pointer device button is pressed on the display object.
pointerenterFired when a pointer device enters the display object.
pointerleaveFired when a pointer device leaves the display object.
pointermoveFired when a pointer device is moved while over the display object.
globalpointermoveFired when a pointer device is moved, regardless of hit-testing the current object.
pointeroutFired when a pointer device is moved off the display object.
pointeroverFired when a pointer device is moved onto the display object.
pointertapFired when a pointer device is tapped twice on the display object.
pointerupFired when a pointer device button is released over the display object.
pointerupoutsideFired when a pointer device button is released outside the display object that initially registered a pointerdown.
mousedown Fired when a mouse button is pressed on the display object.
mouseenterFired when the mouse cursor enters the display object.
mouseleaveFired when the mouse cursor leaves the display object.
mousemove Fired when the mouse cursor is moved while over the display object.
globalmousemoveFired when a mouse is moved, regardless of hit-testing the current object.
mouseout Fired when the mouse cursor is moved off the display object.
mouseover Fired when the mouse cursor is moved onto the display object.
mouseup Fired when a mouse button is released over the display object.
mouseupoutside Fired when a mouse button is released outside the display object that initially registered a mousedown.
click Fired when a mouse button is clicked (pressed and released) over the display object.
touchcancel Fired when a touch point is removed outside of the display object that initially registered a touchstart.
touchend Fired when a touch point is removed from the display object.
touchendoutside Fired when a touch point is removed outside of the display object that initially registered a touchstart.
touchmove Fired when a touch point is moved along the display object.
globaltouchmoveFired when a touch point is moved, regardless of hit-testing the current object.
touchstart Fired when a touch point is placed on the display object.
tap Fired when a touch point is tapped twice on the display object.
wheel Fired when a mouse wheel is spun over the display object.
rightclick Fired when a right mouse button is clicked (pressed and released) over the display object.
rightdown Fired when a right mouse button is pressed on the display object.
rightup Fired when a right mouse button is released over the display object.
rightupoutside Fired when a right mouse button is released outside the display object that initially registered a rightdown.

Enabling Interaction

Any DisplayObject-derived object (Sprite, Container, etc.) can become interactive simply by setting its eventMode property to any of the eventModes listed above. Doing so will cause the object to emit interaction events that can be responded to in order to drive your project's behavior.

Check out the interaction example code.

To respond to clicks and taps, bind to the events fired on the object, like so:

let sprite = PIXI.Sprite.from('/some/texture.png');
sprite.on('pointerdown', (event) => { alert('clicked!'); });
sprite.eventMode = 'static';

Check out the DisplayObject for the list of interaction events supported.

Checking if Object is Interactive

You can check if an object is interactive by calling the isInteractive property. This will return true if eventMode is set to static or dynamic.

if (sprite.isInteractive()) {
// sprite is interactive
}

Use Pointer Events

PixiJS supports three types of interaction events - mouse, touch and pointer. Mouse events are fired by mouse movement, clicks etc. Touch events are fired for touch-capable devices. And pointer events are fired for both.

What this means is that, in many cases, you can write your project to use pointer events and it will just work when used with either mouse or touch input. Given that, the only reason to use non-pointer events is to support different modes of operation based on input type or to support multi-touch interaction. In all other cases, prefer pointer events.

Optimization

Hit testing requires walking the full object tree, which in complex projects can become an optimization bottleneck. To mitigate this issue, PixiJS Container-derived objects have a property named interactiveChildren. If you have Containers or other objects with complex child trees that you know will never be interactive, you can set this property to false and the hit testing algorithm will skip those children when checking for hover and click events. As an example, if you were building a side-scrolling game, you would probably want to set background.interactiveChildren = false for your background layer with rocks, clouds, flowers, etc. Doing so would speed up hit testing substantially due to the number of unclickable child objects the background layer would contain.

The EventSystem can also be customised to be more performant:

const app = new PIXI.Application({
/**
* by default we use `auto` for backwards compatibility.
* However `passive` is more performant and will be used by default in the future,
*/
eventMode: 'passive',
eventFeatures: {
move: true,
/** disables the global move events which can be very expensive in large scenes */
globalMove: false,
click: true,
wheel: true,
}
});
- - + + \ No newline at end of file diff --git a/7.x/guides/components/sprite-sheets.html b/7.x/guides/components/sprite-sheets.html index 6d49d0591..169e67ba1 100644 --- a/7.x/guides/components/sprite-sheets.html +++ b/7.x/guides/components/sprite-sheets.html @@ -9,13 +9,13 @@ - - + +
Skip to main content

Spritesheets

Now that you understand basic sprites, it's time to talk about a better way to create them - the Spritesheet class.

A Spritesheet is a media format for more efficiently downloading and rendering Sprites. While somewhat more complex to create and use, they are a key tool in optimizing your project.

Anatomy of a Spritesheet

The basic idea of a spritesheet is to pack a series of images together into a single image, track where each source image ends up, and use that combined image as a shared BaseTexture for the resulting Sprites.

The first step is to collect the images you want to combine. The sprite packer then collects the images, and creates a new combined image.

As this image is being created, the tool building it keeps track of the location of the rectangle where each source image is stored. It then writes out a JSON file with that information.

These two files, in combination, can be passed into a SpriteSheet constructor. The SpriteSheet object then parses the JSON, and creates a series of Texture objects, one for each source image, setting the source rectangle for each based on the JSON data. Each texture uses the same shared BaseTexture as its source.

Doubly Efficient

SpriteSheets help your project in two ways.

First, by speeding up the loading process. While downloading a SpriteSheet's texture requires moving the same (or even slightly more!) number of bytes, they're grouped into a single file. This means that the user's browser can request and download far fewer files for the same number of Sprites. The number of files itself is a key driver of download speed, because each request requires a round-trip to the webserver, and browsers are limited to how many files they can download simultaneously. Converting a project from individual source images to shared sprite sheets can cut your download time in half, at no cost in quality.

Second, by improving batch rendering. WebGL rendering speed scales roughly with the number of draw calls made. Batching multiple Sprites, etc. into a single draw call is the main secret to how PixiJS can run so blazingly fast. Maximizing batching is a complex topic, but when multiple Sprites all share a common BaseTexture, it makes it more likely that they can be batched together and rendered in a single call.

Creating SpriteSheets

You can use a 3rd party tool to assemble your sprite sheet files. Here are two that may fit your needs:

ShoeBox: ShoeBox is a free, Adobe AIR-based sprite packing utility that is great for small projects or learning how SpriteSheets work.

TexturePacker: TexturePacker is a more polished tool that supports advanced features and workflows. A free version is available which has all the necessary features for packing spritesheets for PixiJS. It's a good fit for larger projects and professional game development, or projects that need more complex tile mapping features.

Spritesheet data can also be created manually or programmatically, and supplied to a new AnimatedSprite. This may be an easier option if your sprites are already contained in a single image.

// Create object to store sprite sheet data
const atlasData = {
frames: {
enemy1: {
frame: { x: 0, y:0, w:32, h:32 },
sourceSize: { w: 32, h: 32 },
spriteSourceSize: { x: 0, y: 0, w: 32, h: 32 }
},
enemy2: {
frame: { x: 32, y:0, w:32, h:32 },
sourceSize: { w: 32, h: 32 },
spriteSourceSize: { x: 0, y: 0, w: 32, h: 32 }
},
},
meta: {
image: 'images/spritesheet.png',
format: 'RGBA8888',
size: { w: 128, h: 32 },
scale: 1
},
animations: {
enemy: ['enemy1','enemy2'] //array of frames by name
}
}


// Create the SpriteSheet from data and image
const spritesheet = new PIXI.Spritesheet(
PIXI.BaseTexture.from(atlasData.meta.image),
atlasData
);

// Generate all the Textures asynchronously
await spritesheet.parse();

// spritesheet is ready to use!
const anim = new PIXI.AnimatedSprite(spritesheet.animations.enemy);

// set the animation speed
anim.animationSpeed = 0.1666;
// play the animation on a loop
anim.play();
// add it to the stage to render
app.stage.addChild(anim);
- - + + \ No newline at end of file diff --git a/7.x/guides/components/sprites.html b/7.x/guides/components/sprites.html index b8d825db5..077231c36 100644 --- a/7.x/guides/components/sprites.html +++ b/7.x/guides/components/sprites.html @@ -9,13 +9,13 @@ - - + +
Skip to main content

Sprites

Sprites are the simplest and most common renderable object in PixiJS. They represent a single image to be displayed on the screen. Each Sprite contains a Texture to be drawn, along with all the transformation and display state required to function in the scene graph.

Creating Sprites

To create a Sprite, all you need is a Texture (check out the Texture guide). Load a PNG's URL using the PIXI.Loader class, then call PIXI.Sprite.from(url) and you're all set. As a convenience during prototyping, you can pass a non-loaded URL to from() and PixiJS will handle it, but your sprite will "pop in" after it loads if you don't pre-load your textures.

Check out the sprite example code.

Using Sprites

In our DisplayObject guide, we learned about the DisplayObject class and the various properties it defines. Since Sprite objects are also display objects, you can move a sprite, rotate it, and update any other display property.

Alpha, Tint and Blend Modes

Alpha is a standard display object property. You can use it to fade sprites into the scene by animating each sprite's alpha from 0.0 to 1.0 over a period of time.

Tinting allows you multiply the color value of every pixel by a single color. For example, if you had a dungeon game, you might show a character's poison status by setting obj.tint = 0x00FF00, which would give a green tint to the character.

Blend modes change how pixel colors are added to the screen when rendering. The three main modes are add, which adds each pixel's RGB channels to whatever is under your sprite (useful for glows and lighting), multiply which works like tint, but on a per-pixel basis, and screen, which overlays the pixels, brightening whatever is underneath them.

Scale vs Width & Height

One common area of confusion when working with sprites lies in scaling and dimensions. The PIXI.DisplayObject class allows you to set the x and y scale for any object. Sprites, being DisplayObjects, also support scaling. In addition, however, Sprites support explicit width and height attributes that can be used to achieve the same effect, but are in pixels instead of a percentage. This works because a Sprite object owns a Texture, which has an explicit width and height. When you set a Sprite's width, internally PixiJS converts that width into a percentage of the underlying texture's width and updates the object's x-scale. So width and height are really just convenience methods for changing scale, based on pixel dimensions rather than percentages.

Pivot vs Anchor

If you add a sprite to your stage and rotate it, it will by default rotate around the top-left corner of the image. In some cases, this is what you want. In many cases, however, what you want is for the sprite to rotate around the center of the image it contains, or around an arbitrary point.

There are two ways to achieve this: pivots and anchors

An object's pivot is an offset, expressed in pixels, from the top-left corner of the Sprite. It defaults to (0, 0). If you have a Sprite whose texture is 100px x 50px, and want to set the pivot point to the center of the image, you'd set your pivot to (50, 25) - half the width, and half the height. Note that pivots can be set outside of the image, meaning the pivot may be less than zero or greater than the width/height. This can be useful in setting up complex animation hierarchies, for example. Every DisplayObject has a pivot.

An anchor, in contrast, is only available for Sprites. Anchors are specified in percentages, from 0.0 to 1.0, in each dimension. To rotate around the center point of a texture using anchors, you'd set your Sprite's anchor to (0.5, 0.5) - 50% in width and height. While less common, anchors can also be outside the standard 0.0 - 1.0 range.

The nice thing about anchors is that they are resolution and dimension agnostic. If you set your Sprite to be anchored in the middle then later change the size of the texture, your object will still rotate correctly. If you had instead set a pivot using pixel-based calculations, changing the texture size would require changing your pivot point.

So, generally speaking, you'll want to use anchors when working with Sprites.

One final note: unlike CSS, where setting the transform-origin of the image doesn't move it, in PixiJS setting an anchor or pivot will move your object on the screen. In other words, setting an anchor or pivot affects not just the rotation origin, but also the position of the sprite relative to its parent.

- - + + \ No newline at end of file diff --git a/7.x/guides/components/text.html b/7.x/guides/components/text.html index 52b26ec21..8869c3b42 100644 --- a/7.x/guides/components/text.html +++ b/7.x/guides/components/text.html @@ -9,13 +9,13 @@ - - + +
Skip to main content

Text

Whether it's a high score or a diagram label, text is often the best way to convey information in your projects. Surprisingly, drawing text to the screen with WebGL is a very complex process - there's no built in support for it at all. One of the values PixiJS provides is in hiding this complexity to allow you to draw text in diverse styles, fonts and colors with a few lines of code. In addition, these bits of text are just as much scene objects as sprites - you can tint text, rotate it, alpha-blend it, and otherwise treat it like any other graphical object.

Let's dig into how this works.

There Are Two Kinds of Text

Because of the challenges of working with text in WebGL, PixiJS provides two very different solutions. In this guide, we're going to go over both methods in some detail to help you make the right choice for your project's needs. Selecting the wrong text type can have a large negative impact on your project's performance and appearance.

The Text Object

In order to draw text to the screen, you use a Text object. Under the hood, this class draws text to an off-screen buffer using the browser's normal text rendering, then uses that offscreen buffer as the source for drawing the text object. Effectively what this means is that whenever you create or change text, PixiJS creates a new rasterized image of that text, and then treats it like a sprite. This approach allows truly rich text display while keeping rendering speed high.

So when working with PIXI.Text objects, there are two sets of options - standard display object options like position, rotation, etc that work after the text is rasterized internally, and text style options that are used while rasterizing. Because text once rendered is basically just a sprite, there's no need to review the standard options. Instead, let's focus on how text is styled.

Check out the text example code.

Text Styles

There are a lot of text style options available (see TextStyle), but they break down into 5 main groups:

Font: fontFamily to select the webfont to use, fontSize to specify the size of the text to draw, along with options for font weight, style and variant.

Appearance: Set the color with fill or add a stroke outline, including options for gradient fills.

Drop-Shadows: Set a drop-shadow with dropShadow, with a host of related options to specify offset, blur, opacity, etc.

Layout: Enable with wordWrap and wordWrapWidth, and then customize the lineHeight and align or letterSpacing

Utilities: Add padding or trim extra space to deal with funky font families if needed.

To interactively test out feature of Text Style, check out this tool.

Loading and Using Fonts

In order for PixiJS to build a PIXI.Text object, you'll need to make sure that the font you want to use is loaded by the browser. Unfortunately, at the time of writing, the PIXI.Loader system does not support loading font files, so you'll need to use a 3rd party font loader to ensure that any custom web fonts you want to use are pre-loaded. It's not enough to add an @font-face declaration in your project's CSS because browsers will happily render text using a fallback font while your custom font loads.

Any javascript library that can load a web font will work, you just want something that will delay starting your project until the font has been fully loaded by the browser.

One such library is FontFaceObserver. Here's a simple example that shows how to use it to ensure the web font "Short Stack" is loaded before your app starts. First, we need a font-face declaration in CSS:

@font-face {
font-family: Short Stack;
src: url(short-stack.woff2) format('woff2'),
url(short-stack.woff) format('woff');
}

Now that the browser knows what our font is and how to find the source files, it's time to use the library to load them:

// Create the loader
let font = new FontFaceObserver('Short Stack', {});
// Start loading the font
font.load().then(() => {
// Successful load, start up your PixiJS app as usual
let app = new PIXI.Application({ width: 640, height: 360 });
document.body.appendChild(app.view);
// ... etc ...

}, () => {
// Failed load, log the error or display a message to the user
alert('Unable to load required font!');
});

Caveats and Gotchas

While PixiJS does make working with text easy, there are a few things you need to watch out for.

First, changing an existing text string requires re-generating the internal render of that text, which is a slow operation that can impact performance if you change many text objects each frame. If your project requires lots of frequently changing text on the screen at once, consider using a PIXI.BitmapText object (explained below) which uses a fixed bitmap font that doesn't require re-generation when text changes.

Second, be careful when scaling text. Setting a text object's scale to > 1.0 will result in blurry/pixely display, because the text is not re-rendered at the higher resolution needed to look sharp - it's still the same resolution it was when generated. To deal with this, you can render at a higher initial size and down-scale, instead. This will use more memory, but will allow your text to always look clear and crisp.

BitmapText

In addition to the standard PIXI.Text approach to adding text to your project, PixiJS also supports bitmap fonts. Bitmap fonts are very different from TrueType or other general purpose fonts, in that they consist of a single image containing pre-rendered versions of every letter you want to use. When drawing text with a bitmap font, PixiJS doesn't need to render the font glyphs into a temporary buffer - it can simply copy and stamp out each character of a string from the master font image.

The primary advantage of this approach is speed - changing text frequently is much cheaper and rendering each additional piece of text is much faster due to the shared source texture.

Check out the bitmap text example code.

BitmapFont

  • 3rd party solutions
  • BitmapFont.from auto-generation

Selecting the Right Approach

PIXI.Text

  • Static text
  • Small number of text objects
  • High fidelity text rendering (kerning e.g.)
  • Text layout (line & letter spacing)

PIXI.BitmapText

  • Dynamic text
  • Large number of text objects
  • Lower memory
- - + + \ No newline at end of file diff --git a/7.x/guides/components/textures.html b/7.x/guides/components/textures.html index be59dc563..4c2787599 100644 --- a/7.x/guides/components/textures.html +++ b/7.x/guides/components/textures.html @@ -9,13 +9,13 @@ - - + +
Skip to main content

Textures

We're slowly working our way down from the high level to the low. We've talked about the scene graph, and in general about display objects that live in it. We're about to get to sprites and other simple display objects. But before we do, we need to talk about textures.

In PixiJS, textures are one of the core resources used by display objects. A texture, broadly speaking, represents a source of pixels to be used to fill in an area on the screen. The simplest example is a sprite - a rectangle that is completely filled with a single texture. But things can get much more complex.

Life-cycle of a Texture

Let's examine how textures really work, by following the path your image data travels on its way to the screen.

Here's the flow we're going to follow: Source Image > Loader > BaseTexture > Texture

Serving the Image

To start with, you have the image you want to display. The first step is to make it available on your server. This may seem obvious, but if you're coming to PixiJS from other game development systems, it's worth remembering that everything has to be loaded over the network. If you're developing locally, please be aware that you must use a webserver to test, or your images won't load due to how browsers treat local file security.

Loading the Image

To work with the image, the first step is to pull the image file from your webserver into the user's web browser. To do this, we can use PIXI.Texture.from(), which works for quick demos, but in production you'll use the Loader class. A Loader wraps and manages using an <IMG> element to tell the browser to fetch the image, and then notifies you when that has been completed. This process is asynchronous - you request the load, then time passes, then an event fires to let you know the load is completed. We'll go into the loader in a lot more depth in a later guide.

BaseTextures Own the Data

Once the Loader has done its work, the loaded <IMG> element contains the pixel data we need. But to use it to render something, PixiJS has to take that raw image file and upload it to the GPU. This brings us to the real workhorse of the texture system - the BaseTexture class. Each BaseTexture manages a single pixel source - usually an image, but can also be a Canvas or Video element. BaseTextures allow PixiJS to convert the image to pixels and use those pixels in rendering. In addition, it also contains settings that control how the texture data is rendered, such as the wrap mode (for UV coordinates outside the 0.0-1.0 range) and scale mode (used when scaling a texture).

BaseTextures are automatically cached, so that calling PIXI.Texture.from() repeatedly for the same URL returns the same BaseTexture each time. Destroying a BaseTexture frees the image data associated with it.

Textures are a View on BaseTextures

So finally, we get to the PIXI.Texture class itself! At this point, you may be wondering what the Texture object does. After all, the BaseTexture manages the pixels and render settings. And the answer is, it doesn't do very much. Textures are light-weight views on an underlying BaseTexture. Their main attribute is the source rectangle within the BaseTexture from which to pull.

If all PixiJS drew were sprites, that would be pretty redundant. But consider SpriteSheets. A SpriteSheet is a single image that contains multiple sprite images arranged within. In a Spritesheet object, a single BaseTexture is referenced by a set of Textures, one for each source image in the original sprite sheet. By sharing a single BaseTexture, the browser only downloads one file, and our batching renderer can blaze through drawing sprites since they all share the same underlying pixel data. The SpriteSheet's Textures pull out just the rectangle of pixels needed by each sprite.

That is why we have both Textures and BaseTextures - to allow sprite sheets, animations, button states, etc to be loaded as a single image, while only displaying the part of the master image that is needed.

Loading Textures

We will discuss resource loading in a later guide, but one of the most common issues new users face when building a PixiJS project is how best to load their textures. Using PIXI.Texture.from() as we do in our demo snippets will work, but will result in pop-in as each texture is loaded while your objects are already being rendered in the scene graph.

Instead, here's a quick cheat sheet of one good solution:

  1. Show a loading image
  2. Create a Loader
  3. Run all texture-based objects, add their textures to the loader
  4. Start the loader, and optionally update your loading image based on progress callbacks
  5. On loader completion, run all objects and use PIXI.Texture.from() to pull the loaded textures out of the texture cache
  6. Prepare your textures (optional - see below)
  7. Hide your loading image, start rendering your scene graph

Using this workflow ensures that your textures are pre-loaded, to prevent pop-in, and is relatively easy to code.

Regarding preparing textures: Even after you've loaded your textures, the images still need to be pushed to the GPU and decoded. Doing this for a large number of source images can be slow and cause lag spikes when your project first loads. To solve this, you can use the Prepare plugin, which allows you to pre-load textures in a final step before displaying your project.

Unloading Textures

Once you're done with a Texture, you may wish to free up the memory (both WebGL-managed buffers and browser-based) that it uses. To do so, you should call destroy() on the BaseTexture that owns the data. Remember that Textures don't manage pixel data!

This is a particularly good idea for short-lived imagery like cut-scenes that are large and will only be used once. If you want to remove all textures and wipe the slate clean, you can use the PIXI.utils.destroyTextureCache() function.

Beyond Images

As we alluded to above, you can make a Texture out of more than just images:

Video: Pass an HTML5 <VIDEO> element to PIXI.BaseTexture.from() to allow you to display video in your project. Since it's a texture, you can tint it, add filters, or even apply it to custom geometry.

Canvas: Similarly, you can wrap an HTML5 <CANVAS> element in a BaseTexture to let you use canvas's drawing methods to dynamically create a texture.

SVG: Pass in an <SVG> element or load a .svg URL, and PixiJS will attempt to rasterize it. For highly network-constrained projects, this can allow for beautiful graphics with minimal network load times.

RenderTexture: A more advanced (but very powerful!) feature is to build a Texture from a RenderTexture. This can allow for building complex geometry using a Geometry object, then baking that geometry down to a simple texture.

Each of these texture sources has caveats and nuances that we can't cover in this guide, but they should give you a feeling for the power of PixiJS's texture system.

Check out the render texture example code.

- - + + \ No newline at end of file diff --git a/7.x/guides/migrations/upgrading.html b/7.x/guides/migrations/upgrading.html index 7fd9fcd46..5bf49a636 100644 --- a/7.x/guides/migrations/upgrading.html +++ b/7.x/guides/migrations/upgrading.html @@ -9,13 +9,13 @@ - - + +
Skip to main content

Upgrading PixiJS

PixiJS uses a lot of peerDependencies internally to define the relationship between packages. This has created unpredictable errors because of how npm resolves peers when bumping/upgrading (e.g., #8382, #8268, #8144, #7209).

When you're upgrading using npm please completely uninstall instead of just changing the version in your package.json:

npm uninstall pixi.js
npm install pixi.js

If you are using any PixiJS community plugins, please make sure to uninstall those too:

npm uninstall pixi.js @pixi/particle-emitter @pixi/sound
npm install pixi.js @pixi/particle-emitter @pixi/sound
- - + + \ No newline at end of file diff --git a/7.x/guides/migrations/v5.html b/7.x/guides/migrations/v5.html index e1f57e0f3..111795cc3 100644 --- a/7.x/guides/migrations/v5.html +++ b/7.x/guides/migrations/v5.html @@ -9,13 +9,13 @@ - - + +
Skip to main content

v5 Migration Guide

This document is useful for developers who are attempting to upgrading from v4 to v5. This includes gotchas and important context for understanding why your v4 code made need some subtle changes. In general, we've try to be as backward-compatible in v5 with the use of deprecation warnings in the console. There are, however, sometimes when changes are too substantial and require some additional help.

🚧 API Changes

Making WebGL First-Class

PixiJS v5 has made WebGL the first-class renderer and made CanvasRenderer to be second-class. Functionally, there's not much that changed from v4, but there are a bunch of subtle internal naming changes which could trip-up some developers upgrading to v5. For instance:

  • WebGLRenderer becomes Renderer
  • renderWebGL becomes render (in DisplayObject, Sprite, Container, etc)
  • _renderWebGL becomes _render (in DisplayObject, Container, etc)

If you created a plugin or project that previously used render on a Container (see #5510), this will probably cause your project to not render correctly. Please consider renaming your user-defined render to something else. In most other cases, you'll get a deprecation warning trying to invoke WebGL-related classes or methods, e.g., new PIXI.WebGLRenderer().

Renderer Parameters

Specifying options as a third parameter in Renderer constructor is officially dropped (same with PIXI.Application, PIXI.autoDetectRenderer & PIXI.CanvasRenderer). In v4 we supported two function signatures, but in v5 we dropped width, height, options signature. Please add width and height to options.

const renderer = new PIXI.Renderer(800, 600, { transparent: true }); // bad
const renderer = new PIXI.Renderer({ width: 800, height: 600, transparent: true }); // good
  • Note: Adding transparent: true in Renderer or Application constructor options might help with strange artifacts on some devices, but it might reduce FPS. It's much better than preserveDrawingBuffer: true.

  • If you need the v4 default behavior of resizing the canvas using css pixels, add autoDensity: true to the options.

Not everything went to params. To enable WebGL1 even if WebGL2 is available, use

PIXI.settings.PREFER_ENV = PIXI.ENV.WEBGL;

Mesh, Plane, Rope

PixiJS v5 introduces a new class called PIXI.Mesh. This allows overriding the default shader and the ability to add more attributes to geometry. For example, you can add colors to vertices.

The old v4 Mesh class has moved from PIXI.mesh.Mesh to PIXI.SimpleMesh, it extends PIXI.Mesh.

PIXI.mesh.Rope, PIXI.mesh.Plane, PIXI.mesh.NineSlicePlane have moved to PIXI.SimpleRope, PIXI.SimplePlane and PIXI.NineSlicePlane respectively.

If you used custom shaders or generated meshes in v4, you might be impacted by these changes in v5.

PIXI.SimpleMesh fields vertices, uvs, indices are wrapped inside mesh.geometry attribute buffers. For example, this is how access to buffers provided through mesh.uvBuffer property:

get uvBuffer()
{
return this.geometry.buffers[1];
}

The indices property shortcut is also missing, but you can access the data inside mesh.geometry.indexBuffer.

You can override buffer data, and notify it that data was changed, in this case buffer will be uploaded to GPU lazily. Previously in v4 mesh had several flags that indicated which attributes have to be updated and their names confused people.

Graphics Holes

Drawing holes in Graphics was very limited in v4. This only supported non-Shape drawing, like using lineTo, bezierCurveTo, etc. In v5, we improved the hole API by supporting shapes. Unfortunately, there's no deprecation strategy to support the v4 API. For instance, in v4:

const graphic = new PIXI.Graphics()
.beginFill(0xff0000)
.moveTo(0, 0)
.lineTo(100, 0)
.lineTo(100, 100)
.lineTo(0, 100)
.moveTo(10, 10)
.lineTo(90, 10)
.lineTo(90, 90)
.lineTo(10, 90)
.addHole();

Live example in v4.x

In v5, Graphics has simplified and the API changed from addHole to beginHole and endHole.

const graphic = new PIXI.Graphics()
.beginFill(0xff0000)
.drawRect(0, 0, 100, 100)
.beginHole()
.drawCircle(50, 50, 30)
.endHole();

Live example in dev

Filter Padding

In v4 filters had a default padding of 4 and in v5 this has been changed to a default of 0. This can cause some filters to look broken when used. To fix this issue simply add some padding to the filters you create.

// Glow filter from https://github.com/pixijs/pixi-filters
const filter = new PIXI.filters.GlowFilter();
filter.padding = 4;

Some filters, like BlurFilter, automatically calculate the padding so changes may not be necessary.

Filter Default Vertex Shader

We reorganized all uniforms dedicated to coordinate system transforms, and renamed them. If your filter doesn't work anymore, check if you use default vertex shader. In that case, you can use old v4 vertex shader code.

All changes are explained in [[Creating Filters|v5-Creating-filters]]

Enable Mipmapping for RenderTexture

Previously, you may have ended up with code like this in v4 (specifically if you saw Ivan's comment/JSFiddle):

const renderer = PIXI.autoDetectRenderer();
renderer.bindTexture(baseRenderTex, false, 0);
const glTex = baseRenderTex._glTextures[renderer.CONTEXT_UID];
glTex.enableMipmap(); // this is what actually generates mipmaps in WebGL
glTex.enableLinearScaling(); // this is what tells WebGL to USE those mipmaps

In v5, this code is no longer needed.

BaseTexture Resources

One of the newest features in v5 is that we decoupled all the asset-specific functionality from BaseTexture. We created a new system called "resources" and each BaseTexture now has a resource that wraps some specific asset type. For instance: VideoResource, SVGResource, ImageResource, CanvasResource. In the future, we hope to be able to add other resource types. If there were asset-specific methods or properties being called before, these will probably be on baseTexture.resource.

Also, we removed all of the from* methods from BaseTexture, so you just can call BaseTexture.from and pass in whatever resource. Please see docs for more information about from.

const canvas = document.createElement('canvas');
const baseTexture = PIXI.BaseTexture.from(canvas);

That API also allows to use pure WebGL and 2d context calls, see the gradient example.

BaseTexture.source

Has been moved to baseTexture.resource.source, moved into resource corresponding to the baseTexture. baseTexture.resource does not exist for RenderTexture, and source does not exist for resources that dont have source.

Graphics Interaction

If you use transparent interactive graphics trick, make sure that you use specify alpha=0 for all element, not for its parts. How PixiJS deals with shapes that have alpha=0 is considered undefined behaviour. We might change it back, but we have no guarantees about it.

graphics.beginFill(0xffffff, 0.0); //bad
graphics.alpha = 0; //good

📦 Publishing Changes

Canvas Becomes Legacy

Since WebGL and WebGL2 are now first-class, we have removed the canvas-based fallback from the default pixi.js package. If you need CanvasRenderer, you should switch to use pixi.js-legacy instead.

import * as PIXI from "pixi.js";
// Will NOT return CanvasRenderer because canvas-based
// functionality was removed from "pixi.js"
const renderer = PIXI.autoDetectRenderer(); // return PIXI.Renderer or throws error

Instead, use the legacy bundle to have access to the canvas rendering.

import * as PIXI from "pixi.js-legacy";
const renderer = PIXI.autoDetectRenderer(); // returns PIXI.Renderer or PIXI.CanvasRenderer

Bundling Changes

If you're using Rollup, Parcel or another bundler to add PixiJS into your project there are a few subtle changes when moving to v5. Namely, the global PIXI object is no longer created automatically. This was removed from bundling for two purpose: 1) to improve tree-shaking for bundlers, and 2) for security purpose by protecting PIXI.

This is no longer a valid way to import:

import "pixi.js";
const renderer = PIXI.autoDetectRenderer(); // INVALID! No more global.PIXI!

Instead, you should import as a namespace or individual elements:

import * as PIXI from "pixi.js";
const renderer = PIXI.autoDetectRenderer();

// or even better:
import { autoDetectRenderer } from "pixi.js";
const renderer = autoDetectRenderer();

Lastly, some 3rd-party plugins maybe expecting window.PIXI, so you might have to explicitly expose the global like this, however this is not recommended.

import * as PIXI from 'pixi.js';
window.PIXI = PIXI; // some bundlers might prefer "global" instead of "window"

Webpack

When Webpack and 3rd-party plugins, like pixi-spine, you might have difficulties building the global PIXI object resulting in a runtime error ReferenceError: PIXI is not defined. Usually this can be resolved by using Webpack shimming globals.

For instance, here's your import code:

import * as PIXI from 'pixi.js';
import 'pixi-spine'; // or other plugins that need global 'PIXI' to be defined first

Add a plugins section to your webpack.config.js to let know Webpack that the global PIXI variable make reference to pixi.js module. For instance:

const webpack = require('webpack');

module.exports = {
entry: '...',
output: {
...
},
plugins: [
new webpack.ProvidePlugin({
PIXI: 'pixi.js'
})
]
}
- - + + \ No newline at end of file diff --git a/7.x/guides/migrations/v6.html b/7.x/guides/migrations/v6.html index 5283e9da4..f96beecdc 100644 --- a/7.x/guides/migrations/v6.html +++ b/7.x/guides/migrations/v6.html @@ -9,13 +9,13 @@ - - + +
Skip to main content

v6 Migration Guide

PixiJS 6 comes with few surface-level breaking changes. This document is not complete.

Typings

If you're using TypeScript, make sure the follow is added to your tsconfig.json:

{
"compilerOptions": {
"moduleResolution": "node",
// Required for importing 3rd-party dependencies like EventEmitter3
"esModuleInterop": true
}
}

Mesh Internals

If you ever overrode Mesh._renderDefault to take into account more uniforms like this: v5 Reference

if (shader.program.uniformData.translationMatrix)
{
shader.uniforms.translationMatrix = this.transform.worldTransform.toArray(true);
}

Remove the if, leave the contents, otherwise you might not get correct sync uniform for translationMatrix, or even worse - get null pointer. v6 Reference.

shader.uniforms.translationMatrix = this.transform.worldTransform.toArray(true);
- - + + \ No newline at end of file diff --git a/7.x/guides/migrations/v7.html b/7.x/guides/migrations/v7.html index 055010d10..722718c5a 100644 --- a/7.x/guides/migrations/v7.html +++ b/7.x/guides/migrations/v7.html @@ -9,15 +9,15 @@ - - + +
Skip to main content

v7 Migration Guide

First and foremost, PixiJS v7 is a modernization release that reflects changes in the ecosystem since PixiJS was first published over six years ago. Browsers have gotten better, but PixiJS hasn't really taken advantage of some of the new features like fetch, Workers, modern JavaScript language syntax. This release keeps intact much of the high-level DisplayObjects (e.g., Sprite, Graphics, Mesh, etc). Aside from a few things, this release should be medium to low impact for most users.

👋 Dropping Internet Explorer

Microsoft officially ended support for IE, so we decided to follow. It simplified many of our modernizations since IE was an outliner from Safari/Chrome/Firefox/Edge and mobile browsers. If you need support for IE, please consider using Babel or some other trans-piling tool.

🗑️ Remove Polyfills

We removed the bundled polyfills such as requestAnimationFrame and Promise. These things are widely available in browsers now. If projects require them, developers should include the polyfills they need for backward-compatibility. Please check out polyfill.io.

💬 Output ES2020 (modules) and ES2017 (browser)

PixiJS historically only published ES5 (no classes!). A new output standard allows us to use ES2017 features that previously we couldn't use (e.g., String.prototype.startsWith, Array.prototype.contains, etc). Not only does it make the code more readable, but the output looks nicer as well. For modules we are outputting ES2020, which contains syntax like nullish coalescing (??). If your project needs to have backward compatibility, you can use Babel to transpile or polyfill.

🐭 Replaces InteractionManager with EventSystem

InteractionManager was getting complex and difficult to maintain. Few core team members understood the code. We decided to move to FederatedEvents, which is concise, better aligned with the DOM, and supports things like bubbling. The good news, is you shouldn't have to change code, as it is largely a drop-in replacement. We added addEventListener and removeEventListener APIs to DisplayObject which have the same DOM signature and can be used instead of on and off.

📦 Replaces Loader with Assets

Similarly, we've been wanting to remove the Loader because of its legacy approach (e.g., XMLHttpRequest). This was forked from resource-loader that has been with PixiJS for a long time. The original design inspiration for Loader was driven largely by Flash/AS3, which now seem dated. There were a few things we wanted out of a new iteration: static loading, loading with Workers, background loading, Promise-based, fewer layers of caching. Here's a quick example of how this will change:

import { Loader, Sprite } from 'pixi.js';

const loader = new Loader();
loader.add('background', 'path/to/assets/background.jpg');
loader.load((loader, resources) => {
const image = Sprite.from(resources.background.texture);
});

Now becomes:

import { Assets, Sprite } from 'pixi.js';

const texture = await Assets.load('path/to/assets/background.jpg');
const image = Sprite.from(texture);

🤝 Abandon the use of peerDependencies

PixiJS heavily uses peerDependencies in the package.json within each package. This design choice has plagued Pixi with many issues. It's a breaking change to remove, so now was a good time. We have decided to completely remove peerDependencies, instead opting for nothing. This should make installing and upgrading pixi.js much easier. We are working on updating our tooling for composing a custom version with packages. Edit: As of 7.2.0, we have reverted this change to keep compatibility with some module-based CDNs.

👂 Other Changes

  • Browser builds have been removed for all packages, with the exception of pixi.js and pixi.js-legacy.
  • Removes Graphics.nextRoundedRectBehavior this is now the default behavior
  • Removes Text.nextLineHeightBehavior this is now the default behavior
  • AbstractBatchRenderer and BatchPluginFactory has been removed. Either extends BatchRenderer or use setShaderGenerator on the default BatchRenderer, (e.g., renderer.plugins.batch)
  • BatchRenderer is installed by default in @pixi/core, no need to Renderer.registerPlugin('batch', BatchRenderer) anymore

Exports from @pixi/core

The @pixi/core package now depends and re-exports the following packages.

  • @pixi/math
  • @pixi/contants
  • @pixi/utils
  • @pixi/runner
  • @pixi/settings
  • @pixi/ticker

While some packages will still work when installed directly, others will not, since by installing them alongside @pixi/core you will be effectively importing two copies of the same code.  This will lead to errors where changing settings from @pixi/settings doesn't do anything since @pixi/core has its own version of that package. It is recommended that you uninstall these from your project and use @pixi/core instead.

import { Rectangle } from '@pixi/math';
import { settings } from '@pixi/settings';
import { ALPHA_MODES } from '@pixi/constants';
import { string2hex } from '@pixi/utils';

Now becomes:

import { Rectangle, settings, ALPHA_MODES, utils } from '@pixi/core';

const { string2hex } = utils;

Extract and Prepare Systems

Extract and prepare plugins have been converted to Renderer "systems".

renderer.plugins.extract
renderer.plugins.prepare

Now becomes:

renderer.extract
renderer.prepare

Extensions Self-Install

Extensions now install themselves, so you should only need to import the class in order to use. For example, in v6:

import { AccessibilityManager } from '@pixi/accessibility';
import { extensions } from '@pixi/core';
extensions.add(AccessibilityManager);

Now becomes:

import '@pixi/accessibility';

Using hitTest with Events

With the new events system, one of the common APIs that changed is `hitTest.

import {Application} from 'pixi.js';

const app = new Application();
app.renderer.plugins.interaction.hitTest({x, y});

Now becomes:

import {Application, EventBoundary} from 'pixi.js';

const app = new Application();
const boundary = new EventBoundary(app.stage);
boundary.hitTest(x, y);

New Async Extract Methods

The following methods are now async and return a Promise.

  • CanvasExtract.base64()
  • CanvasExtract.image()
  • Extract.base64()
  • Extract.image()
import {Application, EventBoundary} from 'pixi.js';

const app = new Application();
const dataUri = app.renderer.extract.base64();

Now becomes:

import {Application, EventBoundary} from 'pixi.js';

const app = new Application();
const dataUri = await app.renderer.extract.base64();

Interactive Move Events

Interaction events in PixiJS now behave like the DOM in v7. This was intentional to align around behavior that would be familiar with developers, but obviously impacts the behavior with pointermove, mousemove, and touchmove.

Like the DOM, move events are now local. This means that if you are outside the bounds of the object, you will not receive a move event. Generally, you should consider adding move events to the stage or parent instead of the DisplayObject itself.

Working example: https://jsfiddle.net/bigtimebuddy/spnv4wm6/

Interactive Property Handlers are Removed

Property-based handlers were removed from events. This was a feature of the old InteractionManager. For instance:

sprite.pointertap = () => {
// handler the pointertap
};

Now becomes:

sprite.on('pointertap', () => {
// handler the pointertap
});

Property buttonMode has been removed

The property buttonMode was a convenience for toggling the cursor property between pointer and null. It has now been removed.

sprite.buttonMode = true;

Now becomes:

sprite.cursor = 'pointer';

If you would like to re-add this functionality, you can patch DisplayObject's prototype:

import { DisplayObject } from 'pixi.js';

Object.defineProperty(DisplayObject.prototype, 'buttonMode', {
get() { return this.cursor === 'pointer'; },
set(value) { this.cursor = value ? 'pointer' : null; },
});

☝️ Suggestions for Upgrading

If you're planning on transitioning your code from v6, it would be helpful to implement some of the more dramatic changes in v6 first before upgrading to v7:

import { InteractionManager, extensions, Application } from 'pixi.js';
import { EventSystem } from '@pixi/events';

// Uninstall interaction
extensions.remove(InteractionManager);

// Create the renderer or application
const app = new Application();

// Install events
app.renderer.addSystem(EventSystem, 'events');
  • Switch to the Assets package by installing @pixi/assets and swapping for Loader. For more information on implementing Assets, see this guide.
  • Set Graphics.nextRoundedRectBehavior = true, this uses arcs for corner radius instead of bezier curves.
  • Set Text.nextLineHeightBehavior = true, this defaults to the DOM-like behavior for line height.

🏗️ Plugin Supported

PluginCompatiblePlugin Version Supported
PixiJS Soundv5.0.0+
PixiJS HTMLTextv3.0.0+
PixiJS Filtersv5.0.0+
PixiJS GIFv2.0.0+
PixiJS Spinev4.0.0+
PixiJS Particle Emitterv5.0.8+
PixiJS Animate
PixiJS Layersv2.0.0+
PixiJS Lightsv4.0.0+
PixiJS Graphics Smoothv1.0.0+
PixiJS Tilemap
- - + + \ No newline at end of file diff --git a/7.x/guides/production/performance-tips.html b/7.x/guides/production/performance-tips.html index 19fe59fc3..d7cda197c 100644 --- a/7.x/guides/production/performance-tips.html +++ b/7.x/guides/production/performance-tips.html @@ -9,13 +9,13 @@ - - + +
Skip to main content

Performance Tips

General

  • Only optimize when you need to! PixiJS can handle a fair amount of content off the bat
  • Be mindful of the complexity of your scene. The more objects you add the slower things will end up
  • Order can help, for example sprite / graphic / sprite / graphic is slower than sprite / sprite / graphic / graphic
  • Some older mobile devices run things a little slower. Passing in the option useContextAlpha: false and antialias: false to the Renderer or Application can help with performance
  • Culling is disabled by default as it's often better to do this at an application level or set objects to be cullable = true. If you are GPU-bound it will improve performance; if you are CPU-bound it will degrade performance

Sprites

  • Use Spritesheets where possible to minimize total textures
  • Sprites can be batched with up to 16 different textures (dependent on hardware)
  • This is the fastest way to render content
  • On older devices use smaller low resolution textures
  • Add the extention @0.5x.png to the 50% scale-down spritesheet so PixiJS will visually-double them automatically
  • Draw order can be important

Graphics

  • Graphics objects are fastest when they are not modified constantly (not including the transform, alpha or tint!)
  • Graphics objects are batched when under a certain size (100 points or smaller)
  • Small Graphics objects are as fast as Sprites (rectangles, triangles)
  • Using 100s of graphics complex objects can be slow, in this instance use sprites (you can create a texture)

Texture

  • Textures are automatically managed by a Texture Garbage Collector
  • You can also manage them yourself by using texture.destroy()
  • If you plan to destroy more than one at once add a random delay to their destruction to remove freezing
  • Delay texture destroy if you plan to delete a lot of textures yourself

Text

  • Avoid changing it on every frame as this can be expensive (each time it draws to a canvas and then uploads to GPU)
  • Bitmap Text gives much better performance for dynamically changing text
  • Text resolution matches the renderer resolution, decrease resolution yourself by setting the resolution property, which can consume less memory

Masks

  • Masks can be expensive if too many are used: e.g., 100s of masks will really slow things down
  • Axis-aligned Rectangle masks are the fastest (as the use scissor rect)
  • Graphics masks are second fastest (as they use the stencil buffer)
  • Sprite masks are the third fastest (they uses filters). They are really expensive. Do not use too many in your scene!

Filters

  • Release memory: displayObject.filters = null
  • If you know the size of them: displayObject.filterArea = new PIXI.Rectangle(x,y,w,h). This can speed things up as it means the object does not need to be measured
  • Filters are expensive, using too many will start to slow things down!

BlendModes

  • Different blend modes will cause batches to break (de-optimize)
  • SceenSprite / NormalSprite / SceenSprite / NormalSprite would be 4 draw calls
  • SceenSprite / SceenSprite / NormalSprite / NormalSprite would be 2 draw calls

CacheAsBitmap

  • Setting to true turns an object into a Sprite by caching it as a Texture
  • It has a one time cost when it is activated as it draws the object to a Texture
  • Avoid changing this on elements frequently
  • If you have a complicated item that has lots of sprites / filters AND does not move then this will speed up rendering!
  • Do not need apply to sprites as they are already Textures
  • Do not use if the object where its children are constantly changing as this will slow things down

Events

  • If an object has no interactive children use interactiveChildren = false. The event system will then be able to avoid crawling through the object
  • Setting hitArea = new PIXI.Rectangle(x,y,w,h) as above should stop the event system from crawling through the object
- - + + \ No newline at end of file diff --git a/7.x/playground.html b/7.x/playground.html index fba657617..641714583 100644 --- a/7.x/playground.html +++ b/7.x/playground.html @@ -9,13 +9,13 @@ - - + +
Skip to main content
- - + + \ No newline at end of file diff --git a/7.x/tutorials.html b/7.x/tutorials.html index 3d5e69e2d..f70243692 100644 --- a/7.x/tutorials.html +++ b/7.x/tutorials.html @@ -9,13 +9,13 @@ - - + +
Skip to main content

Tutorials

Welcome to the tutorials page! Here you can find hand-crafted exercises to get you started with the PixiJS.

- - + + \ No newline at end of file diff --git a/7.x/tutorials/getting-started.html b/7.x/tutorials/getting-started.html index 3108feab4..b6b93a294 100644 --- a/7.x/tutorials/getting-started.html +++ b/7.x/tutorials/getting-started.html @@ -9,13 +9,13 @@ - - + +
Skip to main content

LOADING...

- - + + \ No newline at end of file diff --git a/assets/js/935f2afb.a24fe0af.js b/assets/js/935f2afb.4e1fccf6.js similarity index 99% rename from assets/js/935f2afb.a24fe0af.js rename to assets/js/935f2afb.4e1fccf6.js index f7615f31f..c052fcb20 100644 --- a/assets/js/935f2afb.a24fe0af.js +++ b/assets/js/935f2afb.4e1fccf6.js @@ -1 +1 @@ -"use strict";(self.webpackChunkpixi_docusaurus=self.webpackChunkpixi_docusaurus||[]).push([[53],{1109:e=>{e.exports=JSON.parse('{"pluginId":"default","version":"current","label":"v8.x (Latest)","banner":null,"badge":false,"noIndex":false,"className":"docs-version-current","isLast":false,"docsSidebars":{"guidesSidebar":[{"type":"link","label":"Welcome","href":"/guides/","docId":"guides/index"},{"type":"category","label":"Basics","collapsed":true,"items":[{"type":"link","label":"What PixiJS Is","href":"/guides/basics/what-pixijs-is","docId":"guides/basics/what-pixijs-is"},{"type":"link","label":"What PixiJS Is Not","href":"/guides/basics/what-pixijs-is-not","docId":"guides/basics/what-pixijs-is-not"},{"type":"link","label":"Getting Started","href":"/guides/basics/getting-started","docId":"guides/basics/getting-started"},{"type":"link","label":"Architecture Overview","href":"/guides/basics/architecture-overview","docId":"guides/basics/architecture-overview"},{"type":"link","label":"Render Loop","href":"/guides/basics/render-loop","docId":"guides/basics/render-loop"},{"type":"link","label":"Scene Graph","href":"/guides/basics/scene-graph","docId":"guides/basics/scene-graph"}],"collapsible":true},{"type":"category","label":"Advanced","collapsed":true,"items":[{"type":"link","label":"Render Groups","href":"/guides/advanced/render-groups","docId":"guides/advanced/render-groups"}],"collapsible":true},{"type":"category","label":"Components","collapsed":true,"items":[{"type":"link","label":"Assets","href":"/guides/components/assets","docId":"guides/components/assets"},{"type":"link","label":"Containers","href":"/guides/components/containers","docId":"guides/components/containers"},{"type":"link","label":"Graphics","href":"/guides/components/graphics","docId":"guides/components/graphics"},{"type":"link","label":"Interaction","href":"/guides/components/interaction","docId":"guides/components/interaction"},{"type":"link","label":"Sprites","href":"/guides/components/sprites","docId":"guides/components/sprites"},{"type":"link","label":"Spritesheets","href":"/guides/components/sprite-sheets","docId":"guides/components/sprite-sheets"},{"type":"link","label":"Text","href":"/guides/components/text","docId":"guides/components/text"},{"type":"link","label":"Textures","href":"/guides/components/textures","docId":"guides/components/textures"}],"collapsible":true},{"type":"category","label":"Production","collapsed":true,"items":[{"type":"link","label":"Performance Tips","href":"/guides/production/performance-tips","docId":"guides/production/performance-tips"}],"collapsible":true},{"type":"category","label":"Migrations","collapsed":true,"items":[{"type":"link","label":"v8 Migration Guide","href":"/guides/migrations/v8","docId":"guides/migrations/v8"},{"type":"link","label":"v7 Migration Guide","href":"/guides/migrations/v7","docId":"guides/migrations/v7"},{"type":"link","label":"v6 Migration Guide","href":"/guides/migrations/v6","docId":"guides/migrations/v6"},{"type":"link","label":"v5 Migration Guide","href":"/guides/migrations/v5","docId":"guides/migrations/v5"}],"collapsible":true}],"examplesSidebar":[{"type":"link","label":"Examples","href":"/examples/","docId":"examples/index"},{"type":"category","label":"Basic","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Container","href":"/examples/basic/container","docId":"examples/basic/container"},{"type":"link","label":"Transparent Background","href":"/examples/basic/transparent-background","docId":"examples/basic/transparent-background"},{"type":"link","label":"Tinting","href":"/examples/basic/tinting","docId":"examples/basic/tinting"},{"type":"link","label":"Particle Container","href":"/examples/basic/particle-container","docId":"examples/basic/particle-container"},{"type":"link","label":"Blend Modes","href":"/examples/basic/blend-modes","docId":"examples/basic/blend-modes"},{"type":"link","label":"Mesh Plane","href":"/examples/basic/mesh-plane","docId":"examples/basic/mesh-plane"},{"type":"link","label":"Render Group","href":"/examples/basic/render-group","docId":"examples/basic/render-group"}]},{"type":"category","label":"Advanced","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Slots","href":"/examples/advanced/slots","docId":"examples/advanced/slots"},{"type":"link","label":"Scratch Card","href":"/examples/advanced/scratch-card","docId":"examples/advanced/scratch-card"},{"type":"link","label":"Star Warp","href":"/examples/advanced/star-warp","docId":"examples/advanced/star-warp"},{"type":"link","label":"Mouse Trail","href":"/examples/advanced/mouse-trail","docId":"examples/advanced/mouse-trail"},{"type":"link","label":"Screen Shot","href":"/examples/advanced/screen-shot","docId":"examples/advanced/screen-shot"},{"type":"link","label":"Collision Detection","href":"/examples/advanced/collision-detection","docId":"examples/advanced/collision-detection"},{"type":"link","label":"Spinners","href":"/examples/advanced/spinners","docId":"examples/advanced/spinners"}]},{"type":"category","label":"Sprite","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Basic","href":"/examples/sprite/basic","docId":"examples/sprite/basic"},{"type":"link","label":"Texture Swap","href":"/examples/sprite/texture-swap","docId":"examples/sprite/texture-swap"},{"type":"link","label":"Animated Sprite Explosion","href":"/examples/sprite/animated-sprite-explosion","docId":"examples/sprite/animated-sprite-explosion"},{"type":"link","label":"Animated Sprite Jet","href":"/examples/sprite/animated-sprite-jet","docId":"examples/sprite/animated-sprite-jet"},{"type":"link","label":"Animated Sprite Animation Speed","href":"/examples/sprite/animated-sprite-animation-speed","docId":"examples/sprite/animated-sprite-animation-speed"},{"type":"link","label":"Tiling Sprite","href":"/examples/sprite/tiling-sprite","docId":"examples/sprite/tiling-sprite"},{"type":"link","label":"Video","href":"/examples/sprite/video","docId":"examples/sprite/video"}]},{"type":"category","label":"Text","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Pixi Text","href":"/examples/text/pixi-text","docId":"examples/text/pixi-text"},{"type":"link","label":"Bitmap Text","href":"/examples/text/bitmap-text","docId":"examples/text/bitmap-text"},{"type":"link","label":"From Font","href":"/examples/text/from-font","docId":"examples/text/from-font"},{"type":"link","label":"Web Font","href":"/examples/text/web-font","docId":"examples/text/web-font"}]},{"type":"category","label":"Graphics","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Simple","href":"/examples/graphics/simple","docId":"examples/graphics/simple"},{"type":"link","label":"Advanced","href":"/examples/graphics/advanced","docId":"examples/graphics/advanced"},{"type":"link","label":"Dynamic","href":"/examples/graphics/dynamic","docId":"examples/graphics/dynamic"},{"type":"link","label":"Svg","href":"/examples/graphics/svg","docId":"examples/graphics/svg"},{"type":"link","label":"Svg-load","href":"/examples/graphics/svg-load","docId":"examples/graphics/svg-load"},{"type":"link","label":"Texture","href":"/examples/graphics/texture","docId":"examples/graphics/texture"},{"type":"link","label":"Fill Gradient","href":"/examples/graphics/fill-gradient","docId":"examples/graphics/fill-gradient"},{"type":"link","label":"Mesh From Path","href":"/examples/graphics/mesh-from-path","docId":"examples/graphics/mesh-from-path"}]},{"type":"category","label":"Events","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Click","href":"/examples/events/click","docId":"examples/events/click"},{"type":"link","label":"Interactivity","href":"/examples/events/interactivity","docId":"examples/events/interactivity"},{"type":"link","label":"Dragging","href":"/examples/events/dragging","docId":"examples/events/dragging"},{"type":"link","label":"Custom Mouse Icon","href":"/examples/events/custom-mouse-icon","docId":"examples/events/custom-mouse-icon"},{"type":"link","label":"Custom Hitarea","href":"/examples/events/custom-hitarea","docId":"examples/events/custom-hitarea"},{"type":"link","label":"Logger","href":"/examples/events/logger","docId":"examples/events/logger"},{"type":"link","label":"Pointer Tracker","href":"/examples/events/pointer-tracker","docId":"examples/events/pointer-tracker"},{"type":"link","label":"Slider","href":"/examples/events/slider","docId":"examples/events/slider"}]},{"type":"category","label":"Masks","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Graphics","href":"/examples/masks/graphics","docId":"examples/masks/graphics"},{"type":"link","label":"Sprite","href":"/examples/masks/sprite","docId":"examples/masks/sprite"},{"type":"link","label":"Filter","href":"/examples/masks/filter","docId":"examples/masks/filter"}]},{"type":"category","label":"Filters Basic","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Blur","href":"/examples/filters-basic/blur","docId":"examples/filters-basic/blur"},{"type":"link","label":"Color Matrix","href":"/examples/filters-basic/color-matrix","docId":"examples/filters-basic/color-matrix"},{"type":"link","label":"Displacement Map Crawlies","href":"/examples/filters-basic/displacement-map-crawlies","docId":"examples/filters-basic/displacement-map-crawlies"},{"type":"link","label":"Displacement Map Flag","href":"/examples/filters-basic/displacement-map-flag","docId":"examples/filters-basic/displacement-map-flag"}]},{"type":"category","label":"Filters Advanced","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Mouse Blending","href":"/examples/filters-advanced/mouse-blending","docId":"examples/filters-advanced/mouse-blending"},{"type":"link","label":"Custom","href":"/examples/filters-advanced/custom","docId":"examples/filters-advanced/custom"}]},{"type":"category","label":"Mesh And Shaders","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Textured Mesh Basic","href":"/examples/mesh-and-shaders/textured-mesh-basic","docId":"examples/mesh-and-shaders/textured-mesh-basic"},{"type":"link","label":"Textured Mesh Advanced","href":"/examples/mesh-and-shaders/textured-mesh-advanced","docId":"examples/mesh-and-shaders/textured-mesh-advanced"},{"type":"link","label":"Triangle","href":"/examples/mesh-and-shaders/triangle","docId":"examples/mesh-and-shaders/triangle"},{"type":"link","label":"Triangle Color","href":"/examples/mesh-and-shaders/triangle-color","docId":"examples/mesh-and-shaders/triangle-color"},{"type":"link","label":"Triangle Textured","href":"/examples/mesh-and-shaders/triangle-textured","docId":"examples/mesh-and-shaders/triangle-textured"},{"type":"link","label":"Shared Geometry","href":"/examples/mesh-and-shaders/shared-geometry","docId":"examples/mesh-and-shaders/shared-geometry"},{"type":"link","label":"Shared Shader","href":"/examples/mesh-and-shaders/shared-shader","docId":"examples/mesh-and-shaders/shared-shader"},{"type":"link","label":"Instanced Geometry","href":"/examples/mesh-and-shaders/instanced-geometry","docId":"examples/mesh-and-shaders/instanced-geometry"},{"type":"link","label":"Shader Toy Mesh","href":"/examples/mesh-and-shaders/shader-toy-mesh","docId":"examples/mesh-and-shaders/shader-toy-mesh"},{"type":"link","label":"Multipass Mesh","href":"/examples/mesh-and-shaders/multipass-mesh","docId":"examples/mesh-and-shaders/multipass-mesh"}]},{"type":"category","label":"Textures","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Texture Rotate","href":"/examples/textures/texture-rotate","docId":"examples/textures/texture-rotate"},{"type":"link","label":"Render Texture Basic","href":"/examples/textures/render-texture-basic","docId":"examples/textures/render-texture-basic"},{"type":"link","label":"Render Texture Advanced","href":"/examples/textures/render-texture-advanced","docId":"examples/textures/render-texture-advanced"}]},{"type":"category","label":"Assets","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Promise","href":"/examples/assets/promise","docId":"examples/assets/promise"},{"type":"link","label":"Async","href":"/examples/assets/async","docId":"examples/assets/async"},{"type":"link","label":"Multiple","href":"/examples/assets/multiple","docId":"examples/assets/multiple"},{"type":"link","label":"Background","href":"/examples/assets/background","docId":"examples/assets/background"},{"type":"link","label":"Bundle","href":"/examples/assets/bundle","docId":"examples/assets/bundle"}]},{"type":"category","label":"Offscreen Canvas","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Basic","href":"/examples/offscreen-canvas/basic","docId":"examples/offscreen-canvas/basic"}]}]},"docs":{"branding":{"id":"branding","title":"Branding","description":"Below are links to assorted PixiJS branding assets usable for including on your site, game, or app. All assets here are free-to-use. If you have any questions or requests, please file an issue."},"examples/advanced/collision-detection":{"id":"examples/advanced/collision-detection","title":"Collision Detection","description":"","sidebar":"examplesSidebar"},"examples/advanced/mouse-trail":{"id":"examples/advanced/mouse-trail","title":"Mouse Trail","description":"","sidebar":"examplesSidebar"},"examples/advanced/scratch-card":{"id":"examples/advanced/scratch-card","title":"Scratch Card","description":"","sidebar":"examplesSidebar"},"examples/advanced/screen-shot":{"id":"examples/advanced/screen-shot","title":"Screen Shot","description":"","sidebar":"examplesSidebar"},"examples/advanced/slots":{"id":"examples/advanced/slots","title":"Slots","description":"","sidebar":"examplesSidebar"},"examples/advanced/spinners":{"id":"examples/advanced/spinners","title":"Spinners","description":"","sidebar":"examplesSidebar"},"examples/advanced/star-warp":{"id":"examples/advanced/star-warp","title":"Star Warp","description":"","sidebar":"examplesSidebar"},"examples/assets/async":{"id":"examples/assets/async","title":"Async","description":"","sidebar":"examplesSidebar"},"examples/assets/background":{"id":"examples/assets/background","title":"Background","description":"","sidebar":"examplesSidebar"},"examples/assets/bundle":{"id":"examples/assets/bundle","title":"Bundle","description":"","sidebar":"examplesSidebar"},"examples/assets/multiple":{"id":"examples/assets/multiple","title":"Multiple","description":"","sidebar":"examplesSidebar"},"examples/assets/promise":{"id":"examples/assets/promise","title":"Promise","description":"","sidebar":"examplesSidebar"},"examples/basic/blend-modes":{"id":"examples/basic/blend-modes","title":"Blend Modes","description":"","sidebar":"examplesSidebar"},"examples/basic/container":{"id":"examples/basic/container","title":"Container","description":"","sidebar":"examplesSidebar"},"examples/basic/mesh-plane":{"id":"examples/basic/mesh-plane","title":"Mesh Plane","description":"","sidebar":"examplesSidebar"},"examples/basic/particle-container":{"id":"examples/basic/particle-container","title":"Particle Container","description":"","sidebar":"examplesSidebar"},"examples/basic/render-group":{"id":"examples/basic/render-group","title":"Render Group","description":"","sidebar":"examplesSidebar"},"examples/basic/tinting":{"id":"examples/basic/tinting","title":"Tinting","description":"","sidebar":"examplesSidebar"},"examples/basic/transparent-background":{"id":"examples/basic/transparent-background","title":"Transparent Background","description":"","sidebar":"examplesSidebar"},"examples/events/click":{"id":"examples/events/click","title":"Click","description":"","sidebar":"examplesSidebar"},"examples/events/custom-hitarea":{"id":"examples/events/custom-hitarea","title":"Custom Hitarea","description":"","sidebar":"examplesSidebar"},"examples/events/custom-mouse-icon":{"id":"examples/events/custom-mouse-icon","title":"Custom Mouse Icon","description":"","sidebar":"examplesSidebar"},"examples/events/dragging":{"id":"examples/events/dragging","title":"Dragging","description":"","sidebar":"examplesSidebar"},"examples/events/interactivity":{"id":"examples/events/interactivity","title":"Interactivity","description":"","sidebar":"examplesSidebar"},"examples/events/logger":{"id":"examples/events/logger","title":"Logger","description":"","sidebar":"examplesSidebar"},"examples/events/pointer-tracker":{"id":"examples/events/pointer-tracker","title":"Pointer Tracker","description":"","sidebar":"examplesSidebar"},"examples/events/slider":{"id":"examples/events/slider","title":"Slider","description":"","sidebar":"examplesSidebar"},"examples/filters-advanced/custom":{"id":"examples/filters-advanced/custom","title":"Custom","description":"","sidebar":"examplesSidebar"},"examples/filters-advanced/mouse-blending":{"id":"examples/filters-advanced/mouse-blending","title":"Mouse Blending","description":"","sidebar":"examplesSidebar"},"examples/filters-basic/blur":{"id":"examples/filters-basic/blur","title":"Blur","description":"","sidebar":"examplesSidebar"},"examples/filters-basic/color-matrix":{"id":"examples/filters-basic/color-matrix","title":"Color Matrix","description":"","sidebar":"examplesSidebar"},"examples/filters-basic/displacement-map-crawlies":{"id":"examples/filters-basic/displacement-map-crawlies","title":"Displacement Map Crawlies","description":"","sidebar":"examplesSidebar"},"examples/filters-basic/displacement-map-flag":{"id":"examples/filters-basic/displacement-map-flag","title":"Displacement Map Flag","description":"","sidebar":"examplesSidebar"},"examples/graphics/advanced":{"id":"examples/graphics/advanced","title":"Advanced","description":"","sidebar":"examplesSidebar"},"examples/graphics/dynamic":{"id":"examples/graphics/dynamic","title":"Dynamic","description":"","sidebar":"examplesSidebar"},"examples/graphics/fill-gradient":{"id":"examples/graphics/fill-gradient","title":"Fill Gradient","description":"","sidebar":"examplesSidebar"},"examples/graphics/mesh-from-path":{"id":"examples/graphics/mesh-from-path","title":"Mesh From Path","description":"","sidebar":"examplesSidebar"},"examples/graphics/simple":{"id":"examples/graphics/simple","title":"Simple","description":"","sidebar":"examplesSidebar"},"examples/graphics/svg":{"id":"examples/graphics/svg","title":"Svg","description":"","sidebar":"examplesSidebar"},"examples/graphics/svg-load":{"id":"examples/graphics/svg-load","title":"Svg-load","description":"","sidebar":"examplesSidebar"},"examples/graphics/texture":{"id":"examples/graphics/texture","title":"Texture","description":"","sidebar":"examplesSidebar"},"examples/index":{"id":"examples/index","title":"Examples","description":"Welcome to the PixiJS Examples page! Here you can find a variety of demos and code snippets to help you get started with PixiJS.","sidebar":"examplesSidebar"},"examples/masks/filter":{"id":"examples/masks/filter","title":"Filter","description":"","sidebar":"examplesSidebar"},"examples/masks/graphics":{"id":"examples/masks/graphics","title":"Graphics","description":"","sidebar":"examplesSidebar"},"examples/masks/sprite":{"id":"examples/masks/sprite","title":"Sprite","description":"","sidebar":"examplesSidebar"},"examples/mesh-and-shaders/instanced-geometry":{"id":"examples/mesh-and-shaders/instanced-geometry","title":"Instanced Geometry","description":"","sidebar":"examplesSidebar"},"examples/mesh-and-shaders/multipass-mesh":{"id":"examples/mesh-and-shaders/multipass-mesh","title":"Multipass Mesh","description":"","sidebar":"examplesSidebar"},"examples/mesh-and-shaders/shader-toy-mesh":{"id":"examples/mesh-and-shaders/shader-toy-mesh","title":"Shader Toy Mesh","description":"","sidebar":"examplesSidebar"},"examples/mesh-and-shaders/shared-geometry":{"id":"examples/mesh-and-shaders/shared-geometry","title":"Shared Geometry","description":"","sidebar":"examplesSidebar"},"examples/mesh-and-shaders/shared-shader":{"id":"examples/mesh-and-shaders/shared-shader","title":"Shared Shader","description":"","sidebar":"examplesSidebar"},"examples/mesh-and-shaders/textured-mesh-advanced":{"id":"examples/mesh-and-shaders/textured-mesh-advanced","title":"Textured Mesh Advanced","description":"","sidebar":"examplesSidebar"},"examples/mesh-and-shaders/textured-mesh-basic":{"id":"examples/mesh-and-shaders/textured-mesh-basic","title":"Textured Mesh Basic","description":"","sidebar":"examplesSidebar"},"examples/mesh-and-shaders/triangle":{"id":"examples/mesh-and-shaders/triangle","title":"Triangle","description":"","sidebar":"examplesSidebar"},"examples/mesh-and-shaders/triangle-color":{"id":"examples/mesh-and-shaders/triangle-color","title":"Triangle Color","description":"","sidebar":"examplesSidebar"},"examples/mesh-and-shaders/triangle-textured":{"id":"examples/mesh-and-shaders/triangle-textured","title":"Triangle Textured","description":"","sidebar":"examplesSidebar"},"examples/offscreen-canvas/basic":{"id":"examples/offscreen-canvas/basic","title":"Basic","description":"","sidebar":"examplesSidebar"},"examples/sprite/animated-sprite-animation-speed":{"id":"examples/sprite/animated-sprite-animation-speed","title":"Animated Sprite Animation Speed","description":"","sidebar":"examplesSidebar"},"examples/sprite/animated-sprite-explosion":{"id":"examples/sprite/animated-sprite-explosion","title":"Animated Sprite Explosion","description":"","sidebar":"examplesSidebar"},"examples/sprite/animated-sprite-jet":{"id":"examples/sprite/animated-sprite-jet","title":"Animated Sprite Jet","description":"","sidebar":"examplesSidebar"},"examples/sprite/basic":{"id":"examples/sprite/basic","title":"Basic","description":"","sidebar":"examplesSidebar"},"examples/sprite/texture-swap":{"id":"examples/sprite/texture-swap","title":"Texture Swap","description":"","sidebar":"examplesSidebar"},"examples/sprite/tiling-sprite":{"id":"examples/sprite/tiling-sprite","title":"Tiling Sprite","description":"","sidebar":"examplesSidebar"},"examples/sprite/video":{"id":"examples/sprite/video","title":"Video","description":"","sidebar":"examplesSidebar"},"examples/text/bitmap-text":{"id":"examples/text/bitmap-text","title":"Bitmap Text","description":"","sidebar":"examplesSidebar"},"examples/text/from-font":{"id":"examples/text/from-font","title":"From Font","description":"","sidebar":"examplesSidebar"},"examples/text/pixi-text":{"id":"examples/text/pixi-text","title":"Pixi Text","description":"","sidebar":"examplesSidebar"},"examples/text/web-font":{"id":"examples/text/web-font","title":"Web Font","description":"","sidebar":"examplesSidebar"},"examples/textures/render-texture-advanced":{"id":"examples/textures/render-texture-advanced","title":"Render Texture Advanced","description":"","sidebar":"examplesSidebar"},"examples/textures/render-texture-basic":{"id":"examples/textures/render-texture-basic","title":"Render Texture Basic","description":"","sidebar":"examplesSidebar"},"examples/textures/texture-rotate":{"id":"examples/textures/texture-rotate","title":"Texture Rotate","description":"","sidebar":"examplesSidebar"},"faq":{"id":"faq","title":"FAQ","description":"What is PixiJS for?"},"guides/advanced/render-groups":{"id":"guides/advanced/render-groups","title":"Render Groups","description":"Understanding RenderGroups in PixiJS","sidebar":"guidesSidebar"},"guides/basics/architecture-overview":{"id":"guides/basics/architecture-overview","title":"Architecture Overview","description":"OK, now that you\'ve gotten a feel for how easy it is to build a PixiJS application, let\'s get into the specifics. For the rest of the Basics section, we\'re going to work from the high level down to the details. We\'ll start with an overview of how PixiJS is put together.","sidebar":"guidesSidebar"},"guides/basics/getting-started":{"id":"guides/basics/getting-started","title":"Getting Started","description":"In this section we\'re going to build the simplest possible PixiJS application. In doing so, we\'ll walk through the basics of how to build and serve the code.","sidebar":"guidesSidebar"},"guides/basics/render-loop":{"id":"guides/basics/render-loop","title":"Render Loop","description":"Now that you understand the major parts of the system, let\'s look at how these parts work together to get your project onto the screen. Unlike a web page, PixiJS is constantly updating and re-drawing itself, over and over. You update your objects, then PixiJS renders them to the screen, then the process repeats. We call this cycle the render loop.","sidebar":"guidesSidebar"},"guides/basics/scene-graph":{"id":"guides/basics/scene-graph","title":"Scene Graph","description":"Every frame, PixiJS is updating and then rendering the scene graph. Let\'s talk about what\'s in the scene graph, and how it impacts how you develop your project. If you\'ve built games before, this should all sound very familiar, but if you\'re coming from HTML and the DOM, it\'s worth understanding before we get into specific types of objects you can render.","sidebar":"guidesSidebar"},"guides/basics/what-pixijs-is":{"id":"guides/basics/what-pixijs-is","title":"What PixiJS Is","description":"So what exactly is PixiJS? At its heart, PixiJS is a rendering system that uses WebGL (or optionally Canvas) to display images and other 2D visual content. It provides a full scene graph (a hierarchy of objects to render), and provides interaction support to enable handling click and touch events. It is a natural replacement for Flash in the modern HTML5 world, but provides better performance and pixel-level effects that go beyond what Flash could achieve. It is perfect for online games, educational content, interactive ads, data visualization... any web-based application where complex graphics are important. And coupled with technology such as Cordova and Electron, PixiJS apps can be distributed beyond the browser as mobile and desktop applications.","sidebar":"guidesSidebar"},"guides/basics/what-pixijs-is-not":{"id":"guides/basics/what-pixijs-is-not","title":"What PixiJS Is Not","description":"While PixiJS can do many things, there are things it can\'t do, or that require additional tools to accomplish. Newcomers to PixiJS often struggle to identify which tasks PixiJS can solve, and which require outside solutions. If you\'re about to start a project, it can be helpful to know if PixiJS is a good fit for your needs. The following list is obviously incomplete - PixiJS is also not, for example, a duck - but it includes many common tasks or features that you might expect us to support.","sidebar":"guidesSidebar"},"guides/components/assets":{"id":"guides/components/assets","title":"Assets","description":"The Assets package","sidebar":"guidesSidebar"},"guides/components/containers":{"id":"guides/components/containers","title":"Containers","description":"The Container class provides a simple display object that does what its name implies - collect a set of child objects together. But beyond grouping objects, containers have a few uses that you should be aware of.","sidebar":"guidesSidebar"},"guides/components/graphics":{"id":"guides/components/graphics","title":"Graphics","description":"Graphics is a complex and much misunderstood tool in the PixiJS toolbox. At first glance, it looks like a tool for drawing shapes. And it is! But it can also be used to generate masks. How does that work?","sidebar":"guidesSidebar"},"guides/components/interaction":{"id":"guides/components/interaction","title":"Interaction","description":"PixiJS is primarily a rendering system, but it also includes support for interactivity. Adding support for mouse and touch events to your project is simple and consistent.","sidebar":"guidesSidebar"},"guides/components/sprite-sheets":{"id":"guides/components/sprite-sheets","title":"Spritesheets","description":"Now that you understand basic sprites, it\'s time to talk about a better way to create them - the Spritesheet class.","sidebar":"guidesSidebar"},"guides/components/sprites":{"id":"guides/components/sprites","title":"Sprites","description":"Sprites are the simplest and most common renderable object in PixiJS. They represent a single image to be displayed on the screen. Each Sprite contains a Texture to be drawn, along with all the transformation and display state required to function in the scene graph.","sidebar":"guidesSidebar"},"guides/components/text":{"id":"guides/components/text","title":"Text","description":"Whether it\'s a high score or a diagram label, text is often the best way to convey information in your projects. Surprisingly, drawing text to the screen with WebGL is a very complex process - there\'s no built in support for it at all. One of the values PixiJS provides is in hiding this complexity to allow you to draw text in diverse styles, fonts and colors with a few lines of code. In addition, these bits of text are just as much scene objects as sprites - you can tint text, rotate it, alpha-blend it, and otherwise treat it like any other graphical object.","sidebar":"guidesSidebar"},"guides/components/textures":{"id":"guides/components/textures","title":"Textures","description":"We\'re slowly working our way down from the high level to the low. We\'ve talked about the scene graph, and in general about display objects that live in it. We\'re about to get to sprites and other simple display objects. But before we do, we need to talk about textures.","sidebar":"guidesSidebar"},"guides/index":{"id":"guides/index","title":"Welcome","description":"PixiJS is an open source, web-based rendering system that provides blazing fast performance for games, data visualization, and other graphics intensive projects. These guides are designed to be a companion to the API documentation, providing a structured introduction to using the API to solve problems and build projects.","sidebar":"guidesSidebar"},"guides/migrations/v5":{"id":"guides/migrations/v5","title":"v5 Migration Guide","description":"This document is useful for developers who are attempting to upgrading from v4 to v5. This includes gotchas and important context for understanding why your v4 code made need some subtle changes. In general, we\'ve try to be as backward-compatible in v5 with the use of deprecation warnings in the console. There are, however, sometimes when changes are too substantial and require some additional help.","sidebar":"guidesSidebar"},"guides/migrations/v6":{"id":"guides/migrations/v6","title":"v6 Migration Guide","description":"PixiJS 6 comes with few surface-level breaking changes. This document is not complete.","sidebar":"guidesSidebar"},"guides/migrations/v7":{"id":"guides/migrations/v7","title":"v7 Migration Guide","description":"First and foremost, PixiJS v7 is a modernization release that reflects changes in the ecosystem since PixiJS was first published over six years ago. Browsers have gotten better, but PixiJS hasn\'t really taken advantage of some of the new features like fetch, Workers, modern JavaScript language syntax. This release keeps intact much of the high-level DisplayObjects (e.g., Sprite, Graphics, Mesh, etc). Aside from a few things, this release should be medium to low impact for most users.","sidebar":"guidesSidebar"},"guides/migrations/v8":{"id":"guides/migrations/v8","title":"v8 Migration Guide","description":"Welcome to the PixiJS v8 Migration Guide! This document is designed to help you smoothly transition your projects from PixiJS v7 to the latest and greatest PixiJS v8. Please follow these steps to ensure a successful migration.","sidebar":"guidesSidebar"},"guides/production/performance-tips":{"id":"guides/production/performance-tips","title":"Performance Tips","description":"General","sidebar":"guidesSidebar"},"playground/index":{"id":"playground/index","title":"index","description":""},"tutorials/choo-choo-train":{"id":"tutorials/choo-choo-train","title":"choo-choo-train","description":""},"tutorials/fish-pond":{"id":"tutorials/fish-pond","title":"fish-pond","description":""},"tutorials/getting-started":{"id":"tutorials/getting-started","title":"getting-started","description":""},"tutorials/index":{"id":"tutorials/index","title":"Tutorials","description":"Welcome to the tutorials page! Here you can find hand-crafted exercises to get you started with the PixiJS."},"tutorials/spine-boy-adventure":{"id":"tutorials/spine-boy-adventure","title":"spine-boy-adventure","description":""}}}')}}]); \ No newline at end of file +"use strict";(self.webpackChunkpixi_docusaurus=self.webpackChunkpixi_docusaurus||[]).push([[53],{1109:e=>{e.exports=JSON.parse('{"pluginId":"default","version":"current","label":"v8.x (Latest)","banner":null,"badge":false,"noIndex":false,"className":"docs-version-current","isLast":false,"docsSidebars":{"guidesSidebar":[{"type":"link","label":"Welcome","href":"/guides/","docId":"guides/index"},{"type":"category","label":"Basics","collapsed":true,"items":[{"type":"link","label":"What PixiJS Is","href":"/guides/basics/what-pixijs-is","docId":"guides/basics/what-pixijs-is"},{"type":"link","label":"What PixiJS Is Not","href":"/guides/basics/what-pixijs-is-not","docId":"guides/basics/what-pixijs-is-not"},{"type":"link","label":"Getting Started","href":"/guides/basics/getting-started","docId":"guides/basics/getting-started"},{"type":"link","label":"Architecture Overview","href":"/guides/basics/architecture-overview","docId":"guides/basics/architecture-overview"},{"type":"link","label":"Render Loop","href":"/guides/basics/render-loop","docId":"guides/basics/render-loop"},{"type":"link","label":"Scene Graph","href":"/guides/basics/scene-graph","docId":"guides/basics/scene-graph"}],"collapsible":true},{"type":"category","label":"Advanced","collapsed":true,"items":[{"type":"link","label":"Render Groups","href":"/guides/advanced/render-groups","docId":"guides/advanced/render-groups"}],"collapsible":true},{"type":"category","label":"Components","collapsed":true,"items":[{"type":"link","label":"Assets","href":"/guides/components/assets","docId":"guides/components/assets"},{"type":"link","label":"Containers","href":"/guides/components/containers","docId":"guides/components/containers"},{"type":"link","label":"Graphics","href":"/guides/components/graphics","docId":"guides/components/graphics"},{"type":"link","label":"Interaction","href":"/guides/components/interaction","docId":"guides/components/interaction"},{"type":"link","label":"Sprites","href":"/guides/components/sprites","docId":"guides/components/sprites"},{"type":"link","label":"Spritesheets","href":"/guides/components/sprite-sheets","docId":"guides/components/sprite-sheets"},{"type":"link","label":"Text","href":"/guides/components/text","docId":"guides/components/text"},{"type":"link","label":"Textures","href":"/guides/components/textures","docId":"guides/components/textures"}],"collapsible":true},{"type":"category","label":"Production","collapsed":true,"items":[{"type":"link","label":"Performance Tips","href":"/guides/production/performance-tips","docId":"guides/production/performance-tips"}],"collapsible":true},{"type":"category","label":"Migrations","collapsed":true,"items":[{"type":"link","label":"v8 Migration Guide","href":"/guides/migrations/v8","docId":"guides/migrations/v8"},{"type":"link","label":"v7 Migration Guide","href":"/guides/migrations/v7","docId":"guides/migrations/v7"},{"type":"link","label":"v6 Migration Guide","href":"/guides/migrations/v6","docId":"guides/migrations/v6"},{"type":"link","label":"v5 Migration Guide","href":"/guides/migrations/v5","docId":"guides/migrations/v5"}],"collapsible":true}],"examplesSidebar":[{"type":"link","label":"Examples","href":"/examples/","docId":"examples/index"},{"type":"category","label":"Basic","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Container","href":"/examples/basic/container","docId":"examples/basic/container"},{"type":"link","label":"Transparent Background","href":"/examples/basic/transparent-background","docId":"examples/basic/transparent-background"},{"type":"link","label":"Tinting","href":"/examples/basic/tinting","docId":"examples/basic/tinting"},{"type":"link","label":"Particle Container","href":"/examples/basic/particle-container","docId":"examples/basic/particle-container"},{"type":"link","label":"Blend Modes","href":"/examples/basic/blend-modes","docId":"examples/basic/blend-modes"},{"type":"link","label":"Mesh Plane","href":"/examples/basic/mesh-plane","docId":"examples/basic/mesh-plane"},{"type":"link","label":"Render Group","href":"/examples/basic/render-group","docId":"examples/basic/render-group"}]},{"type":"category","label":"Advanced","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Slots","href":"/examples/advanced/slots","docId":"examples/advanced/slots"},{"type":"link","label":"Scratch Card","href":"/examples/advanced/scratch-card","docId":"examples/advanced/scratch-card"},{"type":"link","label":"Star Warp","href":"/examples/advanced/star-warp","docId":"examples/advanced/star-warp"},{"type":"link","label":"Mouse Trail","href":"/examples/advanced/mouse-trail","docId":"examples/advanced/mouse-trail"},{"type":"link","label":"Screen Shot","href":"/examples/advanced/screen-shot","docId":"examples/advanced/screen-shot"},{"type":"link","label":"Collision Detection","href":"/examples/advanced/collision-detection","docId":"examples/advanced/collision-detection"},{"type":"link","label":"Spinners","href":"/examples/advanced/spinners","docId":"examples/advanced/spinners"}]},{"type":"category","label":"Sprite","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Basic","href":"/examples/sprite/basic","docId":"examples/sprite/basic"},{"type":"link","label":"Texture Swap","href":"/examples/sprite/texture-swap","docId":"examples/sprite/texture-swap"},{"type":"link","label":"Animated Sprite Explosion","href":"/examples/sprite/animated-sprite-explosion","docId":"examples/sprite/animated-sprite-explosion"},{"type":"link","label":"Animated Sprite Jet","href":"/examples/sprite/animated-sprite-jet","docId":"examples/sprite/animated-sprite-jet"},{"type":"link","label":"Animated Sprite Animation Speed","href":"/examples/sprite/animated-sprite-animation-speed","docId":"examples/sprite/animated-sprite-animation-speed"},{"type":"link","label":"Tiling Sprite","href":"/examples/sprite/tiling-sprite","docId":"examples/sprite/tiling-sprite"},{"type":"link","label":"Video","href":"/examples/sprite/video","docId":"examples/sprite/video"}]},{"type":"category","label":"Text","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Pixi Text","href":"/examples/text/pixi-text","docId":"examples/text/pixi-text"},{"type":"link","label":"Bitmap Text","href":"/examples/text/bitmap-text","docId":"examples/text/bitmap-text"},{"type":"link","label":"From Font","href":"/examples/text/from-font","docId":"examples/text/from-font"},{"type":"link","label":"Web Font","href":"/examples/text/web-font","docId":"examples/text/web-font"}]},{"type":"category","label":"Graphics","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Simple","href":"/examples/graphics/simple","docId":"examples/graphics/simple"},{"type":"link","label":"Advanced","href":"/examples/graphics/advanced","docId":"examples/graphics/advanced"},{"type":"link","label":"Dynamic","href":"/examples/graphics/dynamic","docId":"examples/graphics/dynamic"},{"type":"link","label":"Svg","href":"/examples/graphics/svg","docId":"examples/graphics/svg"},{"type":"link","label":"Svg Load","href":"/examples/graphics/svg-load","docId":"examples/graphics/svg-load"},{"type":"link","label":"Texture","href":"/examples/graphics/texture","docId":"examples/graphics/texture"},{"type":"link","label":"Fill Gradient","href":"/examples/graphics/fill-gradient","docId":"examples/graphics/fill-gradient"},{"type":"link","label":"Mesh From Path","href":"/examples/graphics/mesh-from-path","docId":"examples/graphics/mesh-from-path"}]},{"type":"category","label":"Events","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Click","href":"/examples/events/click","docId":"examples/events/click"},{"type":"link","label":"Interactivity","href":"/examples/events/interactivity","docId":"examples/events/interactivity"},{"type":"link","label":"Dragging","href":"/examples/events/dragging","docId":"examples/events/dragging"},{"type":"link","label":"Custom Mouse Icon","href":"/examples/events/custom-mouse-icon","docId":"examples/events/custom-mouse-icon"},{"type":"link","label":"Custom Hitarea","href":"/examples/events/custom-hitarea","docId":"examples/events/custom-hitarea"},{"type":"link","label":"Logger","href":"/examples/events/logger","docId":"examples/events/logger"},{"type":"link","label":"Pointer Tracker","href":"/examples/events/pointer-tracker","docId":"examples/events/pointer-tracker"},{"type":"link","label":"Slider","href":"/examples/events/slider","docId":"examples/events/slider"}]},{"type":"category","label":"Masks","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Graphics","href":"/examples/masks/graphics","docId":"examples/masks/graphics"},{"type":"link","label":"Sprite","href":"/examples/masks/sprite","docId":"examples/masks/sprite"},{"type":"link","label":"Filter","href":"/examples/masks/filter","docId":"examples/masks/filter"}]},{"type":"category","label":"Filters Basic","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Blur","href":"/examples/filters-basic/blur","docId":"examples/filters-basic/blur"},{"type":"link","label":"Color Matrix","href":"/examples/filters-basic/color-matrix","docId":"examples/filters-basic/color-matrix"},{"type":"link","label":"Displacement Map Crawlies","href":"/examples/filters-basic/displacement-map-crawlies","docId":"examples/filters-basic/displacement-map-crawlies"},{"type":"link","label":"Displacement Map Flag","href":"/examples/filters-basic/displacement-map-flag","docId":"examples/filters-basic/displacement-map-flag"}]},{"type":"category","label":"Filters Advanced","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Mouse Blending","href":"/examples/filters-advanced/mouse-blending","docId":"examples/filters-advanced/mouse-blending"},{"type":"link","label":"Custom","href":"/examples/filters-advanced/custom","docId":"examples/filters-advanced/custom"}]},{"type":"category","label":"Mesh And Shaders","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Textured Mesh Basic","href":"/examples/mesh-and-shaders/textured-mesh-basic","docId":"examples/mesh-and-shaders/textured-mesh-basic"},{"type":"link","label":"Textured Mesh Advanced","href":"/examples/mesh-and-shaders/textured-mesh-advanced","docId":"examples/mesh-and-shaders/textured-mesh-advanced"},{"type":"link","label":"Triangle","href":"/examples/mesh-and-shaders/triangle","docId":"examples/mesh-and-shaders/triangle"},{"type":"link","label":"Triangle Color","href":"/examples/mesh-and-shaders/triangle-color","docId":"examples/mesh-and-shaders/triangle-color"},{"type":"link","label":"Triangle Textured","href":"/examples/mesh-and-shaders/triangle-textured","docId":"examples/mesh-and-shaders/triangle-textured"},{"type":"link","label":"Shared Geometry","href":"/examples/mesh-and-shaders/shared-geometry","docId":"examples/mesh-and-shaders/shared-geometry"},{"type":"link","label":"Shared Shader","href":"/examples/mesh-and-shaders/shared-shader","docId":"examples/mesh-and-shaders/shared-shader"},{"type":"link","label":"Instanced Geometry","href":"/examples/mesh-and-shaders/instanced-geometry","docId":"examples/mesh-and-shaders/instanced-geometry"},{"type":"link","label":"Shader Toy Mesh","href":"/examples/mesh-and-shaders/shader-toy-mesh","docId":"examples/mesh-and-shaders/shader-toy-mesh"},{"type":"link","label":"Multipass Mesh","href":"/examples/mesh-and-shaders/multipass-mesh","docId":"examples/mesh-and-shaders/multipass-mesh"}]},{"type":"category","label":"Textures","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Texture Rotate","href":"/examples/textures/texture-rotate","docId":"examples/textures/texture-rotate"},{"type":"link","label":"Render Texture Basic","href":"/examples/textures/render-texture-basic","docId":"examples/textures/render-texture-basic"},{"type":"link","label":"Render Texture Advanced","href":"/examples/textures/render-texture-advanced","docId":"examples/textures/render-texture-advanced"}]},{"type":"category","label":"Assets","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Promise","href":"/examples/assets/promise","docId":"examples/assets/promise"},{"type":"link","label":"Async","href":"/examples/assets/async","docId":"examples/assets/async"},{"type":"link","label":"Multiple","href":"/examples/assets/multiple","docId":"examples/assets/multiple"},{"type":"link","label":"Background","href":"/examples/assets/background","docId":"examples/assets/background"},{"type":"link","label":"Bundle","href":"/examples/assets/bundle","docId":"examples/assets/bundle"}]},{"type":"category","label":"Offscreen Canvas","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Basic","href":"/examples/offscreen-canvas/basic","docId":"examples/offscreen-canvas/basic"}]}]},"docs":{"branding":{"id":"branding","title":"Branding","description":"Below are links to assorted PixiJS branding assets usable for including on your site, game, or app. All assets here are free-to-use. If you have any questions or requests, please file an issue."},"examples/advanced/collision-detection":{"id":"examples/advanced/collision-detection","title":"Collision Detection","description":"","sidebar":"examplesSidebar"},"examples/advanced/mouse-trail":{"id":"examples/advanced/mouse-trail","title":"Mouse Trail","description":"","sidebar":"examplesSidebar"},"examples/advanced/scratch-card":{"id":"examples/advanced/scratch-card","title":"Scratch Card","description":"","sidebar":"examplesSidebar"},"examples/advanced/screen-shot":{"id":"examples/advanced/screen-shot","title":"Screen Shot","description":"","sidebar":"examplesSidebar"},"examples/advanced/slots":{"id":"examples/advanced/slots","title":"Slots","description":"","sidebar":"examplesSidebar"},"examples/advanced/spinners":{"id":"examples/advanced/spinners","title":"Spinners","description":"","sidebar":"examplesSidebar"},"examples/advanced/star-warp":{"id":"examples/advanced/star-warp","title":"Star Warp","description":"","sidebar":"examplesSidebar"},"examples/assets/async":{"id":"examples/assets/async","title":"Async","description":"","sidebar":"examplesSidebar"},"examples/assets/background":{"id":"examples/assets/background","title":"Background","description":"","sidebar":"examplesSidebar"},"examples/assets/bundle":{"id":"examples/assets/bundle","title":"Bundle","description":"","sidebar":"examplesSidebar"},"examples/assets/multiple":{"id":"examples/assets/multiple","title":"Multiple","description":"","sidebar":"examplesSidebar"},"examples/assets/promise":{"id":"examples/assets/promise","title":"Promise","description":"","sidebar":"examplesSidebar"},"examples/basic/blend-modes":{"id":"examples/basic/blend-modes","title":"Blend Modes","description":"","sidebar":"examplesSidebar"},"examples/basic/container":{"id":"examples/basic/container","title":"Container","description":"","sidebar":"examplesSidebar"},"examples/basic/mesh-plane":{"id":"examples/basic/mesh-plane","title":"Mesh Plane","description":"","sidebar":"examplesSidebar"},"examples/basic/particle-container":{"id":"examples/basic/particle-container","title":"Particle Container","description":"","sidebar":"examplesSidebar"},"examples/basic/render-group":{"id":"examples/basic/render-group","title":"Render Group","description":"","sidebar":"examplesSidebar"},"examples/basic/tinting":{"id":"examples/basic/tinting","title":"Tinting","description":"","sidebar":"examplesSidebar"},"examples/basic/transparent-background":{"id":"examples/basic/transparent-background","title":"Transparent Background","description":"","sidebar":"examplesSidebar"},"examples/events/click":{"id":"examples/events/click","title":"Click","description":"","sidebar":"examplesSidebar"},"examples/events/custom-hitarea":{"id":"examples/events/custom-hitarea","title":"Custom Hitarea","description":"","sidebar":"examplesSidebar"},"examples/events/custom-mouse-icon":{"id":"examples/events/custom-mouse-icon","title":"Custom Mouse Icon","description":"","sidebar":"examplesSidebar"},"examples/events/dragging":{"id":"examples/events/dragging","title":"Dragging","description":"","sidebar":"examplesSidebar"},"examples/events/interactivity":{"id":"examples/events/interactivity","title":"Interactivity","description":"","sidebar":"examplesSidebar"},"examples/events/logger":{"id":"examples/events/logger","title":"Logger","description":"","sidebar":"examplesSidebar"},"examples/events/pointer-tracker":{"id":"examples/events/pointer-tracker","title":"Pointer Tracker","description":"","sidebar":"examplesSidebar"},"examples/events/slider":{"id":"examples/events/slider","title":"Slider","description":"","sidebar":"examplesSidebar"},"examples/filters-advanced/custom":{"id":"examples/filters-advanced/custom","title":"Custom","description":"","sidebar":"examplesSidebar"},"examples/filters-advanced/mouse-blending":{"id":"examples/filters-advanced/mouse-blending","title":"Mouse Blending","description":"","sidebar":"examplesSidebar"},"examples/filters-basic/blur":{"id":"examples/filters-basic/blur","title":"Blur","description":"","sidebar":"examplesSidebar"},"examples/filters-basic/color-matrix":{"id":"examples/filters-basic/color-matrix","title":"Color Matrix","description":"","sidebar":"examplesSidebar"},"examples/filters-basic/displacement-map-crawlies":{"id":"examples/filters-basic/displacement-map-crawlies","title":"Displacement Map Crawlies","description":"","sidebar":"examplesSidebar"},"examples/filters-basic/displacement-map-flag":{"id":"examples/filters-basic/displacement-map-flag","title":"Displacement Map Flag","description":"","sidebar":"examplesSidebar"},"examples/graphics/advanced":{"id":"examples/graphics/advanced","title":"Advanced","description":"","sidebar":"examplesSidebar"},"examples/graphics/dynamic":{"id":"examples/graphics/dynamic","title":"Dynamic","description":"","sidebar":"examplesSidebar"},"examples/graphics/fill-gradient":{"id":"examples/graphics/fill-gradient","title":"Fill Gradient","description":"","sidebar":"examplesSidebar"},"examples/graphics/mesh-from-path":{"id":"examples/graphics/mesh-from-path","title":"Mesh From Path","description":"","sidebar":"examplesSidebar"},"examples/graphics/simple":{"id":"examples/graphics/simple","title":"Simple","description":"","sidebar":"examplesSidebar"},"examples/graphics/svg":{"id":"examples/graphics/svg","title":"Svg","description":"","sidebar":"examplesSidebar"},"examples/graphics/svg-load":{"id":"examples/graphics/svg-load","title":"Svg Load","description":"","sidebar":"examplesSidebar"},"examples/graphics/texture":{"id":"examples/graphics/texture","title":"Texture","description":"","sidebar":"examplesSidebar"},"examples/index":{"id":"examples/index","title":"Examples","description":"Welcome to the PixiJS Examples page! Here you can find a variety of demos and code snippets to help you get started with PixiJS.","sidebar":"examplesSidebar"},"examples/masks/filter":{"id":"examples/masks/filter","title":"Filter","description":"","sidebar":"examplesSidebar"},"examples/masks/graphics":{"id":"examples/masks/graphics","title":"Graphics","description":"","sidebar":"examplesSidebar"},"examples/masks/sprite":{"id":"examples/masks/sprite","title":"Sprite","description":"","sidebar":"examplesSidebar"},"examples/mesh-and-shaders/instanced-geometry":{"id":"examples/mesh-and-shaders/instanced-geometry","title":"Instanced Geometry","description":"","sidebar":"examplesSidebar"},"examples/mesh-and-shaders/multipass-mesh":{"id":"examples/mesh-and-shaders/multipass-mesh","title":"Multipass Mesh","description":"","sidebar":"examplesSidebar"},"examples/mesh-and-shaders/shader-toy-mesh":{"id":"examples/mesh-and-shaders/shader-toy-mesh","title":"Shader Toy Mesh","description":"","sidebar":"examplesSidebar"},"examples/mesh-and-shaders/shared-geometry":{"id":"examples/mesh-and-shaders/shared-geometry","title":"Shared Geometry","description":"","sidebar":"examplesSidebar"},"examples/mesh-and-shaders/shared-shader":{"id":"examples/mesh-and-shaders/shared-shader","title":"Shared Shader","description":"","sidebar":"examplesSidebar"},"examples/mesh-and-shaders/textured-mesh-advanced":{"id":"examples/mesh-and-shaders/textured-mesh-advanced","title":"Textured Mesh Advanced","description":"","sidebar":"examplesSidebar"},"examples/mesh-and-shaders/textured-mesh-basic":{"id":"examples/mesh-and-shaders/textured-mesh-basic","title":"Textured Mesh Basic","description":"","sidebar":"examplesSidebar"},"examples/mesh-and-shaders/triangle":{"id":"examples/mesh-and-shaders/triangle","title":"Triangle","description":"","sidebar":"examplesSidebar"},"examples/mesh-and-shaders/triangle-color":{"id":"examples/mesh-and-shaders/triangle-color","title":"Triangle Color","description":"","sidebar":"examplesSidebar"},"examples/mesh-and-shaders/triangle-textured":{"id":"examples/mesh-and-shaders/triangle-textured","title":"Triangle Textured","description":"","sidebar":"examplesSidebar"},"examples/offscreen-canvas/basic":{"id":"examples/offscreen-canvas/basic","title":"Basic","description":"","sidebar":"examplesSidebar"},"examples/sprite/animated-sprite-animation-speed":{"id":"examples/sprite/animated-sprite-animation-speed","title":"Animated Sprite Animation Speed","description":"","sidebar":"examplesSidebar"},"examples/sprite/animated-sprite-explosion":{"id":"examples/sprite/animated-sprite-explosion","title":"Animated Sprite Explosion","description":"","sidebar":"examplesSidebar"},"examples/sprite/animated-sprite-jet":{"id":"examples/sprite/animated-sprite-jet","title":"Animated Sprite Jet","description":"","sidebar":"examplesSidebar"},"examples/sprite/basic":{"id":"examples/sprite/basic","title":"Basic","description":"","sidebar":"examplesSidebar"},"examples/sprite/texture-swap":{"id":"examples/sprite/texture-swap","title":"Texture Swap","description":"","sidebar":"examplesSidebar"},"examples/sprite/tiling-sprite":{"id":"examples/sprite/tiling-sprite","title":"Tiling Sprite","description":"","sidebar":"examplesSidebar"},"examples/sprite/video":{"id":"examples/sprite/video","title":"Video","description":"","sidebar":"examplesSidebar"},"examples/text/bitmap-text":{"id":"examples/text/bitmap-text","title":"Bitmap Text","description":"","sidebar":"examplesSidebar"},"examples/text/from-font":{"id":"examples/text/from-font","title":"From Font","description":"","sidebar":"examplesSidebar"},"examples/text/pixi-text":{"id":"examples/text/pixi-text","title":"Pixi Text","description":"","sidebar":"examplesSidebar"},"examples/text/web-font":{"id":"examples/text/web-font","title":"Web Font","description":"","sidebar":"examplesSidebar"},"examples/textures/render-texture-advanced":{"id":"examples/textures/render-texture-advanced","title":"Render Texture Advanced","description":"","sidebar":"examplesSidebar"},"examples/textures/render-texture-basic":{"id":"examples/textures/render-texture-basic","title":"Render Texture Basic","description":"","sidebar":"examplesSidebar"},"examples/textures/texture-rotate":{"id":"examples/textures/texture-rotate","title":"Texture Rotate","description":"","sidebar":"examplesSidebar"},"faq":{"id":"faq","title":"FAQ","description":"What is PixiJS for?"},"guides/advanced/render-groups":{"id":"guides/advanced/render-groups","title":"Render Groups","description":"Understanding RenderGroups in PixiJS","sidebar":"guidesSidebar"},"guides/basics/architecture-overview":{"id":"guides/basics/architecture-overview","title":"Architecture Overview","description":"OK, now that you\'ve gotten a feel for how easy it is to build a PixiJS application, let\'s get into the specifics. For the rest of the Basics section, we\'re going to work from the high level down to the details. We\'ll start with an overview of how PixiJS is put together.","sidebar":"guidesSidebar"},"guides/basics/getting-started":{"id":"guides/basics/getting-started","title":"Getting Started","description":"In this section we\'re going to build the simplest possible PixiJS application. In doing so, we\'ll walk through the basics of how to build and serve the code.","sidebar":"guidesSidebar"},"guides/basics/render-loop":{"id":"guides/basics/render-loop","title":"Render Loop","description":"Now that you understand the major parts of the system, let\'s look at how these parts work together to get your project onto the screen. Unlike a web page, PixiJS is constantly updating and re-drawing itself, over and over. You update your objects, then PixiJS renders them to the screen, then the process repeats. We call this cycle the render loop.","sidebar":"guidesSidebar"},"guides/basics/scene-graph":{"id":"guides/basics/scene-graph","title":"Scene Graph","description":"Every frame, PixiJS is updating and then rendering the scene graph. Let\'s talk about what\'s in the scene graph, and how it impacts how you develop your project. If you\'ve built games before, this should all sound very familiar, but if you\'re coming from HTML and the DOM, it\'s worth understanding before we get into specific types of objects you can render.","sidebar":"guidesSidebar"},"guides/basics/what-pixijs-is":{"id":"guides/basics/what-pixijs-is","title":"What PixiJS Is","description":"So what exactly is PixiJS? At its heart, PixiJS is a rendering system that uses WebGL (or optionally Canvas) to display images and other 2D visual content. It provides a full scene graph (a hierarchy of objects to render), and provides interaction support to enable handling click and touch events. It is a natural replacement for Flash in the modern HTML5 world, but provides better performance and pixel-level effects that go beyond what Flash could achieve. It is perfect for online games, educational content, interactive ads, data visualization... any web-based application where complex graphics are important. And coupled with technology such as Cordova and Electron, PixiJS apps can be distributed beyond the browser as mobile and desktop applications.","sidebar":"guidesSidebar"},"guides/basics/what-pixijs-is-not":{"id":"guides/basics/what-pixijs-is-not","title":"What PixiJS Is Not","description":"While PixiJS can do many things, there are things it can\'t do, or that require additional tools to accomplish. Newcomers to PixiJS often struggle to identify which tasks PixiJS can solve, and which require outside solutions. If you\'re about to start a project, it can be helpful to know if PixiJS is a good fit for your needs. The following list is obviously incomplete - PixiJS is also not, for example, a duck - but it includes many common tasks or features that you might expect us to support.","sidebar":"guidesSidebar"},"guides/components/assets":{"id":"guides/components/assets","title":"Assets","description":"The Assets package","sidebar":"guidesSidebar"},"guides/components/containers":{"id":"guides/components/containers","title":"Containers","description":"The Container class provides a simple display object that does what its name implies - collect a set of child objects together. But beyond grouping objects, containers have a few uses that you should be aware of.","sidebar":"guidesSidebar"},"guides/components/graphics":{"id":"guides/components/graphics","title":"Graphics","description":"Graphics is a complex and much misunderstood tool in the PixiJS toolbox. At first glance, it looks like a tool for drawing shapes. And it is! But it can also be used to generate masks. How does that work?","sidebar":"guidesSidebar"},"guides/components/interaction":{"id":"guides/components/interaction","title":"Interaction","description":"PixiJS is primarily a rendering system, but it also includes support for interactivity. Adding support for mouse and touch events to your project is simple and consistent.","sidebar":"guidesSidebar"},"guides/components/sprite-sheets":{"id":"guides/components/sprite-sheets","title":"Spritesheets","description":"Now that you understand basic sprites, it\'s time to talk about a better way to create them - the Spritesheet class.","sidebar":"guidesSidebar"},"guides/components/sprites":{"id":"guides/components/sprites","title":"Sprites","description":"Sprites are the simplest and most common renderable object in PixiJS. They represent a single image to be displayed on the screen. Each Sprite contains a Texture to be drawn, along with all the transformation and display state required to function in the scene graph.","sidebar":"guidesSidebar"},"guides/components/text":{"id":"guides/components/text","title":"Text","description":"Whether it\'s a high score or a diagram label, text is often the best way to convey information in your projects. Surprisingly, drawing text to the screen with WebGL is a very complex process - there\'s no built in support for it at all. One of the values PixiJS provides is in hiding this complexity to allow you to draw text in diverse styles, fonts and colors with a few lines of code. In addition, these bits of text are just as much scene objects as sprites - you can tint text, rotate it, alpha-blend it, and otherwise treat it like any other graphical object.","sidebar":"guidesSidebar"},"guides/components/textures":{"id":"guides/components/textures","title":"Textures","description":"We\'re slowly working our way down from the high level to the low. We\'ve talked about the scene graph, and in general about display objects that live in it. We\'re about to get to sprites and other simple display objects. But before we do, we need to talk about textures.","sidebar":"guidesSidebar"},"guides/index":{"id":"guides/index","title":"Welcome","description":"PixiJS is an open source, web-based rendering system that provides blazing fast performance for games, data visualization, and other graphics intensive projects. These guides are designed to be a companion to the API documentation, providing a structured introduction to using the API to solve problems and build projects.","sidebar":"guidesSidebar"},"guides/migrations/v5":{"id":"guides/migrations/v5","title":"v5 Migration Guide","description":"This document is useful for developers who are attempting to upgrading from v4 to v5. This includes gotchas and important context for understanding why your v4 code made need some subtle changes. In general, we\'ve try to be as backward-compatible in v5 with the use of deprecation warnings in the console. There are, however, sometimes when changes are too substantial and require some additional help.","sidebar":"guidesSidebar"},"guides/migrations/v6":{"id":"guides/migrations/v6","title":"v6 Migration Guide","description":"PixiJS 6 comes with few surface-level breaking changes. This document is not complete.","sidebar":"guidesSidebar"},"guides/migrations/v7":{"id":"guides/migrations/v7","title":"v7 Migration Guide","description":"First and foremost, PixiJS v7 is a modernization release that reflects changes in the ecosystem since PixiJS was first published over six years ago. Browsers have gotten better, but PixiJS hasn\'t really taken advantage of some of the new features like fetch, Workers, modern JavaScript language syntax. This release keeps intact much of the high-level DisplayObjects (e.g., Sprite, Graphics, Mesh, etc). Aside from a few things, this release should be medium to low impact for most users.","sidebar":"guidesSidebar"},"guides/migrations/v8":{"id":"guides/migrations/v8","title":"v8 Migration Guide","description":"Welcome to the PixiJS v8 Migration Guide! This document is designed to help you smoothly transition your projects from PixiJS v7 to the latest and greatest PixiJS v8. Please follow these steps to ensure a successful migration.","sidebar":"guidesSidebar"},"guides/production/performance-tips":{"id":"guides/production/performance-tips","title":"Performance Tips","description":"General","sidebar":"guidesSidebar"},"playground/index":{"id":"playground/index","title":"index","description":""},"tutorials/choo-choo-train":{"id":"tutorials/choo-choo-train","title":"choo-choo-train","description":""},"tutorials/fish-pond":{"id":"tutorials/fish-pond","title":"fish-pond","description":""},"tutorials/getting-started":{"id":"tutorials/getting-started","title":"getting-started","description":""},"tutorials/index":{"id":"tutorials/index","title":"Tutorials","description":"Welcome to the tutorials page! Here you can find hand-crafted exercises to get you started with the PixiJS."},"tutorials/spine-boy-adventure":{"id":"tutorials/spine-boy-adventure","title":"spine-boy-adventure","description":""}}}')}}]); \ No newline at end of file diff --git a/assets/js/b5077c39.5410f84d.js b/assets/js/b5077c39.d52c8efd.js similarity index 95% rename from assets/js/b5077c39.5410f84d.js rename to assets/js/b5077c39.d52c8efd.js index 5b55a7857..2f6de0f79 100644 --- a/assets/js/b5077c39.5410f84d.js +++ b/assets/js/b5077c39.d52c8efd.js @@ -1 +1 @@ -"use strict";(self.webpackChunkpixi_docusaurus=self.webpackChunkpixi_docusaurus||[]).push([[4625],{4903:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>d,contentTitle:()=>o,default:()=>x,frontMatter:()=>l,metadata:()=>n,toc:()=>u});var s=i(7462),r=(i(7294),i(3905)),a=i(8010),p=i(7949);const l={hide_table_of_contents:!0,hide_edit_this_page:!0,sidebar_position:5,custom_edit_url:null,title:"Texture"},o=void 0,n={unversionedId:"examples/graphics/texture",id:"examples/graphics/texture",title:"Texture",description:"",source:"@site/docs/examples/graphics/texture.md",sourceDirName:"examples/graphics",slug:"/examples/graphics/texture",permalink:"/examples/graphics/texture",draft:!1,editUrl:null,tags:[],version:"current",sidebarPosition:5,frontMatter:{hide_table_of_contents:!0,hide_edit_this_page:!0,sidebar_position:5,custom_edit_url:null,title:"Texture"},sidebar:"examplesSidebar",previous:{title:"Svg-load",permalink:"/examples/graphics/svg-load"},next:{title:"Fill Gradient",permalink:"/examples/graphics/fill-gradient"}},d={},u=[],c={toc:u};function x(e){let{components:t,...i}=e;return(0,r.kt)("wrapper",(0,s.Z)({},c,i,{components:t,mdxType:"MDXLayout"}),(0,r.kt)(a.Z,{id:"graphics.texture",pixiVersion:p,mdxType:"Example"}))}x.isMDXComponent=!0},7949:e=>{e.exports=JSON.parse('{"versionLabel":"v8.x","version":"8.0.0","releaseNotes":"https://github.com/pixijs/pixijs/releases/tag/v8.0.0","build":"https://pixijs.download/v8.0.0/pixi.min.js","docs":"https://pixijs.download/v8.0.0/docs/index.html","npm":"8.0.0","prerelease":false,"latest":true}')}}]); \ No newline at end of file +"use strict";(self.webpackChunkpixi_docusaurus=self.webpackChunkpixi_docusaurus||[]).push([[4625],{4903:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>d,contentTitle:()=>o,default:()=>x,frontMatter:()=>l,metadata:()=>n,toc:()=>u});var s=i(7462),r=(i(7294),i(3905)),a=i(8010),p=i(7949);const l={hide_table_of_contents:!0,hide_edit_this_page:!0,sidebar_position:5,custom_edit_url:null,title:"Texture"},o=void 0,n={unversionedId:"examples/graphics/texture",id:"examples/graphics/texture",title:"Texture",description:"",source:"@site/docs/examples/graphics/texture.md",sourceDirName:"examples/graphics",slug:"/examples/graphics/texture",permalink:"/examples/graphics/texture",draft:!1,editUrl:null,tags:[],version:"current",sidebarPosition:5,frontMatter:{hide_table_of_contents:!0,hide_edit_this_page:!0,sidebar_position:5,custom_edit_url:null,title:"Texture"},sidebar:"examplesSidebar",previous:{title:"Svg Load",permalink:"/examples/graphics/svg-load"},next:{title:"Fill Gradient",permalink:"/examples/graphics/fill-gradient"}},d={},u=[],c={toc:u};function x(e){let{components:t,...i}=e;return(0,r.kt)("wrapper",(0,s.Z)({},c,i,{components:t,mdxType:"MDXLayout"}),(0,r.kt)(a.Z,{id:"graphics.texture",pixiVersion:p,mdxType:"Example"}))}x.isMDXComponent=!0},7949:e=>{e.exports=JSON.parse('{"versionLabel":"v8.x","version":"8.0.0","releaseNotes":"https://github.com/pixijs/pixijs/releases/tag/v8.0.0","build":"https://pixijs.download/v8.0.0/pixi.min.js","docs":"https://pixijs.download/v8.0.0/docs/index.html","npm":"8.0.0","prerelease":false,"latest":true}')}}]); \ No newline at end of file diff --git a/assets/js/b595b833.4ae2f987.js b/assets/js/b595b833.c36ba98f.js similarity index 95% rename from assets/js/b595b833.4ae2f987.js rename to assets/js/b595b833.c36ba98f.js index 707ca5403..7c98d73d5 100644 --- a/assets/js/b595b833.4ae2f987.js +++ b/assets/js/b595b833.c36ba98f.js @@ -1 +1 @@ -"use strict";(self.webpackChunkpixi_docusaurus=self.webpackChunkpixi_docusaurus||[]).push([[9108],{6194:(e,s,i)=>{i.r(s),i.d(s,{assets:()=>d,contentTitle:()=>l,default:()=>m,frontMatter:()=>o,metadata:()=>n,toc:()=>c});var t=i(7462),a=(i(7294),i(3905)),p=i(8010),r=i(7949);const o={hide_table_of_contents:!0,hide_edit_this_page:!0,sidebar_position:3,custom_edit_url:null,title:"Svg"},l=void 0,n={unversionedId:"examples/graphics/svg",id:"examples/graphics/svg",title:"Svg",description:"",source:"@site/docs/examples/graphics/svg.md",sourceDirName:"examples/graphics",slug:"/examples/graphics/svg",permalink:"/examples/graphics/svg",draft:!1,editUrl:null,tags:[],version:"current",sidebarPosition:3,frontMatter:{hide_table_of_contents:!0,hide_edit_this_page:!0,sidebar_position:3,custom_edit_url:null,title:"Svg"},sidebar:"examplesSidebar",previous:{title:"Dynamic",permalink:"/examples/graphics/dynamic"},next:{title:"Svg-load",permalink:"/examples/graphics/svg-load"}},d={},c=[],u={toc:c};function m(e){let{components:s,...i}=e;return(0,a.kt)("wrapper",(0,t.Z)({},u,i,{components:s,mdxType:"MDXLayout"}),(0,a.kt)(p.Z,{id:"graphics.svg",pixiVersion:r,mdxType:"Example"}))}m.isMDXComponent=!0},7949:e=>{e.exports=JSON.parse('{"versionLabel":"v8.x","version":"8.0.0","releaseNotes":"https://github.com/pixijs/pixijs/releases/tag/v8.0.0","build":"https://pixijs.download/v8.0.0/pixi.min.js","docs":"https://pixijs.download/v8.0.0/docs/index.html","npm":"8.0.0","prerelease":false,"latest":true}')}}]); \ No newline at end of file +"use strict";(self.webpackChunkpixi_docusaurus=self.webpackChunkpixi_docusaurus||[]).push([[9108],{6194:(e,s,i)=>{i.r(s),i.d(s,{assets:()=>d,contentTitle:()=>l,default:()=>m,frontMatter:()=>o,metadata:()=>n,toc:()=>c});var t=i(7462),a=(i(7294),i(3905)),p=i(8010),r=i(7949);const o={hide_table_of_contents:!0,hide_edit_this_page:!0,sidebar_position:3,custom_edit_url:null,title:"Svg"},l=void 0,n={unversionedId:"examples/graphics/svg",id:"examples/graphics/svg",title:"Svg",description:"",source:"@site/docs/examples/graphics/svg.md",sourceDirName:"examples/graphics",slug:"/examples/graphics/svg",permalink:"/examples/graphics/svg",draft:!1,editUrl:null,tags:[],version:"current",sidebarPosition:3,frontMatter:{hide_table_of_contents:!0,hide_edit_this_page:!0,sidebar_position:3,custom_edit_url:null,title:"Svg"},sidebar:"examplesSidebar",previous:{title:"Dynamic",permalink:"/examples/graphics/dynamic"},next:{title:"Svg Load",permalink:"/examples/graphics/svg-load"}},d={},c=[],u={toc:c};function m(e){let{components:s,...i}=e;return(0,a.kt)("wrapper",(0,t.Z)({},u,i,{components:s,mdxType:"MDXLayout"}),(0,a.kt)(p.Z,{id:"graphics.svg",pixiVersion:r,mdxType:"Example"}))}m.isMDXComponent=!0},7949:e=>{e.exports=JSON.parse('{"versionLabel":"v8.x","version":"8.0.0","releaseNotes":"https://github.com/pixijs/pixijs/releases/tag/v8.0.0","build":"https://pixijs.download/v8.0.0/pixi.min.js","docs":"https://pixijs.download/v8.0.0/docs/index.html","npm":"8.0.0","prerelease":false,"latest":true}')}}]); \ No newline at end of file diff --git a/assets/js/bbe4645e.661be035.js b/assets/js/bbe4645e.f468c7bf.js similarity index 50% rename from assets/js/bbe4645e.661be035.js rename to assets/js/bbe4645e.f468c7bf.js index 18708fc6f..b99d112cd 100644 --- a/assets/js/bbe4645e.661be035.js +++ b/assets/js/bbe4645e.f468c7bf.js @@ -1 +1 @@ -"use strict";(self.webpackChunkpixi_docusaurus=self.webpackChunkpixi_docusaurus||[]).push([[8004],{2625:(e,s,t)=>{t.r(s),t.d(s,{assets:()=>n,contentTitle:()=>p,default:()=>m,frontMatter:()=>l,metadata:()=>d,toc:()=>c});var i=t(7462),a=(t(7294),t(3905)),o=t(8010),r=t(7949);const l={hide_table_of_contents:!0,hide_edit_this_page:!0,sidebar_position:4,custom_edit_url:null,title:"Svg-load"},p=void 0,d={unversionedId:"examples/graphics/svg-load",id:"examples/graphics/svg-load",title:"Svg-load",description:"",source:"@site/docs/examples/graphics/svg-load.md",sourceDirName:"examples/graphics",slug:"/examples/graphics/svg-load",permalink:"/examples/graphics/svg-load",draft:!1,editUrl:null,tags:[],version:"current",sidebarPosition:4,frontMatter:{hide_table_of_contents:!0,hide_edit_this_page:!0,sidebar_position:4,custom_edit_url:null,title:"Svg-load"},sidebar:"examplesSidebar",previous:{title:"Svg",permalink:"/examples/graphics/svg"},next:{title:"Texture",permalink:"/examples/graphics/texture"}},n={},c=[],u={toc:c};function m(e){let{components:s,...t}=e;return(0,a.kt)("wrapper",(0,i.Z)({},u,t,{components:s,mdxType:"MDXLayout"}),(0,a.kt)(o.Z,{id:"graphics.svg-load",pixiVersion:r,mdxType:"Example"}))}m.isMDXComponent=!0},7949:e=>{e.exports=JSON.parse('{"versionLabel":"v8.x","version":"8.0.0","releaseNotes":"https://github.com/pixijs/pixijs/releases/tag/v8.0.0","build":"https://pixijs.download/v8.0.0/pixi.min.js","docs":"https://pixijs.download/v8.0.0/docs/index.html","npm":"8.0.0","prerelease":false,"latest":true}')}}]); \ No newline at end of file +"use strict";(self.webpackChunkpixi_docusaurus=self.webpackChunkpixi_docusaurus||[]).push([[8004],{2625:(e,s,t)=>{t.r(s),t.d(s,{assets:()=>n,contentTitle:()=>l,default:()=>m,frontMatter:()=>p,metadata:()=>d,toc:()=>c});var i=t(7462),a=(t(7294),t(3905)),o=t(8010),r=t(7949);const p={hide_table_of_contents:!0,hide_edit_this_page:!0,sidebar_position:4,custom_edit_url:null,title:"Svg Load"},l=void 0,d={unversionedId:"examples/graphics/svg-load",id:"examples/graphics/svg-load",title:"Svg Load",description:"",source:"@site/docs/examples/graphics/svg-load.md",sourceDirName:"examples/graphics",slug:"/examples/graphics/svg-load",permalink:"/examples/graphics/svg-load",draft:!1,editUrl:null,tags:[],version:"current",sidebarPosition:4,frontMatter:{hide_table_of_contents:!0,hide_edit_this_page:!0,sidebar_position:4,custom_edit_url:null,title:"Svg Load"},sidebar:"examplesSidebar",previous:{title:"Svg",permalink:"/examples/graphics/svg"},next:{title:"Texture",permalink:"/examples/graphics/texture"}},n={},c=[],u={toc:c};function m(e){let{components:s,...t}=e;return(0,a.kt)("wrapper",(0,i.Z)({},u,t,{components:s,mdxType:"MDXLayout"}),(0,a.kt)(o.Z,{id:"graphics.svgLoad",pixiVersion:r,mdxType:"Example"}))}m.isMDXComponent=!0},7949:e=>{e.exports=JSON.parse('{"versionLabel":"v8.x","version":"8.0.0","releaseNotes":"https://github.com/pixijs/pixijs/releases/tag/v8.0.0","build":"https://pixijs.download/v8.0.0/pixi.min.js","docs":"https://pixijs.download/v8.0.0/docs/index.html","npm":"8.0.0","prerelease":false,"latest":true}')}}]); \ No newline at end of file diff --git a/assets/js/common.bc5764de.js b/assets/js/common.bc5764de.js deleted file mode 100644 index 6a8a4f296..000000000 --- a/assets/js/common.bc5764de.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see common.bc5764de.js.LICENSE.txt */ -(self.webpackChunkpixi_docusaurus=self.webpackChunkpixi_docusaurus||[]).push([[8592],{3905:(e,t,n)=>{"use strict";n.d(t,{Zo:()=>h,kt:()=>f});var i=n(7294);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function s(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var l=i.createContext({}),c=function(e){var t=i.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):s(s({},t),e)),n},h=function(e){var t=c(e.components);return i.createElement(l.Provider,{value:t},e.children)},p="mdxType",d={inlineCode:"code",wrapper:function(e){var t=e.children;return i.createElement(i.Fragment,{},t)}},u=i.forwardRef((function(e,t){var n=e.components,r=e.mdxType,o=e.originalType,l=e.parentName,h=a(e,["components","mdxType","originalType","parentName"]),p=c(n),u=r,f=p["".concat(l,".").concat(u)]||p[u]||d[u]||o;return n?i.createElement(f,s(s({ref:t},h),{},{components:n})):i.createElement(f,s({ref:t},h))}));function f(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var o=n.length,s=new Array(o);s[0]=u;var a={};for(var l in t)hasOwnProperty.call(t,l)&&(a[l]=t[l]);a.originalType=e,a[p]="string"==typeof e?e:r,s[1]=a;for(var c=2;c{"use strict";n.d(t,{Z:()=>o});n(7294);var i=n(2389),r=n(5893);function o(e){let{children:t,fallback:n}=e;return(0,i.Z)()?(0,r.jsx)(r.Fragment,{children:null==t?void 0:t()}):n??null}},8010:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var i=n(5166);const r="wrapper_bEOe";var o=n(1262),s=n(6579),a=n(3874),l=n(5893);function c(e){let{id:t,pixiVersion:n}=e;const c=(0,s.Y)(n.version,t),h=(null==c?void 0:c.source)??c,{indexCode:p,extraFiles:d}=(0,a.K7)(h);return(0,l.jsx)("div",{className:r,children:(0,l.jsx)(o.Z,{children:()=>(0,l.jsx)(i.Z,{code:p,extraFiles:d,pixiVersion:n.version,isPixiDevVersion:n.dev,isPixiWebWorkerVersion:null==c?void 0:c.usesWebWorkerLibrary,mode:"example"})})})}},5166:(e,t,n)=>{"use strict";n.d(t,{Z:()=>Cg});var i=n(2949),r=n(7294),o=n(4184),s=n.n(o),a=function(){return a=Object.assign||function(e){for(var t,n=1,i=arguments.length;n!!e._originalFileName))}(e.payload.frames);if(!t)return{message:e.message};let n=function(e){let t=e._originalScriptCode[e._originalScriptCode.length-1].lineNumber.toString().length,n=2,i=3,r=n+t+i+e._originalColumnNumber;return e._originalScriptCode.reduce(((e,n)=>{let i=n.highlight?">":" ",o=n.lineNumber.toString().length===t?`${n.lineNumber}`:` ${n.lineNumber}`,s=n.highlight?"\n"+" ".repeat(r)+"^":"";return e+"\n"+i+" "+o+" | "+n.content+s}),"")}(t),i=function(e){return e?` (${e._originalLineNumber}:${e._originalColumnNumber})`:""}(t);return{message:x(t._originalFileName,e.message,i,n),title:e.title,path:t._originalFileName,line:t._originalLineNumber,column:t._originalColumnNumber}}function x(e,t,n,i){return`${e}: ${t}${n}\n${i}`}var v,y=e=>"string"==typeof e?e.startsWith("/")?e:`/${e}`:Array.isArray(e)?e.map((e=>e.startsWith("/")?e:`/${e}`)):"object"==typeof e&&null!==e?Object.entries(e).reduce(((e,[t,n])=>(e[t.startsWith("/")?t:`/${t}`]=n,e)),{}):null,w=`https://${"1.18.0".replace(/\./g,"-")}-sandpack.codesandbox.io/`,S=class{constructor(e,t,n={}){if(this.getTranspilerContext=()=>new Promise((e=>{let t=this.listen((n=>{"transpiler-context"===n.type&&(e(n.data),t())}));this.dispatch({type:"get-transpiler-context"})})),this.options=n,this.sandboxInfo=t,this.bundlerURL=n.bundlerURL||w,this.bundlerState=void 0,this.errors=[],this.status="initializing","string"==typeof e){this.selector=e;let t=document.querySelector(e);if(!t)throw new Error(`[sandpack-client]: the element '${e}' was not found`);this.element=t,this.iframe=document.createElement("iframe"),this.initializeElement()}else this.element=e,this.iframe=e;this.iframe.getAttribute("sandbox")||this.iframe.setAttribute("sandbox","allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"),this.setLocationURLIntoIFrame(),this.iframeProtocol=new class{constructor(e,t){this.globalListeners={},this.globalListenersCount=0,this.channelListeners={},this.channelListenersCount=0,this.channelId=Math.floor(1e6*Math.random()),this.frameWindow=e.contentWindow,this.origin=t,this.globalListeners=[],this.channelListeners=[],this.eventListener=this.eventListener.bind(this),"undefined"!=typeof window&&window.addEventListener("message",this.eventListener)}cleanup(){window.removeEventListener("message",this.eventListener),this.globalListeners={},this.channelListeners={},this.globalListenersCount=0,this.channelListenersCount=0}register(){!this.frameWindow||this.frameWindow.postMessage({type:"register-frame",origin:document.location.origin,id:this.channelId},this.origin)}dispatch(e){!this.frameWindow||this.frameWindow.postMessage({$id:this.channelId,codesandbox:!0,...e},this.origin)}globalListen(e){if("function"!=typeof e)return()=>{};let t=this.globalListenersCount;return this.globalListeners[t]=e,this.globalListenersCount++,()=>{delete this.globalListeners[t]}}channelListen(e){if("function"!=typeof e)return()=>{};let t=this.channelListenersCount;return this.channelListeners[t]=e,this.channelListenersCount++,()=>{delete this.channelListeners[t]}}eventListener(e){if(e.source!==this.frameWindow)return;let t=e.data;!t.codesandbox||(Object.values(this.globalListeners).forEach((e=>e(t))),t.$id===this.channelId&&Object.values(this.channelListeners).forEach((e=>e(t))))}}(this.iframe,this.bundlerURL),this.unsubscribeGlobalListener=this.iframeProtocol.globalListen((e=>{"initialized"!==e.type||!this.iframe.contentWindow||(this.iframeProtocol.register(),this.options.fileResolver&&(this.fileResolverProtocol=new class{constructor(e,t,n){this.type=e,this.handleMessage=t,this.protocol=n,this._disposeMessageListener=this.protocol.channelListen((async e=>{if(e.type===this.getTypeId()&&e.method){let t=e;try{let e=await this.handleMessage(t),n={type:this.getTypeId(),msgId:t.msgId,result:e};this.protocol.dispatch(n)}catch($){let n={type:this.getTypeId(),msgId:t.msgId,error:{message:$.message}};this.protocol.dispatch(n)}}}))}getTypeId(){return`protocol-${this.type}`}dispose(){this._disposeMessageListener()}}("fs",(async e=>{if("isFile"===e.method)return this.options.fileResolver.isFile(e.params[0]);if("readFile"===e.method)return this.options.fileResolver.readFile(e.params[0]);throw new Error("Method not supported")}),this.iframeProtocol)),this.updatePreview(this.sandboxInfo,!0))})),this.unsubscribeChannelListener=this.iframeProtocol.channelListen((e=>{switch(e.type){case"start":this.errors=[];break;case"status":this.status=e.status;break;case"action":"show-error"===e.action&&(this.errors=[...this.errors,b(e)]);break;case"state":this.bundlerState=e.state}}))}setLocationURLIntoIFrame(){var e;let t=this.options.startRoute?new URL(this.options.startRoute,this.bundlerURL).toString():this.bundlerURL;null==(e=this.iframe.contentWindow)||e.location.replace(t)}cleanup(){this.unsubscribeChannelListener(),this.unsubscribeGlobalListener(),this.iframeProtocol.cleanup()}updateOptions(e){f()(this.options,e)||(this.options=e,this.updatePreview())}updatePreview(e=this.sandboxInfo,t){var n,i,r,o;this.sandboxInfo={...this.sandboxInfo,...e};let s=this.getFiles(),a=Object.keys(s).reduce(((e,t)=>({...e,[t]:{code:s[t].code,path:t}})),{}),l=JSON.parse(g(this.sandboxInfo.dependencies,this.sandboxInfo.devDependencies,this.sandboxInfo.entry));try{l=JSON.parse(s["/package.json"].code)}catch(E){console.error("[sandpack-client]: could not parse package.json file: "+E.message)}let c=Object.keys(s).reduce(((e,t)=>({...e,[t]:{content:s[t].code,path:t}})),{});this.dispatch({type:"compile",codesandbox:!0,version:3,isInitializationCompile:t,modules:a,reactDevTools:this.options.reactDevTools,externalResources:this.options.externalResources||[],hasFileResolver:Boolean(this.options.fileResolver),disableDependencyPreprocessing:this.sandboxInfo.disableDependencyPreprocessing,template:this.sandboxInfo.template||(0,d.t4)(l,c),showOpenInCodeSandbox:null==(n=this.options.showOpenInCodeSandbox)||n,showErrorScreen:null==(i=this.options.showErrorScreen)||i,showLoadingScreen:null==(r=this.options.showLoadingScreen)||r,skipEval:this.options.skipEval||!1,clearConsoleDisabled:!this.options.clearConsoleOnFirstCompile,logLevel:null!=(o=this.options.logLevel)?o:v.Info,customNpmRegistries:this.options.customNpmRegistries})}dispatch(e){"refresh"===e.type&&this.setLocationURLIntoIFrame(),this.iframeProtocol.dispatch(e)}listen(e){return this.iframeProtocol.channelListen(e)}getCodeSandboxURL(){let e=this.getFiles(),t=Object.keys(e).reduce(((t,n)=>({...t,[n.replace("/","")]:{content:e[n].code,isBinary:!1}})),{});return fetch("https://codesandbox.io/api/v1/sandboxes/define?json=1",{method:"POST",body:JSON.stringify({files:t}),headers:{Accept:"application/json","Content-Type":"application/json"}}).then((e=>e.json())).then((e=>({sandboxId:e.sandbox_id,editorUrl:`https://codesandbox.io/s/${e.sandbox_id}`,embedUrl:`https://codesandbox.io/embed/${e.sandbox_id}`})))}getFiles(){let{sandboxInfo:e}=this;return void 0===e.files["/package.json"]?O(e.files,e.dependencies,e.devDependencies,e.entry):this.sandboxInfo.files}initializeElement(){if(this.iframe.style.border="0",this.iframe.style.width=this.options.width||"100%",this.iframe.style.height=this.options.height||"100%",this.iframe.style.overflow="hidden",!this.element.parentNode)throw new Error("[sandpack-client]: the given iframe does not have a parent.");this.element.parentNode.replaceChild(this.iframe,this.element)}};!function(e){e[e.None=0]="None",e[e.Error=10]="Error",e[e.Warning=20]="Warning",e[e.Info=30]="Info",e[e.Debug=40]="Debug"}(v||(v={}));var k="colors",T="sizes",Q="space",P={gap:Q,gridGap:Q,columnGap:Q,gridColumnGap:Q,rowGap:Q,gridRowGap:Q,inset:Q,insetBlock:Q,insetBlockEnd:Q,insetBlockStart:Q,insetInline:Q,insetInlineEnd:Q,insetInlineStart:Q,margin:Q,marginTop:Q,marginRight:Q,marginBottom:Q,marginLeft:Q,marginBlock:Q,marginBlockEnd:Q,marginBlockStart:Q,marginInline:Q,marginInlineEnd:Q,marginInlineStart:Q,padding:Q,paddingTop:Q,paddingRight:Q,paddingBottom:Q,paddingLeft:Q,paddingBlock:Q,paddingBlockEnd:Q,paddingBlockStart:Q,paddingInline:Q,paddingInlineEnd:Q,paddingInlineStart:Q,top:Q,right:Q,bottom:Q,left:Q,scrollMargin:Q,scrollMarginTop:Q,scrollMarginRight:Q,scrollMarginBottom:Q,scrollMarginLeft:Q,scrollMarginX:Q,scrollMarginY:Q,scrollMarginBlock:Q,scrollMarginBlockEnd:Q,scrollMarginBlockStart:Q,scrollMarginInline:Q,scrollMarginInlineEnd:Q,scrollMarginInlineStart:Q,scrollPadding:Q,scrollPaddingTop:Q,scrollPaddingRight:Q,scrollPaddingBottom:Q,scrollPaddingLeft:Q,scrollPaddingX:Q,scrollPaddingY:Q,scrollPaddingBlock:Q,scrollPaddingBlockEnd:Q,scrollPaddingBlockStart:Q,scrollPaddingInline:Q,scrollPaddingInlineEnd:Q,scrollPaddingInlineStart:Q,fontSize:"fontSizes",background:k,backgroundColor:k,backgroundImage:k,borderImage:k,border:k,borderBlock:k,borderBlockEnd:k,borderBlockStart:k,borderBottom:k,borderBottomColor:k,borderColor:k,borderInline:k,borderInlineEnd:k,borderInlineStart:k,borderLeft:k,borderLeftColor:k,borderRight:k,borderRightColor:k,borderTop:k,borderTopColor:k,caretColor:k,color:k,columnRuleColor:k,fill:k,outline:k,outlineColor:k,stroke:k,textDecorationColor:k,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:T,minBlockSize:T,maxBlockSize:T,inlineSize:T,minInlineSize:T,maxInlineSize:T,width:T,minWidth:T,maxWidth:T,height:T,minHeight:T,maxHeight:T,flexBasis:T,gridTemplateColumns:T,gridTemplateRows:T,borderWidth:"borderWidths",borderTopWidth:"borderWidths",borderRightWidth:"borderWidths",borderBottomWidth:"borderWidths",borderLeftWidth:"borderWidths",borderStyle:"borderStyles",borderTopStyle:"borderStyles",borderRightStyle:"borderStyles",borderBottomStyle:"borderStyles",borderLeftStyle:"borderStyles",borderRadius:"radii",borderTopLeftRadius:"radii",borderTopRightRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",boxShadow:"shadows",textShadow:"shadows",transition:"transitions",zIndex:"zIndices"},C=(e,t)=>"function"==typeof t?{"()":Function.prototype.toString.call(t)}:t,$=()=>{const e=Object.create(null);return(t,n,...i)=>{const r=(e=>JSON.stringify(e,C))(t);return r in e?e[r]:e[r]=n(t,...i)}},I=Symbol.for("sxs.internal"),R=(e,t)=>Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)),A=e=>{for(const t in e)return!0;return!1},{hasOwnProperty:M}=Object.prototype,j=e=>e.includes("-")?e:e.replace(/[A-Z]/g,(e=>"-"+e.toLowerCase())),E=/\s+(?![^()]*\))/,X=e=>t=>e(..."string"==typeof t?String(t).split(E):[t]),z={appearance:e=>({WebkitAppearance:e,appearance:e}),backfaceVisibility:e=>({WebkitBackfaceVisibility:e,backfaceVisibility:e}),backdropFilter:e=>({WebkitBackdropFilter:e,backdropFilter:e}),backgroundClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),boxDecorationBreak:e=>({WebkitBoxDecorationBreak:e,boxDecorationBreak:e}),clipPath:e=>({WebkitClipPath:e,clipPath:e}),content:e=>({content:e.includes('"')||e.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(e)?e:`"${e}"`}),hyphens:e=>({WebkitHyphens:e,hyphens:e}),maskImage:e=>({WebkitMaskImage:e,maskImage:e}),maskSize:e=>({WebkitMaskSize:e,maskSize:e}),tabSize:e=>({MozTabSize:e,tabSize:e}),textSizeAdjust:e=>({WebkitTextSizeAdjust:e,textSizeAdjust:e}),userSelect:e=>({WebkitUserSelect:e,userSelect:e}),marginBlock:X(((e,t)=>({marginBlockStart:e,marginBlockEnd:t||e}))),marginInline:X(((e,t)=>({marginInlineStart:e,marginInlineEnd:t||e}))),maxSize:X(((e,t)=>({maxBlockSize:e,maxInlineSize:t||e}))),minSize:X(((e,t)=>({minBlockSize:e,minInlineSize:t||e}))),paddingBlock:X(((e,t)=>({paddingBlockStart:e,paddingBlockEnd:t||e}))),paddingInline:X(((e,t)=>({paddingInlineStart:e,paddingInlineEnd:t||e})))},W=/([\d.]+)([^]*)/,_=(e,t)=>e.length?e.reduce(((e,n)=>(e.push(...t.map((e=>e.includes("&")?e.replace(/&/g,/[ +>|~]/.test(n)&&/&.*&/.test(e)?`:is(${n})`:n):n+" "+e))),e)),[]):t,L=(e,t)=>e in D&&"string"==typeof t?t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,((t,n,i,r)=>n+("stretch"===i?`-moz-available${r};${j(e)}:${n}-webkit-fill-available`:`-moz-fit-content${r};${j(e)}:${n}fit-content`)+r)):String(t),D={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},B=e=>e?e+"-":"",U=(e,t,n)=>e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,((e,i,r,o,s)=>"$"==o==!!r?e:(i||"--"==o?"calc(":"")+"var(--"+("$"===o?B(t)+(s.includes("$")?"":B(n))+s.replace(/\$/g,"-"):s)+")"+(i||"--"==o?"*"+(i||"")+(r||"1")+")":""))),Z=/\s*,\s*(?![^()]*\))/,N=Object.prototype.toString,F=(e,t,n,i,r)=>{let o,s,a;const l=(e,t,n)=>{let c,h;const p=e=>{for(c in e){const f=64===c.charCodeAt(0),m=f&&Array.isArray(e[c])?e[c]:[e[c]];for(h of m){const e=/[A-Z]/.test(u=c)?u:u.replace(/-[^]/g,(e=>e[1].toUpperCase())),m="object"==typeof h&&h&&h.toString===N&&(!i.utils[e]||!t.length);if(e in i.utils&&!m){const t=i.utils[e];if(t!==s){s=t,p(t(h)),s=null;continue}}else if(e in z){const t=z[e];if(t!==a){a=t,p(t(h)),a=null;continue}}if(f&&(d=c.slice(1)in i.media?"@media "+i.media[c.slice(1)]:c,c=d.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,((e,t,n,i,r,o)=>{const s=W.test(t),a=.0625*(s?-1:1),[l,c]=s?[i,t]:[t,i];return"("+("="===n[0]?"":">"===n[0]===s?"max-":"min-")+l+":"+("="!==n[0]&&1===n.length?c.replace(W,((e,t,i)=>Number(t)+a*(">"===n?1:-1)+i)):c)+(r?") and ("+(">"===r[0]?"min-":"max-")+l+":"+(1===r.length?o.replace(W,((e,t,n)=>Number(t)+a*(">"===r?-1:1)+n)):o):"")+")"}))),m){const e=f?n.concat(c):[...n],i=f?[...t]:_(t,c.split(Z));void 0!==o&&r(G(...o)),o=void 0,l(h,i,e)}else void 0===o&&(o=[[],t,n]),c=f||36!==c.charCodeAt(0)?c:`--${B(i.prefix)}${c.slice(1).replace(/\$/g,"-")}`,h=m?h:"number"==typeof h?h&&e in q?String(h)+"px":String(h):U(L(e,null==h?"":h),i.prefix,i.themeMap[e]),o[0].push(`${f?`${c} `:`${j(c)}:`}${h}`)}}var d,u};p(e),void 0!==o&&r(G(...o)),o=void 0};l(e,t,n)},G=(e,t,n)=>`${n.map((e=>`${e}{`)).join("")}${t.length?`${t.join(",")}{`:""}${e.join(";")}${t.length?"}":""}${Array(n.length?n.length+1:0).join("}")}`,q={animationDelay:1,animationDuration:1,backgroundSize:1,blockSize:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockEndWidth:1,borderBlockStart:1,borderBlockStartWidth:1,borderBlockWidth:1,borderBottom:1,borderBottomLeftRadius:1,borderBottomRightRadius:1,borderBottomWidth:1,borderEndEndRadius:1,borderEndStartRadius:1,borderInlineEnd:1,borderInlineEndWidth:1,borderInlineStart:1,borderInlineStartWidth:1,borderInlineWidth:1,borderLeft:1,borderLeftWidth:1,borderRadius:1,borderRight:1,borderRightWidth:1,borderSpacing:1,borderStartEndRadius:1,borderStartStartRadius:1,borderTop:1,borderTopLeftRadius:1,borderTopRightRadius:1,borderTopWidth:1,borderWidth:1,bottom:1,columnGap:1,columnRule:1,columnRuleWidth:1,columnWidth:1,containIntrinsicSize:1,flexBasis:1,fontSize:1,gap:1,gridAutoColumns:1,gridAutoRows:1,gridTemplateColumns:1,gridTemplateRows:1,height:1,inlineSize:1,inset:1,insetBlock:1,insetBlockEnd:1,insetBlockStart:1,insetInline:1,insetInlineEnd:1,insetInlineStart:1,left:1,letterSpacing:1,margin:1,marginBlock:1,marginBlockEnd:1,marginBlockStart:1,marginBottom:1,marginInline:1,marginInlineEnd:1,marginInlineStart:1,marginLeft:1,marginRight:1,marginTop:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,offsetDistance:1,offsetRotate:1,outline:1,outlineOffset:1,outlineWidth:1,overflowClipMargin:1,padding:1,paddingBlock:1,paddingBlockEnd:1,paddingBlockStart:1,paddingBottom:1,paddingInline:1,paddingInlineEnd:1,paddingInlineStart:1,paddingLeft:1,paddingRight:1,paddingTop:1,perspective:1,right:1,rowGap:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginBlockEnd:1,scrollMarginBlockStart:1,scrollMarginBottom:1,scrollMarginInline:1,scrollMarginInlineEnd:1,scrollMarginInlineStart:1,scrollMarginLeft:1,scrollMarginRight:1,scrollMarginTop:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingBlockEnd:1,scrollPaddingBlockStart:1,scrollPaddingBottom:1,scrollPaddingInline:1,scrollPaddingInlineEnd:1,scrollPaddingInlineStart:1,scrollPaddingLeft:1,scrollPaddingRight:1,scrollPaddingTop:1,shapeMargin:1,textDecoration:1,textDecorationThickness:1,textIndent:1,textUnderlineOffset:1,top:1,transitionDelay:1,transitionDuration:1,verticalAlign:1,width:1,wordSpacing:1},V=e=>String.fromCharCode(e+(e>25?39:97)),Y=e=>(e=>{let t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=V(t%52)+n;return V(t%52)+n})(((e,t)=>{let n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e})(5381,JSON.stringify(e))>>>0),H=["themed","global","styled","onevar","resonevar","allvar","inline"],J=e=>{if(e.href&&!e.href.startsWith(location.origin))return!1;try{return!!e.cssRules}catch(e){return!1}},K=e=>{let t;const n=()=>{const{cssRules:e}=t.sheet;return[].map.call(e,((n,i)=>{const{cssText:r}=n;let o="";if(r.startsWith("--sxs"))return"";if(e[i-1]&&(o=e[i-1].cssText).startsWith("--sxs")){if(!n.cssRules.length)return"";for(const e in t.rules)if(t.rules[e].group===n)return`--sxs{--sxs:${[...t.rules[e].cache].join(" ")}}${r}`;return n.cssRules.length?`${o}${r}`:""}return r})).join("")},i=()=>{if(t){const{rules:e,sheet:n}=t;if(!n.deleteRule){for(;3===Object(Object(n.cssRules)[0]).type;)n.cssRules.splice(0,1);n.cssRules=[]}for(const t in e)delete e[t]}const r=Object(e).styleSheets||[];for(const e of r)if(J(e)){for(let r=0,o=e.cssRules;o[r];++r){const s=Object(o[r]);if(1!==s.type)continue;const a=Object(o[r+1]);if(4!==a.type)continue;++r;const{cssText:l}=s;if(!l.startsWith("--sxs"))continue;const c=l.slice(14,-3).trim().split(/\s+/),h=H[c[0]];h&&(t||(t={sheet:e,reset:i,rules:{},toString:n}),t.rules[h]={group:a,index:r,cache:new Set(c)})}if(t)break}if(!t){const r=(e,t)=>({type:t,cssRules:[],insertRule(e,t){this.cssRules.splice(t,0,r(e,{import:3,undefined:1}[(e.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return"@media{}"===e?`@media{${[].map.call(this.cssRules,(e=>e.cssText)).join("")}}`:e}});t={sheet:e?(e.head||e).appendChild(document.createElement("style")).sheet:r("","text/css"),rules:{},reset:i,toString:n}}const{sheet:o,rules:s}=t;for(let e=H.length-1;e>=0;--e){const t=H[e];if(!s[t]){const n=H[e+1],i=s[n]?s[n].index:o.cssRules.length;o.insertRule("@media{}",i),o.insertRule(`--sxs{--sxs:${e}}`,i),s[t]={group:o.cssRules[i+1],index:i,cache:new Set([e])}}ee(s[t])}};return i(),t},ee=e=>{const t=e.group;let n=t.cssRules.length;e.apply=e=>{try{t.insertRule(e,n),++n}catch(e){}}},te=Symbol(),ne=$(),ie=(e,t)=>ne(e,(()=>(...n)=>{let i={type:null,composers:new Set};for(const t of n)if(null!=t)if(t[I]){null==i.type&&(i.type=t[I].type);for(const e of t[I].composers)i.composers.add(e)}else t.constructor!==Object||t.$$typeof?null==i.type&&(i.type=t):i.composers.add(re(t,e));return null==i.type&&(i.type="span"),i.composers.size||i.composers.add(["PJLV",{},[],[],{},[]]),oe(e,i,t)})),re=({variants:e,compoundVariants:t,defaultVariants:n,...i},r)=>{const o=`${B(r.prefix)}c-${Y(i)}`,s=[],a=[],l=Object.create(null),c=[];for(const d in n)l[d]=String(n[d]);if("object"==typeof e&&e)for(const d in e){h=l,p=d,M.call(h,p)||(l[d]="undefined");const t=e[d];for(const e in t){const n={[d]:String(e)};"undefined"===String(e)&&c.push(d);const i=t[e],r=[n,i,!A(i)];s.push(r)}}var h,p;if("object"==typeof t&&t)for(const d of t){let{css:e,...t}=d;e="object"==typeof e&&e||{};for(const i in t)t[i]=String(t[i]);const n=[t,e,!A(e)];a.push(n)}return[o,i,s,a,l,c]},oe=(e,t,n)=>{const[i,r,o,s]=se(t.composers),a="function"==typeof t.type||t.type.$$typeof?(e=>{function t(){for(let n=0;nt.rules[e]={apply:n=>t[te].push([e,n])})),t})(n):null,l=(a||n).rules,c=`.${i}${r.length>1?`:where(.${r.slice(1).join(".")})`:""}`,h=h=>{h="object"==typeof h&&h||le;const{css:p,...d}=h,u={};for(const e in o)if(delete d[e],e in h){let t=h[e];"object"==typeof t&&t?u[e]={"@initial":o[e],...t}:(t=String(t),u[e]="undefined"!==t||s.has(e)?t:o[e])}else u[e]=o[e];const f=new Set([...r]);for(const[i,r,o,s]of t.composers){n.rules.styled.cache.has(i)||(n.rules.styled.cache.add(i),F(r,[`.${i}`],[],e,(e=>{l.styled.apply(e)})));const t=ae(o,u,e.media),a=ae(s,u,e.media,!0);for(const r of t)if(void 0!==r)for(const[t,o,s]of r){const r=`${i}-${Y(o)}-${t}`;f.add(r);const a=(s?n.rules.resonevar:n.rules.onevar).cache,c=s?l.resonevar:l.onevar;a.has(r)||(a.add(r),F(o,[`.${r}`],[],e,(e=>{c.apply(e)})))}for(const r of a)if(void 0!==r)for(const[t,o]of r){const r=`${i}-${Y(o)}-${t}`;f.add(r),n.rules.allvar.cache.has(r)||(n.rules.allvar.cache.add(r),F(o,[`.${r}`],[],e,(e=>{l.allvar.apply(e)})))}}if("object"==typeof p&&p){const t=`${i}-i${Y(p)}-css`;f.add(t),n.rules.inline.cache.has(t)||(n.rules.inline.cache.add(t),F(p,[`.${t}`],[],e,(e=>{l.inline.apply(e)})))}for(const e of String(h.className||"").trim().split(/\s+/))e&&f.add(e);const m=d.className=[...f].join(" ");return{type:t.type,className:m,selector:c,props:d,toString:()=>m,deferredInjector:a}};return R(h,{className:i,selector:c,[I]:t,toString:()=>(n.rules.styled.cache.has(i)||h(),i)})},se=e=>{let t="";const n=[],i={},r=[];for(const[o,,,,s,a]of e){""===t&&(t=o),n.push(o),r.push(...a);for(const e in s){const t=s[e];(void 0===i[e]||"undefined"!==t||a.includes(t))&&(i[e]=t)}}return[t,n,i,new Set(r)]},ae=(e,t,n,i)=>{const r=[];e:for(let[o,s,a]of e){if(a)continue;let e,l=0,c=!1;for(e in o){const i=o[e];let r=t[e];if(r!==i){if("object"!=typeof r||!r)continue e;{let e,t,o=0;for(const s in r){if(i===String(r[s])){if("@initial"!==s){const e=s.slice(1);(t=t||[]).push(e in n?n[e]:s.replace(/^@media ?/,"")),c=!0}l+=o,e=!0}++o}if(t&&t.length&&(s={["@media "+t.join(", ")]:s}),!e)continue e}}}(r[l]=r[l]||[]).push([i?"cv":`${e}-${o[e]}`,s,c])}return r},le={},ce=$(),he=(e,t)=>ce(e,(()=>(...n)=>{const i=()=>{for(let i of n){i="object"==typeof i&&i||{};let n=Y(i);if(!t.rules.global.cache.has(n)){if(t.rules.global.cache.add(n),"@import"in i){let e=[].indexOf.call(t.sheet.cssRules,t.rules.themed.group)-1;for(let n of[].concat(i["@import"]))n=n.includes('"')||n.includes("'")?n:`"${n}"`,t.sheet.insertRule(`@import ${n};`,e++);delete i["@import"]}F(i,[],[],e,(e=>{t.rules.global.apply(e)}))}}return""};return R(i,{toString:i})})),pe=$(),de=(e,t)=>pe(e,(()=>n=>{const i=`${B(e.prefix)}k-${Y(n)}`,r=()=>{if(!t.rules.global.cache.has(i)){t.rules.global.cache.add(i);const r=[];F(n,[],[],e,(e=>r.push(e)));const o=`@keyframes ${i}{${r.join("")}}`;t.rules.global.apply(o)}return i};return R(r,{get name(){return r()},toString:r})})),ue=class{constructor(e,t,n,i){this.token=null==e?"":String(e),this.value=null==t?"":String(t),this.scale=null==n?"":String(n),this.prefix=null==i?"":String(i)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+B(this.prefix)+B(this.scale)+this.token}toString(){return this.computedValue}},fe=$(),me=(e,t)=>fe(e,(()=>(n,i)=>{i="object"==typeof n&&n||Object(i);const r=`.${n=(n="string"==typeof n?n:"")||`${B(e.prefix)}t-${Y(i)}`}`,o={},s=[];for(const t in i){o[t]={};for(const n in i[t]){const r=`--${B(e.prefix)}${t}-${n}`,a=U(String(i[t][n]),e.prefix,t);o[t][n]=new ue(n,a,t,e.prefix),s.push(`${r}:${a}`)}}const a=()=>{if(s.length&&!t.rules.themed.cache.has(n)){t.rules.themed.cache.add(n);const r=`${i===e.theme?":root,":""}.${n}{${s.join(";")}}`;t.rules.themed.apply(r)}return n};return{...o,get className(){return a()},selector:r,toString:a}})),ge=$(),Oe=e=>{let t=!1;const n=ge(e,(e=>{t=!0;const n="prefix"in(e="object"==typeof e&&e||{})?String(e.prefix):"",i="object"==typeof e.media&&e.media||{},r="object"==typeof e.root?e.root||null:globalThis.document||null,o="object"==typeof e.theme&&e.theme||{},s={prefix:n,media:i,theme:o,themeMap:"object"==typeof e.themeMap&&e.themeMap||{...P},utils:"object"==typeof e.utils&&e.utils||{}},a=K(r),l={css:ie(s,a),globalCss:he(s,a),keyframes:de(s,a),createTheme:me(s,a),reset(){a.reset(),l.theme.toString()},theme:{},sheet:a,config:s,prefix:n,getCssText:a.toString,toString:a.toString};return String(l.theme=l.createTheme(o)),l}));return t||n.reset(),n};let be="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map((e=>e?parseInt(e,36):1));for(let Ig=1;Ige)return be[t-1]<=e;return!1}function ve(e){return e>=127462&&e<=127487}function ye(e,t,n=!0,i=!0){return(n?we:Se)(e,t,i)}function we(e,t,n){if(t==e.length)return t;t&&ke(e.charCodeAt(t))&&Te(e.charCodeAt(t-1))&&t--;let i=Qe(e,t);for(t+=Ce(i);t=0&&ve(Qe(e,i));)n++,i-=2;if(n%2==0)break;t+=2}}}return t}function Se(e,t,n){for(;t>0;){let i=we(e,t-2,n);if(i=56320&&e<57344}function Te(e){return e>=55296&&e<56320}function Qe(e,t){let n=e.charCodeAt(t);if(!Te(n)||t+1==e.length)return n;let i=e.charCodeAt(t+1);return ke(i)?i-56320+(n-55296<<10)+65536:n}function Pe(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}function Ce(e){return e<65536?1:2}function $e(e,t,n=e.length){let i=0;for(let r=0;rthis.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,n){let i=[];return this.decompose(0,e,i,2),n.length&&n.decompose(0,n.length,i,3),this.decompose(t,this.length,i,1),Ae.from(i,this.length-(t-e)+n.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){let n=[];return this.decompose(e,t,n,0),Ae.from(n,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),n=this.length-this.scanIdentical(e,-1),i=new Ee(this),r=new Ee(e);for(let o=t,s=t;;){if(i.next(o),r.next(o),o=0,i.lineBreak!=r.lineBreak||i.done!=r.done||i.value!=r.value)return!1;if(s+=i.value.length,i.done||s>=n)return!0}}iter(e=1){return new Ee(this,e)}iterRange(e,t=this.length){return new Xe(this,e,t)}iterLines(e,t){let n;if(null==e)n=this.iter();else{null==t&&(t=this.lines+1);let i=this.line(e).from;n=this.iterRange(i,Math.max(i,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new ze(n)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}static of(e){if(0==e.length)throw new RangeError("A document must have at least one line");return 1!=e.length||e[0]?e.length<=32?new Re(e):Ae.from(Re.split(e,[])):Ie.empty}}class Re extends Ie{constructor(e,t=function(e){let t=-1;for(let n of e)t+=n.length+1;return t}(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,n,i){for(let r=0;;r++){let o=this.text[r],s=i+o.length;if((t?n:s)>=e)return new We(i,s,n,o);i=s+1,n++}}decompose(e,t,n,i){let r=e<=0&&t>=this.length?this:new Re(je(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(1&i){let e=n.pop(),t=Me(r.text,e.text.slice(),0,r.length);if(t.length<=32)n.push(new Re(t,e.length+r.length));else{let e=t.length>>1;n.push(new Re(t.slice(0,e)),new Re(t.slice(e)))}}else n.push(r)}replace(e,t,n){if(!(n instanceof Re))return super.replace(e,t,n);let i=Me(this.text,Me(n.text,je(this.text,0,e)),t),r=this.length+n.length-(t-e);return i.length<=32?new Re(i,r):Ae.from(Re.split(i,[]),r)}sliceString(e,t=this.length,n="\n"){let i="";for(let r=0,o=0;r<=t&&oe&&o&&(i+=n),er&&(i+=s.slice(Math.max(0,e-r),t-r)),r=a+1}return i}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let n=[],i=-1;for(let r of e)n.push(r),i+=r.length+1,32==n.length&&(t.push(new Re(n,i)),n=[],i=-1);return i>-1&&t.push(new Re(n,i)),t}}class Ae extends Ie{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let n of e)this.lines+=n.lines}lineInner(e,t,n,i){for(let r=0;;r++){let o=this.children[r],s=i+o.length,a=n+o.lines-1;if((t?a:s)>=e)return o.lineInner(e,t,n,i);i=s+1,n=a+1}}decompose(e,t,n,i){for(let r=0,o=0;o<=t&&r=o){let r=i&((o<=e?1:0)|(a>=t?2:0));o>=e&&a<=t&&!r?n.push(s):s.decompose(e-o,t-o,n,r)}o=a+1}}replace(e,t,n){if(n.lines=r&&t<=s){let a=o.replace(e-r,t-r,n),l=this.lines-o.lines+a.lines;if(a.lines>4&&a.lines>l>>6){let r=this.children.slice();return r[i]=a,new Ae(r,this.length-(t-e)+n.length)}return super.replace(r,s,a)}r=s+1}return super.replace(e,t,n)}sliceString(e,t=this.length,n="\n"){let i="";for(let r=0,o=0;re&&r&&(i+=n),eo&&(i+=s.sliceString(e-o,t-o,n)),o=a+1}return i}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof Ae))return 0;let n=0,[i,r,o,s]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;i+=t,r+=t){if(i==o||r==s)return n;let a=this.children[i],l=e.children[r];if(a!=l)return n+a.scanIdentical(l,t);n+=a.length+1}}static from(e,t=e.reduce(((e,t)=>e+t.length+1),-1)){let n=0;for(let d of e)n+=d.lines;if(n<32){let n=[];for(let t of e)t.flatten(n);return new Re(n,t)}let i=Math.max(32,n>>5),r=i<<1,o=i>>1,s=[],a=0,l=-1,c=[];function h(e){let t;if(e.lines>r&&e instanceof Ae)for(let n of e.children)h(n);else e.lines>o&&(a>o||!a)?(p(),s.push(e)):e instanceof Re&&a&&(t=c[c.length-1])instanceof Re&&e.lines+t.lines<=32?(a+=e.lines,l+=e.length+1,c[c.length-1]=new Re(t.text.concat(e.text),t.length+1+e.length)):(a+e.lines>i&&p(),a+=e.lines,l+=e.length+1,c.push(e))}function p(){0!=a&&(s.push(1==c.length?c[0]:Ae.from(c,l)),l=-1,a=c.length=0)}for(let d of e)h(d);return p(),1==s.length?s[0]:new Ae(s,t)}}function Me(e,t,n=0,i=1e9){for(let r=0,o=0,s=!0;o=n&&(l>i&&(a=a.slice(0,i-r)),r0?1:(e instanceof Re?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,i=this.nodes[n],r=this.offsets[n],o=r>>1,s=i instanceof Re?i.text.length:i.children.length;if(o==(t>0?s:0)){if(0==n)return this.done=!0,this.value="",this;t>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&r)==(t>0?0:1)){if(this.offsets[n]+=t,0==e)return this.lineBreak=!0,this.value="\n",this;e--}else if(i instanceof Re){let r=i.text[o+(t<0?-1:0)];if(this.offsets[n]+=t,r.length>Math.max(0,e))return this.value=0==e?r:t>0?r.slice(e):r.slice(0,r.length-e),this;e-=r.length}else{let r=i.children[o+(t<0?-1:0)];e>r.length?(e-=r.length,this.offsets[n]+=t):(t<0&&this.offsets[n]--,this.nodes.push(r),this.offsets.push(t>0?1:(r instanceof Re?r.text.length:r.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class Xe{constructor(e,t,n){this.value="",this.done=!1,this.cursor=new Ee(e,t>n?-1:1),this.pos=t>n?e.length:0,this.from=Math.min(t,n),this.to=Math.max(t,n)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let n=t<0?this.pos-this.from:this.to-this.pos;e>n&&(e=n),n-=e;let{value:i}=this.cursor.next(e);return this.pos+=(i.length+e)*t,this.value=i.length<=n?i:t<0?i.slice(i.length-n):i.slice(0,n),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&""!=this.value}}class ze{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:n,value:i}=this.inner.next(e);return t?(this.done=!0,this.value=""):n?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=i,this.afterBreak=!1),this}get lineBreak(){return!1}}"undefined"!=typeof Symbol&&(Ie.prototype[Symbol.iterator]=function(){return this.iter()},Ee.prototype[Symbol.iterator]=Xe.prototype[Symbol.iterator]=ze.prototype[Symbol.iterator]=function(){return this});class We{constructor(e,t,n,i){this.from=e,this.to=t,this.number=n,this.text=i}get length(){return this.to-this.from}}const _e=/\r\n?|\n/;var Le=function(e){return e[e.Simple=0]="Simple",e[e.TrackDel=1]="TrackDel",e[e.TrackBefore=2]="TrackBefore",e[e.TrackAfter=3]="TrackAfter",e}(Le||(Le={}));class De{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;te)return r+(e-i);r+=s}else{if(n!=Le.Simple&&l>=e&&(n==Le.TrackDel&&ie||n==Le.TrackBefore&&ie))return null;if(l>e||l==e&&t<0&&!s)return e==i||t<0?r:r+a;r+=a}i=l}if(e>i)throw new RangeError(`Position ${e} is out of range for changeset of length ${i}`);return r}touchesRange(e,t=e){for(let n=0,i=0;n=0&&i<=t&&r>=e)return!(it)||"cover";i=r}return!1}toString(){let e="";for(let t=0;t=0?":"+i:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some((e=>"number"!=typeof e)))throw new RangeError("Invalid JSON representation of ChangeDesc");return new De(e)}}class Be extends De{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return Ne(this,((t,n,i,r,o)=>e=e.replace(i,i+(n-t),o)),!1),e}mapDesc(e,t=!1){return Fe(this,e,t,!0)}invert(e){let t=this.sections.slice(),n=[];for(let i=0,r=0;i=0){t[i]=s,t[i+1]=o;let a=i>>1;for(;n.length0&&Ze(n,t,r.text),r.forward(e),s+=e}let l=e[o++];for(;s>1].toJSON()))}return e}static of(e,t,n){let i=[],r=[],o=0,s=null;function a(e=!1){if(!e&&!i.length)return;os||e<0||s>t)throw new RangeError(`Invalid change range ${e} to ${s} (in doc of length ${t})`);let h=c?"string"==typeof c?Ie.of(c.split(n||_e)):c:Ie.empty,p=h.length;if(e==s&&0==p)return;eo&&Ue(i,e-o,-1),Ue(i,s-e,p),Ze(r,i,h),o=s}}(e),a(!s),s}static empty(e){return new Be(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],n=[];for(let i=0;it&&"string"!=typeof e)))throw new RangeError("Invalid JSON representation of ChangeSet");if(1==r.length)t.push(r[0],0);else{for(;n.length=0&&n<=0&&n==e[r+1]?e[r]+=t:0==t&&0==e[r]?e[r+1]+=n:i?(e[r]+=t,e[r+1]+=n):e.push(t,n)}function Ze(e,t,n){if(0==n.length)return;let i=t.length-2>>1;if(i>1])),!(n||s==e.sections.length||e.sections[s+1]<0);)a=e.sections[s++],l=e.sections[s++];t(r,c,o,h,p),r=c,o=h}}}function Fe(e,t,n,i=!1){let r=[],o=i?[]:null,s=new qe(e),a=new qe(t);for(let l=0,c=0;;)if(-1==s.ins)l+=s.len,s.next();else if(-1==a.ins&&c=0&&(s.done||cc&&!s.done&&l+s.len=0)){if(s.done&&a.done)return o?new Be(r,o):new De(r);throw new Error("Mismatched change set lengths")}{let e=0,t=l+s.len;for(;;)if(a.ins>=0&&c>l&&c+a.lene||s.ins>=0&&s.len>e)&&(a||i.length>t),o.forward2(e),s.forward(e)}}else Ue(i,0,s.ins,a),r&&Ze(r,i,s.text),s.next()}}class qe{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i>1;return t>=e.length?Ie.empty:e[t]}textBit(e){let{inserted:t}=this.set,n=this.i-2>>1;return n>=t.length&&!e?Ie.empty:t[n].slice(this.off,null==e?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){-1==this.ins?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class Ve{constructor(e,t,n){this.from=e,this.to=t,this.flags=n}get anchor(){return 16&this.flags?this.to:this.from}get head(){return 16&this.flags?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return 4&this.flags?-1:8&this.flags?1:0}get bidiLevel(){let e=3&this.flags;return 3==e?null:e}get goalColumn(){let e=this.flags>>5;return 33554431==e?void 0:e}map(e,t=-1){let n,i;return this.empty?n=i=e.mapPos(this.from,t):(n=e.mapPos(this.from,1),i=e.mapPos(this.to,-1)),n==this.from&&i==this.to?this:new Ve(n,i,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return Ye.range(e,t);let n=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return Ye.range(this.anchor,n)}eq(e){return this.anchor==e.anchor&&this.head==e.head}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||"number"!=typeof e.anchor||"number"!=typeof e.head)throw new RangeError("Invalid JSON representation for SelectionRange");return Ye.range(e.anchor,e.head)}}class Ye{constructor(e,t=0){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:Ye.create(this.ranges.map((n=>n.map(e,t))),this.mainIndex)}eq(e){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let t=0;te.toJSON())),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||"number"!=typeof e.main||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new Ye(e.ranges.map((e=>Ve.fromJSON(e))),e.main)}static single(e,t=e){return new Ye([Ye.range(e,t)],0)}static create(e,t=0){if(0==e.length)throw new RangeError("A selection needs at least one range");for(let n=0,i=0;ie?4:0))}}function He(e,t=0){let n=e[t];e.sort(((e,t)=>e.from-t.from)),t=e.indexOf(n);for(let i=1;in.head?Ye.range(s,o):Ye.range(o,s))}}return new Ye(e,t)}function Je(e,t){for(let n of e.ranges)if(n.to>t)throw new RangeError("Selection points outside of document")}let Ke=0;class et{constructor(e,t,n,i,r){this.combine=e,this.compareInput=t,this.compare=n,this.isStatic=i,this.extensions=r,this.id=Ke++,this.default=e([])}static define(e={}){return new et(e.combine||(e=>e),e.compareInput||((e,t)=>e===t),e.compare||(e.combine?(e,t)=>e===t:tt),!!e.static,e.enables)}of(e){return new nt([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new nt(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new nt(e,this,2,t)}from(e,t){return t||(t=e=>e),this.compute([e],(n=>t(n.field(e))))}}function tt(e,t){return e==t||e.length==t.length&&e.every(((e,n)=>e===t[n]))}class nt{constructor(e,t,n,i){this.dependencies=e,this.facet=t,this.type=n,this.value=i,this.id=Ke++}dynamicSlot(e){var t;let n=this.value,i=this.facet.compareInput,r=this.id,o=e[r]>>1,s=2==this.type,a=!1,l=!1,c=[];for(let h of this.dependencies)"doc"==h?a=!0:"selection"==h?l=!0:0==(1&(null!==(t=e[h.id])&&void 0!==t?t:1))&&c.push(e[h.id]);return{create:e=>(e.values[o]=n(e),1),update(e,t){if(a&&t.docChanged||l&&(t.docChanged||t.selection)||c.some((t=>(1&bt(e,t))>0))){let t=n(e);if(s?!it(t,e.values[o],i):!i(t,e.values[o]))return e.values[o]=t,1}return 0},reconfigure(e,t){let a=n(e),l=t.config.address[r];if(null!=l){let n=xt(t,l);if(s?it(a,n,i):i(a,n))return e.values[o]=n,0}return e.values[o]=a,1}}}}function it(e,t,n){if(e.length!=t.length)return!1;for(let i=0;ie[t.id])),r=n.map((e=>e.type)),o=i.filter((e=>!(1&e))),s=e[t.id]>>1;function a(e){let n=[];for(let t=0;t1&bt(e,t))))return 0;let i=a(e);return t.compare(i,e.values[s])?0:(e.values[s]=i,1)},reconfigure(e,r){let o=i.some((t=>1&bt(e,t))),l=r.config.facets[t.id],c=r.facet(t);if(l&&!o&&tt(n,l))return e.values[s]=c,0;let h=a(e);return t.compare(h,c)?(e.values[s]=c,0):(e.values[s]=h,1)}}}const ot=et.define({static:!0});class st{constructor(e,t,n,i,r){this.id=e,this.createF=t,this.updateF=n,this.compareF=i,this.spec=r,this.provides=void 0}static define(e){let t=new st(Ke++,e.create,e.update,e.compare||((e,t)=>e===t),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(ot).find((e=>e.field==this));return((null==t?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:e=>(e.values[t]=this.create(e),1),update:(e,n)=>{let i=e.values[t],r=this.updateF(i,n);return this.compareF(i,r)?0:(e.values[t]=r,1)},reconfigure:(e,n)=>null!=n.config.address[this.id]?(e.values[t]=n.field(this),0):(e.values[t]=this.create(e),1)}}init(e){return[this,ot.of({field:this,create:e})]}get extension(){return this}}const at=4,lt=3,ct=2,ht=1,pt=0;function dt(e){return t=>new ft(t,e)}const ut={lowest:dt(at),low:dt(lt),default:dt(ct),high:dt(ht),highest:dt(pt),fallback:dt(at),extend:dt(ht),override:dt(pt)};class ft{constructor(e,t){this.inner=e,this.prec=t}}class mt{of(e){return new gt(this,e)}reconfigure(e){return mt.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class gt{constructor(e,t){this.compartment=e,this.inner=t}}class Ot{constructor(e,t,n,i,r,o){for(this.base=e,this.compartments=t,this.dynamicSlots=n,this.address=i,this.staticValues=r,this.facets=o,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(e,t,n){let i=[],r=Object.create(null),o=new Map;for(let p of function(e,t,n){let i=[[],[],[],[],[]],r=new Map;function o(e,s){let a=r.get(e);if(null!=a){if(a>=s)return;let t=i[a].indexOf(e);t>-1&&i[a].splice(t,1),e instanceof gt&&n.delete(e.compartment)}if(r.set(e,s),Array.isArray(e))for(let t of e)o(t,s);else if(e instanceof gt){if(n.has(e.compartment))throw new RangeError("Duplicate use of compartment in extensions");let i=t.get(e.compartment)||e.inner;n.set(e.compartment,i),o(i,s)}else if(e instanceof ft)o(e.inner,e.prec);else if(e instanceof st)i[s].push(e),e.provides&&o(e.provides,s);else if(e instanceof nt)i[s].push(e),e.facet.extensions&&o(e.facet.extensions,s);else{let t=e.extension;if(!t)throw new Error(`Unrecognized extension value in extension set (${e}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);o(t,s)}}return o(e,ct),i.reduce(((e,t)=>e.concat(t)))}(e,t,o))p instanceof st?i.push(p):(r[p.facet.id]||(r[p.facet.id]=[])).push(p);let s=Object.create(null),a=[],l=[];for(let p of i)s[p.id]=l.length<<1,l.push((e=>p.slot(e)));let c=null==n?void 0:n.config.facets;for(let p in r){let e=r[p],t=e[0].facet,i=c&&c[p]||[];if(e.every((e=>0==e.type)))if(s[t.id]=a.length<<1|1,tt(i,e))a.push(n.facet(t));else{let i=t.combine(e.map((e=>e.value)));a.push(n&&t.compare(i,n.facet(t))?n.facet(t):i)}else{for(let t of e)0==t.type?(s[t.id]=a.length<<1|1,a.push(t.value)):(s[t.id]=l.length<<1,l.push((e=>t.dynamicSlot(e))));s[t.id]=l.length<<1,l.push((n=>rt(n,t,e)))}}let h=l.map((e=>e(s)));return new Ot(e,o,h,s,a,r)}}function bt(e,t){if(1&t)return 2;let n=t>>1,i=e.status[n];if(4==i)throw new Error("Cyclic dependency between fields and/or facets");if(2&i)return i;e.status[n]=4;let r=e.computeSlot(e,e.config.dynamicSlots[n]);return e.status[n]=2|r}function xt(e,t){return 1&t?e.config.staticValues[t>>1]:e.values[t>>1]}const vt=et.define(),yt=et.define({combine:e=>e.some((e=>e)),static:!0}),wt=et.define({combine:e=>e.length?e[0]:void 0,static:!0}),St=et.define(),kt=et.define(),Tt=et.define(),Qt=et.define({combine:e=>!!e.length&&e[0]});class Pt{constructor(e,t){this.type=e,this.value=t}static define(){return new Ct}}class Ct{of(e){return new Pt(this,e)}}class $t{constructor(e){this.map=e}of(e){return new It(this,e)}}class It{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return void 0===t?void 0:t==this.value?this:new It(this.type,t)}is(e){return this.type==e}static define(e={}){return new $t(e.map||(e=>e))}static mapEffects(e,t){if(!e.length)return e;let n=[];for(let i of e){let e=i.map(t);e&&n.push(e)}return n}}It.reconfigure=It.define(),It.appendConfig=It.define();class Rt{constructor(e,t,n,i,r,o){this.startState=e,this.changes=t,this.selection=n,this.effects=i,this.annotations=r,this.scrollIntoView=o,this._doc=null,this._state=null,n&&Je(n,t.newLength),r.some((e=>e.type==Rt.time))||(this.annotations=r.concat(Rt.time.of(Date.now())))}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(Rt.userEvent);return!(!t||!(t==e||t.length>e.length&&t.slice(0,e.length)==e&&"."==t[e.length]))}}function At(e,t){let n=[];for(let i=0,r=0;;){let o,s;if(i=e[i]))o=e[i++],s=e[i++];else{if(!(r=0;r--){let o=n[r](e);o&&Object.keys(o).length&&(i=Mt(e,jt(t,o,e.changes.newLength),!0))}return i==e?e:new Rt(t,e.changes,e.selection,i.effects,i.annotations,i.scrollIntoView)}(n?function(e){let t=e.startState,n=!0;for(let r of t.facet(St)){let t=r(e);if(!1===t){n=!1;break}Array.isArray(t)&&(n=!0===n?t:At(n,t))}if(!0!==n){let i,r;if(!1===n)r=e.changes.invertedDesc,i=Be.empty(t.doc.length);else{let t=e.changes.filter(n);i=t.changes,r=t.filtered.invertedDesc}e=new Rt(t,i,e.selection&&e.selection.map(r),It.mapEffects(e.effects,r),e.annotations,e.scrollIntoView)}let i=t.facet(kt);for(let r=i.length-1;r>=0;r--){let n=i[r](e);e=n instanceof Rt?n:Array.isArray(n)&&1==n.length&&n[0]instanceof Rt?n[0]:Et(t,zt(n),!1)}return e}(r):r)}Rt.time=Pt.define(),Rt.userEvent=Pt.define(),Rt.addToHistory=Pt.define(),Rt.remote=Pt.define();const Xt=[];function zt(e){return null==e?Xt:Array.isArray(e)?e:[e]}var Wt=function(e){return e[e.Word=0]="Word",e[e.Space=1]="Space",e[e.Other=2]="Other",e}(Wt||(Wt={}));const _t=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let Lt;try{Lt=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch($g){}function Dt(e){return t=>{if(!/\S/.test(t))return Wt.Space;if(function(e){if(Lt)return Lt.test(e);for(let t=0;t"\x80"&&(n.toUpperCase()!=n.toLowerCase()||_t.test(n)))return!0}return!1}(t))return Wt.Word;for(let n=0;n-1)return Wt.Word;return Wt.Other}}class Bt{constructor(e,t,n,i,r,o){this.config=e,this.doc=t,this.selection=n,this.values=i,this.status=e.statusTemplate.slice(),this.computeSlot=r,o&&(o._state=this);for(let s=0;sr.set(t,e))),n=null),r.set(o.value.compartment,o.value.extension)):o.is(It.reconfigure)?(n=null,i=o.value):o.is(It.appendConfig)&&(n=null,i=zt(i).concat(o.value));if(n)t=e.startState.values.slice();else{n=Ot.resolve(i,r,this),t=new Bt(n,this.doc,this.selection,n.dynamicSlots.map((()=>null)),((e,t)=>t.reconfigure(e,this)),null).values}new Bt(n,e.newDoc,e.newSelection,t,((t,n)=>n.update(t,e)),e)}replaceSelection(e){return"string"==typeof e&&(e=this.toText(e)),this.changeByRange((t=>({changes:{from:t.from,to:t.to,insert:e},range:Ye.cursor(t.from+e.length)})))}changeByRange(e){let t=this.selection,n=e(t.ranges[0]),i=this.changes(n.changes),r=[n.range],o=zt(n.effects);for(let s=1;st.spec.fromJSON(o,e))))}return Bt.create({doc:e.doc,selection:Ye.fromJSON(e.selection),extensions:t.extensions?i.concat([t.extensions]):i})}static create(e={}){let t=Ot.resolve(e.extensions||[],new Map),n=e.doc instanceof Ie?e.doc:Ie.of((e.doc||"").split(t.staticFacet(Bt.lineSeparator)||_e)),i=e.selection?e.selection instanceof Ye?e.selection:Ye.single(e.selection.anchor,e.selection.head):Ye.single(0);return Je(i,n.length),t.staticFacet(yt)||(i=i.asSingle()),new Bt(t,n,i,t.dynamicSlots.map((()=>null)),((e,t)=>t.create(e)),null)}get tabSize(){return this.facet(Bt.tabSize)}get lineBreak(){return this.facet(Bt.lineSeparator)||"\n"}get readOnly(){return this.facet(Qt)}phrase(e){for(let t of this.facet(Bt.phrases))if(Object.prototype.hasOwnProperty.call(t,e))return t[e];return e}languageDataAt(e,t,n=-1){let i=[];for(let r of this.facet(vt))for(let o of r(this,t,n))Object.prototype.hasOwnProperty.call(o,e)&&i.push(o[e]);return i}charCategorizer(e){return Dt(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:t,from:n,length:i}=this.doc.lineAt(e),r=this.charCategorizer(e),o=e-n,s=e-n;for(;o>0;){let e=ye(t,o,!1);if(r(t.slice(e,o))!=Wt.Word)break;o=e}for(;se.length?e[0]:4}),Bt.lineSeparator=wt,Bt.readOnly=Qt,Bt.phrases=et.define(),Bt.languageData=vt,Bt.changeFilter=St,Bt.transactionFilter=kt,Bt.transactionExtender=Tt,mt.reconfigure=It.define();const Zt="undefined"==typeof Symbol?"__\u037c":Symbol.for("\u037c"),Nt="undefined"==typeof Symbol?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),Ft="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:{};class Gt{constructor(e,t){this.rules=[];let{finish:n}=t||{};function i(e){return/^@/.test(e)?[e]:e.split(/,\s*/)}function r(e,t,o,s){let a=[],l=/^@(\w+)\b/.exec(e[0]),c=l&&"keyframes"==l[1];if(l&&null==t)return o.push(e[0]+";");for(let n in t){let s=t[n];if(/&/.test(n))r(n.split(/,\s*/).map((t=>e.map((e=>t.replace(/&/,e))))).reduce(((e,t)=>e.concat(t))),s,o);else if(s&&"object"==typeof s){if(!l)throw new RangeError("The value of a property ("+n+") should be a primitive value.");r(i(n),s,a,c)}else null!=s&&a.push(n.replace(/_.*/,"").replace(/[A-Z]/g,(e=>"-"+e.toLowerCase()))+": "+s+";")}(a.length||c)&&o.push((!n||l||s?e:e.map(n)).join(", ")+" {"+a.join(" ")+"}")}for(let o in e)r(i(o),e[o],this.rules)}getRules(){return this.rules.join("\n")}static newName(){let e=Ft[Zt]||1;return Ft[Zt]=e+1,"\u037c"+e.toString(36)}static mount(e,t){(e[Nt]||new Vt(e)).mount(Array.isArray(t)?t:[t])}}let qt=null;class Vt{constructor(e){if(!e.head&&e.adoptedStyleSheets&&"undefined"!=typeof CSSStyleSheet){if(qt)return e.adoptedStyleSheets=[qt.sheet].concat(e.adoptedStyleSheets),e[Nt]=qt;this.sheet=new CSSStyleSheet,e.adoptedStyleSheets=[this.sheet].concat(e.adoptedStyleSheets),qt=this}else{this.styleTag=(e.ownerDocument||e).createElement("style");let t=e.head||e;t.insertBefore(this.styleTag,t.firstChild)}this.modules=[],e[Nt]=this}mount(e){let t=this.sheet,n=0,i=0;for(let r=0;r-1&&(this.modules.splice(s,1),i--,s=-1),-1==s){if(this.modules.splice(i++,0,o),t)for(let e=0;e>1,a=r[i]-e||(n?this.value[i].endSide:this.value[i].startSide)-t;if(i==o)return a>=0?o:s;a>=0?s=i:o=i+1}}between(e,t,n,i){for(let r=this.findIndex(t,-1e9,!0),o=this.findIndex(n,1e9,!1,r);rc||l==c&&h.startSide>0&&h.endSide<=0)continue;(c-l||h.endSide-h.startSide)<0||(o<0&&(o=l),h.point&&(s=Math.max(s,c-l)),n.push(h),i.push(l-o),r.push(c-o))}return{mapped:n.length?new Kt(i,r,n,s):null,pos:o}}}class en{constructor(e,t,n=en.empty,i){this.chunkPos=e,this.chunk=t,this.nextLayer=n,this.maxPoint=i}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:n=!1,filterFrom:i=0,filterTo:r=this.length}=e,o=e.filter;if(0==t.length&&!o)return this;if(n&&(t=t.slice().sort(Jt)),this.isEmpty)return t.length?en.of(t):this;let s=new rn(this,null,-1).goto(0),a=0,l=[],c=new tn;for(;s.value||a=0){let e=t[a++];c.addInner(e.from,e.to,e.value)||l.push(e)}else 1==s.rangeIndex&&s.chunkIndexthis.chunkEnd(s.chunkIndex)||rs.to||r=r&&e<=r+o.length&&!1===o.between(r,e-r,t-r,n))return}this.nextLayer.between(e,t,n)}}iter(e=0){return on.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return on.from(e).goto(t)}static compare(e,t,n,i,r=-1){let o=e.filter((e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=r)),s=t.filter((e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=r)),a=nn(o,s,n),l=new an(o,a,r),c=new an(s,a,r);n.iterGaps(((e,t,n)=>ln(l,e,c,t,n,i))),n.empty&&0==n.length&&ln(l,0,c,0,0,i)}static eq(e,t,n=0,i){null==i&&(i=1e9);let r=e.filter((e=>!e.isEmpty&&t.indexOf(e)<0)),o=t.filter((t=>!t.isEmpty&&e.indexOf(t)<0));if(r.length!=o.length)return!1;if(!r.length)return!0;let s=nn(r,o),a=new an(r,s,0).goto(n),l=new an(o,s,0).goto(n);for(;;){if(a.to!=l.to||!cn(a.active,l.active)||a.point&&(!l.point||!a.point.eq(l.point)))return!1;if(a.to>i)return!0;a.next(),l.next()}}static spans(e,t,n,i,r=-1){var o;let s=new an(e,null,r,null===(o=i.filterPoint)||void 0===o?void 0:o.bind(i)).goto(t),a=t,l=s.openStart;for(;;){let e=Math.min(s.to,n);if(s.point?(i.point(a,e,s.point,s.activeForPoint(s.to),l),l=s.openEnd(e)+(s.to>e?1:0)):e>a&&(i.span(a,e,s.active,l),l=s.openEnd(e)),s.to>n)break;a=s.to,s.next()}return l}static of(e,t=!1){let n=new tn;for(let i of e instanceof Ht?[e]:t?function(e){if(e.length>1)for(let t=e[0],n=1;n0)return e.slice().sort(Jt);t=i}return e}(e):e)n.add(i.from,i.to,i.value);return n.finish()}}en.empty=new en([],[],null,-1),en.empty.nextLayer=en.empty;class tn{constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}finishChunk(e){this.chunks.push(new Kt(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}add(e,t,n){this.addInner(e,t,n)||(this.nextLayer||(this.nextLayer=new tn)).add(e,t,n)}addInner(e,t,n){let i=e-this.lastTo||n.startSide-this.last.endSide;if(i<=0&&(e-this.lastFrom||n.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return!(i<0)&&(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=n,this.lastFrom=e,this.lastTo=t,this.value.push(n),n.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),!0)}addChunk(e,t){if((e-this.lastTo||t.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let n=t.value.length-1;return this.last=t.value[n],this.lastFrom=t.from[n]+e,this.lastTo=t.to[n]+e,!0}finish(){return this.finishInner(en.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return e;let t=new en(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}function nn(e,t,n){let i=new Map;for(let o of e)for(let e=0;e=this.minPoint)break}}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=n&&i.push(new rn(o,t,n,r));return 1==i.length?i[0]:new on(i)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let n of this.heap)n.goto(e,t);for(let n=this.heap.length>>1;n>=0;n--)sn(this.heap,n);return this.next(),this}forward(e,t){for(let n of this.heap)n.forward(e,t);for(let n=this.heap.length>>1;n>=0;n--)sn(this.heap,n);(this.to-e||this.value.endSide-t)<0&&this.next()}next(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),sn(this.heap,0)}}}function sn(e,t){for(let n=e[t];;){let i=1+(t<<1);if(i>=e.length)break;let r=e[i];if(i+1=0&&(r=e[i+1],i++),n.compare(r)<0)break;e[i]=n,e[t]=r,t=i}}class an{constructor(e,t,n,i=(()=>!0)){this.minPoint=n,this.filterPoint=i,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=on.from(e,t,n)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t)<0;)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){hn(this.active,e),hn(this.activeTo,e),hn(this.activeRank,e),this.minActive=dn(this.active,this.activeTo)}addActive(e){let t=0,{value:n,to:i,rank:r}=this.cursor;for(;t-1&&(this.activeTo[r]-this.cursor.from||this.active[r].endSide-this.cursor.startSide)<0){if(this.activeTo[r]>e){this.to=this.activeTo[r],this.endSide=this.active[r].endSide;break}this.removeActive(r),n&&hn(n,r)}else{if(!this.cursor.value){this.to=this.endSide=1e9;break}if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}{let r=this.cursor.value;if(r.point)if(t&&this.cursor.to==this.to&&this.cursor.from=0&&!(this.activeRank[n]e||this.activeTo[n]==e&&this.active[n].endSide>=this.point.endSide)&&t.push(this.active[n]);return t.reverse()}openEnd(e){let t=0;for(let n=this.activeTo.length-1;n>=0&&this.activeTo[n]>e;n--)t++;return t}}function ln(e,t,n,i,r,o){e.goto(t),n.goto(i);let s=i+r,a=i,l=i-t;for(;;){let t=e.to+l-n.to||e.endSide-n.endSide,i=t<0?e.to+l:n.to,r=Math.min(i,s);if(e.point||n.point?e.point&&n.point&&(e.point==n.point||e.point.eq(n.point))&&cn(e.activeForPoint(e.to+l),n.activeForPoint(n.to))||o.comparePoint(a,r,e.point,n.point):r>a&&!cn(e.active,n.active)&&o.compareRange(a,r,e.active,n.active),i>s)break;a=i,t<=0&&e.next(),t>=0&&n.next()}}function cn(e,t){if(e.length!=t.length)return!1;for(let n=0;n=t;i--)e[i+1]=e[i];e[t]=n}function dn(e,t){let n=-1,i=1e9;for(let r=0;r",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},mn="undefined"!=typeof navigator&&/Chrome\/(\d+)/.exec(navigator.userAgent),gn=("undefined"!=typeof navigator&&/Gecko\/\d+/.test(navigator.userAgent),"undefined"!=typeof navigator&&/Mac/.test(navigator.platform)),On="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),bn=gn||mn&&+mn[1]<57,xn=0;xn<10;xn++)un[48+xn]=un[96+xn]=String(xn);for(xn=1;xn<=24;xn++)un[xn+111]="F"+xn;for(xn=65;xn<=90;xn++)un[xn]=String.fromCharCode(xn+32),fn[xn]=String.fromCharCode(xn);for(var vn in un)fn.hasOwnProperty(vn)||(fn[vn]=un[vn]);function yn(e){let t;return t=11==e.nodeType?e.getSelection?e:e.ownerDocument:e,t.getSelection()}function wn(e,t){return!!t&&(e==t||e.contains(1!=t.nodeType?t.parentNode:t))}function Sn(e,t){if(!t.anchorNode)return!1;try{return wn(e,t.anchorNode)}catch($g){return!1}}function kn(e){return 3==e.nodeType?Xn(e,0,e.nodeValue.length).getClientRects():1==e.nodeType?e.getClientRects():[]}function Tn(e,t,n,i){return!!n&&(Pn(e,t,n,i,-1)||Pn(e,t,n,i,1))}function Qn(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t}function Pn(e,t,n,i,r){for(;;){if(e==n&&t==i)return!0;if(t==(r<0?0:Cn(e))){if("DIV"==e.nodeName)return!1;let n=e.parentNode;if(!n||1!=n.nodeType)return!1;t=Qn(e)+(r<0?0:1),e=n}else{if(1!=e.nodeType)return!1;if(1==(e=e.childNodes[t+(r<0?-1:0)]).nodeType&&"false"==e.contentEditable)return!1;t=r<0?Cn(e):0}}}function Cn(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}const $n={left:0,right:0,top:0,bottom:0};function In(e,t){let n=t?e.left:e.right;return{left:n,right:n,top:e.top,bottom:e.bottom}}function Rn(e){return{left:0,right:e.innerWidth,top:0,bottom:e.innerHeight}}class An{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){this.set(e.anchorNode,e.anchorOffset,e.focusNode,e.focusOffset)}set(e,t,n,i){this.anchorNode=e,this.anchorOffset=t,this.focusNode=n,this.focusOffset=i}}let Mn,jn=null;function En(e){if(e.setActive)return e.setActive();if(jn)return e.focus(jn);let t=[];for(let n=e;n&&(t.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(e.focus(null==jn?{get preventScroll(){return jn={preventScroll:!0},!0}}:void 0),!jn){jn=!1;for(let e=0;et)return n.domBoundsAround(e,t,l);if(h>=e&&-1==i&&(i=a,r=l),l>t&&n.dom.parentNode==this.dom){o=a,s=c;break}c=h,l=h+n.breakAfter}return{from:r,to:s<0?n+this.length:s,startDOM:(i?this.children[i-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:o=0?this.children[o].dom:null}}markDirty(e=!1){this.dirty|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let t=this.parent;t;t=t.parent){if(e&&(t.dirty|=2),1&t.dirty)return;t.dirty|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,this.dirty&&this.markParentsDirty(!0))}setDOM(e){this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this}get rootView(){for(let e=this;;){let t=e.parent;if(!t)return e;e=t}}replaceChildren(e,t,n=Ln){this.markDirty();for(let i=e;ithis.pos||e==this.pos&&(t>0||0==this.i||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let n=this.children[--this.i];this.pos-=n.length+n.breakAfter}}}function Zn(e,t,n,i,r,o,s,a,l){let{children:c}=e,h=c.length?c[t]:null,p=o.length?o[o.length-1]:null,d=p?p.breakAfter:s;if(!(t==i&&h&&!s&&!d&&o.length<2&&h.merge(n,r,o.length?p:null,0==n,a,l))){if(i0&&(!s&&o.length&&h.merge(n,h.length,o[0],!1,a,0)?h.breakAfter=o.shift().breakAfter:(n2);var ii={mac:ni||/Mac/.test(Fn.platform),windows:/Win/.test(Fn.platform),linux:/Linux|X11/.test(Fn.platform),ie:Hn,ie_version:Vn?Gn.documentMode||6:Yn?+Yn[1]:qn?+qn[1]:0,gecko:Jn,gecko_version:Jn?+(/Firefox\/(\d+)/.exec(Fn.userAgent)||[0,0])[1]:0,chrome:!!Kn,chrome_version:Kn?+Kn[1]:0,ios:ni,android:/Android\b/.test(Fn.userAgent),webkit:ei,safari:ti,webkit_version:ei?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:null!=Gn.documentElement.style.tabSize?"tab-size":"-moz-tab-size"};class ri extends Dn{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(e&&e.node==this.dom&&(e.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){3==e.nodeType&&this.createDOM(e)}merge(e,t,n){return(!n||n instanceof ri&&!(this.length-(t-e)+n.length>256))&&(this.text=this.text.slice(0,e)+(n?n.text:"")+this.text.slice(t),this.markDirty(),!0)}split(e){let t=new ri(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),t}localPosFromDOM(e,t){return e==this.dom?t:t?this.text.length:0}domAtPos(e){return new _n(this.dom,e)}domBoundsAround(e,t,n){return{from:n,to:n+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,t){return si(this.dom,e,t)}}class oi extends Dn{constructor(e,t=[],n=0){super(),this.mark=e,this.children=t,this.length=n;for(let i of t)i.setParent(this)}setAttrs(e){if(Wn(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let t in this.mark.attrs)e.setAttribute(t,this.mark.attrs[t]);return e}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.dirty|=6)}sync(e){this.dom?4&this.dirty&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e)}merge(e,t,n,i,r,o){return(!n||!(!(n instanceof oi&&n.mark.eq(this.mark))||e&&r<=0||te&&t.push(n=e&&(i=r),n=o,r++}let o=this.length-e;return this.length=e,i>-1&&(this.children.length=i,this.markDirty()),new oi(this.mark,t,o)}domAtPos(e){return di(this.dom,this.children,e)}coordsAt(e,t){return fi(this,e,t)}}function si(e,t,n){let i=e.nodeValue.length;t>i&&(t=i);let r=t,o=t,s=0;0==t&&n<0||t==i&&n>=0?ii.chrome||ii.gecko||(t?(r--,s=1):(o++,s=-1)):n<0?r--:o++;let a=Xn(e,r,o).getClientRects();if(!a.length)return $n;let l=a[(s?s<0:n>=0)?0:a.length-1];return ii.safari&&!s&&0==l.width&&(l=Array.prototype.find.call(a,(e=>e.width))||l),s?In(l,s<0):l||null}class ai extends Dn{constructor(e,t,n){super(),this.widget=e,this.length=t,this.side=n,this.prevWidget=null}static create(e,t,n){return new(e.customView||ai)(e,t,n)}split(e){let t=ai.create(this.widget,this.length-e,this.side);return this.length-=e,t}sync(){this.dom&&this.widget.updateDOM(this.dom)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(this.editorView)),this.dom.contentEditable="false")}getSide(){return this.side}merge(e,t,n,i,r,o){return!(n&&(!(n instanceof ai&&this.widget.compare(n.widget))||e>0&&r<=0||t0?n.length-1:0;i=n[r],!(e>0?0==r:r==n.length-1||i.top0?-1:1);return 0==e&&t>0||e==this.length&&t<=0?i:In(i,0==e)}get isEditable(){return!1}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}}class li extends ai{domAtPos(e){let{topView:t,text:n}=this.widget;return t?ci(e,0,t,n,((e,t)=>e.domAtPos(t)),(e=>new _n(n,Math.min(e,n.nodeValue.length)))):new _n(n,Math.min(e,n.nodeValue.length))}sync(){this.setDOM(this.widget.toDOM())}localPosFromDOM(e,t){let{topView:n,text:i}=this.widget;return n?hi(e,t,n,i):Math.min(t,this.length)}ignoreMutation(){return!1}get overrideDOMText(){return null}coordsAt(e,t){let{topView:n,text:i}=this.widget;return n?ci(e,t,n,i,((e,t,n)=>e.coordsAt(t,n)),((e,t)=>si(i,e,t))):si(i,e,t)}destroy(){var e;super.destroy(),null===(e=this.widget.topView)||void 0===e||e.destroy()}get isEditable(){return!0}}function ci(e,t,n,i,r,o){if(n instanceof oi){for(let s of n.children){let n=wn(s.dom,i),a=n?i.nodeValue.length:s.length;if(e=0;)if(t<0?i>0:i0?-1:1);return n&&n.topt.top?{left:t.left,right:t.right,top:n.top,bottom:n.bottom}:t}get overrideDOMText(){return Ie.empty}}function di(e,t,n){let i=0;for(let r=0;ir&&n0;i--){let n=t[i-1].dom;if(n.parentNode==e)return _n.after(n)}return new _n(e,0)}function ui(e,t,n){let i,{children:r}=e;n>0&&t instanceof oi&&r.length&&(i=r[r.length-1])instanceof oi&&i.mark.eq(t.mark)?ui(i,t.children[0],n-1):(r.push(t),t.setParent(e)),e.length+=t.length}function fi(e,t,n){for(let o=0,s=0;s0?a>=t:a>t)&&(t0)){let e=0;if(a==o){if(r.getSide()<=0)continue;e=n=-r.getSide()}let i=r.coordsAt(Math.max(0,t-o),n);return e&&i?In(i,n<0):i}o=a}let i=e.dom.lastChild;if(!i)return e.dom.getBoundingClientRect();let r=kn(i);return r[r.length-1]||null}function mi(e,t){for(let n in e)"class"==n&&t.class?t.class+=" "+e.class:"style"==n&&t.style?t.style+=";"+e.style:t[n]=e[n];return t}function gi(e,t){if(e==t)return!0;if(!e||!t)return!1;let n=Object.keys(e),i=Object.keys(t);if(n.length!=i.length)return!1;for(let r of n)if(-1==i.indexOf(r)||e[r]!==t[r])return!1;return!0}function Oi(e,t,n){if(t)for(let i in t)n&&i in n||e.removeAttribute(i);if(n)for(let i in n)t&&t[i]==n[i]||e.setAttribute(i,n[i])}ri.prototype.children=ai.prototype.children=pi.prototype.children=Ln;class bi{eq(e){return!1}updateDOM(e){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}ignoreEvent(e){return!0}get customView(){return null}destroy(e){}}var xi=function(e){return e[e.Text=0]="Text",e[e.WidgetBefore=1]="WidgetBefore",e[e.WidgetAfter=2]="WidgetAfter",e[e.WidgetRange=3]="WidgetRange",e}(xi||(xi={}));class vi extends Yt{constructor(e,t,n,i){super(),this.startSide=e,this.endSide=t,this.widget=n,this.spec=i}get heightRelevant(){return!1}static mark(e){return new yi(e)}static widget(e){let t=e.side||0,n=!!e.block;return t+=n?t>0?3e8:-4e8:t>0?1e8:-1e8,new Si(e,t,t,n,e.widget||null,!1)}static replace(e){let t,n,i=!!e.block;if(e.isBlockGap)t=-5e8,n=4e8;else{let{start:r,end:o}=ki(e,i);t=(r?i?-3e8:-1:5e8)-1,n=1+(o?i?2e8:1:-6e8)}return new Si(e,t,n,i,e.widget||null,!0)}static line(e){return new wi(e)}static set(e,t=!1){return en.of(e,t)}hasHeight(){return!!this.widget&&this.widget.estimatedHeight>-1}}vi.none=en.empty;class yi extends vi{constructor(e){let{start:t,end:n}=ki(e);super(t?-1:5e8,n?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){return this==e||e instanceof yi&&this.tagName==e.tagName&&this.class==e.class&&gi(this.attrs,e.attrs)}range(e,t=e){if(e>=t)throw new RangeError("Mark decorations may not be empty");return super.range(e,t)}}yi.prototype.point=!1;class wi extends vi{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof wi&&gi(this.spec.attributes,e.spec.attributes)}range(e,t=e){if(t!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,t)}}wi.prototype.mapMode=Le.TrackBefore,wi.prototype.point=!0;class Si extends vi{constructor(e,t,n,i,r,o){super(t,n,r,e),this.block=i,this.isReplace=o,this.mapMode=i?t<=0?Le.TrackBefore:Le.TrackAfter:Le.TrackDel}get type(){return this.startSide=5}eq(e){return e instanceof Si&&function(e,t){return e==t||!!(e&&t&&e.compare(t))}(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,t=e){if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&t!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,t)}}function ki(e,t=!1){let{inclusiveStart:n,inclusiveEnd:i}=e;return null==n&&(n=e.inclusive),null==i&&(i=e.inclusive),{start:null!=n?n:t,end:null!=i?i:t}}function Ti(e,t,n,i=0){let r=n.length-1;r>=0&&n[r]+i>=e?n[r]=Math.max(n[r],t):n.push(e,t)}Si.prototype.point=!0;class Qi extends Dn{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(e,t,n,i,r,o){if(n){if(!(n instanceof Qi))return!1;this.dom||n.transferDOM(this)}return i&&this.setDeco(n?n.attrs:null),Nn(this,e,t,n?n.children:[],r,o),!0}split(e){let t=new Qi;if(t.breakAfter=this.breakAfter,0==this.length)return t;let{i:n,off:i}=this.childPos(e);i&&(t.append(this.children[n].split(i),0),this.children[n].merge(i,this.children[n].length,null,!1,0,0),n++);for(let r=n;r0&&0==this.children[n-1].length;)this.children[--n].destroy();return this.children.length=n,this.markDirty(),this.length=e,t}transferDOM(e){this.dom&&(e.setDOM(this.dom),e.prevAttrs=void 0===this.prevAttrs?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){gi(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,t){ui(this,e,t)}addLineDeco(e){let t=e.spec.attributes,n=e.spec.class;t&&(this.attrs=mi(t,this.attrs||{})),n&&(this.attrs=mi({class:n},this.attrs||{}))}domAtPos(e){return di(this.dom,this.children,e)}reuseDOM(e){"DIV"==e.nodeName&&(this.setDOM(e),this.dirty|=6)}sync(e){var t;this.dom?4&this.dirty&&(Wn(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),void 0!==this.prevAttrs&&(Oi(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e);let n=this.dom.lastChild;for(;n&&Dn.get(n)instanceof oi;)n=n.lastChild;if(!(n&&this.length&&("BR"==n.nodeName||0!=(null===(t=Dn.get(n))||void 0===t?void 0:t.isEditable)||ii.ios&&this.children.some((e=>e instanceof ri))))){let e=document.createElement("BR");e.cmIgnore=!0,this.dom.appendChild(e)}}measureTextSize(){if(0==this.children.length||this.length>20)return null;let e=0;for(let t of this.children){if(!(t instanceof ri))return null;let n=kn(t.dom);if(1!=n.length)return null;e+=n[0].width}return{lineHeight:this.dom.getBoundingClientRect().height,charWidth:e/this.length}}coordsAt(e,t){return fi(this,e,t)}become(e){return!1}get type(){return xi.Text}static find(e,t){for(let n=0,i=0;n=t){if(r instanceof Qi)return r;if(o>t)break}i=o+r.breakAfter}return null}}class Pi extends Dn{constructor(e,t,n){super(),this.widget=e,this.length=t,this.type=n,this.breakAfter=0,this.prevWidget=null}merge(e,t,n,i,r,o){return!(n&&(!(n instanceof Pi&&this.widget.compare(n.widget))||e>0&&r<=0||t0;){if(this.textOff==this.text.length){let{value:t,lineBreak:n,done:i}=this.cursor.next(this.skip);if(this.skip=0,i)throw new Error("Ran out of text content when drawing inline views");if(n){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer([]),this.curLine=null,e--;continue}this.text=t,this.textOff=0}let i=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(t.slice(0,n)),this.getLine().append($i(new ri(this.text.slice(this.textOff,this.textOff+i)),t),n),this.atCursorPos=!0,this.textOff+=i,e-=i,n=0}}span(e,t,n,i){this.buildText(t-e,n,i),this.pos=t,this.openStart<0&&(this.openStart=i)}point(e,t,n,i,r){let o=t-e;if(n instanceof Si)if(n.block){let{type:e}=n;e!=xi.WidgetAfter||this.posCovered()||this.getLine(),this.addBlockWidget(new Pi(n.widget||new Ii("div"),o,e))}else{let s=ai.create(n.widget||new Ii("span"),o,n.startSide),a=this.atCursorPos&&!s.isEditable&&r<=i.length&&(e0),l=!s.isEditable&&(ethis.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}return!0}static build(e,t,n,i,r){let o=new Ci(e,t,n,r);return o.openEnd=en.spans(i,t,n,o),o.openStart<0&&(o.openStart=o.openEnd),o.finish(o.openEnd),o}}function $i(e,t){for(let n of t)e=new oi(n,[e],e.length);return e}class Ii extends bi{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}}const Ri=[],Ai=et.define(),Mi=et.define(),ji=et.define(),Ei=et.define(),Xi=et.define(),zi=et.define(),Wi=It.define({map:(e,t)=>e.map(t)}),_i=It.define({map:(e,t)=>e.map(t)});class Li{constructor(e,t="nearest",n="nearest",i=5,r=5){this.range=e,this.y=t,this.x=n,this.yMargin=i,this.xMargin=r}map(e){return e.empty?this:new Li(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin)}}const Di=It.define({map:(e,t)=>e.map(t)});function Bi(e,t,n){let i=e.facet(Ei);i.length?i[0](t):window.onerror?window.onerror(String(t),n,void 0,void 0,t):n?console.error(n+":",t):console.error(t)}const Ui=et.define({combine:e=>!e.length||e[0]});class Zi{constructor(e,t){this.field=e,this.get=t}}class Ni{from(e){return new Zi(this,e)}static define(){return new Ni}}Ni.decorations=Ni.define(),Ni.atomicRanges=Ni.define(),Ni.scrollMargins=Ni.define();let Fi=0;const Gi=et.define();class qi{constructor(e,t,n){this.id=e,this.create=t,this.fields=n,this.extension=Gi.of(this)}static define(e,t){let{eventHandlers:n,provide:i,decorations:r}=t||{},o=[];if(i)for(let s of Array.isArray(i)?i:[i])o.push(s);return n&&o.push(Vi.from((e=>({plugin:e,handlers:n})))),r&&o.push(Ni.decorations.from(r)),new qi(Fi++,e,o)}static fromClass(e,t){return qi.define((t=>new e(t)),t)}}const Vi=Ni.define();class Yi{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}takeField(e,t){if(this.spec)for(let{field:n,get:i}of this.spec.fields)n==e&&t.push(i(this.value))}update(e){if(this.value){if(this.mustUpdate){let e=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(e)}catch(t){if(Bi(e.state,t,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch($g){}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(t){Bi(e.state,t,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var t;if(null===(t=this.value)||void 0===t?void 0:t.destroy)try{this.value.destroy()}catch(n){Bi(e.state,n,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const Hi=et.define(),Ji=et.define(),Ki=et.define(),er=et.define();class tr{constructor(e,t,n,i){this.fromA=e,this.toA=t,this.fromB=n,this.toB=i}join(e){return new tr(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let t=e.length,n=this;for(;t>0;t--){let i=e[t-1];if(!(i.fromA>n.toA)){if(i.toAc)break;r+=2}if(!a)return n;new tr(a.fromA,a.toA,a.fromB,a.toB).addToSet(n),o=a.toA,s=a.toB}}}class nr{constructor(e,t,n=Ri){this.view=e,this.state=t,this.transactions=n,this.flags=0,this.startState=e.state,this.changes=Be.empty(this.startState.doc.length);for(let o of n)this.changes=this.changes.compose(o.changes);let i=[];this.changes.iterChangedRanges(((e,t,n,r)=>i.push(new tr(e,t,n,r)))),this.changedRanges=i;let r=e.hasFocus;r!=e.inputState.notifiedFocused&&(e.inputState.notifiedFocused=r,this.flags|=1)}get viewportChanged(){return(4&this.flags)>0}get heightChanged(){return(2&this.flags)>0}get geometryChanged(){return this.docChanged||(10&this.flags)>0}get focusChanged(){return(1&this.flags)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some((e=>e.selection))}get empty(){return 0==this.flags&&0==this.transactions.length}}var ir=function(e){return e[e.LTR=0]="LTR",e[e.RTL=1]="RTL",e}(ir||(ir={}));const rr=ir.LTR,or=ir.RTL;function sr(e){let t=[];for(let n=0;n=t){if(s.level==n)return o;(r<0||(0!=i?i<0?s.fromt:e[r].level>s.level))&&(r=o)}}if(r<0)throw new RangeError("Index out of range");return r}}const ur=[];function fr(e,t){let n=e.length,i=t==rr?1:2,r=t==rr?2:1;if(!e||1==i&&!pr.test(e))return mr(n);for(let a=0,l=i,c=i;a=0;e-=3)if(hr[e+1]==-l){let t=hr[e+2],n=2&t?i:4&t?1&t?r:i:0;n&&(ur[h]=ur[hr[e]]=n),p=e;break}}else{if(189==hr.length)break;hr[p++]=h,hr[p++]=a,hr[p++]=d}else if(2==(c=ur[h])||1==c){let e=c==i;d=e?0:1;for(let t=p-3;t>=0;t-=3){let n=hr[t+2];if(2&n)break;if(e)hr[t+2]|=2;else{if(4&n)break;hr[t+2]|=4}}}for(let a=0;ae;){let t=n,i=2!=ur[--n];for(;n>e&&i==(2!=ur[n-1]);)n--;s.push(new dr(n,t,i?2:1))}else s.push(new dr(e,a,0))}else for(let a=0;a1)for(let t of this.points)t.node==e&&t.pos>this.text.length&&(t.pos-=s-1);n=o+s}}readNode(e){if(e.cmIgnore)return;let t=Dn.get(e),n=t&&t.overrideDOMText;if(null!=n){this.findPointInside(e,n.length);for(let e=n.iter();!e.next().done;)e.lineBreak?this.lineBreak():this.append(e.value)}else 3==e.nodeType?this.readTextNode(e):"BR"==e.nodeName?e.nextSibling&&this.lineBreak():1==e.nodeType&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let n of this.points)n.node==e&&e.childNodes[n.offset]==t&&(n.pos=this.text.length)}findPointInside(e,t){for(let n of this.points)(3==e.nodeType?n.node==e:e.contains(n.node))&&(n.pos=this.text.length+Math.min(t,n.offset))}}function vr(e){return 1==e.nodeType&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(e.nodeName)}class yr{constructor(e,t){this.node=e,this.offset=t,this.pos=-1}}class wr extends Dn{constructor(e){super(),this.view=e,this.compositionDeco=vi.none,this.decorations=[],this.pluginDecorationLength=0,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(e.contentDOM),this.children=[new Qi],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new tr(0,0,0,e.state.doc.length)],0)}get root(){return this.view.root}get editorView(){return this.view}get length(){return this.view.state.doc.length}update(e){let t=e.changedRanges;this.minWidth>0&&t.length&&(t.every((({fromA:e,toA:t})=>tthis.minWidthTo))?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.view.inputState.composing<0?this.compositionDeco=vi.none:(e.transactions.length||this.dirty)&&(this.compositionDeco=function(e,t){let n=kr(e);if(!n)return vi.none;let{from:i,to:r,node:o,text:s}=n,a=t.mapPos(i,1),l=Math.max(a,t.mapPos(r,-1)),{state:c}=e,h=3==o.nodeType?o.nodeValue:new xr([],c).readRange(o.firstChild,null).text;if(l-a{this.dom.style.height=this.view.viewState.contentHeight+"px",this.dom.style.minWidth=this.minWidth?this.minWidth+"px":"";let e=ii.chrome||ii.ios?{node:n.selectionRange.focusNode,written:!1}:void 0;this.sync(e),this.dirty=0,e&&(e.written||n.selectionRange.focusNode!=e.node)&&(this.forceSelection=!0),this.dom.style.height=""}));let i=[];if(this.view.viewport.from||this.view.viewport.to=0?e[i]:null;if(!t)break;let{fromA:r,toA:o,fromB:s,toB:a}=t,{content:l,breakAtStart:c,openStart:h,openEnd:p}=Ci.build(this.view.state.doc,s,a,this.decorations,this.pluginDecorationLength),{i:d,off:u}=n.findPos(o,1),{i:f,off:m}=n.findPos(r,-1);Zn(this,f,m,d,u,l,c,h,p)}}updateSelection(e=!1,t=!1){if(e&&this.view.observer.readSelectionRange(),!t&&!this.mayControlSelection()||ii.ios&&this.view.inputState.rapidCompositionStart)return;let n=this.forceSelection;this.forceSelection=!1;let i=this.view.state.selection.main,r=this.domAtPos(i.anchor),o=i.empty?r:this.domAtPos(i.head);if(ii.gecko&&i.empty&&(1==(s=r).node.nodeType&&s.node.firstChild&&(0==s.offset||"false"==s.node.childNodes[s.offset-1].contentEditable)&&(s.offset==s.node.childNodes.length||"false"==s.node.childNodes[s.offset].contentEditable))){let e=document.createTextNode("");this.view.observer.ignore((()=>r.node.insertBefore(e,r.node.childNodes[r.offset]||null))),r=o=new _n(e,0),n=!0}var s;let a=this.view.observer.selectionRange;!n&&a.focusNode&&Tn(r.node,r.offset,a.anchorNode,a.anchorOffset)&&Tn(o.node,o.offset,a.focusNode,a.focusOffset)||(this.view.observer.ignore((()=>{ii.android&&ii.chrome&&this.dom.contains(a.focusNode)&&function(e,t){for(let n=e;n&&n!=t;n=n.assignedSlot||n.parentNode)if(1==n.nodeType&&"false"==n.contentEditable)return!0;return!1}(a.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let e=yn(this.root);if(i.empty){if(ii.gecko){let e=(t=r.node,n=r.offset,1!=t.nodeType?0:(n&&"false"==t.childNodes[n-1].contentEditable?1:0)|(ni.head&&([r,o]=[o,r]),t.setEnd(o.node,o.offset),t.setStart(r.node,r.offset),e.removeAllRanges(),e.addRange(t)}var t,n})),this.view.observer.setSelectionRange(r,o)),this.impreciseAnchor=r.precise?null:new _n(a.anchorNode,a.anchorOffset),this.impreciseHead=o.precise?null:new _n(a.focusNode,a.focusOffset)}enforceCursorAssoc(){if(this.compositionDeco.size)return;let e=this.view.state.selection.main,t=yn(this.root);if(!e.empty||!e.assoc||!t.modify)return;let n=Qi.find(this,e.head);if(!n)return;let i=n.posAtStart;if(e.head==i||e.head==i+n.length)return;let r=this.coordsAt(e.head,-1),o=this.coordsAt(e.head,1);if(!r||!o||r.bottom>o.top)return;let s=this.domAtPos(e.head+e.assoc);t.collapse(s.node,s.offset),t.modify("move",e.assoc<0?"forward":"backward","lineboundary")}mayControlSelection(){return this.view.state.facet(Ui)?this.root.activeElement==this.dom:Sn(this.dom,this.view.observer.selectionRange)}nearest(e){for(let t=e;t;){let e=Dn.get(t);if(e&&e.rootView==this)return e;t=t.parentNode}return null}posFromDOM(e,t){let n=this.nearest(e);if(!n)throw new RangeError("Trying to find position for a DOM position outside of the document");return n.localPosFromDOM(e,t)+n.posAtStart}domAtPos(e){let{i:t,off:n}=this.childCursor().findPos(e,-1);for(;to||e==o&&r.type!=xi.WidgetBefore&&r.type!=xi.WidgetAfter&&(!i||2==t||this.children[i-1].breakAfter||this.children[i-1].type==xi.WidgetBefore&&t>-2))return r.coordsAt(e-o,t);n=o}}measureVisibleLineHeights(){let e=[],{from:t,to:n}=this.view.viewState.viewport,i=this.view.contentDOM.clientWidth,r=i>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,o=-1;for(let s=0,a=0;an)break;if(s>=t){let t=l.dom.getBoundingClientRect();if(e.push(t.height),r){let e=l.dom.lastChild,n=e?kn(e):[];if(n.length){let e=n[n.length-1],r=this.view.textDirection==ir.LTR?e.right-t.left:t.right-e.left;r>o&&(o=r,this.minWidth=i,this.minWidthFrom=s,this.minWidthTo=c)}}}s=c+l.breakAfter}return e}measureTextSize(){for(let i of this.children)if(i instanceof Qi){let e=i.measureTextSize();if(e)return e}let e,t,n=document.createElement("div");return n.className="cm-line",n.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore((()=>{this.dom.appendChild(n);let i=kn(n.firstChild)[0];e=n.getBoundingClientRect().height,t=i?i.width/27:7,n.remove()})),{lineHeight:e,charWidth:t}}childCursor(e=this.length){let t=this.children.length;return t&&(e-=this.children[--t].length),new Un(this.children,e,t)}computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let n=0,i=0;;i++){let r=i==t.viewports.length?null:t.viewports[i],o=r?r.from-1:this.length;if(o>n){let i=t.lineBlockAt(o).bottom-t.lineBlockAt(n).top;e.push(vi.replace({widget:new Sr(i),block:!0,inclusive:!0,isBlockGap:!0}).range(n,o))}if(!r)break;n=r.to+1}return vi.set(e)}updateDeco(){let e=this.view.pluginField(Ni.decorations);return this.pluginDecorationLength=e.length,this.decorations=[...e,...this.view.state.facet(Ki),this.compositionDeco,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco]}scrollIntoView(e){let t,{range:n}=e,i=this.coordsAt(n.head,n.empty?n.assoc:n.head>n.anchor?-1:1);if(!i)return;!n.empty&&(t=this.coordsAt(n.anchor,n.anchor>n.head?-1:1))&&(i={left:Math.min(i.left,t.left),top:Math.min(i.top,t.top),right:Math.max(i.right,t.right),bottom:Math.max(i.bottom,t.bottom)});let r=0,o=0,s=0,a=0;for(let c of this.view.pluginField(Ni.scrollMargins))if(c){let{left:e,right:t,top:n,bottom:i}=c;null!=e&&(r=Math.max(r,e)),null!=t&&(o=Math.max(o,t)),null!=n&&(s=Math.max(s,n)),null!=i&&(a=Math.max(a,i))}let l={left:i.left-r,top:i.top-s,right:i.right+o,bottom:i.bottom+a};!function(e,t,n,i,r,o,s,a){let l=e.ownerDocument,c=l.defaultView;for(let h=e;h;)if(1==h.nodeType){let e,p=h==l.body;if(p)e=Rn(c);else{if(h.scrollHeight<=h.clientHeight&&h.scrollWidth<=h.clientWidth){h=h.parentNode;continue}let t=h.getBoundingClientRect();e={left:t.left,right:t.left+h.clientWidth,top:t.top,bottom:t.top+h.clientHeight}}let d=0,u=0;if("nearest"==r)t.top0&&t.bottom>e.bottom+u&&(u=t.bottom-e.bottom+u+s)):t.bottom>e.bottom&&(u=t.bottom-e.bottom+s,n<0&&t.top-u0&&t.right>e.right+d&&(d=t.right-e.right+d+o)):t.right>e.right&&(d=t.right-e.right+o,n<0&&t.left0&&n<=0)t=Cn(e=e.childNodes[t-1]);else{if(!(1==e.nodeType&&t=0))return null;e=e.childNodes[t],t=0}}}class Pr{constructor(){this.changes=[]}compareRange(e,t){Ti(e,t,this.changes)}comparePoint(e,t){Ti(e,t,this.changes)}}function Cr(e,t){return t.left>e?t.left-e:Math.max(0,e-t.right)}function $r(e,t){return t.top>e?t.top-e:Math.max(0,e-t.bottom)}function Ir(e,t){return e.topt.top+1}function Rr(e,t){return te.bottom?{top:e.top,left:e.left,right:e.right,bottom:t}:e}function Mr(e,t,n){let i,r,o,s,a,l,c,h;for(let d=e.firstChild;d;d=d.nextSibling){let e=kn(d);for(let p=0;pm||s==m&&o>f)&&(i=d,r=u,o=f,s=m),0==f?n>u.bottom&&(!c||c.bottomu.top)&&(l=d,h=u):c&&Ir(c,u)?c=Ar(c,u.bottom):h&&Ir(h,u)&&(h=Rr(h,u.top))}}if(c&&c.bottom>=n?(i=a,r=c):h&&h.top<=n&&(i=l,r=h),!i)return{node:e,offset:0};let p=Math.max(r.left,Math.min(r.right,t));return 3==i.nodeType?jr(i,p,n):o||"true"!=i.contentEditable?{node:e,offset:Array.prototype.indexOf.call(e.childNodes,i)+(t>=(r.left+r.right)/2?1:0)}:Mr(i,p,n)}function jr(e,t,n){let i=e.nodeValue.length,r=-1,o=1e9,s=0;for(let a=0;an?c.top-n:n-c.bottom)-1;if(c.left-1<=t&&c.right+1>=t&&h=(c.left+c.right)/2,i=n;if(ii.chrome||ii.gecko){Xn(e,a).getBoundingClientRect().left==c.right&&(i=!n)}if(h<=0)return{node:e,offset:a+(i?1:0)};r=a+(i?1:0),o=h}}}return{node:e,offset:r>-1?r:s>0?e.nodeValue.length:0}}function Er(e,{x:t,y:n},i,r=-1){var o;let s,a=e.contentDOM.getBoundingClientRect(),l=a.top+e.viewState.paddingTop,{docHeight:c}=e.viewState,h=n-l;if(h<0)return 0;if(h>c)return e.state.doc.length;for(let O=e.defaultLineHeight/2,b=!1;s=e.elementAtHeight(h),s.type!=xi.Text;)for(;h=r>0?s.bottom+O:s.top-O,!(h>=0&&h<=c);){if(b)return i?null:0;b=!0,r=-r}n=l+h;let p=s.from;if(pe.viewport.to)return e.viewport.to==e.state.doc.length?e.state.doc.length:i?null:Xr(e,a,s,t,n);let d=e.dom.ownerDocument,u=e.root.elementFromPoint?e.root:d,f=u.elementFromPoint(t,n);f&&!e.contentDOM.contains(f)&&(f=null),f||(t=Math.max(a.left+1,Math.min(a.right-1,t)),f=u.elementFromPoint(t,n),f&&!e.contentDOM.contains(f)&&(f=null));let m,g=-1;if(f&&0!=(null===(o=e.docView.nearest(f))||void 0===o?void 0:o.isEditable))if(d.caretPositionFromPoint){let e=d.caretPositionFromPoint(t,n);e&&({offsetNode:m,offset:g}=e)}else if(d.caretRangeFromPoint){let e=d.caretRangeFromPoint(t,n);e&&(({startContainer:m,startOffset:g}=e),ii.safari&&function(e,t,n){let i;if(3!=e.nodeType||t!=(i=e.nodeValue.length))return!1;for(let r=e.nextSibling;r;r=r.nextSibling)if(1!=r.nodeType||"BR"!=r.nodeName)return!1;return Xn(e,i-1,i).getBoundingClientRect().left>n}(m,g,t)&&(m=void 0))}if(!m||!e.docView.dom.contains(m)){let i=Qi.find(e.docView,p);if(!i)return h>s.top+s.height/2?s.to:s.from;({node:m,offset:g}=Mr(i.dom,t,n))}return e.docView.posFromDOM(m,g)}function Xr(e,t,n,i,r){let o=Math.round((i-t.left)*e.defaultCharacterWidth);if(e.lineWrapping&&n.height>1.5*e.defaultLineHeight){o+=Math.floor((r-n.top)/e.defaultLineHeight)*e.viewState.heightOracle.lineLength}let s=e.state.sliceDoc(n.from,n.to);return n.from+function(e,t,n,i){for(let r=0,o=0;;){if(o>=t)return r;if(r==e.length)break;o+=9==e.charCodeAt(r)?n-o%n:1,r=ye(e,r)}return!0===i?-1:e.length}(s,o,e.state.tabSize)}function zr(e,t,n,i){let r=e.state.doc.lineAt(t.head),o=e.bidiSpans(r);for(let s=t,a=null;;){let t=Or(r,o,e.textDirection,s,n),l=gr;if(!t){if(r.number==(n?e.state.doc.lines:1))return s;l="\n",r=e.state.doc.line(r.number+(n?1:-1)),o=e.bidiSpans(r),t=Ye.cursor(n?r.from:r.to)}if(a){if(!a(l))return s}else{if(!i)return t;a=i(l)}s=t}}function Wr(e,t,n){let i=e.pluginField(Ni.atomicRanges);for(;;){let e=!1;for(let r of i)r.between(n.from-1,n.from+1,((i,r,o)=>{n.from>i&&n.fromn.from?Ye.cursor(i,1):Ye.cursor(r,-1),e=!0)}));if(!e)return n}}class _r{constructor(e){this.lastKeyCode=0,this.lastKeyTime=0,this.pendingIOSKey=void 0,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastEscPress=0,this.lastContextMenu=0,this.scrollHandlers=[],this.registeredEvents=[],this.customHandlers=[],this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.rapidCompositionStart=!1,this.mouseSelection=null;for(let t in Zr){let n=Zr[t];e.contentDOM.addEventListener(t,(i=>{Ur(e,i)&&!this.ignoreDuringComposition(i)&&("keydown"==t&&this.keydown(e,i)||(this.mustFlushObserver(i)&&e.observer.forceFlush(),this.runCustomHandlers(t,e,i)?i.preventDefault():n(e,i)))})),this.registeredEvents.push(t)}this.notifiedFocused=e.hasFocus,this.ensureHandlers(e),ii.safari&&e.contentDOM.addEventListener("input",(()=>null))}setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}ensureHandlers(e){let t=this.customHandlers=e.pluginField(Vi);for(let n of t)for(let t in n.handlers)this.registeredEvents.indexOf(t)<0&&"scroll"!=t&&(this.registeredEvents.push(t),e.contentDOM.addEventListener(t,(n=>{Ur(e,n)&&this.runCustomHandlers(t,e,n)&&n.preventDefault()})))}runCustomHandlers(e,t,n){for(let r of this.customHandlers){let o=r.handlers[e];if(o)try{if(o.call(r.plugin,n,t)||n.defaultPrevented)return!0}catch(i){Bi(t.state,i)}}return!1}runScrollHandlers(e,t){for(let i of this.customHandlers){let r=i.handlers.scroll;if(r)try{r.call(i.plugin,t,e)}catch(n){Bi(e.state,n)}}}keydown(e,t){if(this.lastKeyCode=t.keyCode,this.lastKeyTime=Date.now(),9==t.keyCode&&Date.now()e.keyCode==t.keyCode)))||t.ctrlKey||t.altKey||t.metaKey||t.synthetic)&&(this.pendingIOSKey=n,setTimeout((()=>this.flushIOSKey(e)),250),!0)}flushIOSKey(e){let t=this.pendingIOSKey;return!!t&&(this.pendingIOSKey=void 0,zn(e.contentDOM,t.key,t.keyCode))}ignoreDuringComposition(e){return!!/^key/.test(e.type)&&(this.composing>0||!!(ii.safari&&Date.now()-this.compositionEndedAt<500)&&(this.compositionEndedAt=0,!0))}mustFlushObserver(e){return"keydown"==e.type&&229!=e.keyCode||"compositionend"==e.type&&!ii.ios}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.mouseSelection&&this.mouseSelection.update(e),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}const Lr=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],Dr=[16,17,18,20,91,92,224,225];class Br{constructor(e,t,n,i){this.view=e,this.style=n,this.mustSelect=i,this.lastEvent=t;let r=e.contentDOM.ownerDocument;r.addEventListener("mousemove",this.move=this.move.bind(this)),r.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=t.shiftKey,this.multiple=e.state.facet(Bt.allowMultipleSelections)&&function(e,t){let n=e.state.facet(Ai);return n.length?n[0](t):ii.mac?t.metaKey:t.ctrlKey}(e,t),this.dragMove=function(e,t){let n=e.state.facet(Mi);return n.length?n[0](t):ii.mac?!t.altKey:!t.ctrlKey}(e,t),this.dragging=!(!function(e,t){let{main:n}=e.state.selection;if(n.empty)return!1;let i=yn(e.root);if(0==i.rangeCount)return!0;let r=i.getRangeAt(0).getClientRects();for(let o=0;o=t.clientX&&e.top<=t.clientY&&e.bottom>=t.clientY)return!0}return!1}(e,t)||1!=io(t))&&null,!1===this.dragging&&(t.preventDefault(),this.select(t))}move(e){if(0==e.buttons)return this.destroy();!1===this.dragging&&this.select(this.lastEvent=e)}up(e){null==this.dragging&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=null}select(e){let t=this.style.get(e,this.extend,this.multiple);!this.mustSelect&&t.eq(this.view.state.selection)&&t.main.assoc==this.view.state.selection.main.assoc||this.view.dispatch({selection:t,userEvent:"select.pointer",scrollIntoView:!0}),this.mustSelect=!1}update(e){e.docChanged&&this.dragging&&(this.dragging=this.dragging.map(e.changes)),this.style.update(e)&&setTimeout((()=>this.select(this.lastEvent)),20)}}function Ur(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n,i=t.target;i!=e.contentDOM;i=i.parentNode)if(!i||11==i.nodeType||(n=Dn.get(i))&&n.ignoreEvent(t))return!1;return!0}const Zr=Object.create(null),Nr=ii.ie&&ii.ie_version<15||ii.ios&&ii.webkit_version<604;function Fr(e,t){let n,{state:i}=e,r=1,o=i.toText(t),s=o.lines==i.selection.ranges.length,a=null!=oo&&i.selection.ranges.every((e=>e.empty))&&oo==o.toString();if(a){let e=-1;n=i.changeByRange((n=>{let a=i.doc.lineAt(n.from);if(a.from==e)return{range:n};e=a.from;let l=i.toText((s?o.line(r++).text:t)+i.lineBreak);return{changes:{from:a.from,insert:l},range:Ye.cursor(n.from+l.length)}}))}else n=s?i.changeByRange((e=>{let t=o.line(r++);return{changes:{from:e.from,to:e.to,insert:t.text},range:Ye.cursor(e.from+t.length)}})):i.replaceSelection(o);e.dispatch(n,{userEvent:"input.paste",scrollIntoView:!0})}Zr.keydown=(e,t)=>{e.inputState.setSelectionOrigin("select"),27==t.keyCode?e.inputState.lastEscPress=Date.now():Dr.indexOf(t.keyCode)<0&&(e.inputState.lastEscPress=0)};let Gr=0;function qr(e,t,n,i){if(1==i)return Ye.cursor(t,n);if(2==i)return function(e,t,n=1){let i=e.charCategorizer(t),r=e.doc.lineAt(t),o=t-r.from;if(0==r.length)return Ye.cursor(t);0==o?n=1:o==r.length&&(n=-1);let s=o,a=o;n<0?s=ye(r.text,o,!1):a=ye(r.text,o);let l=i(r.text.slice(s,a));for(;s>0;){let e=ye(r.text,s,!1);if(i(r.text.slice(e,s))!=l)break;s=e}for(;a{Gr=Date.now(),e.inputState.setSelectionOrigin("select.pointer")},Zr.touchmove=e=>{e.inputState.setSelectionOrigin("select.pointer")},Zr.mousedown=(e,t)=>{if(e.observer.flush(),Gr>Date.now()-2e3&&1==io(t))return;let n=null;for(let i of e.state.facet(ji))if(n=i(e,t),n)break;if(n||0!=t.button||(n=function(e,t){let n=Jr(e,t),i=io(t),r=e.state.selection,o=n,s=t;return{update(e){e.docChanged&&(n&&(n.pos=e.changes.mapPos(n.pos)),r=r.map(e.changes),s=null)},get(t,a,l){let c;if(s&&t.clientX==s.clientX&&t.clientY==s.clientY?c=o:(c=o=Jr(e,t),s=t),!c||!n)return r;let h=qr(e,c.pos,c.bias,i);if(n.pos!=c.pos&&!a){let t=qr(e,n.pos,n.bias,i),r=Math.min(t.from,h.from),o=Math.max(t.to,h.to);h=rEn(e.contentDOM))),e.inputState.startMouseSelection(new Br(e,t,n,i))}};let Vr=(e,t)=>e>=t.top&&e<=t.bottom,Yr=(e,t,n)=>Vr(t,n)&&e>=n.left&&e<=n.right;function Hr(e,t,n,i){let r=Qi.find(e.docView,t);if(!r)return 1;let o=t-r.posAtStart;if(0==o)return 1;if(o==r.length)return-1;let s=r.coordsAt(o,-1);if(s&&Yr(n,i,s))return-1;let a=r.coordsAt(o,1);return a&&Yr(n,i,a)?1:s&&Vr(i,s)?-1:1}function Jr(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1);return{pos:n,bias:Hr(e,n,t.clientX,t.clientY)}}const Kr=ii.ie&&ii.ie_version<=11;let eo=null,to=0,no=0;function io(e){if(!Kr)return e.detail;let t=eo,n=no;return eo=e,no=Date.now(),to=!t||n>Date.now()-400&&Math.abs(t.clientX-e.clientX)<2&&Math.abs(t.clientY-e.clientY)<2?(to+1)%3:1}function ro(e,t,n,i){if(!n)return;let r=e.posAtCoords({x:t.clientX,y:t.clientY},!1);t.preventDefault();let{mouseSelection:o}=e.inputState,s=i&&o&&o.dragging&&o.dragMove?{from:o.dragging.from,to:o.dragging.to}:null,a={from:r,insert:n},l=e.state.changes(s?[s,a]:a);e.focus(),e.dispatch({changes:l,selection:{anchor:l.mapPos(r,-1),head:l.mapPos(r,1)},userEvent:s?"move.drop":"input.drop"})}Zr.dragstart=(e,t)=>{let{selection:{main:n}}=e.state,{mouseSelection:i}=e.inputState;i&&(i.dragging=n),t.dataTransfer&&(t.dataTransfer.setData("Text",e.state.sliceDoc(n.from,n.to)),t.dataTransfer.effectAllowed="copyMove")},Zr.drop=(e,t)=>{if(!t.dataTransfer)return;if(e.state.readOnly)return t.preventDefault();let n=t.dataTransfer.files;if(n&&n.length){t.preventDefault();let i=Array(n.length),r=0,o=()=>{++r==n.length&&ro(e,t,i.filter((e=>null!=e)).join(e.state.lineBreak),!1)};for(let e=0;e{/[\x00-\x08\x0e-\x1f]{2}/.test(t.result)||(i[e]=t.result),o()},t.readAsText(n[e])}}else ro(e,t,t.dataTransfer.getData("Text"),!0)},Zr.paste=(e,t)=>{if(e.state.readOnly)return t.preventDefault();e.observer.flush();let n=Nr?null:t.clipboardData;n?(Fr(e,n.getData("text/plain")),t.preventDefault()):function(e){let t=e.dom.parentNode;if(!t)return;let n=t.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus(),setTimeout((()=>{e.focus(),n.remove(),Fr(e,n.value)}),50)}(e)};let oo=null;function so(e,t){if(e.docView.compositionDeco.size){e.inputState.rapidCompositionStart=t;try{e.update([])}finally{e.inputState.rapidCompositionStart=!1}}}Zr.copy=Zr.cut=(e,t)=>{let{text:n,ranges:i,linewise:r}=function(e){let t=[],n=[],i=!1;for(let r of e.selection.ranges)r.empty||(t.push(e.sliceDoc(r.from,r.to)),n.push(r));if(!t.length){let r=-1;for(let{from:i}of e.selection.ranges){let o=e.doc.lineAt(i);o.number>r&&(t.push(o.text),n.push({from:o.from,to:Math.min(e.doc.length,o.to+1)})),r=o.number}i=!0}return{text:t.join(e.lineBreak),ranges:n,linewise:i}}(e.state);if(!n&&!r)return;oo=r?n:null;let o=Nr?null:t.clipboardData;o?(t.preventDefault(),o.clearData(),o.setData("text/plain",n)):function(e,t){let n=e.dom.parentNode;if(!n)return;let i=n.appendChild(document.createElement("textarea"));i.style.cssText="position: fixed; left: -10000px; top: 10px",i.value=t,i.focus(),i.selectionEnd=t.length,i.selectionStart=0,setTimeout((()=>{i.remove(),e.focus()}),50)}(e,n),"cut"!=t.type||e.state.readOnly||e.dispatch({changes:i,scrollIntoView:!0,userEvent:"delete.cut"})},Zr.focus=Zr.blur=e=>{setTimeout((()=>{e.hasFocus!=e.inputState.notifiedFocused&&e.update([])}),10)},Zr.compositionstart=Zr.compositionupdate=e=>{null==e.inputState.compositionFirstChange&&(e.inputState.compositionFirstChange=!0),e.inputState.composing<0&&(e.inputState.composing=0,e.docView.compositionDeco.size&&(e.observer.flush(),so(e,!0)))},Zr.compositionend=e=>{e.inputState.composing=-1,e.inputState.compositionEndedAt=Date.now(),e.inputState.compositionFirstChange=null,setTimeout((()=>{e.inputState.composing<0&&so(e,!1)}),50)},Zr.contextmenu=e=>{e.inputState.lastContextMenu=Date.now()},Zr.beforeinput=(e,t)=>{var n;let i;if(ii.chrome&&ii.android&&(i=Lr.find((e=>e.inputType==t.inputType)))&&(e.observer.delayAndroidKey(i.key,i.keyCode),"Backspace"==i.key||"Delete"==i.key)){let t=(null===(n=window.visualViewport)||void 0===n?void 0:n.height)||0;setTimeout((()=>{var n;((null===(n=window.visualViewport)||void 0===n?void 0:n.height)||0)>t+10&&e.hasFocus&&(e.contentDOM.blur(),e.focus())}),100)}};const ao=["pre-wrap","normal","pre-line","break-spaces"];class lo{constructor(){this.doc=Ie.empty,this.lineWrapping=!1,this.direction=ir.LTR,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.lineLength=30,this.heightChanged=!1}heightForGap(e,t){let n=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(n+=Math.ceil((t-e-n*this.lineLength*.5)/this.lineLength)),this.lineHeight*n}heightForLine(e){if(!this.lineWrapping)return this.lineHeight;return(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForStyle(e,t){return ao.indexOf(e)>-1!=this.lineWrapping||this.direction!=t}mustRefreshForHeights(e){let t=!1;for(let n=0;n-1,a=Math.round(n)!=Math.round(this.lineHeight)||this.lineWrapping!=s||this.direction!=t;if(this.lineWrapping=s,this.direction=t,this.lineHeight=n,this.charWidth=i,this.lineLength=r,a){this.heightSamples={};for(let e=0;et.moveY(e))):this.type):this}}var po=function(e){return e[e.ByPos=0]="ByPos",e[e.ByHeight=1]="ByHeight",e[e.ByPosNoHeight=2]="ByPosNoHeight",e}(po||(po={}));const uo=.001;class fo{constructor(e,t,n=2){this.length=e,this.height=t,this.flags=n}get outdated(){return(2&this.flags)>0}set outdated(e){this.flags=(e?2:0)|-3&this.flags}setHeight(e,t){this.height!=t&&(Math.abs(this.height-t)>uo&&(e.heightChanged=!0),this.height=t)}replace(e,t,n){return fo.of(n)}decomposeLeft(e,t){t.push(this)}decomposeRight(e,t){t.push(this)}applyChanges(e,t,n,i){let r=this;for(let o=i.length-1;o>=0;o--){let{fromA:s,toA:a,fromB:l,toB:c}=i[o],h=r.lineAt(s,po.ByPosNoHeight,t,0,0),p=h.to>=a?h:r.lineAt(a,po.ByPosNoHeight,t,0,0);for(c+=p.to-a,a=p.to;o>0&&h.from<=i[o-1].toA;)s=i[o-1].fromA,l=i[o-1].fromB,o--,s2*r){let r=e[t-1];r.break?e.splice(--t,1,r.left,null,r.right):e.splice(--t,1,r.left,r.right),n+=1+r.break,i-=r.size}else{if(!(r>2*i))break;{let t=e[n];t.break?e.splice(n,1,t.left,null,t.right):e.splice(n,1,t.left,t.right),n+=2+t.break,r-=t.size}}else if(i0){let e=n[n.length-1];e instanceof Oo?n[n.length-1]=new Oo(e.length+i):n.push(null,new Oo(i-1))}if(e>0){let t=n[0];t instanceof Oo?n[0]=new Oo(e+t.length):n.unshift(new Oo(e-1),null)}return fo.of(n)}decomposeLeft(e,t){t.push(new Oo(e-1),null)}decomposeRight(e,t){t.push(null,new Oo(this.length-e-1))}updateHeight(e,t=0,n=!1,i){let r=t+this.length;if(i&&i.from<=t+this.length&&i.more){let n=[],o=Math.max(t,i.from),s=-1,a=e.heightChanged;for(i.from>t&&n.push(new Oo(i.from-t-1).updateHeight(e,t));o<=r&&i.more;){let t=e.doc.lineAt(o).length;n.length&&n.push(null);let r=i.heights[i.index++];-1==s?s=r:Math.abs(r-s)>=uo&&(s=-2);let a=new go(t,r);a.outdated=!1,n.push(a),o+=t+1}o<=r&&n.push(null,new Oo(r-o).updateHeight(e,o));let l=fo.of(n);return e.heightChanged=a||s<0||Math.abs(l.height-this.height)>=uo||Math.abs(s-this.lines(e.doc,t).lineHeight)>=uo,l}return(n||this.outdated)&&(this.setHeight(e,e.heightForGap(t,t+this.length)),this.outdated=!1),this}toString(){return`gap(${this.length})`}}class bo extends fo{constructor(e,t,n){super(e.length+t+n.length,e.height+n.height,t|(e.outdated||n.outdated?2:0)),this.left=e,this.right=n,this.size=e.size+n.size}get break(){return 1&this.flags}blockAt(e,t,n,i){let r=n+this.left.height;return es))return l;let c=t==po.ByPosNoHeight?po.ByPosNoHeight:po.ByPos;return a?l.join(this.right.lineAt(s,c,n,o,s)):this.left.lineAt(s,c,n,i,r).join(l)}forEachLine(e,t,n,i,r,o){let s=i+this.left.height,a=r+this.left.length+this.break;if(this.break)e=a&&this.right.forEachLine(e,t,n,s,a,o);else{let l=this.lineAt(a,po.ByPos,n,i,r);e=e&&l.from<=t&&o(l),t>l.to&&this.right.forEachLine(l.to+1,t,n,s,a,o)}}replace(e,t,n){let i=this.left.length+this.break;if(tthis.left.length)return this.balanced(this.left,this.right.replace(e-i,t-i,n));let r=[];e>0&&this.decomposeLeft(e,r);let o=r.length;for(let s of n)r.push(s);if(e>0&&xo(r,o-1),t=n&&t.push(null)),e>n&&this.right.decomposeLeft(e-n,t)}decomposeRight(e,t){let n=this.left.length,i=n+this.break;if(e>=i)return this.right.decomposeRight(e-i,t);e2*t.size||t.size>2*e.size?fo.of(this.break?[e,null,t]:[e,t]):(this.left=e,this.right=t,this.height=e.height+t.height,this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}updateHeight(e,t=0,n=!1,i){let{left:r,right:o}=this,s=t+r.length+this.break,a=null;return i&&i.from<=t+r.length&&i.more?a=r=r.updateHeight(e,t,n,i):r.updateHeight(e,t,n),i&&i.from<=s+o.length&&i.more?a=o=o.updateHeight(e,s,n,i):o.updateHeight(e,s,n),a?this.balanced(r,o):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function xo(e,t){let n,i;null==e[t]&&(n=e[t-1])instanceof Oo&&(i=e[t+1])instanceof Oo&&e.splice(t-1,3,new Oo(n.length+1+i.length))}class vo{constructor(e,t){this.pos=e,this.oracle=t,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,t){if(this.lineStart>-1){let e=Math.min(t,this.lineEnd),n=this.nodes[this.nodes.length-1];n instanceof go?n.length+=e-this.pos:(e>this.pos||!this.isCovered)&&this.nodes.push(new go(e-this.pos,-1)),this.writtenTo=e,t>e&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=t}point(e,t,n){if(e=5)&&this.addLineDeco(i,r)}else t>e&&this.span(e,t);this.lineEnd>-1&&this.lineEnd-1)return;let{from:e,to:t}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=t,this.writtenToe&&this.nodes.push(new go(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,t){let n=new Oo(t-e);return this.oracle.doc.lineAt(e).to==t&&(n.flags|=4),n}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof go)return e;let t=new go(0,-1);return this.nodes.push(t),t}addBlock(e){this.enterLine(),e.type!=xi.WidgetAfter||this.isCovered||this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,e.type!=xi.WidgetBefore&&(this.covering=e)}addLineDeco(e,t){let n=this.ensureLine();n.length+=t,n.collapsed+=t,n.widgetHeight=Math.max(n.widgetHeight,e),this.writtenTo=this.pos=this.pos+t}finish(e){let t=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||t instanceof go||this.isCovered?(this.writtenToe.clientHeight||e.scrollWidth>e.clientWidth)&&"visible"!=t.overflow){let t=e.getBoundingClientRect();i=Math.max(i,t.left),r=Math.min(r,t.right),o=Math.max(o,t.top),s=Math.min(s,t.bottom)}l="absolute"==t.position||"fixed"==t.position?e.offsetParent:e.parentNode}else{if(11!=l.nodeType)break;l=l.host}return{left:i-n.left,right:Math.max(i,r)-n.left,top:o-(n.top+t),bottom:Math.max(o,s)-(n.top+t)}}function So(e,t){let n=e.getBoundingClientRect();return{left:0,right:n.right-n.left,top:t,bottom:n.bottom-(n.top+t)}}class ko{constructor(e,t,n){this.from=e,this.to=t,this.size=n}static same(e,t){if(e.length!=t.length)return!1;for(let n=0;ne.draw(!1)))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:t}=this.state.selection;for(let n=0;n<=1;n++){let i=n?t.head:t.anchor;if(!e.some((({from:e,to:t})=>i>=e&&i<=t))){let{from:t,to:n}=this.lineBlockAt(i);e.push(new Po(t,n))}}this.viewports=e.sort(((e,t)=>e.from-t.from)),this.scaler=this.heightMap.height<=7e6?Mo:new jo(this.heightOracle.doc,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.state.doc,0,0,(e=>{this.viewportLines.push(1==this.scaler.scale?e:Eo(e,this.scaler))}))}update(e,t=null){let n=this.state;this.state=e.state;let i=this.state.facet(Ki),r=e.changedRanges,o=tr.extendWithRanges(r,function(e,t,n){let i=new yo;return en.compare(e,t,n,i,0),i.changes}(e.startState.facet(Ki),i,e?e.changes:Be.empty(this.state.doc.length))),s=this.heightMap.height;this.heightMap=this.heightMap.applyChanges(i,n.doc,this.heightOracle.setDoc(this.state.doc),o),this.heightMap.height!=s&&(e.flags|=2);let a=o.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.heada.to)||!this.viewportIsAppropriate(a))&&(a=this.getViewport(0,t));let l=!e.changes.empty||2&e.flags||a.from!=this.viewport.from||a.to!=this.viewport.to;this.viewport=a,this.updateForViewport(),l&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(),t&&(this.scrollTarget=t),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&(this.mustEnforceCursorAssoc=!0)}measure(e){let t=e.contentDOM,n=window.getComputedStyle(t),i=this.heightOracle,r=n.whiteSpace,o="rtl"==n.direction?ir.RTL:ir.LTR,s=this.heightOracle.mustRefreshForStyle(r,o),a=s||this.mustMeasureContent||this.contentDOMHeight!=t.clientHeight,l=0,c=0;if(this.editorWidth!=e.scrollDOM.clientWidth&&(i.lineWrapping&&(a=!0),this.editorWidth=e.scrollDOM.clientWidth,l|=8),a){this.mustMeasureContent=!1,this.contentDOMHeight=t.clientHeight;let e=parseInt(n.paddingTop)||0,i=parseInt(n.paddingBottom)||0;this.paddingTop==e&&this.paddingBottom==i||(l|=8,this.paddingTop=e,this.paddingBottom=i)}let h=(this.printing?So:wo)(t,this.paddingTop),p=h.top-this.pixelViewport.top,d=h.bottom-this.pixelViewport.bottom;this.pixelViewport=h;let u=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(u!=this.inView&&(this.inView=u,u&&(a=!0)),!this.inView)return 0;let f=t.clientWidth;if(this.contentDOMWidth==f&&this.editorHeight==e.scrollDOM.clientHeight||(this.contentDOMWidth=f,this.editorHeight=e.scrollDOM.clientHeight,l|=8),a){let t=e.docView.measureVisibleLineHeights();if(i.mustRefreshForHeights(t)&&(s=!0),s||i.lineWrapping&&Math.abs(f-this.contentDOMWidth)>i.charWidth){let{lineHeight:n,charWidth:a}=e.docView.measureTextSize();s=i.refresh(r,o,n,a,f/a,t),s&&(e.docView.minWidth=0,l|=8)}p>0&&d>0?c=Math.max(p,d):p<0&&d<0&&(c=Math.min(p,d)),i.heightChanged=!1,this.heightMap=this.heightMap.updateHeight(i,0,s,new co(this.viewport.from,t)),i.heightChanged&&(l|=2)}let m=!this.viewportIsAppropriate(this.viewport,c)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return m&&(this.viewport=this.getViewport(c,this.scrollTarget)),this.updateForViewport(),(2&l||m)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(s?[]:this.lineGaps)),l|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),l}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,t){let n=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),i=this.heightMap,r=this.state.doc,{visibleTop:o,visibleBottom:s}=this,a=new Po(i.lineAt(o-1e3*n,po.ByHeight,r,0,0).from,i.lineAt(s+1e3*(1-n),po.ByHeight,r,0,0).to);if(t){let{head:e}=t.range;if(ea.to){let n,o=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),s=i.lineAt(e,po.ByPos,r,0,0);n="center"==t.y?(s.top+s.bottom)/2-o/2:"start"==t.y||"nearest"==t.y&&e=s+Math.max(10,Math.min(n,250)))&&i>o-2e3&&rn.from&&s.push({from:n.from,to:i}),r=n.from&&a.from<=n.to&&Ro(s,a.from-10,a.from+10),!a.empty&&a.to>=n.from&&a.to<=n.to&&Ro(s,a.to-10,a.to+10);for(let{from:l,to:c}of s)c-l>1e3&&t.push(Ao(e,(e=>e.from>=n.from&&e.to<=n.to&&Math.abs(e.from-l)<1e3&&Math.abs(e.to-c)<1e3))||new ko(l,c,this.gapSize(n,l,c,o)))}return t}gapSize(e,t,n,i){let r=Io(i,n)-Io(i,t);return this.heightOracle.lineWrapping?e.height*r:i.total*this.heightOracle.charWidth*r}updateLineGaps(e){ko.same(e,this.lineGaps)||(this.lineGaps=e,this.lineGapDeco=vi.set(e.map((e=>e.draw(this.heightOracle.lineWrapping)))))}computeVisibleRanges(){let e=this.state.facet(Ki);this.lineGaps.length&&(e=e.concat(this.lineGapDeco));let t=[];en.spans(e,this.viewport.from,this.viewport.to,{span(e,n){t.push({from:e,to:n})},point(){}},20);let n=t.length!=this.visibleRanges.length||this.visibleRanges.some(((e,n)=>e.from!=t[n].from||e.to!=t[n].to));return this.visibleRanges=t,n?4:0}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find((t=>t.from<=e&&t.to>=e))||Eo(this.heightMap.lineAt(e,po.ByPos,this.state.doc,0,0),this.scaler)}lineBlockAtHeight(e){return Eo(this.heightMap.lineAt(this.scaler.fromDOM(e),po.ByHeight,this.state.doc,0,0),this.scaler)}elementAtHeight(e){return Eo(this.heightMap.blockAt(this.scaler.fromDOM(e),this.state.doc,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class Po{constructor(e,t){this.from=e,this.to=t}}function Co(e,t,n){let i=[],r=e,o=0;return en.spans(n.facet(Ki),e,t,{span(){},point(e,t){e>r&&(i.push({from:r,to:e}),o+=e-r),r=t}},20),r=1)return t[t.length-1].to;let i=Math.floor(e*n);for(let r=0;;r++){let{from:e,to:n}=t[r],o=n-e;if(i<=o)return e+i;i-=o}}function Io(e,t){let n=0;for(let{from:i,to:r}of e.ranges){if(t<=r){n+=t-i;break}n+=r-i}return n/e.total}function Ro(e,t,n){for(let i=0;it){let o=[];r.fromn&&o.push({from:n,to:r.to}),e.splice(i,1,...o),i+=o.length-1}}}function Ao(e,t){for(let n of e)if(t(n))return n}const Mo={toDOM:e=>e,fromDOM:e=>e,scale:1};class jo{constructor(e,t,n){let i=0,r=0,o=0;this.viewports=n.map((({from:n,to:r})=>{let o=t.lineAt(n,po.ByPos,e,0,0).top,s=t.lineAt(r,po.ByPos,e,0,0).bottom;return i+=s-o,{from:n,to:r,top:o,bottom:s,domTop:0,domBottom:0}})),this.scale=(7e6-i)/(t.height-i);for(let s of this.viewports)s.domTop=o+(s.top-r)*this.scale,o=s.domBottom=s.domTop+(s.bottom-s.top),r=s.bottom}toDOM(e){for(let t=0,n=0,i=0;;t++){let r=tEo(e,t))):e.type)}const Xo=et.define({combine:e=>e.join(" ")}),zo=et.define({combine:e=>e.indexOf(!0)>-1}),Wo=Gt.newName(),_o=Gt.newName(),Lo=Gt.newName(),Do={"&light":"."+_o,"&dark":"."+Lo};function Bo(e,t,n){return new Gt(t,{finish:t=>/&/.test(t)?t.replace(/&\w*/,(t=>{if("&"==t)return e;if(!n||!n[t])throw new RangeError(`Unsupported selector: ${t}`);return n[t]})):e+" "+t})}const Uo=Bo("."+Wo,{"&.cm-editor":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,minHeight:"100%",display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere"},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 4px"},".cm-selectionLayer":{zIndex:-1,contain:"size style"},".cm-selectionBackground":{position:"absolute"},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{zIndex:100,contain:"size style",pointerEvents:"none"},"&.cm-focused .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{visibility:"hidden"},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{visibility:"hidden"},"100%":{}},".cm-cursor, .cm-dropCursor":{position:"absolute",borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},"&.cm-focused .cm-cursor":{display:"block"},"&light .cm-activeLine":{backgroundColor:"#f3f9ff"},"&dark .cm-activeLine":{backgroundColor:"#223039"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},Do),Zo={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},No=ii.ie&&ii.ie_version<=11;class Fo{constructor(e,t,n){this.view=e,this.onChange=t,this.onScrollChanged=n,this.active=!1,this.selectionRange=new An,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.scrollTargets=[],this.intersection=null,this.resize=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver((t=>{for(let e of t)this.queue.push(e);(ii.ie&&ii.ie_version<=11||ii.ios&&e.composing)&&t.some((e=>"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length))?this.flushSoon():this.flush()})),No&&(this.onCharData=e=>{this.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),window.addEventListener("resize",this.onResize=this.onResize.bind(this)),"function"==typeof ResizeObserver&&(this.resize=new ResizeObserver((()=>{this.view.docView.lastUpdate{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),e.length>0&&e[e.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))}),{}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver((e=>{e.length>0&&e[e.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))}),{})),this.listenForScroll(),this.readSelectionRange(),this.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}onScroll(e){this.intersecting&&this.flush(!1),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout((()=>{this.resizeTimeout=-1,this.view.requestMeasure()}),50))}onPrint(){this.view.viewState.printing=!0,this.view.measure(),setTimeout((()=>{this.view.viewState.printing=!1,this.view.requestMeasure()}),500)}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some(((t,n)=>t!=e[n])))){this.gapIntersection.disconnect();for(let t of e)this.gapIntersection.observe(t);this.gaps=e}}onSelectionChange(e){if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:t}=this,n=this.selectionRange;if(t.state.facet(Ui)?t.root.activeElement!=this.dom:!Sn(t.dom,n))return;let i=n.anchorNode&&t.docView.nearest(n.anchorNode);i&&i.ignoreEvent(e)||((ii.ie&&ii.ie_version<=11||ii.android&&ii.chrome)&&!t.state.selection.main.empty&&n.focusNode&&Tn(n.focusNode,n.focusOffset,n.anchorNode,n.anchorOffset)?this.flushSoon():this.flush(!1))}readSelectionRange(){let{root:e}=this.view,t=yn(e),n=ii.safari&&11==e.nodeType&&function(){let e=document.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}()==this.view.contentDOM&&function(e){let t=null;function n(e){e.preventDefault(),e.stopImmediatePropagation(),t=e.getTargetRanges()[0]}if(e.contentDOM.addEventListener("beforeinput",n,!0),document.execCommand("indent"),e.contentDOM.removeEventListener("beforeinput",n,!0),!t)return null;let i=t.startContainer,r=t.startOffset,o=t.endContainer,s=t.endOffset,a=e.docView.domAtPos(e.state.selection.main.anchor);Tn(a.node,a.offset,o,s)&&([i,r,o,s]=[o,s,i,r]);return{anchorNode:i,anchorOffset:r,focusNode:o,focusOffset:s}}(this.view)||t;return!this.selectionRange.eq(n)&&(this.selectionRange.setRange(n),this.selectionChanged=!0)}setSelectionRange(e,t){this.selectionRange.set(e.node,e.offset,t.node,t.offset),this.selectionChanged=!1}listenForScroll(){this.parentCheck=-1;let e=0,t=null;for(let n=this.dom;n;)if(1==n.nodeType)!t&&e{let e=this.delayedAndroidKey;this.delayedAndroidKey=null;let t=this.view.state;zn(this.view.contentDOM,e.key,e.keyCode)?this.processRecords():this.flush(),this.view.state==t&&this.view.update([])})),this.delayedAndroidKey&&"Enter"!=e||(this.delayedAndroidKey={key:e,keyCode:t})}flushSoon(){this.delayedFlush<0&&(this.delayedFlush=window.setTimeout((()=>{this.delayedFlush=-1,this.flush()}),20))}forceFlush(){this.delayedFlush>=0&&(window.clearTimeout(this.delayedFlush),this.delayedFlush=-1,this.flush())}processRecords(){let e=this.queue;for(let r of this.observer.takeRecords())e.push(r);e.length&&(this.queue=[]);let t=-1,n=-1,i=!1;for(let r of e){let e=this.readMutation(r);e&&(e.typeOver&&(i=!0),-1==t?({from:t,to:n}=e):(t=Math.min(e.from,t),n=Math.max(e.to,n)))}return{from:t,to:n,typeOver:i}}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return;e&&this.readSelectionRange();let{from:t,to:n,typeOver:i}=this.processRecords(),r=this.selectionChanged&&Sn(this.dom,this.selectionRange);if(t<0&&!r)return;this.selectionChanged=!1;let o=this.view.state;this.onChange(t,n,i),this.view.state==o&&this.view.update([])}readMutation(e){let t=this.view.docView.nearest(e.target);if(!t||t.ignoreMutation(e))return null;if(t.markDirty("attributes"==e.type),"attributes"==e.type&&(t.dirty|=4),"childList"==e.type){let n=Go(t,e.previousSibling||e.target.previousSibling,-1),i=Go(t,e.nextSibling||e.target.nextSibling,1);return{from:n?t.posAfter(n):t.posAtStart,to:i?t.posBefore(i):t.posAtEnd,typeOver:!1}}return"characterData"==e.type?{from:t.posAtStart,to:t.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}destroy(){var e,t,n;this.stop(),null===(e=this.intersection)||void 0===e||e.disconnect(),null===(t=this.gapIntersection)||void 0===t||t.disconnect(),null===(n=this.resize)||void 0===n||n.disconnect();for(let i of this.scrollTargets)i.removeEventListener("scroll",this.onScroll);window.removeEventListener("scroll",this.onScroll),window.removeEventListener("resize",this.onResize),window.removeEventListener("beforeprint",this.onPrint),this.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout)}}function Go(e,t,n){for(;t;){let i=Dn.get(t);if(i&&i.parent==e)return i;let r=t.parentNode;t=r!=e.dom?r:n>0?t.nextSibling:t.previousSibling}return null}function qo(e,t,n,i){let r,o,s=e.state.selection.main;if(t>-1){let i=e.docView.domBoundsAround(t,n,0);if(!i||e.state.readOnly)return;let{from:a,to:l}=i,c=e.docView.impreciseHead||e.docView.impreciseAnchor?[]:function(e){let t=[];if(e.root.activeElement!=e.contentDOM)return t;let{anchorNode:n,anchorOffset:i,focusNode:r,focusOffset:o}=e.observer.selectionRange;n&&(t.push(new yr(n,i)),r==n&&o==i||t.push(new yr(r,o)));return t}(e),h=new xr(c,e.state);h.readRange(i.startDOM,i.endDOM);let p=s.from,d=null;(8===e.inputState.lastKeyCode&&e.inputState.lastKeyTime>Date.now()-100||ii.android&&h.text.length0&&a>0&&e.charCodeAt(s-1)==t.charCodeAt(a-1);)s--,a--;if("end"==i){n-=s+Math.max(0,o-Math.min(s,a))-o}if(s=s?o-n:0,a=o+(a-s),s=o}else if(a=a?o-n:0,s=o+(s-a),a=o}return{from:o,toA:s,toB:a}}(e.state.doc.sliceString(a,l,br),h.text,p-a,d);u&&(ii.chrome&&13==e.inputState.lastKeyCode&&u.toB==u.from+2&&h.text.slice(u.from,u.toB)==br+br&&u.toB--,r={from:a+u.from,to:a+u.toA,insert:Ie.of(h.text.slice(u.from,u.toB).split(br))}),o=function(e,t){if(0==e.length)return null;let n=e[0].pos,i=2==e.length?e[1].pos:n;return n>-1&&i>-1?Ye.single(n+t,i+t):null}(c,a)}else if(e.hasFocus||!e.state.facet(Ui)){let t=e.observer.selectionRange,{impreciseHead:n,impreciseAnchor:i}=e.docView,r=n&&n.node==t.focusNode&&n.offset==t.focusOffset||!wn(e.contentDOM,t.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(t.focusNode,t.focusOffset),a=i&&i.node==t.anchorNode&&i.offset==t.anchorOffset||!wn(e.contentDOM,t.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(t.anchorNode,t.anchorOffset);r==s.head&&a==s.anchor||(o=Ye.single(a,r))}if(r||o)if(!r&&i&&!s.empty&&o&&o.main.empty?r={from:s.from,to:s.to,insert:e.state.doc.slice(s.from,s.to)}:r&&r.from>=s.from&&r.to<=s.to&&(r.from!=s.from||r.to!=s.to)&&s.to-s.from-(r.to-r.from)<=4&&(r={from:s.from,to:s.to,insert:e.state.doc.slice(s.from,r.from).append(r.insert).append(e.state.doc.slice(r.to,s.to))}),r){let t=e.state;if(ii.ios&&e.inputState.flushIOSKey(e))return;if(ii.android&&(r.from==s.from&&r.to==s.to&&1==r.insert.length&&2==r.insert.lines&&zn(e.contentDOM,"Enter",13)||r.from==s.from-1&&r.to==s.to&&0==r.insert.length&&zn(e.contentDOM,"Backspace",8)||r.from==s.from&&r.to==s.to+1&&0==r.insert.length&&zn(e.contentDOM,"Delete",46)))return;let n,i=r.insert.toString();if(e.state.facet(zi).some((t=>t(e,r.from,r.to,i))))return;if(e.inputState.composing>=0&&e.inputState.composing++,r.from>=s.from&&r.to<=s.to&&r.to-r.from>=(s.to-s.from)/3&&(!o||o.main.empty&&o.main.from==r.from+r.insert.length)&&e.inputState.composing<0){let i=s.fromr.to?t.sliceDoc(r.to,s.to):"";n=t.replaceSelection(e.state.toText(i+r.insert.sliceString(0,void 0,e.state.lineBreak)+o))}else{let i=t.changes(r),a=o&&!t.selection.main.eq(o.main)&&o.main.to<=i.newLength?o.main:void 0;if(t.selection.ranges.length>1&&e.inputState.composing>=0&&r.to<=s.to&&r.to>=s.to-10){let o=e.state.sliceDoc(r.from,r.to),l=kr(e)||e.state.doc.lineAt(s.head),c=s.to-r.to,h=s.to-s.from;n=t.changeByRange((n=>{if(n.from==s.from&&n.to==s.to)return{changes:i,range:a||n.map(i)};let p=n.to-c,d=p-o.length;if(n.to-n.from!=h||e.state.sliceDoc(d,p)!=o||l&&n.to>=l.from&&n.from<=l.to)return{range:n};let u=t.changes({from:d,to:p,insert:r.insert}),f=n.to-s.to;return{changes:u,range:a?Ye.range(Math.max(0,a.anchor+f),Math.max(0,a.head+f)):n.map(u)}}))}else n={changes:i,selection:a&&t.selection.replaceRange(a)}}let a="input.type";e.composing&&(a+=".compose",e.inputState.compositionFirstChange&&(a+=".start",e.inputState.compositionFirstChange=!1)),e.dispatch(n,{scrollIntoView:!0,userEvent:a})}else if(o&&!o.main.eq(s)){let t=!1,n="select";e.inputState.lastSelectionTime>Date.now()-50&&("select"==e.inputState.lastSelectionOrigin&&(t=!0),n=e.inputState.lastSelectionOrigin),e.dispatch({selection:o,scrollIntoView:t,userEvent:n})}}class Vo{constructor(e={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.style.cssText="position: absolute; top: -10000px",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),this._dispatch=e.dispatch||(e=>this.update([e])),this.dispatch=this.dispatch.bind(this),this.root=e.root||function(e){for(;e;){if(e&&(9==e.nodeType||11==e.nodeType&&e.host))return e;e=e.assignedSlot||e.parentNode}return null}(e.parent)||document,this.viewState=new Qo(e.state||Bt.create()),this.plugins=this.state.facet(Gi).map((e=>new Yi(e)));for(let t of this.plugins)t.update(this);this.observer=new Fo(this,((e,t,n)=>{qo(this,e,t,n)}),(e=>{this.inputState.runScrollHandlers(this,e),this.observer.intersecting&&this.measure()})),this.inputState=new _r(this),this.docView=new wr(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),e.parent&&e.parent.appendChild(this.dom)}get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}dispatch(...e){this._dispatch(1==e.length&&e[0]instanceof Rt?e[0]:this.state.update(...e))}update(e){if(0!=this.updateState)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let t,n=!1,i=this.state;for(let o of e){if(o.startState!=i)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");i=o.state}if(this.destroyed)return void(this.viewState.state=i);if(i.facet(Bt.phrases)!=this.state.facet(Bt.phrases))return this.setState(i);t=new nr(this,i,e);let r=this.viewState.scrollTarget;try{this.updateState=2;for(let t of e){if(r&&(r=r.map(t.changes)),t.scrollIntoView){let{main:e}=t.state.selection;r=new Li(e.empty?e:Ye.cursor(e.head,e.head>e.anchor?-1:1))}for(let e of t.effects)e.is(Wi)?r=new Li(e.value):e.is(_i)?r=new Li(e.value,"center"):e.is(Di)&&(r=e.value)}this.viewState.update(t,r),this.bidiCache=Ko.update(this.bidiCache,t.changes),t.empty||(this.updatePlugins(t),this.inputState.update(t)),n=this.docView.update(t),this.state.facet(er)!=this.styleModules&&this.mountStyles(),this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(n,e.some((e=>e.isUserEvent("select.pointer"))))}finally{this.updateState=0}if(t.startState.facet(Xo)!=t.state.facet(Xo)&&(this.viewState.mustMeasureContent=!0),(n||r||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!t.empty)for(let o of this.state.facet(Xi))o(t)}setState(e){if(0!=this.updateState)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed)return void(this.viewState.state=e);this.updateState=2;let t=this.hasFocus;try{for(let e of this.plugins)e.destroy(this);this.viewState=new Qo(e),this.plugins=e.facet(Gi).map((e=>new Yi(e))),this.pluginMap.clear();for(let e of this.plugins)e.update(this);this.docView=new wr(this),this.inputState.ensureHandlers(this),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}t&&this.focus(),this.requestMeasure()}updatePlugins(e){let t=e.startState.facet(Gi),n=e.state.facet(Gi);if(t!=n){let i=[];for(let r of n){let n=t.indexOf(r);if(n<0)i.push(new Yi(r));else{let t=this.plugins[n];t.mustUpdate=e,i.push(t)}}for(let t of this.plugins)t.mustUpdate!=e&&t.destroy(this);this.plugins=i,this.pluginMap.clear(),this.inputState.ensureHandlers(this)}else for(let i of this.plugins)i.mustUpdate=e;for(let i=0;i-1&&cancelAnimationFrame(this.measureScheduled),this.measureScheduled=0,e&&this.observer.flush();let t=null;try{for(let e=0;;e++){this.updateState=1;let i=this.viewport,r=this.viewState.measure(this);if(!r&&!this.measureRequests.length&&null==this.viewState.scrollTarget)break;if(e>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let o=[];4&r||([this.measureRequests,o]=[o,this.measureRequests]);let s=o.map((e=>{try{return e.read(this)}catch(t){return Bi(this.state,t),Jo}})),a=new nr(this,this.state),l=!1,c=!1;a.flags|=r,t?t.flags|=r:t=a,this.updateState=2,a.empty||(this.updatePlugins(a),this.inputState.update(a),this.updateAttrs(),l=this.docView.update(a));for(let e=0;e{Oi(this.contentDOM,this.contentAttrs,t),Oi(this.dom,this.editorAttrs,e)})),this.editorAttrs=e,this.contentAttrs=t}showAnnouncements(e){let t=!0;for(let n of e)for(let e of n.effects)if(e.is(Vo.announce)){t&&(this.announceDOM.textContent=""),t=!1,this.announceDOM.appendChild(document.createElement("div")).textContent=e.value}}mountStyles(){this.styleModules=this.state.facet(er),Gt.mount(this.root,this.styleModules.concat(Uo).reverse())}readMeasured(){if(2==this.updateState)throw new Error("Reading the editor layout isn't allowed during an update");0==this.updateState&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=requestAnimationFrame((()=>this.measure()))),e){if(null!=e.key)for(let t=0;tt.spec==e))||null),t&&t.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}blockAtHeight(e,t){let n=Ho(t,this);return this.elementAtHeight(e-n).moveY(n)}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}visualLineAtHeight(e,t){let n=Ho(t,this);return this.lineBlockAtHeight(e-n).moveY(n)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}viewportLines(e,t){let n=Ho(t,this);for(let i of this.viewportLineBlocks)e(i.moveY(n))}get viewportLineBlocks(){return this.viewState.viewportLines}visualLineAt(e,t=0){return this.lineBlockAt(e).moveY(t+this.viewState.paddingTop)}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,t,n){return Wr(this,e,zr(this,e,t,n))}moveByGroup(e,t){return Wr(this,e,zr(this,e,t,(t=>function(e,t,n){let i=e.state.charCategorizer(t),r=i(n);return e=>{let t=i(e);return r==Wt.Space&&(r=t),r==t}}(this,e.head,t))))}moveToLineBoundary(e,t,n=!0){return function(e,t,n,i){let r=e.state.doc.lineAt(t.head),o=i&&e.lineWrapping?e.coordsAtPos(t.assoc<0&&t.head>r.from?t.head-1:t.head):null;if(o){let t=e.dom.getBoundingClientRect(),i=e.posAtCoords({x:n==(e.textDirection==ir.LTR)?t.right-1:t.left+1,y:(o.top+o.bottom)/2});if(null!=i)return Ye.cursor(i,n?-1:1)}let s=Qi.find(e.docView,t.head),a=s?n?s.posAtEnd:s.posAtStart:n?r.to:r.from;return Ye.cursor(a,n?-1:1)}(this,e,t,n)}moveVertically(e,t,n){return Wr(this,e,function(e,t,n,i){let r=t.head,o=n?1:-1;if(r==(n?e.state.doc.length:0))return Ye.cursor(r,t.assoc);let s,a=t.goalColumn,l=e.contentDOM.getBoundingClientRect(),c=e.coordsAtPos(r),h=e.documentTop;if(c)null==a&&(a=c.left-l.left),s=o<0?c.top:c.bottom;else{let t=e.viewState.lineBlockAt(r-h);null==a&&(a=Math.min(l.right-l.left,e.defaultCharacterWidth*(r-t.from))),s=(o<0?t.top:t.bottom)+h}let p=l.left+a,d=null!=i?i:e.defaultLineHeight>>1;for(let u=0;;u+=10){let n=s+(d+u)*o,i=Er(e,{x:p,y:n},!1,o);if(nl.bottom||(o<0?ir))return Ye.cursor(i,t.assoc,void 0,a)}}(this,e,t,n))}scrollPosIntoView(e){this.dispatch({effects:Wi.of(Ye.cursor(e))})}domAtPos(e){return this.docView.domAtPos(e)}posAtDOM(e,t=0){return this.docView.posFromDOM(e,t)}posAtCoords(e,t=!0){return this.readMeasured(),Er(this,e,t)}coordsAtPos(e,t=1){this.readMeasured();let n=this.docView.coordsAt(e,t);if(!n||n.left==n.right)return n;let i=this.state.doc.lineAt(e),r=this.bidiSpans(i);return In(n,r[dr.find(r,e-i.from,-1,t)].dir==ir.LTR==t>0)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.heightOracle.direction}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>Yo)return mr(e.length);let t=this.textDirection;for(let i of this.bidiCache)if(i.from==e.from&&i.dir==t)return i.order;let n=fr(e.text,this.textDirection);return this.bidiCache.push(new Ko(e.from,e.to,t,n)),n}get hasFocus(){var e;return(document.hasFocus()||ii.safari&&(null===(e=this.inputState)||void 0===e?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore((()=>{En(this.contentDOM),this.docView.updateSelection()}))}destroy(){for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,t={}){return Di.of(new Li("number"==typeof e?Ye.cursor(e):e,t.y,t.x,t.yMargin,t.xMargin))}static domEventHandlers(e){return qi.define((()=>({})),{eventHandlers:e})}static theme(e,t){let n=Gt.newName(),i=[Xo.of(n),er.of(Bo(`.${n}`,e))];return t&&t.dark&&i.push(zo.of(!0)),i}static baseTheme(e){return ut.lowest(er.of(Bo("."+Wo,e,Do)))}}Vo.scrollTo=Wi,Vo.centerOn=_i,Vo.styleModule=er,Vo.inputHandler=zi,Vo.exceptionSink=Ei,Vo.updateListener=Xi,Vo.editable=Ui,Vo.mouseSelectionStyle=ji,Vo.dragMovesSelection=Mi,Vo.clickAddsSelectionRange=Ai,Vo.decorations=Ki,Vo.darkTheme=zo,Vo.contentAttributes=Ji,Vo.editorAttributes=Hi,Vo.lineWrapping=Vo.contentAttributes.of({class:"cm-lineWrapping"}),Vo.announce=It.define();const Yo=4096;function Ho(e,t){return(null==e?t.contentDOM.getBoundingClientRect().top:e)+t.viewState.paddingTop}const Jo={};class Ko{constructor(e,t,n,i){this.from=e,this.to=t,this.dir=n,this.order=i}static update(e,t){if(t.empty)return e;let n=[],i=e.length?e[e.length-1].dir:ir.LTR;for(let r=Math.max(0,e.length-10);r=0;r--){let t=i[r],o="function"==typeof t?t(e):t;o&&mi(o,n)}return n}const ts=ii.mac?"mac":ii.windows?"win":ii.linux?"linux":"key";function ns(e,t,n){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),!1!==n&&t.shiftKey&&(e="Shift-"+e),e}const is=Vo.domEventHandlers({keydown:(e,t)=>ls(ss(t.state),e,t,"editor")}),rs=et.define({enables:is}),os=new WeakMap;function ss(e){let t=e.facet(rs),n=os.get(t);return n||os.set(t,n=function(e,t=ts){let n=Object.create(null),i=Object.create(null),r=(e,t)=>{let n=i[e];if(null==n)i[e]=t;else if(n!=t)throw new Error("Key binding "+e+" is used both as a regular binding and as a multi-stroke prefix")},o=(e,i,o,s)=>{let a=n[e]||(n[e]=Object.create(null)),l=i.split(/ (?!$)/).map((e=>function(e,t){const n=e.split(/-(?!$)/);let i,r,o,s,a=n[n.length-1];"Space"==a&&(a=" ");for(let l=0;l{let i=as={view:t,prefix:n,scope:e};return setTimeout((()=>{as==i&&(as=null)}),4e3),!0}]})}let c=l.join(" ");r(c,!1);let h=a[c]||(a[c]={preventDefault:!1,commands:[]});h.commands.push(o),s&&(h.preventDefault=!0)};for(let s of e){let e=s[t]||s.key;if(e)for(let t of s.scope?s.scope.split(" "):["editor"])o(t,e,s.run,s.preventDefault),s.shift&&o(t,"Shift-"+e,s.shift,s.preventDefault)}return n}(t.reduce(((e,t)=>e.concat(t)),[]))),n}let as=null;function ls(e,t,n,i){let r=function(e){var t=!(bn&&(e.ctrlKey||e.altKey||e.metaKey)||On&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key)&&e.key||(e.shiftKey?fn:un)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t}(t),o=1==r.length&&" "!=r,s="",a=!1;as&&as.view==n&&as.scope==i&&(s=as.prefix+" ",(a=Dr.indexOf(t.keyCode)<0)&&(as=null));let l,c=e=>{if(e){for(let t of e.commands)if(t(n))return!0;e.preventDefault&&(a=!0)}return!1},h=e[i];if(h){if(c(h[s+ns(r,t,!o)]))return!0;if(o&&(t.shiftKey||t.altKey||t.metaKey)&&(l=un[t.keyCode])&&l!=r){if(c(h[s+ns(l,t,!0)]))return!0}else if(o&&t.shiftKey&&c(h[s+ns(r,t,!0)]))return!0}return a}const cs=!ii.ios;const hs={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};cs&&(hs[".cm-line"].caretColor="transparent !important");function ps(e,t,n,i,r){t.lastIndex=0;for(let o,s=e.iterRange(n,i),a=n;!s.next().done;a+=s.value.length)if(!s.lineBreak)for(;o=t.exec(s.value);)r(a+o.index,a+o.index+o[0].length,o)}class ds{constructor(e){let{regexp:t,decoration:n,boundary:i,maxLength:r=1e3}=e;if(!t.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");this.regexp=t,this.getDeco="function"==typeof n?n:()=>n,this.boundary=i,this.maxLength=r}createDeco(e){let t=new tn;for(let{from:n,to:i}of function(e,t){let n=e.visibleRanges;if(1==n.length&&n[0].from==e.viewport.from&&n[0].to==e.viewport.to)return n;let i=[];for(let{from:r,to:o}of n)r=Math.max(e.state.doc.lineAt(r).from,r-t),o=Math.min(e.state.doc.lineAt(o).to,o+t),i.length&&i[i.length-1].to>=r?i[i.length-1].to=o:i.push({from:r,to:o});return i}(e,this.maxLength))ps(e.state.doc,this.regexp,n,i,((n,i,r)=>t.add(n,i,this.getDeco(r,e,n))));return t.finish()}updateDeco(e,t){let n=1e9,i=-1;return e.docChanged&&e.changes.iterChanges(((t,r,o,s)=>{s>e.view.viewport.from&&o1e3?this.createDeco(e.view):i>-1?this.updateRange(e.view,t.map(e.changes),n,i):t}updateRange(e,t,n,i){for(let r of e.visibleRanges){let o=Math.max(r.from,n),s=Math.min(r.to,i);if(s>o){let n=e.state.doc.lineAt(o),i=n.ton.from;o--)if(this.boundary.test(n.text[o-1-n.from])){a=o;break}for(;sh.push(this.getDeco(i,e,t).range(t,n))));t=t.update({filterFrom:a,filterTo:l,filter:(e,t)=>el,add:h})}}return t}}const us=null!=/x/.unicode?"gu":"g",fs=new RegExp("[\0-\b\n-\x1f\x7f-\x9f\xad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\ufeff\ufff9-\ufffc]",us),ms={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let gs=null;const Os=et.define({combine(e){let t=Ut(e,{render:null,specialChars:fs,addSpecialChars:null});return(t.replaceTabs=!function(){var e;if(null==gs&&"undefined"!=typeof document&&document.body){let t=document.body.style;gs=null!=(null!==(e=t.tabSize)&&void 0!==e?e:t.MozTabSize)}return gs||!1}())&&(t.specialChars=new RegExp("\t|"+t.specialChars.source,us)),t.addSpecialChars&&(t.specialChars=new RegExp(t.specialChars.source+"|"+t.addSpecialChars.source,us)),t}});function bs(e={}){return[Os.of(e),xs||(xs=qi.fromClass(class{constructor(e){this.view=e,this.decorations=vi.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(e.state.facet(Os)),this.decorations=this.decorator.createDeco(e)}makeDecorator(e){return new ds({regexp:e.specialChars,decoration:(t,n,i)=>{let{doc:r}=n.state,o=Qe(t[0],0);if(9==o){let e=r.lineAt(i),t=n.state.tabSize,o=$e(e.text,t,i-e.from);return vi.replace({widget:new ys((t-o%t)*this.view.defaultCharacterWidth)})}return this.decorationCache[o]||(this.decorationCache[o]=vi.replace({widget:new vs(e,o)}))},boundary:e.replaceTabs?void 0:/[^]/})}update(e){let t=e.state.facet(Os);e.startState.facet(Os)!=t?(this.decorator=this.makeDecorator(t),this.decorations=this.decorator.createDeco(e.view)):this.decorations=this.decorator.updateDeco(e,this.decorations)}},{decorations:e=>e.decorations}))]}let xs=null;class vs extends bi{constructor(e,t){super(),this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){let t=function(e){return e>=32?"\u2022":10==e?"\u2424":String.fromCharCode(9216+e)}(this.code),n=e.state.phrase("Control character")+" "+(ms[this.code]||"0x"+this.code.toString(16)),i=this.options.render&&this.options.render(this.code,n,t);if(i)return i;let r=document.createElement("span");return r.textContent=t,r.title=n,r.setAttribute("aria-label",n),r.className="cm-specialChar",r}ignoreEvent(){return!1}}class ys extends bi{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent="\t",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}const ws=vi.line({class:"cm-activeLine"}),Ss=qi.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.docChanged||e.selectionSet)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=-1,n=[];for(let i of e.state.selection.ranges){if(!i.empty)return vi.none;let r=e.lineBlockAt(i.head);r.from>t&&(n.push(ws.range(r.from)),t=r.from)}return vi.set(n)}},{decorations:e=>e.decorations});const ks=1024;let Ts=0;class Qs{constructor(e,t){this.from=e,this.to=t}}class Ps{constructor(e={}){this.id=Ts++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return"function"!=typeof e&&(e=Is.match(e)),t=>{let n=e(t);return void 0===n?null:[this,n]}}}Ps.closedBy=new Ps({deserialize:e=>e.split(" ")}),Ps.openedBy=new Ps({deserialize:e=>e.split(" ")}),Ps.group=new Ps({deserialize:e=>e.split(" ")}),Ps.contextHash=new Ps({perNode:!0}),Ps.lookAhead=new Ps({perNode:!0}),Ps.mounted=new Ps({perNode:!0});class Cs{constructor(e,t,n){this.tree=e,this.overlay=t,this.parser=n}}const $s=Object.create(null);class Is{constructor(e,t,n,i=0){this.name=e,this.props=t,this.id=n,this.flags=i}static define(e){let t=e.props&&e.props.length?Object.create(null):$s,n=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(null==e.name?8:0),i=new Is(e.name||"",t,e.id,n);if(e.props)for(let r of e.props)if(Array.isArray(r)||(r=r(i)),r){if(r[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[r[0].id]=r[1]}return i}prop(e){return this.props[e.id]}get isTop(){return(1&this.flags)>0}get isSkipped(){return(2&this.flags)>0}get isError(){return(4&this.flags)>0}get isAnonymous(){return(8&this.flags)>0}is(e){if("string"==typeof e){if(this.name==e)return!0;let t=this.prop(Ps.group);return!!t&&t.indexOf(e)>-1}return this.id==e}static match(e){let t=Object.create(null);for(let n in e)for(let i of n.split(" "))t[i]=e[n];return e=>{for(let n=e.prop(Ps.group),i=-1;i<(n?n.length:0);i++){let r=t[i<0?e.name:n[i]];if(r)return r}}}}Is.none=new Is("",Object.create(null),0,8);class Rs{constructor(e){this.types=e;for(let t=0;to.node;;){let e=!1;if(o.from<=r&&o.to>=i&&(o.type.isAnonymous||!1!==t(o.type,o.from,o.to,s))){if(o.firstChild())continue;o.type.isAnonymous||(e=!0)}for(;e&&n&&n(o.type,o.from,o.to,s),e=o.type.isAnonymous,!o.nextSibling();){if(!o.parent())return;e=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:qs(Is.none,this.children,this.positions,0,this.children.length,0,this.length,((e,t,n)=>new js(this.type,e,t,n,this.propValues)),e.makeTree||((e,t,n)=>new js(Is.none,e,t,n)))}static build(e){return function(e){var t;let{buffer:n,nodeSet:i,maxBufferLength:r=ks,reused:o=[],minRepeatType:s=i.types.length}=e,a=Array.isArray(n)?new Es(n,n.length):n,l=i.types,c=0,h=0;function p(e,t,n,O,b){let{id:x,start:v,end:y,size:w}=a,S=h;for(;w<0;){if(a.next(),-1==w){let t=o[x];return n.push(t),void O.push(v-e)}if(-3==w)return void(c=x);if(-4==w)return void(h=x);throw new RangeError(`Unrecognized record size: ${w}`)}let k,T,Q=l[x],P=v-e;if(y-v<=r&&(T=m(a.pos-t,b))){let t=new Uint16Array(T.size-T.skip),n=a.pos-T.size,r=t.length;for(;a.pos>n;)r=g(T.start,t,r);k=new Xs(t,y-T.start,i),P=T.start-e}else{let e=a.pos-w;a.next();let t=[],n=[],i=x>=s?x:-1,o=0,l=y;for(;a.pos>e;)i>=0&&a.id==i&&a.size>=0?(a.end<=l-r&&(u(t,n,v,o,a.end,l,i,S),o=t.length,l=a.end),a.next()):p(v,e,t,n,i);if(i>=0&&o>0&&o-1&&o>0){let e=d(Q);k=qs(Q,t,n,0,t.length,0,y-v,e,e)}else k=f(Q,t,n,y-v,S-y)}n.push(k),O.push(P)}function d(e){return(t,n,i)=>{let r,o,s=0,a=t.length-1;if(a>=0&&(r=t[a])instanceof js){if(!a&&r.type==e&&r.length==i)return r;(o=r.prop(Ps.lookAhead))&&(s=n[a]+r.length+o)}return f(e,t,n,i,s)}}function u(e,t,n,r,o,s,a,l){let c=[],h=[];for(;e.length>r;)c.push(e.pop()),h.push(t.pop()+n-o);e.push(f(i.types[a],c,h,s-o,l-s)),t.push(o-n)}function f(e,t,n,i,r=0,o){if(c){let e=[Ps.contextHash,c];o=o?[e].concat(o):[e]}if(r>25){let e=[Ps.lookAhead,r];o=o?[e].concat(o):[e]}return new js(e,t,n,i,o)}function m(e,t){let n=a.fork(),i=0,o=0,l=0,c=n.end-r,h={size:0,start:0,skip:0};e:for(let r=n.pos-e;n.pos>r;){let e=n.size;if(n.id==t&&e>=0){h.size=i,h.start=o,h.skip=l,l+=4,i+=4,n.next();continue}let a=n.pos-e;if(e<0||a=s?4:0,d=n.start;for(n.next();n.pos>a;){if(n.size<0){if(-3!=n.size)break e;p+=4}else n.id>=s&&(p+=4);n.next()}o=d,i+=e,l+=p}return(t<0||i==e)&&(h.size=i,h.start=o,h.skip=l),h.size>4?h:void 0}function g(e,t,n){let{id:i,start:r,end:o,size:l}=a;if(a.next(),l>=0&&i4){let i=a.pos-(l-4);for(;a.pos>i;)n=g(e,t,n)}t[--n]=s,t[--n]=o-e,t[--n]=r-e,t[--n]=i}else-3==l?c=i:-4==l&&(h=i);return n}let O=[],b=[];for(;a.pos>0;)p(e.start||0,e.bufferStart||0,O,b,-1);let x=null!==(t=e.length)&&void 0!==t?t:O.length?b[0]+O[0].length:0;return new js(l[e.topID],O.reverse(),b.reverse(),x)}(e)}}js.empty=new js(Is.none,[],[],0);class Es{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new Es(this.buffer,this.index)}}class Xs{constructor(e,t,n){this.buffer=e,this.length=t,this.set=n}get type(){return Is.none}toString(){let e=[];for(let t=0;t0));a=o[a+3]);return s}slice(e,t,n,i){let r=this.buffer,o=new Uint16Array(t-e);for(let s=e,a=0;s=t&&nt;case 1:return n<=t&&i>t;case 2:return i>t;case 4:return!0}}function Ws(e,t){let n=e.childBefore(t);for(;n;){let t=n.lastChild;if(!t||t.to!=n.to)break;t.type.isError&&t.from==t.to?(e=n,n=t.prevSibling):n=t}return e}function _s(e,t,n,i){for(var r;e.from==e.to||(n<1?e.from>=t:e.from>t)||(n>-1?e.to<=t:e.to0?s.length:-1;e!=l;e+=t){let l=s[e],c=a[e]+o._from;if(zs(i,n,c,c+l.length))if(l instanceof Xs){if(2&r)continue;let s=l.findChild(0,l.buffer.length,t,n-c,i);if(s>-1)return new Us(new Bs(o,l,e,c),null,s)}else if(1&r||!l.type.isAnonymous||Ns(l)){let s;if(!(1&r)&&l.props&&(s=l.prop(Ps.mounted))&&!s.overlay)return new Ls(s.tree,c,e,o);let a=new Ls(l,c,e,o);return 1&r||!a.type.isAnonymous?a:a.nextChild(t<0?l.children.length-1:0,t,n,i)}}if(1&r||!o.type.isAnonymous)return null;if(e=o.index>=0?o.index+t:t<0?-1:o._parent.node.children.length,o=o._parent,!o)return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this.node.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this.node.children.length-1,-1,e,-2)}enter(e,t,n=!0,i=!0){let r;if(n&&(r=this.node.prop(Ps.mounted))&&r.overlay){let n=e-this.from;for(let{from:e,to:i}of r.overlay)if((t>0?e<=n:e=n:i>n))return new Ls(r.tree,r.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,i?0:2)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get cursor(){return new Zs(this)}get tree(){return this.node}toTree(){return this.node}resolve(e,t=0){return _s(this,e,t,!1)}resolveInner(e,t=0){return _s(this,e,t,!0)}enterUnfinishedNodesBefore(e){return Ws(this,e)}getChild(e,t=null,n=null){let i=Ds(this,e,t,n);return i.length?i[0]:null}getChildren(e,t=null,n=null){return Ds(this,e,t,n)}toString(){return this.node.toString()}}function Ds(e,t,n,i){let r=e.cursor,o=[];if(!r.firstChild())return o;if(null!=n)for(;!r.type.is(n);)if(!r.nextSibling())return o;for(;;){if(null!=i&&r.type.is(i))return o;if(r.type.is(t)&&o.push(r.node),!r.nextSibling())return null==i?o:[]}}class Bs{constructor(e,t,n,i){this.parent=e,this.buffer=t,this.index=n,this.start=i}}class Us{constructor(e,t,n){this.context=e,this._parent=t,this.index=n,this.type=e.buffer.set.types[e.buffer.buffer[n]]}get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}child(e,t,n){let{buffer:i}=this.context,r=i.findChild(this.index+4,i.buffer[this.index+3],e,t-this.context.start,n);return r<0?null:new Us(this.context,this,r)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,t,n,i=!0){if(!i)return null;let{buffer:r}=this.context,o=r.findChild(this.index+4,r.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return o<0?null:new Us(this.context,this,o)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new Us(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new Us(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}get cursor(){return new Zs(this)}get tree(){return null}toTree(){let e=[],t=[],{buffer:n}=this.context,i=this.index+4,r=n.buffer[this.index+3];if(r>i){let o=n.buffer[this.index+1],s=n.buffer[this.index+2];e.push(n.slice(i,r,o,s)),t.push(0)}return new js(this.type,e,t,this.to-this.from)}resolve(e,t=0){return _s(this,e,t,!1)}resolveInner(e,t=0){return _s(this,e,t,!0)}enterUnfinishedNodesBefore(e){return Ws(this,e)}toString(){return this.context.buffer.childString(this.index)}getChild(e,t=null,n=null){let i=Ds(this,e,t,n);return i.length?i[0]:null}getChildren(e,t=null,n=null){return Ds(this,e,t,n)}}class Zs{constructor(e,t=0){if(this.mode=t,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof Ls)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let t=e._parent;t;t=t._parent)this.stack.unshift(t.index);this.bufferNode=e,this.yieldBuf(e.index)}}get name(){return this.type.name}yieldNode(e){return!!e&&(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0)}yieldBuf(e,t){this.index=e;let{start:n,buffer:i}=this.buffer;return this.type=t||i.set.types[i.buffer[e]],this.from=n+i.buffer[e+1],this.to=n+i.buffer[e+2],!0}yield(e){return!!e&&(e instanceof Ls?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)))}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,n){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree.node.children.length-1:0,e,t,n,this.mode));let{buffer:i}=this.buffer,r=i.findChild(this.index+4,i.buffer[this.index+3],e,t-this.buffer.start,n);return!(r<0)&&(this.stack.push(this.index),this.yieldBuf(r))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,n=!0,i=!0){return this.buffer?!!i&&this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,n&&!(1&this.mode),i))}parent(){if(!this.buffer)return this.yieldNode(1&this.mode?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=1&this.mode?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode));let{buffer:t}=this.buffer,n=this.stack.length-1;if(e<0){let e=n<0?0:this.stack[n]+4;if(this.index!=e)return this.yieldBuf(t.findChild(e,this.index,-1,0,4))}else{let e=t.buffer[this.index+3];if(e<(n<0?t.buffer.length:t.buffer[this.stack[n]+3]))return this.yieldBuf(e)}return n<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode))}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,n,{buffer:i}=this;if(i){if(e>0){if(this.index-1)for(let i=t+e,r=e<0?-1:n.node.children.length;i!=r;i+=e){let e=n.node.children[i];if(1&this.mode||e instanceof Xs||!e.type.isAnonymous||Ns(e))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to=0;){for(let o=e;o;o=o._parent)if(o.index==i){if(i==this.index)return o;t=o,n=r+1;break e}i=this.stack[--r]}for(let i=n;ie instanceof Xs||!e.type.isAnonymous||Ns(e)))}const Fs=new WeakMap;function Gs(e,t){if(!e.isAnonymous||t instanceof Xs||t.type!=e)return 1;let n=Fs.get(t);if(null==n){n=1;for(let i of t.children){if(i.type!=e||!(i instanceof js)){n=1;break}n+=Gs(e,i)}Fs.set(t,n)}return n}function qs(e,t,n,i,r,o,s,a,l){let c=0;for(let u=i;u=h)break;f+=t}if(c==r+1){if(f>h){let e=n[r];t(e.children,e.positions,0,e.children.length,i[r]+a);continue}p.push(n[r])}else{let t=i[c-1]+n[c-1].length-u;p.push(qs(e,n,i,r,c,u,t,null,l))}d.push(u+a-o)}}(t,n,i,r,0),(a||l)(p,d,s)}class Vs{constructor(e,t,n,i,r=!1,o=!1){this.from=e,this.to=t,this.tree=n,this.offset=i,this.open=(r?1:0)|(o?2:0)}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(e,t=[],n=!1){let i=[new Vs(0,e.length,e,0,!1,n)];for(let r of t)r.to>e.length&&i.push(r);return i}static applyChanges(e,t,n=128){if(!t.length)return e;let i=[],r=1,o=e.length?e[0]:null;for(let s=0,a=0,l=0;;s++){let c=s=n)for(;o&&o.from=t.from||h<=t.to||l){let e=Math.max(t.from,a)-l,n=Math.min(t.to,h)-l;t=e>=n?null:new Vs(e,n,t.tree,t.offset+l,s>0,!!c)}if(t&&i.push(t),o.to>h)break;o=rnew Qs(e.from,e.to))):[new Qs(0,0)]:[new Qs(0,e.length)],this.createParse(e,t||[],n)}parse(e,t,n){let i=this.startParse(e,t,n);for(;;){let e=i.advance();if(e)return e}}}class Hs{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}class Js{constructor(e,t,n,i,r){this.parser=e,this.parse=t,this.overlay=n,this.target=i,this.ranges=r}}class Ks{constructor(e,t,n,i,r,o,s){this.parser=e,this.predicate=t,this.mounts=n,this.index=i,this.start=r,this.target=o,this.prev=s,this.depth=0,this.ranges=[]}}const ea=new Ps({perNode:!0});class ta{constructor(e,t,n,i,r){this.nest=t,this.input=n,this.fragments=i,this.ranges=r,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=e}advance(){if(this.baseParse){let e=this.baseParse.advance();if(!e)return null;if(this.baseParse=null,this.baseTree=e,this.startInner(),null!=this.stoppedAt)for(let t of this.inner)t.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let e=this.baseTree;return null!=this.stoppedAt&&(e=new js(e.type,e.children,e.positions,e.length,e.propValues.concat([[ea,this.stoppedAt]]))),e}let e=this.inner[this.innerDone],t=e.parse.advance();if(t){this.innerDone++;let n=Object.assign(Object.create(null),e.target.props);n[Ps.mounted.id]=new Cs(t,e.overlay,e.parser),e.target.props=n}return null}get parsedPos(){if(this.baseParse)return 0;let e=this.input.length;for(let t=this.innerDone;te.frag.from<=i.from&&e.frag.to>=i.to&&e.mount.overlay));if(e)for(let n of e.mount.overlay){let r=n.from+e.pos,o=n.to+e.pos;r>=i.from&&o<=i.to&&!t.ranges.some((e=>e.fromr))&&t.ranges.push({from:r,to:o})}}a=!1}else if(n&&(o=na(n.ranges,i.from,i.to)))a=2!=o;else if(!i.type.isAnonymous&&i.fromnew Qs(e.from-i.from,e.to-i.from))):null,i.tree,e)),r.overlay?e.length&&(n={ranges:e,depth:0,prev:n}):a=!1}}else t&&(s=t.predicate(i))&&(!0===s&&(s=new Qs(i.from,i.to)),s.fromnew Qs(e.from-t.start,e.to-t.start))),t.target,e)),t=t.prev}n&&!--n.depth&&(n=n.prev)}}}}function na(e,t,n){for(let i of e){if(i.from>=n)break;if(i.to>t)return i.from<=t&&i.to>=n?2:1}return 0}function ia(e,t,n,i,r,o){if(t=t.to);i++);let s=r.children[i],a=s.buffer;r.children[i]=function e(n,i,r,l,c){let h=n;for(;a[h+2]+o<=t.from;)h=a[h+3];let p=[],d=[];ia(s,n,h,p,d,l);let u=a[h+1],f=a[h+2],m=u+o==t.from&&f+o==t.to&&a[h]==t.type.id;return p.push(m?t.toTree():e(h+4,a[h+3],s.set.types[a[h]],u,f-u)),d.push(u-l),ia(s,a[h+3],i,p,d,l),new js(r,p,d,c)}(0,a.length,Is.none,0,s.length);for(let l=0;l<=n;l++)e.childAfter(t.from)}class oa{constructor(e,t){this.offset=t,this.done=!1,this.cursor=e.fullCursor()}moveTo(e){let{cursor:t}=this,n=e-this.offset;for(;!this.done&&t.from=e&&t.enter(n,1,!1,!1)||t.next(!1)||(this.done=!0)}hasNode(e){if(this.moveTo(e.from),!this.done&&this.cursor.from+this.offset==e.from&&this.cursor.tree)for(let t=this.cursor.tree;;){if(t==e.tree)return!0;if(!(t.children.length&&0==t.positions[0]&&t.children[0]instanceof js))break;t=t.children[0]}return!1}}class sa{constructor(e){var t;if(this.fragments=e,this.curTo=0,this.fragI=0,e.length){let n=this.curFrag=e[0];this.curTo=null!==(t=n.tree.prop(ea))&&void 0!==t?t:n.to,this.inner=new oa(n.tree,-n.offset)}else this.curFrag=this.inner=null}hasNode(e){for(;this.curFrag&&e.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=e.from&&this.curTo>=e.to&&this.inner.hasNode(e)}nextFrag(){var e;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let t=this.curFrag=this.fragments[this.fragI];this.curTo=null!==(e=t.tree.prop(ea))&&void 0!==e?e:t.to,this.inner=new oa(t.tree,-t.offset)}}findMounts(e,t){var n;let i=[];if(this.inner){this.inner.cursor.moveTo(e,1);for(let e=this.inner.cursor.node;e;e=e.parent){let r=null===(n=e.tree)||void 0===n?void 0:n.prop(Ps.mounted);if(r&&r.parser==t)for(let t=this.fragI;t=e.to)break;n.tree==this.curFrag.tree&&i.push({frag:n,pos:e.from-n.offset,mount:r})}}}return i}}function aa(e,t){let n=null,i=t;for(let r=1,o=0;r=a)break;e.to<=s||(n||(i=n=t.slice()),e.froma&&n.splice(o+1,0,new Qs(a,e.to))):e.to>a?n[o--]=new Qs(a,e.to):n.splice(o--,1))}}return i}function la(e,t,n,i){let r=0,o=0,s=!1,a=!1,l=-1e9,c=[];for(;;){let h=r==e.length?1e9:s?e[r].to:e[r].from,p=o==t.length?1e9:a?t[o].to:t[o].from;if(s!=a){let e=Math.max(l,n),t=Math.min(h,p,i);enew Qs(e.from+i,e.to+i))),c=la(t,s,a,l);for(let t=0,i=a;;t++){let s=t==c.length,a=s?l:c[t].from;if(a>i&&n.push(new Vs(i,a,r.tree,-e,o.from>=i,o.to<=a)),s)break;i=c[t].to}}else n.push(new Vs(a,l,r.tree,-e,o.from>=e,o.to<=s))}return n}var ha;const pa=new Ps;class da{constructor(e,t,n,i=[]){this.data=e,this.topNode=n,Bt.prototype.hasOwnProperty("tree")||Object.defineProperty(Bt.prototype,"tree",{get(){return ma(this)}}),this.parser=t,this.extension=[ka.of(this),Bt.languageData.of(((e,t,n)=>e.facet(ua(e,t,n))))].concat(i)}isActiveAt(e,t,n=-1){return ua(e,t,n)==this.data}findRegions(e){let t=e.facet(ka);if((null==t?void 0:t.data)==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let n=[],i=(e,t)=>{if(e.prop(pa)==this.data)return void n.push({from:t,to:t+e.length});let r=e.prop(Ps.mounted);if(r){if(r.tree.prop(pa)==this.data){if(r.overlay)for(let e of r.overlay)n.push({from:e.from+t,to:e.to+t});else n.push({from:t,to:t+e.length});return}if(r.overlay){let e=n.length;if(i(r.tree,r.overlay[0].from+t),n.length>e)return}}for(let n=0;ne.concat(n):void 0}));var n;return new fa(t,e.parser.configure({props:[pa.add((e=>e.isTop?t:void 0))]}))}configure(e){return new fa(this.data,this.parser.configure(e))}get allowsNesting(){return this.parser.wrappers.length>0}}function ma(e){let t=e.field(da.state,!1);return t?t.tree:js.empty}class ga{constructor(e,t=e.length){this.doc=e,this.length=t,this.cursorPos=0,this.string="",this.cursor=e.iter()}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let n=this.cursorPos-this.string.length;return e=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-n,t-n)}}let Oa=null;class ba{constructor(e,t,n=[],i,r,o,s,a){this.parser=e,this.state=t,this.fragments=n,this.tree=i,this.treeLen=r,this.viewport=o,this.skipped=s,this.scheduleOn=a,this.parse=null,this.tempSkipped=[]}startParse(){return this.parser.startParse(new ga(this.state.doc),this.fragments)}work(e,t){return null!=t&&t>=this.state.doc.length&&(t=void 0),this.tree!=js.empty&&this.isDone(null!=t?t:this.state.doc.length)?(this.takeTree(),!0):this.withContext((()=>{var n;if("number"==typeof e){let t=Date.now()+e;e=()=>Date.now()>t}for(this.parse||(this.parse=this.startParse()),null!=t&&(null==this.parse.stoppedAt||this.parse.stoppedAt>t)&&t=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext((()=>{for(;!(t=this.parse.advance()););})),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(Vs.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=Oa;Oa=this;try{return e()}finally{Oa=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=xa(e,t.from,t.to);return e}changes(e,t){let{fragments:n,tree:i,treeLen:r,viewport:o,skipped:s}=this;if(this.takeTree(),!e.empty){let t=[];if(e.iterChangedRanges(((e,n,i,r)=>t.push({fromA:e,toA:n,fromB:i,toB:r}))),n=Vs.applyChanges(n,t),i=js.empty,r=0,o={from:e.mapPos(o.from,-1),to:e.mapPos(o.to,1)},this.skipped.length){s=[];for(let t of this.skipped){let n=e.mapPos(t.from,1),i=e.mapPos(t.to,-1);ne.from&&(this.fragments=xa(this.fragments,t,i),this.skipped.splice(n--,1))}return!(this.skipped.length>=t)&&(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends Ys{createParse(t,n,i){let r=i[0].from,o=i[i.length-1].to,s={parsedPos:r,advance(){let t=Oa;if(t){for(let e of i)t.tempSkipped.push(e);e&&(t.scheduleOn=t.scheduleOn?Promise.all([t.scheduleOn,e]):e)}return this.parsedPos=o,new js(Is.none,[],[],o-r)},stoppedAt:null,stopAt(){}};return s}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&0==t[0].from&&t[0].to>=e}static get(){return Oa}}function xa(e,t,n){return Vs.applyChanges(e,[{fromA:t,toA:n,fromB:t,toB:n}])}class va{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),n=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,n)||t.takeTree(),new va(t)}static init(e){let t=Math.min(3e3,e.doc.length),n=new ba(e.facet(ka).parser,e,[],js.empty,0,{from:0,to:t},[],null);return n.work(20,t)||n.takeTree(),new va(n)}}da.state=st.define({create:va.init,update(e,t){for(let n of t.effects)if(n.is(da.setState))return n.value;return t.startState.facet(ka)!=t.state.facet(ka)?va.init(t.state):e.apply(t)}});let ya=e=>{let t=setTimeout((()=>e()),500);return()=>clearTimeout(t)};"undefined"!=typeof requestIdleCallback&&(ya=e=>{let t=-1,n=setTimeout((()=>{t=requestIdleCallback(e,{timeout:400})}),100);return()=>t<0?clearTimeout(n):cancelIdleCallback(t)});const wa="undefined"!=typeof navigator&&(null===(ha=navigator.scheduling)||void 0===ha?void 0:ha.isInputPending)?()=>navigator.scheduling.isInputPending():null,Sa=qi.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(da.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),e.docChanged&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(da.state);t.tree==t.context.tree&&t.context.isDone(e.doc.length)||(this.working=ya(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEndi+1e3,a=r.context.work((()=>wa&&wa()||Date.now()>o),i+(s?0:1e5));this.chunkBudget-=Date.now()-t,(a||this.chunkBudget<=0)&&(r.context.takeTree(),this.view.dispatch({effects:da.setState.of(new va(r.context))})),this.chunkBudget>0&&(!a||s)&&this.scheduleWork(),this.checkAsyncSchedule(r.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then((()=>this.scheduleWork())).catch((e=>Bi(this.view.state,e))).then((()=>this.workScheduled--)),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),ka=et.define({combine:e=>e.length?e[0]:null,enables:[da.state,Sa]});class Ta{constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}}const Qa=et.define(),Pa=et.define({combine:e=>{if(!e.length)return" ";if(!/^(?: +|\t+)$/.test(e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(e[0]));return e[0]}});function Ca(e){let t=e.facet(Pa);return 9==t.charCodeAt(0)?e.tabSize*t.length:t.length}function $a(e,t){let n="",i=e.tabSize;if(9==e.facet(Pa).charCodeAt(0))for(;t>=i;)n+="\t",t-=i;for(let r=0;r=n.from&&i<=n.to?r&&i==e?{text:"",from:e}:(t<0?i-1&&(r+=o-this.countColumn(n,n.search(/\S|$/))),r}countColumn(e,t=e.length){return $e(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:n,from:i}=this.lineAt(e,t),r=this.options.overrideIndentation;if(r){let e=r(i);if(e>-1)return e}return this.countColumn(n,n.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const Aa=new Ps;function Ma(e){let t=e.type.prop(Aa);if(t)return t;let n,i=e.firstChild;if(i&&(n=i.type.prop(Ps.closedBy))){let t=e.lastChild,i=t&&n.indexOf(t.name)>-1;return e=>_a(e,!0,1,void 0,i&&!function(e){return e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak}(e)?t.from:void 0)}return null==e.parent?Ea:null}function ja(e,t,n){for(;e;e=e.parent){let i=Ma(e);if(i)return i(new Xa(n,t,e))}return null}function Ea(){return 0}class Xa extends Ra{constructor(e,t,n){super(e.state,e.options),this.base=e,this.pos=t,this.node=n}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){let e=this.state.doc.lineAt(this.node.from);for(;;){let t=this.node.resolve(e.from);for(;t.parent&&t.parent.from==t.from;)t=t.parent;if(za(t,this.node))break;e=this.state.doc.lineAt(t.from)}return this.lineIndent(e.from)}continue(){let e=this.node.parent;return e?ja(e,this.pos,this.base):0}}function za(e,t){for(let n=t;n;n=n.parent)if(e==n)return!0;return!1}function Wa({closing:e,align:t=!0,units:n=1}){return i=>_a(i,t,n,e)}function _a(e,t,n,i,r){let o=e.textAfter,s=o.match(/^\s*/)[0].length,a=i&&o.slice(s,s+i.length)==i||r==e.pos+s,l=t?function(e){let t=e.node,n=t.childAfter(t.from),i=t.lastChild;if(!n)return null;let r=e.options.simulateBreak,o=e.state.doc.lineAt(n.from),s=null==r||r<=o.from?o.to:Math.min(o.to,r);for(let a=n.to;;){let e=t.childAfter(a);if(!e||e==i)return null;if(!e.type.isSkipped)return e.from{let i=e&&e.test(n.textAfter);return n.baseIndent+(i?0:t*n.unit)}}const Da=new Ps;function Ba(e){let t=e.firstChild,n=e.lastChild;return t&&t.to"},Za=It.define({map(e,t){let n=t.mapPos(e,-1,Le.TrackAfter);return null==n?void 0:n}}),Na=It.define({map:(e,t)=>t.mapPos(e)}),Fa=new class extends Yt{};Fa.startSide=1,Fa.endSide=-1;const Ga=st.define({create:()=>en.empty,update(e,t){if(t.selection){let n=t.state.doc.lineAt(t.selection.main.head).from,i=t.startState.doc.lineAt(t.startState.selection.main.head).from;n!=t.changes.mapPos(i,-1)&&(e=en.empty)}e=e.map(t.changes);for(let n of t.effects)n.is(Za)?e=e.update({add:[Fa.range(n.value,n.value+1)]}):n.is(Na)&&(e=e.update({filter:e=>e!=n.value}));return e}});const qa="()[]{}<>";function Va(e){for(let t=0;t{if((Ha?e.composing:e.compositionStarted)||e.state.readOnly)return!1;let r=e.state.selection.main;if(i.length>2||2==i.length&&1==Ce(Qe(i,0))||t!=r.from||n!=r.to)return!1;let o=function(e,t){let n=Ya(e,e.selection.main.head),i=n.brackets||Ua.brackets;for(let r of i){let o=Va(Qe(r,0));if(t==r)return o==r?rl(e,r,i.indexOf(r+r+r)>-1):nl(e,r,o,n.before||Ua.before);if(t==o&&el(e,e.selection.main.from))return il(e,r,o)}return null}(e.state,i);return!!o&&(e.dispatch(o),!0)})),Ka=[{key:"Backspace",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=Ya(e,e.selection.main.head).brackets||Ua.brackets,i=null,r=e.changeByRange((t=>{if(t.empty){let i=function(e,t){let n=e.sliceString(t-2,t);return Ce(Qe(n,0))==n.length?n:n.slice(1)}(e.doc,t.head);for(let r of n)if(r==i&&tl(e.doc,t.head)==Va(Qe(r,0)))return{changes:{from:t.head-r.length,to:t.head+r.length},range:Ye.cursor(t.head-r.length),userEvent:"delete.backward"}}return{range:i=t}}));return i||t(e.update(r,{scrollIntoView:!0})),!i}}];function el(e,t){let n=!1;return e.field(Ga).between(0,e.doc.length,(e=>{e==t&&(n=!0)})),n}function tl(e,t){let n=e.sliceString(t,t+2);return n.slice(0,Ce(Qe(n,0)))}function nl(e,t,n,i){let r=null,o=e.changeByRange((o=>{if(!o.empty)return{changes:[{insert:t,from:o.from},{insert:n,from:o.to}],effects:Za.of(o.to+t.length),range:Ye.range(o.anchor+t.length,o.head+t.length)};let s=tl(e.doc,o.head);return!s||/\s/.test(s)||i.indexOf(s)>-1?{changes:{insert:t+n,from:o.head},effects:Za.of(o.head+t.length),range:Ye.cursor(o.head+t.length)}:{range:r=o}}));return r?null:e.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function il(e,t,n){let i=null,r=e.selection.ranges.map((t=>t.empty&&tl(e.doc,t.head)==n?Ye.cursor(t.head+n.length):i=t));return i?null:e.update({selection:Ye.create(r,e.selection.mainIndex),scrollIntoView:!0,effects:e.selection.ranges.map((({from:e})=>Na.of(e)))})}function rl(e,t,n){let i=null,r=e.changeByRange((r=>{if(!r.empty)return{changes:[{insert:t,from:r.from},{insert:t,from:r.to}],effects:Za.of(r.to+t.length),range:Ye.range(r.anchor+t.length,r.head+t.length)};let o=r.head,s=tl(e.doc,o);if(s==t){if(ol(e,o))return{changes:{insert:t+t,from:o},effects:Za.of(o+t.length),range:Ye.cursor(o+t.length)};if(el(e,o)){let i=n&&e.sliceDoc(o,o+3*t.length)==t+t+t;return{range:Ye.cursor(o+t.length*(i?3:1)),effects:Na.of(o)}}}else{if(n&&e.sliceDoc(o-2*t.length,o)==t+t&&ol(e,o-2*t.length))return{changes:{insert:t+t+t+t,from:o},effects:Za.of(o+t.length),range:Ye.cursor(o+t.length)};if(e.charCategorizer(o)(s)!=Wt.Word){let n=e.sliceDoc(o-1,o);if(n!=t&&e.charCategorizer(o)(n)!=Wt.Word&&!function(e,t,n){let i=ma(e).resolveInner(t,-1);for(let r=0;r<5;r++){if(e.sliceDoc(i.from,i.from+n.length)==n)return!0;let r=i.to==t&&i.parent;if(!r)break;i=r}return!1}(e,o,t))return{changes:{insert:t+t,from:o},effects:Za.of(o+t.length),range:Ye.cursor(o+t.length)}}}return{range:i=r}}));return i?null:e.update(r,{scrollIntoView:!0,userEvent:"input.type"})}function ol(e,t){let n=ma(e).resolveInner(t+1);return n.parent&&n.from==t}const sl=Vo.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),al="()[]{}",ll=et.define({combine:e=>Ut(e,{afterCursor:!0,brackets:al,maxScanDistance:1e4})}),cl=vi.mark({class:"cm-matchingBracket"}),hl=vi.mark({class:"cm-nonmatchingBracket"}),pl=st.define({create:()=>vi.none,update(e,t){if(!t.docChanged&&!t.selection)return e;let n=[],i=t.state.facet(ll);for(let r of t.state.selection.ranges){if(!r.empty)continue;let e=fl(t.state,r.head,-1,i)||r.head>0&&fl(t.state,r.head-1,1,i)||i.afterCursor&&(fl(t.state,r.head,1,i)||r.headVo.decorations.from(e)}),dl=[pl,sl];function ul(e,t,n){let i=e.prop(t<0?Ps.openedBy:Ps.closedBy);if(i)return i;if(1==e.name.length){let i=n.indexOf(e.name);if(i>-1&&i%2==(t<0?1:0))return[n[i+t]]}return null}function fl(e,t,n,i={}){let r=i.maxScanDistance||1e4,o=i.brackets||al,s=ma(e),a=s.resolveInner(t,n);for(let l=a;l;l=l.parent){let i=ul(l.type,n,o);if(i&&l.from0)return null;let c={from:n<0?t-1:t,to:n>0?t+1:t},h=e.doc.iterRange(t,n>0?e.doc.length:0),p=0;for(let d=0;!h.next().done&&d<=o;){let e=h.value;n<0&&(d+=e.length);let o=t+d*n;for(let t=n>0?0:e.length-1,a=n>0?e.length:-1;t!=a;t+=n){let a=s.indexOf(e[t]);if(!(a<0||i.resolve(o+t,1).type!=r))if(a%2==0==n>0)p++;else{if(1==p)return{start:c,end:{from:o+t,to:o+t+1},matched:a>>1==l>>1};p--}}n>0&&(d+=e.length)}return h.done?{start:c,matched:!1}:null}(e,t,n,s,a.type,r,o)}function ml(e,t,n,i,r,o){let s=i.parent,a={from:i.from,to:i.to},l=0,c=null==s?void 0:s.cursor;if(c&&(n<0?c.childBefore(i.from):c.childAfter(i.to)))do{if(n<0?c.to<=i.from:c.from>=i.to){if(0==l&&r.indexOf(c.type.name)>-1&&c.fromn.empty?e.moveByChar(n,t):xl(n,t)))}const yl=e=>vl(e,e.textDirection!=ir.LTR),wl=e=>vl(e,e.textDirection==ir.LTR);function Sl(e,t){return bl(e,(n=>n.empty?e.moveByGroup(n,t):xl(n,t)))}function kl(e,t,n){if(t.type.prop(n))return!0;let i=t.to-t.from;return i&&(i>2||/[^\s,.;:]/.test(e.sliceDoc(t.from,t.to)))||t.firstChild}function Tl(e,t,n){let i,r,o=ma(e).resolveInner(t.head),s=n?Ps.closedBy:Ps.openedBy;for(let a=t.head;;){let t=n?o.childAfter(a):o.childBefore(a);if(!t)break;kl(e,t,s)?o=t:a=n?t.to:t.from}return r=o.type.prop(s)&&(i=n?fl(e,o.from,1):fl(e,o.to,-1))&&i.matched?n?i.end.to:i.end.from:n?o.to:o.from,Ye.cursor(r,n?-1:1)}function Ql(e,t){return bl(e,(n=>{if(!n.empty)return xl(n,t);let i=e.moveVertically(n,t);return i.head!=n.head?i:e.moveToLineBoundary(n,t)}))}const Pl=e=>Ql(e,!1),Cl=e=>Ql(e,!0);function $l(e,t){let{state:n}=e,i=gl(n.selection,(n=>n.empty?e.moveVertically(n,t,e.dom.clientHeight):xl(n,t)));if(i.eq(n.selection))return!1;let r=e.coordsAtPos(n.selection.main.head),o=e.scrollDOM.getBoundingClientRect();return e.dispatch(Ol(n,i),{effects:r&&r.top>o.top&&r.bottom$l(e,!1),Rl=e=>$l(e,!0);function Al(e,t,n){let i=e.lineBlockAt(t.head),r=e.moveToLineBoundary(t,n);if(r.head==t.head&&r.head!=(n?i.to:i.from)&&(r=e.moveToLineBoundary(t,n,!1)),!n&&r.head==i.from&&i.length){let n=/^\s*/.exec(e.state.sliceDoc(i.from,Math.min(i.from+100,i.to)))[0].length;n&&t.head!=i.from+n&&(r=Ye.cursor(i.from+n))}return r}const Ml=e=>bl(e,(t=>Al(e,t,!0))),jl=e=>bl(e,(t=>Al(e,t,!1)));function El(e,t,n){let i=!1,r=gl(e.selection,(t=>{let r=fl(e,t.head,-1)||fl(e,t.head,1)||t.head>0&&fl(e,t.head-1,1)||t.head{let n=t(e);return Ye.range(e.anchor,n.head,n.goalColumn)}));return!n.eq(e.state.selection)&&(e.dispatch(Ol(e.state,n)),!0)}function zl(e,t){return Xl(e,(n=>e.moveByChar(n,t)))}const Wl=e=>zl(e,e.textDirection!=ir.LTR),_l=e=>zl(e,e.textDirection==ir.LTR);function Ll(e,t){return Xl(e,(n=>e.moveByGroup(n,t)))}function Dl(e,t){return Xl(e,(n=>e.moveVertically(n,t)))}const Bl=e=>Dl(e,!1),Ul=e=>Dl(e,!0);function Zl(e,t){return Xl(e,(n=>e.moveVertically(n,t,e.dom.clientHeight)))}const Nl=e=>Zl(e,!1),Fl=e=>Zl(e,!0),Gl=e=>Xl(e,(t=>Al(e,t,!0))),ql=e=>Xl(e,(t=>Al(e,t,!1))),Vl=({state:e,dispatch:t})=>(t(Ol(e,{anchor:0})),!0),Yl=({state:e,dispatch:t})=>(t(Ol(e,{anchor:e.doc.length})),!0),Hl=({state:e,dispatch:t})=>(t(Ol(e,{anchor:e.selection.main.anchor,head:0})),!0),Jl=({state:e,dispatch:t})=>(t(Ol(e,{anchor:e.selection.main.anchor,head:e.doc.length})),!0);function Kl({state:e,dispatch:t},n){if(e.readOnly)return!1;let i="delete.selection",r=e.changeByRange((e=>{let{from:t,to:r}=e;if(t==r){let e=n(t);et&&(i="delete.forward"),t=Math.min(t,e),r=Math.max(r,e)}return t==r?{range:e}:{changes:{from:t,to:r},range:Ye.cursor(t)}}));return!r.changes.empty&&(t(e.update(r,{scrollIntoView:!0,userEvent:i})),!0)}function ec(e,t,n){if(e instanceof Vo)for(let i of e.pluginField(Ni.atomicRanges))i.between(t,t,((e,i)=>{et&&(t=n?i:e)}));return t}const tc=(e,t)=>Kl(e,(n=>{let i,r,{state:o}=e,s=o.doc.lineAt(n);if(!t&&n>s.from&&ntc(e,!1),ic=e=>tc(e,!0),rc=(e,t)=>Kl(e,(n=>{let i=n,{state:r}=e,o=r.doc.lineAt(i),s=r.charCategorizer(i);for(let e=null;;){if(i==(t?o.to:o.from)){i==n&&o.number!=(t?r.doc.lines:1)&&(i+=t?1:-1);break}let a=ye(o.text,i-o.from,t)+o.from,l=o.text.slice(Math.min(i,a)-o.from,Math.max(i,a)-o.from),c=s(l);if(null!=e&&c!=e)break;" "==l&&i==n||(e=c),i=a}return ec(e,i,t)})),oc=e=>rc(e,!1),sc=e=>Kl(e,(t=>{let n=e.lineBlockAt(t).to;return ec(e,t=r.number){let e=t[t.length-1];e.to=o.to,e.ranges.push(i)}else t.push({from:r.from,to:o.to,ranges:[i]});n=o.number+1}return t}function lc(e,t,n){if(e.readOnly)return!1;let i=[],r=[];for(let o of ac(e)){if(n?o.to==e.doc.length:0==o.from)continue;let t=e.doc.lineAt(n?o.to+1:o.from-1),s=t.length+1;if(n){i.push({from:o.to,to:t.to},{from:o.from,insert:t.text+e.lineBreak});for(let t of o.ranges)r.push(Ye.range(Math.min(e.doc.length,t.anchor+s),Math.min(e.doc.length,t.head+s)))}else{i.push({from:t.from,to:o.from},{from:o.to,insert:e.lineBreak+t.text});for(let e of o.ranges)r.push(Ye.range(e.anchor-s,e.head-s))}}return!!i.length&&(t(e.update({changes:i,scrollIntoView:!0,selection:Ye.create(r,e.selection.mainIndex),userEvent:"move.line"})),!0)}function cc(e,t,n){if(e.readOnly)return!1;let i=[];for(let r of ac(e))n?i.push({from:r.from,insert:e.doc.slice(r.from,r.to)+e.lineBreak}):i.push({from:r.to,insert:e.lineBreak+e.doc.slice(r.from,r.to)});return t(e.update({changes:i,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const hc=dc(!1),pc=dc(!0);function dc(e){return({state:t,dispatch:n})=>{if(t.readOnly)return!1;let i=t.changeByRange((n=>{let{from:i,to:r}=n,o=t.doc.lineAt(i),s=!e&&i==r&&function(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let n,i=ma(e).resolveInner(t),r=i.childBefore(t),o=i.childAfter(t);return r&&o&&r.to<=t&&o.from>=t&&(n=r.type.prop(Ps.closedBy))&&n.indexOf(o.name)>-1&&e.doc.lineAt(r.to).from==e.doc.lineAt(o.from).from?{from:r.to,to:o.from}:null}(t,i);e&&(i=r=(r<=o.to?o:t.doc.lineAt(r)).to);let a=new Ra(t,{simulateBreak:i,simulateDoubleBreak:!!s}),l=Ia(a,i);for(null==l&&(l=/^\s*/.exec(t.doc.lineAt(i).text)[0].length);ro.from&&i{let r=[];for(let s=i.from;s<=i.to;){let o=e.doc.lineAt(s);o.number>n&&(i.empty||i.to>o.from)&&(t(o,r,i),n=o.number),s=o.to+1}let o=e.changes(r);return{changes:r,range:Ye.range(o.mapPos(i.anchor,1),o.mapPos(i.head,1))}}))}const fc=({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(uc(e,((t,n)=>{n.push({from:t.from,insert:e.facet(Pa)})})),{userEvent:"input.indent"})),!0),mc=({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(uc(e,((t,n)=>{let i=/^\s*/.exec(t.text)[0];if(!i)return;let r=$e(i,e.tabSize),o=0,s=$a(e,Math.max(0,r-Ca(e)));for(;oSl(e,e.textDirection!=ir.LTR),shift:e=>Ll(e,e.textDirection!=ir.LTR)},{mac:"Cmd-ArrowLeft",run:jl,shift:ql},{key:"ArrowRight",run:wl,shift:_l,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:e=>Sl(e,e.textDirection==ir.LTR),shift:e=>Ll(e,e.textDirection==ir.LTR)},{mac:"Cmd-ArrowRight",run:Ml,shift:Gl},{key:"ArrowUp",run:Pl,shift:Bl,preventDefault:!0},{mac:"Cmd-ArrowUp",run:Vl,shift:Hl},{mac:"Ctrl-ArrowUp",run:Il,shift:Nl},{key:"ArrowDown",run:Cl,shift:Ul,preventDefault:!0},{mac:"Cmd-ArrowDown",run:Yl,shift:Jl},{mac:"Ctrl-ArrowDown",run:Rl,shift:Fl},{key:"PageUp",run:Il,shift:Nl},{key:"PageDown",run:Rl,shift:Fl},{key:"Home",run:jl,shift:ql},{key:"Mod-Home",run:Vl,shift:Hl},{key:"End",run:Ml,shift:Gl},{key:"Mod-End",run:Yl,shift:Jl},{key:"Enter",run:hc},{key:"Mod-a",run:({state:e,dispatch:t})=>(t(e.update({selection:{anchor:0,head:e.doc.length},userEvent:"select"})),!0)},{key:"Backspace",run:nc,shift:nc},{key:"Delete",run:ic},{key:"Mod-Backspace",mac:"Alt-Backspace",run:oc},{key:"Mod-Delete",mac:"Alt-Delete",run:e=>rc(e,!0)},{mac:"Mod-Backspace",run:e=>Kl(e,(t=>{let n=e.lineBlockAt(t).from;return ec(e,t>n?n:Math.max(0,t-1),!1)}))},{mac:"Mod-Delete",run:sc}].concat([{key:"Ctrl-b",run:yl,shift:Wl,preventDefault:!0},{key:"Ctrl-f",run:wl,shift:_l},{key:"Ctrl-p",run:Pl,shift:Bl},{key:"Ctrl-n",run:Cl,shift:Ul},{key:"Ctrl-a",run:e=>bl(e,(t=>Ye.cursor(e.lineBlockAt(t.head).from,1))),shift:e=>Xl(e,(t=>Ye.cursor(e.lineBlockAt(t.head).from)))},{key:"Ctrl-e",run:e=>bl(e,(t=>Ye.cursor(e.lineBlockAt(t.head).to,-1))),shift:e=>Xl(e,(t=>Ye.cursor(e.lineBlockAt(t.head).to)))},{key:"Ctrl-d",run:ic},{key:"Ctrl-h",run:nc},{key:"Ctrl-k",run:sc},{key:"Ctrl-Alt-h",run:oc},{key:"Ctrl-o",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange((e=>({changes:{from:e.from,to:e.to,insert:Ie.of(["",""])},range:Ye.cursor(e.from)})));return t(e.update(n,{scrollIntoView:!0,userEvent:"input"})),!0}},{key:"Ctrl-t",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange((t=>{if(!t.empty||0==t.from||t.from==e.doc.length)return{range:t};let n=t.from,i=e.doc.lineAt(n),r=n==i.from?n-1:ye(i.text,n-i.from,!1)+i.from,o=n==i.to?n+1:ye(i.text,n-i.from,!0)+i.from;return{changes:{from:r,to:o,insert:e.doc.slice(n,o).append(e.doc.slice(r,n))},range:Ye.cursor(o)}}));return!n.changes.empty&&(t(e.update(n,{scrollIntoView:!0,userEvent:"move.character"})),!0)}},{key:"Ctrl-v",run:Rl}].map((e=>({mac:e.key,run:e.run,shift:e.shift})))),Oc=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:e=>bl(e,(t=>Tl(e.state,t,e.textDirection!=ir.LTR))),shift:e=>Xl(e,(t=>Tl(e.state,t,e.textDirection!=ir.LTR)))},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:e=>bl(e,(t=>Tl(e.state,t,e.textDirection==ir.LTR))),shift:e=>Xl(e,(t=>Tl(e.state,t,e.textDirection==ir.LTR)))},{key:"Alt-ArrowUp",run:({state:e,dispatch:t})=>lc(e,t,!1)},{key:"Shift-Alt-ArrowUp",run:({state:e,dispatch:t})=>cc(e,t,!1)},{key:"Alt-ArrowDown",run:({state:e,dispatch:t})=>lc(e,t,!0)},{key:"Shift-Alt-ArrowDown",run:({state:e,dispatch:t})=>cc(e,t,!0)},{key:"Escape",run:({state:e,dispatch:t})=>{let n=e.selection,i=null;return n.ranges.length>1?i=Ye.create([n.main]):n.main.empty||(i=Ye.create([Ye.cursor(n.main.head)])),!!i&&(t(Ol(e,i)),!0)}},{key:"Mod-Enter",run:pc},{key:"Alt-l",mac:"Ctrl-l",run:({state:e,dispatch:t})=>{let n=ac(e).map((({from:t,to:n})=>Ye.range(t,Math.min(n+1,e.doc.length))));return t(e.update({selection:Ye.create(n),userEvent:"select"})),!0}},{key:"Mod-i",run:({state:e,dispatch:t})=>{let n=gl(e.selection,(t=>{var n;let i=ma(e).resolveInner(t.head,1);for(;!(i.from=t.to||i.to>t.to&&i.from<=t.from)&&(null===(n=i.parent)||void 0===n?void 0:n.parent);)i=i.parent;return Ye.range(i.to,i.from)}));return t(Ol(e,n)),!0},preventDefault:!0},{key:"Mod-[",run:mc},{key:"Mod-]",run:fc},{key:"Mod-Alt-\\",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=Object.create(null),i=new Ra(e,{overrideIndentation:e=>{let t=n[e];return null==t?-1:t}}),r=uc(e,((t,r,o)=>{let s=Ia(i,t.from);if(null==s)return;/\S/.test(t.text)||(s=0);let a=/^\s*/.exec(t.text)[0],l=$a(e,s);(a!=l||o.from{if(e.state.readOnly)return!1;let{state:t}=e,n=t.changes(ac(t).map((({from:e,to:n})=>(e>0?e--:ne.moveVertically(t,!0))).map(n);return e.dispatch({changes:n,selection:i,scrollIntoView:!0,userEvent:"delete.line"}),!0}},{key:"Shift-Mod-\\",run:({state:e,dispatch:t})=>El(e,t,!1)}].concat(gc);function bc(e,t){return({state:n,dispatch:i})=>{if(n.readOnly)return!1;let r=e(t,n);return!!r&&(i(n.update(r)),!0)}}const xc=bc(Tc,0),vc=bc(kc,0),yc=bc(((e,t)=>kc(e,t,function(e){let t=[];for(let n of e.selection.ranges){let i=e.doc.lineAt(n.from),r=n.to<=i.to?i:e.doc.lineAt(n.to),o=t.length-1;o>=0&&t[o].to>i.from?t[o].to=r.to:t.push({from:i.from,to:r.to})}return t}(t))),0),wc=[{key:"Mod-/",run:e=>{let t=Sc(e.state);return t.line?xc(e):!!t.block&&yc(e)}},{key:"Alt-A",run:vc}];function Sc(e,t=e.selection.main.head){let n=e.languageDataAt("commentTokens",t);return n.length?n[0]:{}}function kc(e,t,n=t.selection.ranges){let i=n.map((e=>Sc(t,e.from).block));if(!i.every((e=>e)))return null;let r=n.map(((e,n)=>function(e,{open:t,close:n},i,r){let o,s,a=e.sliceDoc(i-50,i),l=e.sliceDoc(r,r+50),c=/\s*$/.exec(a)[0].length,h=/^\s*/.exec(l)[0].length,p=a.length-c;if(a.slice(p-t.length,p)==t&&l.slice(h,h+n.length)==n)return{open:{pos:i-c,margin:c&&1},close:{pos:r+h,margin:h&&1}};r-i<=100?o=s=e.sliceDoc(i,r):(o=e.sliceDoc(i,i+50),s=e.sliceDoc(r-50,r));let d=/^\s*/.exec(o)[0].length,u=/\s*$/.exec(s)[0].length,f=s.length-u-n.length;return o.slice(d,d+t.length)==t&&s.slice(f,f+n.length)==n?{open:{pos:i+d+t.length,margin:/\s/.test(o.charAt(d+t.length))?1:0},close:{pos:r-u-n.length,margin:/\s/.test(s.charAt(f-1))?1:0}}:null}(t,i[n],e.from,e.to)));if(2!=e&&!r.every((e=>e)))return{changes:t.changes(n.map(((e,t)=>r[t]?[]:[{from:e.from,insert:i[t].open+" "},{from:e.to,insert:" "+i[t].close}])))};if(1!=e&&r.some((e=>e))){let e=[];for(let t,n=0;nr&&(o==s||s>e.from)){r=e.from;let o=Sc(t,a).line;if(!o)continue;let s=/^\s*/.exec(e.text)[0].length,l=s==e.length,c=e.text.slice(s,s+o.length)==o?s:-1;se.comment<0&&(!e.empty||e.single)))){let e=[];for(let{line:t,token:r,indent:o,empty:s,single:a}of i)!a&&s||e.push({from:t.from+o,insert:r+" "});let n=t.changes(e);return{changes:n,selection:t.selection.map(n,1)}}if(1!=e&&i.some((e=>e.comment>=0))){let e=[];for(let{line:t,comment:n,token:r}of i)if(n>=0){let i=t.from+n,o=i+r.length;" "==t.text[o-t.from]&&o++,e.push({from:i,to:o})}return{changes:e}}return null}class Qc extends Yt{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}Qc.prototype.elementClass="",Qc.prototype.toDOM=void 0,Qc.prototype.mapMode=Le.TrackBefore,Qc.prototype.startSide=Qc.prototype.endSide=-1,Qc.prototype.point=!0;const Pc=et.define(),Cc=et.define();const $c=Vo.baseTheme({".cm-gutters":{display:"flex",height:"100%",boxSizing:"border-box",left:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#999",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"}}),Ic=et.define({combine:e=>e.some((e=>e))});function Rc(e){let t=[Ac,$c];return e&&!1===e.fixed&&t.push(Ic.of(!0)),t}const Ac=qi.fromClass(class{constructor(e){this.view=e,this.prevViewport=e.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight+"px",this.gutters=e.state.facet(Cc).map((t=>new Xc(e,t)));for(let t of this.gutters)this.dom.appendChild(t.dom);this.fixed=!e.state.facet(Ic),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),e.scrollDOM.insertBefore(this.dom,e.contentDOM)}update(e){if(this.updateGutters(e)){let t=this.prevViewport,n=e.view.viewport,i=Math.min(t.to,n.to)-Math.max(t.from,n.from);this.syncGutters(i<.8*(n.to-n.from))}e.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight+"px"),this.view.state.facet(Ic)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=e.view.viewport}syncGutters(e){let t=this.dom.nextSibling;e&&this.dom.remove();let n=en.iter(this.view.state.facet(Pc),this.view.viewport.from),i=[],r=this.gutters.map((e=>new Ec(e,this.view.viewport,-this.view.documentPadding.top)));for(let o of this.view.viewportLineBlocks){let e;if(Array.isArray(o.type)){for(let t of o.type)if(t.type==xi.Text){e=t;break}}else e=o.type==xi.Text?o:void 0;if(e){i.length&&(i=[]),jc(n,i,o.from);for(let t of r)t.line(this.view,e,i)}}for(let o of r)o.finish();e&&this.view.scrollDOM.insertBefore(this.dom,t)}updateGutters(e){let t=e.startState.facet(Cc),n=e.state.facet(Cc),i=e.docChanged||e.heightChanged||e.viewportChanged||!en.eq(e.startState.facet(Pc),e.state.facet(Pc),e.view.viewport.from,e.view.viewport.to);if(t==n)for(let r of this.gutters)r.update(e)&&(i=!0);else{i=!0;let r=[];for(let i of n){let n=t.indexOf(i);n<0?r.push(new Xc(this.view,i)):(this.gutters[n].update(e),r.push(this.gutters[n]))}for(let e of this.gutters)e.dom.remove(),r.indexOf(e)<0&&e.destroy();for(let e of r)this.dom.appendChild(e.dom);this.gutters=r}return i}destroy(){for(let e of this.gutters)e.destroy();this.dom.remove()}},{provide:Ni.scrollMargins.from((e=>0!=e.gutters.length&&e.fixed?e.view.textDirection==ir.LTR?{left:e.dom.offsetWidth}:{right:e.dom.offsetWidth}:null))});function Mc(e){return Array.isArray(e)?e:[e]}function jc(e,t,n){for(;e.value&&e.from<=n;)e.from==n&&t.push(e.value),e.next()}class Ec{constructor(e,t,n){this.gutter=e,this.height=n,this.localMarkers=[],this.i=0,this.cursor=en.iter(e.markers,t.from)}line(e,t,n){this.localMarkers.length&&(this.localMarkers=[]),jc(this.cursor,this.localMarkers,t.from);let i=n.length?this.localMarkers.concat(n):this.localMarkers,r=this.gutter.config.lineMarker(e,t,i);r&&i.unshift(r);let o=this.gutter;if(0==i.length&&!o.config.renderEmptyElements)return;let s=t.top-this.height;if(this.i==o.elements.length){let n=new zc(e,t.height,s,i);o.elements.push(n),o.dom.appendChild(n.dom)}else o.elements[this.i].update(e,t.height,s,i);this.height=t.bottom,this.i++}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let t=e.elements.pop();e.dom.removeChild(t.dom),t.destroy()}}}class Xc{constructor(e,t){this.view=e,this.config=t,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let n in t.domEventHandlers)this.dom.addEventListener(n,(i=>{let r=e.lineBlockAtHeight(i.clientY-e.documentTop);t.domEventHandlers[n](e,r,i)&&i.preventDefault()}));this.markers=Mc(t.markers(e)),t.initialSpacer&&(this.spacer=new zc(e,0,0,[t.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let t=this.markers;if(this.markers=Mc(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let t=this.config.updateSpacer(this.spacer.markers[0],e);t!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[t])}let n=e.view.viewport;return!en.eq(this.markers,t,n.from,n.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(e)}destroy(){for(let e of this.elements)e.destroy()}}class zc{constructor(e,t,n,i){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.update(e,t,n,i)}update(e,t,n,i){this.height!=t&&(this.dom.style.height=(this.height=t)+"px"),this.above!=n&&(this.dom.style.marginTop=(this.above=n)?n+"px":""),function(e,t){if(e.length!=t.length)return!1;for(let n=0;nUt(e,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,t){let n=Object.assign({},e);for(let i in t){let e=n[i],r=t[i];n[i]=e?(t,n,i)=>e(t,n,i)||r(t,n,i):r}return n}})});class Lc extends Qc{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function Dc(e,t){return e.state.facet(_c).formatNumber(t,e.state)}const Bc=Cc.compute([_c],(e=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers:e=>e.state.facet(Wc),lineMarker:(e,t,n)=>n.some((e=>e.toDOM))?null:new Lc(Dc(e,e.state.doc.lineAt(t.from).number)),lineMarkerChange:e=>e.startState.facet(_c)!=e.state.facet(_c),initialSpacer:e=>new Lc(Dc(e,Uc(e.state.doc.lines))),updateSpacer(e,t){let n=Dc(t.view,Uc(t.view.state.doc.lines));return n==e.number?e:new Lc(n)},domEventHandlers:e.facet(_c).domEventHandlers})));function Uc(e){let t=9;for(;tt.modified.indexOf(e)>-1?t:Gc.get(t.base||t,t.modified.concat(e).sort(((e,t)=>e.id-t.id)))}}let Fc=0;class Gc{constructor(){this.instances=[],this.id=Fc++}static get(e,t){if(!t.length)return e;let n=t[0].instances.find((n=>n.base==e&&function(e,t){return e.length==t.length&&e.every(((e,n)=>e==t[n]))}(t,n.modified)));if(n)return n;let i=[],r=new Nc(i,e,t);for(let s of t)s.instances.push(r);let o=qc(t);for(let s of e.set)for(let e of o)i.push(Gc.get(s,e));return r}}function qc(e){let t=[e];for(let n=0;n0&&t+3==e.length){r=1;break}let i=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(o);if(!i)throw new RangeError("Invalid path: "+e);if(n.push("*"==i[0]?null:'"'==i[0][0]?JSON.parse(i[0]):i[0]),t+=i[0].length,t==e.length)break;let s=e[t++];if(t==e.length&&"!"==s){r=0;break}if("/"!=s)throw new RangeError("Invalid path: "+e);o=e.slice(t)}let s=n.length-1,a=n[s];if(!a)throw new RangeError("Invalid path: "+e);let l=new eh(i,r,s>0?n.slice(0,s):null);t[a]=l.sort(t[a])}}return Yc.add(t)}const Yc=new Ps,Hc=et.define({combine:e=>e.length?th.combinedMatch(e):null}),Jc=et.define({combine:e=>e.length?e[0].match:null});function Kc(e){return e.facet(Hc)||e.facet(Jc)}class eh{constructor(e,t,n,i){this.tags=e,this.mode=t,this.context=n,this.next=i}sort(e){return!e||e.depthe.facet(Vo.darkTheme)==("dark"==t.themeType)?[this]:[]))),this.fallback=r.concat(Jc.of(this))}match(e,t){if(this.scope&&t!=this.scope)return null;for(let n of e.set){let t=this.map[n.id];if(void 0!==t)return n!=e&&(this.map[e.id]=t),t}return this.map[e.id]=this.all}static combinedMatch(e){if(1==e.length)return e[0].match;let t=e.some((e=>e.scope))?void 0:Object.create(null);return(n,i)=>{let r=t&&t[n.id];if(void 0!==r)return r;let o=null;for(let t of e){let e=t.match(n,i);e&&(o=o?o+" "+e:e)}return t&&(t[n.id]=o),o}}static define(e,t){return new th(e,t||{})}static get(e,t,n){let i=Kc(e);return i&&i(t,n||Is.none)}}class nh{constructor(e){this.markCache=Object.create(null),this.tree=ma(e.state),this.decorations=this.buildDeco(e,Kc(e.state))}update(e){let t=ma(e.state),n=Kc(e.state),i=n!=e.startState.facet(Hc);t.length{n.add(e,t,this.markCache[i]||(this.markCache[i]=vi.mark({class:i})))}));return n.finish()}}const ih=ut.high(qi.fromClass(nh,{decorations:e=>e.decorations})),rh=[""];class oh{constructor(e,t,n){this.at=e,this.style=t,this.span=n,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,n,i,r,o){let{type:s,from:a,to:l}=e;if(a>=n||l<=t)return;rh[r]=s.name,s.isTop&&(o=s);let c=i,h=s.prop(Yc),p=!1;for(;h;){if(!h.context||ah(h.context,rh,r)){for(let e of h.tags){let t=this.style(e,o);t&&(c&&(c+=" "),c+=t,1==h.mode?i+=(i?" ":"")+t:0==h.mode&&(p=!0))}break}h=h.next}if(this.startSpan(e.from,c),p)return;let d=e.tree&&e.tree.prop(Ps.mounted);if(d&&d.overlay){let s=e.node.enter(d.overlay[0].from+a,1),h=e.firstChild();for(let p=0,u=a;;p++){let f=p=m)&&e.nextSibling()););if(!f||m>n)break;u=f.to+a,u>t&&(this.highlightRange(s.cursor,Math.max(t,f.from+a),Math.min(n,u),i,r,d.tree.type),this.startSpan(u,c))}h&&e.parent()}else if(e.firstChild()){do{if(!(e.to<=t)){if(e.from>=n)break;this.highlightRange(e,t,n,i,r+1,o),this.startSpan(Math.min(n,e.to),c)}}while(e.nextSibling());e.parent()}}}function sh(e,t,n,i,r){let o=new oh(t,i,r);o.highlightRange(e.cursor(),t,n,"",0,e.type),o.flush(n)}function ah(e,t,n){if(e.length>n-1)return!1;for(let i=n-1,r=e.length-1;r>=0;r--,i--){let n=e[r];if(n&&n!=t[i])return!1}return!0}const lh=Nc.define,ch=lh(),hh=lh(),ph=lh(hh),dh=lh(hh),uh=lh(),fh=lh(uh),mh=lh(uh),gh=lh(),Oh=lh(gh),bh=lh(),xh=lh(),vh=lh(),yh=lh(vh),wh=lh(),Sh={comment:ch,lineComment:lh(ch),blockComment:lh(ch),docComment:lh(ch),name:hh,variableName:lh(hh),typeName:ph,tagName:lh(ph),propertyName:dh,attributeName:lh(dh),className:lh(hh),labelName:lh(hh),namespace:lh(hh),macroName:lh(hh),literal:uh,string:fh,docString:lh(fh),character:lh(fh),attributeValue:lh(fh),number:mh,integer:lh(mh),float:lh(mh),bool:lh(uh),regexp:lh(uh),escape:lh(uh),color:lh(uh),url:lh(uh),keyword:bh,self:lh(bh),null:lh(bh),atom:lh(bh),unit:lh(bh),modifier:lh(bh),operatorKeyword:lh(bh),controlKeyword:lh(bh),definitionKeyword:lh(bh),moduleKeyword:lh(bh),operator:xh,derefOperator:lh(xh),arithmeticOperator:lh(xh),logicOperator:lh(xh),bitwiseOperator:lh(xh),compareOperator:lh(xh),updateOperator:lh(xh),definitionOperator:lh(xh),typeOperator:lh(xh),controlOperator:lh(xh),punctuation:vh,separator:lh(vh),bracket:yh,angleBracket:lh(yh),squareBracket:lh(yh),paren:lh(yh),brace:lh(yh),content:gh,heading:Oh,heading1:lh(Oh),heading2:lh(Oh),heading3:lh(Oh),heading4:lh(Oh),heading5:lh(Oh),heading6:lh(Oh),contentSeparator:lh(gh),list:lh(gh),quote:lh(gh),emphasis:lh(gh),strong:lh(gh),link:lh(gh),monospace:lh(gh),strikethrough:lh(gh),inserted:lh(),deleted:lh(),changed:lh(),invalid:lh(),meta:wh,documentMeta:lh(wh),annotation:lh(wh),processingInstruction:lh(wh),definition:Nc.defineModifier(),constant:Nc.defineModifier(),function:Nc.defineModifier(),standard:Nc.defineModifier(),local:Nc.defineModifier(),special:Nc.defineModifier()},kh=th.define([{tag:Sh.link,textDecoration:"underline"},{tag:Sh.heading,textDecoration:"underline",fontWeight:"bold"},{tag:Sh.emphasis,fontStyle:"italic"},{tag:Sh.strong,fontWeight:"bold"},{tag:Sh.strikethrough,textDecoration:"line-through"},{tag:Sh.keyword,color:"#708"},{tag:[Sh.atom,Sh.bool,Sh.url,Sh.contentSeparator,Sh.labelName],color:"#219"},{tag:[Sh.literal,Sh.inserted],color:"#164"},{tag:[Sh.string,Sh.deleted],color:"#a11"},{tag:[Sh.regexp,Sh.escape,Sh.special(Sh.string)],color:"#e40"},{tag:Sh.definition(Sh.variableName),color:"#00f"},{tag:Sh.local(Sh.variableName),color:"#30a"},{tag:[Sh.typeName,Sh.namespace],color:"#085"},{tag:Sh.className,color:"#167"},{tag:[Sh.special(Sh.variableName),Sh.macroName],color:"#256"},{tag:Sh.definition(Sh.propertyName),color:"#00c"},{tag:Sh.comment,color:"#940"},{tag:Sh.meta,color:"#7a757a"},{tag:Sh.invalid,color:"#f00"}]),Th=(Sh.link,Sh.heading,Sh.emphasis,Sh.strong,Sh.keyword,Sh.atom,Sh.bool,Sh.url,Sh.labelName,Sh.inserted,Sh.deleted,Sh.literal,Sh.string,Sh.number,Sh.regexp,Sh.escape,Sh.string,Sh.variableName,Sh.variableName,Sh.variableName,Sh.variableName,Sh.propertyName,Sh.typeName,Sh.namespace,Sh.className,Sh.macroName,Sh.propertyName,Sh.operator,Sh.comment,Sh.meta,Sh.invalid,Sh.punctuation,Pt.define()),Qh=Pt.define(),Ph=et.define(),Ch=et.define({combine:e=>Ut(e,{minDepth:100,newGroupDelay:500},{minDepth:Math.max,newGroupDelay:Math.min})});const $h=st.define({create:()=>Nh.empty,update(e,t){let n=t.state.facet(Ch),i=t.annotation(Th);if(i){let r=t.docChanged?Ye.single(function(e){let t=0;return e.iterChangedRanges(((e,n)=>t=n)),t}(t.changes)):void 0,o=Xh.fromTransaction(t,r),s=i.side,a=0==s?e.undone:e.done;return a=o?zh(a,a.length,n.minDepth,o):Lh(a,t.startState.selection),new Nh(0==s?i.rest:a,0==s?a:i.rest)}let r=t.annotation(Qh);if("full"!=r&&"before"!=r||(e=e.isolate()),!1===t.annotation(Rt.addToHistory))return t.changes.empty?e:e.addMapping(t.changes.desc);let o=Xh.fromTransaction(t),s=t.annotation(Rt.time),a=t.annotation(Rt.userEvent);return o?e=e.addChanges(o,s,a,n.newGroupDelay,n.minDepth):t.selection&&(e=e.addSelection(t.startState.selection,s,a,n.newGroupDelay)),"full"!=r&&"after"!=r||(e=e.isolate()),e},toJSON:e=>({done:e.done.map((e=>e.toJSON())),undone:e.undone.map((e=>e.toJSON()))}),fromJSON:e=>new Nh(e.done.map(Xh.fromJSON),e.undone.map(Xh.fromJSON))});function Ih(e={}){return[$h,Ch.of(e),Vo.domEventHandlers({beforeinput(e,t){let n="historyUndo"==e.inputType?Ah:"historyRedo"==e.inputType?Mh:null;return!!n&&(e.preventDefault(),n(t))}})]}function Rh(e,t){return function({state:n,dispatch:i}){if(!t&&n.readOnly)return!1;let r=n.field($h,!1);if(!r)return!1;let o=r.pop(e,n,t);return!!o&&(i(o),!0)}}const Ah=Rh(0,!1),Mh=Rh(1,!1),jh=Rh(0,!0),Eh=Rh(1,!0);class Xh{constructor(e,t,n,i,r){this.changes=e,this.effects=t,this.mapped=n,this.startSelection=i,this.selectionsAfter=r}setSelAfter(e){return new Xh(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,n;return{changes:null===(e=this.changes)||void 0===e?void 0:e.toJSON(),mapped:null===(t=this.mapped)||void 0===t?void 0:t.toJSON(),startSelection:null===(n=this.startSelection)||void 0===n?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map((e=>e.toJSON()))}}static fromJSON(e){return new Xh(e.changes&&Be.fromJSON(e.changes),[],e.mapped&&De.fromJSON(e.mapped),e.startSelection&&Ye.fromJSON(e.startSelection),e.selectionsAfter.map(Ye.fromJSON))}static fromTransaction(e,t){let n=_h;for(let i of e.startState.facet(Ph)){let t=i(e);t.length&&(n=n.concat(t))}return!n.length&&e.changes.empty?null:new Xh(e.changes.invert(e.startState.doc),n,void 0,t||e.startState.selection,_h)}static selection(e){return new Xh(void 0,_h,void 0,void 0,e)}}function zh(e,t,n,i){let r=t+1>n+20?t-n-1:0,o=e.slice(r,t);return o.push(i),o}function Wh(e,t){return e.length?t.length?e.concat(t):e:t}const _h=[];function Lh(e,t){if(e.length){let n=e[e.length-1],i=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-200));return i.length&&i[i.length-1].eq(t)?e:(i.push(t),zh(e,e.length-1,1e9,n.setSelAfter(i)))}return[Xh.selection([t])]}function Dh(e){let t=e[e.length-1],n=e.slice();return n[e.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1)),n}function Bh(e,t){if(!e.length)return e;let n=e.length,i=_h;for(;n;){let r=Uh(e[n-1],t,i);if(r.changes&&!r.changes.empty||r.effects.length){let t=e.slice(0,n);return t[n-1]=r,t}t=r.mapped,n--,i=r.selectionsAfter}return i.length?[Xh.selection(i)]:_h}function Uh(e,t,n){let i=Wh(e.selectionsAfter.length?e.selectionsAfter.map((e=>e.map(t))):_h,n);if(!e.changes)return Xh.selection(i);let r=e.changes.map(t),o=t.mapDesc(e.changes,!0),s=e.mapped?e.mapped.composeDesc(o):o;return new Xh(r,It.mapEffects(e.effects,t),s,e.startSelection.map(o),i)}const Zh=/^(input\.type|delete)($|\.)/;class Nh{constructor(e,t,n=0,i){this.done=e,this.undone=t,this.prevTime=n,this.prevUserEvent=i}isolate(){return this.prevTime?new Nh(this.done,this.undone):this}addChanges(e,t,n,i,r){let o=this.done,s=o[o.length-1];return o=s&&s.changes&&!s.changes.empty&&e.changes&&(!n||Zh.test(n))&&(!s.selectionsAfter.length&&t-this.prevTimen.push(e,t))),t.iterChangedRanges(((e,t,r,o)=>{for(let s=0;s=e&&r<=t&&(i=!0)}})),i}(s.changes,e.changes)||"input.type.compose"==n)?zh(o,o.length-1,r,new Xh(e.changes.compose(s.changes),Wh(e.effects,s.effects),s.mapped,s.startSelection,_h)):zh(o,o.length,r,e),new Nh(o,_h,t,n)}addSelection(e,t,n,i){let r=this.done.length?this.done[this.done.length-1].selectionsAfter:_h;return r.length>0&&t-this.prevTimee.empty!=t.ranges[n].empty)).length}(r[r.length-1],e)?this:new Nh(Lh(this.done,e),this.undone,t,n)}addMapping(e){return new Nh(Bh(this.done,e),Bh(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,t,n){let i=0==e?this.done:this.undone;if(0==i.length)return null;let r=i[i.length-1];if(n&&r.selectionsAfter.length)return t.update({selection:r.selectionsAfter[r.selectionsAfter.length-1],annotations:Th.of({side:e,rest:Dh(i)}),userEvent:0==e?"select.undo":"select.redo",scrollIntoView:!0});if(r.changes){let n=1==i.length?_h:i.slice(0,i.length-1);return r.mapped&&(n=Bh(n,r.mapped)),t.update({changes:r.changes,selection:r.startSelection,effects:r.effects,annotations:Th.of({side:e,rest:n}),filter:!1,userEvent:0==e?"undo":"redo",scrollIntoView:!0})}return null}}Nh.empty=new Nh(_h,_h);const Fh=[{key:"Mod-z",run:Ah,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:Mh,preventDefault:!0},{key:"Mod-u",run:jh,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:Eh,preventDefault:!0}];n(6337);const Gh=r["undefined"!=typeof document&&void 0!==document.createElement?"useLayoutEffect":"useEffect"];const qh=new Map;function Vh(e){const{root:t,...n}=e,i=JSON.stringify(n);let r=qh.get(t);return r||(r={},qh.set(t,r)),r[i]?r[i]:r[i]=function({root:e=null,pollInterval:t=null,useMutationObserver:n=!1,rootMargin:i="0px 0px 0px 0px",threshold:r=0}){const o=new Set;if("undefined"==typeof IntersectionObserver)return null;const s=new IntersectionObserver((e=>{for(const t of o)t(e,s)}),{root:e,rootMargin:i,threshold:r});return s.POLL_INTERVAL=t,s.USE_MUTATION_OBSERVER=n,{observer:s,getListeners:()=>o,subscribe:e=>o.add(e),unsubscribe:e=>o.delete(e)}}(e)}const Yh=function(e,t={}){const{root:n=null,pollInterval:i=null,useMutationObserver:o=!1,rootMargin:s="0px 0px 0px 0px",threshold:a=0,initialIsIntersecting:l=!1}=t,[c,h]=r.useState((()=>({boundingClientRect:null,intersectionRatio:0,intersectionRect:null,isIntersecting:l,rootBounds:null,target:null,time:0}))),[p,d]=r.useState((()=>Vh({root:n,pollInterval:i,useMutationObserver:o,rootMargin:s,threshold:a})));return r.useEffect((()=>{const e=Vh({root:n,pollInterval:i,useMutationObserver:o,rootMargin:s,threshold:a});d(e)}),[n,s,i,o,JSON.stringify(a)]),Gh((()=>{const t=e&&"current"in e?e.current:e;if(!p||!t)return;let n=!1;p.observer.observe(t);const i=e=>{if(!n)for(let n=0;n{n=!0,p.observer.unobserve(t),p.unsubscribe(i)}}),[e,p]),c};class Hh{constructor(e,t,n,i,r,o,s,a,l,c=0,h){this.p=e,this.stack=t,this.state=n,this.reducePos=i,this.pos=r,this.score=o,this.buffer=s,this.bufferBase=a,this.curContext=l,this.lookAhead=c,this.parent=h}toString(){return`[${this.stack.filter(((e,t)=>t%3==0)).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,t,n=0){let i=e.parser.context;return new Hh(e,[],t,n,n,0,[],0,i?new Jh(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,t){this.stack.push(this.state,t,this.bufferBase+this.buffer.length),this.state=e}reduce(e){let t=e>>19,n=65535&e,{parser:i}=this.p,r=i.dynamicPrecedence(n);if(r&&(this.score+=r),0==t)return this.pushState(i.getGoto(this.state,n,!0),this.reducePos),no;)this.stack.pop();this.reduceContext(n,s)}storeNode(e,t,n,i=4,r=!1){if(0==e){let e=this,i=this.buffer.length;if(0==i&&e.parent&&(i=e.bufferBase-e.parent.bufferBase,e=e.parent),i>0&&0==e.buffer[i-4]&&e.buffer[i-1]>-1){if(t==n)return;if(e.buffer[i-2]>=t)return void(e.buffer[i-2]=n)}}if(r&&this.pos!=n){let r=this.buffer.length;if(r>0&&0!=this.buffer[r-4])for(;r>0&&this.buffer[r-2]>n;)this.buffer[r]=this.buffer[r-4],this.buffer[r+1]=this.buffer[r-3],this.buffer[r+2]=this.buffer[r-2],this.buffer[r+3]=this.buffer[r-1],r-=4,i>4&&(i-=4);this.buffer[r]=e,this.buffer[r+1]=t,this.buffer[r+2]=n,this.buffer[r+3]=i}else this.buffer.push(e,t,n,i)}shift(e,t,n){let i=this.pos;if(131072&e)this.pushState(65535&e,this.pos);else if(0==(262144&e)){let r=e,{parser:o}=this.p;(n>this.pos||t<=o.maxNode)&&(this.pos=n,o.stateFlag(r,1)||(this.reducePos=n)),this.pushState(r,i),this.shiftContext(t,i),t<=o.maxNode&&this.buffer.push(t,i,n,4)}else this.pos=n,this.shiftContext(t,i),t<=this.p.parser.maxNode&&this.buffer.push(t,i,n,4)}apply(e,t,n){65536&e?this.reduce(e):this.shift(e,t,n)}useNode(e,t){let n=this.p.reused.length-1;(n<0||this.p.reused[n]!=e)&&(this.p.reused.push(e),n++);let i=this.pos;this.reducePos=this.pos=i+e.length,this.pushState(t,i),this.buffer.push(n,i,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,t=e.buffer.length;for(;t>0&&e.buffer[t-2]>e.reducePos;)t-=4;let n=e.buffer.slice(t),i=e.bufferBase+t;for(;e&&i==e.bufferBase;)e=e.parent;return new Hh(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,n,i,this.curContext,this.lookAhead,e)}recoverByDelete(e,t){let n=e<=this.p.parser.maxNode;n&&this.storeNode(e,this.pos,t,4),this.storeNode(0,this.pos,t,n?8:4),this.pos=this.reducePos=t,this.score-=190}canShift(e){for(let t=new ep(this);;){let n=this.p.parser.stateSlot(t.state,4)||this.p.parser.hasAction(t.state,e);if(0==(65536&n))return!0;if(0==n)return!1;t.reduce(n)}}recoverByInsert(e){if(this.stack.length>=300)return[];let t=this.p.parser.nextStates(this.state);if(t.length>8||this.stack.length>=120){let n=[];for(let i,r=0;r1&t&&e==i))||n.push(t[e],i)}t=n}let n=[];for(let i=0;i>19,i=65535&e,r=this.stack.length-3*n;if(r<0||t.getGoto(this.stack[r],i,!1)<0)return!1;this.storeNode(0,this.reducePos,this.reducePos,4,!0),this.score-=100}return this.reduce(e),!0}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(3!=this.stack.length)return!1;let{parser:e}=this.p;return 65535==e.data[e.stateSlot(this.state,1)]&&!e.stateSlot(this.state,4)}restart(){this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let t=0;tthis.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class Jh{constructor(e,t){this.tracker=e,this.context=t,this.hash=e.strict?e.hash(t):0}}var Kh;!function(e){e[e.Insert=200]="Insert",e[e.Delete=190]="Delete",e[e.Reduce=100]="Reduce",e[e.MaxNext=4]="MaxNext",e[e.MaxInsertStackDepth=300]="MaxInsertStackDepth",e[e.DampenInsertStackDepth=120]="DampenInsertStackDepth"}(Kh||(Kh={}));class ep{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let t=65535&e,n=e>>19;0==n?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=3*(n-1);let i=this.start.p.parser.getGoto(this.stack[this.base-3],t,!0);this.state=i}}class tp{constructor(e,t,n){this.stack=e,this.pos=t,this.index=n,this.buffer=e.buffer,0==this.index&&this.maybeNext()}static create(e,t=e.bufferBase+e.buffer.length){return new tp(e,t,t-e.bufferBase)}maybeNext(){let e=this.stack.parent;null!=e&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,0==this.index&&this.maybeNext()}fork(){return new tp(this.stack,this.pos,this.index)}}class np{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const ip=new np;class rp{constructor(e,t){this.input=e,this.ranges=t,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=ip,this.rangeIndex=0,this.pos=this.chunkPos=t[0].from,this.range=t[0],this.end=t[t.length-1].to,this.readNext()}resolveOffset(e,t){let n=this.range,i=this.rangeIndex,r=this.pos+e;for(;rn.to:r>=n.to;){if(i==this.ranges.length-1)return null;let e=this.ranges[++i];r+=e.from-n.to,n=e}return r}peek(e){let t,n,i=this.chunkOff+e;if(i>=0&&i=this.chunk2Pos&&ti.to&&(this.chunk2=this.chunk2.slice(0,i.to-t)),n=this.chunk2.charCodeAt(0)}}return t>=this.token.lookAhead&&(this.token.lookAhead=t+1),n}acceptToken(e,t=0){let n=t?this.resolveOffset(t,-1):this.pos;if(null==n||n=this.chunk2Pos&&this.posthis.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,t){if(t?(this.token=t,t.start=e,t.lookAhead=e+1,t.value=t.extended=-1):this.token=ip,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e=this.chunkPos&&t<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,t-this.chunkPos);if(e>=this.chunk2Pos&&t<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,t-this.chunk2Pos);if(e>=this.range.from&&t<=this.range.to)return this.input.read(e,t);let n="";for(let i of this.ranges){if(i.from>=t)break;i.to>e&&(n+=this.input.read(Math.max(i.from,e),Math.min(i.to,t)))}return n}}class op{constructor(e,t){this.data=e,this.id=t}token(e,t){!function(e,t,n,i){let r=0,o=1<0){let n=e[i];if(a.allows(n)&&(-1==t.token.value||t.token.value==n||s.overrides(n,t.token.value))){t.acceptToken(n);break}}for(let i=t.next,o=0,s=e[r+2];o>1,l=n+a+(a<<1),c=e[l],h=e[l+1];if(i=h)){r=e[l+2],t.advance();continue e}o=a+1}}break}}(this.data,e,t,this.id)}}op.prototype.contextual=op.prototype.fallback=op.prototype.extend=!1;class sp{constructor(e,t={}){this.token=e,this.contextual=!!t.contextual,this.fallback=!!t.fallback,this.extend=!!t.extend}}function ap(e,t=Uint16Array){if("string"!=typeof e)return e;let n=null;for(let i=0,r=0;i=92&&t--,t>=34&&t--;let r=t-32;if(r>=46&&(r-=46,n=!0),o+=r,n)break;o*=46}n?n[r++]=o:n=new t(o)}return n}const lp="undefined"!=typeof process&&/\bparse\b/.test(process.env.LOG);let cp=null;var hp,pp;function dp(e,t,n){let i=e.fullCursor();for(i.moveTo(t);;)if(!(n<0?i.childBefore(t):i.childAfter(t)))for(;;){if((n<0?i.tot)&&!i.type.isError)return n<0?Math.max(0,Math.min(i.to-1,t-25)):Math.min(e.length,Math.max(i.from+1,t+25));if(n<0?i.prevSibling():i.nextSibling())break;if(!i.parent())return n<0?0:e.length}}!function(e){e[e.Margin=25]="Margin"}(hp||(hp={}));class up{constructor(e,t){this.fragments=e,this.nodeSet=t,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?dp(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?dp(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(ee)return this.nextStart=o,null;if(r instanceof js){if(o==e){if(o=Math.max(this.safeFrom,e)&&(this.trees.push(r),this.start.push(o),this.index.push(0))}else this.index[t]++,this.nextStart=o+r.length}}}class fp{constructor(e,t){this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map((e=>new np))}getActions(e){let t=0,n=null,{parser:i}=e.p,{tokenizers:r}=i,o=i.stateSlot(e.state,3),s=e.curContext?e.curContext.hash:0,a=0;for(let l=0;lc.end+25&&(a=Math.max(c.lookAhead,a)),0!=c.value)){let r=t;if(c.extended>-1&&(t=this.addActions(e,c.extended,c.end,t)),t=this.addActions(e,c.value,c.end,t),!i.extend&&(n=c,t>r))break}}for(;this.actions.length>t;)this.actions.pop();return a&&e.setLookAhead(a),n||e.pos!=this.stream.end||(n=new np,n.value=e.p.parser.eofTerm,n.start=n.end=e.pos,t=this.addActions(e,n.value,n.end,t)),this.mainToken=n,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let t=new np,{pos:n,p:i}=e;return t.start=n,t.end=Math.min(n+1,i.stream.end),t.value=n==i.stream.end?i.parser.eofTerm:0,t}updateCachedToken(e,t,n){if(t.token(this.stream.reset(n.pos,e),n),e.value>-1){let{parser:t}=n.p;for(let i=0;i=0&&n.p.parser.dialect.allows(r>>1)){0==(1&r)?e.value=r>>1:e.extended=r>>1;break}}}else e.value=0,e.end=Math.min(n.p.stream.end,n.pos+1)}putAction(e,t,n,i){for(let r=0;r4*e.bufferLength?new up(n,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e,t,n=this.stacks,i=this.minStackPos,r=this.stacks=[];for(let o=0;oi)r.push(s);else{if(this.advanceStack(s,r,n))continue;{e||(e=[],t=[]),e.push(s);let n=this.tokens.getMainToken(s);t.push(n.value,n.end)}}break}}if(!r.length){let t=e&&function(e){let t=null;for(let n of e){let e=n.p.stoppedAt;(n.pos==n.p.stream.end||null!=e&&n.pos>e)&&n.p.parser.stateFlag(n.state,2)&&(!t||t.scorethis.stoppedAt?e[0]:this.runRecovery(e,t,r);if(n)return this.stackToTree(n.forceAll())}if(this.recovering){let e=1==this.recovering?1:3*this.recovering;if(r.length>e)for(r.sort(((e,t)=>t.score-e.score));r.length>e;)r.pop();r.some((e=>e.reducePos>i))&&this.recovering--}else if(r.length>1)e:for(let o=0;o500&&n.buffer.length>500){if(!((e.score-n.score||e.buffer.length-n.buffer.length)>0)){r.splice(o--,1);continue e}r.splice(t--,1)}}}this.minStackPos=r[0].pos;for(let o=1;o ":"";if(null!=this.stoppedAt&&i>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let t=e.curContext&&e.curContext.tracker.strict,n=t?e.curContext.hash:0;for(let s=this.fragments.nodeAt(i);s;){let i=this.parser.nodeSet.types[s.type.id]==s.type?r.getGoto(e.state,s.type.id):-1;if(i>-1&&s.length&&(!t||(s.prop(Ps.contextHash)||0)==n))return e.useNode(s,i),lp&&console.log(o+this.stackID(e)+` (via reuse of ${r.getName(s.type.id)})`),!0;if(!(s instanceof js)||0==s.children.length||s.positions[0]>0)break;let a=s.children[0];if(!(a instanceof js&&0==s.positions[0]))break;s=a}}let s=r.stateSlot(e.state,4);if(s>0)return e.reduce(s),lp&&console.log(o+this.stackID(e)+` (via always-reduce ${r.getName(65535&s)})`),!0;if(e.stack.length>=15e3)for(;e.stack.length>9e3&&e.forceReduce(););let a=this.tokens.getActions(e);for(let l=0;li?t.push(d):n.push(d)}return!1}advanceFully(e,t){let n=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>n)return gp(e,t),!0}}runRecovery(e,t,n){let i=null,r=!1;for(let o=0;o ":"";if(s.deadEnd){if(r)continue;if(r=!0,s.restart(),lp&&console.log(c+this.stackID(s)+" (restarted)"),this.advanceFully(s,n))continue}let h=s.split(),p=c;for(let e=0;h.forceReduce()&&e<10;e++){if(lp&&console.log(p+this.stackID(h)+" (via force-reduce)"),this.advanceFully(h,n))break;lp&&(p=this.stackID(h)+" -> ")}for(let e of s.recoverByInsert(a))lp&&console.log(c+this.stackID(e)+" (via recover-insert)"),this.advanceFully(e,n);this.stream.end>s.pos?(l==s.pos&&(l++,a=0),s.recoverByDelete(a,l),lp&&console.log(c+this.stackID(s)+` (via recover-delete ${this.parser.getName(a)})`),gp(s,n)):(!i||i.scoree;class xp{constructor(e){this.start=e.start,this.shift=e.shift||bp,this.reduce=e.reduce||bp,this.reuse=e.reuse||bp,this.hash=e.hash||(()=>0),this.strict=!1!==e.strict}}class vp extends Ys{constructor(e){if(super(),this.wrappers=[],13!=e.version)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (13)`);let t=e.nodeNames.split(" ");this.minRepeatTerm=t.length;for(let s=0;se.topRules[t][1])),i=[];for(let s=0;s=0)r(n,e,s[t++]);else{let i=s[t+-n];for(let o=-n;o>0;o--)r(s[t++],e,i);t++}}}this.nodeSet=new Rs(t.map(((t,r)=>Is.define({name:r>=this.minRepeatTerm?void 0:t,id:r,props:i[r],top:n.indexOf(r)>-1,error:0==r,skipped:e.skippedNodes&&e.skippedNodes.indexOf(r)>-1})))),this.strict=!1,this.bufferLength=ks;let o=ap(e.tokenData);if(this.context=e.context,this.specialized=new Uint16Array(e.specialized?e.specialized.length:0),this.specializers=[],e.specialized)for(let s=0;s"number"==typeof e?new op(o,e):e)),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,t,n){let i=new mp(this,e,t,n);for(let r of this.wrappers)i=r(i,e,t,n);return i}getGoto(e,t,n=!1){let i=this.goto;if(t>=i[0])return-1;for(let r=i[t+1];;){let t=i[r++],o=1&t,s=i[r++];if(o&&n)return s;for(let n=r+(t>>1);r0}validAction(e,t){if(t==this.stateSlot(e,4))return!0;for(let n=this.stateSlot(e,1);;n+=3){if(65535==this.data[n]){if(1!=this.data[n+1])return!1;n=yp(this.data,n+2)}if(t==yp(this.data,n+1))return!0}}nextStates(e){let t=[];for(let n=this.stateSlot(e,1);;n+=3){if(65535==this.data[n]){if(1!=this.data[n+1])break;n=yp(this.data,n+2)}if(0==(1&this.data[n+2])){let e=this.data[n+1];t.some(((t,n)=>1&n&&t==e))||t.push(this.data[n],e)}}return t}overrides(e,t){let n=wp(this.data,this.tokenPrecTable,t);return n<0||wp(this.data,this.tokenPrecTable,e){let n=e.tokenizers.find((e=>e.from==t));return n?n.to:t}))),e.contextTracker&&(t.context=e.contextTracker),e.dialect&&(t.dialect=this.parseDialect(e.dialect)),null!=e.strict&&(t.strict=e.strict),e.wrap&&(t.wrappers=t.wrappers.concat(e.wrap)),null!=e.bufferLength&&(t.bufferLength=e.bufferLength),t}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let t=this.dynamicPrecedences;return null==t?0:t[e]||0}parseDialect(e){let t=Object.keys(this.dialects),n=t.map((()=>!1));if(e)for(let r of e.split(" ")){let e=t.indexOf(r);e>=0&&(n[e]=!0)}let i=null;for(let r=0;r=65&&e<=90||e>=97&&e<=122||e>=161}const Tp=new sp(((e,t)=>{for(let i=!1,r=0,o=0;;o++){let{next:s}=e;if(!(kp(s)||45==s||95==s||i&&(n=s,n>=48&&n<=57))){i&&e.acceptToken(40==s?94:2==r&&t.canShift(2)?2:95);break}!i&&(45!=s||o>0)&&(i=!0),r===o&&45==s&&r++,e.advance()}var n})),Qp=new sp((e=>{if(Sp.includes(e.peek(-1))){let{next:t}=e;(kp(t)||95==t||35==t||46==t||91==t||58==t||45==t)&&e.acceptToken(93)}})),Pp=new sp((e=>{if(!Sp.includes(e.peek(-1))){let{next:t}=e;if(37==t&&(e.advance(),e.acceptToken(1)),kp(t)){do{e.advance()}while(kp(e.next));e.acceptToken(1)}}})),Cp={__proto__:null,lang:32,"nth-child":32,"nth-last-child":32,"nth-of-type":32,dir:32,url:60,"url-prefix":60,domain:60,regexp:60,selector:134},$p={__proto__:null,"@import":114,"@media":138,"@charset":142,"@namespace":146,"@keyframes":152,"@supports":164},Ip={__proto__:null,not:128,only:128,from:158,to:160},Rp=vp.deserialize({version:13,states:"7WOYQ[OOOOQP'#Cd'#CdOOQP'#Cc'#CcO!ZQ[O'#CfO!}QXO'#CaO#UQ[O'#ChO#aQ[O'#DPO#fQ[O'#DTOOQP'#Ec'#EcO#kQdO'#DeO$VQ[O'#DrO#kQdO'#DtO$hQ[O'#DvO$sQ[O'#DyO$xQ[O'#EPO%WQ[O'#EROOQS'#Eb'#EbOOQS'#ES'#ESQYQ[OOOOQP'#Cg'#CgOOQP,59Q,59QO!ZQ[O,59QO%_Q[O'#EVO%yQWO,58{O&RQ[O,59SO#aQ[O,59kO#fQ[O,59oO%_Q[O,59sO%_Q[O,59uO%_Q[O,59vO'bQ[O'#D`OOQS,58{,58{OOQP'#Ck'#CkOOQO'#C}'#C}OOQP,59S,59SO'iQWO,59SO'nQWO,59SOOQP'#DR'#DROOQP,59k,59kOOQO'#DV'#DVO'sQ`O,59oOOQS'#Cp'#CpO#kQdO'#CqO'{QvO'#CsO)VQtO,5:POOQO'#Cx'#CxO'iQWO'#CwO)kQWO'#CyOOQS'#Ef'#EfOOQO'#Dh'#DhO)pQ[O'#DoO*OQWO'#EiO$xQ[O'#DmO*^QWO'#DpOOQO'#Ej'#EjO%|QWO,5:^O*cQpO,5:`OOQS'#Dx'#DxO*kQWO,5:bO*pQ[O,5:bOOQO'#D{'#D{O*xQWO,5:eO*}QWO,5:kO+VQWO,5:mOOQS-E8Q-E8QOOQP1G.l1G.lO+yQXO,5:qOOQO-E8T-E8TOOQS1G.g1G.gOOQP1G.n1G.nO'iQWO1G.nO'nQWO1G.nOOQP1G/V1G/VO,WQ`O1G/ZO,qQXO1G/_O-XQXO1G/aO-oQXO1G/bO.VQXO'#CdO.zQWO'#DaOOQS,59z,59zO/PQWO,59zO/XQ[O,59zO/`QdO'#CoO/gQ[O'#DOOOQP1G/Z1G/ZO#kQdO1G/ZO/nQpO,59]OOQS,59_,59_O#kQdO,59aO/vQWO1G/kOOQS,59c,59cO/{Q!bO,59eO0TQWO'#DhO0`QWO,5:TO0eQWO,5:ZO$xQ[O,5:VO$xQ[O'#EYO0mQWO,5;TO0xQWO,5:XO%_Q[O,5:[OOQS1G/x1G/xOOQS1G/z1G/zOOQS1G/|1G/|O1ZQWO1G/|O1`QdO'#D|OOQS1G0P1G0POOQS1G0V1G0VOOQS1G0X1G0XOOQP7+$Y7+$YOOQP7+$u7+$uO#kQdO7+$uO#kQdO,59{O1nQ[O'#EXO1xQWO1G/fOOQS1G/f1G/fO1xQWO1G/fO2QQtO'#ETO2uQdO'#EeO3PQWO,59ZO3UQXO'#EhO3]QWO,59jO3bQpO7+$uOOQS1G.w1G.wOOQS1G.{1G.{OOQS7+%V7+%VO3jQWO1G/PO#kQdO1G/oOOQO1G/u1G/uOOQO1G/q1G/qO3oQWO,5:tOOQO-E8W-E8WO3}QXO1G/vOOQS7+%h7+%hO4UQYO'#CsO%|QWO'#EZO4^QdO,5:hOOQS,5:h,5:hO4lQpO<O!c!}$w!}#O?[#O#P$w#P#Q?g#Q#R2U#R#T$w#T#U?r#U#c$w#c#d@q#d#o$w#o#pAQ#p#q2U#q#rA]#r#sAh#s#y$w#y#z%]#z$f$w$f$g%]$g#BY$w#BY#BZ%]#BZ$IS$w$IS$I_%]$I_$I|$w$I|$JO%]$JO$JT$w$JT$JU%]$JU$KV$w$KV$KW%]$KW&FU$w&FU&FV%]&FV~$wW$zQOy%Qz~%QW%VQoWOy%Qz~%Q~%bf#T~OX%QX^&v^p%Qpq&vqy%Qz#y%Q#y#z&v#z$f%Q$f$g&v$g#BY%Q#BY#BZ&v#BZ$IS%Q$IS$I_&v$I_$I|%Q$I|$JO&v$JO$JT%Q$JT$JU&v$JU$KV%Q$KV$KW&v$KW&FU%Q&FU&FV&v&FV~%Q~&}f#T~oWOX%QX^&v^p%Qpq&vqy%Qz#y%Q#y#z&v#z$f%Q$f$g&v$g#BY%Q#BY#BZ&v#BZ$IS%Q$IS$I_&v$I_$I|%Q$I|$JO&v$JO$JT%Q$JT$JU&v$JU$KV%Q$KV$KW&v$KW&FU%Q&FU&FV&v&FV~%Q^(fSOy%Qz#]%Q#]#^(r#^~%Q^(wSoWOy%Qz#a%Q#a#b)T#b~%Q^)YSoWOy%Qz#d%Q#d#e)f#e~%Q^)kSoWOy%Qz#c%Q#c#d)w#d~%Q^)|SoWOy%Qz#f%Q#f#g*Y#g~%Q^*_SoWOy%Qz#h%Q#h#i*k#i~%Q^*pSoWOy%Qz#T%Q#T#U*|#U~%Q^+RSoWOy%Qz#b%Q#b#c+_#c~%Q^+dSoWOy%Qz#h%Q#h#i+p#i~%Q^+wQ!VUoWOy%Qz~%Q~,QUOY+}Zr+}rs,ds#O+}#O#P,i#P~+}~,iOh~~,lPO~+}_,tWtPOy%Qz!Q%Q!Q![-^![!c%Q!c!i-^!i#T%Q#T#Z-^#Z~%Q^-cWoWOy%Qz!Q%Q!Q![-{![!c%Q!c!i-{!i#T%Q#T#Z-{#Z~%Q^.QWoWOy%Qz!Q%Q!Q![.j![!c%Q!c!i.j!i#T%Q#T#Z.j#Z~%Q^.qWfUoWOy%Qz!Q%Q!Q![/Z![!c%Q!c!i/Z!i#T%Q#T#Z/Z#Z~%Q^/bWfUoWOy%Qz!Q%Q!Q![/z![!c%Q!c!i/z!i#T%Q#T#Z/z#Z~%Q^0PWoWOy%Qz!Q%Q!Q![0i![!c%Q!c!i0i!i#T%Q#T#Z0i#Z~%Q^0pWfUoWOy%Qz!Q%Q!Q![1Y![!c%Q!c!i1Y!i#T%Q#T#Z1Y#Z~%Q^1_WoWOy%Qz!Q%Q!Q![1w![!c%Q!c!i1w!i#T%Q#T#Z1w#Z~%Q^2OQfUoWOy%Qz~%QY2XSOy%Qz!_%Q!_!`2e!`~%QY2lQzQoWOy%Qz~%QX2wQXPOy%Qz~%Q~3QUOY2}Zw2}wx,dx#O2}#O#P3d#P~2}~3gPO~2}_3oQbVOy%Qz~%Q~3zOa~_4RSUPjSOy%Qz!_%Q!_!`2e!`~%Q_4fUjS!PPOy%Qz!O%Q!O!P4x!P!Q%Q!Q![7_![~%Q^4}SoWOy%Qz!Q%Q!Q![5Z![~%Q^5bWoW#ZUOy%Qz!Q%Q!Q![5Z![!g%Q!g!h5z!h#X%Q#X#Y5z#Y~%Q^6PWoWOy%Qz{%Q{|6i|}%Q}!O6i!O!Q%Q!Q![6z![~%Q^6nSoWOy%Qz!Q%Q!Q![6z![~%Q^7RSoW#ZUOy%Qz!Q%Q!Q![6z![~%Q^7fYoW#ZUOy%Qz!O%Q!O!P5Z!P!Q%Q!Q![7_![!g%Q!g!h5z!h#X%Q#X#Y5z#Y~%Q_8ZQpVOy%Qz~%Q^8fUjSOy%Qz!O%Q!O!P4x!P!Q%Q!Q![7_![~%Q_8}S#WPOy%Qz!Q%Q!Q![5Z![~%Q~9`RjSOy%Qz{9i{~%Q~9nSoWOy9iyz9zz{:o{~9i~9}ROz9zz{:W{~9z~:ZTOz9zz{:W{!P9z!P!Q:j!Q~9z~:oOR~~:tUoWOy9iyz9zz{:o{!P9i!P!Q;W!Q~9i~;_QR~oWOy%Qz~%Q^;jY#ZUOy%Qz!O%Q!O!P5Z!P!Q%Q!Q![7_![!g%Q!g!h5z!h#X%Q#X#Y5z#Y~%QX<_S]POy%Qz![%Q![!]RUOy%Qz!c%Q!c!}>e!}#T%Q#T#o>e#o~%QX>lY!YPoWOy%Qz}%Q}!O>e!O!Q%Q!Q![>e![!c%Q!c!}>e!}#T%Q#T#o>e#o~%QX?aQxPOy%Qz~%Q^?lQvUOy%Qz~%QX?uSOy%Qz#b%Q#b#c@R#c~%QX@WSoWOy%Qz#W%Q#W#X@d#X~%QX@kQ!`PoWOy%Qz~%QX@tSOy%Qz#f%Q#f#g@d#g~%QXAVQ!RPOy%Qz~%Q_AbQ!QVOy%Qz~%QZAmS!PPOy%Qz!_%Q!_!`2e!`~%Q",tokenizers:[Qp,Pp,Tp,0,1,2,3],topRules:{StyleSheet:[0,4]},specialized:[{term:94,get:e=>Cp[e]||-1},{term:56,get:e=>$p[e]||-1},{term:95,get:e=>Ip[e]||-1}],tokenPrec:1078});let Ap=null;function Mp(){if(!Ap&&"object"==typeof document&&document.body){let e=[];for(let t in document.body.style)/[A-Z]|^-|^(item|length)$/.test(t)||e.push(t);Ap=e.sort().map((e=>({type:"property",label:e})))}return Ap||[]}const jp=["active","after","before","checked","default","disabled","empty","enabled","first-child","first-letter","first-line","first-of-type","focus","hover","in-range","indeterminate","invalid","lang","last-child","last-of-type","link","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-of-type","only-child","optional","out-of-range","placeholder","read-only","read-write","required","root","selection","target","valid","visited"].map((e=>({type:"class",label:e}))),Ep=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map((e=>({type:"keyword",label:e}))).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map((e=>({type:"constant",label:e})))),Xp=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map((e=>({type:"type",label:e}))),zp=/^[\w-]*/,Wp=fa.define({parser:Rp.configure({props:[Aa.add({Declaration:La()}),Da.add({Block:Ba}),Vc({"import charset namespace keyframes":Sh.definitionKeyword,"media supports":Sh.controlKeyword,"from to selector":Sh.keyword,NamespaceName:Sh.namespace,KeyframeName:Sh.labelName,TagName:Sh.tagName,ClassName:Sh.className,PseudoClassName:Sh.constant(Sh.className),IdName:Sh.labelName,"FeatureName PropertyName":Sh.propertyName,AttributeName:Sh.attributeName,NumberLiteral:Sh.number,KeywordQuery:Sh.keyword,UnaryQueryOp:Sh.operatorKeyword,"CallTag ValueName":Sh.atom,VariableName:Sh.variableName,Callee:Sh.operatorKeyword,Unit:Sh.unit,"UniversalSelector NestingSelector":Sh.definitionOperator,AtKeyword:Sh.keyword,MatchOp:Sh.compareOperator,"ChildOp SiblingOp, LogicOp":Sh.logicOperator,BinOp:Sh.arithmeticOperator,Important:Sh.modifier,Comment:Sh.blockComment,ParenthesizedContent:Sh.special(Sh.name),ColorLiteral:Sh.color,StringLiteral:Sh.string,":":Sh.punctuation,"PseudoOp #":Sh.derefOperator,"; ,":Sh.separator,"( )":Sh.paren,"[ ]":Sh.squareBracket,"{ }":Sh.brace})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}}),_p=Wp.data.of({autocomplete:e=>{let{state:t,pos:n}=e,i=ma(t).resolveInner(n,-1);if("PropertyName"==i.name)return{from:i.from,options:Mp(),span:zp};if("ValueName"==i.name)return{from:i.from,options:Ep,span:zp};if("PseudoClassName"==i.name)return{from:i.from,options:jp,span:zp};if("TagName"==i.name){for(let{parent:e}=i;e;e=e.parent)if("Block"==e.name)return{from:i.from,options:Mp(),span:zp};return{from:i.from,options:Xp,span:zp}}if(!e.explicit)return null;let r=i.resolve(n),o=r.childBefore(n);return o&&":"==o.name&&"PseudoClassSelector"==r.name?{from:n,options:jp,span:zp}:o&&":"==o.name&&"Declaration"==r.name||"ArgList"==r.name?{from:n,options:Ep,span:zp}:"Block"==r.name?{from:n,options:Mp(),span:zp}:null}});function Lp(){return new Ta(Wp,_p)}const Dp={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},Bp={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},Up={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function Zp(e){return 9==e||10==e||13==e||32==e}let Np=null,Fp=null,Gp=0;function qp(e,t){let n=e.pos+t;if(Gp==n&&Fp==e)return Np;let i=e.peek(t);for(;Zp(i);)i=e.peek(++t);let r="";for(;45==(o=i)||46==o||58==o||o>=65&&o<=90||95==o||o>=97&&o<=122||o>=161;)r+=String.fromCharCode(i),i=e.peek(++t);var o;return Fp=e,Gp=n,Np=r?r.toLowerCase():i==Vp||i==Yp?void 0:null}const Vp=63,Yp=33;function Hp(e,t){this.name=e,this.parent=t,this.hash=t?t.hash:0;for(let n=0;nJp.indexOf(t)>-1?new Hp(qp(i,1)||"",e):e,reduce:(e,t)=>18==t&&e?e.parent:e,reuse(e,t,n,i){let r=t.type.id;return 4==r||35==r?new Hp(qp(i,1)||"",e):e},hash:e=>e?e.hash:0,strict:!1}),ed=new sp(((e,t)=>{if(60!=e.next)return void(e.next<0&&t.context&&e.acceptToken(56));e.advance();let n=47==e.next;n&&e.advance();let i=qp(e,0);if(void 0===i)return;if(!i)return e.acceptToken(n?12:4);let r=t.context?t.context.name:null;if(n){if(i==r)return e.acceptToken(9);if(r&&Bp[r])return e.acceptToken(56,-2);if(t.dialectEnabled(0))return e.acceptToken(10);for(let e=t.context;e;e=e.parent)if(e.name==i)return;e.acceptToken(11)}else{if("script"==i)return e.acceptToken(5);if("style"==i)return e.acceptToken(6);if("textarea"==i)return e.acceptToken(7);if(Dp.hasOwnProperty(i))return e.acceptToken(8);r&&Up[r]&&Up[r][i]?e.acceptToken(56,-1):e.acceptToken(4)}}),{contextual:!0}),td=new sp((e=>{for(let t=0,n=0;;n++){if(e.next<0){n&&e.acceptToken(57);break}if(e.next=="--\x3e".charCodeAt(t)){if(t++,3==t){n>3&&e.acceptToken(57,-2);break}}else t=0;e.advance()}}));function nd(e,t,n){let i=2+e.length;return new sp((r=>{for(let o=0,s=0,a=0;;a++){if(r.next<0){a&&r.acceptToken(t);break}if(0==o&&60==r.next||1==o&&47==r.next||o>=2&&os?r.acceptToken(t,-s):r.acceptToken(n,-(s-2));break}if((10==r.next||13==r.next)&&a){r.acceptToken(t,1);break}o=s=0}else s++;r.advance()}}))}const id=nd("script",53,1),rd=nd("style",54,2),od=nd("textarea",55,3),sd=vp.deserialize({version:13,states:",xOVOxOOO!WQ!bO'#CoO!]Q!bO'#CyO!bQ!bO'#C|O!gQ!bO'#DPO!lQ!bO'#DRO!qOXO'#CnO!|OYO'#CnO#XO[O'#CnO$eOxO'#CnOOOW'#Cn'#CnO$lO!rO'#DSO$tQ!bO'#DUO$yQ!bO'#DVOOOW'#Dj'#DjOOOW'#DX'#DXQVOxOOO%OQ#tO,59ZO%WQ#tO,59eO%`Q#tO,59hO%hQ#tO,59kO%pQ#tO,59mOOOX'#D]'#D]O%xOXO'#CwO&TOXO,59YOOOY'#D^'#D^O&]OYO'#CzO&hOYO,59YOOO['#D_'#D_O&pO[O'#C}O&{O[O,59YOOOW'#D`'#D`O'TOxO,59YO'[Q!bO'#DQOOOW,59Y,59YOOO`'#Da'#DaO'aO!rO,59nOOOW,59n,59nO'iQ!bO,59pO'nQ!bO,59qOOOW-E7V-E7VO'sQ#tO'#CqOOQO'#DY'#DYO(OQ#tO1G.uOOOX1G.u1G.uO(WQ#tO1G/POOOY1G/P1G/PO(`Q#tO1G/SOOO[1G/S1G/SO(hQ#tO1G/VOOOW1G/V1G/VO(pQ#tO1G/XOOOW1G/X1G/XOOOX-E7Z-E7ZO(xQ!bO'#CxOOOW1G.t1G.tOOOY-E7[-E7[O(}Q!bO'#C{OOO[-E7]-E7]O)SQ!bO'#DOOOOW-E7^-E7^O)XQ!bO,59lOOO`-E7_-E7_OOOW1G/Y1G/YOOOW1G/[1G/[OOOW1G/]1G/]O)^Q&jO,59]OOQO-E7W-E7WOOOX7+$a7+$aOOOY7+$k7+$kOOO[7+$n7+$nOOOW7+$q7+$qOOOW7+$s7+$sO)iQ!bO,59dO)nQ!bO,59gO)sQ!bO,59jOOOW1G/W1G/WO)xO,UO'#CtO*WO7[O'#CtOOQO1G.w1G.wOOOW1G/O1G/OOOOW1G/R1G/ROOOW1G/U1G/UOOOO'#DZ'#DZO*fO,UO,59`OOQO,59`,59`OOOO'#D['#D[O*tO7[O,59`OOOO-E7X-E7XOOQO1G.z1G.zOOOO-E7Y-E7Y",stateData:"+[~O!]OS~OSSOTPOUQOVROWTOY]OZ[O[^O^^O_^O`^Oa^Ow^Oz_O!cZO~OdaO~OdbO~OdcO~OddO~OdeO~O!VfOPkP!YkP~O!WiOQnP!YnP~O!XlORqP!YqP~OSSOTPOUQOVROWTOXqOY]OZ[O[^O^^O_^O`^Oa^Ow^O!cZO~O!YrO~P#dO!ZsO!duO~OdvO~OdwO~OfyOj|O~OfyOj!OO~OfyOj!QO~OfyOj!SO~OfyOj!UO~O!VfOPkX!YkX~OP!WO!Y!XO~O!WiOQnX!YnX~OQ!ZO!Y!XO~O!XlORqX!YqX~OR!]O!Y!XO~O!Y!XO~P#dOd!_O~O!ZsO!d!aO~Oj!bO~Oj!cO~Og!dOfeXjeX~OfyOj!fO~OfyOj!gO~OfyOj!hO~OfyOj!iO~OfyOj!jO~Od!kO~Od!lO~Od!mO~Oj!nO~Oi!qO!_!oO!a!pO~Oj!rO~Oj!sO~Oj!tO~O_!uO`!uO!_!wO!`!uO~O_!xO`!xO!a!wO!b!xO~O_!uO`!uO!_!{O!`!uO~O_!xO`!xO!a!{O!b!xO~O`_a!cwz!c~",goto:"%o!_PPPPPPPPPPPPPPPPPP!`!fP!lPP!xPP!{#O#R#X#[#_#e#h#k#q#w!`P!`!`P#}$T$k$q$w$}%T%Z%aPPPPPPPP%gX^OX`pXUOX`pezabcde{}!P!R!TR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ}bQ!PcQ!RdQ!TeZ!e{}!P!R!TQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"\u26a0 StartCloseTag StartCloseTag StartCloseTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue EndTag ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:66,context:Kp,nodeProps:[[Ps.closedBy,-11,1,2,3,4,5,6,7,8,9,10,11,"EndTag",-4,19,29,32,35,"CloseTag"],[Ps.group,-9,12,15,16,17,18,38,39,40,41,"Entity",14,"Entity TextContent",-3,27,30,33,"TextContent Entity"],[Ps.openedBy,26,"StartTag StartCloseTag",-4,28,31,34,36,"OpenTag"]],skippedNodes:[0],repeatNodeCount:9,tokenData:"!#b!aR!WOX$kXY)sYZ)sZ]$k]^)s^p$kpq)sqr$krs*zsv$kvw+dwx2yx}$k}!O3f!O!P$k!P!Q7_!Q![$k![!]8u!]!^$k!^!_>b!_!`!!p!`!a8T!a!c$k!c!}8u!}#R$k#R#S8u#S#T$k#T#o8u#o$f$k$f$g&R$g%W$k%W%o8u%o%p$k%p&a8u&a&b$k&b1p8u1p4U$k4U4d8u4d4e$k4e$IS8u$IS$I`$k$I`$Ib8u$Ib$Kh$k$Kh%#t8u%#t&/x$k&/x&Et8u&Et&FV$k&FV;'S8u;'S;:jiW!``!bpOq(kqr?Rrs'gsv(kwx(]x!a(k!a!bKj!b~(k!R?YZ!``!bpOr(krs'gsv(kwx(]x}(k}!O?{!O!f(k!f!gAR!g#W(k#W#XGz#X~(k!R@SV!``!bpOr(krs'gsv(kwx(]x}(k}!O@i!O~(k!R@rT!``!bp!cPOr(krs'gsv(kwx(]x~(k!RAYV!``!bpOr(krs'gsv(kwx(]x!q(k!q!rAo!r~(k!RAvV!``!bpOr(krs'gsv(kwx(]x!e(k!e!fB]!f~(k!RBdV!``!bpOr(krs'gsv(kwx(]x!v(k!v!wBy!w~(k!RCQV!``!bpOr(krs'gsv(kwx(]x!{(k!{!|Cg!|~(k!RCnV!``!bpOr(krs'gsv(kwx(]x!r(k!r!sDT!s~(k!RD[V!``!bpOr(krs'gsv(kwx(]x!g(k!g!hDq!h~(k!RDxW!``!bpOrDqrsEbsvDqvwEvwxFfx!`Dq!`!aGb!a~DqqEgT!bpOvEbvxEvx!`Eb!`!aFX!a~EbPEyRO!`Ev!`!aFS!a~EvPFXOzPqF`Q!bpzPOv'gx~'gaFkV!``OrFfrsEvsvFfvwEvw!`Ff!`!aGQ!a~FfaGXR!``zPOr(]sv(]w~(]!RGkT!``!bpzPOr(krs'gsv(kwx(]x~(k!RHRV!``!bpOr(krs'gsv(kwx(]x#c(k#c#dHh#d~(k!RHoV!``!bpOr(krs'gsv(kwx(]x#V(k#V#WIU#W~(k!RI]V!``!bpOr(krs'gsv(kwx(]x#h(k#h#iIr#i~(k!RIyV!``!bpOr(krs'gsv(kwx(]x#m(k#m#nJ`#n~(k!RJgV!``!bpOr(krs'gsv(kwx(]x#d(k#d#eJ|#e~(k!RKTV!``!bpOr(krs'gsv(kwx(]x#X(k#X#YDq#Y~(k!RKqW!``!bpOrKjrsLZsvKjvwLowxNPx!aKj!a!b! g!b~KjqL`T!bpOvLZvxLox!aLZ!a!bM^!b~LZPLrRO!aLo!a!bL{!b~LoPMORO!`Lo!`!aMX!a~LoPM^OwPqMcT!bpOvLZvxLox!`LZ!`!aMr!a~LZqMyQ!bpwPOv'gx~'gaNUV!``OrNPrsLosvNPvwLow!aNP!a!bNk!b~NPaNpV!``OrNPrsLosvNPvwLow!`NP!`!a! V!a~NPa! ^R!``wPOr(]sv(]w~(]!R! nW!``!bpOrKjrsLZsvKjvwLowxNPx!`Kj!`!a!!W!a~Kj!R!!aT!``!bpwPOr(krs'gsv(kwx(]x~(k!V!!{VgS^P!``!bpOr&Rrs&qsv&Rwx'rx!^&R!^!_(k!_~&R",tokenizers:[id,rd,od,ed,td,0,1,2,3,4,5],topRules:{Document:[0,13]},dialects:{noMatch:0},tokenPrec:464});function ad(e,t){let n=Object.create(null);for(let i of e.firstChild.getChildren("Attribute")){let e=i.getChild("AttributeName"),r=i.getChild("AttributeValue")||i.getChild("UnquotedAttributeValue");e&&(n[t.read(e.from,e.to)]=r?"AttributeValue"==r.name?t.read(r.from+1,r.to-1):t.read(r.from,r.to):"")}return n}function ld(e,t,n){let i;for(let r of n)if(!r.attrs||r.attrs(i||(i=ad(e.node.parent,t))))return{parser:r.parser};return null}function cd(e){let t=[],n=[],i=[];for(let o of e){let e="script"==o.tag?t:"style"==o.tag?n:"textarea"==o.tag?i:null;if(!e)throw new RangeError("Only script, style, and textarea tags can host nested parsers");e.push(o)}return r=(e,r)=>{let o=e.type.id;return 27==o?ld(e,r,t):30==o?ld(e,r,n):33==o?ld(e,r,i):null},(e,t,n,i)=>new ta(e,r,t,n,i);var r}const hd=280,pd=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],dd=new xp({start:!1,shift:(e,t)=>5==t||6==t||284==t?e:285==t,strict:!1}),ud=new sp(((e,t)=>{let{next:n}=e;(125==n||-1==n||t.context)&&t.canShift(282)&&e.acceptToken(282)}),{contextual:!0,fallback:!0}),fd=new sp(((e,t)=>{let n,{next:i}=e;pd.indexOf(i)>-1||(47!=i||47!=(n=e.peek(1))&&42!=n)&&125!=i&&59!=i&&-1!=i&&!t.context&&t.canShift(279)&&e.acceptToken(279)}),{contextual:!0}),md=new sp(((e,t)=>{let{next:n}=e;if((43==n||45==n)&&(e.advance(),n==e.next)){e.advance();let n=!t.context&&t.canShift(1);e.acceptToken(n?1:2)}}),{contextual:!0}),gd=new sp((e=>{for(let t=!1,n=0;;n++){let{next:i}=e;if(i<0){n&&e.acceptToken(hd);break}if(96==i){n?e.acceptToken(hd):e.acceptToken(281,1);break}if(123==i&&t){1==n?e.acceptToken(3,1):e.acceptToken(hd,-1);break}if(10==i&&n){e.advance(),e.acceptToken(hd);break}92==i&&e.advance(),t=36==i,e.advance()}}));const Od={__proto__:null,export:18,as:23,from:29,default:32,async:37,function:38,this:48,true:56,false:56,void:66,typeof:70,null:86,super:88,new:122,await:139,yield:141,delete:142,class:152,extends:154,public:197,private:197,protected:197,readonly:199,instanceof:220,in:222,const:224,import:256,keyof:307,unique:311,infer:317,is:351,abstract:371,implements:373,type:375,let:378,var:380,interface:387,enum:391,namespace:397,module:399,declare:403,global:407,for:428,of:437,while:440,with:444,do:448,if:452,else:454,switch:458,case:464,try:470,catch:472,finally:474,return:478,throw:482,break:486,continue:490,debugger:494},bd={__proto__:null,async:109,get:111,set:113,public:161,private:161,protected:161,static:163,abstract:165,override:167,readonly:173,new:355},xd={__proto__:null,"<":129},vd=vp.deserialize({version:13,states:"$1jO`QYOOO'QQ!LdO'#ChO'XOSO'#DVO)dQYO'#D]O)tQYO'#DhO){QYO'#DrO-xQYO'#DxOOQO'#E]'#E]O.]QWO'#E[O.bQWO'#E[OOQ!LS'#Ef'#EfO0aQ!LdO'#IrO2wQ!LdO'#IsO3eQWO'#EzO3jQpO'#FaOOQ!LS'#FS'#FSO3rO!bO'#FSO4QQWO'#FhO5_QWO'#FgOOQ!LS'#Is'#IsOOQ!LQ'#Ir'#IrOOQQ'#J['#J[O5dQWO'#HnO5iQ!LYO'#HoOOQQ'#If'#IfOOQQ'#Hp'#HpQ`QYOOO){QYO'#DjO5qQWO'#G[O5vQ#tO'#CmO6UQWO'#EZO6aQWO'#EgO6fQ#tO'#FRO7QQWO'#G[O7VQWO'#G`O7bQWO'#G`O7pQWO'#GcO7pQWO'#GdO7pQWO'#GfO5qQWO'#GiO8aQWO'#GlO9oQWO'#CdO:PQWO'#GyO:XQWO'#HPO:XQWO'#HRO`QYO'#HTO:XQWO'#HVO:XQWO'#HYO:^QWO'#H`O:cQ!LZO'#HdO){QYO'#HfO:nQ!LZO'#HhO:yQ!LZO'#HjO5iQ!LYO'#HlO){QYO'#DWOOOS'#Hr'#HrO;UOSO,59qOOQ!LS,59q,59qO=gQbO'#ChO=qQYO'#HsO>UQWO'#ItO@TQbO'#ItO'dQYO'#ItO@[QWO,59wO@rQ&jO'#DbOAkQWO'#E]OAxQWO'#JPOBTQWO'#JOOBTQWO'#JOOB]QWO,5:yOBbQWO'#I}OBiQWO'#DyO5vQ#tO'#EZOBwQWO'#EZOCSQ`O'#FROOQ!LS,5:S,5:SOC[QYO,5:SOEYQ!LdO,5:^OEvQWO,5:dOFaQ!LYO'#I|O7VQWO'#I{OFhQWO'#I{OFpQWO,5:xOFuQWO'#I{OGTQYO,5:vOITQWO'#EWOJ_QWO,5:vOKnQWO'#DlOKuQYO'#DqOLPQ&jO,5;PO){QYO,5;POOQQ'#Er'#ErOOQQ'#Et'#EtO){QYO,5;RO){QYO,5;RO){QYO,5;RO){QYO,5;RO){QYO,5;RO){QYO,5;RO){QYO,5;RO){QYO,5;RO){QYO,5;RO){QYO,5;RO){QYO,5;ROOQQ'#Ex'#ExOLXQYO,5;cOOQ!LS,5;h,5;hOOQ!LS,5;i,5;iONXQWO,5;iOOQ!LS,5;j,5;jO){QYO'#H}ON^Q!LYO,5YOOQQ'#Ii'#IiOOQQ,5>Z,5>ZOOQQ-E;n-E;nO!+YQ!LdO,5:UOOQ!LQ'#Cp'#CpO!+yQ#tO,5O,5>OO){QYO,5>OO5iQ!LYO,5>QOOQQ,5>S,5>SO!8VQWO,5>SOOQQ,5>U,5>UO!8VQWO,5>UOOQQ,5>W,5>WO!8[Q`O,59rOOOS-E;p-E;pOOQ!LS1G/]1G/]O!8aQbO,5>_O'dQYO,5>_OOQO,5>d,5>dO!8kQYO'#HsOOQO-E;q-E;qO!8xQWO,5?`O!9QQbO,5?`O!9XQWO,5?jOOQ!LS1G/c1G/cO!9aQpO'#DTOOQO'#Iv'#IvO){QYO'#IvO!:OQpO'#IvO!:mQpO'#DcO!;OQ&jO'#DcO!=ZQYO'#DcO!=bQWO'#IuO!=jQWO,59|O!=oQWO'#EaO!=}QWO'#JQO!>VQWO,5:zO!>mQ&jO'#DcO){QYO,5?kO!>wQWO'#HxOOQO-E;v-E;vO!9XQWO,5?jOOQ!LQ1G0e1G0eO!@TQ&jO'#D|OOQ!LS,5:e,5:eO){QYO,5:eOITQWO,5:eO!@[QWO,5:eO:^QWO,5:uO!,rQpO,5:uO!,zQ#tO,5:uO5vQ#tO,5:uOOQ!LS1G/n1G/nOOQ!LS1G0O1G0OOOQ!LQ'#EV'#EVO){QYO,5?hO!@gQ!LYO,5?hO!@xQ!LYO,5?hO!APQWO,5?gO!AXQWO'#HzO!APQWO,5?gOOQ!LQ1G0d1G0dO7VQWO,5?gOOQ!LS1G0b1G0bO!AsQ!LdO1G0bO!BdQ!LbO,5:rOOQ!LS'#Fq'#FqO!CQQ!LdO'#IoOGTQYO1G0bO!EPQ#tO'#IwO!EZQWO,5:WO!E`QbO'#IxO){QYO'#IxO!EjQWO,5:]OOQ!LS'#DT'#DTOOQ!LS1G0k1G0kO!EoQWO1G0kO!HQQ!LdO1G0mO!HXQ!LdO1G0mO!JlQ!LdO1G0mO!JsQ!LdO1G0mO!LzQ!LdO1G0mO!M_Q!LdO1G0mO#!OQ!LdO1G0mO#!VQ!LdO1G0mO#$jQ!LdO1G0mO#$qQ!LdO1G0mO#&fQ!LdO1G0mO#)`Q7^O'#ChO#+ZQ7^O1G0}O#-UQ7^O'#IsOOQ!LS1G1T1G1TO#-iQ!LdO,5>iOOQ!LQ-E;{-E;{O#.YQ!LdO1G0mOOQ!LS1G0m1G0mO#0[Q!LdO1G1QO#0{QpO,5;sO#1QQpO,5;tO#1VQpO'#F[O#1kQWO'#FZOOQO'#JU'#JUOOQO'#H{'#H{O#1pQpO1G1]OOQ!LS1G1]1G1]OOOO1G1f1G1fO#2OQ7^O'#IrO#2YQWO,5;}OLXQYO,5;}OOOO-E;z-E;zOOQ!LS1G1Y1G1YOOQ!LS,5VQ&jO'#GhOOQQ1G2l1G2lO!&wQ&jO'#IWO!0OQ`O1G2oOOQQ1G2o1G2oOOQQ,5=Y,5=YO#>_Q#tO,5=[O5qQWO,5=[O#5YQWO,5=_O5_QWO,5=_O!,rQpO,5=_O!,zQ#tO,5=_O5vQ#tO,5=_O#>pQWO'#J_O#>{QWO,5=`OOQQ1G.j1G.jO#?QQ!LYO1G.jO#?]QWO1G.jO#?bQWO1G.jO5iQ!LYO1G.jO#?jQbO,5?|O#?tQWO,5?|O#@PQYO,5=gO#@WQWO,5=gO7VQWO,5?|OOQQ1G3P1G3PO`QYO1G3POOQQ1G3V1G3VOOQQ1G3X1G3XO:XQWO1G3ZO#@]QYO1G3]O#DWQYO'#H[OOQQ1G3`1G3`O:^QWO1G3fO#DeQWO1G3fO5iQ!LYO1G3jOOQQ1G3l1G3lOOQ!LQ'#Fx'#FxO5iQ!LYO1G3nO5iQ!LYO1G3pOOOS1G/^1G/^O#DmQ`O,5_O#EPQWO1G4zO#EXQWO1G5UO#EaQWO,5?bOLXQYO,5:{O7VQWO,5:{O:^QWO,59}OLXQYO,59}O!,rQpO,59}O#EfQ7^O,59}OOQO,5:{,5:{O#EpQ&jO'#HtO#FWQWO,5?aOOQ!LS1G/h1G/hO#F`Q&jO'#HyO#FtQWO,5?lOOQ!LQ1G0f1G0fO!;OQ&jO,59}O#F|QbO1G5VO7VQWO,5>dOOQ!LQ'#ES'#ESO#GWQ!LrO'#ETO!?{Q&jO'#D}OOQO'#Hw'#HwO#GrQ&jO,5:hOOQ!LS,5:h,5:hO#GyQ&jO'#D}O#H[Q&jO'#D}O#HcQ&jO'#EYO#HfQ&jO'#ETO#HsQ&jO'#ETO!?{Q&jO'#ETO#IWQWO1G0PO#I]Q`O1G0POOQ!LS1G0P1G0PO){QYO1G0POITQWO1G0POOQ!LS1G0a1G0aO:^QWO1G0aO!,rQpO1G0aO!,zQ#tO1G0aO#IdQ!LdO1G5SO){QYO1G5SO#ItQ!LYO1G5SO#JVQWO1G5RO7VQWO,5>fOOQO,5>f,5>fO#J_QWO,5>fOOQO-E;x-E;xO#JVQWO1G5RO#JmQ!LdO,59jO#LlQ!LdO,5k,5>kO$(]QWO,5>kOOQ!LS1G2P1G2PP$(bQWO'#IPPOQ!LS-E;}-E;}O$)RQ#tO1G2[O$)tQ#tO1G2^O$*OQ#tO1G2`OOQ!LS1G1x1G1xO$*VQWO'#IOO$*eQWO,5?sO$*eQWO,5?sO$*mQWO,5?sO$*xQWO,5?sOOQO1G1z1G1zO$+WQ#tO1G1yO$+hQWO'#IQO$+xQWO,5?tOITQWO,5?tO$,QQ`O,5?tOOQ!LS1G1}1G1}O5iQ!LYO,5n,5>nOOQO-Ev,5>vOOQO-Ep,5>pOOQ!LQ-Er,5>rOOQO-E`,5>`OOQO-E;r-E;rOOQO,5>e,5>eOOQO-E;w-E;wO!,rQpO1G/iO:^QWO,5:iOOQO,5:o,5:oO){QYO,5:oO$9pQ!LYO,5:oO$9{Q!LYO,5:oO!,rQpO,5:iOOQO-E;u-E;uOOQ!LS1G0S1G0SO!?{Q&jO,5:iO$:ZQ&jO,5:iO$:lQ!LrO,5:oO$;WQ&jO,5:iO!?{Q&jO,5:oOOQO,5:t,5:tO$;_Q&jO,5:oO$;lQ!LYO,5:oOOQ!LS7+%k7+%kO#IWQWO7+%kO#I]Q`O7+%kOOQ!LS7+%{7+%{O:^QWO7+%{O!,rQpO7+%{O$lQ!LdO1G2^O$@nQ!LdO1G1yO$BvQ#tO,5>aOOQO-E;s-E;sO$CQQbO,5>bO){QYO,5>bOOQO-E;t-E;tO$C[QWO1G5OO$CdQ7^O1G0bO$EkQ7^O1G0mO$ErQ7^O1G0mO$GsQ7^O1G0mO$GzQ7^O1G0mO$IoQ7^O1G0mO$JSQ7^O1G0mO$LaQ7^O1G0mO$LhQ7^O1G0mO$NiQ7^O1G0mO$NpQ7^O1G0mO%!eQ7^O1G0mO%!xQ!LdO<iOOOO7+'T7+'TOOOS1G/R1G/ROOQ!LS1G4V1G4VOJdQWO7+'zO%'rQWO,5>jO5qQWO,5>jOOQO-E;|-E;|O%(QQWO1G5_O%(QQWO1G5_O%(YQWO1G5_O%(eQ`O,5>lO%(oQWO,5>lOITQWO,5>lOOQO-Eu,5>uO%,RQWO,5>uO%,WQWO,5>uOOQO-EtOOQO-ERQ#tO<cQWO1G4UO%>nQWO1G4UO%>|QWO7+*yO%>|QWO7+*yOITQWO1G4WO%?UQ`O1G4WO%?`QWO7+*zOOQO7+'o7+'oO5iQ!LYO7+'oOOQO7+'n7+'nO$,[QWO7+'pO%?hQ`O7+'pOOQO7+'t7+'tO5iQ!LYO7+'nO$,[QWO7+'oO%?oQWO7+'pOITQWO7+'pO#5TQWO7+'oO%?tQ#tO<oOOQO-EqOOQO-E{AN>{OOQOAN>uAN>uO%0}Q!LdOAN>{O:^QWOAN>uO){QYOAN>{O!,rQpOAN>uO&(PQ!LYOAN>{O&([Q7^O<^O!O&OO~Ox&RO!W&]O!X&UO!Y&UO'[$bO~O]&SOk&SO!Q&VO'e&PO!S'iP!S'tP~P@aO!O'qX!R'qX!]'qX!c'qX'n'qX~O!{'qX#W#PX!S'qX~PAYO!{&^O!O'sX!R'sX~O!R&_O!O'rX~O!O&bO~O!{#eO~PAYOS&fO!T&cO!o&eO'Z$`O~Oc&kO!d$XO'Z$`O~Ou$nO!d$mO~O!S&lO~P`Ou!{Ov!{Ox!|O!b!yO!d!zO'dQOP!faZ!faj!fa!R!fa!a!fa!j!fa#[!fa#]!fa#^!fa#_!fa#`!fa#a!fa#b!fa#c!fa#e!fa#g!fa#i!fa#j!fa'n!fa'u!fa'v!fa~O_!fa'U!fa!O!fa!c!fan!fa!T!fa%Q!fa!]!fa~PCcO!c&mO~O!]!wO!{&oO'n&nO!R'pX_'pX'U'pX~O!c'pX~PE{O!R&sO!c'oX~O!c&uO~Ox$tO!T$uO#V&vO'Z$`O~OPTOQTO]cOb!kOc!jOhcOjTOkcOlcOqTOsTOxRO{cO|cO}cO!TSO!_kO!dUO!gTO!hTO!iTO!jTO!kTO!n!iO#t!lO#x^O'Z9YO'dQO'mYO'zaO~O]#qOh$OOj#rOk#qOl#qOq$POs9lOx#xO!T#yO!_:oO!d#vO#V9rO#t$TO$_9nO$a9pO$d$UO'Z&zO'd#sO~O#W&|O~O]#qOh$OOj#rOk#qOl#qOq$POs$QOx#xO!T#yO!_$VO!d#vO#V$WO#t$TO$_$RO$a$SO$d$UO'Z&zO'd#sO~O'_'kP~PJdO!Q'QO!c'lP~P){O'e'SO'mYO~OP9VOQ9VO]cOb:mOc!jOhcOj9VOkcOlcOq9VOs9VOxRO{cO|cO}cO!T!bO!_9XO!dUO!g9VO!h9VO!i9VO!j9VO!k9VO!n!iO#t!lO#x^O'Z'bO'dQO'mYO'z:kO~O!d!zO~O!R#bO_$]a'U$]a!c$]a!O$]a!T$]a%Q$]a!]$]a~O#d'iO~PITO!]'kO!T'wX#w'wX#z'wX$R'wX~Ou'lO~P! POu'lO!T'wX#w'wX#z'wX$R'wX~O!T'nO#w'rO#z'mO$R'sO~O!Q'vO~PLXO#z#fO$R'yO~Ou$eXx$eX!b$eX'n$eX'u$eX'v$eX~OSfX!RfX!{fX'_fX'_$eX~P!!iOk'{O~OR'|O'S'}O'T(PO~Ou(ROx(SO'n#[O'u(UO'v(WO~O'_(QO~P!#rO'_(ZO~O]#qOh$OOj#rOk#qOl#qOq$POs9lOx#xO!T#yO!_:oO!d#vO#V9rO#t$TO$_9nO$a9pO$d$UO'd#sO~O!Q(_O'Z([O!c'{P~P!$aO#W(aO~O!Q(eO'Z(bO!O'|P~P!$aO_(nOj(sOx(kO!W(qO!X(jO!Y(jO!d(hO!x(rO$w(mO'[$bO'e(gO~O!S(pO~P!&XO!b!yOu'cXx'cX'n'cX'u'cX'v'cX!R'cX!{'cX~O'_'cX#m'cX~P!'TOS(vO!{(uO!R'bX'_'bX~O!R(wO'_'aX~O'Z(yO~O!d)OO~O'Z&zO~O!d(hO~Ox$tO!Q!rO!T$uO#U!uO#V!rO'Z$`O!c'oP~O!]!wO#W)SO~OP#^OZ#dOj#ROu!{Ov!{Ox!|O!a#TO!b!yO!d!zO!j#^O#[#PO#]#QO#^#QO#_#QO#`#SO#a#TO#b#TO#c#TO#e#UO#g#WO#i#YO#j#ZO'dQO'n#[O'u!}O'v#OO~O_!^a!R!^a'U!^a!O!^a!c!^an!^a!T!^a%Q!^a!]!^a~P!)fOS)[O!T&cO!o)ZO%Q)YO'`$cO~O'Z$zO'_'aP~O!])_O!T'^X_'^X'U'^X~O!d$XO'`$cO~O!d$XO'Z$`O'`$cO~O!]!wO#W&|O~O])jO%R)kO'Z)gO!S(TP~O!R)lO^(SX~O'e'SO~OZ)pO~O^)qO~O!T$kO'Z$`O'[$bO^(SP~Ox$tO!Q)vO!R&_O!T$uO'Z$`O!O'rP~O]&YOk&YO!Q)wO'e'SO!S'tP~O!R)xO_(PX'U(PX~O!{)|O'`$cO~OS*PO!T#yO'`$cO~O!T*RO~Ou*TO!TSO~O!n*YO~Oc*_O~O'Z(yO!S(RP~Oc$iO~O%RtO'Z$zO~P8tOZ*eO^*dO~OPTOQTO]cObnOcmOhcOjTOkcOlcOqTOsTOxRO{cO|cO}cO!_kO!dUO!gTO!hTO!iTO!jTO!kTO!nlO#x^O%PqO'dQO'mYO'zaO~O!T!bO#t!lO'Z9YO~P!1RO^*dO_$[O'U$[O~O_*iO#d*kO%T*kO%U*kO~P){O!d%_O~O%t*pO~O!T*rO~O&U*uO&V*tOP&SaQ&SaX&Sa]&Sa_&Sab&Sac&Sah&Saj&Sak&Sal&Saq&Sas&Sax&Sa{&Sa|&Sa}&Sa!T&Sa!_&Sa!d&Sa!g&Sa!h&Sa!i&Sa!j&Sa!k&Sa!n&Sa#d&Sa#t&Sa#x&Sa%P&Sa%R&Sa%T&Sa%U&Sa%X&Sa%Z&Sa%^&Sa%_&Sa%a&Sa%n&Sa%t&Sa%v&Sa%x&Sa%z&Sa%}&Sa&T&Sa&X&Sa&Z&Sa&]&Sa&_&Sa&a&Sa'Q&Sa'Z&Sa'd&Sa'm&Sa'z&Sa!S&Sa%{&Sa`&Sa&Q&Sa~O'Z*xO~On*{O~O!O&ga!R&ga~P!)fO!Q+PO!O&gX!R&gX~P){O!R%yO!O'ha~O!O'ha~P>^O!R&_O!O'ra~O!RwX!R!ZX!SwX!S!ZX!]wX!]!ZX!d!ZX!{wX'`!ZX~O!]+UO!{+TO!R#TX!R'jX!S#TX!S'jX!]'jX!d'jX'`'jX~O!]+WO!d$XO'`$cO!R!VX!S!VX~O]&QOk&QOx&RO'e(gO~OP9VOQ9VO]cOb:mOc!jOhcOj9VOkcOlcOq9VOs9VOxRO{cO|cO}cO!T!bO!_9XO!dUO!g9VO!h9VO!i9VO!j9VO!k9VO!n!iO#t!lO#x^O'dQO'mYO'z:kO~O'Z9vO~P!;^O!R+[O!S'iX~O!S+^O~O!]+UO!{+TO!R#TX!S#TX~O!R+_O!S'tX~O!S+aO~O]&QOk&QOx&RO'[$bO'e(gO~O!X+bO!Y+bO~P!>[Ox$tO!Q+dO!T$uO'Z$`O!O&lX!R&lX~O_+hO!W+kO!X+gO!Y+gO!r+oO!s+mO!t+nO!u+lO!x+pO'[$bO'e(gO'm+eO~O!S+jO~P!?]OS+uO!T&cO!o+tO~O!{+{O!R'pa!c'pa_'pa'U'pa~O!]!wO~P!@gO!R&sO!c'oa~Ox$tO!Q,OO!T$uO#U,QO#V,OO'Z$`O!R&nX!c&nX~O_#Oi!R#Oi'U#Oi!O#Oi!c#Oin#Oi!T#Oi%Q#Oi!]#Oi~P!)fO#W!za!R!za!c!za!{!za!T!za_!za'U!za!O!za~P!#rO#W'cXP'cXZ'cX_'cXj'cXv'cX!a'cX!d'cX!j'cX#['cX#]'cX#^'cX#_'cX#`'cX#a'cX#b'cX#c'cX#e'cX#g'cX#i'cX#j'cX'U'cX'd'cX!c'cX!O'cX!T'cXn'cX%Q'cX!]'cX~P!'TO!R,ZO'_'kX~P!#rO'_,]O~O!R,^O!c'lX~P!)fO!c,aO~O!O,bO~OP#^Ou!{Ov!{Ox!|O!b!yO!d!zO!j#^O'dQOZ#Zi_#Zij#Zi!R#Zi!a#Zi#]#Zi#^#Zi#_#Zi#`#Zi#a#Zi#b#Zi#c#Zi#e#Zi#g#Zi#i#Zi#j#Zi'U#Zi'n#Zi'u#Zi'v#Zi!O#Zi!c#Zin#Zi!T#Zi%Q#Zi!]#Zi~O#[#Zi~P!EtO#[#PO~P!EtOP#^Ou!{Ov!{Ox!|O!b!yO!d!zO!j#^O#[#PO#]#QO#^#QO#_#QO'dQOZ#Zi_#Zi!R#Zi!a#Zi#`#Zi#a#Zi#b#Zi#c#Zi#e#Zi#g#Zi#i#Zi#j#Zi'U#Zi'n#Zi'u#Zi'v#Zi!O#Zi!c#Zin#Zi!T#Zi%Q#Zi!]#Zi~Oj#Zi~P!H`Oj#RO~P!H`OP#^Oj#ROu!{Ov!{Ox!|O!b!yO!d!zO!j#^O#[#PO#]#QO#^#QO#_#QO#`#SO'dQO_#Zi!R#Zi#e#Zi#g#Zi#i#Zi#j#Zi'U#Zi'n#Zi'u#Zi'v#Zi!O#Zi!c#Zin#Zi!T#Zi%Q#Zi!]#Zi~OZ#Zi!a#Zi#a#Zi#b#Zi#c#Zi~P!JzOZ#dO!a#TO#a#TO#b#TO#c#TO~P!JzOP#^OZ#dOj#ROu!{Ov!{Ox!|O!a#TO!b!yO!d!zO!j#^O#[#PO#]#QO#^#QO#_#QO#`#SO#a#TO#b#TO#c#TO#e#UO'dQO_#Zi!R#Zi#g#Zi#i#Zi#j#Zi'U#Zi'n#Zi'v#Zi!O#Zi!c#Zin#Zi!T#Zi%Q#Zi!]#Zi~O'u#Zi~P!MrO'u!}O~P!MrOP#^OZ#dOj#ROu!{Ov!{Ox!|O!a#TO!b!yO!d!zO!j#^O#[#PO#]#QO#^#QO#_#QO#`#SO#a#TO#b#TO#c#TO#e#UO#g#WO'dQO'u!}O_#Zi!R#Zi#i#Zi#j#Zi'U#Zi'n#Zi!O#Zi!c#Zin#Zi!T#Zi%Q#Zi!]#Zi~O'v#Zi~P#!^O'v#OO~P#!^OP#^OZ#dOj#ROu!{Ov!{Ox!|O!a#TO!b!yO!d!zO!j#^O#[#PO#]#QO#^#QO#_#QO#`#SO#a#TO#b#TO#c#TO#e#UO#g#WO#i#YO'dQO'u!}O'v#OO~O_#Zi!R#Zi#j#Zi'U#Zi'n#Zi!O#Zi!c#Zin#Zi!T#Zi%Q#Zi!]#Zi~P#$xOP[XZ[Xj[Xu[Xv[Xx[X!a[X!b[X!d[X!j[X!{[X#WdX#[[X#][X#^[X#_[X#`[X#a[X#b[X#c[X#e[X#g[X#i[X#j[X#o[X'd[X'n[X'u[X'v[X!R[X!S[X~O#m[X~P#']OP#^OZ9jOj9_Ou!{Ov!{Ox!|O!a9aO!b!yO!d!zO!j#^O#[9]O#]9^O#^9^O#_9^O#`9`O#a9aO#b9aO#c9aO#e9bO#g9dO#i9fO#j9gO'dQO'n#[O'u!}O'v#OO~O#m,dO~P#)gOP'gXZ'gXj'gXu'gXv'gXx'gX!a'gX!b'gX!d'gX!j'gX#['gX#]'gX#^'gX#_'gX#`'gX#a'gX#b'gX#e'gX#g'gX#i'gX#j'gX'd'gX'n'gX'u'gX'v'gX!R'gX~O!{9kO#o9kO#c'gX#m'gX!S'gX~P#+bO_&qa!R&qa'U&qa!c&qan&qa!O&qa!T&qa%Q&qa!]&qa~P!)fOP#ZiZ#Zi_#Zij#Ziv#Zi!R#Zi!a#Zi!b#Zi!d#Zi!j#Zi#[#Zi#]#Zi#^#Zi#_#Zi#`#Zi#a#Zi#b#Zi#c#Zi#e#Zi#g#Zi#i#Zi#j#Zi'U#Zi'd#Zi!O#Zi!c#Zin#Zi!T#Zi%Q#Zi!]#Zi~P!#rO_#ni!R#ni'U#ni!O#ni!c#nin#ni!T#ni%Q#ni!]#ni~P!)fO#z,fO~O#z,gO~O!]'kO!{,hO!T$OX#w$OX#z$OX$R$OX~O!Q,iO~O!T'nO#w,kO#z'mO$R,lO~O!R9hO!S'fX~P#)gO!S,mO~O$R,oO~OR'|O'S'}O'T,rO~O],uOk,uO!O,vO~O!RdX!]dX!cdX!c$eX'ndX~P!!iO!c,|O~P!#rO!R,}O!]!wO'n&nO!c'{X~O!c-SO~O!O$eX!R$eX!]$lX~P!!iO!R-UO!O'|X~P!#rO!]-WO~O!O-YO~O!Q(_O'Z$`O!c'{P~Oj-^O!]!wO!d$XO'`$cO'n&nO~O!])_O~O!S-dO~P!&XO!X-eO!Y-eO'[$bO'e(gO~Ox-gO'e(gO~O!x-hO~O'Z$zO!R&vX'_&vX~O!R(wO'_'aa~Ou-mOv-mOx-nO'nra'ura'vra!Rra!{ra~O'_ra#mra~P#6fOu(ROx(SO'n$^a'u$^a'v$^a!R$^a!{$^a~O'_$^a#m$^a~P#7[Ou(ROx(SO'n$`a'u$`a'v$`a!R$`a!{$`a~O'_$`a#m$`a~P#7}O]-oO~O#W-pO~O'_$na!R$na#m$na!{$na~P!#rO#W-sO~OS-|O!T&cO!o-{O%Q-zO~O'_-}O~O]#qOj#rOk#qOl#qOq$POs9lOx#xO!T#yO!_:oO!d#vO#V9rO#t$TO$_9nO$a9pO$d$UO'd#sO~Oh.PO'Z.OO~P#9tO!])_O!T'^a_'^a'U'^a~O#W.VO~OZ[X!RdX!SdX~O!R.WO!S(TX~O!S.YO~OZ.ZO~O].]O'Z)gO~O!T$kO'Z$`O^'OX!R'OX~O!R)lO^(Sa~O!c.`O~P!)fO].bO~OZ.cO~O^.dO~OS-|O!T&cO!o-{O%Q-zO'`$cO~O!R)xO_(Pa'U(Pa~O!{.jO~OS.mO!T#yO~O'e'SO!S(QP~OS.wO!T.sO!o.vO%Q.uO'`$cO~OZ/RO!R/PO!S(RX~O!S/SO~O^/UO_$[O'U$[O~O]/VO~O]/WO'Z(yO~O#c/XO%r/YO~P0zO!{#eO#c/XO%r/YO~O_/ZO~P){O_/]O~O%{/aOP%yiQ%yiX%yi]%yi_%yib%yic%yih%yij%yik%yil%yiq%yis%yix%yi{%yi|%yi}%yi!T%yi!_%yi!d%yi!g%yi!h%yi!i%yi!j%yi!k%yi!n%yi#d%yi#t%yi#x%yi%P%yi%R%yi%T%yi%U%yi%X%yi%Z%yi%^%yi%_%yi%a%yi%n%yi%t%yi%v%yi%x%yi%z%yi%}%yi&T%yi&X%yi&Z%yi&]%yi&_%yi&a%yi'Q%yi'Z%yi'd%yi'm%yi'z%yi!S%yi`%yi&Q%yi~O`/gO!S/eO&Q/fO~P`O!TSO!d/jO~O!R#bOn$]a~O!O&gi!R&gi~P!)fO!R%yO!O'hi~O!R&_O!O'ri~O!O/nO~O!R!Va!S!Va~P#)gO]&QOk&QO!Q/tO'e(gO!R&hX!S&hX~P@aO!R+[O!S'ia~O]&YOk&YO!Q)wO'e'SO!R&mX!S&mX~O!R+_O!S'ta~O!O'si!R'si~P!)fO_$[O!]!wO!d$XO!j0OO!{/|O'U$[O'`$cO'n&nO~O!S0RO~P!?]O!X0SO!Y0SO'[$bO'e(gO'm+eO~O!W0TO~P#GyO!TSO!W0TO!u0VO!x0WO~P#GyO!W0TO!s0YO!t0YO!u0VO!x0WO~P#GyO!T&cO~O!T&cO~P!#rO!R'pi!c'pi_'pi'U'pi~P!)fO!{0cO!R'pi!c'pi_'pi'U'pi~O!R&sO!c'oi~Ox$tO!T$uO#V0eO'Z$`O~O#WraPraZra_rajra!ara!bra!dra!jra#[ra#]ra#^ra#_ra#`ra#ara#bra#cra#era#gra#ira#jra'Ura'dra!cra!Ora!Tranra%Qra!]ra~P#6fO#W$^aP$^aZ$^a_$^aj$^av$^a!a$^a!b$^a!d$^a!j$^a#[$^a#]$^a#^$^a#_$^a#`$^a#a$^a#b$^a#c$^a#e$^a#g$^a#i$^a#j$^a'U$^a'd$^a!c$^a!O$^a!T$^an$^a%Q$^a!]$^a~P#7[O#W$`aP$`aZ$`a_$`aj$`av$`a!a$`a!b$`a!d$`a!j$`a#[$`a#]$`a#^$`a#_$`a#`$`a#a$`a#b$`a#c$`a#e$`a#g$`a#i$`a#j$`a'U$`a'd$`a!c$`a!O$`a!T$`an$`a%Q$`a!]$`a~P#7}O#W$naP$naZ$na_$naj$nav$na!R$na!a$na!b$na!d$na!j$na#[$na#]$na#^$na#_$na#`$na#a$na#b$na#c$na#e$na#g$na#i$na#j$na'U$na'd$na!c$na!O$na!T$na!{$nan$na%Q$na!]$na~P!#rO_#Oq!R#Oq'U#Oq!O#Oq!c#Oqn#Oq!T#Oq%Q#Oq!]#Oq~P!)fO!R&iX'_&iX~PJdO!R,ZO'_'ka~O!Q0mO!R&jX!c&jX~P){O!R,^O!c'la~O!R,^O!c'la~P!)fO#m!fa!S!fa~PCcO#m!^a!R!^a!S!^a~P#)gO!T1QO#x^O$P1RO~O!S1VO~On1WO~P!#rO_$Yq!R$Yq'U$Yq!O$Yq!c$Yqn$Yq!T$Yq%Q$Yq!]$Yq~P!)fO!O1XO~O],uOk,uO~Ou(ROx(SO'v(WO'n$xi'u$xi!R$xi!{$xi~O'_$xi#m$xi~P$(jOu(ROx(SO'n$zi'u$zi'v$zi!R$zi!{$zi~O'_$zi#m$zi~P$)]O#m1YO~P!#rO!Q1[O'Z$`O!R&rX!c&rX~O!R,}O!c'{a~O!R,}O!]!wO!c'{a~O!R,}O!]!wO'n&nO!c'{a~O'_$gi!R$gi#m$gi!{$gi~P!#rO!Q1cO'Z(bO!O&tX!R&tX~P!$aO!R-UO!O'|a~O!R-UO!O'|a~P!#rO!]!wO~O!]!wO#c1mO~Oj1qO!]!wO'n&nO~O!R'bi'_'bi~P!#rO!{1tO!R'bi'_'bi~P!#rO!c1wO~O_$Zq!R$Zq'U$Zq!O$Zq!c$Zqn$Zq!T$Zq%Q$Zq!]$Zq~P!)fO!R1{O!T'}X~P!#rO!T&cO%Q2OO~O!T&cO%Q2OO~P!#rO!T$eX$u[X_$eX'U$eX~P!!iO$u2SOugXxgX!TgX'ngX'ugX'vgX_gX'UgX~O$u2SO~O]2YO%R2ZO'Z)gO!R&}X!S&}X~O!R.WO!S(Ta~OZ2_O~O^2`O~O]2cO~OS2eO!T&cO!o2dO%Q2OO~O_$[O'U$[O~P!#rO!T#yO~P!#rO!R2jO!{2lO!S(QX~O!S2mO~Ox(kO!W2vO!X2oO!Y2oO!r2uO!s2tO!t2tO!x2sO'[$bO'e(gO'm+eO~O!S2rO~P$1nOS2}O!T.sO!o2|O%Q2{O~OS2}O!T.sO!o2|O%Q2{O'`$cO~O'Z(yO!R&|X!S&|X~O!R/PO!S(Ra~O]3XO'e3WO~O]3YO~O^3[O~O!c3_O~P){O_3aO~O_3aO~P){O#c3cO%r3dO~PE{O`/gO!S3hO&Q/fO~P`O!]3jO~O&V3kOP&SqQ&SqX&Sq]&Sq_&Sqb&Sqc&Sqh&Sqj&Sqk&Sql&Sqq&Sqs&Sqx&Sq{&Sq|&Sq}&Sq!T&Sq!_&Sq!d&Sq!g&Sq!h&Sq!i&Sq!j&Sq!k&Sq!n&Sq#d&Sq#t&Sq#x&Sq%P&Sq%R&Sq%T&Sq%U&Sq%X&Sq%Z&Sq%^&Sq%_&Sq%a&Sq%n&Sq%t&Sq%v&Sq%x&Sq%z&Sq%}&Sq&T&Sq&X&Sq&Z&Sq&]&Sq&_&Sq&a&Sq'Q&Sq'Z&Sq'd&Sq'm&Sq'z&Sq!S&Sq%{&Sq`&Sq&Q&Sq~O!R#Ti!S#Ti~P#)gO!{3mO!R#Ti!S#Ti~O!R!Vi!S!Vi~P#)gO_$[O!{3tO'U$[O~O_$[O!]!wO!{3tO'U$[O~O!X3xO!Y3xO'[$bO'e(gO'm+eO~O_$[O!]!wO!d$XO!j3yO!{3tO'U$[O'`$cO'n&nO~O!W3zO~P$:ZO!W3zO!u3}O!x4OO~P$:ZO_$[O!]!wO!j3yO!{3tO'U$[O'n&nO~O!R'pq!c'pq_'pq'U'pq~P!)fO!R&sO!c'oq~O#W$xiP$xiZ$xi_$xij$xiv$xi!a$xi!b$xi!d$xi!j$xi#[$xi#]$xi#^$xi#_$xi#`$xi#a$xi#b$xi#c$xi#e$xi#g$xi#i$xi#j$xi'U$xi'd$xi!c$xi!O$xi!T$xin$xi%Q$xi!]$xi~P$(jO#W$ziP$ziZ$zi_$zij$ziv$zi!a$zi!b$zi!d$zi!j$zi#[$zi#]$zi#^$zi#_$zi#`$zi#a$zi#b$zi#c$zi#e$zi#g$zi#i$zi#j$zi'U$zi'd$zi!c$zi!O$zi!T$zin$zi%Q$zi!]$zi~P$)]O#W$giP$giZ$gi_$gij$giv$gi!R$gi!a$gi!b$gi!d$gi!j$gi#[$gi#]$gi#^$gi#_$gi#`$gi#a$gi#b$gi#c$gi#e$gi#g$gi#i$gi#j$gi'U$gi'd$gi!c$gi!O$gi!T$gi!{$gin$gi%Q$gi!]$gi~P!#rO!R&ia'_&ia~P!#rO!R&ja!c&ja~P!)fO!R,^O!c'li~O#m#Oi!R#Oi!S#Oi~P#)gOP#^Ou!{Ov!{Ox!|O!b!yO!d!zO!j#^O'dQOZ#Zij#Zi!a#Zi#]#Zi#^#Zi#_#Zi#`#Zi#a#Zi#b#Zi#c#Zi#e#Zi#g#Zi#i#Zi#j#Zi#m#Zi'n#Zi'u#Zi'v#Zi!R#Zi!S#Zi~O#[#Zi~P$CqO#[9]O~P$CqOP#^Ou!{Ov!{Ox!|O!b!yO!d!zO!j#^O#[9]O#]9^O#^9^O#_9^O'dQOZ#Zi!a#Zi#`#Zi#a#Zi#b#Zi#c#Zi#e#Zi#g#Zi#i#Zi#j#Zi#m#Zi'n#Zi'u#Zi'v#Zi!R#Zi!S#Zi~Oj#Zi~P$EyOj9_O~P$EyOP#^Oj9_Ou!{Ov!{Ox!|O!b!yO!d!zO!j#^O#[9]O#]9^O#^9^O#_9^O#`9`O'dQO#e#Zi#g#Zi#i#Zi#j#Zi#m#Zi'n#Zi'u#Zi'v#Zi!R#Zi!S#Zi~OZ#Zi!a#Zi#a#Zi#b#Zi#c#Zi~P$HROZ9jO!a9aO#a9aO#b9aO#c9aO~P$HROP#^OZ9jOj9_Ou!{Ov!{Ox!|O!a9aO!b!yO!d!zO!j#^O#[9]O#]9^O#^9^O#_9^O#`9`O#a9aO#b9aO#c9aO#e9bO'dQO#g#Zi#i#Zi#j#Zi#m#Zi'n#Zi'v#Zi!R#Zi!S#Zi~O'u#Zi~P$JgO'u!}O~P$JgOP#^OZ9jOj9_Ou!{Ov!{Ox!|O!a9aO!b!yO!d!zO!j#^O#[9]O#]9^O#^9^O#_9^O#`9`O#a9aO#b9aO#c9aO#e9bO#g9dO'dQO'u!}O#i#Zi#j#Zi#m#Zi'n#Zi!R#Zi!S#Zi~O'v#Zi~P$LoO'v#OO~P$LoOP#^OZ9jOj9_Ou!{Ov!{Ox!|O!a9aO!b!yO!d!zO!j#^O#[9]O#]9^O#^9^O#_9^O#`9`O#a9aO#b9aO#c9aO#e9bO#g9dO#i9fO'dQO'u!}O'v#OO~O#j#Zi#m#Zi'n#Zi!R#Zi!S#Zi~P$NwO_#ky!R#ky'U#ky!O#ky!c#kyn#ky!T#ky%Q#ky!]#ky~P!)fOP#ZiZ#Zij#Ziv#Zi!a#Zi!b#Zi!d#Zi!j#Zi#[#Zi#]#Zi#^#Zi#_#Zi#`#Zi#a#Zi#b#Zi#c#Zi#e#Zi#g#Zi#i#Zi#j#Zi#m#Zi'd#Zi!R#Zi!S#Zi~P!#rO!b!yOP'cXZ'cXj'cXu'cXv'cXx'cX!a'cX!d'cX!j'cX#['cX#]'cX#^'cX#_'cX#`'cX#a'cX#b'cX#c'cX#e'cX#g'cX#i'cX#j'cX#m'cX'd'cX'n'cX'u'cX'v'cX!R'cX!S'cX~O#m#ni!R#ni!S#ni~P#)gO!S4`O~O!R&qa!S&qa~P#)gO!]!wO'n&nO!R&ra!c&ra~O!R,}O!c'{i~O!R,}O!]!wO!c'{i~O!O&ta!R&ta~P!#rO!]4gO~O!R-UO!O'|i~P!#rO!R-UO!O'|i~O!O4mO~O!]!wO#c4sO~Oj4tO!]!wO'n&nO~O!O4vO~O'_$iq!R$iq#m$iq!{$iq~P!#rO_$Zy!R$Zy'U$Zy!O$Zy!c$Zyn$Zy!T$Zy%Q$Zy!]$Zy~P!)fO!R1{O!T'}a~O!T&cO%Q4{O~O!T&cO%Q4{O~P!#rO_#Oy!R#Oy'U#Oy!O#Oy!c#Oyn#Oy!T#Oy%Q#Oy!]#Oy~P!)fOZ5OO~O]5QO'Z)gO~O!R.WO!S(Ti~O]5TO~O^5UO~O'e'SO!R&yX!S&yX~O!R2jO!S(Qa~O!S5cO~P$1nOx-gO'e(gO'm+eO~O!W5fO!X5eO!Y5eO!x0WO'[$bO'e(gO'm+eO~O!s5gO!t5gO~P%-iO!X5eO!Y5eO'[$bO'e(gO'm+eO~O!T.sO~O!T.sO%Q5iO~O!T.sO%Q5iO~P!#rOS5nO!T.sO!o5mO%Q5iO~OZ5sO!R&|a!S&|a~O!R/PO!S(Ri~O]5vO~O!c5wO~O!c5xO~O!c5yO~O!c5yO~P){O_5{O~O!]6OO~O!c6QO~O!R'si!S'si~P#)gO_$[O'U$[O~P!)fO_$[O!{6VO'U$[O~O_$[O!]!wO!{6VO'U$[O~O!X6[O!Y6[O'[$bO'e(gO'm+eO~O_$[O!]!wO!j6]O!{6VO'U$[O'n&nO~O!d$XO'`$cO~P%2TO!W6^O~P%1rO!R'py!c'py_'py'U'py~P!)fO#W$iqP$iqZ$iq_$iqj$iqv$iq!R$iq!a$iq!b$iq!d$iq!j$iq#[$iq#]$iq#^$iq#_$iq#`$iq#a$iq#b$iq#c$iq#e$iq#g$iq#i$iq#j$iq'U$iq'd$iq!c$iq!O$iq!T$iq!{$iqn$iq%Q$iq!]$iq~P!#rO!R&ji!c&ji~P!)fO#m#Oq!R#Oq!S#Oq~P#)gOu-mOv-mOx-nOPraZrajra!ara!bra!dra!jra#[ra#]ra#^ra#_ra#`ra#ara#bra#cra#era#gra#ira#jra#mra'dra'nra'ura'vra!Rra!Sra~Ou(ROx(SOP$^aZ$^aj$^av$^a!a$^a!b$^a!d$^a!j$^a#[$^a#]$^a#^$^a#_$^a#`$^a#a$^a#b$^a#c$^a#e$^a#g$^a#i$^a#j$^a#m$^a'd$^a'n$^a'u$^a'v$^a!R$^a!S$^a~Ou(ROx(SOP$`aZ$`aj$`av$`a!a$`a!b$`a!d$`a!j$`a#[$`a#]$`a#^$`a#_$`a#`$`a#a$`a#b$`a#c$`a#e$`a#g$`a#i$`a#j$`a#m$`a'd$`a'n$`a'u$`a'v$`a!R$`a!S$`a~OP$naZ$naj$nav$na!a$na!b$na!d$na!j$na#[$na#]$na#^$na#_$na#`$na#a$na#b$na#c$na#e$na#g$na#i$na#j$na#m$na'd$na!R$na!S$na~P!#rO#m$Yq!R$Yq!S$Yq~P#)gO#m$Zq!R$Zq!S$Zq~P#)gO!S6hO~O'_$|y!R$|y#m$|y!{$|y~P!#rO!]!wO!R&ri!c&ri~O!]!wO'n&nO!R&ri!c&ri~O!R,}O!c'{q~O!O&ti!R&ti~P!#rO!R-UO!O'|q~O!O6oO~P!#rO!O6oO~O!R'by'_'by~P!#rO!R&wa!T&wa~P!#rO!T$tq_$tq'U$tq~P!#rOZ6wO~O!R.WO!S(Tq~O]6zO~O!T&cO%Q6{O~O!T&cO%Q6{O~P!#rO!{6|O!R&ya!S&ya~O!R2jO!S(Qi~P#)gO!X7SO!Y7SO'[$bO'e(gO'm+eO~O!W7UO!x4OO~P%ArO!T.sO%Q7XO~O!T.sO%Q7XO~P!#rO]7`O'e7_O~O!R/PO!S(Rq~O!c7bO~O!c7bO~P){O!c7dO~O!c7eO~O!R#Ty!S#Ty~P#)gO_$[O!{7kO'U$[O~O_$[O!]!wO!{7kO'U$[O~O!X7nO!Y7nO'[$bO'e(gO'm+eO~O_$[O!]!wO!j7oO!{7kO'U$[O'n&nO~O#W$|yP$|yZ$|y_$|yj$|yv$|y!R$|y!a$|y!b$|y!d$|y!j$|y#[$|y#]$|y#^$|y#_$|y#`$|y#a$|y#b$|y#c$|y#e$|y#g$|y#i$|y#j$|y'U$|y'd$|y!c$|y!O$|y!T$|y!{$|yn$|y%Q$|y!]$|y~P!#rO#m#ky!R#ky!S#ky~P#)gOP$giZ$gij$giv$gi!a$gi!b$gi!d$gi!j$gi#[$gi#]$gi#^$gi#_$gi#`$gi#a$gi#b$gi#c$gi#e$gi#g$gi#i$gi#j$gi#m$gi'd$gi!R$gi!S$gi~P!#rOu(ROx(SO'v(WOP$xiZ$xij$xiv$xi!a$xi!b$xi!d$xi!j$xi#[$xi#]$xi#^$xi#_$xi#`$xi#a$xi#b$xi#c$xi#e$xi#g$xi#i$xi#j$xi#m$xi'd$xi'n$xi'u$xi!R$xi!S$xi~Ou(ROx(SOP$ziZ$zij$ziv$zi!a$zi!b$zi!d$zi!j$zi#[$zi#]$zi#^$zi#_$zi#`$zi#a$zi#b$zi#c$zi#e$zi#g$zi#i$zi#j$zi#m$zi'd$zi'n$zi'u$zi'v$zi!R$zi!S$zi~O#m$Zy!R$Zy!S$Zy~P#)gO#m#Oy!R#Oy!S#Oy~P#)gO!]!wO!R&rq!c&rq~O!R,}O!c'{y~O!O&tq!R&tq~P!#rO!O7uO~P!#rO!R.WO!S(Ty~O!R2jO!S(Qq~O!X8RO!Y8RO'[$bO'e(gO'm+eO~O!T.sO%Q8UO~O!T.sO%Q8UO~P!#rO!c8XO~O&V8YOP&S!ZQ&S!ZX&S!Z]&S!Z_&S!Zb&S!Zc&S!Zh&S!Zj&S!Zk&S!Zl&S!Zq&S!Zs&S!Zx&S!Z{&S!Z|&S!Z}&S!Z!T&S!Z!_&S!Z!d&S!Z!g&S!Z!h&S!Z!i&S!Z!j&S!Z!k&S!Z!n&S!Z#d&S!Z#t&S!Z#x&S!Z%P&S!Z%R&S!Z%T&S!Z%U&S!Z%X&S!Z%Z&S!Z%^&S!Z%_&S!Z%a&S!Z%n&S!Z%t&S!Z%v&S!Z%x&S!Z%z&S!Z%}&S!Z&T&S!Z&X&S!Z&Z&S!Z&]&S!Z&_&S!Z&a&S!Z'Q&S!Z'Z&S!Z'd&S!Z'm&S!Z'z&S!Z!S&S!Z%{&S!Z`&S!Z&Q&S!Z~O_$[O!{8_O'U$[O~O_$[O!]!wO!{8_O'U$[O~OP$iqZ$iqj$iqv$iq!a$iq!b$iq!d$iq!j$iq#[$iq#]$iq#^$iq#_$iq#`$iq#a$iq#b$iq#c$iq#e$iq#g$iq#i$iq#j$iq#m$iq'd$iq!R$iq!S$iq~P!#rO!R&yq!S&yq~P#)gO_$[O!{8tO'U$[O~OP$|yZ$|yj$|yv$|y!a$|y!b$|y!d$|y!j$|y#[$|y#]$|y#^$|y#_$|y#`$|y#a$|y#b$|y#c$|y#e$|y#g$|y#i$|y#j$|y#m$|y'd$|y!R$|y!S$|y~P!#rOn'fX~P.jOn[X!O[X!c[X%r[X!T[X%Q[X!][X~P$zO!]dX!c[X!cdX'ndX~P;aOP9VOQ9VO]cOb:mOc!jOhcOj9VOkcOlcOq9VOs9VOxRO{cO|cO}cO!TSO!_9XO!dUO!g9VO!h9VO!i9VO!j9VO!k9VO!n!iO#t!lO#x^O'Z'bO'dQO'mYO'z:kO~O!R9hO!S$]a~O]#qOh$OOj#rOk#qOl#qOq$POs9mOx#xO!T#yO!_:pO!d#vO#V9sO#t$TO$_9oO$a9qO$d$UO'Z&zO'd#sO~O#d'iO~P&-UO!S[X!SdX~P;aO#W9[O~O!]!wO#W9[O~O!{9kO~O#c9aO~O!{9tO!R'sX!S'sX~O!{9kO!R'qX!S'qX~O#W9uO~O'_9wO~P!#rO#W9|O~O#W9}O~O!]!wO#W:OO~O!]!wO#W9uO~O#m:PO~P#)gO#W:QO~O#W:RO~O#W:SO~O#W:TO~O#m:UO~P!#rO#m:VO~P!#rO#x~!b!r!t!u#U#V'z$_$a$d$u%P%Q%R%X%Z%^%_%a%c~UT#x'z#]}'W'X#z'W'Z'e~",goto:"#Ed(XPPPPPPPP(YP(jP*^PPPP-uPP.[3n5b5uP5uPPP5uP7c5uP5uP7gPP7lP8Qk|}?O}!O>k!O!P?`!P!QCl!Q!R!0[!R![!1q![!]!7s!]!^!8V!^!_!8g!_!`!9d!`!a!:[!a!b!U#R#S2`#S#T!>i#T#o2`#o#p!>y#p#q!?O#q#r!?f#r#s!?x#s$f%T$f$g%c$g#BY2`#BY#BZ!@Y#BZ$IS2`$IS$I_!@Y$I_$I|2`$I|$I}!Bq$I}$JO!Bq$JO$JT2`$JT$JU!@Y$JU$KV2`$KV$KW!@Y$KW&FU2`&FU&FV!@Y&FV?HT2`?HT?HU!@Y?HU~2`W%YR$UWO!^%T!_#o%T#p~%T,T%jg$UW'W+{OX%TXY%cYZ%TZ[%c[p%Tpq%cq!^%T!_#o%T#p$f%T$f$g%c$g#BY%T#BY#BZ%c#BZ$IS%T$IS$I_%c$I_$JT%T$JT$JU%c$JU$KV%T$KV$KW%c$KW&FU%T&FU&FV%c&FV?HT%T?HT?HU%c?HU~%T,T'YR$UW'X+{O!^%T!_#o%T#p~%T$T'jS$UW!j#{O!^%T!_!`'v!`#o%T#p~%T$O'}S#e#v$UWO!^%T!_!`(Z!`#o%T#p~%T$O(bR#e#v$UWO!^%T!_#o%T#p~%T'u(rZ$UW]!ROY(kYZ)eZr(krs*rs!^(k!^!_+U!_#O(k#O#P-b#P#o(k#o#p+U#p~(k&r)jV$UWOr)ers*Ps!^)e!^!_*a!_#o)e#o#p*a#p~)e&r*WR$P&j$UWO!^%T!_#o%T#p~%T&j*dROr*ars*ms~*a&j*rO$P&j'u*{R$P&j$UW]!RO!^%T!_#o%T#p~%T'm+ZV]!ROY+UYZ*aZr+Urs+ps#O+U#O#P+w#P~+U'm+wO$P&j]!R'm+zROr+Urs,Ts~+U'm,[U$P&j]!ROY,nZr,nrs-Vs#O,n#O#P-[#P~,n!R,sU]!ROY,nZr,nrs-Vs#O,n#O#P-[#P~,n!R-[O]!R!R-_PO~,n'u-gV$UWOr(krs-|s!^(k!^!_+U!_#o(k#o#p+U#p~(k'u.VZ$P&j$UW]!ROY.xYZ%TZr.xrs/rs!^.x!^!_,n!_#O.x#O#P0S#P#o.x#o#p,n#p~.x!Z/PZ$UW]!ROY.xYZ%TZr.xrs/rs!^.x!^!_,n!_#O.x#O#P0S#P#o.x#o#p,n#p~.x!Z/yR$UW]!RO!^%T!_#o%T#p~%T!Z0XT$UWO!^.x!^!_,n!_#o.x#o#p,n#p~.xy0mZ$UWOt%Ttu1`u!^%T!_!c%T!c!}1`!}#R%T#R#S1`#S#T%T#T#o1`#p$g%T$g~1`y1g]$UW'mqOt%Ttu1`u!Q%T!Q![1`![!^%T!_!c%T!c!}1`!}#R%T#R#S1`#S#T%T#T#o1`#p$g%T$g~1`&i2k_$UW#zS'Z%k'epOt%Ttu2`u}%T}!O3j!O!Q%T!Q![2`![!^%T!_!c%T!c!}2`!}#R%T#R#S2`#S#T%T#T#o2`#p$g%T$g~2`[3q_$UW#zSOt%Ttu3ju}%T}!O3j!O!Q%T!Q![3j![!^%T!_!c%T!c!}3j!}#R%T#R#S3j#S#T%T#T#o3j#p$g%T$g~3j$O4wS#^#v$UWO!^%T!_!`5T!`#o%T#p~%T$O5[R$UW#o#vO!^%T!_#o%T#p~%T%r5lU'v%j$UWOv%Tvw6Ow!^%T!_!`5T!`#o%T#p~%T$O6VS$UW#i#vO!^%T!_!`5T!`#o%T#p~%T'u6jZ$UW]!ROY6cYZ7]Zw6cwx*rx!^6c!^!_8T!_#O6c#O#P:T#P#o6c#o#p8T#p~6c&r7bV$UWOw7]wx*Px!^7]!^!_7w!_#o7]#o#p7w#p~7]&j7zROw7wwx*mx~7w'm8YV]!ROY8TYZ7wZw8Twx+px#O8T#O#P8o#P~8T'm8rROw8Twx8{x~8T'm9SU$P&j]!ROY9fZw9fwx-Vx#O9f#O#P9}#P~9f!R9kU]!ROY9fZw9fwx-Vx#O9f#O#P9}#P~9f!R:QPO~9f'u:YV$UWOw6cwx:ox!^6c!^!_8T!_#o6c#o#p8T#p~6c'u:xZ$P&j$UW]!ROY;kYZ%TZw;kwx/rx!^;k!^!_9f!_#O;k#O#PW{!^%T!_!`5T!`#o%T#p~%T$O>_S#[#v$UWO!^%T!_!`5T!`#o%T#p~%T$u>rSj$m$UWO!^%T!_!`5T!`#o%T#p~%T&i?VR!R&a$UWO!^%T!_#o%T#p~%T&i?gVu%n$UWO!O%T!O!P?|!P!Q%T!Q![@r![!^%T!_#o%T#p~%Ty@RT$UWO!O%T!O!P@b!P!^%T!_#o%T#p~%Ty@iR!Qq$UWO!^%T!_#o%T#p~%Ty@yZ$UWkqO!Q%T!Q![@r![!^%T!_!g%T!g!hAl!h#R%T#R#S@r#S#X%T#X#YAl#Y#o%T#p~%TyAqZ$UWO{%T{|Bd|}%T}!OBd!O!Q%T!Q![CO![!^%T!_#R%T#R#SCO#S#o%T#p~%TyBiV$UWO!Q%T!Q![CO![!^%T!_#R%T#R#SCO#S#o%T#p~%TyCVV$UWkqO!Q%T!Q![CO![!^%T!_#R%T#R#SCO#S#o%T#p~%T,TCs`$UW#]#vOYDuYZ%TZzDuz{Jl{!PDu!P!Q!-e!Q!^Du!^!_Fx!_!`!.^!`!a!/]!a!}Du!}#OHq#O#PJQ#P#oDu#o#pFx#p~DuXD|[$UW}POYDuYZ%TZ!PDu!P!QEr!Q!^Du!^!_Fx!_!}Du!}#OHq#O#PJQ#P#oDu#o#pFx#p~DuXEy_$UW}PO!^%T!_#Z%T#Z#[Er#[#]%T#]#^Er#^#a%T#a#bEr#b#g%T#g#hEr#h#i%T#i#jEr#j#m%T#m#nEr#n#o%T#p~%TPF}V}POYFxZ!PFx!P!QGd!Q!}Fx!}#OG{#O#PHh#P~FxPGiU}P#Z#[Gd#]#^Gd#a#bGd#g#hGd#i#jGd#m#nGdPHOTOYG{Z#OG{#O#PH_#P#QFx#Q~G{PHbQOYG{Z~G{PHkQOYFxZ~FxXHvY$UWOYHqYZ%TZ!^Hq!^!_G{!_#OHq#O#PIf#P#QDu#Q#oHq#o#pG{#p~HqXIkV$UWOYHqYZ%TZ!^Hq!^!_G{!_#oHq#o#pG{#p~HqXJVV$UWOYDuYZ%TZ!^Du!^!_Fx!_#oDu#o#pFx#p~Du,TJs^$UW}POYJlYZKoZzJlz{NQ{!PJl!P!Q!,R!Q!^Jl!^!_!!]!_!}Jl!}#O!'|#O#P!+a#P#oJl#o#p!!]#p~Jl,TKtV$UWOzKoz{LZ{!^Ko!^!_M]!_#oKo#o#pM]#p~Ko,TL`X$UWOzKoz{LZ{!PKo!P!QL{!Q!^Ko!^!_M]!_#oKo#o#pM]#p~Ko,TMSR$UWU+{O!^%T!_#o%T#p~%T+{M`ROzM]z{Mi{~M]+{MlTOzM]z{Mi{!PM]!P!QM{!Q~M]+{NQOU+{,TNX^$UW}POYJlYZKoZzJlz{NQ{!PJl!P!Q! T!Q!^Jl!^!_!!]!_!}Jl!}#O!'|#O#P!+a#P#oJl#o#p!!]#p~Jl,T! ^_$UWU+{}PO!^%T!_#Z%T#Z#[Er#[#]%T#]#^Er#^#a%T#a#bEr#b#g%T#g#hEr#h#i%T#i#jEr#j#m%T#m#nEr#n#o%T#p~%T+{!!bY}POY!!]YZM]Zz!!]z{!#Q{!P!!]!P!Q!&x!Q!}!!]!}#O!$`#O#P!&f#P~!!]+{!#VY}POY!!]YZM]Zz!!]z{!#Q{!P!!]!P!Q!#u!Q!}!!]!}#O!$`#O#P!&f#P~!!]+{!#|UU+{}P#Z#[Gd#]#^Gd#a#bGd#g#hGd#i#jGd#m#nGd+{!$cWOY!$`YZM]Zz!$`z{!${{#O!$`#O#P!&S#P#Q!!]#Q~!$`+{!%OYOY!$`YZM]Zz!$`z{!${{!P!$`!P!Q!%n!Q#O!$`#O#P!&S#P#Q!!]#Q~!$`+{!%sTU+{OYG{Z#OG{#O#PH_#P#QFx#Q~G{+{!&VTOY!$`YZM]Zz!$`z{!${{~!$`+{!&iTOY!!]YZM]Zz!!]z{!#Q{~!!]+{!&}_}POzM]z{Mi{#ZM]#Z#[!&x#[#]M]#]#^!&x#^#aM]#a#b!&x#b#gM]#g#h!&x#h#iM]#i#j!&x#j#mM]#m#n!&x#n~M],T!(R[$UWOY!'|YZKoZz!'|z{!(w{!^!'|!^!_!$`!_#O!'|#O#P!*o#P#QJl#Q#o!'|#o#p!$`#p~!'|,T!(|^$UWOY!'|YZKoZz!'|z{!(w{!P!'|!P!Q!)x!Q!^!'|!^!_!$`!_#O!'|#O#P!*o#P#QJl#Q#o!'|#o#p!$`#p~!'|,T!*PY$UWU+{OYHqYZ%TZ!^Hq!^!_G{!_#OHq#O#PIf#P#QDu#Q#oHq#o#pG{#p~Hq,T!*tX$UWOY!'|YZKoZz!'|z{!(w{!^!'|!^!_!$`!_#o!'|#o#p!$`#p~!'|,T!+fX$UWOYJlYZKoZzJlz{NQ{!^Jl!^!_!!]!_#oJl#o#p!!]#p~Jl,T!,Yc$UW}POzKoz{LZ{!^Ko!^!_M]!_#ZKo#Z#[!,R#[#]Ko#]#^!,R#^#aKo#a#b!,R#b#gKo#g#h!,R#h#iKo#i#j!,R#j#mKo#m#n!,R#n#oKo#o#pM]#p~Ko,T!-lV$UWT+{OY!-eYZ%TZ!^!-e!^!_!.R!_#o!-e#o#p!.R#p~!-e+{!.WQT+{OY!.RZ~!.R$P!.g[$UW#o#v}POYDuYZ%TZ!PDu!P!QEr!Q!^Du!^!_Fx!_!}Du!}#OHq#O#PJQ#P#oDu#o#pFx#p~Du]!/f[#wS$UW}POYDuYZ%TZ!PDu!P!QEr!Q!^Du!^!_Fx!_!}Du!}#OHq#O#PJQ#P#oDu#o#pFx#p~Duy!0cd$UWkqO!O%T!O!P@r!P!Q%T!Q![!1q![!^%T!_!g%T!g!hAl!h#R%T#R#S!1q#S#U%T#U#V!3X#V#X%T#X#YAl#Y#b%T#b#c!2w#c#d!4m#d#l%T#l#m!5{#m#o%T#p~%Ty!1x_$UWkqO!O%T!O!P@r!P!Q%T!Q![!1q![!^%T!_!g%T!g!hAl!h#R%T#R#S!1q#S#X%T#X#YAl#Y#b%T#b#c!2w#c#o%T#p~%Ty!3OR$UWkqO!^%T!_#o%T#p~%Ty!3^W$UWO!Q%T!Q!R!3v!R!S!3v!S!^%T!_#R%T#R#S!3v#S#o%T#p~%Ty!3}Y$UWkqO!Q%T!Q!R!3v!R!S!3v!S!^%T!_#R%T#R#S!3v#S#b%T#b#c!2w#c#o%T#p~%Ty!4rV$UWO!Q%T!Q!Y!5X!Y!^%T!_#R%T#R#S!5X#S#o%T#p~%Ty!5`X$UWkqO!Q%T!Q!Y!5X!Y!^%T!_#R%T#R#S!5X#S#b%T#b#c!2w#c#o%T#p~%Ty!6QZ$UWO!Q%T!Q![!6s![!^%T!_!c%T!c!i!6s!i#R%T#R#S!6s#S#T%T#T#Z!6s#Z#o%T#p~%Ty!6z]$UWkqO!Q%T!Q![!6s![!^%T!_!c%T!c!i!6s!i#R%T#R#S!6s#S#T%T#T#Z!6s#Z#b%T#b#c!2w#c#o%T#p~%T%w!7|R!]V$UW#m%hO!^%T!_#o%T#p~%T!P!8^R_w$UWO!^%T!_#o%T#p~%T+c!8rR'`d!a%Y#x&s'zP!P!Q!8{!^!_!9Q!_!`!9_W!9QO$WW#v!9VP#`#v!_!`!9Y#v!9_O#o#v#v!9dO#a#v%w!9kT!{%o$UWO!^%T!_!`'v!`!a!9z!a#o%T#p~%T$P!:RR#W#w$UWO!^%T!_#o%T#p~%T%w!:gT'_!s#a#v$RS$UWO!^%T!_!`!:v!`!a!;W!a#o%T#p~%T$O!:}R#a#v$UWO!^%T!_#o%T#p~%T$O!;_T#`#v$UWO!^%T!_!`5T!`!a!;n!a#o%T#p~%T$O!;uS#`#v$UWO!^%T!_!`5T!`#o%T#p~%T%w!]S#g#v$UWO!^%T!_!`5T!`#o%T#p~%T$P!>pR$UW'd#wO!^%T!_#o%T#p~%T~!?OO!T~%r!?VT'u%j$UWO!^%T!_!`5T!`#o%T#p#q!=P#q~%T$u!?oR!S$knQ$UWO!^%T!_#o%T#p~%TX!@PR!kP$UWO!^%T!_#o%T#p~%T,T!@gr$UW'W+{#zS'Z%k'epOX%TXY%cYZ%TZ[%c[p%Tpq%cqt%Ttu2`u}%T}!O3j!O!Q%T!Q![2`![!^%T!_!c%T!c!}2`!}#R%T#R#S2`#S#T%T#T#o2`#p$f%T$f$g%c$g#BY2`#BY#BZ!@Y#BZ$IS2`$IS$I_!@Y$I_$JT2`$JT$JU!@Y$JU$KV2`$KV$KW!@Y$KW&FU2`&FU&FV!@Y&FV?HT2`?HT?HU!@Y?HU~2`,T!CO_$UW'X+{#zS'Z%k'epOt%Ttu2`u}%T}!O3j!O!Q%T!Q![2`![!^%T!_!c%T!c!}2`!}#R%T#R#S2`#S#T%T#T#o2`#p$g%T$g~2`",tokenizers:[fd,md,gd,0,1,2,3,4,5,6,7,8,ud],topRules:{Script:[0,7]},dialects:{jsx:11335,ts:11337},dynamicPrecedences:{149:1,176:1},specialized:[{term:287,get:(e,t)=>function(e,t){return"extends"==e&&t.dialectEnabled(1)?4:-1}(e,t)<<1},{term:287,get:e=>Od[e]||-1},{term:297,get:e=>bd[e]||-1},{term:63,get:e=>xd[e]||-1}],tokenPrec:11358});"undefined"!=typeof navigator&&!/Edge\/(\d+)/.exec(navigator.userAgent)&&/Apple Computer/.test(navigator.vendor)&&(/Mobile\/\w+/.test(navigator.userAgent)||navigator.maxTouchPoints);function yd(e){let t=Object.keys(e).join(""),n=/\w/.test(t);return n&&(t=t.replace(/\w/g,"")),`[${n?"\\w":""}${t.replace(/[^\w\s]/g,"\\$&")}]`}function wd(e){let t=e.map((e=>"string"==typeof e?{label:e}:e)),[n,i]=t.every((e=>/^\w+$/.test(e.label)))?[/\w*$/,/\w+$/]:function(e){let t=Object.create(null),n=Object.create(null);for(let{label:r}of e){t[r[0]]=!0;for(let e=1;e{let r=e.matchBefore(i);return r||e.explicit?{from:r?r.from:e.pos,options:t,span:n}:null}}const Sd=Vo.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",listStyle:"none",margin:0,padding:0,"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer",padding:"1px 3px",lineHeight:1.2}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"\xb7\xb7\xb7"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"300px"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'\u0192'"}},".cm-completionIcon-class":{"&:after":{content:"'\u25cb'"}},".cm-completionIcon-interface":{"&:after":{content:"'\u25cc'"}},".cm-completionIcon-variable":{"&:after":{content:"'\ud835\udc65'"}},".cm-completionIcon-constant":{"&:after":{content:"'\ud835\udc36'"}},".cm-completionIcon-type":{"&:after":{content:"'\ud835\udc61'"}},".cm-completionIcon-enum":{"&:after":{content:"'\u222a'"}},".cm-completionIcon-property":{"&:after":{content:"'\u25a1'"}},".cm-completionIcon-keyword":{"&:after":{content:"'\ud83d\udd11\ufe0e'"}},".cm-completionIcon-namespace":{"&:after":{content:"'\u25a2'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class kd{constructor(e,t,n,i){this.field=e,this.line=t,this.from=n,this.to=i}}class Td{constructor(e,t,n){this.field=e,this.from=t,this.to=n}map(e){let t=e.mapPos(this.from,-1,Le.TrackDel),n=e.mapPos(this.to,1,Le.TrackDel);return null==t||null==n?null:new Td(this.field,t,n)}}class Qd{constructor(e,t){this.lines=e,this.fieldPositions=t}instantiate(e,t){let n=[],i=[t],r=e.doc.lineAt(t),o=/^\s*/.exec(r.text)[0];for(let a of this.lines){if(n.length){let n=o,r=/^\t*/.exec(a)[0].length;for(let t=0;tnew Td(e.field,i[e.line]+e.from,i[e.line]+e.to)));return{text:n,ranges:s}}static parse(e){let t,n=[],i=[],r=[];for(let o of e.split(/\r\n?|\n/)){for(;t=/[#$]\{(?:(\d+)(?::([^}]*))?|([^}]*))\}/.exec(o);){let e=t[1]?+t[1]:null,s=t[2]||t[3]||"",a=-1;for(let t=0;t=a&&e.field++}r.push(new kd(a,i.length,t.index,t.index+s.length)),o=o.slice(0,t.index)+s+o.slice(t.index+t[0].length)}i.push(o)}return new Qd(i,r)}}let Pd=vi.widget({widget:new class extends bi{toDOM(){let e=document.createElement("span");return e.className="cm-snippetFieldPosition",e}ignoreEvent(){return!1}}}),Cd=vi.mark({class:"cm-snippetField"});class $d{constructor(e,t){this.ranges=e,this.active=t,this.deco=vi.set(e.map((e=>(e.from==e.to?Pd:Cd).range(e.from,e.to))))}map(e){let t=[];for(let n of this.ranges){let i=n.map(e);if(!i)return null;t.push(i)}return new $d(t,this.active)}selectionInsideField(e){return e.ranges.every((e=>this.ranges.some((t=>t.field==this.active&&t.from<=e.from&&t.to>=e.to))))}}const Id=It.define({map:(e,t)=>e&&e.map(t)}),Rd=It.define(),Ad=st.define({create:()=>null,update(e,t){for(let n of t.effects){if(n.is(Id))return n.value;if(n.is(Rd)&&e)return new $d(e.ranges,n.value)}return e&&t.docChanged&&(e=e.map(t.changes)),e&&t.selection&&!e.selectionInsideField(t.selection)&&(e=null),e},provide:e=>Vo.decorations.from(e,(e=>e?e.deco:vi.none))});function Md(e,t){return Ye.create(e.filter((e=>e.field==t)).map((e=>Ye.range(e.from,e.to))))}function jd(e){let t=Qd.parse(e);return(e,n,i,r)=>{let{text:o,ranges:s}=t.instantiate(e.state,i),a={changes:{from:i,to:r,insert:Ie.of(o)}};if(s.length&&(a.selection=Md(s,0)),s.length>1){let t=new $d(s,0),n=a.effects=[Id.of(t)];void 0===e.state.field(Ad,!1)&&n.push(It.appendConfig.of([Ad,Wd,Ld,Sd]))}e.dispatch(e.state.update(a))}}function Ed(e){return({state:t,dispatch:n})=>{let i=t.field(Ad,!1);if(!i||e<0&&0==i.active)return!1;let r=i.active+e,o=e>0&&!i.ranges.some((t=>t.field==r+e));return n(t.update({selection:Md(i.ranges,r),effects:Id.of(o?null:new $d(i.ranges,r))})),!0}}const Xd=[{key:"Tab",run:Ed(1),shift:Ed(-1)},{key:"Escape",run:({state:e,dispatch:t})=>!!e.field(Ad,!1)&&(t(e.update({effects:Id.of(null)})),!0)}],zd=et.define({combine:e=>e.length?e[0]:Xd}),Wd=ut.highest(rs.compute([zd],(e=>e.facet(zd))));function _d(e,t){return Object.assign(Object.assign({},t),{apply:jd(e)})}const Ld=Vo.domEventHandlers({mousedown(e,t){let n,i=t.state.field(Ad,!1);if(!i||null==(n=t.posAtCoords({x:e.clientX,y:e.clientY})))return!1;let r=i.ranges.find((e=>e.from<=n&&e.to>=n));return!(!r||r.field==i.active)&&(t.dispatch({selection:Md(i.ranges,r.field),effects:Id.of(i.ranges.some((e=>e.field>r.field))?new $d(i.ranges,r.field):null)}),!0)}});const Dd=[_d("function ${name}(${params}) {\n\t${}\n}",{label:"function",detail:"definition",type:"keyword"}),_d("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n\t${}\n}",{label:"for",detail:"loop",type:"keyword"}),_d("for (let ${name} of ${collection}) {\n\t${}\n}",{label:"for",detail:"of loop",type:"keyword"}),_d("try {\n\t${}\n} catch (${error}) {\n\t${}\n}",{label:"try",detail:"block",type:"keyword"}),_d("class ${name} {\n\tconstructor(${params}) {\n\t\t${}\n\t}\n}",{label:"class",detail:"definition",type:"keyword"}),_d('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),_d('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],Bd=fa.define({parser:vd.configure({props:[Aa.add({IfStatement:La({except:/^\s*({|else\b)/}),TryStatement:La({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:e=>e.baseIndent,SwitchBody:e=>{let t=e.textAfter,n=/^\s*\}/.test(t),i=/^\s*(case|default)\b/.test(t);return e.baseIndent+(n?0:i?1:2)*e.unit},Block:Wa({closing:"}"}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>-1,"Statement Property":La({except:/^{/}),JSXElement(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},JSXEscape(e){let t=/\s*\}/.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"JSXOpenTag JSXSelfClosingTag":e=>e.column(e.node.from)+e.unit}),Da.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression":Ba,BlockComment:e=>({from:e.from+2,to:e.to-2})}),Vc({"get set async static":Sh.modifier,"for while do if else switch try catch finally return throw break continue default case":Sh.controlKeyword,"in of await yield void typeof delete instanceof":Sh.operatorKeyword,"let var const function class extends":Sh.definitionKeyword,"import export from":Sh.moduleKeyword,"with debugger as new":Sh.keyword,TemplateString:Sh.special(Sh.string),Super:Sh.atom,BooleanLiteral:Sh.bool,this:Sh.self,null:Sh.null,Star:Sh.modifier,VariableName:Sh.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":Sh.function(Sh.variableName),VariableDefinition:Sh.definition(Sh.variableName),Label:Sh.labelName,PropertyName:Sh.propertyName,PrivatePropertyName:Sh.special(Sh.propertyName),"CallExpression/MemberExpression/PropertyName":Sh.function(Sh.propertyName),"FunctionDeclaration/VariableDefinition":Sh.function(Sh.definition(Sh.variableName)),"ClassDeclaration/VariableDefinition":Sh.definition(Sh.className),PropertyDefinition:Sh.definition(Sh.propertyName),PrivatePropertyDefinition:Sh.definition(Sh.special(Sh.propertyName)),UpdateOp:Sh.updateOperator,LineComment:Sh.lineComment,BlockComment:Sh.blockComment,Number:Sh.number,String:Sh.string,ArithOp:Sh.arithmeticOperator,LogicOp:Sh.logicOperator,BitOp:Sh.bitwiseOperator,CompareOp:Sh.compareOperator,RegExp:Sh.regexp,Equals:Sh.definitionOperator,"Arrow : Spread":Sh.punctuation,"( )":Sh.paren,"[ ]":Sh.squareBracket,"{ }":Sh.brace,"InterpolationStart InterpolationEnd":Sh.special(Sh.brace),".":Sh.derefOperator,", ;":Sh.separator,TypeName:Sh.typeName,TypeDefinition:Sh.definition(Sh.typeName),"type enum interface implements namespace module declare":Sh.definitionKeyword,"abstract global Privacy readonly override":Sh.modifier,"is keyof unique infer":Sh.operatorKeyword,JSXAttributeValue:Sh.attributeValue,JSXText:Sh.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":Sh.angleBracket,"JSXIdentifier JSXNameSpacedName":Sh.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":Sh.attributeName})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),Ud=Bd.configure({dialect:"ts"}),Zd=Bd.configure({dialect:"jsx"}),Nd=Bd.configure({dialect:"jsx ts"});function Fd(e={}){let t=e.jsx?e.typescript?Nd:Zd:e.typescript?Ud:Bd;return new Ta(t,Bd.data.of({autocomplete:(n=["LineComment","BlockComment","String"],i=wd(Dd),e=>{for(let t=ma(e.state).resolveInner(e.pos,-1);t;t=t.parent)if(n.indexOf(t.name)>-1)return null;return i(e)})}));var n,i}const Gd=["_blank","_self","_top","_parent"],qd=["ascii","utf-8","utf-16","latin1","latin1"],Vd=["get","post","put","delete"],Yd=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],Hd=["true","false"],Jd={},Kd={a:{attrs:{href:null,ping:null,type:null,media:null,target:Gd,hreflang:null}},abbr:Jd,acronym:Jd,address:Jd,applet:Jd,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:Jd,aside:Jd,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:Jd,base:{attrs:{href:null,target:Gd}},basefont:Jd,bdi:Jd,bdo:Jd,big:Jd,blockquote:{attrs:{cite:null}},body:Jd,br:Jd,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:Yd,formmethod:Vd,formnovalidate:["novalidate"],formtarget:Gd,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:Jd,center:Jd,cite:Jd,code:Jd,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:Jd,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:Jd,dir:Jd,div:Jd,dl:Jd,dt:Jd,em:Jd,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:Jd,figure:Jd,font:Jd,footer:Jd,form:{attrs:{action:null,name:null,"accept-charset":qd,autocomplete:["on","off"],enctype:Yd,method:Vd,novalidate:["novalidate"],target:Gd}},frame:Jd,frameset:Jd,h1:Jd,h2:Jd,h3:Jd,h4:Jd,h5:Jd,h6:Jd,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:Jd,hgroup:Jd,hr:Jd,html:{attrs:{manifest:null}},i:Jd,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:Yd,formmethod:Vd,formnovalidate:["novalidate"],formtarget:Gd,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:Jd,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:Jd,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:Jd,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:qd,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:Jd,noframes:Jd,noscript:Jd,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:Jd,param:{attrs:{name:null,value:null}},pre:Jd,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:Jd,rt:Jd,ruby:Jd,s:Jd,samp:Jd,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:qd}},section:Jd,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},small:Jd,source:{attrs:{src:null,type:null,media:null}},span:Jd,strike:Jd,strong:Jd,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:Jd,summary:Jd,sup:Jd,table:Jd,tbody:Jd,td:{attrs:{colspan:null,rowspan:null,headers:null}},textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:Jd,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:Jd,time:{attrs:{datetime:null}},title:Jd,tr:Jd,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},tt:Jd,u:Jd,ul:{children:["li","script","template","ul","ol"]},var:Jd,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:Jd},eu={accesskey:null,class:null,contenteditable:Hd,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:Hd,autocorrect:Hd,autocapitalize:Hd,style:null,tabindex:null,title:null,translate:["yes","no"],onclick:null,rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":Hd,"aria-autocomplete":["inline","list","both","none"],"aria-busy":Hd,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":Hd,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":Hd,"aria-hidden":Hd,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":Hd,"aria-multiselectable":Hd,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":Hd,"aria-relevant":null,"aria-required":Hd,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},tu=Object.keys(Kd),nu=Object.keys(eu);function iu(e,t,n=e.length){if(!t)return"";let i=t.firstChild,r=i&&i.getChild("TagName");return r?e.sliceString(r.from,Math.min(r.to,n)):""}function ru(e,t=!1){for(let n=e.parent;n;n=n.parent)if("Element"==n.name){if(!t)return n;t=!1}return null}function ou(e,t){let n=Kd[iu(e,ru(t,!0))];return(null==n?void 0:n.children)||tu}function su(e,t){let n=[];for(let i=t;i=ru(i);){let r=iu(e,i);if(r&&"CloseTag"==i.lastChild.name)break;r&&n.indexOf(r)<0&&("EndTag"==t.name||t.from>=i.firstChild.to)&&n.push(r)}return n}const au=/^[:\-\.\w\u00b7-\uffff]+$/;function lu(e,t,n,i){let r=/\s*>/.test(e.sliceDoc(i,i+5))?"":">";return{from:n,to:i,options:ou(e.doc,t).map((e=>({label:e,type:"type"}))).concat(su(e.doc,t).map(((e,t)=>({label:"/"+e,apply:"/"+e+r,type:"type",boost:99-t})))),span:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function cu(e,t,n,i){let r=/\s*>/.test(e.sliceDoc(i,i+5))?"":">";return{from:n,to:i,options:su(e.doc,t).map(((e,t)=>({label:e,apply:e+r,type:"type",boost:99-t}))),span:au}}const hu=fa.define({parser:sd.configure({props:[Aa.add({Element(e){let t=/^(\s*)(<\/)?/.exec(e.textAfter);return e.node.to<=e.pos+t[0].length?e.continue():e.lineIndent(e.node.from)+(t[2]?0:e.unit)},"OpenTag CloseTag SelfClosingTag":e=>e.column(e.node.from)+e.unit,Document(e){if(e.pos+/\s*/.exec(e.textAfter)[0].length!e.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type),parser:Bd.parser},{tag:"style",attrs:e=>(!e.lang||"css"==e.lang)&&(!e.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type)),parser:Wp.parser}])}),languageData:{commentTokens:{block:{open:"\x3c!--",close:"--\x3e"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-._"}}),pu=hu.data.of({autocomplete:function(e){let{state:t,pos:n}=e,i=ma(t).resolveInner(n),r=i.resolve(n,-1);for(let o,s=n;i==r&&(o=r.childBefore(s));){let e=o.lastChild;if(!e||!e.type.isError||e.from({label:e,type:"property"}))),span:au}}(t,r,"AttributeName"==r.name?r.from:n,n):"Is"==r.name||"AttributeValue"==r.name||"UnquotedAttributeValue"==r.name?function(e,t,n,i){var r;let o,s=null===(r=t.parent)||void 0===r?void 0:r.getChild("AttributeName"),a=[];if(s){let r=e.sliceDoc(s.from,s.to),l=eu[r];if(!l){let n=ru(t),i=n?Kd[iu(e.doc,n)]:null;l=(null==i?void 0:i.attrs)&&i.attrs[r]}if(l){let t=e.sliceDoc(n,i).toLowerCase(),r='"',s='"';/^['"]/.test(t)?(o='"'==t[0]?/^[^"]*$/:/^[^']*$/,r="",s=e.sliceDoc(i,i+1)==t[0]?"":t[0],t=t.slice(1),n++):o=/^[^\s<>='"]*$/;for(let e of l)a.push({label:e,apply:r+e+s,type:"constant"})}}return{from:n,to:i,options:a,span:o}}(t,r,"Is"==r.name?n:r.from,n):!e.explicit||"Element"!=i.name&&"Text"!=i.name&&"Document"!=i.name?null:function(e,t,n){let i=[],r=0;for(let o of ou(e.doc,t))i.push({label:"<"+o,type:"type"});for(let o of su(e.doc,t))i.push({label:"",type:"type",boost:99-r++});return{from:n,to:n,options:i,span:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}(t,r,n)}});function du(e={}){let t=hu;return!1===e.matchClosingTags&&(t=t.configure({dialect:"noMatch"})),new Ta(t,[pu,!1!==e.autoCloseTags?uu:[],Fd().support,Lp().support])}const uu=Vo.inputHandler.of(((e,t,n,i)=>{if(e.composing||e.state.readOnly||t!=n||">"!=i&&"/"!=i||!hu.isActiveAt(e.state,t,-1))return!1;let{state:r}=e,o=r.changeByRange((e=>{var t,n,o;let s,{head:a}=e,l=ma(r).resolveInner(a,-1);if("TagName"!=l.name&&"StartTag"!=l.name||(l=l.parent),">"==i&&"OpenTag"==l.name){if("CloseTag"!=(null===(n=null===(t=l.parent)||void 0===t?void 0:t.lastChild)||void 0===n?void 0:n.name)&&(s=iu(r.doc,l.parent,a)))return{range:Ye.cursor(a+1),changes:{from:a,insert:`>`}}}else if("/"==i&&"OpenTag"==l.name){let e=l.parent,t=null==e?void 0:e.parent;if(e.from==a-1&&"CloseTag"!=(null===(o=t.lastChild)||void 0===o?void 0:o.name)&&(s=iu(r.doc,t,a))){let e=`/${s}>`;return{range:Ye.cursor(a+e.length),changes:{from:a,insert:e}}}}return{range:e}}));return!o.changes.empty&&(e.dispatch(o,{userEvent:"input.type",scrollIntoView:!0}),!0)}));var fu,mu=n(6961),gu=n.n(mu),Ou=e=>(0,r.createElement)("svg",{fill:"currentColor",height:"16",viewBox:"0 0 16 16",width:"16",xmlns:"http://www.w3.org/2000/svg",...e}),bu=()=>(0,r.createElement)(Ou,null,(0,r.createElement)("title",null,"Run sandbox"),(0,r.createElement)("path",{d:"M11.0792 8.1078C11.2793 8.25007 11.27 8.55012 11.0616 8.67981L6.02535 11.8135C5.79638 11.956 5.5 11.7913 5.5 11.5216L5.5 8.40703L5.5 4.80661C5.5 4.52735 5.81537 4.36463 6.04296 4.52647L11.0792 8.1078Z"})),xu=()=>(0,r.createElement)(Ou,null,(0,r.createElement)("title",null,"Click to go back"),(0,r.createElement)("path",{d:"M9.64645 12.3536C9.84171 12.5488 10.1583 12.5488 10.3536 12.3536C10.5488 12.1583 10.5488 11.8417 10.3536 11.6464L9.64645 12.3536ZM10.3536 4.35355C10.5488 4.15829 10.5488 3.84171 10.3536 3.64644C10.1583 3.45118 9.84171 3.45118 9.64645 3.64644L10.3536 4.35355ZM6.07072 7.92929L5.71716 7.57573L6.07072 7.92929ZM10.3536 11.6464L6.42427 7.71716L5.71716 8.42426L9.64645 12.3536L10.3536 11.6464ZM6.42427 8.28284L10.3536 4.35355L9.64645 3.64644L5.71716 7.57573L6.42427 8.28284ZM6.42427 7.71716C6.58048 7.87337 6.58048 8.12663 6.42427 8.28284L5.71716 7.57573C5.48285 7.81005 5.48285 8.18995 5.71716 8.42426L6.42427 7.71716Z"})),vu=()=>(0,r.createElement)(Ou,null,(0,r.createElement)("title",null,"Click to go forward"),(0,r.createElement)("path",{d:"M6.35355 3.64645C6.15829 3.45118 5.84171 3.45118 5.64645 3.64645C5.45118 3.84171 5.45118 4.15829 5.64645 4.35355L6.35355 3.64645ZM5.64645 11.6464C5.45118 11.8417 5.45118 12.1583 5.64645 12.3536C5.84171 12.5488 6.15829 12.5488 6.35355 12.3536L5.64645 11.6464ZM9.92929 8.07071L10.2828 8.42426L9.92929 8.07071ZM5.64645 4.35355L9.57574 8.28284L10.2828 7.57574L6.35355 3.64645L5.64645 4.35355ZM9.57574 7.71716L5.64645 11.6464L6.35355 12.3536L10.2828 8.42426L9.57574 7.71716ZM9.57574 8.28284C9.41952 8.12663 9.41953 7.87337 9.57574 7.71716L10.2828 8.42426C10.5172 8.18995 10.5172 7.81005 10.2828 7.57574L9.57574 8.28284Z"})),yu=()=>(0,r.createElement)(Ou,null,(0,r.createElement)("title",null,"Refresh preview"),(0,r.createElement)("path",{clipRule:"evenodd",d:"M3.83325 7.99992C3.83325 5.69867 5.69853 3.83325 7.99934 3.83325C9.81246 3.83325 11.3563 4.99195 11.9285 6.61097C11.9396 6.6425 11.9536 6.67221 11.97 6.69992H8.80005C8.52391 6.69992 8.30005 6.92378 8.30005 7.19992C8.30005 7.47606 8.52391 7.69992 8.80005 7.69992H12.5667C12.8981 7.69992 13.1667 7.43129 13.1667 7.09992V3.33325C13.1667 3.05711 12.9429 2.83325 12.6667 2.83325C12.3906 2.83325 12.1667 3.05711 12.1667 3.33325V4.94608C11.2268 3.66522 9.7106 2.83325 7.99934 2.83325C5.14613 2.83325 2.83325 5.14651 2.83325 7.99992C2.83325 10.8533 5.14613 13.1666 7.99934 13.1666C9.91218 13.1666 11.5815 12.1266 12.474 10.5836C12.6123 10.3446 12.5306 10.0387 12.2915 9.90044C12.0525 9.76218 11.7466 9.84387 11.6084 10.0829C10.8873 11.3296 9.54072 12.1666 7.99934 12.1666C5.69853 12.1666 3.83325 10.3012 3.83325 7.99992Z",fillRule:"evenodd"})),wu=()=>(0,r.createElement)(Ou,{fill:"none",stroke:"currentColor"},(0,r.createElement)("title",null,"Open on CodeSandbox"),(0,r.createElement)("path",{d:"M6.66665 3.33337H4.33331C3.78103 3.33337 3.33331 3.78109 3.33331 4.33337V11.6667C3.33331 12.219 3.78103 12.6667 4.33331 12.6667H11.6666C12.2189 12.6667 12.6666 12.219 12.6666 11.6667V9.33337",strokeLinecap:"round"}),(0,r.createElement)("path",{d:"M10 3.33337H12.5667C12.6219 3.33337 12.6667 3.37815 12.6667 3.43337V6.00004",strokeLinecap:"round"}),(0,r.createElement)("path",{d:"M7.33331 8.66668L12.5333 3.46667",strokeLinecap:"round"})),Su=()=>(0,r.createElement)(Ou,{stroke:"currentColor"},(0,r.createElement)("title",null,"Close file"),(0,r.createElement)("path",{d:"M12 4L4 12",strokeLinecap:"round"}),(0,r.createElement)("path",{d:"M4 4L12 12",strokeLinecap:"round"})),ku={colors:{surface1:"#ffffff",surface2:"#EFEFEF",surface3:"#F3F3F3",disabled:"#C5C5C5",base:"#323232",clickable:"#808080",hover:"#4D4D4D",accent:"#3973E0",error:"#EA3323",errorSurface:"#FCF1F0",warning:"#6A4516",warningSurface:"#FEF2C0"},syntax:{plain:"#151515",comment:{color:"#999",fontStyle:"italic"},keyword:"#7C5AE3",tag:"#0971F1",punctuation:"#3B3B3B",definition:"#85A600",property:"#3B3B3B",static:"#3B3B3B",string:"#2E6BD0"},font:{body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'"Fira Mono", "DejaVu Sans Mono", Menlo, Consolas, "Liberation Mono", Monaco, "Lucida Console", monospace',size:"13px",lineHeight:"20px"}},Tu={colors:{surface1:"#151515",surface2:"#252525",surface3:"#2F2F2F",disabled:"#4D4D4D",base:"#808080",clickable:"#999999",hover:"#C5C5C5",accent:"#E5E5E5",error:"#FFB4A6",errorSurface:"#690000",warning:"#E7C400",warningSurface:"#3A3000"},syntax:{plain:"#FFFFFF",comment:{color:"#757575",fontStyle:"italic"},keyword:"#77B7D7",tag:"#DFAB5C",punctuation:"#ffffff",definition:"#86D9CA",property:"#77B7D7",static:"#C64640",string:"#977CDC"},font:{body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'"Fira Mono", "DejaVu Sans Mono", Menlo, Consolas, "Liberation Mono", Monaco, "Lucida Console", monospace',size:"13px",lineHeight:"20px"}},Qu={light:ku,dark:Tu,auto:"undefined"!=typeof window&&(null==(fu=null==window?void 0:window.matchMedia)?void 0:fu.call(window,"(prefers-color-scheme: dark)").matches)?Tu:ku},Pu=(...e)=>e.filter(Boolean).join(" "),Cu=e=>{let t=e.lastIndexOf("/");return e.slice(t+1)},$u=()=>Math.floor(1e4*Math.random()).toString(),Iu=()=>"",Ru=()=>Iu,Au=Object.getOwnPropertyDescriptors({toString:Iu});Object.defineProperties(Iu,Au),Object.defineProperties(Ru,Au);var Mu={createTheme:Iu,css:Ru,getCssText:Iu,keyframes:Ru},ju="sp",{createTheme:Eu,css:Xu,getCssText:zu,keyframes:Wu}="undefined"!=typeof process&&process.env.SANDPACK_BARE_COMPONENTS?Mu:Oe({prefix:ju}),_u={space:new Array(11).fill(" ").reduce(((e,t,n)=>({...e,[n+1]:4*(n+1)+"px"})),{}),border:{radius:"4px"},layout:{height:"300px",headerHeight:"40px"},transitions:{default:"150ms ease"},zIndices:{base:"1",overlay:"2",top:"3"}},Lu=(e="light")=>{var t,n,i,r,o;if("string"==typeof e){let t=Qu[e];if(!t)throw new Error(`[sandpack-react]: invalid theme '${e}' provided.`);return{theme:t,id:e,mode:"light"}}let s=(e=>{let t=0,n=0,i=0;if(e.startsWith("#")){if(e.length<7)return!0;t=parseInt(e.substr(1,2),16),n=parseInt(e.substr(3,2),16),i=parseInt(e.substr(5,2),16)}else{let r=e.replace("rgb(","").replace("rgba(","").replace(")","").split(",");if(r.length<3)return!0;t=parseInt(r[0],10),n=parseInt(r[1],10),i=parseInt(r[2],10)}return(299*t+587*n+114*i)/1e3<128})(null!=(n=null==(t=null==e?void 0:e.colors)?void 0:t.surface1)?n:ku.colors.surface1)?"dark":"light",a="dark"===s?Tu:ku,l={colors:{...a.colors,...null!=(i=null==e?void 0:e.colors)?i:{}},syntax:{...a.syntax,...null!=(r=null==e?void 0:e.syntax)?r:{}},font:{...a.font,...null!=(o=null==e?void 0:e.font)?o:{}}};return{theme:l,id:`sp-${e?Du(JSON.stringify(l)):"default"}`,mode:s}},Du=e=>{let t=0;for(let n=0;n{let{theme:o,id:s,mode:a}=Lu(e),l=h(ju),c=(0,r.useMemo)((()=>Eu(s,(e=>{let t=Object.entries(e.syntax).reduce(((e,[t,n])=>{let i={[`color-${t}`]:n};return"object"==typeof n&&(i=Object.entries(n).reduce(((e,[n,i])=>({...e,[`${n}-${t}`]:i})),{})),{...e,...i}}),{});return{..._u,colors:e.colors,font:e.font,syntax:t}})(o))),[o,s]);return(0,r.createElement)(Uu.Provider,{value:{theme:o,id:s,mode:a}},(0,r.createElement)("div",{className:Pu(l("wrapper"),c.toString(),Bu({variant:a}),n),...i},t))},Nu=(Uu.Consumer,{files:{"/src/app/app.component.css":{code:"div {\n text-align: center;\n} \n"},"/src/app/app.component.html":{code:"
\n

{{ helloWorld }}

\n
\n"},"/src/app/app.component.ts":{code:'import { Component } from "@angular/core";\n\n@Component({\n selector: "app-root",\n templateUrl: "./app.component.html",\n styleUrls: ["./app.component.css"]\n})\nexport class AppComponent {\n helloWorld = "Hello World";\n} \n'},"/src/app/app.module.ts":{code:'import { BrowserModule } from "@angular/platform-browser";\nimport { NgModule } from "@angular/core";\n \nimport { AppComponent } from "./app.component";\n \n@NgModule({\n declarations: [AppComponent],\n imports: [BrowserModule],\n providers: [],\n bootstrap: [AppComponent]\n})\nexport class AppModule {} \n'},"/src/index.html":{code:'\n\n \n\n \n Angular\n \n \n \n \n\n \n\n \n\n \n\n'},"/src/main.ts":{code:'import { enableProdMode } from "@angular/core";\nimport { platformBrowserDynamic } from "@angular/platform-browser-dynamic";\n \nimport { AppModule } from "./app/app.module"; \n\nplatformBrowserDynamic()\n .bootstrapModule(AppModule)\n .catch(err => console.log(err));\n \n'},"/src/polyfills.ts":{code:'import "core-js/proposals/reflect-metadata"; \n import "zone.js/dist/zone";\n'},"/package.json":{code:JSON.stringify({dependencies:{"@angular/core":"^11.2.0","@angular/platform-browser":"^11.2.0","@angular/platform-browser-dynamic":"^11.2.0","@angular/common":"^11.2.0","@angular/compiler":"^11.2.0","zone.js":"0.11.3","core-js":"3.8.3",rxjs:"6.6.3"},main:"/src/main.ts"})}},main:"/src/app/app.component.ts",environment:"angular-cli"}),Fu={files:{"/App.js":{code:"export default function App() {\n return

Hello World

\n}\n"},"/index.js":{code:'import React, { StrictMode } from "react";\nimport { createRoot } from "react-dom/client";\nimport "./styles.css";\n\nimport App from "./App";\n\nconst root = createRoot(document.getElementById("root"));\nroot.render(\n \n \n \n);'},"/styles.css":{code:"body {\n font-family: sans-serif;\n -webkit-font-smoothing: auto;\n -moz-font-smoothing: auto;\n -moz-osx-font-smoothing: grayscale;\n font-smoothing: auto;\n text-rendering: optimizeLegibility;\n font-smooth: always;\n -webkit-tap-highlight-color: transparent;\n -webkit-touch-callout: none;\n}\n\nh1 {\n font-size: 1.5rem;\n}"},"/public/index.html":{code:'\n\n \n \n \n Document\n \n \n
\n \n'},"/package.json":{code:JSON.stringify({dependencies:{react:"^18.0.0","react-dom":"^18.0.0","react-scripts":"^4.0.0"},main:"/index.js"})}},main:"/App.js",environment:"create-react-app"},Gu={files:{"tsconfig.json":{code:'{\n "include": [\n "./**/*"\n ],\n "compilerOptions": {\n "strict": true,\n "esModuleInterop": true,\n "lib": [ "dom", "es2015" ],\n "jsx": "react-jsx"\n }\n}'},"/App.tsx":{code:"export default function App(): JSX.Element {\n return

Hello World

\n}\n"},"/index.tsx":{code:'import React, { StrictMode } from "react";\nimport { createRoot } from "react-dom/client";\nimport "./styles.css";\n\nimport App from "./App";\n\nconst root = createRoot(document.getElementById("root"));\nroot.render(\n \n \n \n);'},"/styles.css":{code:"body {\n font-family: sans-serif;\n -webkit-font-smoothing: auto;\n -moz-font-smoothing: auto;\n -moz-osx-font-smoothing: grayscale;\n font-smoothing: auto;\n text-rendering: optimizeLegibility;\n font-smooth: always;\n -webkit-tap-highlight-color: transparent;\n -webkit-touch-callout: none;\n}\n\nh1 {\n font-size: 1.5rem;\n}"},"/public/index.html":{code:'\n\n \n \n \n Document\n \n \n
\n \n'},"/package.json":{code:JSON.stringify({dependencies:{react:"^18.0.0","react-dom":"^18.0.0","react-scripts":"^4.0.0"},devDependencies:{"@types/react":"^18.0.0","@types/react-dom":"^18.0.0",typescript:"^4.0.0"},main:"/index.tsx"})}},main:"/App.tsx",environment:"create-react-app"},qu={files:{"/App.tsx":{code:'import { Component } from "solid-js";\n\nconst App: Component = () => {\n return

Hello World

;\n};\n\nexport default App;'},"/index.tsx":{code:'import { render } from "solid-js/web";\nimport App from "./App";\n\nimport "./styles.css";\n\nrender(() => , document.getElementById("app"));'},"/styles.css":{code:"body {\n font-family: sans-serif;\n -webkit-font-smoothing: auto;\n -moz-font-smoothing: auto;\n -moz-osx-font-smoothing: grayscale;\n font-smoothing: auto;\n text-rendering: optimizeLegibility;\n font-smooth: always;\n -webkit-tap-highlight-color: transparent;\n -webkit-touch-callout: none;\n}\n\nh1 {\n font-size: 1.5rem;\n}"},"/index.html":{code:'\n\n Parcel Sandbox\n \n\n\n
\n - - + +

· 10 min read
GoodBoyDigital

Get ready to push the boundaries of what's possible on the web! PixiJS v8 has landed, and it's a game-changer. Celebrating a decade of driving innovation, we've supercharged PixiJS with the latest technological advancements, making it faster, more robust, and ridiculously powerful. From the seamless integration of WebGPU to leveraging modern JavaScript for smoother development, PixiJS v8 is all about empowering you to create jaw-dropping web experiences with ease. It's not just an update; it's the future of 2D web graphics, today. Dive in and let PixiJS v8 elevate your projects to unseen heights. Let's make the web a more beautiful place, one pixi(el) at a time.

🚀 Revolutionizing Web Graphics: Welcome to PixiJS v8

PixiJS logo

It's hard to believe that PixiJS has been part of the open-source community for a whopping ten years. In that time, the digital landscape has evolved tremendously, and so has PixiJS. We've seen significant updates, like the transition to TypeScript, and we've overhauled major parts of the engine, such as asset loading and WebGL integration.

Now, we're thrilled to unveil PixiJS v8, arguably our most substantial update ever. This release is not just a reflection on the shortcomings of v7, which has served us well, but an acknowledgment that there's always room for improvement. Over time, we've all encountered aspects of our code we wished we could refine. Often, the best solutions and insights emerge only after we've stepped back from the problem, allowing us to see the bigger picture.

With PixiJS v8, our aim was to revisit and enhance the foundation of PixiJS, streamlining its core rather than just adding layers of code.

Our vision for v8 was clear:

  • Longevity: We designed v8 to stand the test of time, anticipating it will remain relevant and robust for another decade.
  • Innovation with WebGPU: Embracing the latest in rendering technology, we've seamlessly integrated WebGPU, not as an add-on to our existing WebGL renderer but as a core paradigm, ensuring PixiJS remains at the cutting edge as WebGL phases out.
  • Leveraging Modern JavaScript: The advancements in JavaScript have significantly simplified development. We've utilized features like object destructuring and options to make v8 cleaner and more powerful.
  • Correcting Past Oversights: Every project has its lessons. With v8, we've addressed and rearchitected certain aspects of PixiJS, reducing complexity and enhancing functionality, particularly in areas we felt were overengineered in the past (looking at you, textures!).
  • Boosting Performance: PixiJS is already renowned for its speed. With v8, we've unlocked even greater performance, making it faster across the board compared to v7.

We're incredibly proud of PixiJS v8 and eager to share the improvements and new features with you. While there are some breaking API changes, we've provided a migration guide and ensured compatibility with v7 wherever possible. Get ready to experience the next level of 2D rendering with PixiJS v8!



🎁 Whats New?

There are numerous updates to discuss, more than can be covered in a single post! Below are the key highlights. For a more detailed exploration of these changes, be sure to follow the links provided above.

📈 New Performance Bar

bunnies

The performance of v8 is faster for both renderers. This means by using v8 and the WebGL renderer, all the speed improvements apply! This is mainly as we have taken great care to make a more reactive render loop that only updates what it needs to. Check out the numbers here:

  • CPU = time spent by the CPU rendering a single frame
  • GPU = time spent by the GPU rendering a single frame
Bunny SituationV7 CPUV8 CPUCPU DifV7 GPUV8 GPUGPU dif
100k sprites all moving~50ms~15ms
233%
~9ms~2ms
350%
100k sprites not moving~21ms~0.12ms
17417%
~9ms~0.5ms
1700%
100k sprites (changing scene structure)~50ms~24ms
108%
~9ms~2ms
350%

These benchmark numbers are based on the Bunnymark test that you can try yourself.

🖥️ WebGPU Renderer

PixiJS + webGPU = love

We've implemented a WebGPU backend for rendering. Whilst this has created a better graphics paradigm under the hood and set us up for the future of rich web content, it's important to note that WebGPU does not automatically guarantee improved performance over WebGL in all scenarios, as PixiJS often encounters more limitations on the CPU side than the GPU. However, for scenes with numerous batch breaks, such as filters, masks, and blend modes, WebGPU may offer better performance due to its more modern to rendering. As WebGPU is relatively new, it's expected to enhance in speed over time, similar to the development of WebGL. It serves as a solid foundation for future advancements.

📦 New Package Structure

No more "lerna." PixiJS is now just one package with one import root: import {stuff} from ‘pixi.js’. This change means we now have much better tree shaking during app compilation, reducing bundle size if not imported.

Old:

import { Sprite } from "@pixi/sprite";
import { Graphic } from "@pixi/graphics";

New:

import { Sprite, Graphic } from "pixi.js";

✨ We promise the Renderer will work

When initializing a renderer, this process is now asynchronous. This serves two purposes: firstly, identifying and loading the necessary renderer code to minimize what is loaded for your users. We only load the one backend that your user is using. There's no point in loading all the WebGL stuff if they are using WebGPU. Secondly, the initialization of WebGPU itself is an asynchronous process, so we need to have a promise in there somewhere!

import { Application, autoDetectRenderer } from "pixi.js";

const app = new Application();

(async () => {
await app.init({
// application options
});

// or
const renderer = await autoDetectRenderer({}); // WebGL or WebGPU

// do pixi things
})();

🌟 Scene Upgrades

PixiJS logo

  • The concept of render groups has been introduced, enabling containers to utilize GPU for their transformations. This facilitates a true 2D hardware-accelerated camera, ideal for navigating large static worlds through panning and zooming, similar to how a camera moves in a 3D environment rather than moving the world itself. This approach can significantly enhance performance.
const container = new Container({
isRenderGroup:true // this containers transform is now handled on the GPU!
})
  • Another cool new change is that now blend modes and tints are inherited, much like transforms and alpha. This means you can now easily tint a container, and all its children will have the tint applied - same for blend modes, its as easy as:
// will make all the children tinted red
container.tint = 'red'
// will make all the children have the add blend mode
container.blendMode = 'add'

Rendering to a texture with antialiasing has been simplified; you only need to enable the new antialiasing property by setting it to true during the creation of a render texture or when applying a filter, similar to the process used for creating your renderer.

const texture = RenderTexture.create({
width:100,
height:100,
antialias:true // easy as that
})
  • We have also added support for a wide range of Photoshop-like filters, This allows you to take your rendering to the next level! We have including all the classics:
    • ColorBlend, ColorBurnBlend, ColorDodgeBlend, DarkenBlend, DifferenceBlend, DivideBlend, ExclusionBlend, HardLightBlend, HardMixBlend, LightenBlend, LinearBurnBlend, LinearDodgeBlend, LinearLightBlend, LuminosityBlend, NegationBlend, OverlayBlend, PinLightBlend, SaturationBlend, SoftLightBlend, SubtractBlend, VividLightBlend.
  • It's important to mention that these are essentially filters at the core, so it's advisable not to overuse them to avoid potential slowdowns.
import `pixi.js/advanced-blend-modes` // make sure to include them in you lib! (or cherry pick one!)

myContainer.blendMode = 'color-burn` // easy!

🎨 Graphics Upgrades

alt text

  • The Graphics API has undergone changes to become more intuitive and user-friendly, closely resembling the HTML Canvas 2D context API. For instance, drawing and filling a rectangle is simplified as follows:

    graphics
    .rect(50, 50, 100, 100)
    .fill('blue');
  • A GraphicsContext has been introduced, powering all graphics operations. Similar to how one texture can be used across many sprites, a single GraphicsContext can now be utilized by multiple Graphics objects, enhancing efficiency and flexibility.

  • Support for SVG drawing has been added. For example:

    graphics.svg('M 100 350 q 150 -300 300 0');
  • Gradient fill support has been introduced, currently limited to linear gradients, allowing for more visually engaging designs.

  • The new GraphicsPath class enables the drawing and sharing of shapes. This feature is particularly useful as it allows for the creation of paths that can then be transformed into Mesh geometry using the buildGeometryFromPath function, opening up new possibilities for intricate and detailed graphic designs.

  const path = new GraphicsPath()
.rect(-50, -50, 100, 100)

// create geometry from the path:
const geometry = buildGeometryFromPath({
path,
});

const mesh = new Mesh({
geometry,
texture: Texture.WHITE,
});

For more information on these graphics upgrades and guidance on how to adapt to the enhanced Graphics API, please refer to the migration guide, or why not jump in and play with some examples.

📝 Text Upgrades

Text has been upgraded to allow for better performance and usability! We have also integrated HTMLText into v8 as standard.

BitmapFonts can now be generated on the fly or installed upfront as you prefer. They dynamically add characters as the font's glyphs are required, saving on memory. The layout of bitmap text is almost identical to the layout of the default text now, making it easier to switch between the two depending on your needs.


const myText = new BitmapText({
text: 'hello im a bitmap font!',
// font will be dynamically created
style:{
fontFamily: 'Outfit',
fontSize: 12,
fill: 'red',
}
})

Text fills and strokes now conform to the same fills and strokes as graphics. This means Gradients, textures, and all the fun ways you can fill and stroke graphics can now be applied to Text.

const myText = new Text({
text: 'hello im some fancy text',
// font will be dynamically created!
style:{
fontFamily: 'Outfit',
fontSize: 12,
fill: { texture, color:'red'} // same as graphics api fills
stroke: { width:3, color:'blue' } // same as graphics api strokes
}
})

🤝 What now? Get involved!

As PixiJS v8 takes its first steps into the world, we're eager to see it grow with your feedback and contributions. Now we know things won't be perfect, but we're committed to quick responses on GitHub and Discord to any issues that arise, valuing your input to make PixiJS even better.

A heartfelt thanks to our early adopters (everyone in here) for testing the limits of v8, to our dedicated contributors and team for their hard work. Your efforts and insights are invaluable to us. We could not have gotten here without you!

A final big shout-out to PlayCo for their support in making this release a reality!

Let's continue to innovate and push the boundaries of web graphics together. Your engagement is key to PixiJS's evolution, and we're excited to see where we can go with your help.

📲 Keep in touch

To stay in the loop, we invite you to follow Doormat23 and PixiJS on social media, where we'll be unveiling more exciting updates shortly. Alternatively, you can join our vibrant community on Discord for direct engagement and real-time chit-chats.

· 6 min read
GoodBoyDigital

We're thrilled to offer an exclusive preview of the future of 2D web graphics with the Beta release of PixiJS v8. Although not yet finalized, this Beta iteration is packed with killer performance improvements and features we're eager for you to start playing with!

Over the course of a decade—yes, you read that right, ten years!—we've implemented significant changes to the PixiJS engine. But the advancements in this new release are among the most monumental we've ever made!

- - + + \ No newline at end of file diff --git a/blog/archive.html b/blog/archive.html index af3409529..9ee5579bf 100644 --- a/blog/archive.html +++ b/blog/archive.html @@ -9,13 +9,13 @@ - - + + - - + + \ No newline at end of file diff --git a/blog/pixi-universe.html b/blog/pixi-universe.html index 3fa0afd30..32d67f652 100644 --- a/blog/pixi-universe.html +++ b/blog/pixi-universe.html @@ -9,15 +9,15 @@ - - + +

Introducing the PixiJS Universe!

· 11 min read
Zyie

We are excited to announce the launch of the PixiJS Universe, an initiative to further enhance the capabilities of PixiJS and make it even easier for developers to create amazing games and apps.

For years, PixiJS has been the most popular 2D renderer for the web, but it was always "just a rendering engine." The community has created many great tools to help developers build games and applications with PixiJS, but we lacked the manpower to maintain and improve these tools, causing fragmentation in the community. To address this, Playco has assembled a dedicated team of developers who will work on PixiJS full-time. Over the next 12 months, we have more than ten projects planned, and in this announcement, we would like to introduce some of them.

Phase 1​

We have several new projects in the works, and we are releasing them in four phases over the year. We are currently nearing the end of phase 1, which has seen the release of several exciting new tools and libraries for PixiJS:

PixiJS Website​

First up we are excited to announce that we will be releasing a beta version of our new website for PixiJS.

The current documentation has suffered from long-term organic growth over the years with little structure and as such much of the PixiJS documentation is fragmented across multiple sites. This new website will put everything you need in one place and be easily searchable.

We are also planning on improving the documentation and adding more guides and examples, as well as considering translating the documentation into other languages.

If you have any ideas on how to improve the site please let us know!

PixiJS React​

Next up is PixiJS React. A library that provides a way to use PixiJS in React applications. PixiJS React is a continuation of the react-pixi library created by Patrick Brouwer, which has been widely used by the PixiJS community in React projects. PixiJS has taken over maintenance of the library and is dedicated to improving the library's performance, documentation, and support for new features.

The library provides an easy-to-use interface that makes it easy for developers to create React applications with PixiJS. The library integrates all the core features of PixiJS and allows you to create custom components for 3rd party libraries.

PixiJS Open Games​

We have now released a new repository called "PixiJS Open Games". This is a collection of open-source games that showcases how to use PixiJS to create games and is released under the MIT license. The purpose of these games is to provide professional examples of how to use PixiJS for game development.

The first two games released are a match-3 game and a bubble shooter game. These games not only demonstrate how to use PixiJS for game development but also how to use other libraries such as PixiJS UI and AssetPack. We also have more games planned for release, which will demonstrate how to use PixiJS with other libraries such as PixiJS Layout and PixiJS React.

PixiJS Open Games will hopefully be a valuable resource for game developers who want to learn how to use PixiJS for game development and will also be a great source of inspiration for developers looking to create their own games using PixiJS. The project is available on GitHub for anyone who wants to explore the code or contribute to the project.

PixiJS UI & PixiJS Layout​

PixiJS UI is a new library for developers who want to create beautiful and functional user interfaces with PixiJS. The library includes a range of components such as buttons, checkboxes, sliders, text inputs, scroll views, lists, radio buttons, and progress bars, which can be easily integrated into your game. These components are highly customizable, allowing you to tweak the appearance and behaviour of each element to fit your game's specific needs.

PixiJS UI has been used in all of the open-source games, so feel free to check these out for real-world examples.

PixiJS Layout is another library that can make your life as a developer easier. This library enables you to create responsive layouts using PixiJS, which means you can design interfaces that adapt to different screen sizes and aspect ratios. PixiJS Layout works well with PixiJS UI, allowing you to combine both libraries to create complex, dynamic interfaces that respond to user input and screen changes.

With PixiJS Layout, you have the flexibility to create resizable layouts that can be adjusted to fit any screen size or device. This means that your game's interface can look great on everything from small mobile devices to large desktop displays.

PixiJS Layout is still under development but will be ready in the next few weeks

AssetPack​

Finally, for phase 1 we are announcing AssetPack.

Asset management is an important part of developing applications, and the new AssetPack library aims to make this process easier. AssetPack is a framework-agnostic library that can be used with any framework, including PixiJS, ThreeJS, and Phaser. It provides a range of features that help developers manage their assets efficiently. The key feature of AssetPack is the ability to automatically generate new assets on the fly. For example, you can provide it with a folder of individual images and it will generate sprite sheets, which can significantly improve the performance of your application. It also provides plugins to generate mipmaps, convert fonts to different formats, convert audio to different formats, compress images, and minify JSON. These features help developers optimize their assets for faster loading times, better performance, and improved user experience.

We will soon be releasing a new blog post that provides more details on how to use it. With its many useful features and framework-agnostic design. However, if you want to get stuck in today then check out the GitHub repo

Phase 2​

Phase 2 will begin shortly and aims to make it easier to work with PixiJS applications.

PixiJS JumpStart​

Jumpstart is a new CLI tool being developed by the PixiJS team to simplify the process of creating new PixiJS applications. With this tool, developers will no longer need to set up complicated tooling or worry about setting up different bundlers and frameworks. The tool will handle all the setup for you, allowing you to focus on building your application.

Jumpstart will be similar to other CLI tools such as Create-React-App or Create-Vue, which have become popular in the front-end development community. The tool will provide templates for different bundlers and frameworks, including webpack, parcel, rollup, and more. This will make it easy for developers to get started with PixiJS regardless of their preferred tools and workflows. With Jumpstart, you'll be able to create a new PixiJS application in just a few minutes and start building right away.

PixiJS Dev Tools​

PixiJS dev tools will be a browser extension that is planned to be released soon to help developers debug their PixiJS applications. This tool aims to make it easier for developers to understand the inner workings of PixiJS, optimize their code, and follow best practices. It is designed to help developers diagnose performance issues and visualize the resources that their applications are consuming.

One of the key features of the PixiJS Dev Tools is its ability to help developers understand the complex process of batching in PixiJS. Batching is a technique used to optimize the rendering of multiple objects in the same draw call. This process can be complicated to understand, especially for new developers. PixiJS Dev Tools aims to make it easier to debug and optimize the rendering of objects.

Overall, PixiJS Dev Tools will be a powerful tool that will make it easier for developers to build high-performance, visually stunning applications with PixiJS. By providing developers with a deeper understanding of the inner workings of PixiJS, this toolset will help developers optimize their code and create more efficient and engaging applications.

Phase 3​

Phase 3 is where our long-term projects start to be revealed. These are major changes to the PixiJS ecosystem that we are incredibly excited about

Comet​

Comet will be a new editor that aims to make it easier than ever to design and create games and applications with PixiJS. With its intuitive and user-friendly interface, the editor is designed to appeal to both designers and developers, allowing both groups to collaborate and work more efficiently.

One of the standout features of Comet is the visual interface it provides for creating and editing scenes, sprites, animations, and more. This means that designers can create and edit complex scenes without ever having to write a single line of code. The editor provides a range of tools and options for creating sprites, animations, and other game elements, making it easy to get started with creating a game or application.

In addition, developers will appreciate the runtime player feature, which allows them to easily recreate scenes in their own applications. This makes it easy to test and iterate on designs, ensuring that the final product is both functional and visually appealing. And with multi-user, real-time collaboration, Comet makes it easy for teams to work together, sharing assets and ideas and creating high-quality games and applications in record time.

PixiJS v8​

PixiJS v8 will be the next major release that represents a complete rewrite of PixiJS from the ground up. The development team has leveraged their extensive experience over many years to make improvements and optimizations to the core PixiJS engine. The new version of PixiJS is designed to be faster and more efficient, providing a significant improvement in rendering performance compared to v7 (currently sitting at x2)

One of the most exciting features of PixiJS v8 is the inclusion of first-class support for WebGPU, which is a new graphics API that is being developed by major browser vendors. This will enable developers to take advantage of advanced GPU capabilities, which can significantly improve the performance of graphics-intensive applications. In addition to WebGPU support, the PixiJS team has also made a significant effort to optimize the engine for the canvas renderer, which will be available as a first-class option for developers looking to reduce bundle size.

Overall, PixiJS v8 represents a major leap forward for us, developers can expect a much faster and more efficient engine that is better suited for building complex, graphics-intensive applications.

Phase 4​

Phase 4 represents a leap into new territory for PixiJS as we look to delve deeper into areas outside of strictly 2D rendering.

PixiJS 3D​

For years, Goodboy (now Playco) has had an internal 3D engine called Odie that was built on top of PixiJS. We are now planning to open-source it, which is exciting for those of you who want to seamlessly mix 2D and 3D content in your games or applications. With PixiJS 3D, you will no longer need to switch between engines or frameworks to incorporate 3D elements in your project.

Although this is a long-term project, the team is making progress and plans to share more information later in the year. This release will greatly expand PixiJS's capabilities and give developers even more flexibility when building their applications.

PixiJS Game Engine​

Finally, we are thrilled to announce that we will be working on a new library called PixiJS Game Engine. This game engine aims to provide everything you would expect from a 2D/3D game engine and will offer many features and tools to make game development easier and more efficient.

Some of the features of PixiJS Game Engine will include support for physics engines, audio, input handling, asset loading and management, state management, animation and tweening, and more.

Conclusion

We've shared a lot of exciting news about new projects and updates coming to the PixiJS community. There's a lot to look forward to in the upcoming months.

We want to extend our sincere thanks to the PixiJS community, its contributors, and Playco for making all of this possible. We're excited to see what you'll create with these new tools and resources, and we look forward to continuing to support and grow the PixiJS ecosystem. Be sure to check out the GitHub links mentioned above and stay tuned for more updates on the PixiJS Universe!

- - + + \ No newline at end of file diff --git a/blog/pixi-v8-beta.html b/blog/pixi-v8-beta.html index 86480b57b..520d615f0 100644 --- a/blog/pixi-v8-beta.html +++ b/blog/pixi-v8-beta.html @@ -9,15 +9,15 @@ - - + +

PixiJS v8 Beta! 🎉

· 6 min read
GoodBoyDigital

We're thrilled to offer an exclusive preview of the future of 2D web graphics with the Beta release of PixiJS v8. Although not yet finalized, this Beta iteration is packed with killer performance improvements and features we're eager for you to start playing with!

Over the course of a decade—yes, you read that right, ten years!—we've implemented significant changes to the PixiJS engine. But the advancements in this new release are among the most monumental we've ever made!

Two driving factors catalysed our approach to re-engineering the codebase and rendering pipeline in v8:

1. 😍 Embracing WebGPU

PixiJS + webGPU = love

The newcomer WebGPU offers a substantial performance improvement over its predecessor, WebGL. It propels web computations and graphics into a new era, providing a more efficient and robust API. Soon, it will be the go-to method for rendering most GPU-powered content on the web.

This shift is reminiscent of PixiJS's initial launch. At that time, WebGL was new and only available in a handful of desktop browsers, while Canvas was ubiquitous. PixiJS's standout feature was its ability to first attempt rendering with WebGL and then fall back to Canvas as a Plan B. This approach allowed PixiJS content to immediately benefit as WebGL gained traction. Fast forward to today, and WebGL is now available on 95% of browsers.

History is repeating itself with WebGPU, currently supported in only a few desktop browsers and roughly 27% of the market. However, it's only a matter of time before it becomes universally supported. PixiJS aims to execute the same fallback strategy, allowing you to always leverage the best technology available without needing to rewrite your code. This is precisely what version 8 achieves and will future proof everything we make for another ten years :D

2. 🚀 Turbocharging Performance

bunnies

PixiJS has always been synonymous with speed and high-performance graphics. With v8, we've revisited our architecture to optimize both static and dynamic rendering. While v7 is fast, it operates as a somewhat ‘naïve’ renderer.

v7 approach:

  1. Traverse the scene graph and make sure all the transforms are correct
  2. Traverse the scene graph a second time and do the following
    • Build batches to render
    • Upload the data to the GPU
    • Draw the batch to the screen.

v8 approach

  1. Update the transform of only things that changed
  2. Traverse the scene graph and construct a set of instructions.
  3. Upload all scene data to GPU in one go.
  4. Execute rendering based on the instructions.

There are three key changes to this loop that give us a performance bump.

  • First, we update only the elements that have changed. If nothing has moved, no code is executed, optimizing computational overhead.
  • Second, if the scene graph remains unchanged in subsequent frames, we reuse the existing rendering instructions. This avoids the overhead of reconstructing these instructions for each frame.
  • Third, if no elements in the scene change position, the data upload step (Step 3) is entirely skipped, thereby saving bandwidth and further reducing computational work.

The net effect of these improvements? A decent performance leap across varying use-cases:

CPU = time spent by the cpu rendering a single frame GPU = time spend by the gpu rendering a single frame

Bunny SituationV7 CPUV8 CPUCPU DifV7 GPUV8 GPUGPU dif
100k sprites all moving~50ms~15ms
233%
~9ms~2ms
350%
100k sprites not moving~21ms~0.12ms
17417%
~9ms~0.5ms
1700%
100k sprites (changing scene structure)~50ms~24ms
108%
~9ms~2ms
350%

These benchmark numbers are based on this Bunnymark test that you can try yourself!

Please have a play, you can fiddle with the parameters in the url to change the number of bunnies. Curious to see what numbers all of you get!

Best of all, these improvements apply to WebGPU and the WebGL renderer. As with all of PixiJs’s party tricks, this all happens automatically :D

But Wait, There's More!

While the two key drivers behind this overhaul were performance and usability, we didn't stop there. We've seized this opportunity to enhance the API and introduce a plethora of new features to the engine—far too many to encapsulate in a single post!

Stay tuned for upcoming blog posts where we'll delve deeper into these additional improvements and API refinements, empowering you to create even more remarkable projects. For a comprehensive overview of what's new, don't miss the release notes.

As a crucial note, PixiJS v8 retains much of the familiar API despite undergoing significant internal updates. Our changes are geared toward making PixiJS more robust and user-friendly. When you encounter modifications, rest assured that the v7 methodology will continue to work—you'll simply see a deprecation warning, guiding you towards optimal practices.

Over to you!

As we progress toward the release candidate, now is the perfect time for you to dive in and explore v8. Your feedback at this stage is invaluable for fine-tuning our engine. We invite you to share your thoughts—the good, the bad, and the ugly—report bugs, and even contribute code. Together, we can elevate PixiJS to unprecedented heights.

👇 Don't wait—dive right in! Explore the PixiJS v8 Codebase on GitHub

Steps to install:

via npm you can install the beta version like so:

npm install pixi.js@prerelease-v8

then you can create the most appropriate renderer using the new autoDetectRenderer function:

import { autoDetectRenderer } from "pixi.js";

async function init()
{
const renderer = await autoDetectRenderer({
// any settings
}); // will return a WebGL or WebGPU renderer
}

Start experimenting with PixiJS v8 Beta today and join us in shaping the future of 2D web graphics! 🎉

Keep in touch!

"To stay in the loop, we invite you to follow Doormat23 and PixiJS on social media, where we'll be unveiling more exciting updates shortly. Alternatively, you can join our vibrant community on Discord for direct engagement and real-time conversations.

- - + + \ No newline at end of file diff --git a/blog/pixi-v8-launches.html b/blog/pixi-v8-launches.html index ed02af192..9830151f8 100644 --- a/blog/pixi-v8-launches.html +++ b/blog/pixi-v8-launches.html @@ -9,13 +9,13 @@ - - + +

PixiJS v8 Launches! 🎉

· 10 min read
GoodBoyDigital

Get ready to push the boundaries of what's possible on the web! PixiJS v8 has landed, and it's a game-changer. Celebrating a decade of driving innovation, we've supercharged PixiJS with the latest technological advancements, making it faster, more robust, and ridiculously powerful. From the seamless integration of WebGPU to leveraging modern JavaScript for smoother development, PixiJS v8 is all about empowering you to create jaw-dropping web experiences with ease. It's not just an update; it's the future of 2D web graphics, today. Dive in and let PixiJS v8 elevate your projects to unseen heights. Let's make the web a more beautiful place, one pixi(el) at a time.

🚀 Revolutionizing Web Graphics: Welcome to PixiJS v8

PixiJS logo

It's hard to believe that PixiJS has been part of the open-source community for a whopping ten years. In that time, the digital landscape has evolved tremendously, and so has PixiJS. We've seen significant updates, like the transition to TypeScript, and we've overhauled major parts of the engine, such as asset loading and WebGL integration.

Now, we're thrilled to unveil PixiJS v8, arguably our most substantial update ever. This release is not just a reflection on the shortcomings of v7, which has served us well, but an acknowledgment that there's always room for improvement. Over time, we've all encountered aspects of our code we wished we could refine. Often, the best solutions and insights emerge only after we've stepped back from the problem, allowing us to see the bigger picture.

With PixiJS v8, our aim was to revisit and enhance the foundation of PixiJS, streamlining its core rather than just adding layers of code.

Our vision for v8 was clear:

  • Longevity: We designed v8 to stand the test of time, anticipating it will remain relevant and robust for another decade.
  • Innovation with WebGPU: Embracing the latest in rendering technology, we've seamlessly integrated WebGPU, not as an add-on to our existing WebGL renderer but as a core paradigm, ensuring PixiJS remains at the cutting edge as WebGL phases out.
  • Leveraging Modern JavaScript: The advancements in JavaScript have significantly simplified development. We've utilized features like object destructuring and options to make v8 cleaner and more powerful.
  • Correcting Past Oversights: Every project has its lessons. With v8, we've addressed and rearchitected certain aspects of PixiJS, reducing complexity and enhancing functionality, particularly in areas we felt were overengineered in the past (looking at you, textures!).
  • Boosting Performance: PixiJS is already renowned for its speed. With v8, we've unlocked even greater performance, making it faster across the board compared to v7.

We're incredibly proud of PixiJS v8 and eager to share the improvements and new features with you. While there are some breaking API changes, we've provided a migration guide and ensured compatibility with v7 wherever possible. Get ready to experience the next level of 2D rendering with PixiJS v8!



🎁 Whats New?

There are numerous updates to discuss, more than can be covered in a single post! Below are the key highlights. For a more detailed exploration of these changes, be sure to follow the links provided above.

📈 New Performance Bar

bunnies

The performance of v8 is faster for both renderers. This means by using v8 and the WebGL renderer, all the speed improvements apply! This is mainly as we have taken great care to make a more reactive render loop that only updates what it needs to. Check out the numbers here:

  • CPU = time spent by the CPU rendering a single frame
  • GPU = time spent by the GPU rendering a single frame
Bunny SituationV7 CPUV8 CPUCPU DifV7 GPUV8 GPUGPU dif
100k sprites all moving~50ms~15ms
233%
~9ms~2ms
350%
100k sprites not moving~21ms~0.12ms
17417%
~9ms~0.5ms
1700%
100k sprites (changing scene structure)~50ms~24ms
108%
~9ms~2ms
350%

These benchmark numbers are based on the Bunnymark test that you can try yourself.

🖥️ WebGPU Renderer

PixiJS + webGPU = love

We've implemented a WebGPU backend for rendering. Whilst this has created a better graphics paradigm under the hood and set us up for the future of rich web content, it's important to note that WebGPU does not automatically guarantee improved performance over WebGL in all scenarios, as PixiJS often encounters more limitations on the CPU side than the GPU. However, for scenes with numerous batch breaks, such as filters, masks, and blend modes, WebGPU may offer better performance due to its more modern to rendering. As WebGPU is relatively new, it's expected to enhance in speed over time, similar to the development of WebGL. It serves as a solid foundation for future advancements.

📦 New Package Structure

No more "lerna." PixiJS is now just one package with one import root: import {stuff} from ‘pixi.js’. This change means we now have much better tree shaking during app compilation, reducing bundle size if not imported.

Old:

import { Sprite } from "@pixi/sprite";
import { Graphic } from "@pixi/graphics";

New:

import { Sprite, Graphic } from "pixi.js";

✨ We promise the Renderer will work

When initializing a renderer, this process is now asynchronous. This serves two purposes: firstly, identifying and loading the necessary renderer code to minimize what is loaded for your users. We only load the one backend that your user is using. There's no point in loading all the WebGL stuff if they are using WebGPU. Secondly, the initialization of WebGPU itself is an asynchronous process, so we need to have a promise in there somewhere!

import { Application, autoDetectRenderer } from "pixi.js";

const app = new Application();

(async () => {
await app.init({
// application options
});

// or
const renderer = await autoDetectRenderer({}); // WebGL or WebGPU

// do pixi things
})();

🌟 Scene Upgrades

PixiJS logo

  • The concept of render groups has been introduced, enabling containers to utilize GPU for their transformations. This facilitates a true 2D hardware-accelerated camera, ideal for navigating large static worlds through panning and zooming, similar to how a camera moves in a 3D environment rather than moving the world itself. This approach can significantly enhance performance.
const container = new Container({
isRenderGroup:true // this containers transform is now handled on the GPU!
})
  • Another cool new change is that now blend modes and tints are inherited, much like transforms and alpha. This means you can now easily tint a container, and all its children will have the tint applied - same for blend modes, its as easy as:
// will make all the children tinted red
container.tint = 'red'
// will make all the children have the add blend mode
container.blendMode = 'add'

Rendering to a texture with antialiasing has been simplified; you only need to enable the new antialiasing property by setting it to true during the creation of a render texture or when applying a filter, similar to the process used for creating your renderer.

const texture = RenderTexture.create({
width:100,
height:100,
antialias:true // easy as that
})
  • We have also added support for a wide range of Photoshop-like filters, This allows you to take your rendering to the next level! We have including all the classics:
    • ColorBlend, ColorBurnBlend, ColorDodgeBlend, DarkenBlend, DifferenceBlend, DivideBlend, ExclusionBlend, HardLightBlend, HardMixBlend, LightenBlend, LinearBurnBlend, LinearDodgeBlend, LinearLightBlend, LuminosityBlend, NegationBlend, OverlayBlend, PinLightBlend, SaturationBlend, SoftLightBlend, SubtractBlend, VividLightBlend.
  • It's important to mention that these are essentially filters at the core, so it's advisable not to overuse them to avoid potential slowdowns.
import `pixi.js/advanced-blend-modes` // make sure to include them in you lib! (or cherry pick one!)

myContainer.blendMode = 'color-burn` // easy!

🎨 Graphics Upgrades

alt text

  • The Graphics API has undergone changes to become more intuitive and user-friendly, closely resembling the HTML Canvas 2D context API. For instance, drawing and filling a rectangle is simplified as follows:

    graphics
    .rect(50, 50, 100, 100)
    .fill('blue');
  • A GraphicsContext has been introduced, powering all graphics operations. Similar to how one texture can be used across many sprites, a single GraphicsContext can now be utilized by multiple Graphics objects, enhancing efficiency and flexibility.

  • Support for SVG drawing has been added. For example:

    graphics.svg('M 100 350 q 150 -300 300 0');
  • Gradient fill support has been introduced, currently limited to linear gradients, allowing for more visually engaging designs.

  • The new GraphicsPath class enables the drawing and sharing of shapes. This feature is particularly useful as it allows for the creation of paths that can then be transformed into Mesh geometry using the buildGeometryFromPath function, opening up new possibilities for intricate and detailed graphic designs.

  const path = new GraphicsPath()
.rect(-50, -50, 100, 100)

// create geometry from the path:
const geometry = buildGeometryFromPath({
path,
});

const mesh = new Mesh({
geometry,
texture: Texture.WHITE,
});

For more information on these graphics upgrades and guidance on how to adapt to the enhanced Graphics API, please refer to the migration guide, or why not jump in and play with some examples.

📝 Text Upgrades

Text has been upgraded to allow for better performance and usability! We have also integrated HTMLText into v8 as standard.

BitmapFonts can now be generated on the fly or installed upfront as you prefer. They dynamically add characters as the font's glyphs are required, saving on memory. The layout of bitmap text is almost identical to the layout of the default text now, making it easier to switch between the two depending on your needs.


const myText = new BitmapText({
text: 'hello im a bitmap font!',
// font will be dynamically created
style:{
fontFamily: 'Outfit',
fontSize: 12,
fill: 'red',
}
})

Text fills and strokes now conform to the same fills and strokes as graphics. This means Gradients, textures, and all the fun ways you can fill and stroke graphics can now be applied to Text.

const myText = new Text({
text: 'hello im some fancy text',
// font will be dynamically created!
style:{
fontFamily: 'Outfit',
fontSize: 12,
fill: { texture, color:'red'} // same as graphics api fills
stroke: { width:3, color:'blue' } // same as graphics api strokes
}
})

🤝 What now? Get involved!

As PixiJS v8 takes its first steps into the world, we're eager to see it grow with your feedback and contributions. Now we know things won't be perfect, but we're committed to quick responses on GitHub and Discord to any issues that arise, valuing your input to make PixiJS even better.

A heartfelt thanks to our early adopters (everyone in here) for testing the limits of v8, to our dedicated contributors and team for their hard work. Your efforts and insights are invaluable to us. We could not have gotten here without you!

A final big shout-out to PlayCo for their support in making this release a reality!

Let's continue to innovate and push the boundaries of web graphics together. Your engagement is key to PixiJS's evolution, and we're excited to see where we can go with your help.

📲 Keep in touch

To stay in the loop, we invite you to follow Doormat23 and PixiJS on social media, where we'll be unveiling more exciting updates shortly. Alternatively, you can join our vibrant community on Discord for direct engagement and real-time chit-chats.

- - + + \ No newline at end of file diff --git a/blog/tags.html b/blog/tags.html index 8d7855c57..3d0a2853b 100644 --- a/blog/tags.html +++ b/blog/tags.html @@ -9,13 +9,13 @@ - - + + - - + + \ No newline at end of file diff --git a/blog/tags/pixi-js-universe.html b/blog/tags/pixi-js-universe.html index e5e6775ef..dc3b36596 100644 --- a/blog/tags/pixi-js-universe.html +++ b/blog/tags/pixi-js-universe.html @@ -9,13 +9,13 @@ - - + +

One post tagged with "PixiJS Universe"

View All Tags
- - + + \ No newline at end of file diff --git a/blog/tags/pixi-js.html b/blog/tags/pixi-js.html index b8ac3308f..ff3488464 100644 --- a/blog/tags/pixi-js.html +++ b/blog/tags/pixi-js.html @@ -9,13 +9,13 @@ - - + +

3 posts tagged with "PixiJS"

View All Tags

· 10 min read
GoodBoyDigital

Get ready to push the boundaries of what's possible on the web! PixiJS v8 has landed, and it's a game-changer. Celebrating a decade of driving innovation, we've supercharged PixiJS with the latest technological advancements, making it faster, more robust, and ridiculously powerful. From the seamless integration of WebGPU to leveraging modern JavaScript for smoother development, PixiJS v8 is all about empowering you to create jaw-dropping web experiences with ease. It's not just an update; it's the future of 2D web graphics, today. Dive in and let PixiJS v8 elevate your projects to unseen heights. Let's make the web a more beautiful place, one pixi(el) at a time.

🚀 Revolutionizing Web Graphics: Welcome to PixiJS v8

PixiJS logo

It's hard to believe that PixiJS has been part of the open-source community for a whopping ten years. In that time, the digital landscape has evolved tremendously, and so has PixiJS. We've seen significant updates, like the transition to TypeScript, and we've overhauled major parts of the engine, such as asset loading and WebGL integration.

Now, we're thrilled to unveil PixiJS v8, arguably our most substantial update ever. This release is not just a reflection on the shortcomings of v7, which has served us well, but an acknowledgment that there's always room for improvement. Over time, we've all encountered aspects of our code we wished we could refine. Often, the best solutions and insights emerge only after we've stepped back from the problem, allowing us to see the bigger picture.

With PixiJS v8, our aim was to revisit and enhance the foundation of PixiJS, streamlining its core rather than just adding layers of code.

Our vision for v8 was clear:

  • Longevity: We designed v8 to stand the test of time, anticipating it will remain relevant and robust for another decade.
  • Innovation with WebGPU: Embracing the latest in rendering technology, we've seamlessly integrated WebGPU, not as an add-on to our existing WebGL renderer but as a core paradigm, ensuring PixiJS remains at the cutting edge as WebGL phases out.
  • Leveraging Modern JavaScript: The advancements in JavaScript have significantly simplified development. We've utilized features like object destructuring and options to make v8 cleaner and more powerful.
  • Correcting Past Oversights: Every project has its lessons. With v8, we've addressed and rearchitected certain aspects of PixiJS, reducing complexity and enhancing functionality, particularly in areas we felt were overengineered in the past (looking at you, textures!).
  • Boosting Performance: PixiJS is already renowned for its speed. With v8, we've unlocked even greater performance, making it faster across the board compared to v7.

We're incredibly proud of PixiJS v8 and eager to share the improvements and new features with you. While there are some breaking API changes, we've provided a migration guide and ensured compatibility with v7 wherever possible. Get ready to experience the next level of 2D rendering with PixiJS v8!



🎁 Whats New?

There are numerous updates to discuss, more than can be covered in a single post! Below are the key highlights. For a more detailed exploration of these changes, be sure to follow the links provided above.

📈 New Performance Bar

bunnies

The performance of v8 is faster for both renderers. This means by using v8 and the WebGL renderer, all the speed improvements apply! This is mainly as we have taken great care to make a more reactive render loop that only updates what it needs to. Check out the numbers here:

  • CPU = time spent by the CPU rendering a single frame
  • GPU = time spent by the GPU rendering a single frame
Bunny SituationV7 CPUV8 CPUCPU DifV7 GPUV8 GPUGPU dif
100k sprites all moving~50ms~15ms
233%
~9ms~2ms
350%
100k sprites not moving~21ms~0.12ms
17417%
~9ms~0.5ms
1700%
100k sprites (changing scene structure)~50ms~24ms
108%
~9ms~2ms
350%

These benchmark numbers are based on the Bunnymark test that you can try yourself.

🖥️ WebGPU Renderer

PixiJS + webGPU = love

We've implemented a WebGPU backend for rendering. Whilst this has created a better graphics paradigm under the hood and set us up for the future of rich web content, it's important to note that WebGPU does not automatically guarantee improved performance over WebGL in all scenarios, as PixiJS often encounters more limitations on the CPU side than the GPU. However, for scenes with numerous batch breaks, such as filters, masks, and blend modes, WebGPU may offer better performance due to its more modern to rendering. As WebGPU is relatively new, it's expected to enhance in speed over time, similar to the development of WebGL. It serves as a solid foundation for future advancements.

📦 New Package Structure

No more "lerna." PixiJS is now just one package with one import root: import {stuff} from ‘pixi.js’. This change means we now have much better tree shaking during app compilation, reducing bundle size if not imported.

Old:

import { Sprite } from "@pixi/sprite";
import { Graphic } from "@pixi/graphics";

New:

import { Sprite, Graphic } from "pixi.js";

✨ We promise the Renderer will work

When initializing a renderer, this process is now asynchronous. This serves two purposes: firstly, identifying and loading the necessary renderer code to minimize what is loaded for your users. We only load the one backend that your user is using. There's no point in loading all the WebGL stuff if they are using WebGPU. Secondly, the initialization of WebGPU itself is an asynchronous process, so we need to have a promise in there somewhere!

import { Application, autoDetectRenderer } from "pixi.js";

const app = new Application();

(async () => {
await app.init({
// application options
});

// or
const renderer = await autoDetectRenderer({}); // WebGL or WebGPU

// do pixi things
})();

🌟 Scene Upgrades

PixiJS logo

  • The concept of render groups has been introduced, enabling containers to utilize GPU for their transformations. This facilitates a true 2D hardware-accelerated camera, ideal for navigating large static worlds through panning and zooming, similar to how a camera moves in a 3D environment rather than moving the world itself. This approach can significantly enhance performance.
const container = new Container({
isRenderGroup:true // this containers transform is now handled on the GPU!
})
  • Another cool new change is that now blend modes and tints are inherited, much like transforms and alpha. This means you can now easily tint a container, and all its children will have the tint applied - same for blend modes, its as easy as:
// will make all the children tinted red
container.tint = 'red'
// will make all the children have the add blend mode
container.blendMode = 'add'

Rendering to a texture with antialiasing has been simplified; you only need to enable the new antialiasing property by setting it to true during the creation of a render texture or when applying a filter, similar to the process used for creating your renderer.

const texture = RenderTexture.create({
width:100,
height:100,
antialias:true // easy as that
})
  • We have also added support for a wide range of Photoshop-like filters, This allows you to take your rendering to the next level! We have including all the classics:
    • ColorBlend, ColorBurnBlend, ColorDodgeBlend, DarkenBlend, DifferenceBlend, DivideBlend, ExclusionBlend, HardLightBlend, HardMixBlend, LightenBlend, LinearBurnBlend, LinearDodgeBlend, LinearLightBlend, LuminosityBlend, NegationBlend, OverlayBlend, PinLightBlend, SaturationBlend, SoftLightBlend, SubtractBlend, VividLightBlend.
  • It's important to mention that these are essentially filters at the core, so it's advisable not to overuse them to avoid potential slowdowns.
import `pixi.js/advanced-blend-modes` // make sure to include them in you lib! (or cherry pick one!)

myContainer.blendMode = 'color-burn` // easy!

🎨 Graphics Upgrades

alt text

  • The Graphics API has undergone changes to become more intuitive and user-friendly, closely resembling the HTML Canvas 2D context API. For instance, drawing and filling a rectangle is simplified as follows:

    graphics
    .rect(50, 50, 100, 100)
    .fill('blue');
  • A GraphicsContext has been introduced, powering all graphics operations. Similar to how one texture can be used across many sprites, a single GraphicsContext can now be utilized by multiple Graphics objects, enhancing efficiency and flexibility.

  • Support for SVG drawing has been added. For example:

    graphics.svg('M 100 350 q 150 -300 300 0');
  • Gradient fill support has been introduced, currently limited to linear gradients, allowing for more visually engaging designs.

  • The new GraphicsPath class enables the drawing and sharing of shapes. This feature is particularly useful as it allows for the creation of paths that can then be transformed into Mesh geometry using the buildGeometryFromPath function, opening up new possibilities for intricate and detailed graphic designs.

  const path = new GraphicsPath()
.rect(-50, -50, 100, 100)

// create geometry from the path:
const geometry = buildGeometryFromPath({
path,
});

const mesh = new Mesh({
geometry,
texture: Texture.WHITE,
});

For more information on these graphics upgrades and guidance on how to adapt to the enhanced Graphics API, please refer to the migration guide, or why not jump in and play with some examples.

📝 Text Upgrades

Text has been upgraded to allow for better performance and usability! We have also integrated HTMLText into v8 as standard.

BitmapFonts can now be generated on the fly or installed upfront as you prefer. They dynamically add characters as the font's glyphs are required, saving on memory. The layout of bitmap text is almost identical to the layout of the default text now, making it easier to switch between the two depending on your needs.


const myText = new BitmapText({
text: 'hello im a bitmap font!',
// font will be dynamically created
style:{
fontFamily: 'Outfit',
fontSize: 12,
fill: 'red',
}
})

Text fills and strokes now conform to the same fills and strokes as graphics. This means Gradients, textures, and all the fun ways you can fill and stroke graphics can now be applied to Text.

const myText = new Text({
text: 'hello im some fancy text',
// font will be dynamically created!
style:{
fontFamily: 'Outfit',
fontSize: 12,
fill: { texture, color:'red'} // same as graphics api fills
stroke: { width:3, color:'blue' } // same as graphics api strokes
}
})

🤝 What now? Get involved!

As PixiJS v8 takes its first steps into the world, we're eager to see it grow with your feedback and contributions. Now we know things won't be perfect, but we're committed to quick responses on GitHub and Discord to any issues that arise, valuing your input to make PixiJS even better.

A heartfelt thanks to our early adopters (everyone in here) for testing the limits of v8, to our dedicated contributors and team for their hard work. Your efforts and insights are invaluable to us. We could not have gotten here without you!

A final big shout-out to PlayCo for their support in making this release a reality!

Let's continue to innovate and push the boundaries of web graphics together. Your engagement is key to PixiJS's evolution, and we're excited to see where we can go with your help.

📲 Keep in touch

To stay in the loop, we invite you to follow Doormat23 and PixiJS on social media, where we'll be unveiling more exciting updates shortly. Alternatively, you can join our vibrant community on Discord for direct engagement and real-time chit-chats.

· 6 min read
GoodBoyDigital

We're thrilled to offer an exclusive preview of the future of 2D web graphics with the Beta release of PixiJS v8. Although not yet finalized, this Beta iteration is packed with killer performance improvements and features we're eager for you to start playing with!

Over the course of a decade—yes, you read that right, ten years!—we've implemented significant changes to the PixiJS engine. But the advancements in this new release are among the most monumental we've ever made!

- - + + \ No newline at end of file diff --git a/blog/tags/web-gl.html b/blog/tags/web-gl.html index 316cebbab..e6e2cccb4 100644 --- a/blog/tags/web-gl.html +++ b/blog/tags/web-gl.html @@ -9,13 +9,13 @@ - - + +

2 posts tagged with "WebGL"

View All Tags

· 10 min read
GoodBoyDigital

Get ready to push the boundaries of what's possible on the web! PixiJS v8 has landed, and it's a game-changer. Celebrating a decade of driving innovation, we've supercharged PixiJS with the latest technological advancements, making it faster, more robust, and ridiculously powerful. From the seamless integration of WebGPU to leveraging modern JavaScript for smoother development, PixiJS v8 is all about empowering you to create jaw-dropping web experiences with ease. It's not just an update; it's the future of 2D web graphics, today. Dive in and let PixiJS v8 elevate your projects to unseen heights. Let's make the web a more beautiful place, one pixi(el) at a time.

🚀 Revolutionizing Web Graphics: Welcome to PixiJS v8

PixiJS logo

It's hard to believe that PixiJS has been part of the open-source community for a whopping ten years. In that time, the digital landscape has evolved tremendously, and so has PixiJS. We've seen significant updates, like the transition to TypeScript, and we've overhauled major parts of the engine, such as asset loading and WebGL integration.

Now, we're thrilled to unveil PixiJS v8, arguably our most substantial update ever. This release is not just a reflection on the shortcomings of v7, which has served us well, but an acknowledgment that there's always room for improvement. Over time, we've all encountered aspects of our code we wished we could refine. Often, the best solutions and insights emerge only after we've stepped back from the problem, allowing us to see the bigger picture.

With PixiJS v8, our aim was to revisit and enhance the foundation of PixiJS, streamlining its core rather than just adding layers of code.

Our vision for v8 was clear:

  • Longevity: We designed v8 to stand the test of time, anticipating it will remain relevant and robust for another decade.
  • Innovation with WebGPU: Embracing the latest in rendering technology, we've seamlessly integrated WebGPU, not as an add-on to our existing WebGL renderer but as a core paradigm, ensuring PixiJS remains at the cutting edge as WebGL phases out.
  • Leveraging Modern JavaScript: The advancements in JavaScript have significantly simplified development. We've utilized features like object destructuring and options to make v8 cleaner and more powerful.
  • Correcting Past Oversights: Every project has its lessons. With v8, we've addressed and rearchitected certain aspects of PixiJS, reducing complexity and enhancing functionality, particularly in areas we felt were overengineered in the past (looking at you, textures!).
  • Boosting Performance: PixiJS is already renowned for its speed. With v8, we've unlocked even greater performance, making it faster across the board compared to v7.

We're incredibly proud of PixiJS v8 and eager to share the improvements and new features with you. While there are some breaking API changes, we've provided a migration guide and ensured compatibility with v7 wherever possible. Get ready to experience the next level of 2D rendering with PixiJS v8!



🎁 Whats New?

There are numerous updates to discuss, more than can be covered in a single post! Below are the key highlights. For a more detailed exploration of these changes, be sure to follow the links provided above.

📈 New Performance Bar

bunnies

The performance of v8 is faster for both renderers. This means by using v8 and the WebGL renderer, all the speed improvements apply! This is mainly as we have taken great care to make a more reactive render loop that only updates what it needs to. Check out the numbers here:

  • CPU = time spent by the CPU rendering a single frame
  • GPU = time spent by the GPU rendering a single frame
Bunny SituationV7 CPUV8 CPUCPU DifV7 GPUV8 GPUGPU dif
100k sprites all moving~50ms~15ms
233%
~9ms~2ms
350%
100k sprites not moving~21ms~0.12ms
17417%
~9ms~0.5ms
1700%
100k sprites (changing scene structure)~50ms~24ms
108%
~9ms~2ms
350%

These benchmark numbers are based on the Bunnymark test that you can try yourself.

🖥️ WebGPU Renderer

PixiJS + webGPU = love

We've implemented a WebGPU backend for rendering. Whilst this has created a better graphics paradigm under the hood and set us up for the future of rich web content, it's important to note that WebGPU does not automatically guarantee improved performance over WebGL in all scenarios, as PixiJS often encounters more limitations on the CPU side than the GPU. However, for scenes with numerous batch breaks, such as filters, masks, and blend modes, WebGPU may offer better performance due to its more modern to rendering. As WebGPU is relatively new, it's expected to enhance in speed over time, similar to the development of WebGL. It serves as a solid foundation for future advancements.

📦 New Package Structure

No more "lerna." PixiJS is now just one package with one import root: import {stuff} from ‘pixi.js’. This change means we now have much better tree shaking during app compilation, reducing bundle size if not imported.

Old:

import { Sprite } from "@pixi/sprite";
import { Graphic } from "@pixi/graphics";

New:

import { Sprite, Graphic } from "pixi.js";

✨ We promise the Renderer will work

When initializing a renderer, this process is now asynchronous. This serves two purposes: firstly, identifying and loading the necessary renderer code to minimize what is loaded for your users. We only load the one backend that your user is using. There's no point in loading all the WebGL stuff if they are using WebGPU. Secondly, the initialization of WebGPU itself is an asynchronous process, so we need to have a promise in there somewhere!

import { Application, autoDetectRenderer } from "pixi.js";

const app = new Application();

(async () => {
await app.init({
// application options
});

// or
const renderer = await autoDetectRenderer({}); // WebGL or WebGPU

// do pixi things
})();

🌟 Scene Upgrades

PixiJS logo

  • The concept of render groups has been introduced, enabling containers to utilize GPU for their transformations. This facilitates a true 2D hardware-accelerated camera, ideal for navigating large static worlds through panning and zooming, similar to how a camera moves in a 3D environment rather than moving the world itself. This approach can significantly enhance performance.
const container = new Container({
isRenderGroup:true // this containers transform is now handled on the GPU!
})
  • Another cool new change is that now blend modes and tints are inherited, much like transforms and alpha. This means you can now easily tint a container, and all its children will have the tint applied - same for blend modes, its as easy as:
// will make all the children tinted red
container.tint = 'red'
// will make all the children have the add blend mode
container.blendMode = 'add'

Rendering to a texture with antialiasing has been simplified; you only need to enable the new antialiasing property by setting it to true during the creation of a render texture or when applying a filter, similar to the process used for creating your renderer.

const texture = RenderTexture.create({
width:100,
height:100,
antialias:true // easy as that
})
  • We have also added support for a wide range of Photoshop-like filters, This allows you to take your rendering to the next level! We have including all the classics:
    • ColorBlend, ColorBurnBlend, ColorDodgeBlend, DarkenBlend, DifferenceBlend, DivideBlend, ExclusionBlend, HardLightBlend, HardMixBlend, LightenBlend, LinearBurnBlend, LinearDodgeBlend, LinearLightBlend, LuminosityBlend, NegationBlend, OverlayBlend, PinLightBlend, SaturationBlend, SoftLightBlend, SubtractBlend, VividLightBlend.
  • It's important to mention that these are essentially filters at the core, so it's advisable not to overuse them to avoid potential slowdowns.
import `pixi.js/advanced-blend-modes` // make sure to include them in you lib! (or cherry pick one!)

myContainer.blendMode = 'color-burn` // easy!

🎨 Graphics Upgrades

alt text

  • The Graphics API has undergone changes to become more intuitive and user-friendly, closely resembling the HTML Canvas 2D context API. For instance, drawing and filling a rectangle is simplified as follows:

    graphics
    .rect(50, 50, 100, 100)
    .fill('blue');
  • A GraphicsContext has been introduced, powering all graphics operations. Similar to how one texture can be used across many sprites, a single GraphicsContext can now be utilized by multiple Graphics objects, enhancing efficiency and flexibility.

  • Support for SVG drawing has been added. For example:

    graphics.svg('M 100 350 q 150 -300 300 0');
  • Gradient fill support has been introduced, currently limited to linear gradients, allowing for more visually engaging designs.

  • The new GraphicsPath class enables the drawing and sharing of shapes. This feature is particularly useful as it allows for the creation of paths that can then be transformed into Mesh geometry using the buildGeometryFromPath function, opening up new possibilities for intricate and detailed graphic designs.

  const path = new GraphicsPath()
.rect(-50, -50, 100, 100)

// create geometry from the path:
const geometry = buildGeometryFromPath({
path,
});

const mesh = new Mesh({
geometry,
texture: Texture.WHITE,
});

For more information on these graphics upgrades and guidance on how to adapt to the enhanced Graphics API, please refer to the migration guide, or why not jump in and play with some examples.

📝 Text Upgrades

Text has been upgraded to allow for better performance and usability! We have also integrated HTMLText into v8 as standard.

BitmapFonts can now be generated on the fly or installed upfront as you prefer. They dynamically add characters as the font's glyphs are required, saving on memory. The layout of bitmap text is almost identical to the layout of the default text now, making it easier to switch between the two depending on your needs.


const myText = new BitmapText({
text: 'hello im a bitmap font!',
// font will be dynamically created
style:{
fontFamily: 'Outfit',
fontSize: 12,
fill: 'red',
}
})

Text fills and strokes now conform to the same fills and strokes as graphics. This means Gradients, textures, and all the fun ways you can fill and stroke graphics can now be applied to Text.

const myText = new Text({
text: 'hello im some fancy text',
// font will be dynamically created!
style:{
fontFamily: 'Outfit',
fontSize: 12,
fill: { texture, color:'red'} // same as graphics api fills
stroke: { width:3, color:'blue' } // same as graphics api strokes
}
})

🤝 What now? Get involved!

As PixiJS v8 takes its first steps into the world, we're eager to see it grow with your feedback and contributions. Now we know things won't be perfect, but we're committed to quick responses on GitHub and Discord to any issues that arise, valuing your input to make PixiJS even better.

A heartfelt thanks to our early adopters (everyone in here) for testing the limits of v8, to our dedicated contributors and team for their hard work. Your efforts and insights are invaluable to us. We could not have gotten here without you!

A final big shout-out to PlayCo for their support in making this release a reality!

Let's continue to innovate and push the boundaries of web graphics together. Your engagement is key to PixiJS's evolution, and we're excited to see where we can go with your help.

📲 Keep in touch

To stay in the loop, we invite you to follow Doormat23 and PixiJS on social media, where we'll be unveiling more exciting updates shortly. Alternatively, you can join our vibrant community on Discord for direct engagement and real-time chit-chats.

· 6 min read
GoodBoyDigital

We're thrilled to offer an exclusive preview of the future of 2D web graphics with the Beta release of PixiJS v8. Although not yet finalized, this Beta iteration is packed with killer performance improvements and features we're eager for you to start playing with!

Over the course of a decade—yes, you read that right, ten years!—we've implemented significant changes to the PixiJS engine. But the advancements in this new release are among the most monumental we've ever made!

- - + + \ No newline at end of file diff --git a/blog/tags/web-gpu.html b/blog/tags/web-gpu.html index dd346bc39..8c388765d 100644 --- a/blog/tags/web-gpu.html +++ b/blog/tags/web-gpu.html @@ -9,13 +9,13 @@ - - + +

2 posts tagged with "WebGPU"

View All Tags

· 10 min read
GoodBoyDigital

Get ready to push the boundaries of what's possible on the web! PixiJS v8 has landed, and it's a game-changer. Celebrating a decade of driving innovation, we've supercharged PixiJS with the latest technological advancements, making it faster, more robust, and ridiculously powerful. From the seamless integration of WebGPU to leveraging modern JavaScript for smoother development, PixiJS v8 is all about empowering you to create jaw-dropping web experiences with ease. It's not just an update; it's the future of 2D web graphics, today. Dive in and let PixiJS v8 elevate your projects to unseen heights. Let's make the web a more beautiful place, one pixi(el) at a time.

🚀 Revolutionizing Web Graphics: Welcome to PixiJS v8

PixiJS logo

It's hard to believe that PixiJS has been part of the open-source community for a whopping ten years. In that time, the digital landscape has evolved tremendously, and so has PixiJS. We've seen significant updates, like the transition to TypeScript, and we've overhauled major parts of the engine, such as asset loading and WebGL integration.

Now, we're thrilled to unveil PixiJS v8, arguably our most substantial update ever. This release is not just a reflection on the shortcomings of v7, which has served us well, but an acknowledgment that there's always room for improvement. Over time, we've all encountered aspects of our code we wished we could refine. Often, the best solutions and insights emerge only after we've stepped back from the problem, allowing us to see the bigger picture.

With PixiJS v8, our aim was to revisit and enhance the foundation of PixiJS, streamlining its core rather than just adding layers of code.

Our vision for v8 was clear:

  • Longevity: We designed v8 to stand the test of time, anticipating it will remain relevant and robust for another decade.
  • Innovation with WebGPU: Embracing the latest in rendering technology, we've seamlessly integrated WebGPU, not as an add-on to our existing WebGL renderer but as a core paradigm, ensuring PixiJS remains at the cutting edge as WebGL phases out.
  • Leveraging Modern JavaScript: The advancements in JavaScript have significantly simplified development. We've utilized features like object destructuring and options to make v8 cleaner and more powerful.
  • Correcting Past Oversights: Every project has its lessons. With v8, we've addressed and rearchitected certain aspects of PixiJS, reducing complexity and enhancing functionality, particularly in areas we felt were overengineered in the past (looking at you, textures!).
  • Boosting Performance: PixiJS is already renowned for its speed. With v8, we've unlocked even greater performance, making it faster across the board compared to v7.

We're incredibly proud of PixiJS v8 and eager to share the improvements and new features with you. While there are some breaking API changes, we've provided a migration guide and ensured compatibility with v7 wherever possible. Get ready to experience the next level of 2D rendering with PixiJS v8!



🎁 Whats New?

There are numerous updates to discuss, more than can be covered in a single post! Below are the key highlights. For a more detailed exploration of these changes, be sure to follow the links provided above.

📈 New Performance Bar

bunnies

The performance of v8 is faster for both renderers. This means by using v8 and the WebGL renderer, all the speed improvements apply! This is mainly as we have taken great care to make a more reactive render loop that only updates what it needs to. Check out the numbers here:

  • CPU = time spent by the CPU rendering a single frame
  • GPU = time spent by the GPU rendering a single frame
Bunny SituationV7 CPUV8 CPUCPU DifV7 GPUV8 GPUGPU dif
100k sprites all moving~50ms~15ms
233%
~9ms~2ms
350%
100k sprites not moving~21ms~0.12ms
17417%
~9ms~0.5ms
1700%
100k sprites (changing scene structure)~50ms~24ms
108%
~9ms~2ms
350%

These benchmark numbers are based on the Bunnymark test that you can try yourself.

🖥️ WebGPU Renderer

PixiJS + webGPU = love

We've implemented a WebGPU backend for rendering. Whilst this has created a better graphics paradigm under the hood and set us up for the future of rich web content, it's important to note that WebGPU does not automatically guarantee improved performance over WebGL in all scenarios, as PixiJS often encounters more limitations on the CPU side than the GPU. However, for scenes with numerous batch breaks, such as filters, masks, and blend modes, WebGPU may offer better performance due to its more modern to rendering. As WebGPU is relatively new, it's expected to enhance in speed over time, similar to the development of WebGL. It serves as a solid foundation for future advancements.

📦 New Package Structure

No more "lerna." PixiJS is now just one package with one import root: import {stuff} from ‘pixi.js’. This change means we now have much better tree shaking during app compilation, reducing bundle size if not imported.

Old:

import { Sprite } from "@pixi/sprite";
import { Graphic } from "@pixi/graphics";

New:

import { Sprite, Graphic } from "pixi.js";

✨ We promise the Renderer will work

When initializing a renderer, this process is now asynchronous. This serves two purposes: firstly, identifying and loading the necessary renderer code to minimize what is loaded for your users. We only load the one backend that your user is using. There's no point in loading all the WebGL stuff if they are using WebGPU. Secondly, the initialization of WebGPU itself is an asynchronous process, so we need to have a promise in there somewhere!

import { Application, autoDetectRenderer } from "pixi.js";

const app = new Application();

(async () => {
await app.init({
// application options
});

// or
const renderer = await autoDetectRenderer({}); // WebGL or WebGPU

// do pixi things
})();

🌟 Scene Upgrades

PixiJS logo

  • The concept of render groups has been introduced, enabling containers to utilize GPU for their transformations. This facilitates a true 2D hardware-accelerated camera, ideal for navigating large static worlds through panning and zooming, similar to how a camera moves in a 3D environment rather than moving the world itself. This approach can significantly enhance performance.
const container = new Container({
isRenderGroup:true // this containers transform is now handled on the GPU!
})
  • Another cool new change is that now blend modes and tints are inherited, much like transforms and alpha. This means you can now easily tint a container, and all its children will have the tint applied - same for blend modes, its as easy as:
// will make all the children tinted red
container.tint = 'red'
// will make all the children have the add blend mode
container.blendMode = 'add'

Rendering to a texture with antialiasing has been simplified; you only need to enable the new antialiasing property by setting it to true during the creation of a render texture or when applying a filter, similar to the process used for creating your renderer.

const texture = RenderTexture.create({
width:100,
height:100,
antialias:true // easy as that
})
  • We have also added support for a wide range of Photoshop-like filters, This allows you to take your rendering to the next level! We have including all the classics:
    • ColorBlend, ColorBurnBlend, ColorDodgeBlend, DarkenBlend, DifferenceBlend, DivideBlend, ExclusionBlend, HardLightBlend, HardMixBlend, LightenBlend, LinearBurnBlend, LinearDodgeBlend, LinearLightBlend, LuminosityBlend, NegationBlend, OverlayBlend, PinLightBlend, SaturationBlend, SoftLightBlend, SubtractBlend, VividLightBlend.
  • It's important to mention that these are essentially filters at the core, so it's advisable not to overuse them to avoid potential slowdowns.
import `pixi.js/advanced-blend-modes` // make sure to include them in you lib! (or cherry pick one!)

myContainer.blendMode = 'color-burn` // easy!

🎨 Graphics Upgrades

alt text

  • The Graphics API has undergone changes to become more intuitive and user-friendly, closely resembling the HTML Canvas 2D context API. For instance, drawing and filling a rectangle is simplified as follows:

    graphics
    .rect(50, 50, 100, 100)
    .fill('blue');
  • A GraphicsContext has been introduced, powering all graphics operations. Similar to how one texture can be used across many sprites, a single GraphicsContext can now be utilized by multiple Graphics objects, enhancing efficiency and flexibility.

  • Support for SVG drawing has been added. For example:

    graphics.svg('M 100 350 q 150 -300 300 0');
  • Gradient fill support has been introduced, currently limited to linear gradients, allowing for more visually engaging designs.

  • The new GraphicsPath class enables the drawing and sharing of shapes. This feature is particularly useful as it allows for the creation of paths that can then be transformed into Mesh geometry using the buildGeometryFromPath function, opening up new possibilities for intricate and detailed graphic designs.

  const path = new GraphicsPath()
.rect(-50, -50, 100, 100)

// create geometry from the path:
const geometry = buildGeometryFromPath({
path,
});

const mesh = new Mesh({
geometry,
texture: Texture.WHITE,
});

For more information on these graphics upgrades and guidance on how to adapt to the enhanced Graphics API, please refer to the migration guide, or why not jump in and play with some examples.

📝 Text Upgrades

Text has been upgraded to allow for better performance and usability! We have also integrated HTMLText into v8 as standard.

BitmapFonts can now be generated on the fly or installed upfront as you prefer. They dynamically add characters as the font's glyphs are required, saving on memory. The layout of bitmap text is almost identical to the layout of the default text now, making it easier to switch between the two depending on your needs.


const myText = new BitmapText({
text: 'hello im a bitmap font!',
// font will be dynamically created
style:{
fontFamily: 'Outfit',
fontSize: 12,
fill: 'red',
}
})

Text fills and strokes now conform to the same fills and strokes as graphics. This means Gradients, textures, and all the fun ways you can fill and stroke graphics can now be applied to Text.

const myText = new Text({
text: 'hello im some fancy text',
// font will be dynamically created!
style:{
fontFamily: 'Outfit',
fontSize: 12,
fill: { texture, color:'red'} // same as graphics api fills
stroke: { width:3, color:'blue' } // same as graphics api strokes
}
})

🤝 What now? Get involved!

As PixiJS v8 takes its first steps into the world, we're eager to see it grow with your feedback and contributions. Now we know things won't be perfect, but we're committed to quick responses on GitHub and Discord to any issues that arise, valuing your input to make PixiJS even better.

A heartfelt thanks to our early adopters (everyone in here) for testing the limits of v8, to our dedicated contributors and team for their hard work. Your efforts and insights are invaluable to us. We could not have gotten here without you!

A final big shout-out to PlayCo for their support in making this release a reality!

Let's continue to innovate and push the boundaries of web graphics together. Your engagement is key to PixiJS's evolution, and we're excited to see where we can go with your help.

📲 Keep in touch

To stay in the loop, we invite you to follow Doormat23 and PixiJS on social media, where we'll be unveiling more exciting updates shortly. Alternatively, you can join our vibrant community on Discord for direct engagement and real-time chit-chats.

· 6 min read
GoodBoyDigital

We're thrilled to offer an exclusive preview of the future of 2D web graphics with the Beta release of PixiJS v8. Although not yet finalized, this Beta iteration is packed with killer performance improvements and features we're eager for you to start playing with!

Over the course of a decade—yes, you read that right, ten years!—we've implemented significant changes to the PixiJS engine. But the advancements in this new release are among the most monumental we've ever made!

- - + + \ No newline at end of file diff --git a/branding.html b/branding.html index 67faa8a8d..94b412b97 100644 --- a/branding.html +++ b/branding.html @@ -9,8 +9,8 @@ - - + +
@@ -22,7 +22,7 @@ PNG

PixiJS Logo Full Dark

Mark (Pink)

Download: SVG PNG

PixiJS Logo Mark Dark

Mark (Light)

Download: SVG PNG

PixiJS Logo Mark Light

- - + + \ No newline at end of file diff --git a/examples.html b/examples.html index 6b24eda9b..5ba2eb87a 100644 --- a/examples.html +++ b/examples.html @@ -9,13 +9,13 @@ - - + + - - + + \ No newline at end of file diff --git a/examples/advanced/collision-detection.html b/examples/advanced/collision-detection.html index 9300c0997..cfdf540f6 100644 --- a/examples/advanced/collision-detection.html +++ b/examples/advanced/collision-detection.html @@ -9,13 +9,13 @@ - - + + - - + + \ No newline at end of file diff --git a/examples/advanced/mouse-trail.html b/examples/advanced/mouse-trail.html index a9b51aaff..5a55a5d88 100644 --- a/examples/advanced/mouse-trail.html +++ b/examples/advanced/mouse-trail.html @@ -9,13 +9,13 @@ - - + + - - + + \ No newline at end of file diff --git a/examples/advanced/scratch-card.html b/examples/advanced/scratch-card.html index c0b154cc8..0507c36a8 100644 --- a/examples/advanced/scratch-card.html +++ b/examples/advanced/scratch-card.html @@ -9,13 +9,13 @@ - - + + - - + + \ No newline at end of file diff --git a/examples/advanced/screen-shot.html b/examples/advanced/screen-shot.html index a9ac33cb8..78b0198ec 100644 --- a/examples/advanced/screen-shot.html +++ b/examples/advanced/screen-shot.html @@ -9,13 +9,13 @@ - - + + - - + + \ No newline at end of file diff --git a/examples/advanced/slots.html b/examples/advanced/slots.html index de95af99d..b64d1f1b5 100644 --- a/examples/advanced/slots.html +++ b/examples/advanced/slots.html @@ -9,13 +9,13 @@ - - + + - - + + \ No newline at end of file diff --git a/examples/advanced/spinners.html b/examples/advanced/spinners.html index 37349e274..55d44f74e 100644 --- a/examples/advanced/spinners.html +++ b/examples/advanced/spinners.html @@ -9,13 +9,13 @@ - - + + - - + + \ No newline at end of file diff --git a/examples/advanced/star-warp.html b/examples/advanced/star-warp.html index d28207533..daf005743 100644 --- a/examples/advanced/star-warp.html +++ b/examples/advanced/star-warp.html @@ -9,13 +9,13 @@ - - + + - - + + \ No newline at end of file diff --git a/examples/assets/async.html b/examples/assets/async.html index 0a84196a9..76fdf26a5 100644 --- a/examples/assets/async.html +++ b/examples/assets/async.html @@ -9,13 +9,13 @@ - - + + - - + + \ No newline at end of file diff --git a/examples/assets/background.html b/examples/assets/background.html index 0e43ca63f..83a894f4b 100644 --- a/examples/assets/background.html +++ b/examples/assets/background.html @@ -9,13 +9,13 @@ - - + + - - + + \ No newline at end of file diff --git a/examples/assets/bundle.html b/examples/assets/bundle.html index 8effcd80a..d1b26df7f 100644 --- a/examples/assets/bundle.html +++ b/examples/assets/bundle.html @@ -9,13 +9,13 @@ - - + + - - + + \ No newline at end of file diff --git a/examples/assets/multiple.html b/examples/assets/multiple.html index ba5b09b99..ba8c02b33 100644 --- a/examples/assets/multiple.html +++ b/examples/assets/multiple.html @@ -9,13 +9,13 @@ - - + + - - + + \ No newline at end of file diff --git a/examples/assets/promise.html b/examples/assets/promise.html index 22b6e12e8..7e6bff792 100644 --- a/examples/assets/promise.html +++ b/examples/assets/promise.html @@ -9,13 +9,13 @@ - - + + - - + + \ No newline at end of file diff --git a/examples/basic/blend-modes.html b/examples/basic/blend-modes.html index 541878759..cce6f2acb 100644 --- a/examples/basic/blend-modes.html +++ b/examples/basic/blend-modes.html @@ -9,13 +9,13 @@ - - + + - - + + \ No newline at end of file diff --git a/examples/basic/container.html b/examples/basic/container.html index cd1ac521e..67525c244 100644 --- a/examples/basic/container.html +++ b/examples/basic/container.html @@ -9,13 +9,13 @@ - - + + - - + + \ No newline at end of file diff --git a/examples/basic/mesh-plane.html b/examples/basic/mesh-plane.html index d8b83ce84..22ad74279 100644 --- a/examples/basic/mesh-plane.html +++ b/examples/basic/mesh-plane.html @@ -9,13 +9,13 @@ - - + + - - + + \ No newline at end of file diff --git a/examples/basic/particle-container.html b/examples/basic/particle-container.html index 68622d904..a86cf8a22 100644 --- a/examples/basic/particle-container.html +++ b/examples/basic/particle-container.html @@ -9,13 +9,13 @@ - - + + - - + + \ No newline at end of file diff --git a/examples/basic/render-group.html b/examples/basic/render-group.html index bc130e66b..a02695d4a 100644 --- a/examples/basic/render-group.html +++ b/examples/basic/render-group.html @@ -9,13 +9,13 @@ - - + + - - + + \ No newline at end of file diff --git a/examples/basic/tinting.html b/examples/basic/tinting.html index f1a69cc6f..4a2880e2f 100644 --- a/examples/basic/tinting.html +++ b/examples/basic/tinting.html @@ -9,13 +9,13 @@ - - + + - - + + \ No newline at end of file diff --git a/examples/basic/transparent-background.html b/examples/basic/transparent-background.html index 96f8bba30..f85469a9a 100644 --- a/examples/basic/transparent-background.html +++ b/examples/basic/transparent-background.html @@ -9,13 +9,13 @@ - - + + - - + + \ No newline at end of file diff --git a/examples/events/click.html b/examples/events/click.html index 108b9b333..d216874a4 100644 --- a/examples/events/click.html +++ b/examples/events/click.html @@ -9,13 +9,13 @@ - - + + - - + + \ No newline at end of file diff --git a/examples/events/custom-hitarea.html b/examples/events/custom-hitarea.html index c0ded4180..56185e496 100644 --- a/examples/events/custom-hitarea.html +++ b/examples/events/custom-hitarea.html @@ -9,13 +9,13 @@ - - + + - - + + \ No newline at end of file diff --git a/examples/events/custom-mouse-icon.html b/examples/events/custom-mouse-icon.html index 881c19c5e..2ebc5c0f9 100644 --- a/examples/events/custom-mouse-icon.html +++ b/examples/events/custom-mouse-icon.html @@ -9,13 +9,13 @@ - - + + - - + + \ No newline at end of file diff --git a/examples/events/dragging.html b/examples/events/dragging.html index 56afd2532..fe1c4685f 100644 --- a/examples/events/dragging.html +++ b/examples/events/dragging.html @@ -9,13 +9,13 @@ - - + + - - + + \ No newline at end of file diff --git a/examples/events/interactivity.html b/examples/events/interactivity.html index 5633ccf4a..ef0fd1890 100644 --- a/examples/events/interactivity.html +++ b/examples/events/interactivity.html @@ -9,13 +9,13 @@ - - + + - - + + \ No newline at end of file diff --git a/examples/events/logger.html b/examples/events/logger.html index 1f9a52ad1..484ecba1b 100644 --- a/examples/events/logger.html +++ b/examples/events/logger.html @@ -9,13 +9,13 @@ - - + + - - + + \ No newline at end of file diff --git a/examples/events/pointer-tracker.html b/examples/events/pointer-tracker.html index 104c8e79a..aba7efd6a 100644 --- a/examples/events/pointer-tracker.html +++ b/examples/events/pointer-tracker.html @@ -9,13 +9,13 @@ - - + + - - + + \ No newline at end of file diff --git a/examples/events/slider.html b/examples/events/slider.html index 936744c00..a8a2fc579 100644 --- a/examples/events/slider.html +++ b/examples/events/slider.html @@ -9,13 +9,13 @@ - - + + - - + + \ No newline at end of file diff --git a/examples/filters-advanced/custom.html b/examples/filters-advanced/custom.html index 3c7eab431..9b10dc108 100644 --- a/examples/filters-advanced/custom.html +++ b/examples/filters-advanced/custom.html @@ -9,13 +9,13 @@ - - + + - - + + \ No newline at end of file diff --git a/examples/filters-advanced/mouse-blending.html b/examples/filters-advanced/mouse-blending.html index 06127d855..2635806f5 100644 --- a/examples/filters-advanced/mouse-blending.html +++ b/examples/filters-advanced/mouse-blending.html @@ -9,13 +9,13 @@ - - + + - - + + \ No newline at end of file diff --git a/examples/filters-basic/blur.html b/examples/filters-basic/blur.html index d1d58e3b8..60b73be65 100644 --- a/examples/filters-basic/blur.html +++ b/examples/filters-basic/blur.html @@ -9,13 +9,13 @@ - - + + - - + + \ No newline at end of file diff --git a/examples/filters-basic/color-matrix.html b/examples/filters-basic/color-matrix.html index 81a8e2f90..b65df408b 100644 --- a/examples/filters-basic/color-matrix.html +++ b/examples/filters-basic/color-matrix.html @@ -9,13 +9,13 @@ - - + + - - + + \ No newline at end of file diff --git a/examples/filters-basic/displacement-map-crawlies.html b/examples/filters-basic/displacement-map-crawlies.html index bb184bde9..e239c8196 100644 --- a/examples/filters-basic/displacement-map-crawlies.html +++ b/examples/filters-basic/displacement-map-crawlies.html @@ -9,13 +9,13 @@ - - + + - - + + \ No newline at end of file diff --git a/examples/filters-basic/displacement-map-flag.html b/examples/filters-basic/displacement-map-flag.html index 49a7290f3..961937afb 100644 --- a/examples/filters-basic/displacement-map-flag.html +++ b/examples/filters-basic/displacement-map-flag.html @@ -9,13 +9,13 @@ - - + + - - + + \ No newline at end of file diff --git a/examples/graphics/advanced.html b/examples/graphics/advanced.html index 7a4004bd0..2c92533e2 100644 --- a/examples/graphics/advanced.html +++ b/examples/graphics/advanced.html @@ -9,13 +9,13 @@ - - + + - - + + + \ No newline at end of file diff --git a/examples/graphics/dynamic.html b/examples/graphics/dynamic.html index 55d6a6ae4..6f99c857e 100644 --- a/examples/graphics/dynamic.html +++ b/examples/graphics/dynamic.html @@ -9,13 +9,13 @@ - - + + - - + + + \ No newline at end of file diff --git a/examples/graphics/fill-gradient.html b/examples/graphics/fill-gradient.html index 26f4b13bb..3d541f3d9 100644 --- a/examples/graphics/fill-gradient.html +++ b/examples/graphics/fill-gradient.html @@ -9,13 +9,13 @@ - - + + - - + + + \ No newline at end of file diff --git a/examples/graphics/mesh-from-path.html b/examples/graphics/mesh-from-path.html index 51c7f70ad..5d3797510 100644 --- a/examples/graphics/mesh-from-path.html +++ b/examples/graphics/mesh-from-path.html @@ -9,13 +9,13 @@ - - + + - - + + + \ No newline at end of file diff --git a/examples/graphics/simple.html b/examples/graphics/simple.html index 589935e0e..6fbfa6ef5 100644 --- a/examples/graphics/simple.html +++ b/examples/graphics/simple.html @@ -9,13 +9,13 @@ - - + + - - + + + \ No newline at end of file diff --git a/examples/graphics/svg-load.html b/examples/graphics/svg-load.html index 1dfdf4806..c36b6f912 100644 --- a/examples/graphics/svg-load.html +++ b/examples/graphics/svg-load.html @@ -3,19 +3,19 @@ -Svg-load | PixiJS +Svg Load | PixiJS - - + + - - + + + \ No newline at end of file diff --git a/examples/graphics/svg.html b/examples/graphics/svg.html index 1f8c09faf..304c26eb8 100644 --- a/examples/graphics/svg.html +++ b/examples/graphics/svg.html @@ -9,13 +9,13 @@ - - + + - - + + + \ No newline at end of file diff --git a/examples/graphics/texture.html b/examples/graphics/texture.html index f6a306794..f81d10f21 100644 --- a/examples/graphics/texture.html +++ b/examples/graphics/texture.html @@ -9,13 +9,13 @@ - - + + - - + + + \ No newline at end of file diff --git a/examples/masks/filter.html b/examples/masks/filter.html index 0653be313..4d0ce426b 100644 --- a/examples/masks/filter.html +++ b/examples/masks/filter.html @@ -9,13 +9,13 @@ - - + + - - + + \ No newline at end of file diff --git a/examples/masks/graphics.html b/examples/masks/graphics.html index ec220afac..2f62062e2 100644 --- a/examples/masks/graphics.html +++ b/examples/masks/graphics.html @@ -9,13 +9,13 @@ - - + + - - + + \ No newline at end of file diff --git a/examples/masks/sprite.html b/examples/masks/sprite.html index 5ffcc9cf6..5d2a7e8d7 100644 --- a/examples/masks/sprite.html +++ b/examples/masks/sprite.html @@ -9,13 +9,13 @@ - - + + - - + + \ No newline at end of file diff --git a/examples/mesh-and-shaders/instanced-geometry.html b/examples/mesh-and-shaders/instanced-geometry.html index 3ab63b36f..aac6ea44f 100644 --- a/examples/mesh-and-shaders/instanced-geometry.html +++ b/examples/mesh-and-shaders/instanced-geometry.html @@ -9,13 +9,13 @@ - - + + - - + + \ No newline at end of file diff --git a/examples/mesh-and-shaders/multipass-mesh.html b/examples/mesh-and-shaders/multipass-mesh.html index abf2ba20e..1f92f6f5f 100644 --- a/examples/mesh-and-shaders/multipass-mesh.html +++ b/examples/mesh-and-shaders/multipass-mesh.html @@ -9,13 +9,13 @@ - - + + - - + + \ No newline at end of file diff --git a/examples/mesh-and-shaders/shader-toy-mesh.html b/examples/mesh-and-shaders/shader-toy-mesh.html index 050517488..ef33c68fa 100644 --- a/examples/mesh-and-shaders/shader-toy-mesh.html +++ b/examples/mesh-and-shaders/shader-toy-mesh.html @@ -9,13 +9,13 @@ - - + + - - + + \ No newline at end of file diff --git a/examples/mesh-and-shaders/shared-geometry.html b/examples/mesh-and-shaders/shared-geometry.html index 6a067b720..bd0ea6b9b 100644 --- a/examples/mesh-and-shaders/shared-geometry.html +++ b/examples/mesh-and-shaders/shared-geometry.html @@ -9,13 +9,13 @@ - - + + - - + + \ No newline at end of file diff --git a/examples/mesh-and-shaders/shared-shader.html b/examples/mesh-and-shaders/shared-shader.html index 0fc0c9d35..f023eeab6 100644 --- a/examples/mesh-and-shaders/shared-shader.html +++ b/examples/mesh-and-shaders/shared-shader.html @@ -9,13 +9,13 @@ - - + + - - + + \ No newline at end of file diff --git a/examples/mesh-and-shaders/textured-mesh-advanced.html b/examples/mesh-and-shaders/textured-mesh-advanced.html index 36fc9fbe1..2de2cadab 100644 --- a/examples/mesh-and-shaders/textured-mesh-advanced.html +++ b/examples/mesh-and-shaders/textured-mesh-advanced.html @@ -9,13 +9,13 @@ - - + + - - + + \ No newline at end of file diff --git a/examples/mesh-and-shaders/textured-mesh-basic.html b/examples/mesh-and-shaders/textured-mesh-basic.html index 9e61a5170..2af57c5bd 100644 --- a/examples/mesh-and-shaders/textured-mesh-basic.html +++ b/examples/mesh-and-shaders/textured-mesh-basic.html @@ -9,13 +9,13 @@ - - + + - - + + \ No newline at end of file diff --git a/examples/mesh-and-shaders/triangle-color.html b/examples/mesh-and-shaders/triangle-color.html index 0367ccb93..dd0e571de 100644 --- a/examples/mesh-and-shaders/triangle-color.html +++ b/examples/mesh-and-shaders/triangle-color.html @@ -9,13 +9,13 @@ - - + + - - + + \ No newline at end of file diff --git a/examples/mesh-and-shaders/triangle-textured.html b/examples/mesh-and-shaders/triangle-textured.html index 3785fb755..0bb0853ec 100644 --- a/examples/mesh-and-shaders/triangle-textured.html +++ b/examples/mesh-and-shaders/triangle-textured.html @@ -9,13 +9,13 @@ - - + + - - + + \ No newline at end of file diff --git a/examples/mesh-and-shaders/triangle.html b/examples/mesh-and-shaders/triangle.html index c67d72c4b..7a1054144 100644 --- a/examples/mesh-and-shaders/triangle.html +++ b/examples/mesh-and-shaders/triangle.html @@ -9,13 +9,13 @@ - - + + - - + + \ No newline at end of file diff --git a/examples/offscreen-canvas/basic.html b/examples/offscreen-canvas/basic.html index 09a933a11..231eb4e71 100644 --- a/examples/offscreen-canvas/basic.html +++ b/examples/offscreen-canvas/basic.html @@ -9,13 +9,13 @@ - - + + - - + + \ No newline at end of file diff --git a/examples/sprite/animated-sprite-animation-speed.html b/examples/sprite/animated-sprite-animation-speed.html index 977453486..6a2242e23 100644 --- a/examples/sprite/animated-sprite-animation-speed.html +++ b/examples/sprite/animated-sprite-animation-speed.html @@ -9,13 +9,13 @@ - - + + - - + + \ No newline at end of file diff --git a/examples/sprite/animated-sprite-explosion.html b/examples/sprite/animated-sprite-explosion.html index 08d88476b..7b2780b51 100644 --- a/examples/sprite/animated-sprite-explosion.html +++ b/examples/sprite/animated-sprite-explosion.html @@ -9,13 +9,13 @@ - - + + - - + + \ No newline at end of file diff --git a/examples/sprite/animated-sprite-jet.html b/examples/sprite/animated-sprite-jet.html index 9420827d9..e7299522d 100644 --- a/examples/sprite/animated-sprite-jet.html +++ b/examples/sprite/animated-sprite-jet.html @@ -9,13 +9,13 @@ - - + + - - + + \ No newline at end of file diff --git a/examples/sprite/basic.html b/examples/sprite/basic.html index 0f9bae3d8..48c40e58b 100644 --- a/examples/sprite/basic.html +++ b/examples/sprite/basic.html @@ -9,13 +9,13 @@ - - + + - - + + \ No newline at end of file diff --git a/examples/sprite/texture-swap.html b/examples/sprite/texture-swap.html index 43dda16be..c6a3aeee6 100644 --- a/examples/sprite/texture-swap.html +++ b/examples/sprite/texture-swap.html @@ -9,13 +9,13 @@ - - + + - - + + \ No newline at end of file diff --git a/examples/sprite/tiling-sprite.html b/examples/sprite/tiling-sprite.html index 30574e828..97cf9947b 100644 --- a/examples/sprite/tiling-sprite.html +++ b/examples/sprite/tiling-sprite.html @@ -9,13 +9,13 @@ - - + + - - + + \ No newline at end of file diff --git a/examples/sprite/video.html b/examples/sprite/video.html index 76f66475f..8fcd8086f 100644 --- a/examples/sprite/video.html +++ b/examples/sprite/video.html @@ -9,13 +9,13 @@ - - + + - - + + \ No newline at end of file diff --git a/examples/text/bitmap-text.html b/examples/text/bitmap-text.html index 06ed1d536..b163139d1 100644 --- a/examples/text/bitmap-text.html +++ b/examples/text/bitmap-text.html @@ -9,13 +9,13 @@ - - + + - - + + \ No newline at end of file diff --git a/examples/text/from-font.html b/examples/text/from-font.html index e048a255e..b5ef7eb07 100644 --- a/examples/text/from-font.html +++ b/examples/text/from-font.html @@ -9,13 +9,13 @@ - - + + - - + + \ No newline at end of file diff --git a/examples/text/pixi-text.html b/examples/text/pixi-text.html index 0a0dd4a8d..19058e438 100644 --- a/examples/text/pixi-text.html +++ b/examples/text/pixi-text.html @@ -9,13 +9,13 @@ - - + + - - + + \ No newline at end of file diff --git a/examples/text/web-font.html b/examples/text/web-font.html index d2962a7ff..20922030f 100644 --- a/examples/text/web-font.html +++ b/examples/text/web-font.html @@ -9,13 +9,13 @@ - - + + - - + + \ No newline at end of file diff --git a/examples/textures/render-texture-advanced.html b/examples/textures/render-texture-advanced.html index 6cd08c8a3..263ef5ecd 100644 --- a/examples/textures/render-texture-advanced.html +++ b/examples/textures/render-texture-advanced.html @@ -9,13 +9,13 @@ - - + + - - + + \ No newline at end of file diff --git a/examples/textures/render-texture-basic.html b/examples/textures/render-texture-basic.html index 1761e9c24..e759ab682 100644 --- a/examples/textures/render-texture-basic.html +++ b/examples/textures/render-texture-basic.html @@ -9,13 +9,13 @@ - - + + - - + + \ No newline at end of file diff --git a/examples/textures/texture-rotate.html b/examples/textures/texture-rotate.html index 70cde2160..9b4c42b95 100644 --- a/examples/textures/texture-rotate.html +++ b/examples/textures/texture-rotate.html @@ -9,13 +9,13 @@ - - + + - - + + \ No newline at end of file diff --git a/faq.html b/faq.html index 559116906..15afc6942 100644 --- a/faq.html +++ b/faq.html @@ -9,8 +9,8 @@ - - + +
@@ -22,7 +22,7 @@ are what make it possible to push PixiJS further, faster. Contributions allow us to commission the PixiJS developer community to accelerate feature development and create more in-depth documentation. Support Us by making a contribution via Open Collective. Go on! It will be a massive help AND make you feel good about yourself, win win ;)

Where do I get it?

Visit our GitHub page to download the very latest version of PixiJS. This is the most up-to-date resource for PixiJS and should always be your first port of call to make sure you are using the latest version. Just click the 'Download' link in the navigation.

How do I get started?

Right here! Take a look through the Resources section for a wealth of information including documentation, forums, tutorials and the Goodboy blog.

Why should I use PixiJS?

Because you care about speed. PixiJS' #1 mantra has always been speed. We really do feel the need! We do everything we can to make PixiJS as streamlined, efficient and fast as possible, whilst balancing it with offering as many crucial and valuable features as we can.

Is PixiJS a game engine?

No. PixiJS is what we've come to think of as a "creation engine". Whilst it is extremely good for making games, the core essence of PixiJS is simply moving things around on screens as quickly and efficiently as possible. It does of course happen that it is absolutely brilliant for making games though!

Who makes PixiJS?

Outside of the highly active PixiJS community, it is primarily maintained by Mat Groves, Technical Partner of our creative agency Goodboy Digital. One of the huge advantages of creating PixiJS within the framework of a working agency is that it means its features are always driven by genuine industry demands and critically are always trialled "in anger" in our cutting-edge games, sites and apps.

I found a bug. What should I do?

Two things - lets us know via the PixiJS GitHub community and even better yet, if you know how, post a fix! Our Community is stronger in numbers so we're always keen to welcome new contributors into the team to help us shape what PixiJS becomes next.

- - + + \ No newline at end of file diff --git a/guides.html b/guides.html index 6359582f4..af5450132 100644 --- a/guides.html +++ b/guides.html @@ -9,13 +9,13 @@ - - + +

Welcome

PixiJS is an open source, web-based rendering system that provides blazing fast performance for games, data visualization, and other graphics intensive projects. These guides are designed to be a companion to the API documentation, providing a structured introduction to using the API to solve problems and build projects.

About The Guides

If you're new to PixiJS, we suggest you start with the Basics and read through them in order (a good place to start is Getting Started). While PixiJS has a mature API and solid documentation, the guides go over many common issues and questions that developers new to the system encounter.

Other Resources

As you explore the guides, you may find these resources valuable:

- - + + \ No newline at end of file diff --git a/guides/advanced/render-groups.html b/guides/advanced/render-groups.html index dc4fbab01..3270f7686 100644 --- a/guides/advanced/render-groups.html +++ b/guides/advanced/render-groups.html @@ -9,13 +9,13 @@ - - + +

Render Groups

Understanding RenderGroups in PixiJS

As you delve deeper into PixiJS, especially with version 8, you'll encounter a powerful feature known as RenderGroups. Think of RenderGroups as specialized containers within your scene graph that act like mini scene graphs themselves. Here's what you need to know to effectively use Render Groups in your projects:

What Are Render Groups?

Render Groups are essentially containers that PixiJS treats as self-contained scene graphs. When you assign parts of your scene to a Render Group, you're telling PixiJS to manage these objects together as a unit. This management includes monitoring for changes and preparing a set of render instructions specifically for the group. This is a powerful tool for optimizing your rendering process.

Why Use Render Groups?

The main advantage of using Render Groups lies in their optimization capabilities. They allow for certain calculations, like transformations (position, scale, rotation), tint, and alpha adjustments, to be offloaded to the GPU. This means that operations like moving or adjusting the Render Group can be done with minimal CPU impact, making your application more performance-efficient.

In practice, you're utilizing Render Groups even without explicit awareness. The root element you pass to the render function in PixiJS is automatically converted into a RenderGroup as this is where its render instructions will be stored. Though you also have the option to explicitly create additional RenderGroups as needed to further optimize your project.

This feature is particularly beneficial for:

  • Static Content: For content that doesn't change often, a Render Group can significantly reduce the computational load on the CPU. In this case static refers to the scene graph structure, not that actual values of the PixiJS elements inside it (eg position, scale of things).
  • Distinct Scene Parts: You can separate your scene into logical parts, such as the game world and the HUD (Heads-Up Display). Each part can be optimized individually, leading to overall better performance.

Examples

const myGameWorld = new Container({
isRenderGroup:true
})

const myHud = new Container({
isRenderGroup:true
})

scene.addChild(myGameWorld, myHud)

renderer.render(scene) // this action will actually convert the scene to a render group under the hood

Check out the [container example] (../../examples/basic/container).

Best Practices

  • Don't Overuse: While Render Groups are powerful, using too many can actually degrade performance. The goal is to find a balance that optimizes rendering without overwhelming the system with too many separate groups. Make sure to profile when using them. The majority of the time you won't need do use them at all!
  • Strategic Grouping: Consider what parts of your scene change together and which parts remain static. Grouping dynamic elements separately from static elements can lead to performance gains.

By understanding and utilizing Render Groups, you can take full advantage of PixiJS's rendering capabilities, making your applications smoother and more efficient. This feature represents a powerful tool in the optimization toolkit offered by PixiJS, enabling developers to create rich, interactive scenes that run smoothly across different devices.

- - + + \ No newline at end of file diff --git a/guides/basics/architecture-overview.html b/guides/basics/architecture-overview.html index cc3fa0af6..9672dc089 100644 --- a/guides/basics/architecture-overview.html +++ b/guides/basics/architecture-overview.html @@ -9,13 +9,13 @@ - - + +

Architecture Overview

OK, now that you've gotten a feel for how easy it is to build a PixiJS application, let's get into the specifics. For the rest of the Basics section, we're going to work from the high level down to the details. We'll start with an overview of how PixiJS is put together.

The Code

Before we get into how the code is layed out, let's talk about where it lives. PixiJS is an open source product hosted on GitHub. Like any GitHub repo, you can browse and download the raw source files for each PixiJS class, as well as search existing issues & bugs, and even submit your own. PixiJS is written in a JavaScript variant called TypeScript, which enables type-checking in JavaScript via a pre-compile step.

The Components

Here's a list of the major components that make up PixiJS. Note that this list isn't exhaustive. Additionally, don't worry too much about how each component works. The goal here is to give you a feel for what's under the hood as we start exploring the engine.

Major Components

ComponentDescription
RendererThe core of the PixiJS system is the renderer, which displays the scene graph and draws it to the screen. PixiJS will automatically determine whether to provide you the WebGPU or WebGL renderer under the hood.
ContainerMain scene object which creates a scene graph: the tree of renderable objects to be displayed, such as sprites, graphics and text. See Scene Graph for more details.
AssetsThe Asset system provides tools for asynchronously loading resources such as images and audio files.
TickerTickers provide periodic callbacks based on a clock. Your game update logic will generally be run in response to a tick once per frame. You can have multiple tickers in use at one time.
ApplicationThe Application is a simple helper that wraps a Loader, Ticker and Renderer into a single, convenient easy-to-use object. Great for getting started quickly, prototyping and building simple projects.
EventsPixiJS supports pointer-based interaction - making objects clickable, firing hover events, etc.
AccessibilityWoven through our display system is a rich set of tools for enabling keyboard and screen-reader accessibility.
- - + + \ No newline at end of file diff --git a/guides/basics/getting-started.html b/guides/basics/getting-started.html index 60ca2e71a..d9cd61ee0 100644 --- a/guides/basics/getting-started.html +++ b/guides/basics/getting-started.html @@ -9,8 +9,8 @@ - - + +
@@ -18,7 +18,7 @@ experience developing JavaScript-based applications. If you are a coding veteran, you may find that the level of detail here is not helpful. If that's the case, you may want to skim this guide, then jump into how to work with PixiJS and packers like webpack and npm.

A Note About JavaScript

One final note. The JavaScript universe is currently in transition from old-school JavaScript (ES5) to the newer ES6 flavor:

// ES5
var x = 5;
setTimeout(function() { alert(x); }, 1000);
// ES6
const x = 5;
setTimeout(() => alert(x), 1000);

ES6 brings a number of major advantages in terms of clearer syntax, better variable scoping, native class support, etc. By now, all major browsers support it. Given this, our examples in these guides will use ES6. This doesn't mean you can't use PixiJS with ES5 programs! Just mentally substitute "var" for "let/const", expand the shorter function-passing syntax, and everything will run just fine.

Components of a PixiJS Application

OK! With those notes out of the way, let's get started. There are only a few steps required to write a PixiJS application:

  • Create an HTML file
  • Serve the file with a web server
  • Load the PixiJS library
  • Create an Application
  • Add the generated view to the DOM
  • Add an image to the stage
  • Write an update loop

Let's walk through them together.

The HTML File

PixiJS is a JavaScript library that runs in a web page. So the first thing we're going to need is some HTML in a file. In a real PixiJS application, you might want to embed your display within a complex existing page, or you might want your display area to fill the whole page. For this demo, we'll build an empty page to start:

<!doctype html>
<html>
<head>
</head>
<body>
<h1>Hello PixiJS</h1>
</body>
</html>

Create a new folder named pixi-test, then copy and paste this HTML into a new file in the pixi-test folder named index.html.

Serving the File

You will need to run a web server to develop locally with PixiJS. Web browsers prevent loading local files (such as images and audio files) on locally loaded web pages. If you just double-click your new HTML file, you'll get an error when you try to add a sprite to the PixiJS stage.

Running a web server sounds complex and difficult, but it turns out there are a number of simple web servers that will serve this purpose. For this guide, we're going to be working with Mongoose, but you could just as easily use XAMPP or the http-server Node.js package to serve your files.

To start serving your page with Mongoose, go to the Mongoose download page and download the free server for your operating system. Mongoose defaults to serving the files in the folder it's run in, so copy the downloaded executable into the folder you created in the prior step (pixi-test). Double-click the executable, tell your operating system that you trust the file to run, and you'll have a running web server, serving your new folder.

Test that everything is working by opening your browser of choice and entering http://127.0.0.1:8080 in the location bar. (Mongoose by default serves files on port 8080.) You should see "Hello PixiJS" and nothing else. If you get an error at this step, it means you didn't name your file index.html or you mis-configured your web server.

Loading PixiJS

OK, so we have a web page, and we're serving it. But it's empty. The next step is to actually load the PixiJS library. If we were building a real application, we'd want to download a target version of PixiJS from the Pixi Github repo so that our version wouldn't change on us. But for this sample application, we'll just use the CDN version of PixiJS. Add this line to the <head> section of your index.html file:

<script src="https://pixijs.download/release/pixi.js"></script>

This will include a non-minified version of the latest version of PixiJS when your page loads, ready to be used. We use the non-minified version because we're in development. In production, you'd want to use pixi.min.js instead, which is compressed for faster download and excludes assertions and deprecation warnings that can help when building your project, but take longer to download and run.

Creating an Application

Loading the library doesn't do much good if we don't use it, so the next step is to start up PixiJS. Start by replacing the line <h1>Hello PixiJS</h1> with a script tag like so:

<script>
const app = new PIXI.Application();
await app.init({ width: 640, height: 360 })
</script>

What we're doing here is adding a JavaScript code block, and in that block creating a new PIXI.Application instance. Application is a helper class that simplifies working with PixiJS. It creates the renderer, creates the stage, and starts a ticker for updating. In production, you'll almost certainly want to do these steps yourself for added customization and control - we'll cover doing so in a later guide. For now, the Application class is a perfect way to start playing with PixiJS without worrying about the details. The Application class also has a method init that will initialize the application with the given options. This method is asynchronous, so we use the await keyword to wait for it to complete. This is because PixiJS uses WebGPU or WebGL under the hood, and the former API asynchronous.

Adding the Canvas to the DOM

When the PIXI.Application class creates the renderer, it builds a Canvas element that it will render to. In order to see what we draw with PixiJS, we need to add this Canvas element to the web page's DOM. Append the following line to your page's script block:

  document.body.appendChild(app.canvas);

This takes the canvas created by the application (the Canvas element) and adds it to the body of your page.

Creating a Sprite

So far all we've been doing is prep work. We haven't actually told PixiJS to draw anything. Let's fix that by adding an image to be displayed.

There are a number of ways to draw images in PixiJS, but the simplest is by using a Sprite. We'll get into the details of how the scene graph works in a later guide, but for now all you need to know is that PixiJS renders a hierarchy of Containers. A Sprite is a type of Container that wraps a loaded image resource to allow drawing it, scaling it, rotating it, and so forth.

Before PixiJS can render an image, it needs to be loaded. Just like in any web page, image loading happens asynchronously. We'll talk a lot more about resource loading in later guides. For now, we can use a helper method on the PIXI.Sprite class to handle the image loading for us:

  // Magically load the PNG asynchronously
let sprite = PIXI.Sprite.from('sample.png');

Download the sample PNG here, and save it into your pixi-test directory next to your index.html.

Adding the Sprite to the Stage

Finally, we need to add our new sprite to the stage. The stage is simply a Container that is the root of the scene graph. Every child of the stage container will be rendered every frame. By adding our sprite to the stage, we tell PixiJS's renderer we want to draw it.

  app.stage.addChild(sprite);

Writing an Update Loop

While you can use PixiJS for static content, for most projects you'll want to add animation. Our sample app is actually cranking away, rendering the same sprite in the same place multiple times a second. All we have to do to make the image move is to update its attributes once per frame. To do this, we want to hook into the application's ticker. A ticker is a PixiJS object that runs one or more callbacks each frame. Doing so is surprisingly easy. Add the following to the end of your script block:

  // Add a variable to count up the seconds our demo has been running
let elapsed = 0.0;
// Tell our application's ticker to run a new callback every frame, passing
// in the amount of time that has passed since the last tick
app.ticker.add((ticker) => {
// Add the time to our total elapsed time
elapsed += ticker.deltaTime;
// Update the sprite's X position based on the cosine of our elapsed time. We divide
// by 50 to slow the animation down a bit...
sprite.x = 100.0 + Math.cos(elapsed/50.0) * 100.0;
});

All you need to do is to call app.ticker.add(...), pass it a callback function, and then update your scene in that function. It will get called every frame, and you can move, rotate etc. whatever you'd like to drive your project's animations.

Putting It All Together

That's it! The simplest PixiJS project!

Here's the whole thing in one place. Check your file and make sure it matches if you're getting errors.

<!doctype html>
<html>
<head>
<script src="https://pixijs.download/release/pixi.min.js"></script>
</head>
<body>
<script>
// Create the application helper and add its render target to the page
const app = new PIXI.Application();
await app.init({ width: 640, height: 360 })
document.body.appendChild(app.canvas);

// Create the sprite and add it to the stage
let sprite = PIXI.Sprite.from('sample.png');
app.stage.addChild(sprite);

// Add a ticker callback to move the sprite back and forth
let elapsed = 0.0;
app.ticker.add((ticker) => {
elapsed += ticker.deltaTime;
sprite.x = 100.0 + Math.cos(elapsed/50.0) * 100.0;
});
</script>
</body>
</html>

Once you have things working, the next thing to do is to read through the rest of the Basics guides to dig into how all this works in much greater depth.

- - + + \ No newline at end of file diff --git a/guides/basics/render-loop.html b/guides/basics/render-loop.html index ecb929a60..ad764e1b4 100644 --- a/guides/basics/render-loop.html +++ b/guides/basics/render-loop.html @@ -9,13 +9,13 @@ - - + +

Render Loop

Now that you understand the major parts of the system, let's look at how these parts work together to get your project onto the screen. Unlike a web page, PixiJS is constantly updating and re-drawing itself, over and over. You update your objects, then PixiJS renders them to the screen, then the process repeats. We call this cycle the render loop.

The majority of any PixiJS project is contained in this update + render cycle. You code the updates, PixiJS handles the rendering.

Let's walk through what happens each frame of the render loop. There are three main steps.

Running Ticker Callbacks

The first step is to calculate how much time has elapsed since the last frame, and then call the Application object's ticker callbacks with that time delta. This allows your project's code to animate and update the sprites, etc. on the stage in preparation for rendering.

Updating the Scene Graph

We'll talk a lot more about what a scene graph is and what it's made of in the next guide, but for now, all you need to know is that it contains the things you're drawing - sprites, text, etc. - and that these objects are in a tree-like hierarchy. After you've updated your game objects by moving, rotating and so forth, PixiJS needs to calculate the new positions and state of every object in the scene, before it can start drawing.

Rendering the Scene Graph

Now that our game's state has been updated, it's time to draw it to the screen. The rendering system starts with the root of the scene graph (app.stage), and starts rendering each object and its children, until all objects have been drawn. No culling or other cleverness is built into this process. If you have lots of objects outside of the visible portion of the stage, you'll want to investigate disabling them as an optimization.

Frame Rates

A note about frame rates. The render loop can't be run infinitely fast - drawing things to the screen takes time. In addition, it's not generally useful to have a frame updated more than once per screen update (commonly 60fps, but newer monitors can support 144fps and up). Finally, PixiJS runs in the context of a web browser like Chrome or Firefox. The browser itself has to balance the needs of various internal operations with servicing any open tabs. All this to say, determining when to draw a frame is a complex issue.

In cases where you want to adjust that behavior, you can set the minFPS and maxFPS attributes on a Ticker to give PixiJS hints as to the range of tick speeds you want to support. Just be aware that due to the complex environment, your project cannot guarantee a given FPS. Use the passed ticker.deltaTime value in your ticker callbacks to scale any animations to ensure smooth playback.

Custom Render Loops

What we've just covered is the default render loop provided out of the box by the Application helper class. There are many other ways of creating a render loop that may be helpful for advanced users looking to solve a given problem. While you're prototyping and learning PixiJS, sticking with the Application's provided system is the recommended approach.

- - + + \ No newline at end of file diff --git a/guides/basics/scene-graph.html b/guides/basics/scene-graph.html index 71fc0061b..05363a54e 100644 --- a/guides/basics/scene-graph.html +++ b/guides/basics/scene-graph.html @@ -9,13 +9,13 @@ - - + +

Scene Graph

Every frame, PixiJS is updating and then rendering the scene graph. Let's talk about what's in the scene graph, and how it impacts how you develop your project. If you've built games before, this should all sound very familiar, but if you're coming from HTML and the DOM, it's worth understanding before we get into specific types of objects you can render.

The Scene Graph Is a Tree

The scene graph's root node is a container maintained by the application, and referenced with app.stage. When you add a sprite or other renderable object as a child to the stage, it's added to the scene graph and will be rendered and interactable. PixiJS Containers can also have children, and so as you build more complex scenes, you will end up with a tree of parent-child relationships, rooted at the app's stage.

(A helpful tool for exploring your project is the Pixi.js devtools plugin for Chrome, which allows you to view and manipulate the scene graph in real time as it's running!)

Parents and Children

When a parent moves, its children move as well. When a parent is rotated, its children are rotated too. Hide a parent, and the children will also be hidden. If you have a game object that's made up of multiple sprites, you can collect them under a container to treat them as a single object in the world, moving and rotating as one.

Each frame, PixiJS runs through the scene graph from the root down through all the children to the leaves to calculate each object's final position, rotation, visibility, transparency, etc. If a parent's alpha is set to 0.5 (making it 50% transparent), all its children will start at 50% transparent as well. If a child is then set to 0.5 alpha, it won't be 50% transparent, it will be 0.5 x 0.5 = 0.25 alpha, or 75% transparent. Similarly, an object's position is relative to its parent, so if a parent is set to an x position of 50 pixels, and the child is set to an x position of 100 pixels, it will be drawn at a screen offset of 150 pixels, or 50 + 100.

Here's an example. We'll create three sprites, each a child of the last, and animate their position, rotation, scale and alpha. Even though each sprite's properties are set to the same values, the parent-child chain amplifies each change:

// Create the application helper and add its render target to the page
const app = new Application();
await app.init({ width: 640, height: 360 })
document.body.appendChild(app.canvas);

// Add a container to center our sprite stack on the page
const container = new Container({
x:app.screen.width / 2,
y:app.screen.height / 2;
});

app.stage.addChild(container);

// load the texture
await Assets.load('assets/images/sample.png');

// Create the 3 sprites, each a child of the last
const sprites = [];
let parent = container;
for (let i = 0; i < 3; i++) {
let wrapper = new Container();
let sprite = Sprite.from('assets/images/sample.png');
sprite.anchor.set(0.5);
wrapper.addChild(sprite);
parent.addChild(wrapper);
sprites.push(wrapper);
parent = wrapper;
}

// Set all sprite's properties to the same value, animated over time
let elapsed = 0.0;
app.ticker.add((delta) => {
elapsed += delta / 60;
const amount = Math.sin(elapsed);
const scale = 1.0 + 0.25 * amount;
const alpha = 0.75 + 0.25 * amount;
const angle = 40 * amount;
const x = 75 * amount;
for (let i = 0; i < sprites.length; i++) {
const sprite = sprites[i];
sprite.scale.set(scale);
sprite.alpha = alpha;
sprite.angle = angle;
sprite.x = x;
}
});

The cumulative translation, rotation, scale and skew of any given node in the scene graph is stored in the object's worldTransform property. Similarly, the cumulative alpha value is stored in the worldAlpha property.

Render Order

So we have a tree of things to draw. Who gets drawn first?

PixiJS renders the tree from the root down. At each level, the current object is rendered, then each child is rendered in order of insertion. So the second child is rendered on top of the first child, and the third over the second.

Check out this example, with two parent objects A & D, and two children B & C under A:

// Create the application helper and add its render target to the page
const app = new Application();
await app.init({ width: 640, height: 360 })
document.body.appendChild(app.canvas);

// Label showing scene graph hierarchy
const label = new Text({
text:'Scene Graph:\n\napp.stage\n ┗ A\n ┗ B\n ┗ C\n ┗ D',
style:{fill: '#ffffff'},
position: {x: 300, y: 100}
});

app.stage.addChild(label);

// Helper function to create a block of color with a letter
const letters = [];
function addLetter(letter, parent, color, pos) {
const bg = new Sprite(Texture.WHITE);
bg.width = 100;
bg.height = 100;
bg.tint = color;

const text = new Text({
text:letter,
style:{fill: "#ffffff"}
});

text.anchor.set(0.5);
text.position = {x: 50, y: 50};

const container = new Container();
container.position = pos;
container.visible = false;
container.addChild(bg, text);
parent.addChild(container);

letters.push(container);
return container;
}

// Define 4 letters
let a = addLetter('A', app.stage, 0xff0000, {x: 100, y: 100});
let b = addLetter('B', a, 0x00ff00, {x: 20, y: 20});
let c = addLetter('C', a, 0x0000ff, {x: 20, y: 40});
let d = addLetter('D', app.stage, 0xff8800, {x: 140, y: 100});

// Display them over time, in order
let elapsed = 0.0;
app.ticker.add((delta) => {
elapsed += delta / 60.0;
if (elapsed >= letters.length) { elapsed = 0.0; }
for (let i = 0; i < letters.length; i ++) {
letters[i].visible = elapsed >= i;
}
});

If you'd like to re-order a child object, you can use setChildIndex(). To add a child at a given point in a parent's list, use addChildAt(). Finally, you can enable automatic sorting of an object's children using the sortableChildren option combined with setting the zIndex property on each child.

RenderGroups

As you delve deeper into PixiJS, you'll encounter a powerful feature known as Render Groups. Think of Render Groups as specialized containers within your scene graph that act like mini scene graphs themselves. Here's what you need to know to effectively use Render Groups in your projects. For more info check out the RenderGroups overview

Culling

If you're building a project where a large proportion of your scene objects are off-screen (say, a side-scrolling game), you will want to cull those objects. Culling is the process of evaluating if an object (or its children!) is on the screen, and if not, turning off rendering for it. If you don't cull off-screen objects, the renderer will still draw them, even though none of their pixels end up on the screen.

PixiJS doesn't provide built-in support for viewport culling, but you can find 3rd party plugins that might fit your needs. Alternately, if you'd like to build your own culling system, simply run your objects during each tick and set renderable to false on any object that doesn't need to be drawn.

Local vs Global Coordinates

If you add a sprite to the stage, by default it will show up in the top left corner of the screen. That's the origin of the global coordinate space used by PixiJS. If all your objects were children of the stage, that's the only coordinates you'd need to worry about. But once you introduce containers and children, things get more complicated. A child object at [50, 100] is 50 pixels right and 100 pixels down from its parent.

We call these two coordinate systems "global" and "local" coordinates. When you use position.set(x, y) on an object, you're always working in local coordinates, relative to the object's parent.

The problem is, there are many times when you want to know the global position of an object. For example, if you want to cull offscreen objects to save render time, you need to know if a given child is outside the view rectangle.

To convert from local to global coordinates, you use the toGlobal() function. Here's a sample usage:

// Get the global position of an object, relative to the top-left of the screen
let globalPos = obj.toGlobal(new Point(0,0));

This snippet will set globalPos to be the global coordinates for the child object, relative to [0, 0] in the global coordinate system.

Global vs Screen Coordinates

When your project is working with the host operating system or browser, there is a third coordinate system that comes into play - "screen" coordinates (aka "viewport" coordinates). Screen coordinates represent position relative to the top-left of the canvas element that PixiJS is rendering into. Things like the DOM and native mouse click events work in screen space.

Now, in many cases, screen space is equivalent to world space. This is the case if the size of the canvas is the same as the size of the render view specified when you create you Application. By default, this will be the case - you'll create for example an 800x600 application window and add it to your HTML page, and it will stay that size. 100 pixels in world coordinates will equal 100 pixels in screen space. BUT! It is common to stretch the rendered view to have it fill the screen, or to render at a lower resolution and up-scale for speed. In that case, the screen size of the canvas element will change (e.g. via CSS), but the underlying render view will not, resulting in a mis-match between world coordinates and screen coordinates.

- - + + \ No newline at end of file diff --git a/guides/basics/what-pixijs-is-not.html b/guides/basics/what-pixijs-is-not.html index a37e52ad2..bde61f57c 100644 --- a/guides/basics/what-pixijs-is-not.html +++ b/guides/basics/what-pixijs-is-not.html @@ -9,13 +9,13 @@ - - + +

What PixiJS Is Not

While PixiJS can do many things, there are things it can't do, or that require additional tools to accomplish. Newcomers to PixiJS often struggle to identify which tasks PixiJS can solve, and which require outside solutions. If you're about to start a project, it can be helpful to know if PixiJS is a good fit for your needs. The following list is obviously incomplete - PixiJS is also not, for example, a duck - but it includes many common tasks or features that you might expect us to support.

PixiJS Is Not ... A Framework

PixiJS is a rendering engine, and it supports additional features such as interaction management that are commonly needed when using a render engine. But it is not a framework like Unity or Phaser. Frameworks are designed to do all the things you'd need to do when building a game - user settings management, music playback, object scripting, art pipeline management... the list goes on. PixiJS is designed to do one thing really well - render graphical content. This lets us focus on keeping up with new technology, and makes downloading PixiJS blazingly fast.

... A 3D Renderer

PixiJS is built for 2D. Platformers, adventure games, interactive ads, custom data visualization... all good. But if you want to render 3D models, you might want to check out babylon.js or three.js.

... A Mobile App

If you're looking to build mobile games, you can do it with PixiJS, but you'll need to use a deployment system like Apache Cordova if you want access to native bindings. We don't provide access to the camera, location services, notifications, etc.

... A UI Library

Building a truly generic UI system is a huge challenge, as anyone who has worked with Unity's UI tools can attest. We've chosen to avoid the complexity to stay true to our core focus on speed. While you can certainly build your own UI using PixiJS's scene graph and interaction manager, we don't ship with a UI library out of the box.

... A Data Store

There are many techniques and technologies that you can use to store settings, scores, and other data. Cookies, Web Storage, server-based storage... there are many solutions, each with advantages and disadvantages. You can use any of them with PixiJS, but we don't provide tools to do so.

... An Audio Library

At least, not out of the box. Again, web audio technology is a constantly evolving challenge, with constantly changing rules and requirements across many browsers. There are a number of dedicated web audio libraries (such as Howler.js that can be used with PixiJS to play sound effects and music. Alternatively, the PixiJS Sound plugin is designed to work well with PixiJS.

... A Development Environment

There are a number of tools that are useful for building 2D art and games that you might expect to be a part of PixiJS, but we're a rendering engine, not a development environment. Packing sprite sheets, processing images, building mipmaps or Retina-ready sprites - there are great standalone tools for this type of tooling. Where appropriate throughout the guides, we'll point you to tools that may be useful.

So Is PixiJS Right For Me?

Only you know! If you're looking for a tightly focused, fast and efficient rendering engine for your next web-based project, PixiJS is likely a great fit.

If you need a full game development framework, with native bindings and a rich UI library, you may want to explore other options.

Or you may not. It can be faster and easier to build just the subset of a full framework that your project needs than it can be to digest a monolithic API with bells and whistles you don't need. There are hundreds of complex, rich games and visual projects that use PixiJS for rendering, with plugins or custom code to add the UI and sound effects. There are benefits to both approaches. Regardless, we hope you have a better feel for what PixiJS can (and cannot!) offer your project.

- - + + \ No newline at end of file diff --git a/guides/basics/what-pixijs-is.html b/guides/basics/what-pixijs-is.html index c9fa52ac3..be39684a5 100644 --- a/guides/basics/what-pixijs-is.html +++ b/guides/basics/what-pixijs-is.html @@ -9,13 +9,13 @@ - - + +

What PixiJS Is

So what exactly is PixiJS? At its heart, PixiJS is a rendering system that uses WebGL (or optionally Canvas) to display images and other 2D visual content. It provides a full scene graph (a hierarchy of objects to render), and provides interaction support to enable handling click and touch events. It is a natural replacement for Flash in the modern HTML5 world, but provides better performance and pixel-level effects that go beyond what Flash could achieve. It is perfect for online games, educational content, interactive ads, data visualization... any web-based application where complex graphics are important. And coupled with technology such as Cordova and Electron, PixiJS apps can be distributed beyond the browser as mobile and desktop applications.

Here's what else you get with PixiJS:

PixiJS Is ... Fast

One of the major features that distinguishes PixiJS from other web-based rendering solutions is speed. From the ground up, the render pipeline has been built to get the most performance possible out of your users' browsers. Automatic sprite and geometry batching, careful use of GPU resources, a tight scene graph - no matter your application, speed is valuable, and PixiJS has it to spare.

... More Than Just Sprites

Drawing images on a page can be handled with HTML5 and the DOM, so why use PixiJS? Beyond performance, the answer is that PixiJS goes well beyond simple images. Draw trails and tracks with MeshRope. Draw polygons, lines, circles and other primitives with Graphics. Text provides full text rendering support that's just as performant as sprites. And even when drawing simple images, PixiJS natively supports spritesheets for efficient loading and ease of development.

... Hardware accelerated

JavaScript has two APIs for handling hardware acceleration for graphical rendering: WebGL and the more modern WebGPU. Both essentially offer a JavaScript API for accessing users' GPUs for fast rendering and advanced effects. PixiJS leverages them to efficiently display thousands of moving sprites, even on mobile devices. However, using WebGL and WebGPU offers more than just speed. By using the Filter class, you can write shader programs (or use pre-built ones!) to achieve displacement maps, blurring, and other advanced visual effects that cannot be accomplished with just the DOM or Canvas APIs.

... Open Source

Want to understand how the engine works? Trying to track down a bug? Been burned by closed-source projects going dark? With PixiJS, you get a mature project with full source code access. We're MIT licensed for compatibility, and hosted on GitHub for issue tracking and ease of access.

... Extensible

Open source helps. So does being based on JavaScript. But the real reason PixiJS is easy to extend is the clean internal API that underlies every part of the system. After years of development and 5 major releases, PixiJS is ready to make your project a success, no matter what your needs.

... Easy to Deploy

Flash required the player. Unity requires an installer or app store. PixiJS requires... a browser. Deploying PixiJS on the web is exactly like deploying a web site. That's all it is - JavaScript + images + audio, like you've done a hundred times. Your users simply visit a URL, and your game or other content is ready to run. But it doesn't stop at the web. If you want to deploy a mobile app, wrap your PixiJS code in Cordova. Want to deploy a standalone desktop program? Build an Electron wrapper, and you're ready to rock.

- - + + \ No newline at end of file diff --git a/guides/components/assets.html b/guides/components/assets.html index 5330a82bc..8b39eb46c 100644 --- a/guides/components/assets.html +++ b/guides/components/assets.html @@ -9,8 +9,8 @@ - - + +
@@ -22,7 +22,7 @@ See the following example:

// Append the application canvas to the document body
document.body.appendChild(app.canvas);
// Add the assets to load
Assets.add({ alias: 'flowerTop', src: 'https://pixijs.com/assets/flowerTop.png' });
Assets.add({ alias: 'eggHead', src: 'https://pixijs.com/assets/eggHead.png' });
// Load the assets and get a resolved promise once both are loaded
const texturesPromise = Assets.load(['flowerTop', 'eggHead']); // => Promise<{flowerTop: Texture, eggHead: Texture}>
// When the promise resolves, we have the texture!
texturesPromise.then((textures) =>
{
// Create a new Sprite from the resolved loaded Textures
const flower = Sprite.from(textures.flowerTop);
flower.anchor.set(0.5);
flower.x = app.screen.width * 0.25;
flower.y = app.screen.height / 2;
app.stage.addChild(flower);
const egg = Sprite.from(textures.eggHead);
egg.anchor.set(0.5);
egg.x = app.screen.width * 0.75;
egg.y = app.screen.height / 2;
app.stage.addChild(egg);
});

However, if you want to take full advantage of @pixi/Assets you should use bundles. Bundles are just a way to group assets together and can be added manually by calling Assets.addBundle(...)/Assets.loadBundle(...).

  Assets.addBundle('animals', {
bunny: 'bunny.png',
chicken: 'chicken.png',
thumper: 'thumper.png',
});

const assets = await Assets.loadBundle('animals');

However, the best way to handle bundles is to use a manifest and call Assets.init({manifest}) with said manifest (or even better, an URL pointing to it). Splitting our assets into bundles that correspond to screens or stages of our app will come in handy for loading in the background while the user is using the app instead of locking them in a single monolithic loading screen.

{
"bundles":[
{
"name":"load-screen",
"assets":[
{
"alias":"background",
"src":"sunset.png"
},
{
"alias":"bar",
"src":"load-bar.{png,webp}"
}
]
},
{
"name":"game-screen",
"assets":[
{
"alias":"character",
"src":"robot.png"
},
{
"alias":"enemy",
"src":"bad-guy.png"
}
]
}
]
}
Assets.init({manifest: "path/manifest.json"});

Beware that you can only call init once.

Remember there is no downside in repeating URLs since they will all be cached, so if you need the same asset in two bundles you can duplicate the request without any extra cost!

Background loading

The old approach to loading was to use Loader to load all your assets at the beginning of your app, but users are less patient now and want content to be instantly available so the practices are moving towards loading the bare minimum needed to show the user some content and, while they are interacting with that, we keep loading the following content in the background.

Luckily, Assets has us covered with a system that allows us to load everything in the background and in case we need some assets right now, bump them to the top of the queue so we can minimize loading times.

To achieve this, we have the methods Assets.backgroundLoad(...) and Assets.backgroundLoadBundle(...) that will passively begin to load these assets in the background. So when you finally come to loading them you will get a promise that resolves to the loaded assets immediately.

When you finally need the assets to show, you call the usual Assets.load(...) or Assets.loadBundle(...) and you will get the corresponding promise.

The best way to do this is using bundles, see the following example:

import { Application, Assets, Sprite } from 'pixi.js';

// Create a new application
const app = new Application();

async function init()
{
// Initialize the application
await app.init({ background: '#1099bb', resizeTo: window });

// Append the application canvas to the document body
document.body.appendChild(app.canvas);

// Manifest example
const manifestExample = {
bundles: [
{
name: 'load-screen',
assets: [
{
alias: 'flowerTop',
src: 'https://pixijs.com/assets/flowerTop.png',
},
],
},
{
name: 'game-screen',
assets: [
{
alias: 'eggHead',
src: 'https://pixijs.com/assets/eggHead.png',
},
],
},
],
};

await Assets.init({ manifest: manifestExample });

// Bundles can be loaded in the background too!
Assets.backgroundLoadBundle(['load-screen', 'game-screen']);
}

init();

We create one bundle for each screen our game will have and set them all to start downloading at the beginning of our app. If the user progresses slowly enough in our app then they should never get to see a loading screen after the first one!

- - + + \ No newline at end of file diff --git a/guides/components/containers.html b/guides/components/containers.html index ebddf6da3..0c9bdff55 100644 --- a/guides/components/containers.html +++ b/guides/components/containers.html @@ -9,13 +9,13 @@ - - + +

Containers

The Container class provides a simple display object that does what its name implies - collect a set of child objects together. But beyond grouping objects, containers have a few uses that you should be aware of.

Commonly Used Attributes

The most common attributes you'll use when laying out and animating content in PixiJS are provided by the Container class:

PropertyDescription
positionX- and Y-position are given in pixels and change the position of the object relative to its parent, also available directly as object.x / object.y
rotationRotation is specified in radians, and turns an object clockwise (0.0 - 2 * Math.PI)
angleAngle is an alias for rotation that is specified in degrees instead of radians (0.0 - 360.0)
pivotPoint the object rotates around, in pixels - also sets origin for child objects
alphaOpacity from 0.0 (fully transparent) to 1.0 (fully opaque), inherited by children
scaleScale is specified as a percent with 1.0 being 100% or actual-size, and can be set independently for the x and y axis
skewSkew transforms the object in x and y similar to the CSS skew() function, and is specified in radians
visibleWhether the object is visible or not, as a boolean value - prevents updating and rendering object and children
renderableWhether the object should be rendered - when false, object will still be updated, but won't be rendered, doesn't affect children

Containers as Groups

Almost every type of display object is also derived from Container! This means that in many cases you can create a parent-child hierarchy with the objects you want to render.

However, it's a good idea not to do this. Standalone Container objects are very cheap to render, and having a proper hierarchy of Container objects, each containing one or more renderable objects, provides flexibility in rendering order. It also future-proofs your code, as when you need to add an additional object to a branch of the tree, your animation logic doesn't need to change - just drop the new object into the proper Container, and your logic moves the Container with no changes to your code.

So that's the primary use for Containers - as groups of renderable objects in a hierarchy.

Check out the container example code.

Masking

Another common use for Container objects is as hosts for masked content. "Masking" is a technique where parts of your scene graph are only visible within a given area.

Think of a pop-up window. It has a frame made of one or more Sprites, then has a scrollable content area that hides content outside the frame. A Container plus a mask makes that scrollable area easy to implement. Add the Container, set its mask property to a Graphics object with a rect, and add the text, image, etc. content you want to display as children of that masked Container. Any content that extends beyond the rectangular mask will simply not be drawn. Move the contents of the Container to scroll as desired.

// Create the application helper and add its render target to the page
let app = new Application({ width: 640, height: 360 });
document.body.appendChild(app.view);

// Create window frame
let frame = new Graphics({
x:320 - 104,
y:180 - 104
})
.rect(0, 0, 208, 208)
.fill(0x666666)
.stroke({ color: 0xffffff, width: 4, alignment: 0 })

app.stage.addChild(frame);

// Create a graphics object to define our mask
let mask = new Graphics()
// Add the rectangular area to show
.rect(0,0,200,200)
.fill(0xffffff);

// Add container that will hold our masked content
let maskContainer = new Container();
// Set the mask to use our graphics object from above
maskContainer.mask = mask;
// Add the mask as a child, so that the mask is positioned relative to its parent
maskContainer.addChild(mask);
// Offset by the window's frame width
maskContainer.position.set(4,4);
// And add the container to the window!
frame.addChild(maskContainer);

// Create contents for the masked container
let text = new Text({
text:'This text will scroll up and be masked, so you can see how masking works. Lorem ipsum and all that.\n\n' +
'You can put anything in the container and it will be masked!',
style{
fontSize: 24,
fill: 0x1010ff,
wordWrap: true,
wordWrapWidth: 180
},
x:10
});

maskContainer.addChild(text);

// Add a ticker callback to scroll the text up and down
let elapsed = 0.0;
app.ticker.add(({delta}) => {
// Update the text's y coordinate to scroll it
elapsed += delta;
text.y = 10 + -100.0 + Math.cos(elapsed/50.0) * 100.0;
});

There are two types of masks supported by PixiJS:

Use a Graphics object to create a mask with an arbitrary shape - powerful, but doesn't support anti-aliasing

Sprite: Use the alpha channel from a Sprite as your mask, providing anti-aliased edging - not supported on the Canvas renderer

Filtering

Another common use for Container objects is as hosts for filtered content. Filters are an advanced, WebGL/WebGPU-only feature that allows PixiJS to perform per-pixel effects like blurring and displacements. By setting a filter on a Container, the area of the screen the Container encompasses will be processed by the filter after the Container's contents have been rendered.

Below are list of filters available by default in PixiJS. There is, however, a community repository with many more filters.

FilterDescription
AlphaFilterSimilar to setting alpha property, but flattens the Container instead of applying to children individually.
BlurFilterApply a blur effect
ColorMatrixFilterA color matrix is a flexible way to apply more complex tints or color transforms (e.g., sepia tone).
DisplacementFilterDisplacement maps create visual offset pixels, for instance creating a wavy water effect.
NoiseFilterCreate random noise (e.g., grain effect).

Under the hood, each Filter we offer out of the box is written in both glsl (for WebGL) and wgsl (for WebGPU). This means all filters should work on both renderers.

Important: Filters should be use somewhat sparingly. They can slow performance and increase memory if used too often in a scene.

- - + + \ No newline at end of file diff --git a/guides/components/graphics.html b/guides/components/graphics.html index 9b892aaae..0f051448e 100644 --- a/guides/components/graphics.html +++ b/guides/components/graphics.html @@ -9,13 +9,13 @@ - - + +

Graphics

Graphics is a complex and much misunderstood tool in the PixiJS toolbox. At first glance, it looks like a tool for drawing shapes. And it is! But it can also be used to generate masks. How does that work?

In this guide, we're going to de-mystify the Graphics object, starting with how to think about what it does.

Check out the graphics example code.

Graphics Is About Building - Not Drawing

First-time users of the Graphics class often struggle with how it works. Let's look at an example snippet that creates a Graphics object and draws a rectangle:

// Create a Graphics object, draw a rectangle and fill it
let obj = new Graphics()
.rect(0, 0, 200, 100)
.fill(0xff0000);

// Add it to the stage to render
app.stage.addChild(obj);

That code will work - you'll end up with a red rectangle on the screen. But it's pretty confusing when you start to think about it. Why am I drawing a rectangle when constructing the object? Isn't drawing something a one-time action? How does the rectangle get drawn the second frame? And it gets even weirder when you create a Graphics object with a bunch of drawThis and drawThat calls, and then you use it as a mask. What???

The problem is that the function names are centered around drawing, which is an action that puts pixels on the screen. But in spite of that, the Graphics object is really about building.

Let's look a bit deeper at that rect() call. When you call rect(), PixiJS doesn't actually draw anything. Instead, it stores the rectangle you "drew" into a list of geometry for later use. If you then add the Graphics object to the scene, the renderer will come along, and ask the Graphics object to render itself. At that point, your rectangle actually gets drawn - along with any other shapes, lines, etc. that you've added to the geometry list.

Once you understand what's going on, things start to make a lot more sense. When you use a Graphics object as a mask, for example, the masking system uses that list of graphics primitives in the geometry list to constrain which pixels make it to the screen. There's no drawing involved.

That's why it helps to think of the Graphics class not as a drawing tool, but as a geometry building tool.

Types of Primitives

There are a lot of functions in the Graphics class, but as a quick orientation, here's the list of basic primitives you can add:

  • Line
  • Rect
  • RoundRect
  • Circle
  • Ellipse
  • Arc
  • Bezier and Quadratic Curve

In addition, you have access to the following complex primitives:

  • Torus
  • Chamfer Rect
  • Fillet Rect
  • Regular Polygon
  • Star
  • Rounded Polygon

There is also support for svg. But due to the nature of how PixiJS renders holes (it favours performance) Some complex hole shapes may render incorrectly. But for the majority of shapes, this will do the trick!

 let mySvg = new Graphics()
.svg('M 100 350 q 150 -300 300 0');

The GraphicsContext

Understanding the relationship between Sprites and their shared Texture can help grasp the concept of a GraphicsContext. Just as multiple Sprites can utilize a single Texture, saving memory by not duplicating pixel data, a GraphicsContext can be shared across multiple Graphics objects.

This sharing of a GraphicsContext means that the intensive task of converting graphics instructions into GPU-ready geometry is done once, and the results are reused, much like textures. Consider the difference in efficiency between these approaches:

Creating individual circles without sharing a context:

// Create 5 circles
for (let i = 0; i < 5; i++) {
let circle = new Graphics()
.circle(100, 100, 50)
.fill('red');
}

Versus sharing a GraphicsContext:

// Create a master Graphicscontext
let circleContext = new GraphicsContext()
.circle(100, 100, 50)
.fill('red')

// Create 5 duplicate objects
for (let i = 0; i < 5; i++) {
// Initialize the duplicate using our circleContext
let duplicate = new Graphics(circleContext);
}

Now, this might not be a huge deal for circles and squares, but when you are using SVGs, it becomes quite important to not have to rebuild each time and instead share a GraphicsContext. It's recommended for maximum performance to create your contexts upfront and reuse them, just like textures!

let circleContext = new GraphicsContext()
.circle(100, 100, 50)
.fill('red')

let rectangleContext = new GraphicsContext()
.rect(0, 0, 50, 50)
.fill('red')

let frames = [circleContext, rectangleContext];
let frameIndex = 0;

const graphics = new Graphics(frames[frameIndex]);

// animate from square to circle:

function update()
{
// swap the context - this is a very cheap operation!
// much cheaper than clearing it each frame.
graphics.context = frames[frameIndex++%frames.length];
}

If you don't explicitly pass a GraphicsContext when creating a Graphics object, then internally, it will have its own context, accessible via myGraphics.context. The GraphicsContext class manages the list of geometry primitives created by the Graphics parent object. Graphics functions are literally passed through to the internal contexts:

let circleGraphics = new Graphics()
.circle(100, 100, 50)
.fill('red')

same as:

let circleGraphics = new Graphics()

circleGraphics.context
.circle(100, 100, 50)
.fill('red')

Calling Graphics.destroy() will destroy the graphics. If a context was passed to it via the constructor then it will leave the destruction the that context to you. However if the context is internally created (the default), when destroyed the Graphics object will destroy its internal GraphicsContext.

Graphics For Display

OK, so now that we've covered how the Graphics class works, let's look at how you use it. The most obvious use of a Graphics object is to draw dynamically generated shapes to the screen.

Doing so is simple. Create the object, call the various builder functions to add your custom primitives, then add the object to the scene graph. Each frame, the renderer will come along, ask the Graphics object to render itself, and each primitive, with associated line and fill styles, will be drawn to the screen.

Graphics as a Mask

You can also use a Graphics object as a complex mask. To do so, build your object and primitives as usual. Next create a Container object that will contain the masked content, and set its mask property to your Graphics object. The children of the container will now be clipped to only show through inside the geometry you've created. This technique works for both WebGL and Canvas-based rendering.

Check out the masking example code.

Caveats and Gotchas

The Graphics class is a complex beast, and so there are a number of things to be aware of when using it.

Memory Leaks: Call destroy() on any Graphics object you no longer need to avoid memory leaks.

Holes: Holes you create have to be completely contained in the shape or else it may not be able to triangulate correctly.

Changing Geometry: If you want to change the shape of a Graphics object, you don't need to delete and recreate it. Instead you can use the clear() function to reset the contents of the geometry list, then add new primitives as desired. Be careful of performance when doing this every frame.

Performance: Graphics objects are generally quite performant. However, if you build highly complex geometry, you may pass the threshold that permits batching during rendering, which can negatively impact performance. It's better for batching to use many Graphics objects instead of a single Graphics with many shapes.

Transparency: Because the Graphics object renders its primitives sequentially, be careful when using blend modes or partial transparency with overlapping geometry. Blend modes like ADD and MULTIPLY will work on each primitive, not on the final composite image. Similarly, partially transparent Graphics objects will show primitives overlapping. To apply transparency or blend modes to a single flattened surface, consider using AlphaFilter or RenderTexture.

- - + + \ No newline at end of file diff --git a/guides/components/interaction.html b/guides/components/interaction.html index 1529aeaa4..e2490675c 100644 --- a/guides/components/interaction.html +++ b/guides/components/interaction.html @@ -9,13 +9,13 @@ - - + +

Interaction

PixiJS is primarily a rendering system, but it also includes support for interactivity. Adding support for mouse and touch events to your project is simple and consistent.

Event Modes

The new event-based system that replaced InteractionManager from v6 has expanded the definition of what a Container means to be interactive. With this we have introduced eventMode which allows you to control how an object responds to interaction events. This is similar to the interactive property in v6 but with more options.

eventModeDescription
noneIgnores all interaction events, similar to CSS's pointer-events: none, good optimization for non-interactive children
passiveDoes not emit events and ignores hit testing on itself but does allow for events and hit testing only its interactive children. This is default eventMode for all containers
autoDoes not emit events and but is hit tested if parent is interactive. Same as interactive = false in v7
staticEmit events and is hit tested. Same as interaction = true in v7, useful for objects like buttons that do not move.
dynamicEmits events and is hit tested but will also receive mock interaction events fired from a ticker to allow for interaction when the mouse isn't moving. This is useful for elements that independently moving or animating.

Event Types

PixiJS supports the following event types:

Event TypeDescription
pointercancelFired when a pointer device button is released outside the display object that initially registered a pointerdown.
pointerdownFired when a pointer device button is pressed on the display object.
pointerenterFired when a pointer device enters the display object.
pointerleaveFired when a pointer device leaves the display object.
pointermoveFired when a pointer device is moved while over the display object.
globalpointermoveFired when a pointer device is moved, regardless of hit-testing the current object.
pointeroutFired when a pointer device is moved off the display object.
pointeroverFired when a pointer device is moved onto the display object.
pointertapFired when a pointer device is tapped twice on the display object.
pointerupFired when a pointer device button is released over the display object.
pointerupoutsideFired when a pointer device button is released outside the display object that initially registered a pointerdown.
mousedown Fired when a mouse button is pressed on the display object.
mouseenterFired when the mouse cursor enters the display object.
mouseleaveFired when the mouse cursor leaves the display object.
mousemove Fired when the mouse cursor is moved while over the display object.
globalmousemoveFired when a mouse is moved, regardless of hit-testing the current object.
mouseout Fired when the mouse cursor is moved off the display object.
mouseover Fired when the mouse cursor is moved onto the display object.
mouseup Fired when a mouse button is released over the display object.
mouseupoutside Fired when a mouse button is released outside the display object that initially registered a mousedown.
click Fired when a mouse button is clicked (pressed and released) over the display object.
touchcancel Fired when a touch point is removed outside of the display object that initially registered a touchstart.
touchend Fired when a touch point is removed from the display object.
touchendoutside Fired when a touch point is removed outside of the display object that initially registered a touchstart.
touchmove Fired when a touch point is moved along the display object.
globaltouchmoveFired when a touch point is moved, regardless of hit-testing the current object.
touchstart Fired when a touch point is placed on the display object.
tap Fired when a touch point is tapped twice on the display object.
wheel Fired when a mouse wheel is spun over the display object.
rightclick Fired when a right mouse button is clicked (pressed and released) over the display object.
rightdown Fired when a right mouse button is pressed on the display object.
rightup Fired when a right mouse button is released over the display object.
rightupoutside Fired when a right mouse button is released outside the display object that initially registered a rightdown.

Enabling Interaction

Any Container-derived object (Sprite, Container, etc.) can become interactive simply by setting its eventMode property to any of the eventModes listed above. Doing so will cause the object to emit interaction events that can be responded to in order to drive your project's behavior.

Check out the interaction example code.

To respond to clicks and taps, bind to the events fired on the object, like so:

let sprite = Sprite.from('/some/texture.png');
sprite.on('pointerdown', (event) => { alert('clicked!'); });
sprite.eventMode = 'static';

Check out the Container for the list of interaction events supported.

Checking if Object is Interactive

You can check if an object is interactive by calling the isInteractive property. This will return true if eventMode is set to static or dynamic.

if (sprite.isInteractive()) {
// sprite is interactive
}

Use Pointer Events

PixiJS supports three types of interaction events - mouse, touch and pointer. Mouse events are fired by mouse movement, clicks etc. Touch events are fired for touch-capable devices. And pointer events are fired for both.

What this means is that, in many cases, you can write your project to use pointer events and it will just work when used with either mouse or touch input. Given that, the only reason to use non-pointer events is to support different modes of operation based on input type or to support multi-touch interaction. In all other cases, prefer pointer events.

Optimization

Hit testing requires walking the full object tree, which in complex projects can become an optimization bottleneck. To mitigate this issue, PixiJS Container-derived objects have a property named interactiveChildren. If you have Containers or other objects with complex child trees that you know will never be interactive, you can set this property to false and the hit testing algorithm will skip those children when checking for hover and click events. As an example, if you were building a side-scrolling game, you would probably want to set background.interactiveChildren = false for your background layer with rocks, clouds, flowers, etc. Doing so would speed up hit testing substantially due to the number of unclickable child objects the background layer would contain.

The EventSystem can also be customised to be more performant:

const app = new Application({
eventMode: 'passive',
eventFeatures: {
move: true,
/** disables the global move events which can be very expensive in large scenes */
globalMove: false,
click: true,
wheel: true,
}
});
- - + + \ No newline at end of file diff --git a/guides/components/sprite-sheets.html b/guides/components/sprite-sheets.html index db8d8a2ba..f54349398 100644 --- a/guides/components/sprite-sheets.html +++ b/guides/components/sprite-sheets.html @@ -9,13 +9,13 @@ - - + +

Spritesheets

Now that you understand basic sprites, it's time to talk about a better way to create them - the Spritesheet class.

A Spritesheet is a media format for more efficiently downloading and rendering Sprites. While somewhat more complex to create and use, they are a key tool in optimizing your project.

Anatomy of a Spritesheet

The basic idea of a spritesheet is to pack a series of images together into a single image, track where each source image ends up, and use that combined image as a shared BaseTexture for the resulting Sprites.

The first step is to collect the images you want to combine. The sprite packer then collects the images, and creates a new combined image.

As this image is being created, the tool building it keeps track of the location of the rectangle where each source image is stored. It then writes out a JSON file with that information.

These two files, in combination, can be passed into a SpriteSheet constructor. The SpriteSheet object then parses the JSON, and creates a series of Texture objects, one for each source image, setting the source rectangle for each based on the JSON data. Each texture uses the same shared BaseTexture as its source.

Doubly Efficient

SpriteSheets help your project in two ways.

First, by speeding up the loading process. While downloading a SpriteSheet's texture requires moving the same (or even slightly more!) number of bytes, they're grouped into a single file. This means that the user's browser can request and download far fewer files for the same number of Sprites. The number of files itself is a key driver of download speed, because each request requires a round-trip to the webserver, and browsers are limited to how many files they can download simultaneously. Converting a project from individual source images to shared sprite sheets can cut your download time in half, at no cost in quality.

Second, by improving batch rendering. WebGL rendering speed scales roughly with the number of draw calls made. Batching multiple Sprites, etc. into a single draw call is the main secret to how PixiJS can run so blazingly fast. Maximizing batching is a complex topic, but when multiple Sprites all share a common BaseTexture, it makes it more likely that they can be batched together and rendered in a single call.

Creating SpriteSheets

You can use a 3rd party tool to assemble your sprite sheet files. Here are two that may fit your needs:

ShoeBox: ShoeBox is a free, Adobe AIR-based sprite packing utility that is great for small projects or learning how SpriteSheets work.

TexturePacker: TexturePacker is a more polished tool that supports advanced features and workflows. A free version is available which has all the necessary features for packing spritesheets for PixiJS. It's a good fit for larger projects and professional game development, or projects that need more complex tile mapping features.

Spritesheet data can also be created manually or programmatically, and supplied to a new AnimatedSprite. This may be an easier option if your sprites are already contained in a single image.

// Create object to store sprite sheet data
const atlasData = {
frames: {
enemy1: {
frame: { x: 0, y:0, w:32, h:32 },
sourceSize: { w: 32, h: 32 },
spriteSourceSize: { x: 0, y: 0, w: 32, h: 32 }
},
enemy2: {
frame: { x: 32, y:0, w:32, h:32 },
sourceSize: { w: 32, h: 32 },
spriteSourceSize: { x: 0, y: 0, w: 32, h: 32 }
},
},
meta: {
image: 'images/spritesheet.png',
format: 'RGBA8888',
size: { w: 128, h: 32 },
scale: 1
},
animations: {
enemy: ['enemy1','enemy2'] //array of frames by name
}
}


// Create the SpriteSheet from data and image
const spritesheet = new Spritesheet(
Texture.from(atlasData.meta.image),
atlasData
);

// Generate all the Textures asynchronously
await spritesheet.parse();

// spritesheet is ready to use!
const anim = new AnimatedSprite(spritesheet.animations.enemy);

// set the animation speed
anim.animationSpeed = 0.1666;
// play the animation on a loop
anim.play();
// add it to the stage to render
app.stage.addChild(anim);
- - + + \ No newline at end of file diff --git a/guides/components/sprites.html b/guides/components/sprites.html index 97bb9ae78..621b594d2 100644 --- a/guides/components/sprites.html +++ b/guides/components/sprites.html @@ -9,13 +9,13 @@ - - + +

Sprites

Sprites are the simplest and most common renderable object in PixiJS. They represent a single image to be displayed on the screen. Each Sprite contains a Texture to be drawn, along with all the transformation and display state required to function in the scene graph.

Creating Sprites

To create a Sprite, all you need is a Texture (check out the Texture guide). Load a PNG's URL using the Assets class, then call Sprite.from(url) and you're all set. Unlike v7 you now must load your texture before using it, this is to ensure best practices.

Check out the sprite example code.

Using Sprites

In our Container guide, we learned about the Container class and the various properties it defines. Since Sprite objects are also containers, you can move a sprite, rotate it, and update any other display property.

Alpha, Tint and Blend Modes

Alpha is a standard display object property. You can use it to fade sprites into the scene by animating each sprite's alpha from 0.0 to 1.0 over a period of time.

Tinting allows you multiply the color value of every pixel by a single color. For example, if you had a dungeon game, you might show a character's poison status by setting obj.tint = 0x00FF00, which would give a green tint to the character.

Blend modes change how pixel colors are added to the screen when rendering. The three main modes are add, which adds each pixel's RGB channels to whatever is under your sprite (useful for glows and lighting), multiply which works like tint, but on a per-pixel basis, and screen, which overlays the pixels, brightening whatever is underneath them.

Scale vs Width & Height

One common area of confusion when working with sprites lies in scaling and dimensions. The Container class allows you to set the x and y scale for any object. Sprites, being Containers, also support scaling. In addition, however, Sprites support explicit width and height attributes that can be used to achieve the same effect, but are in pixels instead of a percentage. This works because a Sprite object owns a Texture, which has an explicit width and height. When you set a Sprite's width, internally PixiJS converts that width into a percentage of the underlying texture's width and updates the object's x-scale. So width and height are really just convenience methods for changing scale, based on pixel dimensions rather than percentages.

Pivot vs Anchor

If you add a sprite to your stage and rotate it, it will by default rotate around the top-left corner of the image. In some cases, this is what you want. In many cases, however, what you want is for the sprite to rotate around the center of the image it contains, or around an arbitrary point.

There are two ways to achieve this: pivots and anchors

An object's pivot is an offset, expressed in pixels, from the top-left corner of the Sprite. It defaults to (0, 0). If you have a Sprite whose texture is 100px x 50px, and want to set the pivot point to the center of the image, you'd set your pivot to (50, 25) - half the width, and half the height. Note that pivots can be set outside of the image, meaning the pivot may be less than zero or greater than the width/height. This can be useful in setting up complex animation hierarchies, for example. Every Container has a pivot.

An anchor, in contrast, is only available for Sprites. Anchors are specified in percentages, from 0.0 to 1.0, in each dimension. To rotate around the center point of a texture using anchors, you'd set your Sprite's anchor to (0.5, 0.5) - 50% in width and height. While less common, anchors can also be outside the standard 0.0 - 1.0 range.

The nice thing about anchors is that they are resolution and dimension agnostic. If you set your Sprite to be anchored in the middle then later change the size of the texture, your object will still rotate correctly. If you had instead set a pivot using pixel-based calculations, changing the texture size would require changing your pivot point.

So, generally speaking, you'll want to use anchors when working with Sprites.

One final note: unlike CSS, where setting the transform-origin of the image doesn't move it, in PixiJS setting an anchor or pivot will move your object on the screen. In other words, setting an anchor or pivot affects not just the rotation origin, but also the position of the sprite relative to its parent.

- - + + \ No newline at end of file diff --git a/guides/components/text.html b/guides/components/text.html index 780f0dae0..d4091e167 100644 --- a/guides/components/text.html +++ b/guides/components/text.html @@ -9,13 +9,13 @@ - - + +

Text

Whether it's a high score or a diagram label, text is often the best way to convey information in your projects. Surprisingly, drawing text to the screen with WebGL is a very complex process - there's no built in support for it at all. One of the values PixiJS provides is in hiding this complexity to allow you to draw text in diverse styles, fonts and colors with a few lines of code. In addition, these bits of text are just as much scene objects as sprites - you can tint text, rotate it, alpha-blend it, and otherwise treat it like any other graphical object.

Let's dig into how this works.

There Are Three Kinds of Text

Because of the challenges of working with text in WebGL, PixiJS provides three very different solutions. In this guide, we're going to go over both methods in some detail to help you make the right choice for your project's needs. Selecting the wrong text type can have a large negative impact on your project's performance and appearance.

The Text Object

In order to draw text to the screen, you use a Text object. Under the hood, this class draws text to an off-screen buffer using the browser's normal text rendering, then uses that offscreen buffer as the source for drawing the text object. Effectively what this means is that whenever you create or change text, PixiJS creates a new rasterized image of that text, and then treats it like a sprite. This approach allows truly rich text display while keeping rendering speed high.

So when working with Text objects, there are two sets of options - standard display object options like position, rotation, etc that work after the text is rasterized internally, and text style options that are used while rasterizing. Because text once rendered is basically just a sprite, there's no need to review the standard options. Instead, let's focus on how text is styled.

Check out the text example code.

Text Styles

There are a lot of text style options available (see TextStyle), but they break down into 5 main groups:

Font: fontFamily to select the webfont to use, fontSize to specify the size of the text to draw, along with options for font weight, style and variant.

Appearance: Set the color with fill or add a stroke outline, including options for gradient fills.

Drop-Shadows: Set a drop-shadow with dropShadow, with a host of related options to specify offset, blur, opacity, etc.

Layout: Enable with wordWrap and wordWrapWidth, and then customize the lineHeight and align or letterSpacing

Utilities: Add padding or trim extra space to deal with funky font families if needed.

To interactively test out feature of Text Style, check out this tool.

Loading and Using Fonts

In order for PixiJS to build a Text object, you'll need to make sure that the font you want to use is loaded by the browser. This can be easily accomplished with our good friends Assets

// load the fonts
await Assets.load('short-stack.woff2');

// now they can be used!

const text = new Text({
text:'hello',
style:{
fontFamily:'short-stack'
}
})

Caveats and Gotchas

While PixiJS does make working with text easy, there are a few things you need to watch out for.

First, changing an existing text string requires re-generating the internal render of that text, which is a slow operation that can impact performance if you change many text objects each frame. If your project requires lots of frequently changing text on the screen at once, consider using a BitmapText object (explained below) which uses a fixed bitmap font that doesn't require re-generation when text changes.

Second, be careful when scaling text. Setting a text object's scale to > 1.0 will result in blurry/pixely display, because the text is not re-rendered at the higher resolution needed to look sharp - it's still the same resolution it was when generated. To deal with this, you can render at a higher initial size and down-scale, instead. This will use more memory, but will allow your text to always look clear and crisp.

BitmapText

In addition to the standard Text approach to adding text to your project, PixiJS also supports bitmap fonts. Bitmap fonts are very different from TrueType or other general purpose fonts, in that they consist of a single image containing pre-rendered versions of every letter you want to use. When drawing text with a bitmap font, PixiJS doesn't need to render the font glyphs into a temporary buffer - it can simply copy and stamp out each character of a string from the master font image.

The primary advantage of this approach is speed - changing text frequently is much cheaper and rendering each additional piece of text is much faster due to the shared source texture.

Check out the bitmap text example code.

BitmapFont

  • 3rd party solutions
  • BitmapFont.from auto-generation

Selecting the Right Approach

Text

  • Static text
  • Small number of text objects
  • High fidelity text rendering (kerning e.g.)
  • Text layout (line & letter spacing)

BitmapText

  • Dynamic text
  • Large number of text objects
  • Lower memory

HTMLText

  • Static text
  • Need that HTML formatting
- - + + \ No newline at end of file diff --git a/guides/components/textures.html b/guides/components/textures.html index 943645e69..d3714b150 100644 --- a/guides/components/textures.html +++ b/guides/components/textures.html @@ -9,13 +9,13 @@ - - + +

Textures

We're slowly working our way down from the high level to the low. We've talked about the scene graph, and in general about display objects that live in it. We're about to get to sprites and other simple display objects. But before we do, we need to talk about textures.

In PixiJS, textures are one of the core resources used by display objects. A texture, broadly speaking, represents a source of pixels to be used to fill in an area on the screen. The simplest example is a sprite - a rectangle that is completely filled with a single texture. But things can get much more complex.

Life-cycle of a Texture

Let's examine how textures really work, by following the path your image data travels on its way to the screen.

Here's the flow we're going to follow: Source Image > Loader > BaseTexture > Texture

Serving the Image

To start with, you have the image you want to display. The first step is to make it available on your server. This may seem obvious, but if you're coming to PixiJS from other game development systems, it's worth remembering that everything has to be loaded over the network. If you're developing locally, please be aware that you must use a webserver to test, or your images won't load due to how browsers treat local file security.

Loading the Image

To work with the image, the first step is to pull the image file from your webserver into the user's web browser. To do this, we can use Assets.load('myTexture.png'). Assets wraps and deals with telling the browser to fetch the image, convert it and then let you when that has been completed. This process is asynchronous - you request the load, then time passes, then a proimise completes to let you know the load is completed. We'll go into the loader in a lot more depth in a later guide.

const texture = await Assets.load('myTexture.png');

// pass a texture explicitly
const sprite = new Sprite(texture);
// as options
const sprite2 = new Sprite({texture});
// from the cache as the texture is loaded
const sprite3 = Sprite.from('myTexture.png')

TextureSources Own the Data

Once the texture has loaded, the loaded <IMG> element contains the pixel data we need. But to use it to render something, PixiJS has to take that raw image file and upload it to the GPU. This brings us to the real workhorse of the texture system - the TextureSource class. Each TextureSource manages a single pixel source - usually an image, but can also be a Canvas or Video element. TextureSources allow PixiJS to convert the image to pixels and use those pixels in rendering. In addition, it also contains settings that control how the texture data is rendered, such as the wrap mode (for UV coordinates outside the 0.0-1.0 range) and scale mode (used when scaling a texture).

TextureSource are automatically cached, so that calling Texture.from() repeatedly for the same URL returns the same TextureSource each time. Destroying a TextureSource frees the image data associated with it.

Textures are a View on BaseTextures

So finally, we get to the Texture class itself! At this point, you may be wondering what the Texture object does. After all, the BaseTexture manages the pixels and render settings. And the answer is, it doesn't do very much. Textures are light-weight views on an underlying BaseTexture. Their main attribute is the source rectangle within the TextureSource from which to pull.

If all PixiJS drew were sprites, that would be pretty redundant. But consider SpriteSheets. A SpriteSheet is a single image that contains multiple sprite images arranged within. In a Spritesheet object, a single TextureSource is referenced by a set of Textures, one for each source image in the original sprite sheet. By sharing a single TextureSource, the browser only downloads one file, and our batching renderer can blaze through drawing sprites since they all share the same underlying pixel data. The SpriteSheet's Textures pull out just the rectangle of pixels needed by each sprite.

That is why we have both Textures and TextureSource - to allow sprite sheets, animations, button states, etc to be loaded as a single image, while only displaying the part of the master image that is needed.

Loading Textures

We will discuss resource loading in a later guide, but one of the most common issues new users face when building a PixiJS project is how best to load their textures.

here's a quick cheat sheet of one good solution:

  1. Show a loading image
  2. Use Assets to ensure that all textures are loaded
  3. optionally update your loading image based on progress callbacks
  4. On loader completion, run all objects and use Texture.from() to pull the loaded textures out of the texture cache
  5. Prepare your textures (optional - see below)
  6. Hide your loading image, start rendering your scene graph

Using this workflow ensures that your textures are pre-loaded, to prevent pop-in, and is relatively easy to code.

Regarding preparing textures: Even after you've loaded your textures, the images still need to be pushed to the GPU and decoded. Doing this for a large number of source images can be slow and cause lag spikes when your project first loads. To solve this, you can use the Prepare plugin, which allows you to pre-load textures in a final step before displaying your project.

Unloading Textures

Once you're done with a Texture, you may wish to free up the memory (both WebGL-managed buffers and browser-based) that it uses. To do so, you should call destroy() on the BaseTexture that owns the data. Remember that Textures don't manage pixel data!

This is a particularly good idea for short-lived imagery like cut-scenes that are large and will only be used once. If a texture is destroyed that was loaded via Assets then the assets class will automatically remove it from the cache for you.

Beyond Images

As we alluded to above, you can make a Texture out of more than just images:

Video: Pass an HTML5 <VIDEO> element to TextureSource.from() to allow you to display video in your project. Since it's a texture, you can tint it, add filters, or even apply it to custom geometry.

Canvas: Similarly, you can wrap an HTML5 <CANVAS> element in a BaseTexture to let you use canvas's drawing methods to dynamically create a texture.

SVG: Pass in an <SVG> element or load a .svg URL, and PixiJS will attempt to rasterize it. For highly network-constrained projects, this can allow for beautiful graphics with minimal network load times.

RenderTexture: A more advanced (but very powerful!) feature is to build a Texture from a RenderTexture. This can allow for building complex geometry using a Geometry object, then baking that geometry down to a simple texture.

Each of these texture sources has caveats and nuances that we can't cover in this guide, but they should give you a feeling for the power of PixiJS's texture system.

Check out the render texture example code.

- - + + \ No newline at end of file diff --git a/guides/migrations/v5.html b/guides/migrations/v5.html index 4f5c743e2..d71aace49 100644 --- a/guides/migrations/v5.html +++ b/guides/migrations/v5.html @@ -9,13 +9,13 @@ - - + +

v5 Migration Guide

This document is useful for developers who are attempting to upgrading from v4 to v5. This includes gotchas and important context for understanding why your v4 code made need some subtle changes. In general, we've try to be as backward-compatible in v5 with the use of deprecation warnings in the console. There are, however, sometimes when changes are too substantial and require some additional help.

🚧 API Changes

Making WebGL First-Class

PixiJS v5 has made WebGL the first-class renderer and made CanvasRenderer to be second-class. Functionally, there's not much that changed from v4, but there are a bunch of subtle internal naming changes which could trip-up some developers upgrading to v5. For instance:

  • WebGLRenderer becomes Renderer
  • renderWebGL becomes render (in DisplayObject, Sprite, Container, etc)
  • _renderWebGL becomes _render (in DisplayObject, Container, etc)

If you created a plugin or project that previously used render on a Container (see #5510), this will probably cause your project to not render correctly. Please consider renaming your user-defined render to something else. In most other cases, you'll get a deprecation warning trying to invoke WebGL-related classes or methods, e.g., new PIXI.WebGLRenderer().

Renderer Parameters

Specifying options as a third parameter in Renderer constructor is officially dropped (same with PIXI.Application, PIXI.autoDetectRenderer & PIXI.CanvasRenderer). In v4 we supported two function signatures, but in v5 we dropped width, height, options signature. Please add width and height to options.

const renderer = new PIXI.Renderer(800, 600, { transparent: true }); // bad
const renderer = new PIXI.Renderer({ width: 800, height: 600, transparent: true }); // good
  • Note: Adding transparent: true in Renderer or Application constructor options might help with strange artifacts on some devices, but it might reduce FPS. It's much better than preserveDrawingBuffer: true.

  • If you need the v4 default behavior of resizing the canvas using css pixels, add autoDensity: true to the options.

Not everything went to params. To enable WebGL1 even if WebGL2 is available, use

PIXI.settings.PREFER_ENV = PIXI.ENV.WEBGL;

Mesh, Plane, Rope

PixiJS v5 introduces a new class called PIXI.Mesh. This allows overriding the default shader and the ability to add more attributes to geometry. For example, you can add colors to vertices.

The old v4 Mesh class has moved from PIXI.mesh.Mesh to PIXI.SimpleMesh, it extends PIXI.Mesh.

PIXI.mesh.Rope, PIXI.mesh.Plane, PIXI.mesh.NineSlicePlane have moved to PIXI.SimpleRope, PIXI.SimplePlane and PIXI.NineSlicePlane respectively.

If you used custom shaders or generated meshes in v4, you might be impacted by these changes in v5.

PIXI.SimpleMesh fields vertices, uvs, indices are wrapped inside mesh.geometry attribute buffers. For example, this is how access to buffers provided through mesh.uvBuffer property:

get uvBuffer()
{
return this.geometry.buffers[1];
}

The indices property shortcut is also missing, but you can access the data inside mesh.geometry.indexBuffer.

You can override buffer data, and notify it that data was changed, in this case buffer will be uploaded to GPU lazily. Previously in v4 mesh had several flags that indicated which attributes have to be updated and their names confused people.

Graphics Holes

Drawing holes in Graphics was very limited in v4. This only supported non-Shape drawing, like using lineTo, bezierCurveTo, etc. In v5, we improved the hole API by supporting shapes. Unfortunately, there's no deprecation strategy to support the v4 API. For instance, in v4:

const graphic = new PIXI.Graphics()
.beginFill(0xff0000)
.moveTo(0, 0)
.lineTo(100, 0)
.lineTo(100, 100)
.lineTo(0, 100)
.moveTo(10, 10)
.lineTo(90, 10)
.lineTo(90, 90)
.lineTo(10, 90)
.addHole();

Live example in v4.x

In v5, Graphics has simplified and the API changed from addHole to beginHole and endHole.

const graphic = new PIXI.Graphics()
.beginFill(0xff0000)
.drawRect(0, 0, 100, 100)
.beginHole()
.drawCircle(50, 50, 30)
.endHole();

Live example in dev

Filter Padding

In v4 filters had a default padding of 4 and in v5 this has been changed to a default of 0. This can cause some filters to look broken when used. To fix this issue simply add some padding to the filters you create.

// Glow filter from https://github.com/pixijs/pixi-filters
const filter = new PIXI.filters.GlowFilter();
filter.padding = 4;

Some filters, like BlurFilter, automatically calculate the padding so changes may not be necessary.

Filter Default Vertex Shader

We reorganized all uniforms dedicated to coordinate system transforms, and renamed them. If your filter doesn't work anymore, check if you use default vertex shader. In that case, you can use old v4 vertex shader code.

All changes are explained in [[Creating Filters|v5-Creating-filters]]

Enable Mipmapping for RenderTexture

Previously, you may have ended up with code like this in v4 (specifically if you saw Ivan's comment/JSFiddle):

const renderer = PIXI.autoDetectRenderer();
renderer.bindTexture(baseRenderTex, false, 0);
const glTex = baseRenderTex._glTextures[renderer.CONTEXT_UID];
glTex.enableMipmap(); // this is what actually generates mipmaps in WebGL
glTex.enableLinearScaling(); // this is what tells WebGL to USE those mipmaps

In v5, this code is no longer needed.

BaseTexture Resources

One of the newest features in v5 is that we decoupled all the asset-specific functionality from BaseTexture. We created a new system called "resources" and each BaseTexture now has a resource that wraps some specific asset type. For instance: VideoResource, SVGResource, ImageResource, CanvasResource. In the future, we hope to be able to add other resource types. If there were asset-specific methods or properties being called before, these will probably be on baseTexture.resource.

Also, we removed all of the from* methods from BaseTexture, so you just can call BaseTexture.from and pass in whatever resource. Please see docs for more information about from.

const canvas = document.createElement('canvas');
const baseTexture = PIXI.BaseTexture.from(canvas);

That API also allows to use pure WebGL and 2d context calls, see the gradient example.

BaseTexture.source

Has been moved to baseTexture.resource.source, moved into resource corresponding to the baseTexture. baseTexture.resource does not exist for RenderTexture, and source does not exist for resources that dont have source.

Graphics Interaction

If you use transparent interactive graphics trick, make sure that you use specify alpha=0 for all element, not for its parts. How PixiJS deals with shapes that have alpha=0 is considered undefined behaviour. We might change it back, but we have no guarantees about it.

graphics.beginFill(0xffffff, 0.0); //bad
graphics.alpha = 0; //good

📦 Publishing Changes

Canvas Becomes Legacy

Since WebGL and WebGL2 are now first-class, we have removed the canvas-based fallback from the default pixi.js package. If you need CanvasRenderer, you should switch to use pixi.js-legacy instead.

import * as PIXI from "pixi.js";
// Will NOT return CanvasRenderer because canvas-based
// functionality was removed from "pixi.js"
const renderer = PIXI.autoDetectRenderer(); // return PIXI.Renderer or throws error

Instead, use the legacy bundle to have access to the canvas rendering.

import * as PIXI from "pixi.js-legacy";
const renderer = PIXI.autoDetectRenderer(); // returns PIXI.Renderer or PIXI.CanvasRenderer

Bundling Changes

If you're using Rollup, Parcel or another bundler to add PixiJS into your project there are a few subtle changes when moving to v5. Namely, the global PIXI object is no longer created automatically. This was removed from bundling for two purpose: 1) to improve tree-shaking for bundlers, and 2) for security purpose by protecting PIXI.

This is no longer a valid way to import:

import "pixi.js";
const renderer = PIXI.autoDetectRenderer(); // INVALID! No more global.PIXI!

Instead, you should import as a namespace or individual elements:

import * as PIXI from "pixi.js";
const renderer = PIXI.autoDetectRenderer();

// or even better:
import { autoDetectRenderer } from "pixi.js";
const renderer = autoDetectRenderer();

Lastly, some 3rd-party plugins maybe expecting window.PIXI, so you might have to explicitly expose the global like this, however this is not recommended.

import * as PIXI from 'pixi.js';
window.PIXI = PIXI; // some bundlers might prefer "global" instead of "window"

Webpack

When Webpack and 3rd-party plugins, like pixi-spine, you might have difficulties building the global PIXI object resulting in a runtime error ReferenceError: PIXI is not defined. Usually this can be resolved by using Webpack shimming globals.

For instance, here's your import code:

import * as PIXI from 'pixi.js';
import 'pixi-spine'; // or other plugins that need global 'PIXI' to be defined first

Add a plugins section to your webpack.config.js to let know Webpack that the global PIXI variable make reference to pixi.js module. For instance:

const webpack = require('webpack');

module.exports = {
entry: '...',
output: {
...
},
plugins: [
new webpack.ProvidePlugin({
PIXI: 'pixi.js'
})
]
}
- - + + \ No newline at end of file diff --git a/guides/migrations/v6.html b/guides/migrations/v6.html index ee452d270..52f5a9aea 100644 --- a/guides/migrations/v6.html +++ b/guides/migrations/v6.html @@ -9,13 +9,13 @@ - - + +

v6 Migration Guide

PixiJS 6 comes with few surface-level breaking changes. This document is not complete.

Typings

If you're using TypeScript, make sure the follow is added to your tsconfig.json:

{
"compilerOptions": {
"moduleResolution": "node",
// Required for importing 3rd-party dependencies like EventEmitter3
"esModuleInterop": true
}
}

Mesh Internals

If you ever overrode Mesh._renderDefault to take into account more uniforms like this: v5 Reference

if (shader.program.uniformData.translationMatrix)
{
shader.uniforms.translationMatrix = this.transform.worldTransform.toArray(true);
}

Remove the if, leave the contents, otherwise you might not get correct sync uniform for translationMatrix, or even worse - get null pointer. v6 Reference.

shader.uniforms.translationMatrix = this.transform.worldTransform.toArray(true);
- - + + \ No newline at end of file diff --git a/guides/migrations/v7.html b/guides/migrations/v7.html index 6edf6ff30..0d231aaba 100644 --- a/guides/migrations/v7.html +++ b/guides/migrations/v7.html @@ -9,15 +9,15 @@ - - + +

v7 Migration Guide

First and foremost, PixiJS v7 is a modernization release that reflects changes in the ecosystem since PixiJS was first published over six years ago. Browsers have gotten better, but PixiJS hasn't really taken advantage of some of the new features like fetch, Workers, modern JavaScript language syntax. This release keeps intact much of the high-level DisplayObjects (e.g., Sprite, Graphics, Mesh, etc). Aside from a few things, this release should be medium to low impact for most users.

👋 Dropping Internet Explorer

Microsoft officially ended support for IE, so we decided to follow. It simplified many of our modernizations since IE was an outliner from Safari/Chrome/Firefox/Edge and mobile browsers. If you need support for IE, please consider using Babel or some other trans-piling tool.

🗑️ Remove Polyfills

We removed the bundled polyfills such as requestAnimationFrame and Promise. These things are widely available in browsers now. If projects require them, developers should include the polyfills they need for backward-compatibility. Please check out polyfill.io.

💬 Output ES2020 (modules) and ES2017 (browser)

PixiJS historically only published ES5 (no classes!). A new output standard allows us to use ES2017 features that previously we couldn't use (e.g., String.prototype.startsWith, Array.prototype.contains, etc). Not only does it make the code more readable, but the output looks nicer as well. For modules we are outputting ES2020, which contains syntax like nullish coalescing (??). If your project needs to have backward compatibility, you can use Babel to transpile or polyfill.

🐭 Replaces InteractionManager with EventSystem

InteractionManager was getting complex and difficult to maintain. Few core team members understood the code. We decided to move to FederatedEvents, which is concise, better aligned with the DOM, and supports things like bubbling. The good news, is you shouldn't have to change code, as it is largely a drop-in replacement. We added addEventListener and removeEventListener APIs to DisplayObject which have the same DOM signature and can be used instead of on and off.

📦 Replaces Loader with Assets

Similarly, we've been wanting to remove the Loader because of its legacy approach (e.g., XMLHttpRequest). This was forked from resource-loader that has been with PixiJS for a long time. The original design inspiration for Loader was driven largely by Flash/AS3, which now seem dated. There were a few things we wanted out of a new iteration: static loading, loading with Workers, background loading, Promise-based, fewer layers of caching. Here's a quick example of how this will change:

import { Loader, Sprite } from 'pixi.js';

const loader = new Loader();
loader.add('background', 'path/to/assets/background.jpg');
loader.load((loader, resources) => {
const image = Sprite.from(resources.background.texture);
});

Now becomes:

import { Assets, Sprite } from 'pixi.js';

const texture = await Assets.load('path/to/assets/background.jpg');
const image = Sprite.from(texture);

🤝 Abandon the use of peerDependencies

PixiJS heavily uses peerDependencies in the package.json within each package. This design choice has plagued Pixi with many issues. It's a breaking change to remove, so now was a good time. We have decided to completely remove peerDependencies, instead opting for nothing. This should make installing and upgrading pixi.js much easier. We are working on updating our tooling for composing a custom version with packages. Edit: As of 7.2.0, we have reverted this change to keep compatibility with some module-based CDNs.

👂 Other Changes

  • Browser builds have been removed for all packages, with the exception of pixi.js and pixi.js-legacy.
  • Removes Graphics.nextRoundedRectBehavior this is now the default behavior
  • Removes Text.nextLineHeightBehavior this is now the default behavior
  • AbstractBatchRenderer and BatchPluginFactory has been removed. Either extends BatchRenderer or use setShaderGenerator on the default BatchRenderer, (e.g., renderer.plugins.batch)
  • BatchRenderer is installed by default in @pixi/core, no need to Renderer.registerPlugin('batch', BatchRenderer) anymore

Exports from @pixi/core

The @pixi/core package now depends and re-exports the following packages.

  • @pixi/math
  • @pixi/contants
  • @pixi/utils
  • @pixi/runner
  • @pixi/settings
  • @pixi/ticker

While some packages will still work when installed directly, others will not, since by installing them alongside @pixi/core you will be effectively importing two copies of the same code.  This will lead to errors where changing settings from @pixi/settings doesn't do anything since @pixi/core has its own version of that package. It is recommended that you uninstall these from your project and use @pixi/core instead.

import { Rectangle } from '@pixi/math';
import { settings } from '@pixi/settings';
import { ALPHA_MODES } from '@pixi/constants';
import { string2hex } from '@pixi/utils';

Now becomes:

import { Rectangle, settings, ALPHA_MODES, utils } from '@pixi/core';

const { string2hex } = utils;

Extract and Prepare Systems

Extract and prepare plugins have been converted to Renderer "systems".

renderer.plugins.extract
renderer.plugins.prepare

Now becomes:

renderer.extract
renderer.prepare

Extensions Self-Install

Extensions now install themselves, so you should only need to import the class in order to use. For example, in v6:

import { AccessibilityManager } from '@pixi/accessibility';
import { extensions } from '@pixi/core';
extensions.add(AccessibilityManager);

Now becomes:

import '@pixi/accessibility';

Using hitTest with Events

With the new events system, one of the common APIs that changed is `hitTest.

import {Application} from 'pixi.js';

const app = new Application();
app.renderer.plugins.interaction.hitTest({x, y});

Now becomes:

import {Application, EventBoundary} from 'pixi.js';

const app = new Application();
const boundary = new EventBoundary(app.stage);
boundary.hitTest(x, y);

New Async Extract Methods

The following methods are now async and return a Promise.

  • CanvasExtract.base64()
  • CanvasExtract.image()
  • Extract.base64()
  • Extract.image()
import {Application, EventBoundary} from 'pixi.js';

const app = new Application();
const dataUri = app.renderer.extract.base64();

Now becomes:

import {Application, EventBoundary} from 'pixi.js';

const app = new Application();
const dataUri = await app.renderer.extract.base64();

Interactive Move Events

Interaction events in PixiJS now behave like the DOM in v7. This was intentional to align around behavior that would be familiar with developers, but obviously impacts the behavior with pointermove, mousemove, and touchmove.

Like the DOM, move events are now local. This means that if you are outside the bounds of the object, you will not receive a move event. Generally, you should consider adding move events to the stage or parent instead of the DisplayObject itself.

Working example: https://jsfiddle.net/bigtimebuddy/spnv4wm6/

Interactive Property Handlers are Removed

Property-based handlers were removed from events. This was a feature of the old InteractionManager. For instance:

sprite.pointertap = () => {
// handler the pointertap
};

Now becomes:

sprite.on('pointertap', () => {
// handler the pointertap
});

Property buttonMode has been removed

The property buttonMode was a convenience for toggling the cursor property between pointer and null. It has now been removed.

sprite.buttonMode = true;

Now becomes:

sprite.cursor = 'pointer';

If you would like to re-add this functionality, you can patch DisplayObject's prototype:

import { DisplayObject } from 'pixi.js';

Object.defineProperty(DisplayObject.prototype, 'buttonMode', {
get() { return this.cursor === 'pointer'; },
set(value) { this.cursor = value ? 'pointer' : null; },
});

☝️ Suggestions for Upgrading

If you're planning on transitioning your code from v6, it would be helpful to implement some of the more dramatic changes in v6 first before upgrading to v7:

import { InteractionManager, extensions, Application } from 'pixi.js';
import { EventSystem } from '@pixi/events';

// Uninstall interaction
extensions.remove(InteractionManager);

// Create the renderer or application
const app = new Application();

// Install events
app.renderer.addSystem(EventSystem, 'events');
  • Switch to the Assets package by installing @pixi/assets and swapping for Loader. For more information on implementing Assets, see this guide.
  • Set Graphics.nextRoundedRectBehavior = true, this uses arcs for corner radius instead of bezier curves.
  • Set Text.nextLineHeightBehavior = true, this defaults to the DOM-like behavior for line height.

🏗️ Plugin Supported

PluginCompatiblePlugin Version Supported
PixiJS Soundv5.0.0+
PixiJS HTMLTextv3.0.0+
PixiJS Filtersv5.0.0+
PixiJS GIFv2.0.0+
PixiJS Spinev4.0.0+
PixiJS Particle Emitterv5.0.8+
PixiJS Animate
PixiJS Layersv2.0.0+
PixiJS Lightsv4.0.0+
PixiJS Graphics Smoothv1.0.0+
PixiJS Tilemap
- - + + \ No newline at end of file diff --git a/guides/migrations/v8.html b/guides/migrations/v8.html index 4c940a186..be3ef448e 100644 --- a/guides/migrations/v8.html +++ b/guides/migrations/v8.html @@ -9,8 +9,8 @@ - - + +
@@ -19,7 +19,7 @@ Old
  const rectAndHole = new Graphics()
.beginFill(0x00FF00)
.drawRect(0, 0, 100, 100)
.beginHole()
.drawCircle(50, 50, 20)
.endHole()
.endFill();

New

  const rectAndHole = new Graphics()
.rect(0, 0, 100, 100)
.fill(0x00FF00)
.circle(50, 50, 20)
.cut();
  • GraphicsGeometry has been replaced with GraphicsContext this allows for sharing of Graphics data more efficiently. Old
  const rect = new Graphics()
.beginFill(0xFF0000);
.drawRect(50, 50, 100, 100);
.endFill();

const geometry = rect.geometry;

const secondRect = new Graphics(geometry);

New

  const context = new GraphicsContext()
.rect(50, 50, 100, 100)
.fill(0xFF0000)

const rect = new Graphics(context);
const secondRect = new Graphics(context);

Other Breaking Changes

  • updateTransform has been removed as nodes no longer contain any rendering logic

    We do recognise that many people used this function to do custom logic every frame, so we have added a new onRender function that can be used for this purpose.

    Old:

    class MySprite extends Sprite {
    constructor() {
    super();
    this.updateTransform();
    }

    updateTransform() {
    super.updateTransform();
    // do custom logic
    }
    }

    New:

    class MySprite extends Sprite {
    constructor() {
    super();
    this.onRender = this._onRender.bind(this);
    }

    _onRender() {
    // do custom logic
    }
    }
  • Mipmap generation changes

    • The BaseTexture mipmap property has been renamed to autoGenerateMipmaps.
    • Mipmaps for RenderTextures have been adjusted so that developer is responsible for updating them mipmaps. Mipmap generation can be expensive, and due to the new reactive way we handle textures we do not want to accidentally generate mipmaps when they are not required.
const myRenderTexture = RenderTexture.create({width:100, height:100, autoGenerateMipmaps:true})

// do some rendering..
renderer.render({target:myRenderTexture, container:scene})

// now refresh mipmaps when you are ready
myRenderTexture.source.updateMipmaps();
  • Due to the new way PixiJS handles things internally, sprites no longer get notified if a texture's UVs have been modified. The best practice is not to modify texture UVs once they have been created. It's best to have textures ready to go (they are inexpensive to create and store).
  • Sometimes, you might want to employ a special technique that animates the UVs. In this last instance, you will be responsible for updating the sprite (it's worth noting that it may update automatically - but due to the new optimizations, this will not be guaranteed). Updating the source data (e.g., a video texture) will, however, always be reflected immediately.
const texture = await Assets.load('bunny.png');
const sprite = new Sprite(texture);

texture.frame.width = texture.frame.width/2;
texture.update();

// guarantees the texture changes will be reflected on the sprite
sprite.onViewUpdate();


// alternatively you can hooke into the sprites event
texture.on('update', ()=>{sprite.onViewUpdate});

The act of adding and removing the event when a sprite's texture was changed led to an unacceptable performance drop, especially when swapping many textures (imagine shooting games with lots of keyframe textures swapping). This is why we now leave that responsibility to the user.

  • New Container culling approach

    With this version of PixiJS we have changed how the cullable property works on containers. Previously culling was done for you automatically during the render loop. However, we have moved this logic out and provided users the ability to control when culling happens themselves.

    With this change we have added a couple of new properties:

    • cullable - Whether or not the container can be culled
    • cullArea - A cull area that will be used instead of the bounds of the container
    • cullableChildren - Whether or not the containers children can be culled. This can help optimise large scenes

    New:

    const container = new GameWorld();
    const view = new Rectangle(0, 0, 800, 600);

    container.cullable = true;
    container.cullArea = new Rectangle(0,0,400,400);
    container.cullableChildren = false;

    Culler.shared.cull(myContainer, view);
    renderer.render(myContainer);

    There is also a CullerPlugin that can be used to automatically call Culler.shared.cull every frame if you want to simulate the old behaviour.

    import {extensions, CullerPlugin} from 'pixi.js'
    extensions.add(CullerPlugin)
  • Renamed several mesh classes

    • renamed SimpleMesh -> MeshSimple
    • renamed SimplePlane -> MeshPlane
    • renamed SimpleRope -> MeshRope
  • Deprecations for Assets removed

    Old:

    import { Assets } from 'pixi.js'

    Assets.add('bunny', 'bunny.png')

    New:

    import { Assets } from 'pixi.js'

    Assets.add({ alias: 'bunny', src: 'bunny.png' })
  • settings object has been removed

    Old:

    import { settings, BrowserAdapter } from 'pixi.js'

    settings.RESOLUTION = 1
    settings.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT = false
    settings.ADAPTER = BrowserAdapter

    New:

    import { AbstractRenderer, DOMAdapter, BrowserAdapter } from 'pixi.js'

    // Can also be passed into the renderer directly e.g `autoDetectRenderer({resolution: 1})`
    AbstractRenderer.defaultOptions.resolution = 1;

    // Can also be passed into the renderer directly e.g `autoDetectRenderer({failIfMajorPerformanceCaveat: false})`
    AbstractRenderer.defaultOptions.failIfMajorPerformanceCaveat = false;

    // See below for more information about changes to the adapter
    DOMAdapter.set(BrowserAdapter)
  • Adapter and Web Worker Changes

    • settings.ADAPTER has been removed and replaced with DOMAdapter

      • DOMAdapter is a static class that can be used to set the adapter for the entire application
      • PixiJS has two adapters built in BrowserAdapter and WebWorkerAdapter
        • BrowserAdapter is the default adapter and is used when running in the browser
        • WebWorkerAdapter is used when running in a web worker

      Old:

      import { settings, WebWorkerAdapter } from 'pixi.js'

      settings.ADAPTER = WebWorkerAdapter
      settings.ADAPTER.createCanvas()

      New:

      import { DOMAdapter, WebWorkerAdapter } from 'pixi.js'

      DOMAdapter.set(WebWorkerAdapter)
      DOMAdapter.get().createCanvas()
  • Application type now accepts Renderer instead of view by @Zyie in https://github.com/pixijs/pixijs/pull/9740

    This is to allow app.renderer to be typed correctly

    Old:

    const app = new Application<HTMLCanvasElement>()

    New:

    const app = new Application<Renderer<HTMLCanvasElement>>()
    const app = new Application<WebGLRenderer<HTMLCanvasElement>>();
    const app = new Application<WebGPURenderer<HTMLCanvasElement>>();
  • Texture.from no longer will load a texture from a URL.

    When using Texture.from you will need to pass in a source such as CanvasSource/ImageSource/VideoSource or a resource such as HTMLImageElement/HTMLCanvasElement/HTMLVideoElement or a string that has been loaded through Assets.load

    Old:

    import { Texture } from 'pixi.js';

    const texture = Texture.from('https://i.imgur.com/IaUrttj.png');

    New:

    import { Assets, Texture } from 'pixi.js';

    await Assets.load('https://i.imgur.com/IaUrttj.png');
    const texture = Texture.from('https://i.imgur.com/IaUrttj.png');
  • The Ticker's callback will now pass the Ticker instance instead of the delta time. This is to allow for more control over what unit of time is used.

    Old:

    Ticker.shared.add((dt)=> {
    bunny.rotation += dt
    });

    New:

    Ticker.shared.add((ticker)=> {
    bunny.rotation += ticker.deltaTime;
    });
  • Text parsers have been renamed

    • TextFormat -> bitmapFontTextParser
    • XMLStringFormat -> bitmapFontXMLStringParser
    • XMLFormat -> bitmapFontXMLParser
  • The default eventMode is now passive instead of auto

3. Deprecated Features

Certain features from PixiJS v7 have been deprecated in v8. While they will still work, it's recommended to update your code to use the new alternatives. Refer to the deprecated features section for details on what to replace them with.

  • Leaf nodes no longer allow children

    Only Containers can have children. This means that Sprite, Mesh, Graphics etc can no longer have children.

    To replicate the old behaviour you can create a Container and add the leaf nodes to it.

    Old:

    const sprite = new Sprite();
    const spriteChild = new Sprite();
    sprite.addChild(spriteChild);

    New:

    const container = new Container();
    const sprite = new Sprite();
    const spriteChild = new Sprite();

    container.addChild(sprite);
    container.addChild(spriteChild);
  • Application.view replaced with Application.canvas

    Old:

    const app = new Application({ view: document.createElement('canvas') });
    document.body.appendChild(app.view);

    New:

    const app = new Application();
    await app.init({ view: document.createElement('canvas') });
    document.body.appendChild(app.canvas);
  • NineSlicePlane renamed to NineSliceSprite

  • SCALE_MODES replaced with ScaleMode strings

    • SCALE_MODES.NEAREST -> 'nearest',
    • SCALE_MODES.LINEAR -> 'linear',
  • WRAP_MODES replaced with WrapMode strings

    • WRAP_MODES.CLAMP -> 'clamp',
    • WRAP_MODES.REPEAT -> 'repeat',
    • WRAP_MODES.MIRRORED_REPEAT -> 'mirror-repeat',
  • DRAW_MODES replaced with Topology strings

    • DRAW_MODES.POINTS -> 'point-list',
    • DRAW_MODES.LINES -> 'line-list',
    • DRAW_MODES.LINE_STRIP -> 'line-strip',
    • DRAW_MODES.TRIANGLES -> 'triangle-list',
    • DRAW_MODES.TRIANGLE_STRIP -> 'triangle-strip',
  • Constructors have largely been changed to accept objects instead of multiple arguments

    Old:

    const blurFilter = new BlurFilter(8, 4, 1, 5);
    const displacementFilter = new DisplacementFilter(sprite, 5);
    const meshGeometry = new MeshGeometry(vertices, uvs, index);
    const mesh = new Mesh(geometry, shader, state, drawMode);
    const plane = new PlaneGeometry(width, height, segWidth, segHeight);
    const nineSlicePlane = new NineSlicePlane(texture, leftWidth, topHeight, rightWidth, bottomHeight);
    const tileSprite = new TileSprite(texture, width, height);
    const text = new Text('Hello World', style);
    const bitmapText = new BitmapText('Hello World', style);
    const htmlText = new HTMLText('Hello World', style);

    New:

    const blurFilter = new BlurFilter({
    blur: 8,
    quality: 4,
    resolution: 1,
    kernelSize: 5,
    });
    const displacementFilter = new DisplacementFilter({
    sprite,
    scale: 5,
    });
    const meshGeometry = new MeshGeometry({
    positions: vertices,
    uvs,
    indices: index,
    topology: 'triangle-list';
    shrinkBuffersToFit: boolean;
    });
    const mesh = new Mesh({
    geometry
    shader
    texture
    });
    const plane = new PlaneGeometry({
    width,
    height,
    verticesX: segWidth,
    verticesY: segHeight,
    });
    const nineSliceSprite = new NineSliceSprite({
    texture,
    leftWidth,
    topHeight,
    rightWidth,
    bottomHeight,
    });
    const tileSprite = new TileSprite({
    texture,
    width,
    height,
    });
    const text = new Text({
    text: 'Hello World',
    style,
    });
    const bitmapText = new BitmapText({
    text:'Hello World',
    style,
    });
    const htmlText = new HTMLText({
    text:'Hello World',
    style,
    });

4. Resources

- - + + \ No newline at end of file diff --git a/guides/production/performance-tips.html b/guides/production/performance-tips.html index c40dceacf..9ebbf713f 100644 --- a/guides/production/performance-tips.html +++ b/guides/production/performance-tips.html @@ -9,13 +9,13 @@ - - + +

Performance Tips

General

  • Only optimize when you need to! PixiJS can handle a fair amount of content off the bat
  • Be mindful of the complexity of your scene. The more objects you add the slower things will end up
  • Order can help, for example sprite / graphic / sprite / graphic is slower than sprite / sprite / graphic / graphic
  • Some older mobile devices run things a little slower. Passing in the option useContextAlpha: false and antialias: false to the Renderer or Application can help with performance
  • Culling is disabled by default as it's often better to do this at an application level or set objects to be cullable = true. If you are GPU-bound it will improve performance; if you are CPU-bound it will degrade performance

Sprites

  • Use Spritesheets where possible to minimize total textures
  • Sprites can be batched with up to 16 different textures (dependent on hardware)
  • This is the fastest way to render content
  • On older devices use smaller low resolution textures
  • Add the extention @0.5x.png to the 50% scale-down spritesheet so PixiJS will visually-double them automatically
  • Draw order can be important

Graphics

  • Graphics objects are fastest when they are not modified constantly (not including the transform, alpha or tint!)
  • Graphics objects are batched when under a certain size (100 points or smaller)
  • Small Graphics objects are as fast as Sprites (rectangles, triangles)
  • Using 100s of graphics complex objects can be slow, in this instance use sprites (you can create a texture)

Texture

  • Textures are automatically managed by a Texture Garbage Collector
  • You can also manage them yourself by using texture.destroy()
  • If you plan to destroy more than one at once add a random delay to their destruction to remove freezing
  • Delay texture destroy if you plan to delete a lot of textures yourself

Text

  • Avoid changing it on every frame as this can be expensive (each time it draws to a canvas and then uploads to GPU)
  • Bitmap Text gives much better performance for dynamically changing text
  • Text resolution matches the renderer resolution, decrease resolution yourself by setting the resolution property, which can consume less memory

Masks

  • Masks can be expensive if too many are used: e.g., 100s of masks will really slow things down
  • Axis-aligned Rectangle masks are the fastest (as the use scissor rect)
  • Graphics masks are second fastest (as they use the stencil buffer)
  • Sprite masks are the third fastest (they uses filters). They are really expensive. Do not use too many in your scene!

Filters

  • Release memory: container.filters = null
  • If you know the size of them: container.filterArea = new Rectangle(x,y,w,h). This can speed things up as it means the object does not need to be measured
  • Filters are expensive, using too many will start to slow things down!

BlendModes

  • Different blend modes will cause batches to break (de-optimize)
  • SceenSprite / NormalSprite / SceenSprite / NormalSprite would be 4 draw calls
  • SceenSprite / SceenSprite / NormalSprite / NormalSprite would be 2 draw calls

Events

  • If an object has no interactive children use interactiveChildren = false. The event system will then be able to avoid crawling through the object
  • Setting hitArea = new Rectangle(x,y,w,h) as above should stop the event system from crawling through the object
- - + + \ No newline at end of file diff --git a/index.html b/index.html index 63aabe388..c0203ed06 100644 --- a/index.html +++ b/index.html @@ -9,13 +9,13 @@ - - + +

The HTML5 Creation Engine

Create beautiful digital content with the fastest, most flexible 2D WebGL renderer.

A mature solution for hundreds of global brands

- - + + \ No newline at end of file diff --git a/playground.html b/playground.html index 8bcacfbf7..073b63875 100644 --- a/playground.html +++ b/playground.html @@ -9,13 +9,13 @@ - - + + - - + + \ No newline at end of file diff --git a/search-index-blog.json b/search-index-blog.json index 1c99c49c3..6e60191d1 100644 --- a/search-index-blog.json +++ b/search-index-blog.json @@ -1 +1 @@ -[{"documents":[{"i":1,"t":"","u":"/blog/archive","b":["Blog"]},{"i":2,"t":"PixiJS v8 Beta! 🎉","u":"/blog/pixi-v8-beta","b":["Blog"]},{"i":16,"t":"PixiJS v8 Launches! 🎉","u":"/blog/pixi-v8-launches","b":["Blog"]},{"i":62,"t":"Introducing the PixiJS Universe!","u":"/blog/pixi-universe","b":["Blog"]}],"index":{"version":"2.3.9","fields":["t"],"fieldVectors":[["t/1",[]],["t/2",[0,0.301,1,0.584,2,1.015,3,0.584]],["t/16",[0,0.301,1,0.584,3,0.584,4,1.015]],["t/62",[0,0.344,5,1.161,6,1.161]]],"invertedIndex":[["",{"_index":3,"t":{"2":{"position":[[16,2]]},"16":{"position":[[20,2]]}}}],["beta",{"_index":2,"t":{"2":{"position":[[10,5]]}}}],["introducing",{"_index":5,"t":{"62":{"position":[[0,11]]}}}],["launches",{"_index":4,"t":{"16":{"position":[[10,9]]}}}],["pixijs",{"_index":0,"t":{"2":{"position":[[0,6]]},"16":{"position":[[0,6]]},"62":{"position":[[16,6]]}}}],["universe",{"_index":6,"t":{"62":{"position":[[23,9]]}}}],["v8",{"_index":1,"t":{"2":{"position":[[7,2]]},"16":{"position":[[7,2]]}}}]],"pipeline":["stemmer"]}},{"documents":[{"i":4,"t":"1. 😍 Embracing WebGPU","u":"/blog/pixi-v8-beta","h":"#1--embracing-webgpu","p":2},{"i":6,"t":"2. 🚀 Turbocharging Performance","u":"/blog/pixi-v8-beta","h":"#2--turbocharging-performance","p":2},{"i":8,"t":"But Wait, There's More!","u":"/blog/pixi-v8-beta","h":"#but-wait-theres-more","p":2},{"i":10,"t":"Over to you!","u":"/blog/pixi-v8-beta","h":"#over-to-you","p":2},{"i":12,"t":"Steps to install:","u":"/blog/pixi-v8-beta","h":"#steps-to-install","p":2},{"i":14,"t":"Keep in touch!","u":"/blog/pixi-v8-beta","h":"#keep-in-touch","p":2},{"i":18,"t":"🚀 Revolutionizing Web Graphics: Welcome to PixiJS v8","u":"/blog/pixi-v8-launches","h":"#-revolutionizing-web-graphics-welcome-to-pixijs-v8","p":16},{"i":20,"t":"🔗 Quick links","u":"/blog/pixi-v8-launches","h":"#-quick-links","p":16},{"i":22,"t":"🎁 Whats New?","u":"/blog/pixi-v8-launches","h":"#-whats-new","p":16},{"i":24,"t":"✨ We promise the Renderer will work","u":"/blog/pixi-v8-launches","h":"#-we-promise-the-renderer-will-work","p":16},{"i":26,"t":"🤝 What now? Get involved!","u":"/blog/pixi-v8-launches","h":"#-what-now-get-involved","p":16},{"i":28,"t":"📲 Keep in touch","u":"/blog/pixi-v8-launches","h":"#-keep-in-touch","p":16},{"i":64,"t":"Phase 1​","u":"/blog/pixi-universe","h":"#phase-1","p":62},{"i":66,"t":"PixiJS Website​","u":"/blog/pixi-universe","h":"#pixijs-website","p":62},{"i":68,"t":"PixiJS React​","u":"/blog/pixi-universe","h":"#pixijs-react","p":62},{"i":70,"t":"PixiJS Open Games​","u":"/blog/pixi-universe","h":"#pixijs-open-games","p":62},{"i":72,"t":"PixiJS UI & PixiJS Layout​","u":"/blog/pixi-universe","h":"#pixijs-ui--pixijs-layout","p":62},{"i":74,"t":"AssetPack​","u":"/blog/pixi-universe","h":"#assetpack","p":62},{"i":76,"t":"Phase 2​","u":"/blog/pixi-universe","h":"#phase-2","p":62},{"i":78,"t":"PixiJS JumpStart​","u":"/blog/pixi-universe","h":"#pixijs-jumpstart","p":62},{"i":80,"t":"PixiJS Dev Tools​","u":"/blog/pixi-universe","h":"#pixijs-dev-tools","p":62},{"i":82,"t":"Phase 3​","u":"/blog/pixi-universe","h":"#phase-3","p":62},{"i":84,"t":"Comet​","u":"/blog/pixi-universe","h":"#comet","p":62},{"i":86,"t":"PixiJS v8​","u":"/blog/pixi-universe","h":"#pixijs-v8","p":62},{"i":88,"t":"Phase 4​","u":"/blog/pixi-universe","h":"#phase-4","p":62},{"i":90,"t":"PixiJS 3D​","u":"/blog/pixi-universe","h":"#pixijs-3d","p":62},{"i":92,"t":"PixiJS Game Engine​","u":"/blog/pixi-universe","h":"#pixijs-game-engine","p":62},{"i":94,"t":"Conclusion","u":"/blog/pixi-universe","h":"#conclusion","p":62}],"index":{"version":"2.3.9","fields":["t"],"fieldVectors":[["t/4",[0,2.026,1,0.922,2,2.448,3,2.448]],["t/6",[1,0.922,4,2.026,5,2.448,6,2.448]],["t/8",[7,2.807,8,2.807,9,2.807]],["t/10",[10,3.972]],["t/12",[11,3.289,12,3.289]],["t/14",[13,2.722,14,2.722]],["t/18",[1,0.666,15,1.769,16,1.769,17,1.769,18,1.769,19,0.607,20,1.464]],["t/20",[1,1.058,21,2.807,22,2.807]],["t/22",[1,1.058,23,2.807,24,2.807]],["t/24",[1,0.922,25,2.448,26,2.448,27,2.448]],["t/26",[1,1.058,28,2.807,29,2.807]],["t/28",[1,1.058,13,2.323,14,2.323]],["t/64",[0,2.722,30,2.069]],["t/66",[19,1.128,31,3.289]],["t/68",[19,1.128,32,3.289]],["t/70",[19,0.963,33,2.807,34,2.807]],["t/72",[1,0.818,19,1.117,35,2.17,36,2.17]],["t/74",[37,3.972]],["t/76",[4,2.722,30,2.069]],["t/78",[19,1.128,38,3.289]],["t/80",[19,0.963,39,2.807,40,2.807]],["t/82",[30,2.069,41,3.289]],["t/84",[42,3.972]],["t/86",[19,1.128,20,2.722]],["t/88",[30,2.069,43,3.289]],["t/90",[19,1.128,44,3.289]],["t/92",[19,0.963,45,2.807,46,2.807]],["t/94",[47,3.972]]],"invertedIndex":[["",{"_index":1,"t":{"4":{"position":[[3,2]]},"6":{"position":[[3,2]]},"18":{"position":[[0,2]]},"20":{"position":[[0,2]]},"22":{"position":[[0,2]]},"24":{"position":[[0,1]]},"26":{"position":[[0,2]]},"28":{"position":[[0,2]]},"72":{"position":[[10,1]]}}}],["1",{"_index":0,"t":{"4":{"position":[[0,2]]},"64":{"position":[[6,2]]}}}],["2",{"_index":4,"t":{"6":{"position":[[0,2]]},"76":{"position":[[6,2]]}}}],["3",{"_index":41,"t":{"82":{"position":[[6,2]]}}}],["3d",{"_index":44,"t":{"90":{"position":[[7,3]]}}}],["4",{"_index":43,"t":{"88":{"position":[[6,2]]}}}],["assetpack",{"_index":37,"t":{"74":{"position":[[0,10]]}}}],["comet",{"_index":42,"t":{"84":{"position":[[0,6]]}}}],["conclusion",{"_index":47,"t":{"94":{"position":[[0,10]]}}}],["dev",{"_index":39,"t":{"80":{"position":[[7,3]]}}}],["embracing",{"_index":2,"t":{"4":{"position":[[6,9]]}}}],["engine",{"_index":46,"t":{"92":{"position":[[12,7]]}}}],["game",{"_index":45,"t":{"92":{"position":[[7,4]]}}}],["games",{"_index":34,"t":{"70":{"position":[[12,6]]}}}],["graphics",{"_index":17,"t":{"18":{"position":[[23,9]]}}}],["install",{"_index":12,"t":{"12":{"position":[[9,8]]}}}],["involved",{"_index":29,"t":{"26":{"position":[[17,9]]}}}],["jumpstart",{"_index":38,"t":{"78":{"position":[[7,10]]}}}],["keep",{"_index":13,"t":{"14":{"position":[[0,4]]},"28":{"position":[[3,4]]}}}],["layout",{"_index":36,"t":{"72":{"position":[[19,7]]}}}],["links",{"_index":22,"t":{"20":{"position":[[9,5]]}}}],["more",{"_index":9,"t":{"8":{"position":[[18,5]]}}}],["new",{"_index":24,"t":{"22":{"position":[[9,4]]}}}],["now",{"_index":28,"t":{"26":{"position":[[8,4]]}}}],["open",{"_index":33,"t":{"70":{"position":[[7,4]]}}}],["over",{"_index":10,"t":{"10":{"position":[[0,4]]}}}],["performance",{"_index":6,"t":{"6":{"position":[[20,11]]}}}],["phase",{"_index":30,"t":{"64":{"position":[[0,5]]},"76":{"position":[[0,5]]},"82":{"position":[[0,5]]},"88":{"position":[[0,5]]}}}],["pixijs",{"_index":19,"t":{"18":{"position":[[44,6]]},"66":{"position":[[0,6]]},"68":{"position":[[0,6]]},"70":{"position":[[0,6]]},"72":{"position":[[0,6],[12,6]]},"78":{"position":[[0,6]]},"80":{"position":[[0,6]]},"86":{"position":[[0,6]]},"90":{"position":[[0,6]]},"92":{"position":[[0,6]]}}}],["promise",{"_index":25,"t":{"24":{"position":[[5,7]]}}}],["quick",{"_index":21,"t":{"20":{"position":[[3,5]]}}}],["react",{"_index":32,"t":{"68":{"position":[[7,6]]}}}],["renderer",{"_index":26,"t":{"24":{"position":[[17,8]]}}}],["revolutionizing",{"_index":15,"t":{"18":{"position":[[3,15]]}}}],["steps",{"_index":11,"t":{"12":{"position":[[0,5]]}}}],["there's",{"_index":8,"t":{"8":{"position":[[10,7]]}}}],["tools",{"_index":40,"t":{"80":{"position":[[11,6]]}}}],["touch",{"_index":14,"t":{"14":{"position":[[8,6]]},"28":{"position":[[11,5]]}}}],["turbocharging",{"_index":5,"t":{"6":{"position":[[6,13]]}}}],["ui",{"_index":35,"t":{"72":{"position":[[7,2]]}}}],["v8",{"_index":20,"t":{"18":{"position":[[51,2]]},"86":{"position":[[7,3]]}}}],["wait",{"_index":7,"t":{"8":{"position":[[4,5]]}}}],["web",{"_index":16,"t":{"18":{"position":[[19,3]]}}}],["webgpu",{"_index":3,"t":{"4":{"position":[[16,6]]}}}],["website",{"_index":31,"t":{"66":{"position":[[7,8]]}}}],["welcome",{"_index":18,"t":{"18":{"position":[[33,7]]}}}],["whats",{"_index":23,"t":{"22":{"position":[[3,5]]}}}],["work",{"_index":27,"t":{"24":{"position":[[31,4]]}}}]],"pipeline":["stemmer"]}},{"documents":[{"i":3,"t":"We're thrilled to offer an exclusive preview of the future of 2D web graphics with the Beta release of PixiJS v8. Although not yet finalized, this Beta iteration is packed with killer performance improvements and features we're eager for you to start playing with! Over the course of a decade—yes, you read that right, ten years!—we've implemented significant changes to the PixiJS engine. But the advancements in this new release are among the most monumental we've ever made! Two driving factors catalysed our approach to re-engineering the codebase and rendering pipeline in v8:","s":"PixiJS v8 Beta! 🎉","u":"/blog/pixi-v8-beta","h":"","p":2},{"i":5,"t":"The newcomer WebGPU offers a substantial performance improvement over its predecessor, WebGL. It propels web computations and graphics into a new era, providing a more efficient and robust API. Soon, it will be the go-to method for rendering most GPU-powered content on the web. This shift is reminiscent of PixiJS's initial launch. At that time, WebGL was new and only available in a handful of desktop browsers, while Canvas was ubiquitous. PixiJS's standout feature was its ability to first attempt rendering with WebGL and then fall back to Canvas as a Plan B. This approach allowed PixiJS content to immediately benefit as WebGL gained traction. Fast forward to today, and WebGL is now available on 95% of browsers. History is repeating itself with WebGPU, currently supported in only a few desktop browsers and roughly 27% of the market. However, it's only a matter of time before it becomes universally supported. PixiJS aims to execute the same fallback strategy, allowing you to always leverage the best technology available without needing to rewrite your code. This is precisely what version 8 achieves and will future proof everything we make for another ten years :D","s":"1. 😍 Embracing WebGPU","u":"/blog/pixi-v8-beta","h":"#1--embracing-webgpu","p":2},{"i":7,"t":"PixiJS has always been synonymous with speed and high-performance graphics. With v8, we've revisited our architecture to optimize both static and dynamic rendering. While v7 is fast, it operates as a somewhat ‘naïve’ renderer. v7 approach:​ Traverse the scene graph and make sure all the transforms are correct Traverse the scene graph a second time and do the following Build batches to render Upload the data to the GPU Draw the batch to the screen. v8 approach​ Update the transform of only things that changed Traverse the scene graph and construct a set of instructions. Upload all scene data to GPU in one go. Execute rendering based on the instructions. There are three key changes to this loop that give us a performance bump. First, we update only the elements that have changed. If nothing has moved, no code is executed, optimizing computational overhead. Second, if the scene graph remains unchanged in subsequent frames, we reuse the existing rendering instructions. This avoids the overhead of reconstructing these instructions for each frame. Third, if no elements in the scene change position, the data upload step (Step 3) is entirely skipped, thereby saving bandwidth and further reducing computational work. The net effect of these improvements? A decent performance leap across varying use-cases: CPU = time spent by the cpu rendering a single frame GPU = time spend by the gpu rendering a single frame Bunny Situation V7 CPU V8 CPU CPU Dif V7 GPU V8 GPU GPU dif 100k sprites all moving ~50ms ~15ms 233% ~9ms ~2ms 350% 100k sprites not moving ~21ms ~0.12ms 17417% ~9ms ~0.5ms 1700% 100k sprites (changing scene structure) ~50ms ~24ms 108% ~9ms ~2ms 350% These benchmark numbers are based on this Bunnymark test that you can try yourself! v7 Bunnymark v8 Bunnymark - WebGPU v8 Bunnymark - WebGL Repo Please have a play, you can fiddle with the parameters in the url to change the number of bunnies. Curious to see what numbers all of you get! Best of all, these improvements apply to WebGPU and the WebGL renderer. As with all of PixiJs’s party tricks, this all happens automatically :D","s":"2. 🚀 Turbocharging Performance","u":"/blog/pixi-v8-beta","h":"#2--turbocharging-performance","p":2},{"i":9,"t":"While the two key drivers behind this overhaul were performance and usability, we didn't stop there. We've seized this opportunity to enhance the API and introduce a plethora of new features to the engine—far too many to encapsulate in a single post! Stay tuned for upcoming blog posts where we'll delve deeper into these additional improvements and API refinements, empowering you to create even more remarkable projects. For a comprehensive overview of what's new, don't miss the release notes. As a crucial note, PixiJS v8 retains much of the familiar API despite undergoing significant internal updates. Our changes are geared toward making PixiJS more robust and user-friendly. When you encounter modifications, rest assured that the v7 methodology will continue to work—you'll simply see a deprecation warning, guiding you towards optimal practices.","s":"But Wait, There's More!","u":"/blog/pixi-v8-beta","h":"#but-wait-theres-more","p":2},{"i":11,"t":"As we progress toward the release candidate, now is the perfect time for you to dive in and explore v8. Your feedback at this stage is invaluable for fine-tuning our engine. We invite you to share your thoughts—the good, the bad, and the ugly—report bugs, and even contribute code. Together, we can elevate PixiJS to unprecedented heights. 👇 Don't wait—dive right in! Explore the PixiJS v8 Codebase on GitHub","s":"Over to you!","u":"/blog/pixi-v8-beta","h":"#over-to-you","p":2},{"i":13,"t":"via npm you can install the beta version like so: npm install pixi.js@prerelease-v8 then you can create the most appropriate renderer using the new autoDetectRenderer function: import { autoDetectRenderer } from \"pixi.js\"; async function init() { const renderer = await autoDetectRenderer({ // any settings }); // will return a WebGL or WebGPU renderer } Start experimenting with PixiJS v8 Beta today and join us in shaping the future of 2D web graphics! 🎉","s":"Steps to install:","u":"/blog/pixi-v8-beta","h":"#steps-to-install","p":2},{"i":15,"t":"\"To stay in the loop, we invite you to follow Doormat23 and PixiJS on social media, where we'll be unveiling more exciting updates shortly. Alternatively, you can join our vibrant community on Discord for direct engagement and real-time conversations.","s":"Keep in touch!","u":"/blog/pixi-v8-beta","h":"#keep-in-touch","p":2},{"i":17,"t":"Get ready to push the boundaries of what's possible on the web! PixiJS v8 has landed, and it's a game-changer. Celebrating a decade of driving innovation, we've supercharged PixiJS with the latest technological advancements, making it faster, more robust, and ridiculously powerful. From the seamless integration of WebGPU to leveraging modern JavaScript for smoother development, PixiJS v8 is all about empowering you to create jaw-dropping web experiences with ease. It's not just an update; it's the future of 2D web graphics, today. Dive in and let PixiJS v8 elevate your projects to unseen heights. Let's make the web a more beautiful place, one pixi(el) at a time.","s":"PixiJS v8 Launches! 🎉","u":"/blog/pixi-v8-launches","h":"","p":16},{"i":19,"t":"It's hard to believe that PixiJS has been part of the open-source community for a whopping ten years. In that time, the digital landscape has evolved tremendously, and so has PixiJS. We've seen significant updates, like the transition to TypeScript, and we've overhauled major parts of the engine, such as asset loading and WebGL integration. Now, we're thrilled to unveil PixiJS v8, arguably our most substantial update ever. This release is not just a reflection on the shortcomings of v7, which has served us well, but an acknowledgment that there's always room for improvement. Over time, we've all encountered aspects of our code we wished we could refine. Often, the best solutions and insights emerge only after we've stepped back from the problem, allowing us to see the bigger picture. With PixiJS v8, our aim was to revisit and enhance the foundation of PixiJS, streamlining its core rather than just adding layers of code. Our vision for v8 was clear: Longevity: We designed v8 to stand the test of time, anticipating it will remain relevant and robust for another decade. Innovation with WebGPU: Embracing the latest in rendering technology, we've seamlessly integrated WebGPU, not as an add-on to our existing WebGL renderer but as a core paradigm, ensuring PixiJS remains at the cutting edge as WebGL phases out. Leveraging Modern JavaScript: The advancements in JavaScript have significantly simplified development. We've utilized features like object destructuring and options to make v8 cleaner and more powerful. Correcting Past Oversights: Every project has its lessons. With v8, we've addressed and rearchitected certain aspects of PixiJS, reducing complexity and enhancing functionality, particularly in areas we felt were overengineered in the past (looking at you, textures!). Boosting Performance: PixiJS is already renowned for its speed. With v8, we've unlocked even greater performance, making it faster across the board compared to v7. We're incredibly proud of PixiJS v8 and eager to share the improvements and new features with you. While there are some breaking API changes, we've provided a migration guide and ensured compatibility with v7 wherever possible. Get ready to experience the next level of 2D rendering with PixiJS v8!","s":"🚀 Revolutionizing Web Graphics: Welcome to PixiJS v8","u":"/blog/pixi-v8-launches","h":"#-revolutionizing-web-graphics-welcome-to-pixijs-v8","p":16},{"i":21,"t":"The new Docs for v8 can be found here Migration Examples Open Games","s":"🔗 Quick links","u":"/blog/pixi-v8-launches","h":"#-quick-links","p":16},{"i":23,"t":"There are numerous updates to discuss, more than can be covered in a single post! Below are the key highlights. For a more detailed exploration of these changes, be sure to follow the links provided above. 📈 New Performance Bar​ The performance of v8 is faster for both renderers. This means by using v8 and the WebGL renderer, all the speed improvements apply! This is mainly as we have taken great care to make a more reactive render loop that only updates what it needs to. Check out the numbers here: CPU = time spent by the CPU rendering a single frame GPU = time spent by the GPU rendering a single frame Bunny Situation V7 CPU V8 CPU CPU Dif V7 GPU V8 GPU GPU dif 100k sprites all moving ~50ms ~15ms 233% ~9ms ~2ms 350% 100k sprites not moving ~21ms ~0.12ms 17417% ~9ms ~0.5ms 1700% 100k sprites (changing scene structure) ~50ms ~24ms 108% ~9ms ~2ms 350% These benchmark numbers are based on the Bunnymark test that you can try yourself. v7 Bunnymark v8 Bunnymark - WebGPU v8 Bunnymark - WebGL Repo 🖥️ WebGPU Renderer​ We've implemented a WebGPU backend for rendering. Whilst this has created a better graphics paradigm under the hood and set us up for the future of rich web content, it's important to note that WebGPU does not automatically guarantee improved performance over WebGL in all scenarios, as PixiJS often encounters more limitations on the CPU side than the GPU. However, for scenes with numerous batch breaks, such as filters, masks, and blend modes, WebGPU may offer better performance due to its more modern to rendering. As WebGPU is relatively new, it's expected to enhance in speed over time, similar to the development of WebGL. It serves as a solid foundation for future advancements. 📦 New Package Structure​ No more \"lerna.\" PixiJS is now just one package with one import root: import {stuff} from ‘pixi.js’. This change means we now have much better tree shaking during app compilation, reducing bundle size if not imported. Old: import { Sprite } from \"@pixi/sprite\"; import { Graphic } from \"@pixi/graphics\"; New: import { Sprite, Graphic } from \"pixi.js\";","s":"🎁 Whats New?","u":"/blog/pixi-v8-launches","h":"#-whats-new","p":16},{"i":25,"t":"When initializing a renderer, this process is now asynchronous. This serves two purposes: firstly, identifying and loading the necessary renderer code to minimize what is loaded for your users. We only load the one backend that your user is using. There's no point in loading all the WebGL stuff if they are using WebGPU. Secondly, the initialization of WebGPU itself is an asynchronous process, so we need to have a promise in there somewhere! import { Application, autoDetectRenderer } from \"pixi.js\"; const app = new Application(); (async () => { await app.init({ // application options }); // or const renderer = await autoDetectRenderer({}); // WebGL or WebGPU // do pixi things })(); 🌟 Scene Upgrades​ The concept of render groups has been introduced, enabling containers to utilize GPU for their transformations. This facilitates a true 2D hardware-accelerated camera, ideal for navigating large static worlds through panning and zooming, similar to how a camera moves in a 3D environment rather than moving the world itself. This approach can significantly enhance performance. const container = new Container({ isRenderGroup:true // this containers transform is now handled on the GPU! }) Another cool new change is that now blend modes and tints are inherited, much like transforms and alpha. This means you can now easily tint a container, and all its children will have the tint applied - same for blend modes, its as easy as: // will make all the children tinted red container.tint = 'red' // will make all the children have the add blend mode container.blendMode = 'add' Rendering to a texture with antialiasing has been simplified; you only need to enable the new antialiasing property by setting it to true during the creation of a render texture or when applying a filter, similar to the process used for creating your renderer. const texture = RenderTexture.create({ width:100, height:100, antialias:true // easy as that }) We have also added support for a wide range of Photoshop-like filters, This allows you to take your rendering to the next level! We have including all the classics: ColorBlend, ColorBurnBlend, ColorDodgeBlend, DarkenBlend, DifferenceBlend, DivideBlend, ExclusionBlend, HardLightBlend, HardMixBlend, LightenBlend, LinearBurnBlend, LinearDodgeBlend, LinearLightBlend, LuminosityBlend, NegationBlend, OverlayBlend, PinLightBlend, SaturationBlend, SoftLightBlend, SubtractBlend, VividLightBlend. It's important to mention that these are essentially filters at the core, so it's advisable not to overuse them to avoid potential slowdowns. import `pixi.js/advanced-blend-modes` // make sure to include them in you lib! (or cherry pick one!) myContainer.blendMode = 'color-burn` // easy! 🎨 Graphics Upgrades​ The Graphics API has undergone changes to become more intuitive and user-friendly, closely resembling the HTML Canvas 2D context API. For instance, drawing and filling a rectangle is simplified as follows: graphics .rect(50, 50, 100, 100) .fill('blue'); A GraphicsContext has been introduced, powering all graphics operations. Similar to how one texture can be used across many sprites, a single GraphicsContext can now be utilized by multiple Graphics objects, enhancing efficiency and flexibility. Support for SVG drawing has been added. For example: graphics.svg('M 100 350 q 150 -300 300 0'); Gradient fill support has been introduced, currently limited to linear gradients, allowing for more visually engaging designs. The new GraphicsPath class enables the drawing and sharing of shapes. This feature is particularly useful as it allows for the creation of paths that can then be transformed into Mesh geometry using the buildGeometryFromPath function, opening up new possibilities for intricate and detailed graphic designs. const path = new GraphicsPath() .rect(-50, -50, 100, 100) // create geometry from the path: const geometry = buildGeometryFromPath({ path, }); const mesh = new Mesh({ geometry, texture: Texture.WHITE, }); For more information on these graphics upgrades and guidance on how to adapt to the enhanced Graphics API, please refer to the migration guide, or why not jump in and play with some examples. 📝 Text Upgrades​ Text has been upgraded to allow for better performance and usability! We have also integrated HTMLText into v8 as standard. BitmapFonts can now be generated on the fly or installed upfront as you prefer. They dynamically add characters as the font's glyphs are required, saving on memory. The layout of bitmap text is almost identical to the layout of the default text now, making it easier to switch between the two depending on your needs. const myText = new BitmapText({ text: 'hello im a bitmap font!', // font will be dynamically created style:{ fontFamily: 'Outfit', fontSize: 12, fill: 'red', } }) Text fills and strokes now conform to the same fills and strokes as graphics. This means Gradients, textures, and all the fun ways you can fill and stroke graphics can now be applied to Text. const myText = new Text({ text: 'hello im some fancy text', // font will be dynamically created! style:{ fontFamily: 'Outfit', fontSize: 12, fill: { texture, color:'red'} // same as graphics api fills stroke: { width:3, color:'blue' } // same as graphics api strokes } })","s":"✨ We promise the Renderer will work","u":"/blog/pixi-v8-launches","h":"#-we-promise-the-renderer-will-work","p":16},{"i":27,"t":"As PixiJS v8 takes its first steps into the world, we're eager to see it grow with your feedback and contributions. Now we know things won't be perfect, but we're committed to quick responses on GitHub and Discord to any issues that arise, valuing your input to make PixiJS even better. A heartfelt thanks to our early adopters (everyone in here) for testing the limits of v8, to our dedicated contributors and team for their hard work. Your efforts and insights are invaluable to us. We could not have gotten here without you! A final big shout-out to PlayCo for their support in making this release a reality! Let's continue to innovate and push the boundaries of web graphics together. Your engagement is key to PixiJS's evolution, and we're excited to see where we can go with your help.","s":"🤝 What now? Get involved!","u":"/blog/pixi-v8-launches","h":"#-what-now-get-involved","p":16},{"i":29,"t":"To stay in the loop, we invite you to follow Doormat23 and PixiJS on social media, where we'll be unveiling more exciting updates shortly. Alternatively, you can join our vibrant community on Discord for direct engagement and real-time chit-chats.","s":"📲 Keep in touch","u":"/blog/pixi-v8-launches","h":"#-keep-in-touch","p":16},{"i":63,"t":"We are excited to announce the launch of the PixiJS Universe, an initiative to further enhance the capabilities of PixiJS and make it even easier for developers to create amazing games and apps. For years, PixiJS has been the most popular 2D renderer for the web, but it was always \"just a rendering engine.\" The community has created many great tools to help developers build games and applications with PixiJS, but we lacked the manpower to maintain and improve these tools, causing fragmentation in the community. To address this, Playco has assembled a dedicated team of developers who will work on PixiJS full-time. Over the next 12 months, we have more than ten projects planned, and in this announcement, we would like to introduce some of them.","s":"Introducing the PixiJS Universe!","u":"/blog/pixi-universe","h":"","p":62},{"i":65,"t":"We have several new projects in the works, and we are releasing them in four phases over the year. We are currently nearing the end of phase 1, which has seen the release of several exciting new tools and libraries for PixiJS:","s":"Phase 1​","u":"/blog/pixi-universe","h":"#phase-1","p":62},{"i":67,"t":"First up we are excited to announce that we will be releasing a beta version of our new website for PixiJS. The current documentation has suffered from long-term organic growth over the years with little structure and as such much of the PixiJS documentation is fragmented across multiple sites. This new website will put everything you need in one place and be easily searchable. We are also planning on improving the documentation and adding more guides and examples, as well as considering translating the documentation into other languages. If you have any ideas on how to improve the site please let us know! Github Repo","s":"PixiJS Website​","u":"/blog/pixi-universe","h":"#pixijs-website","p":62},{"i":69,"t":"Next up is PixiJS React. A library that provides a way to use PixiJS in React applications. PixiJS React is a continuation of the react-pixi library created by Patrick Brouwer, which has been widely used by the PixiJS community in React projects. PixiJS has taken over maintenance of the library and is dedicated to improving the library's performance, documentation, and support for new features. The library provides an easy-to-use interface that makes it easy for developers to create React applications with PixiJS. The library integrates all the core features of PixiJS and allows you to create custom components for 3rd party libraries. Github Repo","s":"PixiJS React​","u":"/blog/pixi-universe","h":"#pixijs-react","p":62},{"i":71,"t":"We have now released a new repository called \"PixiJS Open Games\". This is a collection of open-source games that showcases how to use PixiJS to create games and is released under the MIT license. The purpose of these games is to provide professional examples of how to use PixiJS for game development. The first two games released are a match-3 game and a bubble shooter game. These games not only demonstrate how to use PixiJS for game development but also how to use other libraries such as PixiJS UI and AssetPack. We also have more games planned for release, which will demonstrate how to use PixiJS with other libraries such as PixiJS Layout and PixiJS React. PixiJS Open Games will hopefully be a valuable resource for game developers who want to learn how to use PixiJS for game development and will also be a great source of inspiration for developers looking to create their own games using PixiJS. The project is available on GitHub for anyone who wants to explore the code or contribute to the project. Github Repo Play Puzzling Potions Play Bubbo Bubbo","s":"PixiJS Open Games​","u":"/blog/pixi-universe","h":"#pixijs-open-games","p":62},{"i":73,"t":"PixiJS UI is a new library for developers who want to create beautiful and functional user interfaces with PixiJS. The library includes a range of components such as buttons, checkboxes, sliders, text inputs, scroll views, lists, radio buttons, and progress bars, which can be easily integrated into your game. These components are highly customizable, allowing you to tweak the appearance and behaviour of each element to fit your game's specific needs. PixiJS UI has been used in all of the open-source games, so feel free to check these out for real-world examples. PixiJS UI Github Repo PixiJS Layout is another library that can make your life as a developer easier. This library enables you to create responsive layouts using PixiJS, which means you can design interfaces that adapt to different screen sizes and aspect ratios. PixiJS Layout works well with PixiJS UI, allowing you to combine both libraries to create complex, dynamic interfaces that respond to user input and screen changes. With PixiJS Layout, you have the flexibility to create resizable layouts that can be adjusted to fit any screen size or device. This means that your game's interface can look great on everything from small mobile devices to large desktop displays. PixiJS Layout is still under development but will be ready in the next few weeks PixiJS Layout Github Repo","s":"PixiJS UI & PixiJS Layout​","u":"/blog/pixi-universe","h":"#pixijs-ui--pixijs-layout","p":62},{"i":75,"t":"Finally, for phase 1 we are announcing AssetPack. Asset management is an important part of developing applications, and the new AssetPack library aims to make this process easier. AssetPack is a framework-agnostic library that can be used with any framework, including PixiJS, ThreeJS, and Phaser. It provides a range of features that help developers manage their assets efficiently. The key feature of AssetPack is the ability to automatically generate new assets on the fly. For example, you can provide it with a folder of individual images and it will generate sprite sheets, which can significantly improve the performance of your application. It also provides plugins to generate mipmaps, convert fonts to different formats, convert audio to different formats, compress images, and minify JSON. These features help developers optimize their assets for faster loading times, better performance, and improved user experience. We will soon be releasing a new blog post that provides more details on how to use it. With its many useful features and framework-agnostic design. However, if you want to get stuck in today then check out the GitHub repo Github Repo","s":"AssetPack​","u":"/blog/pixi-universe","h":"#assetpack","p":62},{"i":77,"t":"Phase 2 will begin shortly and aims to make it easier to work with PixiJS applications.","s":"Phase 2​","u":"/blog/pixi-universe","h":"#phase-2","p":62},{"i":79,"t":"Jumpstart is a new CLI tool being developed by the PixiJS team to simplify the process of creating new PixiJS applications. With this tool, developers will no longer need to set up complicated tooling or worry about setting up different bundlers and frameworks. The tool will handle all the setup for you, allowing you to focus on building your application. Jumpstart will be similar to other CLI tools such as Create-React-App or Create-Vue, which have become popular in the front-end development community. The tool will provide templates for different bundlers and frameworks, including webpack, parcel, rollup, and more. This will make it easy for developers to get started with PixiJS regardless of their preferred tools and workflows. With Jumpstart, you'll be able to create a new PixiJS application in just a few minutes and start building right away.","s":"PixiJS JumpStart​","u":"/blog/pixi-universe","h":"#pixijs-jumpstart","p":62},{"i":81,"t":"PixiJS dev tools will be a browser extension that is planned to be released soon to help developers debug their PixiJS applications. This tool aims to make it easier for developers to understand the inner workings of PixiJS, optimize their code, and follow best practices. It is designed to help developers diagnose performance issues and visualize the resources that their applications are consuming. One of the key features of the PixiJS Dev Tools is its ability to help developers understand the complex process of batching in PixiJS. Batching is a technique used to optimize the rendering of multiple objects in the same draw call. This process can be complicated to understand, especially for new developers. PixiJS Dev Tools aims to make it easier to debug and optimize the rendering of objects. Overall, PixiJS Dev Tools will be a powerful tool that will make it easier for developers to build high-performance, visually stunning applications with PixiJS. By providing developers with a deeper understanding of the inner workings of PixiJS, this toolset will help developers optimize their code and create more efficient and engaging applications.","s":"PixiJS Dev Tools​","u":"/blog/pixi-universe","h":"#pixijs-dev-tools","p":62},{"i":83,"t":"Phase 3 is where our long-term projects start to be revealed. These are major changes to the PixiJS ecosystem that we are incredibly excited about","s":"Phase 3​","u":"/blog/pixi-universe","h":"#phase-3","p":62},{"i":85,"t":"Comet will be a new editor that aims to make it easier than ever to design and create games and applications with PixiJS. With its intuitive and user-friendly interface, the editor is designed to appeal to both designers and developers, allowing both groups to collaborate and work more efficiently. One of the standout features of Comet is the visual interface it provides for creating and editing scenes, sprites, animations, and more. This means that designers can create and edit complex scenes without ever having to write a single line of code. The editor provides a range of tools and options for creating sprites, animations, and other game elements, making it easy to get started with creating a game or application. In addition, developers will appreciate the runtime player feature, which allows them to easily recreate scenes in their own applications. This makes it easy to test and iterate on designs, ensuring that the final product is both functional and visually appealing. And with multi-user, real-time collaboration, Comet makes it easy for teams to work together, sharing assets and ideas and creating high-quality games and applications in record time.","s":"Comet​","u":"/blog/pixi-universe","h":"#comet","p":62},{"i":87,"t":"PixiJS v8 will be the next major release that represents a complete rewrite of PixiJS from the ground up. The development team has leveraged their extensive experience over many years to make improvements and optimizations to the core PixiJS engine. The new version of PixiJS is designed to be faster and more efficient, providing a significant improvement in rendering performance compared to v7 (currently sitting at x2) One of the most exciting features of PixiJS v8 is the inclusion of first-class support for WebGPU, which is a new graphics API that is being developed by major browser vendors. This will enable developers to take advantage of advanced GPU capabilities, which can significantly improve the performance of graphics-intensive applications. In addition to WebGPU support, the PixiJS team has also made a significant effort to optimize the engine for the canvas renderer, which will be available as a first-class option for developers looking to reduce bundle size. Overall, PixiJS v8 represents a major leap forward for us, developers can expect a much faster and more efficient engine that is better suited for building complex, graphics-intensive applications.","s":"PixiJS v8​","u":"/blog/pixi-universe","h":"#pixijs-v8","p":62},{"i":89,"t":"Phase 4 represents a leap into new territory for PixiJS as we look to delve deeper into areas outside of strictly 2D rendering.","s":"Phase 4​","u":"/blog/pixi-universe","h":"#phase-4","p":62},{"i":91,"t":"For years, Goodboy (now Playco) has had an internal 3D engine called Odie that was built on top of PixiJS. We are now planning to open-source it, which is exciting for those of you who want to seamlessly mix 2D and 3D content in your games or applications. With PixiJS 3D, you will no longer need to switch between engines or frameworks to incorporate 3D elements in your project. Although this is a long-term project, the team is making progress and plans to share more information later in the year. This release will greatly expand PixiJS's capabilities and give developers even more flexibility when building their applications.","s":"PixiJS 3D​","u":"/blog/pixi-universe","h":"#pixijs-3d","p":62},{"i":93,"t":"Finally, we are thrilled to announce that we will be working on a new library called PixiJS Game Engine. This game engine aims to provide everything you would expect from a 2D/3D game engine and will offer many features and tools to make game development easier and more efficient. Some of the features of PixiJS Game Engine will include support for physics engines, audio, input handling, asset loading and management, state management, animation and tweening, and more.","s":"PixiJS Game Engine​","u":"/blog/pixi-universe","h":"#pixijs-game-engine","p":62},{"i":95,"t":"We've shared a lot of exciting news about new projects and updates coming to the PixiJS community. There's a lot to look forward to in the upcoming months. We want to extend our sincere thanks to the PixiJS community, its contributors, and Playco for making all of this possible. We're excited to see what you'll create with these new tools and resources, and we look forward to continuing to support and grow the PixiJS ecosystem. Be sure to check out the GitHub links mentioned above and stay tuned for more updates on the PixiJS Universe!","s":"Conclusion","u":"/blog/pixi-universe","h":"#conclusion","p":62}],"index":{"version":"2.3.9","fields":["t"],"fieldVectors":[["t/3",[0,3.065,1,2.68,2,2.68,3,3.706,4,3.706,5,2.133,6,1.606,7,1.757,8,1.471,9,3.457,10,1.897,11,0.127,12,1.469,13,3.088,14,3.706,15,3.706,16,3.706,17,3.706,18,1.239,19,1.93,20,1.471,21,2.68,22,2.376,23,3.706,24,1.471,25,3.706,26,3.706,27,3.706,28,2.68,29,2.376,30,3.706,31,3.088,32,2.376,33,1.606,34,1.757,35,2.376,36,0.482,37,3.706,38,1.757,39,3.088,40,2.376,41,3.088,42,3.706,43,3.706,44,2.376,45,3.706,46,3.706,47,3.088,48,1.35,49,3.706]],["t/5",[5,1.603,7,1.868,8,1.105,11,0.105,18,0.931,24,1.105,29,1.785,36,0.512,44,1.785,48,1.435,50,2.785,51,1.707,52,2.785,53,2.32,54,2.014,55,2.785,56,2.732,57,2.785,58,2.785,59,2.785,60,2.014,61,0.451,62,1.785,63,1.785,64,1.603,65,2.014,66,2.014,67,2.785,68,1.603,69,2.785,70,2.849,71,2.785,72,2.785,73,2.849,74,2.785,75,2.32,76,1.435,77,3.306,78,2.785,79,3.282,80,4.572,81,2.849,82,2.785,83,2.32,84,1.785,85,2.014,86,1.451,87,2.785,88,2.785,89,2.32,90,2.785,91,2.785,92,2.785,93,2.785,94,2.785,95,2.785,96,2.785,97,2.32,98,2.014,99,1.785,100,1.206,101,2.785,102,2.785,103,2.785,104,2.32,105,1.785,106,3.94,107,2.014,108,2.785,109,2.785,110,2.785,111,1.603,112,2.785,113,2.785,114,2.785,115,2.785,116,1.451,117,2.32,118,2.014,119,2.785,120,2.785,121,1.451,122,1.785,123,2.785,124,1.785,125,2.32,126,2.014,127,2.785,128,2.32,129,1.206,130,2.785,131,1.785,132,2.785,133,2.785,134,2.785,135,1.785,136,0.603,137,1.785,138,1.451,139,2.32]],["t/7",[8,0.774,11,0.052,12,1.468,18,1.239,19,1.576,33,0.845,38,0.925,44,1.939,48,1.645,51,1.311,56,1.576,66,1.411,68,2.87,76,1.349,86,1.016,97,1.626,117,1.626,122,1.251,124,1.251,129,0.845,136,0.422,139,1.626,140,1.951,141,1.411,142,1.411,143,1.951,144,1.951,145,1.251,146,1.251,147,1.626,148,1.626,149,2.6,150,1.951,151,1.951,152,1.951,153,1.434,154,3.706,155,3.606,156,4.175,157,1.251,158,1.626,159,1.951,160,3.026,161,1.951,162,1.411,163,1.951,164,1.411,165,3.706,166,3.706,167,1.626,168,1.626,169,1.626,170,2.188,171,1.626,172,1.411,173,3.026,174,1.951,175,1.411,176,4.175,177,0.845,178,2.521,179,1.951,180,1.016,181,1.251,182,1.626,183,1.951,184,2.188,185,1.951,186,1.951,187,1.951,188,1.951,189,3.026,190,3.026,191,1.626,192,1.951,193,1.951,194,1.951,195,1.951,196,1.626,197,1.951,198,1.951,199,1.626,200,3.087,201,1.951,202,2.188,203,1.951,204,3.026,205,1.411,206,1.951,207,1.951,208,1.951,209,1.626,210,1.951,211,1.626,212,1.411,213,1.123,214,1.951,215,1.951,216,1.951,217,1.411,218,1.951,219,1.251,220,1.951,221,3.764,222,1.741,223,1.626,224,1.741,225,1.951,226,1.626,227,1.626,228,2.521,229,3.087,230,2.375,231,2.188,232,2.521,233,1.626,234,1.626,235,3.087,236,2.521,237,2.188,238,1.626,239,1.626,240,1.626,241,1.626,242,1.626,243,1.626,244,1.411,245,1.626,246,1.626,247,1.626,248,2.521,249,3.478,250,1.251,251,1.626,252,1.626,253,0.925,254,1.411,255,1.411,256,1.951,257,1.951,258,1.951,259,1.951,260,1.951,261,1.951,262,1.123,263,1.626,264,1.951,265,1.626,266,1.951,267,1.951,268,1.411]],["t/9",[10,1.262,11,0.115,12,0.977,18,1.064,19,1.656,20,1.262,32,2.039,33,1.378,36,0.561,38,1.508,40,2.039,61,0.699,63,2.039,64,2.823,149,1.83,180,1.656,224,1.83,262,1.83,269,3.18,270,3.18,271,3.18,272,2.649,273,3.18,274,3.18,275,3.18,276,3.18,277,1.83,278,2.649,279,3.18,280,3.18,281,1.656,282,3.18,283,2.3,284,2.039,285,2.649,286,2.649,287,2.649,288,3.18,289,2.3,290,2.649,291,2.3,292,3.18,293,3.18,294,2.649,295,0.977,296,1.656,297,3.18,298,1.508,299,3.18,300,3.18,301,2.649,302,2.649,303,3.18,304,3.18,305,3.18,306,2.649,307,3.18,308,1.83,309,3.18,310,3.18,311,3.18,312,2.649,313,1.656,314,3.18,315,2.649,316,1.378,317,1.83,318,2.3,319,3.18,320,3.18,321,3.18,322,3.18,323,3.18,324,2.649,325,3.18,326,3.18,327,3.18,328,3.18,329,3.18,330,3.18,331,3.18,332,2.649]],["t/11",[10,1.594,11,0.134,12,1.546,28,2.905,34,1.905,47,3.347,76,1.463,100,1.741,129,1.741,222,2.312,296,2.093,302,3.347,315,3.347,333,2.905,334,4.018,335,3.347,336,3.347,337,4.192,338,3.347,339,4.018,340,3.347,341,4.018,342,4.018,343,2.905,344,2.905,345,4.018,346,4.018,347,4.018,348,4.018,349,4.018,350,3.347,351,2.905,352,3.347,353,4.018,354,3.347,355,4.018,356,1.741]],["t/13",[5,2.166,6,1.631,7,1.785,8,1.494,9,3.492,11,0.1,12,1.483,22,2.413,36,0.489,51,1.631,56,1.961,99,2.413,131,2.413,153,2.528,222,3.562,295,1.156,357,3.765,358,4.829,359,4.829,360,3.765,361,3.765,362,2.166,363,4.442,364,4.023,365,2.722,366,2.722,367,3.136,368,3.765,369,3.136,370,3.136,371,3.765,372,3.765,373,3.765,374,2.722,375,3.765]],["t/15",[11,0.117,61,0.714,76,1.607,181,2.829,284,2.829,289,3.192,313,2.299,343,3.192,374,3.192,376,2.829,377,3.677,378,3.677,379,3.677,380,3.677,381,2.299,382,3.192,383,3.677,384,3.677,385,2.092,386,3.192,387,3.677,388,3.192,389,2.829,390,4.414]],["t/17",[5,1.989,6,1.497,7,2.58,8,1.372,11,0.145,12,1.571,35,2.215,38,1.639,41,2.879,51,1.497,61,0.739,63,2.215,76,1.259,99,2.215,111,2.944,136,0.748,170,2.499,177,1.497,294,2.879,295,1.062,298,1.639,301,2.879,316,1.497,336,2.879,352,2.879,354,2.879,391,2.499,392,2.879,393,2.879,394,2.499,395,3.456,396,1.989,397,3.456,398,3.456,399,2.879,400,2.879,401,3.456,402,2.879,403,3.456,404,1.989,405,3.456,406,2.499,407,3.456,408,2.879,409,2.879,410,2.499,411,2.879,412,3.456,413,1.497,414,3.456,415,3.456,416,3.456,417,3.456,418,3.456,419,2.879,420,2.879,421,2.879,422,3.456]],["t/19",[0,2.007,1,1.475,6,0.884,10,0.81,11,0.145,12,1.647,18,1.047,19,1.063,20,1.243,21,1.475,24,0.81,29,1.308,32,1.308,33,0.884,34,0.967,35,1.308,36,0.265,38,2.542,48,1.14,51,1.356,53,1.7,54,1.475,56,1.985,61,0.33,63,1.308,64,1.174,76,1.388,89,1.7,100,0.884,111,1.174,121,1.063,122,1.308,124,1.308,125,1.7,129,1.356,136,0.442,137,1.308,138,1.063,141,1.475,149,2.193,153,0.967,170,1.475,191,1.7,196,1.7,212,1.475,250,1.308,262,1.174,277,1.174,296,1.063,313,1.063,316,0.884,344,1.475,385,0.967,391,1.475,394,1.475,399,1.7,400,1.7,402,1.7,404,1.174,406,1.475,408,1.7,409,1.7,410,1.475,411,2.609,413,0.884,423,1.7,424,2.04,425,1.7,426,1.174,427,1.308,428,2.04,429,2.04,430,2.04,431,2.04,432,2.04,433,1.7,434,2.04,435,2.04,436,2.04,437,1.475,438,2.04,439,1.063,440,1.475,441,1.308,442,2.04,443,2.04,444,2.04,445,2.04,446,2.04,447,1.475,448,2.04,449,1.475,450,2.04,451,2.04,452,3.131,453,2.04,454,2.04,455,2.04,456,1.7,457,2.04,458,2.04,459,2.04,460,2.04,461,2.04,462,2.04,463,2.04,464,1.7,465,2.04,466,2.007,467,1.7,468,2.04,469,2.04,470,2.04,471,2.04,472,1.308,473,2.04,474,2.04,475,2.04,476,2.04,477,2.04,478,1.7,479,1.475,480,1.7,481,1.7,482,1.7,483,2.04,484,2.04,485,1.7,486,1.063,487,1.308,488,1.7,489,1.7,490,2.04,491,2.04,492,1.475,493,2.04,494,2.04,495,3.131,496,2.04,497,1.475,498,2.04,499,2.04,500,2.04,501,2.04,502,2.04,503,1.7,504,2.04,505,1.7,506,1.7,507,2.04,508,2.04,509,1.475,510,1.7,511,2.04,512,2.04,513,2.04,514,2.04,515,2.04,516,2.04,517,1.7,518,1.7,519,2.04,520,2.04,521,1.7,522,1.475,523,1.7,524,2.04,525,2.04,526,2.04,527,1.475,528,1.063,529,1.7]],["t/21",[12,1.494,36,0.632,426,2.798,522,3.516,530,4.863,531,4.863,532,3.516,533,2.798,534,2.533]],["t/23",[2,1.345,5,1.677,7,0.882,8,0.738,11,0.077,12,1.44,18,1.36,19,0.969,24,1.157,31,1.55,33,0.806,35,1.192,36,0.529,38,0.882,48,1.481,51,2.03,56,2.119,61,0.759,68,2.697,70,1.345,76,1.309,100,1.263,111,1.677,136,0.403,141,2.108,146,1.192,149,2.068,153,1.382,155,1.345,157,1.192,164,1.345,168,1.55,175,1.345,177,1.263,178,1.55,180,0.969,181,1.192,200,2.428,202,1.345,212,1.345,221,3.904,222,3.129,223,2.428,224,2.068,226,1.55,227,1.55,228,2.428,229,2.994,230,2.304,231,2.108,232,2.428,233,1.55,234,1.55,235,2.994,236,2.428,237,2.108,238,1.55,239,1.55,240,1.55,241,1.55,242,1.55,243,1.55,244,2.108,245,1.55,246,1.55,247,1.55,248,2.428,249,3.389,250,1.192,251,1.55,252,1.55,253,0.882,263,1.55,268,1.345,277,1.07,283,1.345,306,1.55,308,1.07,313,1.518,362,1.07,365,3.195,366,2.108,376,1.192,404,1.07,410,1.345,413,0.806,439,0.969,464,1.55,481,1.55,486,0.969,521,1.55,532,1.345,535,2.915,536,1.86,537,1.86,538,1.86,539,1.86,540,1.55,541,1.86,542,1.55,543,1.55,544,1.86,545,1.86,546,1.868,547,1.86,548,1.55,549,1.192,550,1.86,551,1.86,552,1.345,553,1.192,554,1.55,555,1.86,556,1.192,557,2.068,558,1.345,559,1.86,560,0.969,561,1.86,562,1.345,563,1.86,564,1.55,565,1.86,566,1.86,567,1.86,568,1.86,569,1.55,570,1.86,571,1.55,572,1.86,573,1.55,574,1.55,575,1.86,576,1.86,577,1.86,578,1.345,579,1.55,580,1.86,581,2.915,582,1.86,583,1.86,584,1.55,585,1.86,586,1.86,587,1.55,588,1.345,589,1.86,590,1.55,591,1.345,592,1.86,593,1.86,594,2.428,595,1.86,596,2.428,597,1.86]],["t/25",[6,0.795,8,1.799,12,0.327,18,0.614,33,0.46,36,0.571,40,1.177,44,0.681,48,0.669,51,1.05,56,0.956,61,0.392,64,1.875,68,1.057,81,0.769,84,0.681,100,1.831,104,1.53,105,0.681,111,1.057,118,2.086,121,0.554,129,0.46,136,0.525,137,0.681,147,0.886,153,1.368,155,0.769,157,0.681,158,0.886,164,1.328,171,0.886,172,0.769,177,1.05,202,0.769,209,0.886,222,3.487,224,0.612,230,0.681,231,0.769,237,0.769,254,0.769,255,0.769,272,0.886,277,0.612,281,0.554,295,0.327,308,0.612,316,0.46,317,1.057,318,0.769,362,1.395,363,1.53,364,0.886,365,1.328,366,0.769,367,0.886,369,3.522,370,1.53,441,1.177,449,0.769,466,0.681,479,0.769,480,2.019,487,0.681,488,1.53,489,0.886,492,0.769,503,0.886,505,0.886,510,0.886,522,0.769,523,0.886,528,0.554,529,0.886,533,0.612,540,0.886,546,1.177,552,0.769,554,0.886,556,1.177,557,0.612,560,0.554,562,0.769,571,1.53,573,2.404,574,2.019,578,1.753,579,0.886,584,0.886,587,0.886,588,0.769,596,0.886,598,1.063,599,1.554,600,1.836,601,1.063,602,1.063,603,1.063,604,1.063,605,1.063,606,1.063,607,1.063,608,1.063,609,1.063,610,1.063,611,1.063,612,1.177,613,1.063,614,1.063,615,1.554,616,1.063,617,0.886,618,2.885,619,1.063,620,0.886,621,2.424,622,1.063,623,1.836,624,1.063,625,1.063,626,1.063,627,1.836,628,1.063,629,1.063,630,1.836,631,1.063,632,1.063,633,0.886,634,1.063,635,1.063,636,1.063,637,1.063,638,1.063,639,0.886,640,1.063,641,0.769,642,2.424,643,1.063,644,1.063,645,1.063,646,1.063,647,1.063,648,1.063,649,0.681,650,1.836,651,2.424,652,1.836,653,1.554,654,1.063,655,2.424,656,1.063,657,1.063,658,1.063,659,3.564,660,1.836,661,0.886,662,1.063,663,0.886,664,1.836,665,1.063,666,1.063,667,1.057,668,0.769,669,1.063,670,1.063,671,1.063,672,1.063,673,1.836,674,1.262,675,1.063,676,0.681,677,1.063,678,1.328,679,0.886,680,0.769,681,1.063,682,1.063,683,1.063,684,1.063,685,1.063,686,1.063,687,1.063,688,1.063,689,1.063,690,1.063,691,1.063,692,1.063,693,1.063,694,1.063,695,1.063,696,1.063,697,1.063,698,1.063,699,1.063,700,1.063,701,1.063,702,1.063,703,1.063,704,1.063,705,1.063,706,1.063,707,1.063,708,1.063,709,1.063,710,1.063,711,0.886,712,1.063,713,1.063,714,1.063,715,1.063,716,1.063,717,1.063,718,1.063,719,0.886,720,0.886,721,1.063,722,1.063,723,1.063,724,1.063,725,1.063,726,2.424,727,1.063,728,1.063,729,1.063,730,1.063,731,2.424,732,3.258,733,1.063,734,1.836,735,1.063,736,1.063,737,0.769,738,0.886,739,1.063,740,0.769,741,1.063,742,0.886,743,1.063,744,1.063,745,1.063,746,1.836,747,1.063,748,1.063,749,2.885,750,1.063,751,1.063,752,1.836,753,0.769,754,0.886,755,1.53,756,1.836,757,0.886,758,0.886,759,0.886,760,1.063,761,0.886,762,1.063,763,1.063,764,2.424,765,2.885,766,1.836,767,1.063,768,1.063,769,1.063,770,2.424,771,1.063,772,1.063,773,0.886,774,1.063,775,0.886,776,1.063,777,1.063,778,1.063,779,3.658,780,1.063,781,1.063,782,1.063,783,1.063,784,1.063,785,1.063,786,0.886,787,1.063,788,1.063,789,1.063,790,2.424,791,1.063,792,1.063,793,1.063,794,1.063,795,1.063,796,1.328,797,1.836,798,1.063,799,1.063,800,0.46,801,0.886,802,0.886,803,1.063,804,1.836,805,1.063,806,1.836,807,1.836,808,2.424,809,1.836,810,1.836,811,1.836,812,1.836,813,1.53,814,2.424,815,2.424,816,1.063,817,1.063,818,1.063,819,1.836,820,1.063,821,1.063,822,1.063,823,1.063]],["t/27",[0,3.218,7,1.578,8,1.321,10,1.321,11,0.118,12,1.368,21,2.406,66,2.406,73,2.406,86,1.733,100,1.442,126,2.406,136,0.72,172,2.406,180,1.733,213,1.915,262,2.563,296,1.733,316,1.442,324,2.772,335,2.772,338,2.772,340,2.772,351,2.406,356,1.442,386,2.406,388,2.406,392,2.772,393,2.772,419,2.772,423,2.772,456,2.772,486,1.733,532,3.221,557,1.915,641,2.406,674,1.733,824,3.328,825,3.328,826,2.772,827,3.328,828,2.772,829,3.328,830,3.328,831,3.328,832,3.328,833,2.772,834,3.328,835,3.328,836,2.406,837,3.328,838,2.772,839,3.328,840,3.328,841,3.328,842,3.328,843,3.328,844,2.406,845,2.772,846,1.915,847,3.328,848,3.328,849,2.772,850,3.328,851,3.328,852,2.133,853,3.328,854,3.328,855,3.328,856,1.915,857,2.133]],["t/29",[11,0.117,61,0.71,76,1.597,181,2.812,284,2.812,289,3.172,313,2.285,343,3.172,374,3.172,376,2.812,377,3.654,378,3.654,379,3.654,380,3.654,381,2.285,382,3.172,383,3.654,384,3.654,385,2.08,386,3.172,387,3.654,388,3.172,389,2.812,858,4.387,859,4.387]],["t/63",[6,1.519,7,1.663,11,0.151,24,1.392,29,2.248,34,1.663,48,1.277,61,0.568,75,2.922,76,1.277,122,2.248,136,0.759,138,1.827,153,1.663,162,2.536,211,2.922,213,2.018,277,2.018,278,2.922,281,1.827,295,1.077,296,1.827,298,1.663,385,2.186,528,1.827,534,2.402,549,2.248,556,2.248,800,1.519,813,2.922,844,2.536,846,2.018,852,2.248,856,2.018,857,2.248,860,2.536,861,2.922,862,3.507,863,2.536,864,1.876,865,3.507,866,3.507,867,2.922,868,2.186,869,1.392,870,3.507,871,3.507,872,3.507,873,2.248,874,3.507,875,3.507,876,3.507,877,3.507,878,3.507,879,2.922,880,2.536,881,3.507]],["t/65",[10,1.773,11,0.119,24,1.773,36,0.698,105,2.865,298,2.119,381,2.328,433,3.723,485,3.723,868,2.119,882,5.372,883,3.723,884,3.231,885,4.469,886,3.723,887,4.469,888,3.723,889,2.571,890,3.723,891,2.865]],["t/67",[9,2.666,11,0.127,24,1.463,36,0.619,61,0.597,86,1.921,131,2.364,135,2.364,138,1.921,177,1.597,244,2.666,253,1.748,254,2.666,308,2.122,356,1.597,421,3.072,439,1.921,447,2.666,467,3.072,533,2.122,560,1.921,612,2.364,649,2.364,737,2.666,828,3.072,856,2.122,860,2.666,873,2.364,884,2.666,892,4.765,893,3.687,894,4.649,895,3.687,896,2.666,897,2.666,898,3.687,899,3.687,900,3.687,901,3.687,902,3.687,903,3.687,904,3.687,905,3.072,906,3.072,907,3.687,908,3.687,909,3.687,910,3.687,911,3.072,912,3.687]],["t/69",[11,0.158,18,1.179,20,1.836,24,1.399,36,0.458,219,2.966,253,1.671,265,2.936,295,1.421,298,1.671,356,1.527,385,1.671,466,2.259,528,1.836,548,2.936,556,2.259,560,1.836,617,2.936,653,2.966,667,2.028,674,1.836,678,2.548,844,2.548,864,1.283,869,1.836,891,2.259,894,2.936,906,2.936,913,4.227,914,3.651,915,3.346,916,3.524,917,3.524,918,3.524,919,3.524,920,3.524,921,3.524,922,3.524,923,2.548,924,2.936,925,3.524,926,3.524,927,2.936,928,3.524]],["t/71",[10,1.174,11,0.16,36,0.384,40,1.896,61,0.479,77,2.138,86,1.54,100,1.281,129,1.281,205,2.138,219,3.558,253,1.402,255,2.972,295,1.262,337,2.464,350,2.464,356,1.78,362,1.702,396,3.194,413,2.046,426,2.718,427,2.634,439,2.14,497,2.972,509,2.138,533,1.702,534,3.071,549,1.896,558,2.138,796,2.138,864,1.496,880,2.138,891,2.634,913,2.138,929,3.934,930,2.957,931,2.138,932,2.957,933,2.957,934,2.957,935,2.957,936,2.957,937,1.896,938,2.957,939,2.957,940,2.957,941,2.957,942,4.109,943,2.464,944,2.464,945,2.957,946,2.957,947,2.957,948,1.702,949,2.957,950,2.957,951,2.957,952,2.957,953,2.957,954,4.109]],["t/73",[11,0.156,33,1.111,36,0.333,79,2.137,107,1.855,121,1.935,135,1.645,136,0.555,137,1.645,146,1.645,148,2.137,169,3.639,199,2.137,253,1.761,295,1.471,317,2.138,333,1.855,356,1.609,362,1.476,389,1.645,391,1.855,396,1.476,413,1.111,420,2.137,426,1.476,427,1.645,439,1.336,447,1.855,479,1.855,486,1.336,528,1.336,533,1.476,534,1.336,546,2.382,549,1.645,552,1.855,553,1.645,558,1.855,591,1.855,633,2.137,641,1.855,649,1.645,667,1.476,676,1.645,740,1.855,758,2.137,775,2.137,779,2.137,796,3.675,800,1.111,836,1.855,864,0.934,883,2.137,891,1.645,914,3.069,923,1.855,927,3.095,943,3.989,948,1.476,955,2.137,956,4.368,957,2.566,958,3.715,959,2.566,960,2.566,961,2.566,962,2.566,963,2.566,964,2.566,965,2.566,966,2.566,967,2.566,968,2.566,969,2.566,970,2.566,971,2.566,972,2.566,973,3.715,974,3.715,975,2.566,976,2.566,977,2.566,978,2.566,979,2.566,980,2.566,981,3.715,982,1.855,983,1.855,984,2.566,985,2.566,986,2.566,987,2.566,988,1.645,989,2.566,990,2.566,991,2.566,992,2.566,993,1.855,994,2.566,995,2.566,996,2.566,997,2.566,998,2.566,999,2.566]],["t/75",[11,0.077,18,1.351,20,1.85,36,0.606,61,0.467,65,2.087,84,1.85,85,2.087,99,1.85,116,1.503,136,0.625,145,1.85,180,1.503,219,1.85,253,1.915,268,2.087,281,1.503,283,2.087,287,2.404,317,1.661,356,1.75,404,1.661,425,2.404,440,2.087,441,1.85,486,1.503,487,1.85,527,2.087,553,1.85,557,1.661,562,2.087,564,2.404,594,2.404,599,1.85,615,1.85,667,1.661,676,1.85,680,2.087,742,2.404,761,2.404,786,2.404,800,1.25,857,2.59,864,1.471,869,1.145,873,1.85,884,2.087,889,1.661,890,2.404,914,2.59,915,3.371,937,1.85,944,4.207,948,1.661,982,2.087,983,2.921,1000,2.404,1001,2.886,1002,2.404,1003,2.886,1004,4.661,1005,4.04,1006,2.886,1007,2.886,1008,2.886,1009,3.883,1010,2.404,1011,4.661,1012,2.886,1013,2.886,1014,4.04,1015,2.886,1016,2.886,1017,2.886,1018,4.04,1019,2.886,1020,4.04,1021,2.404,1022,2.886,1023,2.886,1024,2.886,1025,2.886,1026,2.886,1027,2.886]],["t/77",[11,0.128,116,2.516,136,1.045,213,2.779,382,3.493,800,2.092,869,1.917,889,2.779,1028,4.83,1029,4.83]],["t/79",[11,0.141,22,2.075,28,2.341,36,0.643,61,0.524,107,2.341,121,1.686,136,0.701,175,2.341,295,1.521,385,1.535,413,1.403,439,1.686,560,2.277,578,2.341,588,2.341,599,2.075,612,2.075,615,2.803,653,2.075,663,2.697,668,2.341,680,2.341,719,2.697,846,1.863,864,1.592,867,2.697,868,2.073,869,1.285,888,2.697,913,2.341,937,2.075,983,3.162,1030,4.951,1031,4.373,1032,4.417,1033,2.697,1034,2.697,1035,3.238,1036,2.697,1037,2.697,1038,3.238,1039,3.238,1040,4.373,1041,3.643,1042,3.238,1043,3.238,1044,3.238,1045,3.162,1046,3.238,1047,3.238,1048,3.238,1049,3.238,1050,3.238,1051,3.238,1052,2.697,1053,3.238,1054,3.238,1055,3.238,1056,2.697,1057,3.238,1058,3.238]],["t/81",[11,0.156,18,1.351,20,1.145,36,0.375,48,1.471,60,2.087,61,0.467,62,1.85,65,2.087,85,2.087,116,2.104,118,2.087,124,1.85,129,1.75,136,1.009,142,2.087,145,3.237,162,2.087,167,2.404,177,1.25,180,1.503,291,2.087,295,0.886,332,2.404,376,1.85,406,2.087,472,1.85,599,2.59,667,1.661,737,2.087,738,3.366,753,2.087,754,2.404,800,2.019,833,2.404,857,3.237,864,2.101,868,2.394,869,2.004,880,2.087,929,2.404,988,1.85,1032,3.366,1037,2.404,1059,5.05,1060,2.404,1061,2.886,1062,4.04,1063,4.661,1064,4.04,1065,4.04,1066,2.886,1067,2.886,1068,2.404,1069,2.886,1070,4.04,1071,2.886,1072,2.886,1073,2.886,1074,2.404,1075,2.886,1076,2.886,1077,2.886]],["t/83",[11,0.126,22,3.035,33,2.051,205,3.424,298,2.244,437,3.424,518,3.944,856,2.724,889,2.724,896,3.424,897,3.424,1078,4.734,1079,3.944]],["t/85",[11,0.076,20,1.132,36,0.371,61,0.648,76,1.459,83,2.375,84,1.828,116,1.485,121,1.485,126,2.062,129,1.235,136,0.617,142,2.062,146,2.969,177,1.235,184,2.062,213,2.305,224,1.641,230,2.568,250,1.828,295,1.231,316,1.235,317,2.305,318,2.062,351,2.062,389,1.828,396,2.305,472,1.828,482,2.375,492,2.062,534,2.087,546,1.828,569,3.858,615,1.828,620,2.375,649,1.828,653,2.969,668,3.632,676,1.828,678,2.062,720,2.375,753,2.062,755,2.375,759,2.375,800,1.235,849,2.375,864,1.459,868,1.352,869,1.838,911,2.375,915,2.897,923,2.897,924,3.337,955,2.375,982,2.062,988,1.828,1009,2.375,1010,2.375,1052,2.375,1080,4.631,1081,4.631,1082,2.851,1083,4.006,1084,2.851,1085,2.851,1086,2.851,1087,4.006,1088,2.851,1089,2.851,1090,2.851,1091,2.851,1092,2.375,1093,2.851,1094,2.851,1095,2.851,1096,2.851,1097,2.851,1098,2.851,1099,2.851,1100,2.851,1101,2.851,1102,2.851,1103,2.851,1104,2.851]],["t/87",[8,1.83,10,1.123,11,0.149,12,1.416,18,1.332,19,1.473,20,1.123,24,1.123,32,2.554,34,2.186,36,0.518,39,2.357,48,1.03,51,1.726,54,2.046,60,2.046,61,0.645,62,2.554,64,1.628,68,1.628,77,2.046,81,2.046,86,2.075,98,2.046,105,1.813,128,2.357,131,1.813,136,0.612,138,1.473,145,1.813,149,1.628,153,1.341,177,1.225,217,2.046,281,1.473,308,1.628,381,1.473,404,2.292,413,1.225,437,3.335,466,1.813,472,1.813,487,1.813,509,2.046,517,2.357,527,2.046,528,1.473,557,1.628,560,1.473,590,2.357,591,2.046,661,2.357,674,2.075,679,2.357,757,3.319,846,2.292,863,2.046,864,1.679,869,1.581,873,1.813,988,1.813,1033,2.357,1034,2.357,1045,2.046,1060,2.357,1074,2.357,1092,2.357,1105,3.319,1106,2.829,1107,2.829,1108,2.829,1109,2.829,1110,2.829,1111,2.829,1112,2.829,1113,2.829,1114,2.829,1115,2.829,1116,2.829,1117,3.984,1118,2.829,1119,2.829,1120,2.829,1121,2.357,1122,2.829]],["t/89",[6,2.024,11,0.124,36,0.607,48,1.701,217,3.379,290,3.893,291,3.379,506,3.893,889,2.689,993,3.379,1105,3.893,1123,4.673,1124,4.673,1125,4.673,1126,4.673]],["t/91",[6,1.542,10,1.412,11,0.124,13,2.965,34,1.687,61,0.754,70,2.574,73,2.574,100,2.017,138,1.854,182,2.965,184,2.574,296,1.854,312,2.965,316,1.542,333,2.574,344,2.574,381,1.854,426,2.048,427,2.281,478,2.965,497,3.367,534,1.854,612,2.281,639,4.586,740,2.574,773,2.965,801,2.965,802,2.965,846,2.048,852,2.281,863,2.574,864,1.296,869,1.848,886,2.965,896,2.574,897,2.574,905,2.965,931,2.574,948,2.048,1036,2.965,1041,2.965,1045,2.574,1127,3.559,1128,3.559,1129,3.559,1130,3.559,1131,3.559,1132,3.559,1133,2.965,1134,3.559,1135,3.559,1136,3.559,1137,3.559,1138,3.559]],["t/93",[1,2.781,2,2.781,11,0.13,20,1.943,34,2.687,36,0.5,61,0.792,62,2.465,116,2.003,135,2.465,136,0.832,281,2.003,396,3.368,413,1.666,440,2.781,441,2.465,674,2.003,711,3.204,800,1.666,836,2.781,860,2.781,868,1.823,914,2.465,931,2.781,937,2.465,1000,3.204,1002,4.078,1021,3.204,1121,3.204,1133,3.204,1139,3.846,1140,3.846,1141,3.846,1142,3.846,1143,3.846,1144,3.846,1145,3.846]],["t/95",[0,2.376,11,0.149,36,0.621,38,1.757,61,0.6,98,3.457,157,2.376,262,2.133,284,2.376,285,3.088,286,3.088,295,1.138,298,1.757,313,2.49,316,1.606,356,1.606,381,1.93,385,2.267,394,2.68,449,2.68,486,1.93,542,3.088,543,3.088,553,2.376,674,1.93,826,3.088,838,3.088,845,3.088,852,2.376,856,2.133,861,3.088,868,1.757,879,3.088,948,2.133,993,3.457,1056,3.088,1068,3.088,1079,3.088,1146,3.706,1147,4.781,1148,3.706,1149,3.706,1150,3.706,1151,3.706,1152,3.706,1153,3.706]]],"invertedIndex":[["",{"_index":222,"t":{"7":{"position":[[1321,1],[1374,1]]},"11":{"position":[[340,2]]},"13":{"position":[[184,1],[205,1],[245,1],[262,1],[291,2],[307,3],[311,2],[353,1],[455,2]]},"23":{"position":[[206,2],[510,1],[563,1],[1007,3],[1716,2],[1972,1],[1981,1],[2011,1],[2021,1],[2058,1],[2076,1]]},"25":{"position":[[452,1],[486,1],[514,1],[542,2],[545,2],[548,1],[567,2],[590,3],[594,2],[615,1],[647,2],[666,2],[684,5],[690,2],[1103,1],[1140,2],[1196,2],[1440,2],[1496,1],[1504,2],[1578,1],[1861,1],[1924,2],[1940,2],[2615,2],[2700,1],[2715,2],[2724,2],[3789,1],[3836,2],[3885,1],[3917,3],[3932,1],[3979,3],[4175,2],[4648,1],[4700,2],[4793,1],[4795,2],[5003,1],[5050,2],[5137,1],[5161,2],[5199,1],[5223,1],[5225,2],[5257,1],[5259,2]]}}}],["0",{"_index":747,"t":{"25":{"position":[[3338,4]]}}}],["0.12ms",{"_index":239,"t":{"7":{"position":[[1569,7]]},"23":{"position":[[758,7]]}}}],["0.5ms",{"_index":241,"t":{"7":{"position":[[1589,6]]},"23":{"position":[[778,6]]}}}],["1",{"_index":890,"t":{"65":{"position":[[141,2]]},"75":{"position":[[19,1]]}}}],["100",{"_index":732,"t":{"25":{"position":[[2975,4],[2980,4],[3315,3],[3826,4],[3831,4]]}}}],["100k",{"_index":229,"t":{"7":{"position":[[1483,4],[1539,4],[1602,4]]},"23":{"position":[[672,4],[728,4],[791,4]]}}}],["108",{"_index":246,"t":{"7":{"position":[[1654,4]]},"23":{"position":[[843,4]]}}}],["12",{"_index":813,"t":{"25":{"position":[[4776,3],[5127,3]]},"63":{"position":[[635,2]]}}}],["150",{"_index":745,"t":{"25":{"position":[[3325,3]]}}}],["15ms",{"_index":233,"t":{"7":{"position":[[1513,5]]},"23":{"position":[[702,5]]}}}],["1700",{"_index":242,"t":{"7":{"position":[[1596,5]]},"23":{"position":[[785,5]]}}}],["17417",{"_index":240,"t":{"7":{"position":[[1577,6]]},"23":{"position":[[766,6]]}}}],["2",{"_index":1028,"t":{"77":{"position":[[6,1]]}}}],["21ms",{"_index":238,"t":{"7":{"position":[[1563,5]]},"23":{"position":[[752,5]]}}}],["233",{"_index":234,"t":{"7":{"position":[[1519,4]]},"23":{"position":[[708,4]]}}}],["24ms",{"_index":245,"t":{"7":{"position":[[1648,5]]},"23":{"position":[[837,5]]}}}],["27",{"_index":109,"t":{"5":{"position":[[825,3]]}}}],["2d",{"_index":6,"t":{"3":{"position":[[62,2]]},"13":{"position":[[438,2]]},"17":{"position":[[513,2]]},"19":{"position":[[2234,2]]},"25":{"position":[[845,2],[2864,2]]},"63":{"position":[[239,2]]},"89":{"position":[[114,2]]},"91":{"position":[[208,2]]}}}],["2d/3d",{"_index":1140,"t":{"93":{"position":[[173,5]]}}}],["2ms",{"_index":236,"t":{"7":{"position":[[1529,4],[1664,4]]},"23":{"position":[[718,4],[853,4]]}}}],["3",{"_index":205,"t":{"7":{"position":[[1137,2]]},"71":{"position":[[343,1]]},"83":{"position":[[6,1]]}}}],["300",{"_index":746,"t":{"25":{"position":[[3330,3],[3334,3]]}}}],["350",{"_index":237,"t":{"7":{"position":[[1534,4],[1669,4]]},"23":{"position":[[723,4],[858,4]]},"25":{"position":[[3319,3]]}}}],["3d",{"_index":639,"t":{"25":{"position":[[982,2]]},"91":{"position":[[52,2],[215,2],[269,3],[352,2]]}}}],["3rd",{"_index":928,"t":{"69":{"position":[[622,3]]}}}],["4",{"_index":1123,"t":{"89":{"position":[[6,1]]}}}],["50",{"_index":731,"t":{"25":{"position":[[2971,3],[3817,3],[3822,3]]}}}],["50ms",{"_index":232,"t":{"7":{"position":[[1507,5],[1642,5]]},"23":{"position":[[696,5],[831,5]]}}}],["8",{"_index":132,"t":{"5":{"position":[[1103,1]]}}}],["95",{"_index":101,"t":{"5":{"position":[[704,3]]}}}],["9ms",{"_index":235,"t":{"7":{"position":[[1524,4],[1584,4],[1659,4]]},"23":{"position":[[713,4],[773,4],[848,4]]}}}],["ability",{"_index":85,"t":{"5":{"position":[[477,7]]},"75":{"position":[[420,7]]},"81":{"position":[[457,7]]}}}],["above",{"_index":543,"t":{"23":{"position":[[199,6]]},"95":{"position":[[480,5]]}}}],["accelerated",{"_index":629,"t":{"25":{"position":[[857,11]]}}}],["achieves",{"_index":133,"t":{"5":{"position":[[1105,8]]}}}],["acknowledgment",{"_index":448,"t":{"19":{"position":[[525,14]]}}}],["adapt",{"_index":775,"t":{"25":{"position":[[4054,5]]},"73":{"position":[[782,5]]}}}],["add",{"_index":480,"t":{"19":{"position":[[1200,3]]},"25":{"position":[[1543,3],[1580,5],[4414,3]]}}}],["added",{"_index":673,"t":{"25":{"position":[[1956,5],[3279,6]]}}}],["adding",{"_index":467,"t":{"19":{"position":[[911,6]]},"67":{"position":[[437,6]]}}}],["addition",{"_index":1092,"t":{"85":{"position":[[729,9]]},"87":{"position":[[763,8]]}}}],["additional",{"_index":292,"t":{"9":{"position":[[322,10]]}}}],["address",{"_index":876,"t":{"63":{"position":[[520,7]]}}}],["addressed",{"_index":499,"t":{"19":{"position":[[1605,9]]}}}],["adjusted",{"_index":991,"t":{"73":{"position":[[1083,8]]}}}],["adopters",{"_index":840,"t":{"27":{"position":[[319,8]]}}}],["advanced",{"_index":1116,"t":{"87":{"position":[[649,8]]}}}],["advancements",{"_index":35,"t":{"3":{"position":[[398,12]]},"17":{"position":[[211,13]]},"19":{"position":[[1361,12]]},"23":{"position":[[1702,13]]}}}],["advantage",{"_index":1115,"t":{"87":{"position":[[636,9]]}}}],["advisable",{"_index":705,"t":{"25":{"position":[[2517,9]]}}}],["agnostic",{"_index":1005,"t":{"75":{"position":[[205,8],[1061,8]]}}}],["aim",{"_index":462,"t":{"19":{"position":[[815,3]]}}}],["aims",{"_index":116,"t":{"5":{"position":[[928,4]]},"75":{"position":[[146,4]]},"77":{"position":[[31,4]]},"81":{"position":[[143,4],[731,4]]},"85":{"position":[[32,4]]},"93":{"position":[[122,4]]}}}],["allow",{"_index":781,"t":{"25":{"position":[[4219,5]]}}}],["allowed",{"_index":92,"t":{"5":{"position":[[579,7]]}}}],["allowing",{"_index":121,"t":{"5":{"position":[[972,8]]},"19":{"position":[[756,8]]},"25":{"position":[[3425,8]]},"73":{"position":[[353,8],[874,8]]},"79":{"position":[[306,8]]},"85":{"position":[[237,8]]}}}],["allows",{"_index":678,"t":{"25":{"position":[[2019,6],[3582,6]]},"69":{"position":[[579,6]]},"85":{"position":[[800,6]]}}}],["alpha",{"_index":648,"t":{"25":{"position":[[1297,6]]}}}],["already",{"_index":512,"t":{"19":{"position":[[1832,7]]}}}],["alternatively",{"_index":383,"t":{"15":{"position":[[140,14]]},"29":{"position":[[139,14]]}}}],["although",{"_index":13,"t":{"3":{"position":[[114,8]]},"91":{"position":[[381,8]]}}}],["always",{"_index":122,"t":{"5":{"position":[[988,6]]},"7":{"position":[[11,6]]},"19":{"position":[[553,6]]},"63":{"position":[[275,6]]}}}],["amazing",{"_index":865,"t":{"63":{"position":[[171,7]]}}}],["animation",{"_index":1144,"t":{"93":{"position":[[438,9]]}}}],["animations",{"_index":1087,"t":{"85":{"position":[[416,11],[622,11]]}}}],["announce",{"_index":860,"t":{"63":{"position":[[18,8]]},"67":{"position":[[27,8]]},"93":{"position":[[28,8]]}}}],["announcement",{"_index":881,"t":{"63":{"position":[[698,13]]}}}],["announcing",{"_index":1001,"t":{"75":{"position":[[28,10]]}}}],["another",{"_index":137,"t":{"5":{"position":[[1159,7]]},"19":{"position":[[1068,7]]},"25":{"position":[[1199,7]]},"73":{"position":[[608,7]]}}}],["antialias:true",{"_index":672,"t":{"25":{"position":[[1909,14]]}}}],["antialiasing",{"_index":660,"t":{"25":{"position":[[1614,12],[1680,12]]}}}],["anticipating",{"_index":474,"t":{"19":{"position":[[1016,12]]}}}],["anyone",{"_index":951,"t":{"71":{"position":[[947,6]]}}}],["api",{"_index":64,"t":{"5":{"position":[[189,4]]},"9":{"position":[[146,3],[350,3],[555,3]]},"19":{"position":[[2093,3]]},"25":{"position":[[2759,3],[2875,4],[4085,4],[5181,3],[5245,3]]},"87":{"position":[[546,3]]}}}],["app",{"_index":588,"t":{"23":{"position":[[1905,3]]},"25":{"position":[[510,3]]},"79":{"position":[[424,3]]}}}],["app.init",{"_index":616,"t":{"25":{"position":[[556,10]]}}}],["appeal",{"_index":1082,"t":{"85":{"position":[[196,6]]}}}],["appealing",{"_index":1099,"t":{"85":{"position":[[980,10]]}}}],["appearance",{"_index":970,"t":{"73":{"position":[[379,10]]}}}],["application",{"_index":615,"t":{"25":{"position":[[454,12],[520,14],[570,11]]},"75":{"position":[[636,12]]},"79":{"position":[[345,12],[795,11]]},"85":{"position":[[713,12]]}}}],["applications",{"_index":869,"t":{"63":{"position":[[387,12]]},"69":{"position":[[78,13],[494,12]]},"75":{"position":[[102,13]]},"77":{"position":[[74,13]]},"79":{"position":[[110,13]]},"81":{"position":[[119,13],[374,12],[937,12],[1141,13]]},"85":{"position":[[96,12],[851,13],[1146,12]]},"87":{"position":[[746,13],[1168,13]]},"91":{"position":[[243,13],[619,13]]}}}],["applied",{"_index":652,"t":{"25":{"position":[[1392,7],[4973,7]]}}}],["apply",{"_index":263,"t":{"7":{"position":[[1994,5]]},"23":{"position":[[356,6]]}}}],["applying",{"_index":665,"t":{"25":{"position":[[1772,8]]}}}],["appreciate",{"_index":1093,"t":{"85":{"position":[[755,10]]}}}],["approach",{"_index":44,"t":{"3":{"position":[[512,8]]},"5":{"position":[[570,8]]},"7":{"position":[[230,10],[455,9]]},"25":{"position":[[1039,8]]}}}],["appropriate",{"_index":361,"t":{"13":{"position":[[113,11]]}}}],["apps",{"_index":866,"t":{"63":{"position":[[189,5]]}}}],["architecture",{"_index":144,"t":{"7":{"position":[[105,12]]}}}],["areas",{"_index":506,"t":{"19":{"position":[[1725,5]]},"89":{"position":[[88,5]]}}}],["arguably",{"_index":443,"t":{"19":{"position":[[384,8]]}}}],["arise",{"_index":834,"t":{"27":{"position":[[233,6]]}}}],["aspect",{"_index":985,"t":{"73":{"position":[[818,6]]}}}],["aspects",{"_index":452,"t":{"19":{"position":[[615,7],[1641,7]]}}}],["assembled",{"_index":877,"t":{"63":{"position":[[545,9]]}}}],["asset",{"_index":440,"t":{"19":{"position":[[306,5]]},"75":{"position":[[50,5]]},"93":{"position":[[390,5]]}}}],["assetpack",{"_index":944,"t":{"71":{"position":[[507,10]]},"75":{"position":[[39,10],[128,9],[180,9],[403,9]]}}}],["assets",{"_index":1009,"t":{"75":{"position":[[364,6],[458,6],[847,6]]},"85":{"position":[[1093,6]]}}}],["assured",{"_index":322,"t":{"9":{"position":[[722,7]]}}}],["async",{"_index":367,"t":{"13":{"position":[[223,5]]},"25":{"position":[[535,6]]}}}],["asynchronous",{"_index":600,"t":{"25":{"position":[[50,13],[374,12]]}}}],["attempt",{"_index":87,"t":{"5":{"position":[[494,7]]}}}],["audio",{"_index":1021,"t":{"75":{"position":[[739,5]]},"93":{"position":[[367,6]]}}}],["autodetectrenderer",{"_index":363,"t":{"13":{"position":[[148,18],[186,18],[270,20]]},"25":{"position":[[467,18],[623,23]]}}}],["automatically",{"_index":268,"t":{"7":{"position":[[2089,13]]},"23":{"position":[[1238,13]]},"75":{"position":[[431,13]]}}}],["available",{"_index":77,"t":{"5":{"position":[[370,9],[691,9],[1024,9]]},"71":{"position":[[923,9]]},"87":{"position":[[904,9]]}}}],["avoid",{"_index":707,"t":{"25":{"position":[[2550,5]]}}}],["avoids",{"_index":197,"t":{"7":{"position":[[985,6]]}}}],["await",{"_index":370,"t":{"13":{"position":[[264,5]]},"25":{"position":[[550,5],[617,5]]}}}],["away",{"_index":1058,"t":{"79":{"position":[[854,5]]}}}],["b",{"_index":91,"t":{"5":{"position":[[562,2]]}}}],["back",{"_index":89,"t":{"5":{"position":[[537,4]]},"19":{"position":[[733,4]]}}}],["backend",{"_index":554,"t":{"23":{"position":[[1055,7]]},"25":{"position":[[215,7]]}}}],["bad",{"_index":347,"t":{"11":{"position":[[225,4]]}}}],["bandwidth",{"_index":210,"t":{"7":{"position":[[1176,9]]}}}],["bar",{"_index":544,"t":{"23":{"position":[[225,4]]}}}],["bars",{"_index":966,"t":{"73":{"position":[[258,5]]}}}],["based",{"_index":178,"t":{"7":{"position":[[634,5],[1702,5]]},"23":{"position":[[891,5]]}}}],["batch",{"_index":168,"t":{"7":{"position":[[431,5]]},"23":{"position":[[1420,5]]}}}],["batches",{"_index":163,"t":{"7":{"position":[[377,7]]}}}],["batching",{"_index":1070,"t":{"81":{"position":[[518,8],[538,8]]}}}],["beautiful",{"_index":420,"t":{"17":{"position":[[630,9]]},"73":{"position":[[61,9]]}}}],["become",{"_index":719,"t":{"25":{"position":[[2788,6]]},"79":{"position":[[454,6]]}}}],["becomes",{"_index":114,"t":{"5":{"position":[[890,7]]}}}],["before",{"_index":113,"t":{"5":{"position":[[880,6]]}}}],["begin",{"_index":1029,"t":{"77":{"position":[[13,5]]}}}],["behaviour",{"_index":971,"t":{"73":{"position":[[394,9]]}}}],["behind",{"_index":270,"t":{"9":{"position":[[26,6]]}}}],["being",{"_index":1033,"t":{"79":{"position":[[28,5]]},"87":{"position":[[558,5]]}}}],["believe",{"_index":424,"t":{"19":{"position":[[13,7]]}}}],["below",{"_index":538,"t":{"23":{"position":[[82,5]]}}}],["benchmark",{"_index":247,"t":{"7":{"position":[[1680,9]]},"23":{"position":[[869,9]]}}}],["benefit",{"_index":94,"t":{"5":{"position":[[617,7]]}}}],["best",{"_index":124,"t":{"5":{"position":[[1008,4]]},"7":{"position":[[1962,4]]},"19":{"position":[[673,4]]},"81":{"position":[[257,4]]}}}],["beta",{"_index":9,"t":{"3":{"position":[[87,4],[147,4]]},"13":{"position":[[28,4],[390,4]]},"67":{"position":[[64,4]]}}}],["better",{"_index":557,"t":{"23":{"position":[[1104,6],[1492,6],[1878,6]]},"25":{"position":[[4229,6]]},"27":{"position":[[279,7]]},"75":{"position":[[880,6]]},"87":{"position":[[1113,6]]}}}],["between",{"_index":802,"t":{"25":{"position":[[4594,7]]},"91":{"position":[[307,7]]}}}],["big",{"_index":850,"t":{"27":{"position":[[536,3]]}}}],["bigger",{"_index":460,"t":{"19":{"position":[[779,6]]}}}],["bitmap",{"_index":797,"t":{"25":{"position":[[4496,6],[4685,6]]}}}],["bitmapfonts",{"_index":784,"t":{"25":{"position":[[4317,11]]}}}],["bitmaptext",{"_index":805,"t":{"25":{"position":[[4654,12]]}}}],["blend",{"_index":573,"t":{"23":{"position":[[1462,5]]},"25":{"position":[[1235,5],[1411,5],[1547,5],[2602,5]]}}}],["blog",{"_index":287,"t":{"9":{"position":[[275,4]]},"75":{"position":[[962,4]]}}}],["board",{"_index":516,"t":{"19":{"position":[[1942,5]]}}}],["boosting",{"_index":511,"t":{"19":{"position":[[1800,8]]}}}],["both",{"_index":146,"t":{"7":{"position":[[130,4]]},"23":{"position":[[266,4]]},"73":{"position":[[898,4]]},"85":{"position":[[206,4],[246,4],[951,4]]}}}],["boundaries",{"_index":393,"t":{"17":{"position":[[22,10]]},"27":{"position":[[652,10]]}}}],["breaking",{"_index":520,"t":{"19":{"position":[[2084,8]]}}}],["breaks",{"_index":570,"t":{"23":{"position":[[1426,7]]}}}],["brouwer",{"_index":919,"t":{"69":{"position":[[168,8]]}}}],["browser",{"_index":1060,"t":{"81":{"position":[[27,7]]},"87":{"position":[[583,7]]}}}],["browsers",{"_index":80,"t":{"5":{"position":[[404,9],[711,9],[804,8]]}}}],["bubble",{"_index":940,"t":{"71":{"position":[[356,6]]}}}],["bubbo",{"_index":954,"t":{"71":{"position":[[1053,5],[1059,5]]}}}],["bugs",{"_index":349,"t":{"11":{"position":[[250,5]]}}}],["build",{"_index":162,"t":{"7":{"position":[[371,5]]},"63":{"position":[[371,5]]},"81":{"position":[[895,5]]}}}],["buildgeometryfrompath",{"_index":766,"t":{"25":{"position":[[3673,21],[3887,23]]}}}],["building",{"_index":1045,"t":{"79":{"position":[[331,8],[839,8]]},"87":{"position":[[1131,8]]},"91":{"position":[[604,8]]}}}],["built",{"_index":1129,"t":{"91":{"position":[[83,5]]}}}],["bump",{"_index":183,"t":{"7":{"position":[[729,5]]}}}],["bundle",{"_index":590,"t":{"23":{"position":[[1931,6]]},"87":{"position":[[971,6]]}}}],["bundlers",{"_index":1040,"t":{"79":{"position":[[237,8],[555,8]]}}}],["bunnies",{"_index":260,"t":{"7":{"position":[[1909,8]]}}}],["bunny",{"_index":226,"t":{"7":{"position":[[1423,5]]},"23":{"position":[[612,5]]}}}],["bunnymark",{"_index":249,"t":{"7":{"position":[[1716,9],[1761,9],[1774,9],[1796,9]]},"23":{"position":[[904,9],[949,9],[962,9],[984,9]]}}}],["burn",{"_index":717,"t":{"25":{"position":[[2709,5]]}}}],["buttons",{"_index":958,"t":{"73":{"position":[[166,8],[236,8]]}}}],["call",{"_index":1072,"t":{"81":{"position":[[630,5]]}}}],["called",{"_index":931,"t":{"71":{"position":[[38,6]]},"91":{"position":[[62,6]]},"93":{"position":[[78,6]]}}}],["camera",{"_index":630,"t":{"25":{"position":[[869,7],[964,6]]}}}],["candidate",{"_index":334,"t":{"11":{"position":[[34,10]]}}}],["canvas",{"_index":81,"t":{"5":{"position":[[420,6],[545,6]]},"25":{"position":[[2857,6]]},"87":{"position":[[873,6]]}}}],["capabilities",{"_index":863,"t":{"63":{"position":[[99,12]]},"87":{"position":[[662,13]]},"91":{"position":[[544,12]]}}}],["care",{"_index":550,"t":{"23":{"position":[[401,4]]}}}],["cases",{"_index":220,"t":{"7":{"position":[[1310,6]]}}}],["catalysed",{"_index":43,"t":{"3":{"position":[[498,9]]}}}],["causing",{"_index":874,"t":{"63":{"position":[[477,7]]}}}],["celebrating",{"_index":398,"t":{"17":{"position":[[111,11]]}}}],["certain",{"_index":501,"t":{"19":{"position":[[1633,7]]}}}],["change",{"_index":202,"t":{"7":{"position":[[1093,6],[1888,6]]},"23":{"position":[[1848,6]]},"25":{"position":[[1216,6]]}}}],["changed",{"_index":173,"t":{"7":{"position":[[506,7],[780,8]]}}}],["changer",{"_index":397,"t":{"17":{"position":[[102,8]]}}}],["changes",{"_index":33,"t":{"3":{"position":[[360,7]]},"7":{"position":[[681,7]]},"9":{"position":[[612,7]]},"19":{"position":[[2097,8]]},"23":{"position":[[153,8]]},"25":{"position":[[2777,7]]},"73":{"position":[[989,8]]},"83":{"position":[[78,7]]}}}],["changing",{"_index":243,"t":{"7":{"position":[[1615,9]]},"23":{"position":[[804,9]]}}}],["characters",{"_index":791,"t":{"25":{"position":[[4418,10]]}}}],["chats",{"_index":859,"t":{"29":{"position":[[241,6]]}}}],["check",{"_index":553,"t":{"23":{"position":[[478,5]]},"73":{"position":[[528,5]]},"75":{"position":[[1126,5]]},"95":{"position":[[443,5]]}}}],["checkboxes",{"_index":959,"t":{"73":{"position":[[175,11]]}}}],["cherry",{"_index":713,"t":{"25":{"position":[[2660,6]]}}}],["children",{"_index":651,"t":{"25":{"position":[[1364,8],[1461,8],[1525,8]]}}}],["chit",{"_index":858,"t":{"29":{"position":[[236,4]]}}}],["class",{"_index":757,"t":{"25":{"position":[[3491,5]]},"87":{"position":[[496,5],[925,5]]}}}],["classics",{"_index":681,"t":{"25":{"position":[[2098,9]]}}}],["cleaner",{"_index":493,"t":{"19":{"position":[[1504,7]]}}}],["clear",{"_index":470,"t":{"19":{"position":[[956,6]]}}}],["cli",{"_index":1031,"t":{"79":{"position":[[19,3],[393,3]]}}}],["closely",{"_index":721,"t":{"25":{"position":[[2829,7]]}}}],["code",{"_index":129,"t":{"5":{"position":[[1066,5]]},"7":{"position":[[814,4]]},"11":{"position":[[276,5]]},"19":{"position":[[630,4],[928,5]]},"25":{"position":[[146,4]]},"71":{"position":[[979,4]]},"81":{"position":[[240,5],[1097,4]]},"85":{"position":[[545,5]]}}}],["codebase",{"_index":47,"t":{"3":{"position":[[543,8]]},"11":{"position":[[391,8]]}}}],["collaborate",{"_index":1084,"t":{"85":{"position":[[261,11]]}}}],["collaboration",{"_index":1101,"t":{"85":{"position":[[1022,14]]}}}],["collection",{"_index":932,"t":{"71":{"position":[[76,10]]}}}],["color",{"_index":716,"t":{"25":{"position":[[2702,6]]}}}],["color:'blue",{"_index":823,"t":{"25":{"position":[[5210,12]]}}}],["color:'red",{"_index":821,"t":{"25":{"position":[[5148,12]]}}}],["colorblend",{"_index":682,"t":{"25":{"position":[[2108,11]]}}}],["colorburnblend",{"_index":683,"t":{"25":{"position":[[2120,15]]}}}],["colordodgeblend",{"_index":684,"t":{"25":{"position":[[2136,16]]}}}],["combine",{"_index":987,"t":{"73":{"position":[[890,7]]}}}],["comet",{"_index":1080,"t":{"85":{"position":[[0,5],[332,5],[1037,5]]}}}],["coming",{"_index":1149,"t":{"95":{"position":[[67,6]]}}}],["committed",{"_index":830,"t":{"27":{"position":[[163,9]]}}}],["community",{"_index":385,"t":{"15":{"position":[[180,9]]},"19":{"position":[[66,9]]},"29":{"position":[[179,9]]},"63":{"position":[[313,9],[506,10]]},"69":{"position":[[218,9]]},"79":{"position":[[498,10]]},"95":{"position":[[88,10],[207,10]]}}}],["compared",{"_index":517,"t":{"19":{"position":[[1948,8]]},"87":{"position":[[382,8]]}}}],["compatibility",{"_index":525,"t":{"19":{"position":[[2151,13]]}}}],["compilation",{"_index":589,"t":{"23":{"position":[[1909,12]]}}}],["complete",{"_index":1106,"t":{"87":{"position":[[59,8]]}}}],["complex",{"_index":988,"t":{"73":{"position":[[923,8]]},"81":{"position":[[499,7]]},"85":{"position":[[484,7]]},"87":{"position":[[1140,8]]}}}],["complexity",{"_index":502,"t":{"19":{"position":[[1669,10]]}}}],["complicated",{"_index":1037,"t":{"79":{"position":[[181,11]]},"81":{"position":[[656,11]]}}}],["components",{"_index":927,"t":{"69":{"position":[[607,10]]},"73":{"position":[[147,10],[317,10]]}}}],["comprehensive",{"_index":299,"t":{"9":{"position":[[429,13]]}}}],["compress",{"_index":1022,"t":{"75":{"position":[[767,8]]}}}],["computational",{"_index":189,"t":{"7":{"position":[[843,13],[1207,13]]}}}],["computations",{"_index":58,"t":{"5":{"position":[[109,12]]}}}],["concept",{"_index":619,"t":{"25":{"position":[[713,7]]}}}],["conform",{"_index":816,"t":{"25":{"position":[[4825,7]]}}}],["considering",{"_index":908,"t":{"67":{"position":[[481,11]]}}}],["const",{"_index":369,"t":{"13":{"position":[[247,5]]},"25":{"position":[[504,5],[600,5],[1087,5],[1847,5],[3778,5],[3870,5],[3921,5],[4635,5],[4990,5]]}}}],["construct",{"_index":174,"t":{"7":{"position":[[543,9]]}}}],["consuming",{"_index":1069,"t":{"81":{"position":[[391,10]]}}}],["container",{"_index":642,"t":{"25":{"position":[[1093,9],[1109,11],[1341,10]]}}}],["container.blendmode",{"_index":658,"t":{"25":{"position":[[1558,19]]}}}],["container.tint",{"_index":656,"t":{"25":{"position":[[1481,14]]}}}],["containers",{"_index":623,"t":{"25":{"position":[[768,10],[1148,10]]}}}],["content",{"_index":70,"t":{"5":{"position":[[259,7],[594,7]]},"23":{"position":[[1185,8]]},"91":{"position":[[218,7]]}}}],["context",{"_index":724,"t":{"25":{"position":[[2867,7]]}}}],["continuation",{"_index":917,"t":{"69":{"position":[[110,12]]}}}],["continue",{"_index":324,"t":{"9":{"position":[[759,8]]},"27":{"position":[[618,8]]}}}],["continuing",{"_index":1152,"t":{"95":{"position":[[379,10]]}}}],["contribute",{"_index":350,"t":{"11":{"position":[[265,10]]},"71":{"position":[[987,10]]}}}],["contributions",{"_index":827,"t":{"27":{"position":[[101,14]]}}}],["contributors",{"_index":845,"t":{"27":{"position":[[394,12]]},"95":{"position":[[222,13]]}}}],["conversations",{"_index":390,"t":{"15":{"position":[[237,14]]}}}],["convert",{"_index":1018,"t":{"75":{"position":[[695,7],[731,7]]}}}],["cool",{"_index":645,"t":{"25":{"position":[[1207,4]]}}}],["core",{"_index":466,"t":{"19":{"position":[[889,4],[1247,4]]},"25":{"position":[[2503,5]]},"69":{"position":[[551,4]]},"87":{"position":[[230,4]]}}}],["correct",{"_index":159,"t":{"7":{"position":[[303,7]]}}}],["correcting",{"_index":494,"t":{"19":{"position":[[1531,10]]}}}],["course",{"_index":25,"t":{"3":{"position":[[274,6]]}}}],["covered",{"_index":537,"t":{"23":{"position":[[56,7]]}}}],["cpu",{"_index":221,"t":{"7":{"position":[[1317,3],[1341,3],[1442,3],[1449,3],[1453,3]]},"23":{"position":[[506,3],[530,3],[631,3],[638,3],[642,3],[1363,3]]}}}],["create",{"_index":295,"t":{"9":{"position":[[385,6]]},"13":{"position":[[97,6]]},"17":{"position":[[422,6]]},"25":{"position":[[3839,6]]},"63":{"position":[[164,6]]},"69":{"position":[[481,6],[593,6]]},"71":{"position":[[144,6],[871,6]]},"73":{"position":[[54,6],[699,6],[916,6],[1046,6]]},"79":{"position":[[411,6],[431,6],[775,6]]},"81":{"position":[[1106,6]]},"85":{"position":[[79,6],[468,6]]},"95":{"position":[[313,6]]}}}],["created",{"_index":556,"t":{"23":{"position":[[1094,7]]},"25":{"position":[[4728,7],[5078,8]]},"63":{"position":[[327,7]]},"69":{"position":[[149,7]]}}}],["creating",{"_index":668,"t":{"25":{"position":[[1823,8]]},"79":{"position":[[90,8]]},"85":{"position":[[378,8],[604,8],[694,8],[1114,8]]}}}],["creation",{"_index":664,"t":{"25":{"position":[[1735,8],[3597,8]]}}}],["crucial",{"_index":305,"t":{"9":{"position":[[502,7]]}}}],["curious",{"_index":261,"t":{"7":{"position":[[1918,7]]}}}],["current",{"_index":893,"t":{"67":{"position":[[112,7]]}}}],["currently",{"_index":105,"t":{"5":{"position":[[762,9]]},"25":{"position":[[3386,9]]},"65":{"position":[[106,9]]},"87":{"position":[[397,10]]}}}],["custom",{"_index":926,"t":{"69":{"position":[[600,6]]}}}],["customizable",{"_index":968,"t":{"73":{"position":[[339,13]]}}}],["cutting",{"_index":483,"t":{"19":{"position":[[1293,7]]}}}],["d",{"_index":139,"t":{"5":{"position":[[1177,2]]},"7":{"position":[[2103,2]]}}}],["darkenblend",{"_index":685,"t":{"25":{"position":[[2153,12]]}}}],["data",{"_index":166,"t":{"7":{"position":[[406,4],[593,4],[1114,4]]}}}],["debug",{"_index":1062,"t":{"81":{"position":[[100,5],[757,5]]}}}],["decade",{"_index":399,"t":{"17":{"position":[[125,6]]},"19":{"position":[[1076,7]]}}}],["decade—yes",{"_index":26,"t":{"3":{"position":[[286,11]]}}}],["decent",{"_index":216,"t":{"7":{"position":[[1267,6]]}}}],["dedicated",{"_index":844,"t":{"27":{"position":[[384,9]]},"63":{"position":[[557,9]]},"69":{"position":[[303,9]]}}}],["deeper",{"_index":291,"t":{"9":{"position":[[304,6]]},"81":{"position":[[994,6]]},"89":{"position":[[76,6]]}}}],["default",{"_index":799,"t":{"25":{"position":[[4549,7]]}}}],["delve",{"_index":290,"t":{"9":{"position":[[298,5]]},"89":{"position":[[70,5]]}}}],["demonstrate",{"_index":942,"t":{"71":{"position":[[398,11],[574,11]]}}}],["depending",{"_index":803,"t":{"25":{"position":[[4610,9]]}}}],["deprecation",{"_index":327,"t":{"9":{"position":[[796,11]]}}}],["design",{"_index":982,"t":{"73":{"position":[[759,6]]},"75":{"position":[[1070,7]]},"85":{"position":[[68,6]]}}}],["designed",{"_index":472,"t":{"19":{"position":[[977,8]]},"81":{"position":[[279,8]]},"85":{"position":[[184,8]]},"87":{"position":[[279,8]]}}}],["designers",{"_index":1083,"t":{"85":{"position":[[211,9],[454,9]]}}}],["designs",{"_index":755,"t":{"25":{"position":[[3461,8],[3769,8]]},"85":{"position":[[907,8]]}}}],["desktop",{"_index":79,"t":{"5":{"position":[[396,7],[796,7]]},"73":{"position":[[1228,7]]}}}],["despite",{"_index":310,"t":{"9":{"position":[[559,7]]}}}],["destructuring",{"_index":491,"t":{"19":{"position":[[1467,13]]}}}],["detailed",{"_index":540,"t":{"23":{"position":[[123,8]]},"25":{"position":[[3752,8]]}}}],["details",{"_index":1026,"t":{"75":{"position":[[991,7]]}}}],["dev",{"_index":1059,"t":{"81":{"position":[[7,3],[440,3],[721,3],[818,3]]}}}],["developed",{"_index":1034,"t":{"79":{"position":[[34,9]]},"87":{"position":[[564,9]]}}}],["developer",{"_index":979,"t":{"73":{"position":[[653,9]]}}}],["developers",{"_index":864,"t":{"63":{"position":[[150,10],[360,10],[575,10]]},"69":{"position":[[467,10]]},"71":{"position":[[730,10],[849,10]]},"73":{"position":[[31,10]]},"75":{"position":[[340,10],[821,10]]},"79":{"position":[[140,10],[652,10]]},"81":{"position":[[89,10],[170,10],[296,10],[473,10],[702,11],[881,10],[976,10],[1071,10]]},"85":{"position":[[225,11],[739,10]]},"87":{"position":[[617,10],[942,10],[1043,10]]},"91":{"position":[[566,10]]}}}],["developing",{"_index":1003,"t":{"75":{"position":[[91,10]]}}}],["development",{"_index":413,"t":{"17":{"position":[[368,12]]},"19":{"position":[[1418,12]]},"23":{"position":[[1637,11]]},"71":{"position":[[289,12],[437,11],[786,11]]},"73":{"position":[[1275,11]]},"79":{"position":[[486,11]]},"87":{"position":[[110,11]]},"93":{"position":[[243,11]]}}}],["device",{"_index":992,"t":{"73":{"position":[[1118,7]]}}}],["devices",{"_index":996,"t":{"73":{"position":[[1211,7]]}}}],["diagnose",{"_index":1066,"t":{"81":{"position":[[307,8]]}}}],["didn't",{"_index":273,"t":{"9":{"position":[[82,6]]}}}],["dif",{"_index":228,"t":{"7":{"position":[[1457,3],[1479,3]]},"23":{"position":[[646,3],[668,3]]}}}],["differenceblend",{"_index":686,"t":{"25":{"position":[[2166,16]]}}}],["different",{"_index":983,"t":{"73":{"position":[[791,9]]},"75":{"position":[[712,9],[748,9]]},"79":{"position":[[227,9],[545,9]]}}}],["digital",{"_index":429,"t":{"19":{"position":[[120,7]]}}}],["direct",{"_index":387,"t":{"15":{"position":[[205,6]]},"29":{"position":[[204,6]]}}}],["discord",{"_index":386,"t":{"15":{"position":[[193,7]]},"27":{"position":[[206,7]]},"29":{"position":[[192,7]]}}}],["discuss",{"_index":536,"t":{"23":{"position":[[30,8]]}}}],["displays",{"_index":997,"t":{"73":{"position":[[1236,9]]}}}],["dive",{"_index":336,"t":{"11":{"position":[[80,4]]},"17":{"position":[[537,4]]}}}],["divideblend",{"_index":687,"t":{"25":{"position":[[2183,12]]}}}],["docs",{"_index":530,"t":{"21":{"position":[[8,4]]}}}],["documentation",{"_index":894,"t":{"67":{"position":[[120,13],[245,13],[419,13],[509,13]]},"69":{"position":[[353,14]]}}}],["don't",{"_index":302,"t":{"9":{"position":[[467,5]]},"11":{"position":[[343,5]]}}}],["doormat23",{"_index":377,"t":{"15":{"position":[[46,9]]},"29":{"position":[[45,9]]}}}],["draw",{"_index":167,"t":{"7":{"position":[[422,4]]},"81":{"position":[[625,4]]}}}],["drawing",{"_index":726,"t":{"25":{"position":[[2894,7],[3262,7],[3509,7]]}}}],["drivers",{"_index":269,"t":{"9":{"position":[[18,7]]}}}],["driving",{"_index":41,"t":{"3":{"position":[[482,7]]},"17":{"position":[[135,7]]}}}],["dropping",{"_index":415,"t":{"17":{"position":[[433,8]]}}}],["due",{"_index":575,"t":{"23":{"position":[[1511,3]]}}}],["during",{"_index":587,"t":{"23":{"position":[[1898,6]]},"25":{"position":[[1724,6]]}}}],["dynamic",{"_index":148,"t":{"7":{"position":[[146,7]]},"73":{"position":[[932,7]]}}}],["dynamically",{"_index":790,"t":{"25":{"position":[[4402,11],[4716,11],[5066,11]]}}}],["each",{"_index":199,"t":{"7":{"position":[[1046,4]]},"73":{"position":[[407,4]]}}}],["eager",{"_index":21,"t":{"3":{"position":[[228,5]]},"19":{"position":[[2004,5]]},"27":{"position":[[57,5]]}}}],["early",{"_index":839,"t":{"27":{"position":[[313,5]]}}}],["ease",{"_index":417,"t":{"17":{"position":[[463,5]]}}}],["easier",{"_index":800,"t":{"25":{"position":[[4577,6]]},"63":{"position":[[139,6]]},"73":{"position":[[663,7]]},"75":{"position":[[172,7]]},"77":{"position":[[47,6]]},"81":{"position":[[159,6],[747,6],[870,6]]},"85":{"position":[[48,6]]},"93":{"position":[[255,6]]}}}],["easily",{"_index":649,"t":{"25":{"position":[[1327,6]]},"67":{"position":[[362,6]]},"73":{"position":[[277,6]]},"85":{"position":[[815,6]]}}}],["easy",{"_index":653,"t":{"25":{"position":[[1431,4],[1927,4],[2718,5]]},"69":{"position":[[422,4],[458,4]]},"79":{"position":[[643,4]]},"85":{"position":[[669,4],[879,4],[1052,4]]}}}],["ecosystem",{"_index":1079,"t":{"83":{"position":[[100,9]]},"95":{"position":[[421,10]]}}}],["edge",{"_index":484,"t":{"19":{"position":[[1301,4]]}}}],["edit",{"_index":1088,"t":{"85":{"position":[[479,4]]}}}],["editing",{"_index":1086,"t":{"85":{"position":[[391,7]]}}}],["editor",{"_index":1081,"t":{"85":{"position":[[20,6],[174,6],[555,6]]}}}],["effect",{"_index":215,"t":{"7":{"position":[[1235,6]]}}}],["efficiency",{"_index":739,"t":{"25":{"position":[[3218,10]]}}}],["efficient",{"_index":62,"t":{"5":{"position":[[168,9]]},"81":{"position":[[1118,9]]},"87":{"position":[[310,10],[1088,9]]},"93":{"position":[[271,10]]}}}],["efficiently",{"_index":1010,"t":{"75":{"position":[[371,12]]},"85":{"position":[[287,12]]}}}],["effort",{"_index":1118,"t":{"87":{"position":[[835,6]]}}}],["efforts",{"_index":847,"t":{"27":{"position":[[442,7]]}}}],["element",{"_index":972,"t":{"73":{"position":[[412,7]]}}}],["elements",{"_index":184,"t":{"7":{"position":[[761,8],[1071,8]]},"85":{"position":[[649,9]]},"91":{"position":[[355,8]]}}}],["elevate",{"_index":352,"t":{"11":{"position":[[299,7]]},"17":{"position":[[563,7]]}}}],["embracing",{"_index":477,"t":{"19":{"position":[[1108,9]]}}}],["emerge",{"_index":457,"t":{"19":{"position":[[701,6]]}}}],["empowering",{"_index":294,"t":{"9":{"position":[[367,10]]},"17":{"position":[[404,10]]}}}],["enable",{"_index":661,"t":{"25":{"position":[[1665,6]]},"87":{"position":[[610,6]]}}}],["enables",{"_index":758,"t":{"25":{"position":[[3497,7]]},"73":{"position":[[684,7]]}}}],["enabling",{"_index":622,"t":{"25":{"position":[[759,8]]}}}],["encapsulate",{"_index":282,"t":{"9":{"position":[[221,11]]}}}],["encounter",{"_index":319,"t":{"9":{"position":[[692,9]]}}}],["encountered",{"_index":451,"t":{"19":{"position":[[603,11]]}}}],["encounters",{"_index":566,"t":{"23":{"position":[[1328,10]]}}}],["end",{"_index":888,"t":{"65":{"position":[[128,3]]},"79":{"position":[[482,3]]}}}],["engagement",{"_index":388,"t":{"15":{"position":[[212,10]]},"27":{"position":[[694,10]]},"29":{"position":[[211,10]]}}}],["engaging",{"_index":754,"t":{"25":{"position":[[3452,8]]},"81":{"position":[[1132,8]]}}}],["engine",{"_index":34,"t":{"3":{"position":[[382,7]]},"11":{"position":[[166,7]]},"19":{"position":[[290,7]]},"63":{"position":[[300,8]]},"87":{"position":[[242,7],[858,6],[1098,6]]},"91":{"position":[[55,6]]},"93":{"position":[[97,7],[115,6],[184,6],[318,6]]}}}],["engineering",{"_index":46,"t":{"3":{"position":[[527,11]]}}}],["engines",{"_index":1133,"t":{"91":{"position":[[315,7]]},"93":{"position":[[358,8]]}}}],["engine—far",{"_index":280,"t":{"9":{"position":[[198,10]]}}}],["enhance",{"_index":277,"t":{"9":{"position":[[134,7]]},"19":{"position":[[838,7]]},"23":{"position":[[1594,7]]},"25":{"position":[[1066,7]]},"63":{"position":[[87,7]]}}}],["enhanced",{"_index":776,"t":{"25":{"position":[[4067,8]]}}}],["enhancing",{"_index":503,"t":{"19":{"position":[[1684,9]]},"25":{"position":[[3208,9]]}}}],["ensured",{"_index":524,"t":{"19":{"position":[[2143,7]]}}}],["ensuring",{"_index":482,"t":{"19":{"position":[[1262,8]]},"85":{"position":[[916,8]]}}}],["entirely",{"_index":206,"t":{"7":{"position":[[1143,8]]}}}],["environment",{"_index":640,"t":{"25":{"position":[[985,11]]}}}],["era",{"_index":59,"t":{"5":{"position":[[146,4]]}}}],["especially",{"_index":1073,"t":{"81":{"position":[[683,10]]}}}],["essentially",{"_index":704,"t":{"25":{"position":[[2476,11]]}}}],["even",{"_index":296,"t":{"9":{"position":[[392,4]]},"11":{"position":[[260,4]]},"19":{"position":[[1888,4]]},"27":{"position":[[274,4]]},"63":{"position":[[134,4]]},"91":{"position":[[577,4]]}}}],["everyone",{"_index":841,"t":{"27":{"position":[[328,9]]}}}],["everything",{"_index":135,"t":{"5":{"position":[[1136,10]]},"67":{"position":[[322,10]]},"73":{"position":[[1182,10]]},"93":{"position":[[138,10]]}}}],["evolution",{"_index":855,"t":{"27":{"position":[[724,10]]}}}],["evolved",{"_index":431,"t":{"19":{"position":[[142,7]]}}}],["example",{"_index":742,"t":{"25":{"position":[[3290,8]]},"75":{"position":[[481,8]]}}}],["examples",{"_index":533,"t":{"21":{"position":[[48,8]]},"25":{"position":[[4165,9]]},"67":{"position":[[460,9]]},"71":{"position":[[250,8]]},"73":{"position":[[559,9]]}}}],["excited",{"_index":856,"t":{"27":{"position":[[745,7]]},"63":{"position":[[7,7]]},"67":{"position":[[16,7]]},"83":{"position":[[133,7]]},"95":{"position":[[286,7]]}}}],["exciting",{"_index":381,"t":{"15":{"position":[[114,8]]},"29":{"position":[[113,8]]},"65":{"position":[[182,8]]},"87":{"position":[[439,8]]},"91":{"position":[[155,8]]},"95":{"position":[[22,8]]}}}],["exclusionblend",{"_index":688,"t":{"25":{"position":[[2196,15]]}}}],["exclusive",{"_index":3,"t":{"3":{"position":[[27,9]]}}}],["execute",{"_index":117,"t":{"5":{"position":[[936,7]]},"7":{"position":[[616,7]]}}}],["executed",{"_index":187,"t":{"7":{"position":[[822,9]]}}}],["existing",{"_index":196,"t":{"7":{"position":[[947,8]]},"19":{"position":[[1214,8]]}}}],["expand",{"_index":1138,"t":{"91":{"position":[[528,6]]}}}],["expect",{"_index":1121,"t":{"87":{"position":[[1058,6]]},"93":{"position":[[159,6]]}}}],["expected",{"_index":577,"t":{"23":{"position":[[1582,8]]}}}],["experience",{"_index":527,"t":{"19":{"position":[[2205,10]]},"75":{"position":[[918,11]]},"87":{"position":[[157,10]]}}}],["experiences",{"_index":416,"t":{"17":{"position":[[446,11]]}}}],["experimenting",{"_index":373,"t":{"13":{"position":[[361,13]]}}}],["exploration",{"_index":541,"t":{"23":{"position":[[132,11]]}}}],["explore",{"_index":337,"t":{"11":{"position":[[92,7],[369,7]]},"71":{"position":[[967,7]]}}}],["extend",{"_index":1150,"t":{"95":{"position":[[167,6]]}}}],["extension",{"_index":1061,"t":{"81":{"position":[[35,9]]}}}],["extensive",{"_index":1109,"t":{"87":{"position":[[147,9]]}}}],["facilitates",{"_index":626,"t":{"25":{"position":[[826,11]]}}}],["factors",{"_index":42,"t":{"3":{"position":[[490,7]]}}}],["fall",{"_index":88,"t":{"5":{"position":[[532,4]]}}}],["fallback",{"_index":119,"t":{"5":{"position":[[953,8]]}}}],["familiar",{"_index":309,"t":{"9":{"position":[[546,8]]}}}],["fancy",{"_index":820,"t":{"25":{"position":[[5037,5]]}}}],["fast",{"_index":97,"t":{"5":{"position":[[651,4]]},"7":{"position":[[177,5]]}}}],["faster",{"_index":404,"t":{"17":{"position":[[235,7]]},"19":{"position":[[1924,6]]},"23":{"position":[[255,6]]},"75":{"position":[[858,6]]},"87":{"position":[[294,6],[1072,6]]}}}],["feature",{"_index":84,"t":{"5":{"position":[[461,7]]},"25":{"position":[[3545,7]]},"75":{"position":[[392,7]]},"85":{"position":[[785,8]]}}}],["features",{"_index":20,"t":{"3":{"position":[[213,8]]},"9":{"position":[[182,8]]},"19":{"position":[[1446,8],[2044,8]]},"69":{"position":[[388,9],[556,8]]},"75":{"position":[[321,8],[807,8],[1038,8]]},"81":{"position":[[417,8]]},"85":{"position":[[320,8]]},"87":{"position":[[448,8]]},"93":{"position":[[211,8],[294,8]]}}}],["feedback",{"_index":338,"t":{"11":{"position":[[109,8]]},"27":{"position":[[88,8]]}}}],["feel",{"_index":976,"t":{"73":{"position":[[515,4]]}}}],["felt",{"_index":507,"t":{"19":{"position":[[1734,4]]}}}],["few",{"_index":107,"t":{"5":{"position":[[792,3]]},"73":{"position":[[1317,3]]},"79":{"position":[[817,3]]}}}],["fiddle",{"_index":256,"t":{"7":{"position":[[1847,6]]}}}],["fill",{"_index":749,"t":{"25":{"position":[[3352,4],[4780,5],[4937,4],[5131,5]]}}}],["fill('blue",{"_index":733,"t":{"25":{"position":[[2985,14]]}}}],["filling",{"_index":727,"t":{"25":{"position":[[2906,7]]}}}],["fills",{"_index":814,"t":{"25":{"position":[[4803,5],[4845,5],[5185,5]]}}}],["filter",{"_index":666,"t":{"25":{"position":[[1783,7]]}}}],["filters",{"_index":571,"t":{"23":{"position":[[1442,8]]},"25":{"position":[[2005,8],[2488,7]]}}}],["final",{"_index":849,"t":{"27":{"position":[[530,5]]},"85":{"position":[[934,5]]}}}],["finalized",{"_index":14,"t":{"3":{"position":[[131,10]]}}}],["finally",{"_index":1000,"t":{"75":{"position":[[0,8]]},"93":{"position":[[0,8]]}}}],["fine",{"_index":341,"t":{"11":{"position":[[150,4]]}}}],["first",{"_index":86,"t":{"5":{"position":[[488,5]]},"7":{"position":[[735,6]]},"27":{"position":[[23,5]]},"67":{"position":[[0,5]]},"71":{"position":[[306,5]]},"87":{"position":[[490,5],[919,5]]}}}],["firstly",{"_index":602,"t":{"25":{"position":[[90,8]]}}}],["fit",{"_index":973,"t":{"73":{"position":[[423,3],[1095,3]]}}}],["flexibility",{"_index":740,"t":{"25":{"position":[[3233,12]]},"73":{"position":[[1031,11]]},"91":{"position":[[587,11]]}}}],["fly",{"_index":786,"t":{"25":{"position":[[4357,3]]},"75":{"position":[[472,4]]}}}],["focus",{"_index":1044,"t":{"79":{"position":[[322,5]]}}}],["folder",{"_index":1012,"t":{"75":{"position":[[516,6]]}}}],["follow",{"_index":376,"t":{"15":{"position":[[39,6]]},"23":{"position":[[173,6]]},"29":{"position":[[38,6]]},"81":{"position":[[250,6]]}}}],["following",{"_index":161,"t":{"7":{"position":[[361,9]]}}}],["follows",{"_index":729,"t":{"25":{"position":[[2943,8]]}}}],["font",{"_index":808,"t":{"25":{"position":[[4692,7],[4703,4],[5053,4]]}}}],["font's",{"_index":792,"t":{"25":{"position":[[4436,6]]}}}],["fontfamily",{"_index":810,"t":{"25":{"position":[[4744,11],[5095,11]]}}}],["fonts",{"_index":1019,"t":{"75":{"position":[[703,5]]}}}],["fontsize",{"_index":812,"t":{"25":{"position":[[4766,9],[5117,9]]}}}],["formats",{"_index":1020,"t":{"75":{"position":[[722,8],[758,8]]}}}],["forward",{"_index":98,"t":{"5":{"position":[[656,7]]},"87":{"position":[[1027,7]]},"95":{"position":[[121,7],[368,7]]}}}],["found",{"_index":531,"t":{"21":{"position":[[27,5]]}}}],["foundation",{"_index":464,"t":{"19":{"position":[[850,10]]},"23":{"position":[[1680,10]]}}}],["four",{"_index":885,"t":{"65":{"position":[[72,4]]}}}],["fragmentation",{"_index":875,"t":{"63":{"position":[[485,13]]}}}],["fragmented",{"_index":901,"t":{"67":{"position":[[262,10]]}}}],["frame",{"_index":200,"t":{"7":{"position":[[1051,6],[1364,5],[1417,5]]},"23":{"position":[[553,5],[606,5]]}}}],["frames",{"_index":194,"t":{"7":{"position":[[926,7]]}}}],["framework",{"_index":1004,"t":{"75":{"position":[[195,9],[248,10],[1051,9]]}}}],["frameworks",{"_index":1041,"t":{"79":{"position":[[250,11],[568,11]]},"91":{"position":[[326,10]]}}}],["free",{"_index":977,"t":{"73":{"position":[[520,4]]}}}],["friendly",{"_index":318,"t":{"9":{"position":[[673,9]]},"25":{"position":[[2819,9]]},"85":{"position":[[150,8]]}}}],["front",{"_index":1047,"t":{"79":{"position":[[476,5]]}}}],["full",{"_index":878,"t":{"63":{"position":[[610,4]]}}}],["fun",{"_index":817,"t":{"25":{"position":[[4920,3]]}}}],["function",{"_index":364,"t":{"13":{"position":[[167,9],[229,8]]},"25":{"position":[[3695,9]]}}}],["functional",{"_index":955,"t":{"73":{"position":[[75,10]]},"85":{"position":[[956,10]]}}}],["functionality",{"_index":504,"t":{"19":{"position":[[1694,14]]}}}],["further",{"_index":211,"t":{"7":{"position":[[1190,7]]},"63":{"position":[[79,7]]}}}],["future",{"_index":5,"t":{"3":{"position":[[52,6]]},"5":{"position":[[1123,6]]},"13":{"position":[[428,6]]},"17":{"position":[[503,6]]},"23":{"position":[[1166,6],[1695,6]]}}}],["gained",{"_index":95,"t":{"5":{"position":[[634,6]]}}}],["game",{"_index":396,"t":{"17":{"position":[[97,4]]},"71":{"position":[[284,4],[345,4],[371,5],[432,4],[725,4],[781,4]]},"73":{"position":[[305,5]]},"85":{"position":[[644,4],[705,4]]},"93":{"position":[[92,4],[110,4],[179,4],[238,4],[313,4]]}}}],["game's",{"_index":974,"t":{"73":{"position":[[432,6],[1147,6]]}}}],["games",{"_index":534,"t":{"21":{"position":[[62,5]]},"63":{"position":[[179,5],[377,5]]},"71":{"position":[[58,7],[102,5],[151,5],[217,5],[316,5],[383,5],[536,5],[677,5],[888,5]]},"73":{"position":[[505,6]]},"85":{"position":[[86,5],[1136,5]]},"91":{"position":[[234,5]]}}}],["geared",{"_index":314,"t":{"9":{"position":[[624,6]]}}}],["generate",{"_index":1011,"t":{"75":{"position":[[445,8],[556,8],[677,8]]}}}],["generated",{"_index":785,"t":{"25":{"position":[[4340,9]]}}}],["geometry",{"_index":765,"t":{"25":{"position":[[3654,8],[3846,8],[3876,8],[3945,9]]}}}],["github",{"_index":356,"t":{"11":{"position":[[403,6]]},"27":{"position":[[195,6]]},"67":{"position":[[614,6]]},"69":{"position":[[643,6]]},"71":{"position":[[936,6],[1014,6]]},"73":{"position":[[579,6],[1341,6]]},"75":{"position":[[1140,6],[1152,6]]},"95":{"position":[[457,6]]}}}],["give",{"_index":182,"t":{"7":{"position":[[707,4]]},"91":{"position":[[561,4]]}}}],["glyphs",{"_index":793,"t":{"25":{"position":[[4443,6]]}}}],["go",{"_index":66,"t":{"5":{"position":[[215,2]]},"7":{"position":[[612,3]]},"27":{"position":[[773,2]]}}}],["good",{"_index":346,"t":{"11":{"position":[[215,5]]}}}],["goodboy",{"_index":1127,"t":{"91":{"position":[[11,7]]}}}],["gotten",{"_index":848,"t":{"27":{"position":[[503,6]]}}}],["gpu",{"_index":68,"t":{"5":{"position":[[247,3]]},"7":{"position":[[418,3],[601,3],[1370,3],[1394,3],[1464,3],[1471,3],[1475,3]]},"23":{"position":[[559,3],[583,3],[653,3],[660,3],[664,3],[1381,4]]},"25":{"position":[[790,3],[1191,4]]},"87":{"position":[[658,3]]}}}],["gradient",{"_index":748,"t":{"25":{"position":[[3343,8]]}}}],["gradients",{"_index":752,"t":{"25":{"position":[[3414,10],[4887,10]]}}}],["graph",{"_index":156,"t":{"7":{"position":[[260,5],[330,5],[533,5],[888,5]]}}}],["graphic",{"_index":596,"t":{"23":{"position":[[2013,7],[2068,7]]},"25":{"position":[[3761,7]]}}}],["graphics",{"_index":8,"t":{"3":{"position":[[69,8]]},"5":{"position":[[126,8]]},"7":{"position":[[66,9]]},"13":{"position":[[445,9]]},"17":{"position":[[520,9]]},"23":{"position":[[1111,8]]},"25":{"position":[[2727,8],[2750,8],[2952,8],[3052,8],[3190,8],[4013,8],[4076,8],[4866,9],[4953,8],[5172,8],[5236,8]]},"27":{"position":[[670,8]]},"87":{"position":[[537,8],[727,8],[1149,8]]}}}],["graphics.svg('m",{"_index":743,"t":{"25":{"position":[[3299,15]]}}}],["graphicscontext",{"_index":734,"t":{"25":{"position":[[3002,15],[3142,15]]}}}],["graphicspath",{"_index":756,"t":{"25":{"position":[[3478,12],[3795,14]]}}}],["great",{"_index":549,"t":{"23":{"position":[[395,5]]},"63":{"position":[[340,5]]},"71":{"position":[[817,5]]},"73":{"position":[[1173,5]]}}}],["greater",{"_index":515,"t":{"19":{"position":[[1893,7]]}}}],["greatly",{"_index":1137,"t":{"91":{"position":[[520,7]]}}}],["ground",{"_index":1107,"t":{"87":{"position":[[95,6]]}}}],["groups",{"_index":620,"t":{"25":{"position":[[731,6]]},"85":{"position":[[251,6]]}}}],["grow",{"_index":826,"t":{"27":{"position":[[73,4]]},"95":{"position":[[405,4]]}}}],["growth",{"_index":899,"t":{"67":{"position":[[170,6]]}}}],["guarantee",{"_index":563,"t":{"23":{"position":[[1252,9]]}}}],["guidance",{"_index":774,"t":{"25":{"position":[[4035,8]]}}}],["guide",{"_index":523,"t":{"19":{"position":[[2133,5]]},"25":{"position":[[4120,6]]}}}],["guides",{"_index":907,"t":{"67":{"position":[[449,6]]}}}],["guiding",{"_index":329,"t":{"9":{"position":[[817,7]]}}}],["handful",{"_index":78,"t":{"5":{"position":[[385,7]]}}}],["handle",{"_index":1042,"t":{"79":{"position":[[276,6]]}}}],["handled",{"_index":644,"t":{"25":{"position":[[1176,7]]}}}],["handling",{"_index":1142,"t":{"93":{"position":[[380,9]]}}}],["happens",{"_index":267,"t":{"7":{"position":[[2081,7]]}}}],["hard",{"_index":423,"t":{"19":{"position":[[5,4]]},"27":{"position":[[426,4]]}}}],["hardlightblend",{"_index":689,"t":{"25":{"position":[[2212,15]]}}}],["hardmixblend",{"_index":690,"t":{"25":{"position":[[2228,13]]}}}],["hardware",{"_index":628,"t":{"25":{"position":[[848,8]]}}}],["having",{"_index":1089,"t":{"85":{"position":[[512,6]]}}}],["heartfelt",{"_index":837,"t":{"27":{"position":[[289,9]]}}}],["height:100",{"_index":671,"t":{"25":{"position":[[1897,11]]}}}],["heights",{"_index":354,"t":{"11":{"position":[[331,8]]},"17":{"position":[[595,8]]}}}],["hello",{"_index":806,"t":{"25":{"position":[[4673,6],[5022,6]]}}}],["help",{"_index":857,"t":{"27":{"position":[[786,5]]},"63":{"position":[[355,4]]},"75":{"position":[[335,4],[816,4]]},"81":{"position":[[84,4],[291,4],[468,4],[1066,4]]}}}],["here",{"_index":532,"t":{"21":{"position":[[33,4]]},"23":{"position":[[500,5]]},"27":{"position":[[341,5],[510,4]]}}}],["high",{"_index":142,"t":{"7":{"position":[[49,4]]},"81":{"position":[[901,4]]},"85":{"position":[[1123,4]]}}}],["highlights",{"_index":539,"t":{"23":{"position":[[100,11]]}}}],["highly",{"_index":967,"t":{"73":{"position":[[332,6]]}}}],["history",{"_index":102,"t":{"5":{"position":[[721,7]]}}}],["hood",{"_index":559,"t":{"23":{"position":[[1139,4]]}}}],["hopefully",{"_index":945,"t":{"71":{"position":[[688,9]]}}}],["html",{"_index":723,"t":{"25":{"position":[[2852,4]]}}}],["htmltext",{"_index":782,"t":{"25":{"position":[[4287,8]]}}}],["ideal",{"_index":631,"t":{"25":{"position":[[877,5]]}}}],["ideas",{"_index":911,"t":{"67":{"position":[[561,5]]},"85":{"position":[[1104,5]]}}}],["identical",{"_index":798,"t":{"25":{"position":[[4518,9]]}}}],["identifying",{"_index":603,"t":{"25":{"position":[[99,11]]}}}],["im",{"_index":807,"t":{"25":{"position":[[4680,2],[5029,2]]}}}],["images",{"_index":1014,"t":{"75":{"position":[[537,6],[776,7]]}}}],["immediately",{"_index":93,"t":{"5":{"position":[[605,11]]}}}],["implemented",{"_index":31,"t":{"3":{"position":[[336,11]]},"23":{"position":[[1034,11]]}}}],["import",{"_index":365,"t":{"13":{"position":[[177,6]]},"23":{"position":[[1799,6],[1812,6],[1965,6],[2004,6],[2051,6]]},"25":{"position":[[445,6],[2577,6]]}}}],["important",{"_index":562,"t":{"23":{"position":[[1199,9]]},"25":{"position":[[2440,9]]},"75":{"position":[[73,9]]}}}],["imported",{"_index":592,"t":{"23":{"position":[[1950,9]]}}}],["improve",{"_index":873,"t":{"63":{"position":[[456,7]]},"67":{"position":[[577,7]]},"75":{"position":[[604,7]]},"87":{"position":[[700,7]]}}}],["improved",{"_index":564,"t":{"23":{"position":[[1262,8]]},"75":{"position":[[904,8]]}}}],["improvement",{"_index":54,"t":{"5":{"position":[[53,11]]},"19":{"position":[[569,12]]},"87":{"position":[[345,11]]}}}],["improvements",{"_index":19,"t":{"3":{"position":[[196,12]]},"7":{"position":[[1251,13],[1981,12]]},"9":{"position":[[333,12]]},"19":{"position":[[2023,12]]},"23":{"position":[[343,12]]},"87":{"position":[[192,12]]}}}],["improving",{"_index":906,"t":{"67":{"position":[[405,9]]},"69":{"position":[[316,9]]}}}],["include",{"_index":711,"t":{"25":{"position":[[2631,7]]},"93":{"position":[[330,7]]}}}],["includes",{"_index":957,"t":{"73":{"position":[[127,8]]}}}],["including",{"_index":680,"t":{"25":{"position":[[2080,9]]},"75":{"position":[[259,9]]},"79":{"position":[[580,9]]}}}],["inclusion",{"_index":1113,"t":{"87":{"position":[[477,9]]}}}],["incorporate",{"_index":1134,"t":{"91":{"position":[[340,11]]}}}],["incredibly",{"_index":518,"t":{"19":{"position":[[1970,10]]},"83":{"position":[[122,10]]}}}],["individual",{"_index":1013,"t":{"75":{"position":[[526,10]]}}}],["information",{"_index":773,"t":{"25":{"position":[[3992,11]]},"91":{"position":[[471,11]]}}}],["inherited",{"_index":647,"t":{"25":{"position":[[1261,10]]}}}],["init",{"_index":368,"t":{"13":{"position":[[238,6]]}}}],["initial",{"_index":74,"t":{"5":{"position":[[317,7]]}}}],["initialization",{"_index":611,"t":{"25":{"position":[[336,14]]}}}],["initializing",{"_index":598,"t":{"25":{"position":[[5,12]]}}}],["initiative",{"_index":862,"t":{"63":{"position":[[65,10]]}}}],["inner",{"_index":1064,"t":{"81":{"position":[[199,5],[1022,5]]}}}],["innovate",{"_index":854,"t":{"27":{"position":[[630,8]]}}}],["innovation",{"_index":400,"t":{"17":{"position":[[143,11]]},"19":{"position":[[1084,10]]}}}],["input",{"_index":836,"t":{"27":{"position":[[253,5]]},"73":{"position":[[972,5]]},"93":{"position":[[374,5]]}}}],["inputs",{"_index":961,"t":{"73":{"position":[[201,7]]}}}],["insights",{"_index":456,"t":{"19":{"position":[[692,8]]},"27":{"position":[[454,8]]}}}],["inspiration",{"_index":950,"t":{"71":{"position":[[833,11]]}}}],["install",{"_index":359,"t":{"13":{"position":[[16,7],[54,7]]}}}],["installed",{"_index":787,"t":{"25":{"position":[[4364,9]]}}}],["instance",{"_index":725,"t":{"25":{"position":[[2884,9]]}}}],["instructions",{"_index":176,"t":{"7":{"position":[[562,13],[647,13],[966,13],[1029,12]]}}}],["integrated",{"_index":479,"t":{"19":{"position":[[1171,10]]},"25":{"position":[[4276,10]]},"73":{"position":[[284,10]]}}}],["integrates",{"_index":925,"t":{"69":{"position":[[532,10]]}}}],["integration",{"_index":408,"t":{"17":{"position":[[301,11]]},"19":{"position":[[330,12]]}}}],["intensive",{"_index":1117,"t":{"87":{"position":[[736,9],[1158,9]]}}}],["interface",{"_index":923,"t":{"69":{"position":[[434,9]]},"73":{"position":[[1154,9]]},"85":{"position":[[159,10],[352,9]]}}}],["interfaces",{"_index":956,"t":{"73":{"position":[[91,10],[766,10],[940,10]]}}}],["internal",{"_index":312,"t":{"9":{"position":[[590,8]]},"91":{"position":[[43,8]]}}}],["intricate",{"_index":769,"t":{"25":{"position":[[3738,9]]}}}],["introduce",{"_index":278,"t":{"9":{"position":[[154,9]]},"63":{"position":[[729,9]]}}}],["introduced",{"_index":621,"t":{"25":{"position":[[747,11],[3027,11],[3374,11]]}}}],["intuitive",{"_index":720,"t":{"25":{"position":[[2800,9]]},"85":{"position":[[131,9]]}}}],["invaluable",{"_index":340,"t":{"11":{"position":[[135,10]]},"27":{"position":[[467,10]]}}}],["invite",{"_index":343,"t":{"11":{"position":[[177,6]]},"15":{"position":[[25,6]]},"29":{"position":[[24,6]]}}}],["isrendergroup:true",{"_index":643,"t":{"25":{"position":[[1121,18]]}}}],["issues",{"_index":833,"t":{"27":{"position":[[221,6]]},"81":{"position":[[328,6]]}}}],["it's",{"_index":111,"t":{"5":{"position":[[853,4]]},"17":{"position":[[90,4],[469,4],[494,4]]},"19":{"position":[[0,4]]},"23":{"position":[[1194,4],[1577,4]]},"25":{"position":[[2435,4],[2512,4]]}}}],["iterate",{"_index":1097,"t":{"85":{"position":[[896,7]]}}}],["iteration",{"_index":15,"t":{"3":{"position":[[152,9]]}}}],["itself",{"_index":104,"t":{"5":{"position":[[742,6]]},"25":{"position":[[361,6],[1026,7]]}}}],["javascript",{"_index":411,"t":{"17":{"position":[[344,10]]},"19":{"position":[[1345,11],[1377,10]]}}}],["jaw",{"_index":414,"t":{"17":{"position":[[429,3]]}}}],["join",{"_index":374,"t":{"13":{"position":[[405,4]]},"15":{"position":[[163,4]]},"29":{"position":[[162,4]]}}}],["json",{"_index":1024,"t":{"75":{"position":[[795,5]]}}}],["jump",{"_index":778,"t":{"25":{"position":[[4138,4]]}}}],["jumpstart",{"_index":1030,"t":{"79":{"position":[[0,9],[358,9],[746,10]]}}}],["key",{"_index":180,"t":{"7":{"position":[[677,3]]},"9":{"position":[[14,3]]},"23":{"position":[[96,3]]},"27":{"position":[[708,3]]},"75":{"position":[[388,3]]},"81":{"position":[[413,3]]}}}],["killer",{"_index":17,"t":{"3":{"position":[[177,6]]}}}],["know",{"_index":828,"t":{"27":{"position":[[123,4]]},"67":{"position":[[608,5]]}}}],["lacked",{"_index":870,"t":{"63":{"position":[[420,6]]}}}],["landed",{"_index":395,"t":{"17":{"position":[[78,7]]}}}],["landscape",{"_index":430,"t":{"19":{"position":[[128,9]]}}}],["languages",{"_index":910,"t":{"67":{"position":[[534,10]]}}}],["large",{"_index":633,"t":{"25":{"position":[[898,5]]},"73":{"position":[[1222,5]]}}}],["later",{"_index":1136,"t":{"91":{"position":[[483,5]]}}}],["latest",{"_index":402,"t":{"17":{"position":[[190,6]]},"19":{"position":[[1122,6]]}}}],["launch",{"_index":75,"t":{"5":{"position":[[325,7]]},"63":{"position":[[31,6]]}}}],["layers",{"_index":468,"t":{"19":{"position":[[918,6]]}}}],["layout",{"_index":796,"t":{"25":{"position":[[4486,6],[4535,6]]},"71":{"position":[[640,6]]},"73":{"position":[[598,6],[840,6],[1010,7],[1253,6],[1334,6]]}}}],["layouts",{"_index":981,"t":{"73":{"position":[[717,7],[1063,7]]}}}],["leap",{"_index":217,"t":{"7":{"position":[[1286,4]]},"87":{"position":[[1022,4]]},"89":{"position":[[21,4]]}}}],["learn",{"_index":949,"t":{"71":{"position":[[753,5]]}}}],["lerna",{"_index":582,"t":{"23":{"position":[[1750,8]]}}}],["lessons",{"_index":498,"t":{"19":{"position":[[1581,8]]}}}],["let's",{"_index":419,"t":{"17":{"position":[[604,5]]},"27":{"position":[[612,5]]}}}],["level",{"_index":529,"t":{"19":{"position":[[2225,5]]},"25":{"position":[[2065,6]]}}}],["leverage",{"_index":123,"t":{"5":{"position":[[995,8]]}}}],["leveraged",{"_index":1108,"t":{"87":{"position":[[131,9]]}}}],["leveraging",{"_index":409,"t":{"17":{"position":[[326,10]]},"19":{"position":[[1327,10]]}}}],["lib",{"_index":712,"t":{"25":{"position":[[2651,4]]}}}],["libraries",{"_index":891,"t":{"65":{"position":[[205,9]]},"69":{"position":[[632,10]]},"71":{"position":[[475,9],[615,9]]},"73":{"position":[[903,9]]}}}],["library",{"_index":914,"t":{"69":{"position":[[27,7],[141,7],[288,7],[402,7],[524,7]]},"73":{"position":[[19,7],[119,7],[616,7],[676,7]]},"75":{"position":[[138,7],[214,7]]},"93":{"position":[[70,7]]}}}],["library's",{"_index":922,"t":{"69":{"position":[[330,9]]}}}],["license",{"_index":935,"t":{"71":{"position":[[187,8]]}}}],["life",{"_index":978,"t":{"73":{"position":[[643,4]]}}}],["lightenblend",{"_index":691,"t":{"25":{"position":[[2242,13]]}}}],["limitations",{"_index":567,"t":{"23":{"position":[[1344,11]]}}}],["limited",{"_index":750,"t":{"25":{"position":[[3396,7]]}}}],["limits",{"_index":843,"t":{"27":{"position":[[363,6]]}}}],["line",{"_index":1091,"t":{"85":{"position":[[537,4]]}}}],["linear",{"_index":751,"t":{"25":{"position":[[3407,6]]}}}],["linearburnblend",{"_index":692,"t":{"25":{"position":[[2256,16]]}}}],["lineardodgeblend",{"_index":693,"t":{"25":{"position":[[2273,17]]}}}],["linearlightblend",{"_index":694,"t":{"25":{"position":[[2291,17]]}}}],["links",{"_index":542,"t":{"23":{"position":[[184,5]]},"95":{"position":[[464,5]]}}}],["lists",{"_index":964,"t":{"73":{"position":[[223,6]]}}}],["little",{"_index":900,"t":{"67":{"position":[[197,6]]}}}],["load",{"_index":608,"t":{"25":{"position":[[202,4]]}}}],["loaded",{"_index":606,"t":{"25":{"position":[[171,6]]}}}],["loading",{"_index":441,"t":{"19":{"position":[[312,7]]},"25":{"position":[[115,7],[268,7]]},"75":{"position":[[865,7]]},"93":{"position":[[396,7]]}}}],["long",{"_index":896,"t":{"67":{"position":[[152,4]]},"83":{"position":[[21,4]]},"91":{"position":[[400,4]]}}}],["longer",{"_index":1036,"t":{"79":{"position":[[159,6]]},"91":{"position":[[285,6]]}}}],["longevity",{"_index":471,"t":{"19":{"position":[[963,10]]}}}],["look",{"_index":993,"t":{"73":{"position":[[1168,4]]},"89":{"position":[[62,4]]},"95":{"position":[[116,4],[363,4]]}}}],["looking",{"_index":509,"t":{"19":{"position":[[1771,8]]},"71":{"position":[[860,7]]},"87":{"position":[[953,7]]}}}],["loop",{"_index":181,"t":{"7":{"position":[[697,4]]},"15":{"position":[[16,5]]},"23":{"position":[[437,4]]},"29":{"position":[[15,5]]}}}],["lot",{"_index":1147,"t":{"95":{"position":[[15,3],[109,3]]}}}],["luminosityblend",{"_index":695,"t":{"25":{"position":[[2309,16]]}}}],["made",{"_index":39,"t":{"3":{"position":[[472,5]]},"87":{"position":[[816,4]]}}}],["mainly",{"_index":547,"t":{"23":{"position":[[371,6]]}}}],["maintain",{"_index":872,"t":{"63":{"position":[[443,8]]}}}],["maintenance",{"_index":921,"t":{"69":{"position":[[269,11]]}}}],["major",{"_index":437,"t":{"19":{"position":[[271,5]]},"83":{"position":[[72,5]]},"87":{"position":[[27,5],[577,5],[1016,5]]}}}],["make",{"_index":136,"t":{"5":{"position":[[1150,4]]},"7":{"position":[[270,4]]},"17":{"position":[[610,4]]},"19":{"position":[[1496,4]]},"23":{"position":[[409,4]]},"25":{"position":[[1448,4],[1512,4],[2618,4]]},"27":{"position":[[262,4]]},"63":{"position":[[126,4]]},"73":{"position":[[633,4]]},"75":{"position":[[154,4]]},"77":{"position":[[39,4]]},"79":{"position":[[635,4]]},"81":{"position":[[151,4],[739,4],[862,4]]},"85":{"position":[[40,4]]},"87":{"position":[[187,4]]},"93":{"position":[[233,4]]}}}],["makes",{"_index":924,"t":{"69":{"position":[[449,5]]},"85":{"position":[[870,5],[1043,5]]}}}],["making",{"_index":316,"t":{"9":{"position":[[638,6]]},"17":{"position":[[225,6]]},"19":{"position":[[1914,6]]},"25":{"position":[[4567,6]]},"27":{"position":[[581,6]]},"85":{"position":[[659,6]]},"91":{"position":[[431,6]]},"95":{"position":[[251,6]]}}}],["manage",{"_index":1008,"t":{"75":{"position":[[351,6]]}}}],["management",{"_index":1002,"t":{"75":{"position":[[56,10]]},"93":{"position":[[408,11],[426,11]]}}}],["manpower",{"_index":871,"t":{"63":{"position":[[431,8]]}}}],["many",{"_index":281,"t":{"9":{"position":[[213,4]]},"25":{"position":[[3119,4]]},"63":{"position":[[335,4]]},"75":{"position":[[1026,4]]},"87":{"position":[[173,4]]},"93":{"position":[[206,4]]}}}],["market",{"_index":110,"t":{"5":{"position":[[836,7]]}}}],["masks",{"_index":572,"t":{"23":{"position":[[1451,6]]}}}],["match",{"_index":939,"t":{"71":{"position":[[337,5]]}}}],["matter",{"_index":112,"t":{"5":{"position":[[865,6]]}}}],["means",{"_index":546,"t":{"23":{"position":[[287,5],[1855,5]]},"25":{"position":[[1309,5],[4881,5]]},"73":{"position":[[745,5],[1131,5]]},"85":{"position":[[443,5]]}}}],["media",{"_index":379,"t":{"15":{"position":[[77,6]]},"29":{"position":[[76,6]]}}}],["memory",{"_index":795,"t":{"25":{"position":[[4474,7]]}}}],["mention",{"_index":703,"t":{"25":{"position":[[2453,7]]}}}],["mentioned",{"_index":1153,"t":{"95":{"position":[[470,9]]}}}],["mesh",{"_index":764,"t":{"25":{"position":[[3649,4],[3927,4],[3938,6]]}}}],["method",{"_index":67,"t":{"5":{"position":[[221,6]]}}}],["methodology",{"_index":323,"t":{"9":{"position":[[742,11]]}}}],["migration",{"_index":522,"t":{"19":{"position":[[2123,9]]},"21":{"position":[[38,9]]},"25":{"position":[[4110,9]]}}}],["minify",{"_index":1023,"t":{"75":{"position":[[788,6]]}}}],["minimize",{"_index":605,"t":{"25":{"position":[[154,8]]}}}],["minutes",{"_index":1057,"t":{"79":{"position":[[821,7]]}}}],["mipmaps",{"_index":1017,"t":{"75":{"position":[[686,8]]}}}],["miss",{"_index":303,"t":{"9":{"position":[[473,4]]}}}],["mit",{"_index":934,"t":{"71":{"position":[[183,3]]}}}],["mix",{"_index":1132,"t":{"91":{"position":[[204,3]]}}}],["mobile",{"_index":995,"t":{"73":{"position":[[1204,6]]}}}],["mode",{"_index":657,"t":{"25":{"position":[[1553,4]]}}}],["modern",{"_index":410,"t":{"17":{"position":[[337,6]]},"19":{"position":[[1338,6]]},"23":{"position":[[1527,6]]}}}],["modes",{"_index":574,"t":{"23":{"position":[[1468,6]]},"25":{"position":[[1241,5],[1417,6],[2608,6]]}}}],["modifications",{"_index":320,"t":{"9":{"position":[[702,14]]}}}],["months",{"_index":879,"t":{"63":{"position":[[638,7]]},"95":{"position":[[148,7]]}}}],["monumental",{"_index":37,"t":{"3":{"position":[[450,10]]}}}],["more",{"_index":61,"t":{"5":{"position":[[163,4]]},"9":{"position":[[397,4],[652,4]]},"15":{"position":[[109,4]]},"17":{"position":[[243,4],[625,4]]},"19":{"position":[[1516,4]]},"23":{"position":[[39,4],[118,4],[416,4],[1339,4],[1522,4],[1745,4]]},"25":{"position":[[2795,4],[3438,4],[3987,4]]},"29":{"position":[[108,4]]},"63":{"position":[[654,4]]},"67":{"position":[[444,4]]},"71":{"position":[[531,4]]},"75":{"position":[[986,4]]},"79":{"position":[[619,5]]},"81":{"position":[[1113,4]]},"85":{"position":[[282,4],[432,5]]},"87":{"position":[[305,4],[1083,4]]},"91":{"position":[[466,4],[582,4]]},"93":{"position":[[266,4],[466,5]]},"95":{"position":[[505,4]]}}}],["moved",{"_index":186,"t":{"7":{"position":[[804,6]]}}}],["moves",{"_index":638,"t":{"25":{"position":[[971,5]]}}}],["moving",{"_index":231,"t":{"7":{"position":[[1500,6],[1556,6]]},"23":{"position":[[689,6],[745,6]]},"25":{"position":[[1009,6]]}}}],["much",{"_index":308,"t":{"9":{"position":[[534,4]]},"23":{"position":[[1873,4]]},"25":{"position":[[1272,4]]},"67":{"position":[[226,4]]},"87":{"position":[[1067,4]]}}}],["multi",{"_index":1100,"t":{"85":{"position":[[1000,5]]}}}],["multiple",{"_index":737,"t":{"25":{"position":[[3181,8]]},"67":{"position":[[280,8]]},"81":{"position":[[596,8]]}}}],["mycontainer.blendmode",{"_index":715,"t":{"25":{"position":[[2678,21]]}}}],["mytext",{"_index":804,"t":{"25":{"position":[[4641,6],[4996,6]]}}}],["navigating",{"_index":632,"t":{"25":{"position":[[887,10]]}}}],["naïve",{"_index":152,"t":{"7":{"position":[[209,7]]}}}],["nearing",{"_index":887,"t":{"65":{"position":[[116,7]]}}}],["necessary",{"_index":604,"t":{"25":{"position":[[127,9]]}}}],["need",{"_index":612,"t":{"25":{"position":[[402,4],[1657,4]]},"67":{"position":[[337,4]]},"79":{"position":[[166,4]]},"91":{"position":[[292,4]]}}}],["needing",{"_index":127,"t":{"5":{"position":[[1042,7]]}}}],["needs",{"_index":552,"t":{"23":{"position":[[468,5]]},"25":{"position":[[4628,6]]},"73":{"position":[[448,6]]}}}],["negationblend",{"_index":696,"t":{"25":{"position":[[2326,14]]}}}],["net",{"_index":214,"t":{"7":{"position":[[1231,3]]}}}],["new",{"_index":36,"t":{"3":{"position":[[419,3]]},"5":{"position":[[142,3],[357,3]]},"9":{"position":[[178,3],[462,4]]},"13":{"position":[[144,3]]},"19":{"position":[[2040,3]]},"21":{"position":[[4,3]]},"23":{"position":[[209,3],[1572,4],[1719,3],[2046,4]]},"25":{"position":[[516,3],[1105,3],[1212,3],[1676,3],[3474,3],[3716,3],[3791,3],[3934,3],[4650,3],[5005,3]]},"65":{"position":[[16,3],[191,3]]},"67":{"position":[[84,3],[301,3]]},"69":{"position":[[384,3]]},"71":{"position":[[23,3]]},"73":{"position":[[15,3]]},"75":{"position":[[124,3],[454,3],[958,3]]},"79":{"position":[[15,3],[99,3],[784,3]]},"81":{"position":[[698,3]]},"85":{"position":[[16,3]]},"87":{"position":[[254,3],[533,3]]},"89":{"position":[[31,3]]},"93":{"position":[[66,3]]},"95":{"position":[[42,3],[331,3]]}}}],["newcomer",{"_index":50,"t":{"5":{"position":[[4,8]]}}}],["news",{"_index":1148,"t":{"95":{"position":[[31,4]]}}}],["next",{"_index":528,"t":{"19":{"position":[[2220,4]]},"25":{"position":[[2060,4]]},"63":{"position":[[630,4]]},"69":{"position":[[0,4]]},"73":{"position":[[1312,4]]},"87":{"position":[[22,4]]}}}],["note",{"_index":306,"t":{"9":{"position":[[510,5]]},"23":{"position":[[1212,4]]}}}],["notes",{"_index":304,"t":{"9":{"position":[[490,6]]}}}],["nothing",{"_index":185,"t":{"7":{"position":[[792,7]]}}}],["now",{"_index":100,"t":{"5":{"position":[[687,3]]},"11":{"position":[[45,3]]},"19":{"position":[[343,4]]},"23":{"position":[[1769,3],[1864,3]]},"25":{"position":[[46,3],[1172,3],[1231,3],[1323,3],[3162,3],[4333,3],[4562,4],[4821,3],[4966,3]]},"27":{"position":[[116,3]]},"71":{"position":[[8,3]]},"91":{"position":[[19,4],[114,3]]}}}],["npm",{"_index":358,"t":{"13":{"position":[[4,3],[50,3]]}}}],["number",{"_index":259,"t":{"7":{"position":[[1899,6]]}}}],["numbers",{"_index":248,"t":{"7":{"position":[[1690,7],[1938,7]]},"23":{"position":[[492,7],[879,7]]}}}],["numerous",{"_index":535,"t":{"23":{"position":[[10,8],[1411,8]]}}}],["object",{"_index":490,"t":{"19":{"position":[[1460,6]]}}}],["objects",{"_index":738,"t":{"25":{"position":[[3199,8]]},"81":{"position":[[605,7],[793,8]]}}}],["odie",{"_index":1128,"t":{"91":{"position":[[69,4]]}}}],["offer",{"_index":2,"t":{"3":{"position":[[18,5]]},"23":{"position":[[1486,5]]},"93":{"position":[[200,5]]}}}],["offers",{"_index":52,"t":{"5":{"position":[[20,6]]}}}],["old",{"_index":593,"t":{"23":{"position":[[1960,4]]}}}],["one",{"_index":177,"t":{"7":{"position":[[608,3]]},"17":{"position":[[647,3]]},"23":{"position":[[1778,3],[1795,3]]},"25":{"position":[[211,3],[2672,5],[3088,3]]},"67":{"position":[[345,3]]},"81":{"position":[[402,3]]},"85":{"position":[[300,3]]},"87":{"position":[[423,3]]}}}],["open",{"_index":426,"t":{"19":{"position":[[54,4]]},"21":{"position":[[57,4]]},"71":{"position":[[53,4],[90,4],[672,4]]},"73":{"position":[[493,4]]},"91":{"position":[[130,4]]}}}],["opening",{"_index":767,"t":{"25":{"position":[[3705,7]]}}}],["operates",{"_index":150,"t":{"7":{"position":[[186,8]]}}}],["operations",{"_index":736,"t":{"25":{"position":[[3061,11]]}}}],["opportunity",{"_index":276,"t":{"9":{"position":[[119,11]]}}}],["optimal",{"_index":331,"t":{"9":{"position":[[837,7]]}}}],["optimizations",{"_index":1110,"t":{"87":{"position":[[209,13]]}}}],["optimize",{"_index":145,"t":{"7":{"position":[[121,8]]},"75":{"position":[[832,8]]},"81":{"position":[[225,8],[570,8],[767,8],[1082,8]]},"87":{"position":[[845,8]]}}}],["optimizing",{"_index":188,"t":{"7":{"position":[[832,10]]}}}],["option",{"_index":1119,"t":{"87":{"position":[[931,6]]}}}],["options",{"_index":492,"t":{"19":{"position":[[1485,7]]},"25":{"position":[[582,7]]},"85":{"position":[[592,7]]}}}],["organic",{"_index":898,"t":{"67":{"position":[[162,7]]}}}],["out",{"_index":486,"t":{"19":{"position":[[1322,4]]},"23":{"position":[[484,3]]},"27":{"position":[[546,3]]},"73":{"position":[[540,3]]},"75":{"position":[[1132,3]]},"95":{"position":[[449,3]]}}}],["outfit",{"_index":811,"t":{"25":{"position":[[4756,9],[5107,9]]}}}],["outside",{"_index":1125,"t":{"89":{"position":[[94,7]]}}}],["over",{"_index":24,"t":{"3":{"position":[[265,4]]},"5":{"position":[[65,4]]},"19":{"position":[[582,4]]},"23":{"position":[[1283,4],[1611,4]]},"63":{"position":[[621,4]]},"65":{"position":[[84,4]]},"67":{"position":[[177,4]]},"69":{"position":[[264,4]]},"87":{"position":[[168,4]]}}}],["overall",{"_index":1074,"t":{"81":{"position":[[802,8]]},"87":{"position":[[984,8]]}}}],["overengineered",{"_index":508,"t":{"19":{"position":[[1744,14]]}}}],["overhaul",{"_index":271,"t":{"9":{"position":[[38,8]]}}}],["overhauled",{"_index":436,"t":{"19":{"position":[[260,10]]}}}],["overhead",{"_index":190,"t":{"7":{"position":[[857,9],[996,8]]}}}],["overlayblend",{"_index":697,"t":{"25":{"position":[[2341,13]]}}}],["oversights",{"_index":496,"t":{"19":{"position":[[1547,11]]}}}],["overuse",{"_index":706,"t":{"25":{"position":[[2534,7]]}}}],["overview",{"_index":300,"t":{"9":{"position":[[443,8]]}}}],["package",{"_index":581,"t":{"23":{"position":[[1723,7],[1782,7]]}}}],["packed",{"_index":16,"t":{"3":{"position":[[165,6]]}}}],["panning",{"_index":636,"t":{"25":{"position":[[926,7]]}}}],["paradigm",{"_index":481,"t":{"19":{"position":[[1252,9]]},"23":{"position":[[1120,8]]}}}],["parameters",{"_index":257,"t":{"7":{"position":[[1863,10]]}}}],["parcel",{"_index":1050,"t":{"79":{"position":[[599,7]]}}}],["part",{"_index":425,"t":{"19":{"position":[[42,4]]},"75":{"position":[[83,4]]}}}],["particularly",{"_index":505,"t":{"19":{"position":[[1709,12]]},"25":{"position":[[3556,12]]}}}],["parts",{"_index":438,"t":{"19":{"position":[[277,5]]}}}],["party",{"_index":265,"t":{"7":{"position":[[2058,5]]},"69":{"position":[[626,5]]}}}],["past",{"_index":495,"t":{"19":{"position":[[1542,4],[1766,4]]}}}],["path",{"_index":770,"t":{"25":{"position":[[3784,4],[3864,5],[3911,5]]}}}],["paths",{"_index":762,"t":{"25":{"position":[[3609,5]]}}}],["patrick",{"_index":918,"t":{"69":{"position":[[160,7]]}}}],["perfect",{"_index":335,"t":{"11":{"position":[[56,7]]},"27":{"position":[[144,8]]}}}],["performance",{"_index":18,"t":{"3":{"position":[[184,11]]},"5":{"position":[[41,11]]},"7":{"position":[[54,11],[717,11],[1274,11]]},"9":{"position":[[52,11]]},"19":{"position":[[1809,12],[1901,12]]},"23":{"position":[[213,11],[234,11],[1271,11],[1499,11]]},"25":{"position":[[1074,12],[4236,11]]},"69":{"position":[[340,12]]},"75":{"position":[[616,11],[887,12]]},"81":{"position":[[316,11],[906,12]]},"87":{"position":[[370,11],[712,11]]}}}],["phase",{"_index":889,"t":{"65":{"position":[[135,5]]},"75":{"position":[[13,5]]},"77":{"position":[[0,5]]},"83":{"position":[[0,5]]},"89":{"position":[[0,5]]}}}],["phaser",{"_index":1007,"t":{"75":{"position":[[290,7]]}}}],["phases",{"_index":485,"t":{"19":{"position":[[1315,6]]},"65":{"position":[[77,6]]}}}],["photoshop",{"_index":677,"t":{"25":{"position":[[1990,9]]}}}],["physics",{"_index":1141,"t":{"93":{"position":[[350,7]]}}}],["pick",{"_index":714,"t":{"25":{"position":[[2667,4]]}}}],["picture",{"_index":461,"t":{"19":{"position":[[786,8]]}}}],["pinlightblend",{"_index":698,"t":{"25":{"position":[[2355,14]]}}}],["pipeline",{"_index":49,"t":{"3":{"position":[[566,8]]}}}],["pixi",{"_index":617,"t":{"25":{"position":[[672,4]]},"69":{"position":[[136,4]]}}}],["pixi(el",{"_index":422,"t":{"17":{"position":[[651,8]]}}}],["pixi.js",{"_index":366,"t":{"13":{"position":[[212,10]]},"23":{"position":[[1832,10],[2083,10]]},"25":{"position":[[493,10]]}}}],["pixi.js/advanced",{"_index":710,"t":{"25":{"position":[[2584,17]]}}}],["pixi.js@prerelease",{"_index":360,"t":{"13":{"position":[[62,18]]}}}],["pixi/graphics",{"_index":597,"t":{"23":{"position":[[2028,17]]}}}],["pixi/sprite",{"_index":595,"t":{"23":{"position":[[1988,15]]}}}],["pixijs",{"_index":11,"t":{"3":{"position":[[103,6],[375,6]]},"5":{"position":[[587,6],[921,6]]},"7":{"position":[[0,6]]},"9":{"position":[[516,6],[645,6]]},"11":{"position":[[307,6],[381,6]]},"13":{"position":[[380,6]]},"15":{"position":[[60,6]]},"17":{"position":[[64,6],[174,6],[381,6],[553,6]]},"19":{"position":[[26,6],[175,7],[373,6],[800,6],[864,7],[1271,6],[1652,7],[1822,6],[1990,6],[2252,6]]},"23":{"position":[[1315,6],[1759,6]]},"27":{"position":[[3,6],[267,6]]},"29":{"position":[[59,6]]},"63":{"position":[[45,6],[115,6],[206,6],[405,7],[603,6]]},"65":{"position":[[219,7]]},"67":{"position":[[100,7],[238,6]]},"69":{"position":[[11,6],[62,6],[92,6],[211,6],[247,6],[512,7],[568,6]]},"71":{"position":[[45,7],[134,6],[273,6],[421,6],[493,6],[597,6],[633,6],[651,6],[665,6],[770,6],[900,7]]},"73":{"position":[[0,6],[107,7],[455,6],[569,6],[591,6],[731,7],[833,6],[863,6],[1003,6],[1246,6],[1327,6]]},"75":{"position":[[269,7]]},"77":{"position":[[67,6]]},"79":{"position":[[51,6],[103,6],[683,6],[788,6]]},"81":{"position":[[0,6],[112,6],[217,7],[433,6],[530,7],[714,6],[811,6],[955,7],[1040,7]]},"83":{"position":[[93,6]]},"85":{"position":[[114,7]]},"87":{"position":[[0,6],[79,6],[235,6],[269,6],[460,6],[795,6],[993,6]]},"89":{"position":[[49,6]]},"91":{"position":[[99,7],[262,6]]},"93":{"position":[[85,6],[306,6]]},"95":{"position":[[81,6],[200,6],[414,6],[525,6]]}}}],["pixijs's",{"_index":73,"t":{"5":{"position":[[308,8],[443,8]]},"27":{"position":[[715,8]]},"91":{"position":[[535,8]]}}}],["pixijs’s",{"_index":264,"t":{"7":{"position":[[2049,8]]}}}],["place",{"_index":421,"t":{"17":{"position":[[640,6]]},"67":{"position":[[349,5]]}}}],["plan",{"_index":90,"t":{"5":{"position":[[557,4]]}}}],["planned",{"_index":880,"t":{"63":{"position":[[677,8]]},"71":{"position":[[542,7]]},"81":{"position":[[53,7]]}}}],["planning",{"_index":905,"t":{"67":{"position":[[393,8]]},"91":{"position":[[118,8]]}}}],["plans",{"_index":1135,"t":{"91":{"position":[[451,5]]}}}],["play",{"_index":255,"t":{"7":{"position":[[1833,5]]},"25":{"position":[[4150,4]]},"71":{"position":[[1026,4],[1048,4]]}}}],["playco",{"_index":852,"t":{"27":{"position":[[553,6]]},"63":{"position":[[534,6]]},"91":{"position":[[24,7]]},"95":{"position":[[240,6]]}}}],["player",{"_index":1095,"t":{"85":{"position":[[778,6]]}}}],["playing",{"_index":23,"t":{"3":{"position":[[251,7]]}}}],["please",{"_index":254,"t":{"7":{"position":[[1819,6]]},"25":{"position":[[4090,6]]},"67":{"position":[[594,6]]}}}],["plethora",{"_index":279,"t":{"9":{"position":[[166,8]]}}}],["plugins",{"_index":1016,"t":{"75":{"position":[[666,7]]}}}],["point",{"_index":609,"t":{"25":{"position":[[259,5]]}}}],["popular",{"_index":867,"t":{"63":{"position":[[231,7]]},"79":{"position":[[461,7]]}}}],["position",{"_index":203,"t":{"7":{"position":[[1100,9]]}}}],["possibilities",{"_index":768,"t":{"25":{"position":[[3720,13]]}}}],["possible",{"_index":394,"t":{"17":{"position":[[43,8]]},"19":{"position":[[2182,9]]},"95":{"position":[[270,9]]}}}],["post",{"_index":283,"t":{"9":{"position":[[245,5]]},"23":{"position":[[76,5]]},"75":{"position":[[967,4]]}}}],["posts",{"_index":288,"t":{"9":{"position":[[280,5]]}}}],["potential",{"_index":708,"t":{"25":{"position":[[2556,9]]}}}],["potions",{"_index":953,"t":{"71":{"position":[[1040,7]]}}}],["powered",{"_index":69,"t":{"5":{"position":[[251,7]]}}}],["powerful",{"_index":406,"t":{"17":{"position":[[273,9]]},"19":{"position":[[1521,9]]},"81":{"position":[[838,8]]}}}],["powering",{"_index":735,"t":{"25":{"position":[[3039,8]]}}}],["practices",{"_index":332,"t":{"9":{"position":[[845,10]]},"81":{"position":[[262,10]]}}}],["precisely",{"_index":130,"t":{"5":{"position":[[1080,9]]}}}],["predecessor",{"_index":55,"t":{"5":{"position":[[74,12]]}}}],["prefer",{"_index":789,"t":{"25":{"position":[[4389,7]]}}}],["preferred",{"_index":1054,"t":{"79":{"position":[[710,9]]}}}],["preview",{"_index":4,"t":{"3":{"position":[[37,7]]}}}],["problem",{"_index":459,"t":{"19":{"position":[[747,8]]}}}],["process",{"_index":599,"t":{"25":{"position":[[35,7],[387,8],[1806,7]]},"75":{"position":[[164,7]]},"79":{"position":[[79,7]]},"81":{"position":[[507,7],[641,7]]}}}],["product",{"_index":1098,"t":{"85":{"position":[[940,7]]}}}],["professional",{"_index":938,"t":{"71":{"position":[[237,12]]}}}],["progress",{"_index":333,"t":{"11":{"position":[[6,8]]},"73":{"position":[[249,8]]},"91":{"position":[[438,8]]}}}],["project",{"_index":497,"t":{"19":{"position":[[1565,7]]},"71":{"position":[[912,7],[1005,8]]},"91":{"position":[[372,8],[410,8]]}}}],["projects",{"_index":298,"t":{"9":{"position":[[413,9]]},"17":{"position":[[576,8]]},"63":{"position":[[668,8]]},"65":{"position":[[20,8]]},"69":{"position":[[237,9]]},"83":{"position":[[31,8]]},"95":{"position":[[46,8]]}}}],["promise",{"_index":613,"t":{"25":{"position":[[417,7]]}}}],["proof",{"_index":134,"t":{"5":{"position":[[1130,5]]}}}],["propels",{"_index":57,"t":{"5":{"position":[[97,7]]}}}],["property",{"_index":662,"t":{"25":{"position":[[1693,8]]}}}],["proud",{"_index":519,"t":{"19":{"position":[[1981,5]]}}}],["provide",{"_index":937,"t":{"71":{"position":[[229,7]]},"75":{"position":[[498,7]]},"79":{"position":[[523,7]]},"93":{"position":[[130,7]]}}}],["provided",{"_index":521,"t":{"19":{"position":[[2112,8]]},"23":{"position":[[190,8]]}}}],["provides",{"_index":915,"t":{"69":{"position":[[40,8],[410,8]]},"75":{"position":[[301,8],[657,8],[977,8]]},"85":{"position":[[365,8],[562,8]]}}}],["providing",{"_index":60,"t":{"5":{"position":[[151,9]]},"81":{"position":[[966,9]]},"87":{"position":[[321,9]]}}}],["purpose",{"_index":936,"t":{"71":{"position":[[200,7]]}}}],["purposes",{"_index":601,"t":{"25":{"position":[[80,9]]}}}],["push",{"_index":392,"t":{"17":{"position":[[13,4]]},"27":{"position":[[643,4]]}}}],["put",{"_index":903,"t":{"67":{"position":[[318,3]]}}}],["puzzling",{"_index":952,"t":{"71":{"position":[[1031,8]]}}}],["q",{"_index":744,"t":{"25":{"position":[[3323,1]]}}}],["quality",{"_index":1103,"t":{"85":{"position":[[1128,7]]}}}],["quick",{"_index":831,"t":{"27":{"position":[[176,5]]}}}],["radio",{"_index":965,"t":{"73":{"position":[[230,5]]}}}],["range",{"_index":676,"t":{"25":{"position":[[1981,5]]},"73":{"position":[[138,5]]},"75":{"position":[[312,5]]},"85":{"position":[[573,5]]}}}],["ratios",{"_index":986,"t":{"73":{"position":[[825,7]]}}}],["re",{"_index":45,"t":{"3":{"position":[[524,2]]}}}],["react",{"_index":913,"t":{"69":{"position":[[18,6],[72,5],[99,5],[130,5],[231,5],[488,5]]},"71":{"position":[[658,6]]},"79":{"position":[[418,5]]}}}],["reactive",{"_index":551,"t":{"23":{"position":[[421,8]]}}}],["read",{"_index":27,"t":{"3":{"position":[[302,4]]}}}],["ready",{"_index":391,"t":{"17":{"position":[[4,5]]},"19":{"position":[[2196,5]]},"73":{"position":[[1299,5]]}}}],["real",{"_index":389,"t":{"15":{"position":[[227,4]]},"29":{"position":[[226,4]]},"73":{"position":[[548,4]]},"85":{"position":[[1012,4]]}}}],["reality",{"_index":853,"t":{"27":{"position":[[603,8]]}}}],["rearchitected",{"_index":500,"t":{"19":{"position":[[1619,13]]}}}],["reconstructing",{"_index":198,"t":{"7":{"position":[[1008,14]]}}}],["record",{"_index":1104,"t":{"85":{"position":[[1162,6]]}}}],["recreate",{"_index":1096,"t":{"85":{"position":[[822,8]]}}}],["rect",{"_index":771,"t":{"25":{"position":[[3810,6]]}}}],["rect(50",{"_index":730,"t":{"25":{"position":[[2961,9]]}}}],["rectangle",{"_index":728,"t":{"25":{"position":[[2916,9]]}}}],["red",{"_index":655,"t":{"25":{"position":[[1477,3],[1498,5],[4786,6]]}}}],["reduce",{"_index":1120,"t":{"87":{"position":[[964,6]]}}}],["reducing",{"_index":212,"t":{"7":{"position":[[1198,8]]},"19":{"position":[[1660,8]]},"23":{"position":[[1922,8]]}}}],["refer",{"_index":777,"t":{"25":{"position":[[4097,5]]}}}],["refine",{"_index":454,"t":{"19":{"position":[[654,7]]}}}],["refinements",{"_index":293,"t":{"9":{"position":[[354,12]]}}}],["reflection",{"_index":444,"t":{"19":{"position":[[454,10]]}}}],["regardless",{"_index":1053,"t":{"79":{"position":[[690,10]]}}}],["relatively",{"_index":576,"t":{"23":{"position":[[1561,10]]}}}],["release",{"_index":10,"t":{"3":{"position":[[92,7],[423,7]]},"9":{"position":[[482,7]]},"11":{"position":[[26,7]]},"19":{"position":[[432,7]]},"27":{"position":[[593,7]]},"65":{"position":[[163,7]]},"71":{"position":[[554,8]]},"87":{"position":[[33,7]]},"91":{"position":[[507,7]]}}}],["released",{"_index":929,"t":{"71":{"position":[[12,8],[164,8],[322,8]]},"81":{"position":[[67,8]]}}}],["releasing",{"_index":884,"t":{"65":{"position":[[54,9]]},"67":{"position":[[52,9]]},"75":{"position":[[946,9]]}}}],["relevant",{"_index":476,"t":{"19":{"position":[[1044,8]]}}}],["remain",{"_index":475,"t":{"19":{"position":[[1037,6]]}}}],["remains",{"_index":191,"t":{"7":{"position":[[894,7]]},"19":{"position":[[1278,7]]}}}],["remarkable",{"_index":297,"t":{"9":{"position":[[402,10]]}}}],["reminiscent",{"_index":72,"t":{"5":{"position":[[293,11]]}}}],["render",{"_index":164,"t":{"7":{"position":[[388,6]]},"23":{"position":[[430,6]]},"25":{"position":[[724,6],[1749,6]]}}}],["renderer",{"_index":153,"t":{"7":{"position":[[217,9],[2024,9]]},"13":{"position":[[125,8],[253,8],[344,8]]},"19":{"position":[[1229,8]]},"23":{"position":[[319,9],[1018,9]]},"25":{"position":[[20,9],[137,8],[606,8],[1837,9]]},"63":{"position":[[242,8]]},"87":{"position":[[880,9]]}}}],["renderers",{"_index":545,"t":{"23":{"position":[[271,10]]}}}],["rendering",{"_index":48,"t":{"3":{"position":[[556,9]]},"5":{"position":[[232,9],[502,9]]},"7":{"position":[[154,10],[624,9],[956,9],[1345,9],[1398,9]]},"19":{"position":[[1132,9],[2237,9]]},"23":{"position":[[534,9],[587,9],[1067,10],[1537,10]]},"25":{"position":[[1586,9],[2043,9]]},"63":{"position":[[290,9]]},"81":{"position":[[583,9],[780,9]]},"87":{"position":[[360,9]]},"89":{"position":[[117,10]]}}}],["rendertexture.create",{"_index":669,"t":{"25":{"position":[[1863,22]]}}}],["renowned",{"_index":513,"t":{"19":{"position":[[1840,8]]}}}],["repeating",{"_index":103,"t":{"5":{"position":[[732,9]]}}}],["repo",{"_index":253,"t":{"7":{"position":[[1814,4]]},"23":{"position":[[1002,4]]},"67":{"position":[[621,4]]},"69":{"position":[[650,4]]},"71":{"position":[[1021,4]]},"73":{"position":[[586,4],[1348,4]]},"75":{"position":[[1147,4],[1159,4]]}}}],["repository",{"_index":930,"t":{"71":{"position":[[27,10]]}}}],["represents",{"_index":1105,"t":{"87":{"position":[[46,10],[1003,10]]},"89":{"position":[[8,10]]}}}],["required",{"_index":794,"t":{"25":{"position":[[4454,9]]}}}],["resembling",{"_index":722,"t":{"25":{"position":[[2837,10]]}}}],["resizable",{"_index":990,"t":{"73":{"position":[[1053,9]]}}}],["resource",{"_index":947,"t":{"71":{"position":[[712,8]]}}}],["resources",{"_index":1068,"t":{"81":{"position":[[353,9]]},"95":{"position":[[345,10]]}}}],["respond",{"_index":989,"t":{"73":{"position":[[956,7]]}}}],["responses",{"_index":832,"t":{"27":{"position":[[182,9]]}}}],["responsive",{"_index":980,"t":{"73":{"position":[[706,10]]}}}],["rest",{"_index":321,"t":{"9":{"position":[[717,4]]}}}],["retains",{"_index":307,"t":{"9":{"position":[[526,7]]}}}],["return",{"_index":372,"t":{"13":{"position":[[319,6]]}}}],["reuse",{"_index":195,"t":{"7":{"position":[[937,5]]}}}],["revealed",{"_index":1078,"t":{"83":{"position":[[52,9]]}}}],["revisit",{"_index":463,"t":{"19":{"position":[[826,7]]}}}],["revisited",{"_index":143,"t":{"7":{"position":[[91,9]]}}}],["rewrite",{"_index":128,"t":{"5":{"position":[[1053,7]]},"87":{"position":[[68,7]]}}}],["rich",{"_index":561,"t":{"23":{"position":[[1176,4]]}}}],["ridiculously",{"_index":405,"t":{"17":{"position":[[260,12]]}}}],["right",{"_index":28,"t":{"3":{"position":[[312,6]]},"11":{"position":[[359,5]]},"79":{"position":[[848,5]]}}}],["robust",{"_index":63,"t":{"5":{"position":[[182,6]]},"9":{"position":[[657,6]]},"17":{"position":[[248,7]]},"19":{"position":[[1057,6]]}}}],["rollup",{"_index":1051,"t":{"79":{"position":[[607,7]]}}}],["room",{"_index":450,"t":{"19":{"position":[[560,4]]}}}],["root",{"_index":583,"t":{"23":{"position":[[1806,5]]}}}],["roughly",{"_index":108,"t":{"5":{"position":[[817,7]]}}}],["runtime",{"_index":1094,"t":{"85":{"position":[[770,7]]}}}],["same",{"_index":118,"t":{"5":{"position":[[948,4]]},"25":{"position":[[1402,4],[4840,4],[5164,4],[5228,4]]},"81":{"position":[[620,4]]}}}],["saturationblend",{"_index":699,"t":{"25":{"position":[[2370,16]]}}}],["saving",{"_index":209,"t":{"7":{"position":[[1169,6]]},"25":{"position":[[4464,6]]}}}],["scenarios",{"_index":565,"t":{"23":{"position":[[1301,10]]}}}],["scene",{"_index":155,"t":{"7":{"position":[[254,5],[324,5],[527,5],[587,5],[882,5],[1087,5],[1625,5]]},"23":{"position":[[814,5]]},"25":{"position":[[693,5]]}}}],["scenes",{"_index":569,"t":{"23":{"position":[[1399,6]]},"85":{"position":[[399,7],[492,6],[831,6]]}}}],["screen",{"_index":169,"t":{"7":{"position":[[444,7]]},"73":{"position":[[801,6],[982,6],[1103,6]]}}}],["scroll",{"_index":962,"t":{"73":{"position":[[209,6]]}}}],["seamless",{"_index":407,"t":{"17":{"position":[[292,8]]}}}],["seamlessly",{"_index":478,"t":{"19":{"position":[[1160,10]]},"91":{"position":[[193,10]]}}}],["searchable",{"_index":904,"t":{"67":{"position":[[369,11]]}}}],["second",{"_index":160,"t":{"7":{"position":[[338,6],[867,7]]}}}],["secondly",{"_index":610,"t":{"25":{"position":[[322,9]]}}}],["see",{"_index":262,"t":{"7":{"position":[[1929,3]]},"9":{"position":[[790,3]]},"19":{"position":[[771,3]]},"27":{"position":[[66,3],[756,3]]},"95":{"position":[[297,3]]}}}],["seen",{"_index":433,"t":{"19":{"position":[[189,4]]},"65":{"position":[[154,4]]}}}],["seized",{"_index":275,"t":{"9":{"position":[[107,6]]}}}],["served",{"_index":446,"t":{"19":{"position":[[502,6]]}}}],["serves",{"_index":579,"t":{"23":{"position":[[1662,6]]},"25":{"position":[[69,6]]}}}],["set",{"_index":175,"t":{"7":{"position":[[555,3]]},"23":{"position":[[1148,3]]},"79":{"position":[[174,3]]}}}],["setting",{"_index":663,"t":{"25":{"position":[[1705,7]]},"79":{"position":[[216,7]]}}}],["settings",{"_index":371,"t":{"13":{"position":[[298,8]]}}}],["setup",{"_index":1043,"t":{"79":{"position":[[291,5]]}}}],["several",{"_index":882,"t":{"65":{"position":[[8,7],[174,7]]}}}],["shaking",{"_index":586,"t":{"23":{"position":[[1890,7]]}}}],["shapes",{"_index":760,"t":{"25":{"position":[[3532,7]]}}}],["shaping",{"_index":375,"t":{"13":{"position":[[416,7]]}}}],["share",{"_index":344,"t":{"11":{"position":[[191,5]]},"19":{"position":[[2013,5]]},"91":{"position":[[460,5]]}}}],["shared",{"_index":1146,"t":{"95":{"position":[[6,6]]}}}],["sharing",{"_index":759,"t":{"25":{"position":[[3521,7]]},"85":{"position":[[1085,7]]}}}],["sheets",{"_index":1015,"t":{"75":{"position":[[572,7]]}}}],["shift",{"_index":71,"t":{"5":{"position":[[284,5]]}}}],["shooter",{"_index":941,"t":{"71":{"position":[[363,7]]}}}],["shortcomings",{"_index":445,"t":{"19":{"position":[[472,12]]}}}],["shortly",{"_index":382,"t":{"15":{"position":[[131,8]]},"29":{"position":[[130,8]]},"77":{"position":[[19,7]]}}}],["shout",{"_index":851,"t":{"27":{"position":[[540,5]]}}}],["showcases",{"_index":933,"t":{"71":{"position":[[113,9]]}}}],["side",{"_index":568,"t":{"23":{"position":[[1367,4]]}}}],["significant",{"_index":32,"t":{"3":{"position":[[348,11]]},"9":{"position":[[578,11]]},"19":{"position":[[194,11]]},"87":{"position":[[333,11],[823,11]]}}}],["significantly",{"_index":487,"t":{"19":{"position":[[1393,13]]},"25":{"position":[[1052,13]]},"75":{"position":[[590,13]]},"87":{"position":[[686,13]]}}}],["similar",{"_index":578,"t":{"23":{"position":[[1622,7]]},"25":{"position":[[947,7],[1791,7],[3073,7]]},"79":{"position":[[376,7]]}}}],["simplified",{"_index":488,"t":{"19":{"position":[[1407,10]]},"25":{"position":[[1636,11],[2929,10]]}}}],["simplify",{"_index":1035,"t":{"79":{"position":[[66,8]]}}}],["simply",{"_index":326,"t":{"9":{"position":[[783,6]]}}}],["sincere",{"_index":1151,"t":{"95":{"position":[[178,7]]}}}],["single",{"_index":224,"t":{"7":{"position":[[1357,6],[1410,6]]},"9":{"position":[[238,6]]},"23":{"position":[[69,6],[546,6],[599,6]]},"25":{"position":[[3135,6]]},"85":{"position":[[530,6]]}}}],["site",{"_index":912,"t":{"67":{"position":[[589,4]]}}}],["sites",{"_index":902,"t":{"67":{"position":[[289,6]]}}}],["sitting",{"_index":1111,"t":{"87":{"position":[[408,7]]}}}],["situation",{"_index":227,"t":{"7":{"position":[[1429,9]]},"23":{"position":[[618,9]]}}}],["size",{"_index":591,"t":{"23":{"position":[[1938,4]]},"73":{"position":[[1110,4]]},"87":{"position":[[978,5]]}}}],["sizes",{"_index":984,"t":{"73":{"position":[[808,5]]}}}],["skipped",{"_index":207,"t":{"7":{"position":[[1152,8]]}}}],["sliders",{"_index":960,"t":{"73":{"position":[[187,8]]}}}],["slowdowns",{"_index":709,"t":{"25":{"position":[[2566,10]]}}}],["small",{"_index":994,"t":{"73":{"position":[[1198,5]]}}}],["smoother",{"_index":412,"t":{"17":{"position":[[359,8]]}}}],["social",{"_index":378,"t":{"15":{"position":[[70,6]]},"29":{"position":[[69,6]]}}}],["softlightblend",{"_index":700,"t":{"25":{"position":[[2387,15]]}}}],["solid",{"_index":580,"t":{"23":{"position":[[1674,5]]}}}],["solutions",{"_index":455,"t":{"19":{"position":[[678,9]]}}}],["somewhat",{"_index":151,"t":{"7":{"position":[[200,8]]}}}],["somewhere",{"_index":614,"t":{"25":{"position":[[434,10]]}}}],["soon",{"_index":65,"t":{"5":{"position":[[194,5]]},"75":{"position":[[938,4]]},"81":{"position":[[76,4]]}}}],["source",{"_index":427,"t":{"19":{"position":[[59,6]]},"71":{"position":[[95,6],[823,6]]},"73":{"position":[[498,6]]},"91":{"position":[[135,6]]}}}],["specific",{"_index":975,"t":{"73":{"position":[[439,8]]}}}],["speed",{"_index":141,"t":{"7":{"position":[[39,5]]},"19":{"position":[[1857,6]]},"23":{"position":[[337,5],[1605,5]]}}}],["spend",{"_index":225,"t":{"7":{"position":[[1381,5]]}}}],["spent",{"_index":223,"t":{"7":{"position":[[1328,5]]},"23":{"position":[[517,5],[570,5]]}}}],["sprite",{"_index":594,"t":{"23":{"position":[[1974,6],[2060,7]]},"75":{"position":[[565,6]]}}}],["sprites",{"_index":230,"t":{"7":{"position":[[1488,7],[1544,7],[1607,7]]},"23":{"position":[[677,7],[733,7],[796,7]]},"25":{"position":[[3124,8]]},"85":{"position":[[407,8],[613,8]]}}}],["stage",{"_index":339,"t":{"11":{"position":[[126,5]]}}}],["stand",{"_index":473,"t":{"19":{"position":[[992,5]]}}}],["standard",{"_index":783,"t":{"25":{"position":[[4307,9]]}}}],["standout",{"_index":83,"t":{"5":{"position":[[452,8]]},"85":{"position":[[311,8]]}}}],["start",{"_index":22,"t":{"3":{"position":[[245,5]]},"13":{"position":[[355,5]]},"79":{"position":[[833,5]]},"83":{"position":[[40,5]]}}}],["started",{"_index":1052,"t":{"79":{"position":[[670,7]]},"85":{"position":[[681,7]]}}}],["state",{"_index":1143,"t":{"93":{"position":[[420,5]]}}}],["static",{"_index":147,"t":{"7":{"position":[[135,6]]},"25":{"position":[[904,6]]}}}],["stay",{"_index":284,"t":{"9":{"position":[[251,4]]},"15":{"position":[[4,4]]},"29":{"position":[[3,4]]},"95":{"position":[[490,4]]}}}],["step",{"_index":204,"t":{"7":{"position":[[1126,4],[1131,5]]}}}],["stepped",{"_index":458,"t":{"19":{"position":[[725,7]]}}}],["steps",{"_index":825,"t":{"27":{"position":[[29,5]]}}}],["still",{"_index":998,"t":{"73":{"position":[[1263,5]]}}}],["stop",{"_index":274,"t":{"9":{"position":[[89,4]]}}}],["strategy",{"_index":120,"t":{"5":{"position":[[962,9]]}}}],["streamlining",{"_index":465,"t":{"19":{"position":[[872,12]]}}}],["strictly",{"_index":1126,"t":{"89":{"position":[[105,8]]}}}],["stroke",{"_index":819,"t":{"25":{"position":[[4946,6],[5191,7]]}}}],["strokes",{"_index":815,"t":{"25":{"position":[[4813,7],[4855,7],[5249,7]]}}}],["structure",{"_index":244,"t":{"7":{"position":[[1631,10]]},"23":{"position":[[820,10],[1731,10]]},"67":{"position":[[204,9]]}}}],["stuck",{"_index":1027,"t":{"75":{"position":[[1106,5]]}}}],["stuff",{"_index":584,"t":{"23":{"position":[[1819,7]]},"25":{"position":[[290,5]]}}}],["stunning",{"_index":1075,"t":{"81":{"position":[[928,8]]}}}],["style",{"_index":809,"t":{"25":{"position":[[4736,7],[5087,7]]}}}],["subsequent",{"_index":193,"t":{"7":{"position":[[915,10]]}}}],["substantial",{"_index":53,"t":{"5":{"position":[[29,11]]},"19":{"position":[[402,11]]}}}],["subtractblend",{"_index":701,"t":{"25":{"position":[[2403,14]]}}}],["such",{"_index":439,"t":{"19":{"position":[[298,4]]},"23":{"position":[[1434,4]]},"67":{"position":[[221,4]]},"71":{"position":[[485,4],[625,4]]},"73":{"position":[[158,4]]},"79":{"position":[[403,4]]}}}],["suffered",{"_index":895,"t":{"67":{"position":[[138,8]]}}}],["suited",{"_index":1122,"t":{"87":{"position":[[1120,6]]}}}],["supercharged",{"_index":401,"t":{"17":{"position":[[161,12]]}}}],["support",{"_index":674,"t":{"25":{"position":[[1962,7],[3246,7],[3357,7]]},"27":{"position":[[570,7]]},"69":{"position":[[372,7]]},"87":{"position":[[502,7],[782,8]]},"93":{"position":[[338,7]]},"95":{"position":[[393,7]]}}}],["supported",{"_index":106,"t":{"5":{"position":[[772,9],[910,10]]}}}],["sure",{"_index":157,"t":{"7":{"position":[[275,4]]},"23":{"position":[[165,4]]},"25":{"position":[[2623,4]]},"95":{"position":[[435,4]]}}}],["svg",{"_index":741,"t":{"25":{"position":[[3258,3]]}}}],["switch",{"_index":801,"t":{"25":{"position":[[4587,6]]},"91":{"position":[[300,6]]}}}],["synonymous",{"_index":140,"t":{"7":{"position":[[23,10]]}}}],["take",{"_index":679,"t":{"25":{"position":[[2033,4]]},"87":{"position":[[631,4]]}}}],["taken",{"_index":548,"t":{"23":{"position":[[389,5]]},"69":{"position":[[258,5]]}}}],["takes",{"_index":824,"t":{"27":{"position":[[13,5]]}}}],["team",{"_index":846,"t":{"27":{"position":[[411,4]]},"63":{"position":[[567,4]]},"79":{"position":[[58,4]]},"87":{"position":[[122,4],[802,4]]},"91":{"position":[[423,4]]}}}],["teams",{"_index":1102,"t":{"85":{"position":[[1061,5]]}}}],["technique",{"_index":1071,"t":{"81":{"position":[[552,9]]}}}],["technological",{"_index":403,"t":{"17":{"position":[[197,13]]}}}],["technology",{"_index":125,"t":{"5":{"position":[[1013,10]]},"19":{"position":[[1142,11]]}}}],["templates",{"_index":1048,"t":{"79":{"position":[[531,9]]}}}],["ten",{"_index":29,"t":{"3":{"position":[[319,3]]},"5":{"position":[[1167,3]]},"19":{"position":[[91,3]]},"63":{"position":[[664,3]]}}}],["term",{"_index":897,"t":{"67":{"position":[[157,4]]},"83":{"position":[[26,4]]},"91":{"position":[[405,4]]}}}],["territory",{"_index":1124,"t":{"89":{"position":[[35,9]]}}}],["test",{"_index":250,"t":{"7":{"position":[[1726,4]]},"19":{"position":[[1002,4]]},"23":{"position":[[914,4]]},"85":{"position":[[887,4]]}}}],["testing",{"_index":842,"t":{"27":{"position":[[351,7]]}}}],["text",{"_index":779,"t":{"25":{"position":[[4178,4],[4193,4],[4503,4],[4557,4],[4667,5],[4798,4],[4984,5],[5009,6],[5016,5],[5043,6]]},"73":{"position":[[196,4]]}}}],["texture",{"_index":659,"t":{"25":{"position":[[1601,7],[1756,7],[1853,7],[3092,7],[3955,8],[5139,8]]}}}],["texture.white",{"_index":772,"t":{"25":{"position":[[3964,14]]}}}],["textures",{"_index":510,"t":{"19":{"position":[[1788,11]]},"25":{"position":[[4898,9]]}}}],["thanks",{"_index":838,"t":{"27":{"position":[[299,6]]},"95":{"position":[[186,6]]}}}],["there's",{"_index":449,"t":{"19":{"position":[[545,7]]},"25":{"position":[[248,7]]},"95":{"position":[[99,7]]}}}],["thereby",{"_index":208,"t":{"7":{"position":[[1161,7]]}}}],["things",{"_index":172,"t":{"7":{"position":[[494,6]]},"25":{"position":[[677,6]]},"27":{"position":[[128,6]]}}}],["third",{"_index":201,"t":{"7":{"position":[[1058,6]]}}}],["those",{"_index":1131,"t":{"91":{"position":[[168,5]]}}}],["thoughts—the",{"_index":345,"t":{"11":{"position":[[202,12]]}}}],["three",{"_index":179,"t":{"7":{"position":[[671,5]]}}}],["threejs",{"_index":1006,"t":{"75":{"position":[[277,8]]}}}],["thrilled",{"_index":1,"t":{"3":{"position":[[6,8]]},"19":{"position":[[354,8]]},"93":{"position":[[16,8]]}}}],["through",{"_index":635,"t":{"25":{"position":[[918,7]]}}}],["time",{"_index":76,"t":{"5":{"position":[[341,5],[875,4]]},"7":{"position":[[345,4],[1323,4],[1376,4]]},"11":{"position":[[64,4]]},"15":{"position":[[232,4]]},"17":{"position":[[665,5]]},"19":{"position":[[110,5],[587,5],[1010,5]]},"23":{"position":[[512,4],[565,4],[1616,5]]},"29":{"position":[[231,4]]},"63":{"position":[[615,5]]},"85":{"position":[[1017,4],[1169,5]]}}}],["times",{"_index":1025,"t":{"75":{"position":[[873,6]]}}}],["tint",{"_index":650,"t":{"25":{"position":[[1334,4],[1387,4]]}}}],["tinted",{"_index":654,"t":{"25":{"position":[[1470,6]]}}}],["tints",{"_index":646,"t":{"25":{"position":[[1251,5]]}}}],["today",{"_index":99,"t":{"5":{"position":[[667,6]]},"13":{"position":[[395,5]]},"17":{"position":[[530,6]]},"75":{"position":[[1115,5]]}}}],["together",{"_index":351,"t":{"11":{"position":[[282,9]]},"27":{"position":[[679,9]]},"85":{"position":[[1075,9]]}}}],["tool",{"_index":1032,"t":{"79":{"position":[[23,4],[134,5],[266,4],[513,4]]},"81":{"position":[[138,4],[847,4]]}}}],["tooling",{"_index":1038,"t":{"79":{"position":[[193,7]]}}}],["tools",{"_index":868,"t":{"63":{"position":[[346,5],[470,6]]},"65":{"position":[[195,5]]},"79":{"position":[[397,5],[720,5]]},"81":{"position":[[11,5],[444,5],[725,5],[822,5]]},"85":{"position":[[582,5]]},"93":{"position":[[224,5]]},"95":{"position":[[335,5]]}}}],["toolset",{"_index":1077,"t":{"81":{"position":[[1053,7]]}}}],["top",{"_index":1130,"t":{"91":{"position":[[92,3]]}}}],["toward",{"_index":315,"t":{"9":{"position":[[631,6]]},"11":{"position":[[15,6]]}}}],["towards",{"_index":330,"t":{"9":{"position":[[829,7]]}}}],["traction",{"_index":96,"t":{"5":{"position":[[641,9]]}}}],["transform",{"_index":171,"t":{"7":{"position":[[476,9]]},"25":{"position":[[1159,9]]}}}],["transformations",{"_index":625,"t":{"25":{"position":[[804,16]]}}}],["transformed",{"_index":763,"t":{"25":{"position":[[3632,11]]}}}],["transforms",{"_index":158,"t":{"7":{"position":[[288,10]]},"25":{"position":[[1282,10]]}}}],["transition",{"_index":434,"t":{"19":{"position":[[224,10]]}}}],["translating",{"_index":909,"t":{"67":{"position":[[493,11]]}}}],["traverse",{"_index":154,"t":{"7":{"position":[[241,8],[311,8],[514,8]]}}}],["tree",{"_index":585,"t":{"23":{"position":[[1885,4]]}}}],["tremendously",{"_index":432,"t":{"19":{"position":[[150,13]]}}}],["tricks",{"_index":266,"t":{"7":{"position":[[2064,7]]}}}],["true",{"_index":627,"t":{"25":{"position":[[840,4],[1719,4]]}}}],["try",{"_index":251,"t":{"7":{"position":[[1744,3]]},"23":{"position":[[932,3]]}}}],["tuned",{"_index":285,"t":{"9":{"position":[[256,5]]},"95":{"position":[[495,5]]}}}],["tuning",{"_index":342,"t":{"11":{"position":[[155,6]]}}}],["tweak",{"_index":969,"t":{"73":{"position":[[369,5]]}}}],["tweening",{"_index":1145,"t":{"93":{"position":[[452,9]]}}}],["two",{"_index":40,"t":{"3":{"position":[[478,3]]},"9":{"position":[[10,3]]},"25":{"position":[[76,3],[4606,3]]},"71":{"position":[[312,3]]}}}],["typescript",{"_index":435,"t":{"19":{"position":[[238,11]]}}}],["ubiquitous",{"_index":82,"t":{"5":{"position":[[431,11]]}}}],["ugly—report",{"_index":348,"t":{"11":{"position":[[238,11]]}}}],["ui",{"_index":943,"t":{"71":{"position":[[500,2]]},"73":{"position":[[7,2],[462,2],[576,2],[870,3]]}}}],["unchanged",{"_index":192,"t":{"7":{"position":[[902,9]]}}}],["under",{"_index":558,"t":{"23":{"position":[[1129,5]]},"71":{"position":[[173,5]]},"73":{"position":[[1269,5]]}}}],["undergoing",{"_index":311,"t":{"9":{"position":[[567,10]]}}}],["undergone",{"_index":718,"t":{"25":{"position":[[2767,9]]}}}],["understand",{"_index":1063,"t":{"81":{"position":[[184,10],[484,10],[671,11]]}}}],["understanding",{"_index":1076,"t":{"81":{"position":[[1001,13]]}}}],["universally",{"_index":115,"t":{"5":{"position":[[898,11]]}}}],["universe",{"_index":861,"t":{"63":{"position":[[52,9]]},"95":{"position":[[532,9]]}}}],["unlocked",{"_index":514,"t":{"19":{"position":[[1879,8]]}}}],["unprecedented",{"_index":353,"t":{"11":{"position":[[317,13]]}}}],["unseen",{"_index":418,"t":{"17":{"position":[[588,6]]}}}],["unveil",{"_index":442,"t":{"19":{"position":[[366,6]]}}}],["unveiling",{"_index":380,"t":{"15":{"position":[[99,9]]},"29":{"position":[[98,9]]}}}],["up",{"_index":560,"t":{"23":{"position":[[1155,2]]},"25":{"position":[[3713,2]]},"67":{"position":[[6,2]]},"69":{"position":[[5,2]]},"79":{"position":[[178,2],[224,2]]},"87":{"position":[[102,3]]}}}],["upcoming",{"_index":286,"t":{"9":{"position":[[266,8]]},"95":{"position":[[139,8]]}}}],["update",{"_index":170,"t":{"7":{"position":[[465,6],[745,6]]},"17":{"position":[[486,7]]},"19":{"position":[[414,6]]}}}],["updates",{"_index":313,"t":{"9":{"position":[[599,8]]},"15":{"position":[[123,7]]},"19":{"position":[[206,8]]},"23":{"position":[[19,7],[452,7]]},"29":{"position":[[122,7]]},"95":{"position":[[59,7],[510,7]]}}}],["upfront",{"_index":788,"t":{"25":{"position":[[4374,7]]}}}],["upgraded",{"_index":780,"t":{"25":{"position":[[4207,8]]}}}],["upgrades",{"_index":618,"t":{"25":{"position":[[699,9],[2736,9],[4022,8],[4183,9]]}}}],["upload",{"_index":165,"t":{"7":{"position":[[395,6],[576,6],[1119,6]]}}}],["url",{"_index":258,"t":{"7":{"position":[[1881,3]]}}}],["usability",{"_index":272,"t":{"9":{"position":[[68,10]]},"25":{"position":[[4252,10]]}}}],["use",{"_index":219,"t":{"7":{"position":[[1306,3]]},"69":{"position":[[58,3],[430,3]]},"71":{"position":[[130,3],[269,3],[417,3],[465,3],[593,3],[766,3]]},"75":{"position":[[1009,3]]}}}],["used",{"_index":667,"t":{"25":{"position":[[1814,4],[3107,4]]},"69":{"position":[[199,4]]},"73":{"position":[[474,4]]},"75":{"position":[[234,4]]},"81":{"position":[[562,4]]}}}],["useful",{"_index":761,"t":{"25":{"position":[[3569,6]]},"75":{"position":[[1031,6]]}}}],["user",{"_index":317,"t":{"9":{"position":[[668,4]]},"25":{"position":[[233,4],[2814,4]]},"73":{"position":[[86,4],[967,4]]},"75":{"position":[[913,4]]},"85":{"position":[[145,4],[1006,5]]}}}],["users",{"_index":607,"t":{"25":{"position":[[187,6]]}}}],["using",{"_index":362,"t":{"13":{"position":[[134,5]]},"23":{"position":[[296,5]]},"25":{"position":[[241,6],[308,5],[3663,5]]},"71":{"position":[[894,5]]},"73":{"position":[[725,5]]}}}],["utilize",{"_index":624,"t":{"25":{"position":[[782,7]]}}}],["utilized",{"_index":489,"t":{"19":{"position":[[1437,8]]},"25":{"position":[[3169,8]]}}}],["v7",{"_index":149,"t":{"7":{"position":[[171,2],[227,2],[1439,2],[1461,2],[1758,2]]},"9":{"position":[[739,2]]},"19":{"position":[[488,3],[1960,3],[2170,2]]},"23":{"position":[[628,2],[650,2],[946,2]]},"87":{"position":[[394,2]]}}}],["v8",{"_index":12,"t":{"3":{"position":[[110,3],[578,3]]},"7":{"position":[[81,3],[452,2],[1446,2],[1468,2],[1771,2],[1793,2]]},"9":{"position":[[523,2]]},"11":{"position":[[100,3],[388,2]]},"13":{"position":[[81,2],[387,2]]},"17":{"position":[[71,2],[388,2],[560,2]]},"19":{"position":[[380,3],[807,3],[949,2],[986,2],[1501,2],[1595,3],[1869,3],[1997,2],[2259,3]]},"21":{"position":[[17,2]]},"23":{"position":[[249,2],[302,2],[635,2],[657,2],[959,2],[981,2]]},"25":{"position":[[4301,2]]},"27":{"position":[[10,2],[373,3]]},"87":{"position":[[7,2],[467,2],[1000,2]]}}}],["valuable",{"_index":946,"t":{"71":{"position":[[703,8]]}}}],["valuing",{"_index":835,"t":{"27":{"position":[[240,7]]}}}],["varying",{"_index":218,"t":{"7":{"position":[[1298,7]]}}}],["vendors",{"_index":1114,"t":{"87":{"position":[[591,8]]}}}],["version",{"_index":131,"t":{"5":{"position":[[1095,7]]},"13":{"position":[[33,7]]},"67":{"position":[[69,7]]},"87":{"position":[[258,7]]}}}],["via",{"_index":357,"t":{"13":{"position":[[0,3]]}}}],["vibrant",{"_index":384,"t":{"15":{"position":[[172,7]]},"29":{"position":[[171,7]]}}}],["views",{"_index":963,"t":{"73":{"position":[[216,6]]}}}],["vision",{"_index":469,"t":{"19":{"position":[[938,6]]}}}],["visual",{"_index":1085,"t":{"85":{"position":[[345,6]]}}}],["visualize",{"_index":1067,"t":{"81":{"position":[[339,9]]}}}],["visually",{"_index":753,"t":{"25":{"position":[[3443,8]]},"81":{"position":[[919,8]]},"85":{"position":[[971,8]]}}}],["vividlightblend",{"_index":702,"t":{"25":{"position":[[2418,16]]}}}],["vue",{"_index":1046,"t":{"79":{"position":[[438,4]]}}}],["wait—dive",{"_index":355,"t":{"11":{"position":[[349,9]]}}}],["want",{"_index":948,"t":{"71":{"position":[[745,4]]},"73":{"position":[[46,4]]},"75":{"position":[[1094,4]]},"91":{"position":[[185,4]]},"95":{"position":[[159,4]]}}}],["warning",{"_index":328,"t":{"9":{"position":[[808,8]]}}}],["way",{"_index":916,"t":{"69":{"position":[[51,3]]}}}],["ways",{"_index":818,"t":{"25":{"position":[[4924,4]]}}}],["we'll",{"_index":289,"t":{"9":{"position":[[292,5]]},"15":{"position":[[90,5]]},"29":{"position":[[89,5]]}}}],["we're",{"_index":0,"t":{"3":{"position":[[0,5],[222,5]]},"19":{"position":[[348,5],[1964,5]]},"27":{"position":[[51,5],[157,5],[739,5]]},"95":{"position":[[280,5]]}}}],["we've",{"_index":38,"t":{"3":{"position":[[461,5]]},"7":{"position":[[85,5]]},"9":{"position":[[101,5]]},"17":{"position":[[155,5]]},"19":{"position":[[183,5],[254,5],[593,5],[719,5],[1154,5],[1431,5],[1599,5],[1873,5],[2106,5]]},"23":{"position":[[1028,5]]},"95":{"position":[[0,5]]}}}],["web",{"_index":7,"t":{"3":{"position":[[65,3]]},"5":{"position":[[105,3],[274,4]]},"13":{"position":[[441,3]]},"17":{"position":[[59,4],[442,3],[516,3],[619,3]]},"23":{"position":[[1181,3]]},"27":{"position":[[666,3]]},"63":{"position":[[259,4]]}}}],["webgl",{"_index":56,"t":{"5":{"position":[[87,6],[347,5],[517,5],[628,5],[678,5]]},"7":{"position":[[1808,5],[2018,5]]},"13":{"position":[[328,5]]},"19":{"position":[[324,5],[1223,5],[1309,5]]},"23":{"position":[[313,5],[996,5],[1288,5],[1652,6]]},"25":{"position":[[284,5],[650,5]]}}}],["webgpu",{"_index":51,"t":{"5":{"position":[[13,6],[754,7]]},"7":{"position":[[1786,6],[2003,6]]},"13":{"position":[[337,6]]},"17":{"position":[[316,6]]},"19":{"position":[[1100,7],[1182,7]]},"23":{"position":[[974,6],[1011,6],[1048,6],[1222,6],[1475,6],[1551,6]]},"25":{"position":[[314,7],[354,6],[659,6]]},"87":{"position":[[514,7],[775,6]]}}}],["webpack",{"_index":1049,"t":{"79":{"position":[[590,8]]}}}],["website",{"_index":892,"t":{"67":{"position":[[88,7],[305,7]]}}}],["weeks",{"_index":999,"t":{"73":{"position":[[1321,5]]}}}],["well",{"_index":447,"t":{"19":{"position":[[512,5]]},"67":{"position":[[473,4]]},"73":{"position":[[853,4]]}}}],["what's",{"_index":301,"t":{"9":{"position":[[455,6]]},"17":{"position":[[36,6]]}}}],["wherever",{"_index":526,"t":{"19":{"position":[[2173,8]]}}}],["whilst",{"_index":555,"t":{"23":{"position":[[1078,6]]}}}],["whopping",{"_index":428,"t":{"19":{"position":[[82,8]]}}}],["wide",{"_index":675,"t":{"25":{"position":[[1976,4]]}}}],["widely",{"_index":920,"t":{"69":{"position":[[192,6]]}}}],["width:100",{"_index":670,"t":{"25":{"position":[[1886,10]]}}}],["width:3",{"_index":822,"t":{"25":{"position":[[5201,8]]}}}],["wished",{"_index":453,"t":{"19":{"position":[[638,6]]}}}],["without",{"_index":126,"t":{"5":{"position":[[1034,7]]},"27":{"position":[[515,7]]},"85":{"position":[[499,7]]}}}],["won't",{"_index":829,"t":{"27":{"position":[[135,5]]}}}],["work",{"_index":213,"t":{"7":{"position":[[1221,5]]},"27":{"position":[[431,5]]},"63":{"position":[[595,4]]},"77":{"position":[[57,4]]},"85":{"position":[[277,4],[1070,4]]}}}],["workflows",{"_index":1055,"t":{"79":{"position":[[730,10]]}}}],["working",{"_index":1139,"t":{"93":{"position":[[53,7]]}}}],["workings",{"_index":1065,"t":{"81":{"position":[[205,8],[1028,8]]}}}],["works",{"_index":883,"t":{"65":{"position":[[36,6]]},"73":{"position":[[847,5]]}}}],["work—you'll",{"_index":325,"t":{"9":{"position":[[771,11]]}}}],["world",{"_index":641,"t":{"25":{"position":[[1020,5]]},"27":{"position":[[44,6]]},"73":{"position":[[553,5]]}}}],["worlds",{"_index":634,"t":{"25":{"position":[[911,6]]}}}],["worry",{"_index":1039,"t":{"79":{"position":[[204,5]]}}}],["write",{"_index":1090,"t":{"85":{"position":[[522,5]]}}}],["x2",{"_index":1112,"t":{"87":{"position":[[419,3]]}}}],["year",{"_index":886,"t":{"65":{"position":[[93,5]]},"91":{"position":[[496,5]]}}}],["years",{"_index":138,"t":{"5":{"position":[[1171,5]]},"19":{"position":[[95,6]]},"63":{"position":[[199,6]]},"67":{"position":[[186,5]]},"87":{"position":[[178,5]]},"91":{"position":[[4,6]]}}}],["years!—we've",{"_index":30,"t":{"3":{"position":[[323,12]]}}}],["you'll",{"_index":1056,"t":{"79":{"position":[[757,6]]},"95":{"position":[[306,6]]}}}],["yourself",{"_index":252,"t":{"7":{"position":[[1748,9]]},"23":{"position":[[936,9]]}}}],["zooming",{"_index":637,"t":{"25":{"position":[[938,8]]}}}]],"pipeline":["stemmer"]}}] \ No newline at end of file +[{"documents":[{"i":1,"t":"","u":"/blog/archive","b":["Blog"]},{"i":2,"t":"Introducing the PixiJS Universe!","u":"/blog/pixi-universe","b":["Blog"]},{"i":36,"t":"PixiJS v8 Beta! 🎉","u":"/blog/pixi-v8-beta","b":["Blog"]},{"i":83,"t":"PixiJS v8 Launches! 🎉","u":"/blog/pixi-v8-launches","b":["Blog"]}],"index":{"version":"2.3.9","fields":["t"],"fieldVectors":[["t/1",[]],["t/2",[0,1.161,1,0.344,2,1.161]],["t/36",[1,0.301,3,0.584,4,1.015,5,0.584]],["t/83",[1,0.301,3,0.584,5,0.584,6,1.015]]],"invertedIndex":[["",{"_index":5,"t":{"36":{"position":[[16,2]]},"83":{"position":[[20,2]]}}}],["beta",{"_index":4,"t":{"36":{"position":[[10,5]]}}}],["introducing",{"_index":0,"t":{"2":{"position":[[0,11]]}}}],["launches",{"_index":6,"t":{"83":{"position":[[10,9]]}}}],["pixijs",{"_index":1,"t":{"2":{"position":[[16,6]]},"36":{"position":[[0,6]]},"83":{"position":[[0,6]]}}}],["universe",{"_index":2,"t":{"2":{"position":[[23,9]]}}}],["v8",{"_index":3,"t":{"36":{"position":[[7,2]]},"83":{"position":[[7,2]]}}}]],"pipeline":["stemmer"]}},{"documents":[{"i":4,"t":"Phase 1​","u":"/blog/pixi-universe","h":"#phase-1","p":2},{"i":6,"t":"PixiJS Website​","u":"/blog/pixi-universe","h":"#pixijs-website","p":2},{"i":8,"t":"PixiJS React​","u":"/blog/pixi-universe","h":"#pixijs-react","p":2},{"i":10,"t":"PixiJS Open Games​","u":"/blog/pixi-universe","h":"#pixijs-open-games","p":2},{"i":12,"t":"PixiJS UI & PixiJS Layout​","u":"/blog/pixi-universe","h":"#pixijs-ui--pixijs-layout","p":2},{"i":14,"t":"AssetPack​","u":"/blog/pixi-universe","h":"#assetpack","p":2},{"i":16,"t":"Phase 2​","u":"/blog/pixi-universe","h":"#phase-2","p":2},{"i":18,"t":"PixiJS JumpStart​","u":"/blog/pixi-universe","h":"#pixijs-jumpstart","p":2},{"i":20,"t":"PixiJS Dev Tools​","u":"/blog/pixi-universe","h":"#pixijs-dev-tools","p":2},{"i":22,"t":"Phase 3​","u":"/blog/pixi-universe","h":"#phase-3","p":2},{"i":24,"t":"Comet​","u":"/blog/pixi-universe","h":"#comet","p":2},{"i":26,"t":"PixiJS v8​","u":"/blog/pixi-universe","h":"#pixijs-v8","p":2},{"i":28,"t":"Phase 4​","u":"/blog/pixi-universe","h":"#phase-4","p":2},{"i":30,"t":"PixiJS 3D​","u":"/blog/pixi-universe","h":"#pixijs-3d","p":2},{"i":32,"t":"PixiJS Game Engine​","u":"/blog/pixi-universe","h":"#pixijs-game-engine","p":2},{"i":34,"t":"Conclusion","u":"/blog/pixi-universe","h":"#conclusion","p":2},{"i":38,"t":"1. 😍 Embracing WebGPU","u":"/blog/pixi-v8-beta","h":"#1--embracing-webgpu","p":36},{"i":40,"t":"2. 🚀 Turbocharging Performance","u":"/blog/pixi-v8-beta","h":"#2--turbocharging-performance","p":36},{"i":42,"t":"But Wait, There's More!","u":"/blog/pixi-v8-beta","h":"#but-wait-theres-more","p":36},{"i":44,"t":"Over to you!","u":"/blog/pixi-v8-beta","h":"#over-to-you","p":36},{"i":46,"t":"Steps to install:","u":"/blog/pixi-v8-beta","h":"#steps-to-install","p":36},{"i":48,"t":"Keep in touch!","u":"/blog/pixi-v8-beta","h":"#keep-in-touch","p":36},{"i":85,"t":"🚀 Revolutionizing Web Graphics: Welcome to PixiJS v8","u":"/blog/pixi-v8-launches","h":"#-revolutionizing-web-graphics-welcome-to-pixijs-v8","p":83},{"i":87,"t":"🔗 Quick links","u":"/blog/pixi-v8-launches","h":"#-quick-links","p":83},{"i":89,"t":"🎁 Whats New?","u":"/blog/pixi-v8-launches","h":"#-whats-new","p":83},{"i":91,"t":"✨ We promise the Renderer will work","u":"/blog/pixi-v8-launches","h":"#-we-promise-the-renderer-will-work","p":83},{"i":93,"t":"🤝 What now? Get involved!","u":"/blog/pixi-v8-launches","h":"#-what-now-get-involved","p":83},{"i":95,"t":"📲 Keep in touch","u":"/blog/pixi-v8-launches","h":"#-keep-in-touch","p":83}],"index":{"version":"2.3.9","fields":["t"],"fieldVectors":[["t/4",[0,2.069,1,2.722]],["t/6",[2,1.128,3,3.289]],["t/8",[2,1.128,4,3.289]],["t/10",[2,0.963,5,2.807,6,2.807]],["t/12",[2,1.117,7,2.17,8,0.818,9,2.17]],["t/14",[10,3.972]],["t/16",[0,2.069,11,2.722]],["t/18",[2,1.128,12,3.289]],["t/20",[2,0.963,13,2.807,14,2.807]],["t/22",[0,2.069,15,3.289]],["t/24",[16,3.972]],["t/26",[2,1.128,17,2.722]],["t/28",[0,2.069,18,3.289]],["t/30",[2,1.128,19,3.289]],["t/32",[2,0.963,20,2.807,21,2.807]],["t/34",[22,3.972]],["t/38",[1,2.026,8,0.922,23,2.448,24,2.448]],["t/40",[8,0.922,11,2.026,25,2.448,26,2.448]],["t/42",[27,2.807,28,2.807,29,2.807]],["t/44",[30,3.972]],["t/46",[31,3.289,32,3.289]],["t/48",[33,2.722,34,2.722]],["t/85",[2,0.607,8,0.666,17,1.464,35,1.769,36,1.769,37,1.769,38,1.769]],["t/87",[8,1.058,39,2.807,40,2.807]],["t/89",[8,1.058,41,2.807,42,2.807]],["t/91",[8,0.922,43,2.448,44,2.448,45,2.448]],["t/93",[8,1.058,46,2.807,47,2.807]],["t/95",[8,1.058,33,2.323,34,2.323]]],"invertedIndex":[["",{"_index":8,"t":{"12":{"position":[[10,1]]},"38":{"position":[[3,2]]},"40":{"position":[[3,2]]},"85":{"position":[[0,2]]},"87":{"position":[[0,2]]},"89":{"position":[[0,2]]},"91":{"position":[[0,1]]},"93":{"position":[[0,2]]},"95":{"position":[[0,2]]}}}],["1",{"_index":1,"t":{"4":{"position":[[6,2]]},"38":{"position":[[0,2]]}}}],["2",{"_index":11,"t":{"16":{"position":[[6,2]]},"40":{"position":[[0,2]]}}}],["3",{"_index":15,"t":{"22":{"position":[[6,2]]}}}],["3d",{"_index":19,"t":{"30":{"position":[[7,3]]}}}],["4",{"_index":18,"t":{"28":{"position":[[6,2]]}}}],["assetpack",{"_index":10,"t":{"14":{"position":[[0,10]]}}}],["comet",{"_index":16,"t":{"24":{"position":[[0,6]]}}}],["conclusion",{"_index":22,"t":{"34":{"position":[[0,10]]}}}],["dev",{"_index":13,"t":{"20":{"position":[[7,3]]}}}],["embracing",{"_index":23,"t":{"38":{"position":[[6,9]]}}}],["engine",{"_index":21,"t":{"32":{"position":[[12,7]]}}}],["game",{"_index":20,"t":{"32":{"position":[[7,4]]}}}],["games",{"_index":6,"t":{"10":{"position":[[12,6]]}}}],["graphics",{"_index":37,"t":{"85":{"position":[[23,9]]}}}],["install",{"_index":32,"t":{"46":{"position":[[9,8]]}}}],["involved",{"_index":47,"t":{"93":{"position":[[17,9]]}}}],["jumpstart",{"_index":12,"t":{"18":{"position":[[7,10]]}}}],["keep",{"_index":33,"t":{"48":{"position":[[0,4]]},"95":{"position":[[3,4]]}}}],["layout",{"_index":9,"t":{"12":{"position":[[19,7]]}}}],["links",{"_index":40,"t":{"87":{"position":[[9,5]]}}}],["more",{"_index":29,"t":{"42":{"position":[[18,5]]}}}],["new",{"_index":42,"t":{"89":{"position":[[9,4]]}}}],["now",{"_index":46,"t":{"93":{"position":[[8,4]]}}}],["open",{"_index":5,"t":{"10":{"position":[[7,4]]}}}],["over",{"_index":30,"t":{"44":{"position":[[0,4]]}}}],["performance",{"_index":26,"t":{"40":{"position":[[20,11]]}}}],["phase",{"_index":0,"t":{"4":{"position":[[0,5]]},"16":{"position":[[0,5]]},"22":{"position":[[0,5]]},"28":{"position":[[0,5]]}}}],["pixijs",{"_index":2,"t":{"6":{"position":[[0,6]]},"8":{"position":[[0,6]]},"10":{"position":[[0,6]]},"12":{"position":[[0,6],[12,6]]},"18":{"position":[[0,6]]},"20":{"position":[[0,6]]},"26":{"position":[[0,6]]},"30":{"position":[[0,6]]},"32":{"position":[[0,6]]},"85":{"position":[[44,6]]}}}],["promise",{"_index":43,"t":{"91":{"position":[[5,7]]}}}],["quick",{"_index":39,"t":{"87":{"position":[[3,5]]}}}],["react",{"_index":4,"t":{"8":{"position":[[7,6]]}}}],["renderer",{"_index":44,"t":{"91":{"position":[[17,8]]}}}],["revolutionizing",{"_index":35,"t":{"85":{"position":[[3,15]]}}}],["steps",{"_index":31,"t":{"46":{"position":[[0,5]]}}}],["there's",{"_index":28,"t":{"42":{"position":[[10,7]]}}}],["tools",{"_index":14,"t":{"20":{"position":[[11,6]]}}}],["touch",{"_index":34,"t":{"48":{"position":[[8,6]]},"95":{"position":[[11,5]]}}}],["turbocharging",{"_index":25,"t":{"40":{"position":[[6,13]]}}}],["ui",{"_index":7,"t":{"12":{"position":[[7,2]]}}}],["v8",{"_index":17,"t":{"26":{"position":[[7,3]]},"85":{"position":[[51,2]]}}}],["wait",{"_index":27,"t":{"42":{"position":[[4,5]]}}}],["web",{"_index":36,"t":{"85":{"position":[[19,3]]}}}],["webgpu",{"_index":24,"t":{"38":{"position":[[16,6]]}}}],["website",{"_index":3,"t":{"6":{"position":[[7,8]]}}}],["welcome",{"_index":38,"t":{"85":{"position":[[33,7]]}}}],["whats",{"_index":41,"t":{"89":{"position":[[3,5]]}}}],["work",{"_index":45,"t":{"91":{"position":[[31,4]]}}}]],"pipeline":["stemmer"]}},{"documents":[{"i":3,"t":"We are excited to announce the launch of the PixiJS Universe, an initiative to further enhance the capabilities of PixiJS and make it even easier for developers to create amazing games and apps. For years, PixiJS has been the most popular 2D renderer for the web, but it was always \"just a rendering engine.\" The community has created many great tools to help developers build games and applications with PixiJS, but we lacked the manpower to maintain and improve these tools, causing fragmentation in the community. To address this, Playco has assembled a dedicated team of developers who will work on PixiJS full-time. Over the next 12 months, we have more than ten projects planned, and in this announcement, we would like to introduce some of them.","s":"Introducing the PixiJS Universe!","u":"/blog/pixi-universe","h":"","p":2},{"i":5,"t":"We have several new projects in the works, and we are releasing them in four phases over the year. We are currently nearing the end of phase 1, which has seen the release of several exciting new tools and libraries for PixiJS:","s":"Phase 1​","u":"/blog/pixi-universe","h":"#phase-1","p":2},{"i":7,"t":"First up we are excited to announce that we will be releasing a beta version of our new website for PixiJS. The current documentation has suffered from long-term organic growth over the years with little structure and as such much of the PixiJS documentation is fragmented across multiple sites. This new website will put everything you need in one place and be easily searchable. We are also planning on improving the documentation and adding more guides and examples, as well as considering translating the documentation into other languages. If you have any ideas on how to improve the site please let us know! Github Repo","s":"PixiJS Website​","u":"/blog/pixi-universe","h":"#pixijs-website","p":2},{"i":9,"t":"Next up is PixiJS React. A library that provides a way to use PixiJS in React applications. PixiJS React is a continuation of the react-pixi library created by Patrick Brouwer, which has been widely used by the PixiJS community in React projects. PixiJS has taken over maintenance of the library and is dedicated to improving the library's performance, documentation, and support for new features. The library provides an easy-to-use interface that makes it easy for developers to create React applications with PixiJS. The library integrates all the core features of PixiJS and allows you to create custom components for 3rd party libraries. Github Repo","s":"PixiJS React​","u":"/blog/pixi-universe","h":"#pixijs-react","p":2},{"i":11,"t":"We have now released a new repository called \"PixiJS Open Games\". This is a collection of open-source games that showcases how to use PixiJS to create games and is released under the MIT license. The purpose of these games is to provide professional examples of how to use PixiJS for game development. The first two games released are a match-3 game and a bubble shooter game. These games not only demonstrate how to use PixiJS for game development but also how to use other libraries such as PixiJS UI and AssetPack. We also have more games planned for release, which will demonstrate how to use PixiJS with other libraries such as PixiJS Layout and PixiJS React. PixiJS Open Games will hopefully be a valuable resource for game developers who want to learn how to use PixiJS for game development and will also be a great source of inspiration for developers looking to create their own games using PixiJS. The project is available on GitHub for anyone who wants to explore the code or contribute to the project. Github Repo Play Puzzling Potions Play Bubbo Bubbo","s":"PixiJS Open Games​","u":"/blog/pixi-universe","h":"#pixijs-open-games","p":2},{"i":13,"t":"PixiJS UI is a new library for developers who want to create beautiful and functional user interfaces with PixiJS. The library includes a range of components such as buttons, checkboxes, sliders, text inputs, scroll views, lists, radio buttons, and progress bars, which can be easily integrated into your game. These components are highly customizable, allowing you to tweak the appearance and behaviour of each element to fit your game's specific needs. PixiJS UI has been used in all of the open-source games, so feel free to check these out for real-world examples. PixiJS UI Github Repo PixiJS Layout is another library that can make your life as a developer easier. This library enables you to create responsive layouts using PixiJS, which means you can design interfaces that adapt to different screen sizes and aspect ratios. PixiJS Layout works well with PixiJS UI, allowing you to combine both libraries to create complex, dynamic interfaces that respond to user input and screen changes. With PixiJS Layout, you have the flexibility to create resizable layouts that can be adjusted to fit any screen size or device. This means that your game's interface can look great on everything from small mobile devices to large desktop displays. PixiJS Layout is still under development but will be ready in the next few weeks PixiJS Layout Github Repo","s":"PixiJS UI & PixiJS Layout​","u":"/blog/pixi-universe","h":"#pixijs-ui--pixijs-layout","p":2},{"i":15,"t":"Finally, for phase 1 we are announcing AssetPack. Asset management is an important part of developing applications, and the new AssetPack library aims to make this process easier. AssetPack is a framework-agnostic library that can be used with any framework, including PixiJS, ThreeJS, and Phaser. It provides a range of features that help developers manage their assets efficiently. The key feature of AssetPack is the ability to automatically generate new assets on the fly. For example, you can provide it with a folder of individual images and it will generate sprite sheets, which can significantly improve the performance of your application. It also provides plugins to generate mipmaps, convert fonts to different formats, convert audio to different formats, compress images, and minify JSON. These features help developers optimize their assets for faster loading times, better performance, and improved user experience. We will soon be releasing a new blog post that provides more details on how to use it. With its many useful features and framework-agnostic design. However, if you want to get stuck in today then check out the GitHub repo Github Repo","s":"AssetPack​","u":"/blog/pixi-universe","h":"#assetpack","p":2},{"i":17,"t":"Phase 2 will begin shortly and aims to make it easier to work with PixiJS applications.","s":"Phase 2​","u":"/blog/pixi-universe","h":"#phase-2","p":2},{"i":19,"t":"Jumpstart is a new CLI tool being developed by the PixiJS team to simplify the process of creating new PixiJS applications. With this tool, developers will no longer need to set up complicated tooling or worry about setting up different bundlers and frameworks. The tool will handle all the setup for you, allowing you to focus on building your application. Jumpstart will be similar to other CLI tools such as Create-React-App or Create-Vue, which have become popular in the front-end development community. The tool will provide templates for different bundlers and frameworks, including webpack, parcel, rollup, and more. This will make it easy for developers to get started with PixiJS regardless of their preferred tools and workflows. With Jumpstart, you'll be able to create a new PixiJS application in just a few minutes and start building right away.","s":"PixiJS JumpStart​","u":"/blog/pixi-universe","h":"#pixijs-jumpstart","p":2},{"i":21,"t":"PixiJS dev tools will be a browser extension that is planned to be released soon to help developers debug their PixiJS applications. This tool aims to make it easier for developers to understand the inner workings of PixiJS, optimize their code, and follow best practices. It is designed to help developers diagnose performance issues and visualize the resources that their applications are consuming. One of the key features of the PixiJS Dev Tools is its ability to help developers understand the complex process of batching in PixiJS. Batching is a technique used to optimize the rendering of multiple objects in the same draw call. This process can be complicated to understand, especially for new developers. PixiJS Dev Tools aims to make it easier to debug and optimize the rendering of objects. Overall, PixiJS Dev Tools will be a powerful tool that will make it easier for developers to build high-performance, visually stunning applications with PixiJS. By providing developers with a deeper understanding of the inner workings of PixiJS, this toolset will help developers optimize their code and create more efficient and engaging applications.","s":"PixiJS Dev Tools​","u":"/blog/pixi-universe","h":"#pixijs-dev-tools","p":2},{"i":23,"t":"Phase 3 is where our long-term projects start to be revealed. These are major changes to the PixiJS ecosystem that we are incredibly excited about","s":"Phase 3​","u":"/blog/pixi-universe","h":"#phase-3","p":2},{"i":25,"t":"Comet will be a new editor that aims to make it easier than ever to design and create games and applications with PixiJS. With its intuitive and user-friendly interface, the editor is designed to appeal to both designers and developers, allowing both groups to collaborate and work more efficiently. One of the standout features of Comet is the visual interface it provides for creating and editing scenes, sprites, animations, and more. This means that designers can create and edit complex scenes without ever having to write a single line of code. The editor provides a range of tools and options for creating sprites, animations, and other game elements, making it easy to get started with creating a game or application. In addition, developers will appreciate the runtime player feature, which allows them to easily recreate scenes in their own applications. This makes it easy to test and iterate on designs, ensuring that the final product is both functional and visually appealing. And with multi-user, real-time collaboration, Comet makes it easy for teams to work together, sharing assets and ideas and creating high-quality games and applications in record time.","s":"Comet​","u":"/blog/pixi-universe","h":"#comet","p":2},{"i":27,"t":"PixiJS v8 will be the next major release that represents a complete rewrite of PixiJS from the ground up. The development team has leveraged their extensive experience over many years to make improvements and optimizations to the core PixiJS engine. The new version of PixiJS is designed to be faster and more efficient, providing a significant improvement in rendering performance compared to v7 (currently sitting at x2) One of the most exciting features of PixiJS v8 is the inclusion of first-class support for WebGPU, which is a new graphics API that is being developed by major browser vendors. This will enable developers to take advantage of advanced GPU capabilities, which can significantly improve the performance of graphics-intensive applications. In addition to WebGPU support, the PixiJS team has also made a significant effort to optimize the engine for the canvas renderer, which will be available as a first-class option for developers looking to reduce bundle size. Overall, PixiJS v8 represents a major leap forward for us, developers can expect a much faster and more efficient engine that is better suited for building complex, graphics-intensive applications.","s":"PixiJS v8​","u":"/blog/pixi-universe","h":"#pixijs-v8","p":2},{"i":29,"t":"Phase 4 represents a leap into new territory for PixiJS as we look to delve deeper into areas outside of strictly 2D rendering.","s":"Phase 4​","u":"/blog/pixi-universe","h":"#phase-4","p":2},{"i":31,"t":"For years, Goodboy (now Playco) has had an internal 3D engine called Odie that was built on top of PixiJS. We are now planning to open-source it, which is exciting for those of you who want to seamlessly mix 2D and 3D content in your games or applications. With PixiJS 3D, you will no longer need to switch between engines or frameworks to incorporate 3D elements in your project. Although this is a long-term project, the team is making progress and plans to share more information later in the year. This release will greatly expand PixiJS's capabilities and give developers even more flexibility when building their applications.","s":"PixiJS 3D​","u":"/blog/pixi-universe","h":"#pixijs-3d","p":2},{"i":33,"t":"Finally, we are thrilled to announce that we will be working on a new library called PixiJS Game Engine. This game engine aims to provide everything you would expect from a 2D/3D game engine and will offer many features and tools to make game development easier and more efficient. Some of the features of PixiJS Game Engine will include support for physics engines, audio, input handling, asset loading and management, state management, animation and tweening, and more.","s":"PixiJS Game Engine​","u":"/blog/pixi-universe","h":"#pixijs-game-engine","p":2},{"i":35,"t":"We've shared a lot of exciting news about new projects and updates coming to the PixiJS community. There's a lot to look forward to in the upcoming months. We want to extend our sincere thanks to the PixiJS community, its contributors, and Playco for making all of this possible. We're excited to see what you'll create with these new tools and resources, and we look forward to continuing to support and grow the PixiJS ecosystem. Be sure to check out the GitHub links mentioned above and stay tuned for more updates on the PixiJS Universe!","s":"Conclusion","u":"/blog/pixi-universe","h":"#conclusion","p":2},{"i":37,"t":"We're thrilled to offer an exclusive preview of the future of 2D web graphics with the Beta release of PixiJS v8. Although not yet finalized, this Beta iteration is packed with killer performance improvements and features we're eager for you to start playing with! Over the course of a decade—yes, you read that right, ten years!—we've implemented significant changes to the PixiJS engine. But the advancements in this new release are among the most monumental we've ever made! Two driving factors catalysed our approach to re-engineering the codebase and rendering pipeline in v8:","s":"PixiJS v8 Beta! 🎉","u":"/blog/pixi-v8-beta","h":"","p":36},{"i":39,"t":"The newcomer WebGPU offers a substantial performance improvement over its predecessor, WebGL. It propels web computations and graphics into a new era, providing a more efficient and robust API. Soon, it will be the go-to method for rendering most GPU-powered content on the web. This shift is reminiscent of PixiJS's initial launch. At that time, WebGL was new and only available in a handful of desktop browsers, while Canvas was ubiquitous. PixiJS's standout feature was its ability to first attempt rendering with WebGL and then fall back to Canvas as a Plan B. This approach allowed PixiJS content to immediately benefit as WebGL gained traction. Fast forward to today, and WebGL is now available on 95% of browsers. History is repeating itself with WebGPU, currently supported in only a few desktop browsers and roughly 27% of the market. However, it's only a matter of time before it becomes universally supported. PixiJS aims to execute the same fallback strategy, allowing you to always leverage the best technology available without needing to rewrite your code. This is precisely what version 8 achieves and will future proof everything we make for another ten years :D","s":"1. 😍 Embracing WebGPU","u":"/blog/pixi-v8-beta","h":"#1--embracing-webgpu","p":36},{"i":41,"t":"PixiJS has always been synonymous with speed and high-performance graphics. With v8, we've revisited our architecture to optimize both static and dynamic rendering. While v7 is fast, it operates as a somewhat ‘naïve’ renderer. v7 approach:​ Traverse the scene graph and make sure all the transforms are correct Traverse the scene graph a second time and do the following Build batches to render Upload the data to the GPU Draw the batch to the screen. v8 approach​ Update the transform of only things that changed Traverse the scene graph and construct a set of instructions. Upload all scene data to GPU in one go. Execute rendering based on the instructions. There are three key changes to this loop that give us a performance bump. First, we update only the elements that have changed. If nothing has moved, no code is executed, optimizing computational overhead. Second, if the scene graph remains unchanged in subsequent frames, we reuse the existing rendering instructions. This avoids the overhead of reconstructing these instructions for each frame. Third, if no elements in the scene change position, the data upload step (Step 3) is entirely skipped, thereby saving bandwidth and further reducing computational work. The net effect of these improvements? A decent performance leap across varying use-cases: CPU = time spent by the cpu rendering a single frame GPU = time spend by the gpu rendering a single frame Bunny Situation V7 CPU V8 CPU CPU Dif V7 GPU V8 GPU GPU dif 100k sprites all moving ~50ms ~15ms 233% ~9ms ~2ms 350% 100k sprites not moving ~21ms ~0.12ms 17417% ~9ms ~0.5ms 1700% 100k sprites (changing scene structure) ~50ms ~24ms 108% ~9ms ~2ms 350% These benchmark numbers are based on this Bunnymark test that you can try yourself! v7 Bunnymark v8 Bunnymark - WebGPU v8 Bunnymark - WebGL Repo Please have a play, you can fiddle with the parameters in the url to change the number of bunnies. Curious to see what numbers all of you get! Best of all, these improvements apply to WebGPU and the WebGL renderer. As with all of PixiJs’s party tricks, this all happens automatically :D","s":"2. 🚀 Turbocharging Performance","u":"/blog/pixi-v8-beta","h":"#2--turbocharging-performance","p":36},{"i":43,"t":"While the two key drivers behind this overhaul were performance and usability, we didn't stop there. We've seized this opportunity to enhance the API and introduce a plethora of new features to the engine—far too many to encapsulate in a single post! Stay tuned for upcoming blog posts where we'll delve deeper into these additional improvements and API refinements, empowering you to create even more remarkable projects. For a comprehensive overview of what's new, don't miss the release notes. As a crucial note, PixiJS v8 retains much of the familiar API despite undergoing significant internal updates. Our changes are geared toward making PixiJS more robust and user-friendly. When you encounter modifications, rest assured that the v7 methodology will continue to work—you'll simply see a deprecation warning, guiding you towards optimal practices.","s":"But Wait, There's More!","u":"/blog/pixi-v8-beta","h":"#but-wait-theres-more","p":36},{"i":45,"t":"As we progress toward the release candidate, now is the perfect time for you to dive in and explore v8. Your feedback at this stage is invaluable for fine-tuning our engine. We invite you to share your thoughts—the good, the bad, and the ugly—report bugs, and even contribute code. Together, we can elevate PixiJS to unprecedented heights. 👇 Don't wait—dive right in! Explore the PixiJS v8 Codebase on GitHub","s":"Over to you!","u":"/blog/pixi-v8-beta","h":"#over-to-you","p":36},{"i":47,"t":"via npm you can install the beta version like so: npm install pixi.js@prerelease-v8 then you can create the most appropriate renderer using the new autoDetectRenderer function: import { autoDetectRenderer } from \"pixi.js\"; async function init() { const renderer = await autoDetectRenderer({ // any settings }); // will return a WebGL or WebGPU renderer } Start experimenting with PixiJS v8 Beta today and join us in shaping the future of 2D web graphics! 🎉","s":"Steps to install:","u":"/blog/pixi-v8-beta","h":"#steps-to-install","p":36},{"i":49,"t":"\"To stay in the loop, we invite you to follow Doormat23 and PixiJS on social media, where we'll be unveiling more exciting updates shortly. Alternatively, you can join our vibrant community on Discord for direct engagement and real-time conversations.","s":"Keep in touch!","u":"/blog/pixi-v8-beta","h":"#keep-in-touch","p":36},{"i":84,"t":"Get ready to push the boundaries of what's possible on the web! PixiJS v8 has landed, and it's a game-changer. Celebrating a decade of driving innovation, we've supercharged PixiJS with the latest technological advancements, making it faster, more robust, and ridiculously powerful. From the seamless integration of WebGPU to leveraging modern JavaScript for smoother development, PixiJS v8 is all about empowering you to create jaw-dropping web experiences with ease. It's not just an update; it's the future of 2D web graphics, today. Dive in and let PixiJS v8 elevate your projects to unseen heights. Let's make the web a more beautiful place, one pixi(el) at a time.","s":"PixiJS v8 Launches! 🎉","u":"/blog/pixi-v8-launches","h":"","p":83},{"i":86,"t":"It's hard to believe that PixiJS has been part of the open-source community for a whopping ten years. In that time, the digital landscape has evolved tremendously, and so has PixiJS. We've seen significant updates, like the transition to TypeScript, and we've overhauled major parts of the engine, such as asset loading and WebGL integration. Now, we're thrilled to unveil PixiJS v8, arguably our most substantial update ever. This release is not just a reflection on the shortcomings of v7, which has served us well, but an acknowledgment that there's always room for improvement. Over time, we've all encountered aspects of our code we wished we could refine. Often, the best solutions and insights emerge only after we've stepped back from the problem, allowing us to see the bigger picture. With PixiJS v8, our aim was to revisit and enhance the foundation of PixiJS, streamlining its core rather than just adding layers of code. Our vision for v8 was clear: Longevity: We designed v8 to stand the test of time, anticipating it will remain relevant and robust for another decade. Innovation with WebGPU: Embracing the latest in rendering technology, we've seamlessly integrated WebGPU, not as an add-on to our existing WebGL renderer but as a core paradigm, ensuring PixiJS remains at the cutting edge as WebGL phases out. Leveraging Modern JavaScript: The advancements in JavaScript have significantly simplified development. We've utilized features like object destructuring and options to make v8 cleaner and more powerful. Correcting Past Oversights: Every project has its lessons. With v8, we've addressed and rearchitected certain aspects of PixiJS, reducing complexity and enhancing functionality, particularly in areas we felt were overengineered in the past (looking at you, textures!). Boosting Performance: PixiJS is already renowned for its speed. With v8, we've unlocked even greater performance, making it faster across the board compared to v7. We're incredibly proud of PixiJS v8 and eager to share the improvements and new features with you. While there are some breaking API changes, we've provided a migration guide and ensured compatibility with v7 wherever possible. Get ready to experience the next level of 2D rendering with PixiJS v8!","s":"🚀 Revolutionizing Web Graphics: Welcome to PixiJS v8","u":"/blog/pixi-v8-launches","h":"#-revolutionizing-web-graphics-welcome-to-pixijs-v8","p":83},{"i":88,"t":"The new Docs for v8 can be found here Migration Examples Open Games","s":"🔗 Quick links","u":"/blog/pixi-v8-launches","h":"#-quick-links","p":83},{"i":90,"t":"There are numerous updates to discuss, more than can be covered in a single post! Below are the key highlights. For a more detailed exploration of these changes, be sure to follow the links provided above. 📈 New Performance Bar​ The performance of v8 is faster for both renderers. This means by using v8 and the WebGL renderer, all the speed improvements apply! This is mainly as we have taken great care to make a more reactive render loop that only updates what it needs to. Check out the numbers here: CPU = time spent by the CPU rendering a single frame GPU = time spent by the GPU rendering a single frame Bunny Situation V7 CPU V8 CPU CPU Dif V7 GPU V8 GPU GPU dif 100k sprites all moving ~50ms ~15ms 233% ~9ms ~2ms 350% 100k sprites not moving ~21ms ~0.12ms 17417% ~9ms ~0.5ms 1700% 100k sprites (changing scene structure) ~50ms ~24ms 108% ~9ms ~2ms 350% These benchmark numbers are based on the Bunnymark test that you can try yourself. v7 Bunnymark v8 Bunnymark - WebGPU v8 Bunnymark - WebGL Repo 🖥️ WebGPU Renderer​ We've implemented a WebGPU backend for rendering. Whilst this has created a better graphics paradigm under the hood and set us up for the future of rich web content, it's important to note that WebGPU does not automatically guarantee improved performance over WebGL in all scenarios, as PixiJS often encounters more limitations on the CPU side than the GPU. However, for scenes with numerous batch breaks, such as filters, masks, and blend modes, WebGPU may offer better performance due to its more modern to rendering. As WebGPU is relatively new, it's expected to enhance in speed over time, similar to the development of WebGL. It serves as a solid foundation for future advancements. 📦 New Package Structure​ No more \"lerna.\" PixiJS is now just one package with one import root: import {stuff} from ‘pixi.js’. This change means we now have much better tree shaking during app compilation, reducing bundle size if not imported. Old: import { Sprite } from \"@pixi/sprite\"; import { Graphic } from \"@pixi/graphics\"; New: import { Sprite, Graphic } from \"pixi.js\";","s":"🎁 Whats New?","u":"/blog/pixi-v8-launches","h":"#-whats-new","p":83},{"i":92,"t":"When initializing a renderer, this process is now asynchronous. This serves two purposes: firstly, identifying and loading the necessary renderer code to minimize what is loaded for your users. We only load the one backend that your user is using. There's no point in loading all the WebGL stuff if they are using WebGPU. Secondly, the initialization of WebGPU itself is an asynchronous process, so we need to have a promise in there somewhere! import { Application, autoDetectRenderer } from \"pixi.js\"; const app = new Application(); (async () => { await app.init({ // application options }); // or const renderer = await autoDetectRenderer({}); // WebGL or WebGPU // do pixi things })(); 🌟 Scene Upgrades​ The concept of render groups has been introduced, enabling containers to utilize GPU for their transformations. This facilitates a true 2D hardware-accelerated camera, ideal for navigating large static worlds through panning and zooming, similar to how a camera moves in a 3D environment rather than moving the world itself. This approach can significantly enhance performance. const container = new Container({ isRenderGroup:true // this containers transform is now handled on the GPU! }) Another cool new change is that now blend modes and tints are inherited, much like transforms and alpha. This means you can now easily tint a container, and all its children will have the tint applied - same for blend modes, its as easy as: // will make all the children tinted red container.tint = 'red' // will make all the children have the add blend mode container.blendMode = 'add' Rendering to a texture with antialiasing has been simplified; you only need to enable the new antialiasing property by setting it to true during the creation of a render texture or when applying a filter, similar to the process used for creating your renderer. const texture = RenderTexture.create({ width:100, height:100, antialias:true // easy as that }) We have also added support for a wide range of Photoshop-like filters, This allows you to take your rendering to the next level! We have including all the classics: ColorBlend, ColorBurnBlend, ColorDodgeBlend, DarkenBlend, DifferenceBlend, DivideBlend, ExclusionBlend, HardLightBlend, HardMixBlend, LightenBlend, LinearBurnBlend, LinearDodgeBlend, LinearLightBlend, LuminosityBlend, NegationBlend, OverlayBlend, PinLightBlend, SaturationBlend, SoftLightBlend, SubtractBlend, VividLightBlend. It's important to mention that these are essentially filters at the core, so it's advisable not to overuse them to avoid potential slowdowns. import `pixi.js/advanced-blend-modes` // make sure to include them in you lib! (or cherry pick one!) myContainer.blendMode = 'color-burn` // easy! 🎨 Graphics Upgrades​ The Graphics API has undergone changes to become more intuitive and user-friendly, closely resembling the HTML Canvas 2D context API. For instance, drawing and filling a rectangle is simplified as follows: graphics .rect(50, 50, 100, 100) .fill('blue'); A GraphicsContext has been introduced, powering all graphics operations. Similar to how one texture can be used across many sprites, a single GraphicsContext can now be utilized by multiple Graphics objects, enhancing efficiency and flexibility. Support for SVG drawing has been added. For example: graphics.svg('M 100 350 q 150 -300 300 0'); Gradient fill support has been introduced, currently limited to linear gradients, allowing for more visually engaging designs. The new GraphicsPath class enables the drawing and sharing of shapes. This feature is particularly useful as it allows for the creation of paths that can then be transformed into Mesh geometry using the buildGeometryFromPath function, opening up new possibilities for intricate and detailed graphic designs. const path = new GraphicsPath() .rect(-50, -50, 100, 100) // create geometry from the path: const geometry = buildGeometryFromPath({ path, }); const mesh = new Mesh({ geometry, texture: Texture.WHITE, }); For more information on these graphics upgrades and guidance on how to adapt to the enhanced Graphics API, please refer to the migration guide, or why not jump in and play with some examples. 📝 Text Upgrades​ Text has been upgraded to allow for better performance and usability! We have also integrated HTMLText into v8 as standard. BitmapFonts can now be generated on the fly or installed upfront as you prefer. They dynamically add characters as the font's glyphs are required, saving on memory. The layout of bitmap text is almost identical to the layout of the default text now, making it easier to switch between the two depending on your needs. const myText = new BitmapText({ text: 'hello im a bitmap font!', // font will be dynamically created style:{ fontFamily: 'Outfit', fontSize: 12, fill: 'red', } }) Text fills and strokes now conform to the same fills and strokes as graphics. This means Gradients, textures, and all the fun ways you can fill and stroke graphics can now be applied to Text. const myText = new Text({ text: 'hello im some fancy text', // font will be dynamically created! style:{ fontFamily: 'Outfit', fontSize: 12, fill: { texture, color:'red'} // same as graphics api fills stroke: { width:3, color:'blue' } // same as graphics api strokes } })","s":"✨ We promise the Renderer will work","u":"/blog/pixi-v8-launches","h":"#-we-promise-the-renderer-will-work","p":83},{"i":94,"t":"As PixiJS v8 takes its first steps into the world, we're eager to see it grow with your feedback and contributions. Now we know things won't be perfect, but we're committed to quick responses on GitHub and Discord to any issues that arise, valuing your input to make PixiJS even better. A heartfelt thanks to our early adopters (everyone in here) for testing the limits of v8, to our dedicated contributors and team for their hard work. Your efforts and insights are invaluable to us. We could not have gotten here without you! A final big shout-out to PlayCo for their support in making this release a reality! Let's continue to innovate and push the boundaries of web graphics together. Your engagement is key to PixiJS's evolution, and we're excited to see where we can go with your help.","s":"🤝 What now? Get involved!","u":"/blog/pixi-v8-launches","h":"#-what-now-get-involved","p":83},{"i":96,"t":"To stay in the loop, we invite you to follow Doormat23 and PixiJS on social media, where we'll be unveiling more exciting updates shortly. Alternatively, you can join our vibrant community on Discord for direct engagement and real-time chit-chats.","s":"📲 Keep in touch","u":"/blog/pixi-v8-launches","h":"#-keep-in-touch","p":83}],"index":{"version":"2.3.9","fields":["t"],"fieldVectors":[["t/3",[0,2.018,1,2.536,2,2.922,3,0.151,4,2.922,5,3.507,6,2.922,7,2.018,8,2.536,9,0.759,10,1.827,11,1.519,12,1.876,13,1.077,14,3.507,15,2.402,16,3.507,17,1.827,18,2.922,19,1.519,20,1.663,21,1.663,22,2.248,23,1.277,24,1.663,25,2.186,26,2.248,27,1.827,28,2.248,29,2.186,30,2.248,31,2.536,32,1.392,33,3.507,34,3.507,35,3.507,36,2.248,37,3.507,38,3.507,39,3.507,40,2.248,41,3.507,42,2.536,43,2.018,44,2.018,45,3.507,46,1.277,47,1.392,48,1.827,49,2.922,50,2.922,51,0.568,52,2.248,53,1.663,54,2.536,55,3.507,56,2.922]],["t/5",[3,0.119,29,2.119,47,1.773,53,2.119,57,5.372,58,0.698,59,3.723,60,3.231,61,4.469,62,3.723,63,3.723,64,2.865,65,4.469,66,3.723,67,2.571,68,3.723,69,3.723,70,1.773,71,2.328,72,2.865]],["t/7",[0,2.122,1,2.666,3,0.127,17,1.921,36,2.364,47,1.463,51,0.597,58,0.619,60,2.666,73,1.921,74,1.921,75,2.666,76,2.364,77,4.765,78,3.687,79,4.649,80,3.687,81,2.666,82,2.666,83,3.687,84,3.687,85,3.687,86,2.666,87,1.921,88,2.122,89,3.687,90,2.666,91,3.687,92,3.687,93,2.364,94,2.364,95,1.597,96,3.072,97,2.364,98,3.687,99,3.072,100,3.072,101,3.072,102,3.687,103,2.122,104,2.666,105,3.687,106,3.687,107,3.687,108,3.072,109,3.687,110,2.666,111,3.072,112,1.597,113,1.748]],["t/9",[3,0.158,12,1.283,13,1.421,25,1.671,26,2.259,32,1.836,42,2.548,47,1.399,48,1.836,53,1.671,58,0.458,72,2.259,74,1.836,79,2.936,100,2.936,112,1.527,113,1.671,114,4.227,115,3.651,116,3.346,117,3.524,118,2.966,119,3.524,120,2.936,121,3.524,122,3.524,123,3.524,124,2.028,125,2.936,126,3.524,127,3.524,128,1.179,129,1.836,130,1.836,131,2.966,132,2.548,133,2.936,134,3.524,135,2.259,136,2.548,137,3.524,138,2.936,139,3.524,140,2.936]],["t/11",[3,0.16,12,1.496,13,1.262,15,3.071,28,1.896,51,0.479,54,2.138,58,0.384,70,1.174,72,2.634,73,1.54,87,2.14,103,1.702,112,1.78,113,1.402,114,2.138,118,3.558,141,1.281,142,3.934,143,2.957,144,2.138,145,2.718,146,2.957,147,2.634,148,2.957,149,2.138,150,2.957,151,2.957,152,2.957,153,1.896,154,2.957,155,3.194,156,2.046,157,1.896,158,2.957,159,2.138,160,2.957,161,2.957,162,4.109,163,2.464,164,2.464,165,2.138,166,2.957,167,2.957,168,2.957,169,1.702,170,2.957,171,2.957,172,2.138,173,1.702,174,2.972,175,2.138,176,2.957,177,2.464,178,1.281,179,2.464,180,2.972,181,2.957,182,2.957,183,4.109]],["t/13",[3,0.156,9,0.555,11,1.111,12,0.934,13,1.471,15,1.336,28,1.645,48,1.336,58,0.333,59,2.137,72,1.645,87,1.336,93,1.645,97,1.645,103,1.476,104,1.855,112,1.609,113,1.761,115,3.069,124,1.476,132,1.855,138,3.095,145,1.476,147,1.645,149,1.855,155,1.476,156,1.111,163,3.989,165,3.675,169,1.476,173,1.476,184,2.137,185,2.137,186,2.138,187,4.368,188,2.566,189,1.645,190,3.715,191,2.566,192,2.566,193,2.137,194,2.566,195,2.566,196,2.566,197,2.566,198,2.566,199,1.855,200,2.566,201,1.855,202,2.566,203,2.566,204,1.935,205,2.566,206,2.566,207,2.566,208,2.137,209,2.566,210,3.715,211,3.715,212,2.566,213,1.855,214,2.566,215,2.566,216,1.645,217,1.336,218,1.645,219,1.855,220,1.645,221,2.566,222,2.566,223,2.137,224,2.566,225,3.715,226,2.382,227,1.855,228,2.137,229,1.855,230,3.639,231,2.566,232,2.566,233,2.566,234,2.566,235,1.645,236,1.645,237,2.137,238,2.566,239,1.855,240,1.111,241,1.855,242,2.566,243,2.566,244,1.855,245,2.566,246,1.855,247,2.566,248,2.566,249,2.566,250,2.137,251,2.137,252,2.566,253,2.566,254,1.855,255,1.855,256,2.566]],["t/15",[3,0.077,9,0.625,11,1.25,12,1.471,27,1.503,30,2.59,32,1.145,36,1.85,51,0.467,58,0.606,60,2.087,67,1.661,68,2.404,112,1.75,113,1.915,115,2.59,116,3.371,118,1.85,124,1.661,128,1.351,130,1.85,153,1.85,164,4.207,169,1.661,186,1.661,189,1.85,216,1.85,217,1.503,227,2.087,229,2.921,257,2.404,258,2.886,259,2.087,260,2.404,261,2.087,262,2.404,263,2.886,264,1.503,265,1.85,266,4.661,267,4.04,268,2.087,269,2.886,270,2.886,271,2.886,272,3.883,273,2.404,274,1.503,275,1.85,276,2.087,277,2.087,278,4.661,279,2.404,280,2.404,281,2.886,282,2.886,283,4.04,284,2.404,285,2.886,286,1.85,287,1.85,288,2.886,289,2.886,290,4.04,291,2.886,292,4.04,293,2.404,294,2.886,295,2.886,296,2.886,297,1.85,298,1.661,299,1.85,300,2.886,301,1.661,302,2.404,303,2.087,304,2.087,305,2.404,306,2.087,307,2.886,308,2.404,309,2.886,310,1.85]],["t/17",[3,0.128,9,1.045,11,2.092,32,1.917,44,2.779,67,2.779,264,2.516,311,4.83,312,4.83,313,3.493]],["t/19",[3,0.141,9,0.701,12,1.592,13,1.521,18,2.697,25,1.535,29,2.073,32,1.285,43,1.863,51,0.524,58,0.643,66,2.697,74,2.277,87,1.686,94,2.075,114,2.341,131,2.075,153,2.075,156,1.403,204,1.686,229,3.162,255,2.341,265,2.075,268,2.341,287,2.803,314,4.951,315,4.373,316,4.417,317,2.697,318,2.697,319,3.238,320,2.341,321,2.697,322,2.341,323,2.697,324,3.238,325,3.238,326,2.697,327,4.373,328,3.643,329,3.238,330,3.238,331,3.238,332,3.162,333,2.341,334,2.341,335,3.238,336,2.697,337,3.238,338,3.238,339,3.238,340,3.238,341,3.238,342,2.697,343,3.238,344,3.238,345,3.238,346,2.697,347,3.238,348,2.075,349,2.341,350,3.238]],["t/21",[3,0.156,9,1.009,11,2.019,12,2.101,13,0.886,23,1.471,29,2.394,30,3.237,31,2.087,32,2.004,51,0.467,54,2.087,58,0.375,90,2.087,95,1.25,124,1.661,128,1.351,130,1.145,142,2.404,178,1.75,236,1.85,264,2.104,265,2.59,274,1.503,276,2.087,297,3.237,304,2.087,316,3.366,323,2.404,351,5.05,352,2.404,353,2.886,354,4.04,355,4.661,356,4.04,357,4.04,358,1.85,359,1.85,360,2.404,361,1.85,362,2.886,363,2.404,364,2.886,365,2.404,366,2.886,367,4.04,368,2.886,369,3.366,370,2.087,371,2.404,372,2.886,373,2.886,374,2.404,375,2.087,376,2.087,377,2.087,378,2.886,379,2.087,380,2.087,381,2.886,382,2.886,383,1.85,384,2.404]],["t/23",[0,2.724,3,0.126,53,2.244,67,2.724,81,3.424,82,3.424,159,3.424,240,2.051,348,3.035,385,4.734,386,3.424,387,3.944,388,3.944]],["t/25",[3,0.076,9,0.617,11,1.235,12,1.459,13,1.231,15,2.087,29,1.352,32,1.838,44,2.305,46,1.459,51,0.648,58,0.371,95,1.235,97,1.828,108,2.375,116,2.897,130,1.132,131,2.969,132,2.897,133,3.337,136,2.062,155,2.305,178,1.235,185,2.375,186,2.305,189,1.828,204,1.485,218,1.828,226,1.828,227,2.062,235,2.969,236,1.828,264,1.485,272,2.375,273,2.375,275,1.828,287,1.828,320,3.632,342,2.375,361,1.828,376,2.062,377,2.062,389,4.631,390,4.631,391,2.375,392,2.062,393,2.851,394,4.006,395,2.375,396,2.851,397,2.375,398,2.851,399,2.851,400,3.858,401,2.568,402,4.006,403,2.851,404,2.062,405,2.851,406,2.851,407,1.641,408,2.851,409,2.062,410,2.062,411,1.235,412,2.375,413,2.851,414,2.851,415,2.851,416,2.851,417,1.828,418,2.851,419,2.375,420,2.375,421,2.375,422,2.851,423,2.851,424,2.851,425,2.851,426,2.851,427,2.062,428,2.375,429,2.851,430,2.851]],["t/27",[3,0.149,8,2.046,9,0.612,12,1.679,17,1.473,20,1.341,23,1.03,24,2.186,27,1.473,32,1.581,36,1.813,43,2.292,47,1.123,48,1.473,51,0.645,58,0.518,64,1.813,70,1.123,71,1.473,73,2.075,74,1.473,76,1.813,88,1.628,95,1.225,128,1.332,129,2.075,130,1.123,135,1.813,156,1.225,172,2.046,175,2.046,236,1.813,244,2.046,286,1.813,297,1.813,298,2.292,301,1.628,303,2.046,317,2.357,318,2.357,332,2.046,352,2.357,361,1.813,374,2.357,379,2.046,383,2.554,386,3.335,412,2.357,431,1.416,432,3.319,433,2.829,434,2.357,435,2.829,436,2.829,437,2.829,438,1.473,439,2.829,440,2.554,441,2.046,442,2.357,443,1.628,444,2.829,445,2.829,446,2.829,447,3.319,448,1.726,449,1.83,450,1.628,451,2.829,452,2.357,453,2.357,454,2.829,455,2.829,456,1.628,457,3.984,458,2.357,459,2.829,460,2.046,461,2.829,462,2.829,463,2.357,464,2.046,465,2.046,466,2.357,467,2.829]],["t/29",[3,0.124,19,2.024,23,1.701,58,0.607,67,2.689,246,3.379,380,3.379,432,3.893,464,3.379,468,4.673,469,4.673,470,3.893,471,3.893,472,4.673,473,4.673]],["t/31",[3,0.124,8,2.574,10,1.854,12,1.296,15,1.854,17,1.854,19,1.542,24,1.687,32,1.848,40,2.281,43,2.048,51,0.754,63,2.965,70,1.412,71,1.854,81,2.574,82,2.574,94,2.281,99,2.965,141,2.017,144,2.574,145,2.048,147,2.281,169,2.048,174,3.367,199,2.574,241,2.574,321,2.965,328,2.965,332,2.574,410,2.574,411,1.542,474,3.559,475,2.965,476,4.586,477,3.559,478,3.559,479,3.559,480,3.559,481,2.965,482,3.559,483,2.574,484,2.965,485,2.965,486,2.965,487,3.559,488,2.965,489,3.559,490,2.574,491,2.965,492,3.559,493,3.559,494,3.559,495,2.574,496,2.965]],["t/33",[1,2.781,3,0.13,9,0.832,11,1.666,24,2.687,27,2.003,29,1.823,51,0.792,58,0.5,93,2.465,115,2.465,129,2.003,130,1.943,144,2.781,153,2.465,155,3.368,156,1.666,239,2.781,257,3.204,259,2.781,260,4.078,264,2.003,293,3.204,299,2.465,383,2.465,466,3.204,486,3.204,497,2.781,498,3.846,499,3.846,500,2.781,501,3.204,502,3.846,503,3.846,504,3.846,505,3.846,506,3.846]],["t/35",[0,2.133,3,0.149,4,3.088,13,1.138,25,2.267,29,1.757,40,2.376,50,3.088,51,0.6,53,1.757,58,0.621,71,1.93,112,1.606,129,1.93,169,2.133,216,2.376,217,1.93,246,3.457,346,3.088,365,3.088,387,3.088,411,1.606,465,3.457,507,1.757,508,3.706,509,4.781,510,3.706,511,2.49,512,3.706,513,2.68,514,3.088,515,3.706,516,3.706,517,3.088,518,3.088,519,2.68,520,2.376,521,2.133,522,3.706,523,3.088,524,2.376,525,3.088,526,3.706,527,3.088,528,2.376,529,3.088]],["t/37",[3,0.127,19,1.606,21,1.757,23,1.35,24,1.757,47,1.471,52,2.376,58,0.482,70,1.897,75,3.457,128,1.239,130,1.471,157,2.376,240,1.606,348,2.376,349,2.68,431,1.469,438,1.93,440,2.376,449,1.471,458,3.088,488,3.088,497,2.68,500,2.68,507,1.757,520,3.065,530,3.706,531,3.706,532,2.133,533,3.706,534,3.706,535,3.706,536,3.706,537,2.68,538,3.706,539,3.706,540,3.706,541,3.706,542,3.706,543,3.088,544,2.376,545,3.706,546,3.088,547,3.706,548,3.706,549,2.376,550,3.706,551,3.706,552,3.088,553,3.706]],["t/39",[2,2.32,3,0.105,9,0.603,17,1.451,21,1.868,22,1.785,23,1.435,46,1.435,47,1.105,51,0.451,52,1.785,58,0.512,64,1.785,73,1.451,76,1.785,93,1.785,128,0.931,141,1.206,175,3.306,178,1.206,204,1.451,220,1.785,251,3.282,255,2.014,264,1.451,275,1.785,276,2.014,304,2.014,310,1.785,359,1.785,370,2.014,379,2.014,383,1.785,397,2.32,404,2.014,434,2.32,441,2.014,448,1.707,449,1.105,450,1.603,456,1.603,460,2.849,465,2.014,483,2.849,495,2.849,532,1.603,549,1.785,554,2.785,555,2.785,556,2.32,557,2.785,558,2.732,559,2.785,560,2.785,561,2.785,562,1.785,563,2.014,564,2.785,565,2.785,566,2.785,567,2.785,568,2.785,569,2.785,570,4.572,571,2.785,572,2.785,573,2.785,574,2.32,575,2.785,576,2.785,577,2.785,578,2.785,579,2.785,580,2.785,581,2.785,582,2.32,583,2.785,584,2.785,585,2.785,586,2.32,587,3.94,588,2.785,589,2.785,590,2.785,591,1.603,592,2.785,593,2.785,594,2.785,595,2.785,596,2.32,597,2.785,598,2.785,599,2.785,600,2.32,601,2.785,602,2.785,603,2.785,604,2.785,605,2.785,606,2.32]],["t/41",[3,0.052,6,1.626,9,0.422,20,1.434,22,1.251,23,1.645,31,1.411,44,1.123,46,1.349,73,1.016,86,1.411,95,0.845,110,1.411,113,0.925,118,1.251,128,1.239,140,1.626,159,1.411,178,0.845,180,1.411,208,1.626,230,1.626,235,1.251,237,1.626,240,0.845,274,1.016,277,1.411,297,1.251,322,1.411,359,1.251,371,1.626,376,1.411,401,2.375,407,1.741,410,2.188,417,1.251,431,1.468,438,1.576,443,2.6,448,1.311,449,0.774,456,2.87,464,1.411,496,1.626,507,0.925,521,1.123,524,1.251,549,1.939,558,1.576,563,1.411,582,1.626,596,1.626,606,1.626,607,1.951,608,1.411,609,1.951,610,1.951,611,1.626,612,1.951,613,1.951,614,1.951,615,3.706,616,3.606,617,4.175,618,1.626,619,1.951,620,3.026,621,1.951,622,1.951,623,1.411,624,3.706,625,3.706,626,1.626,627,2.188,628,1.626,629,1.411,630,3.026,631,1.951,632,4.175,633,2.521,634,1.951,635,1.251,636,1.951,637,1.951,638,1.951,639,1.951,640,1.951,641,3.026,642,3.026,643,1.626,644,1.951,645,1.951,646,1.951,647,1.951,648,1.626,649,1.951,650,1.951,651,3.087,652,1.951,653,2.188,654,1.951,655,3.026,656,1.951,657,1.951,658,1.951,659,1.626,660,1.951,661,1.411,662,1.951,663,1.951,664,1.951,665,1.951,666,1.951,667,3.764,668,1.741,669,1.626,670,1.951,671,1.626,672,1.626,673,2.521,674,3.087,675,2.188,676,2.521,677,1.626,678,1.626,679,3.087,680,2.521,681,2.188,682,1.626,683,1.626,684,1.626,685,1.626,686,1.626,687,1.626,688,1.626,689,1.626,690,1.626,691,2.521,692,3.478,693,1.626,694,1.626,695,1.951,696,1.951,697,1.951,698,1.951,699,1.951,700,1.951,701,1.626,702,1.951,703,1.951,704,1.951]],["t/43",[3,0.115,7,1.83,10,1.656,13,0.977,27,1.656,51,0.699,53,1.508,56,2.649,58,0.561,70,1.262,88,1.83,128,1.064,130,1.262,157,2.039,186,1.83,240,1.378,274,1.656,305,2.649,306,2.3,360,2.649,380,2.3,392,2.3,407,1.83,411,1.378,431,0.977,438,1.656,440,2.039,443,1.83,450,2.823,470,2.649,475,2.649,507,1.508,511,1.656,514,2.649,521,1.83,528,2.039,529,2.649,562,2.039,705,3.18,706,3.18,707,3.18,708,2.649,709,3.18,710,3.18,711,3.18,712,3.18,713,3.18,714,3.18,715,3.18,716,3.18,717,2.3,718,3.18,719,3.18,720,2.649,721,3.18,722,3.18,723,3.18,724,2.649,725,2.649,726,3.18,727,3.18,728,3.18,729,2.649,730,3.18,731,3.18,732,3.18,733,3.18,734,3.18,735,2.649,736,3.18,737,3.18,738,3.18,739,3.18,740,3.18,741,2.649,742,3.18,743,3.18,744,3.18,745,3.18,746,3.18,747,3.18,748,3.18]],["t/45",[3,0.134,10,2.093,24,1.905,46,1.463,70,1.594,112,1.741,141,1.741,177,4.192,178,1.741,179,3.347,199,2.905,349,2.905,427,2.905,431,1.546,490,2.905,552,3.347,668,2.312,725,3.347,735,3.347,749,4.018,750,3.347,751,3.347,752,3.347,753,4.018,754,3.347,755,4.018,756,4.018,757,2.905,758,4.018,759,4.018,760,4.018,761,4.018,762,4.018,763,3.347,764,4.018,765,3.347,766,4.018]],["t/47",[3,0.1,13,1.156,19,1.631,20,2.528,21,1.785,58,0.489,75,3.492,76,2.413,173,2.166,310,2.413,348,2.413,431,1.483,448,1.631,449,1.494,532,2.166,558,1.961,668,3.562,767,3.765,768,4.829,769,4.829,770,3.765,771,3.765,772,4.442,773,4.023,774,2.722,775,2.722,776,3.136,777,3.765,778,3.136,779,3.136,780,3.765,781,3.765,782,3.765,783,2.722,784,3.765]],["t/49",[3,0.117,25,2.092,46,1.607,51,0.714,71,2.299,218,2.829,313,3.192,358,2.829,511,2.299,528,2.829,635,2.829,717,3.192,757,3.192,783,3.192,785,3.677,786,3.677,787,3.677,788,3.677,789,3.677,790,3.677,791,3.192,792,3.677,793,3.192,794,4.414]],["t/84",[3,0.145,9,0.748,13,1.062,19,1.497,21,2.58,46,1.259,51,0.739,53,1.639,95,1.497,96,2.879,155,1.989,156,1.497,184,2.879,254,2.499,298,1.989,310,2.215,375,2.499,411,1.497,431,1.571,448,1.497,449,1.372,507,1.639,519,2.499,532,1.989,544,2.215,546,2.879,562,2.215,591,2.944,627,2.499,720,2.879,724,2.879,751,2.879,763,2.879,765,2.879,795,2.879,796,2.879,797,3.456,798,3.456,799,3.456,800,2.879,801,2.879,802,3.456,803,2.879,804,3.456,805,3.456,806,3.456,807,2.879,808,2.879,809,2.499,810,2.879,811,3.456,812,3.456,813,3.456,814,3.456,815,3.456,816,3.456,817,2.879,818,3.456]],["t/86",[3,0.145,7,1.174,9,0.442,10,1.063,17,1.063,19,0.884,20,0.967,22,1.308,23,1.14,24,0.967,25,0.967,46,1.388,47,0.81,48,1.063,51,0.33,52,1.308,58,0.265,62,1.7,69,1.7,70,0.81,87,1.063,101,1.7,104,1.475,128,1.047,130,1.243,135,2.007,141,0.884,145,1.174,147,1.308,156,0.884,172,1.475,174,1.475,178,1.356,201,1.475,204,1.063,217,1.063,220,1.308,240,0.884,254,1.475,259,1.475,262,1.7,286,1.308,298,1.174,299,1.308,303,1.475,359,1.308,361,1.308,375,1.475,386,1.475,388,1.7,409,1.475,411,0.884,417,1.308,420,1.7,431,1.647,438,1.063,440,1.308,441,1.475,442,1.7,443,2.193,448,1.356,450,1.174,471,1.7,481,1.7,490,1.475,497,1.475,507,2.542,511,1.063,513,1.475,519,1.475,520,2.007,521,1.174,537,1.475,544,1.308,556,1.7,558,1.985,562,1.308,574,1.7,591,1.174,600,1.7,608,1.475,627,1.475,643,1.7,648,1.7,661,1.475,800,1.7,801,1.7,803,1.7,807,1.7,808,1.7,809,1.475,810,2.609,819,1.7,820,2.04,821,2.04,822,2.04,823,2.04,824,2.04,825,2.04,826,2.04,827,2.04,828,2.04,829,2.04,830,2.04,831,2.04,832,2.04,833,2.04,834,2.04,835,2.04,836,2.04,837,2.04,838,3.131,839,2.04,840,2.04,841,2.04,842,1.7,843,2.04,844,2.04,845,2.04,846,2.04,847,2.04,848,2.04,849,2.04,850,1.7,851,2.04,852,2.04,853,2.04,854,2.04,855,2.04,856,2.04,857,2.04,858,2.04,859,2.04,860,2.04,861,1.7,862,1.7,863,2.04,864,2.04,865,1.7,866,1.7,867,2.04,868,2.04,869,2.04,870,2.04,871,3.131,872,2.04,873,2.04,874,2.04,875,2.04,876,2.04,877,2.04,878,1.7,879,2.04,880,1.7,881,2.04,882,2.04,883,1.7,884,2.04,885,2.04,886,2.04,887,2.04,888,2.04,889,2.04,890,2.04,891,2.04,892,1.7,893,1.475,894,1.7,895,2.04,896,2.04,897,2.04,898,1.7]],["t/88",[15,2.533,58,0.632,103,2.798,145,2.798,431,1.494,893,3.516,899,4.863,900,4.863,901,3.516]],["t/90",[3,0.077,7,1.07,9,0.403,20,1.382,21,0.882,23,1.481,26,1.192,28,1.192,46,1.309,47,1.157,51,0.759,58,0.529,74,0.969,86,2.108,87,0.969,88,1.07,95,1.263,113,0.882,125,1.55,128,1.36,141,1.263,149,1.345,156,0.806,173,1.07,213,1.345,216,1.192,217,0.969,226,1.868,235,1.192,240,0.806,244,1.345,261,1.345,274,0.969,277,1.345,284,2.428,298,1.07,301,2.068,302,1.55,306,1.345,322,1.345,333,1.345,334,1.345,358,1.192,400,1.55,401,2.304,407,2.068,417,1.192,431,1.44,438,0.969,443,2.068,448,2.03,449,0.738,456,2.697,463,1.55,483,1.345,500,1.345,507,0.882,511,1.518,524,1.192,525,1.55,527,1.55,532,1.677,543,1.55,544,1.192,558,2.119,591,1.677,608,2.108,616,1.345,623,1.345,626,1.55,633,1.55,635,1.192,651,2.428,653,1.345,661,1.345,667,3.904,668,3.129,669,2.428,671,1.55,672,1.55,673,2.428,674,2.994,675,2.108,676,2.428,677,1.55,678,1.55,679,2.994,680,2.428,681,2.108,682,1.55,683,1.55,684,1.55,685,1.55,686,1.55,687,1.55,688,1.55,689,1.55,690,1.55,691,2.428,692,3.389,693,1.55,694,1.55,701,1.55,729,1.55,774,3.195,775,2.108,809,1.345,850,1.55,862,1.55,892,1.55,901,1.345,902,2.915,903,1.86,904,1.86,905,1.86,906,1.86,907,1.55,908,1.86,909,1.86,910,1.86,911,1.86,912,1.86,913,1.86,914,1.55,915,1.86,916,1.86,917,1.86,918,1.86,919,1.86,920,1.86,921,1.86,922,1.86,923,1.86,924,1.55,925,1.86,926,1.55,927,1.55,928,1.86,929,1.86,930,1.86,931,1.55,932,1.86,933,2.915,934,1.86,935,1.86,936,1.55,937,1.86,938,1.86,939,1.55,940,1.86,941,1.86,942,1.86,943,1.86,944,2.428,945,1.86]],["t/92",[7,0.612,9,0.525,11,0.46,13,0.327,19,0.795,20,1.368,23,0.669,26,1.177,27,0.554,48,0.554,49,1.53,51,0.392,58,0.571,64,0.681,74,0.554,88,0.612,90,0.769,94,1.177,95,1.05,97,0.681,103,0.612,110,0.769,120,0.886,124,1.057,128,0.614,129,1.262,131,1.554,135,0.681,136,1.328,141,1.831,157,1.177,165,1.328,173,1.395,178,0.46,180,0.769,186,1.057,189,0.681,193,3.658,201,0.769,204,0.554,213,0.769,219,0.769,220,0.681,223,0.886,226,1.177,228,0.886,240,0.46,241,0.769,250,0.886,261,0.769,265,1.554,268,0.769,275,0.681,279,0.886,280,0.886,286,0.681,287,1.554,299,1.177,301,0.612,308,0.886,320,0.769,326,0.886,333,1.753,334,0.769,336,0.886,369,0.886,370,2.086,377,0.769,384,0.886,391,0.886,392,0.769,395,0.886,401,0.681,407,0.612,409,0.769,411,0.46,419,1.53,428,0.886,431,0.327,447,0.886,448,1.05,449,1.799,450,1.875,452,0.886,453,0.886,456,1.057,460,0.769,476,0.886,484,0.886,485,0.886,491,0.886,501,0.886,513,0.769,524,0.681,549,0.681,558,0.956,586,1.53,591,1.057,611,0.886,616,0.769,618,0.886,623,1.328,628,0.886,629,0.769,653,0.769,659,0.886,668,3.487,675,0.769,681,0.769,708,0.886,772,1.53,773,0.886,774,1.328,775,0.769,776,0.886,778,3.522,779,1.53,861,2.019,865,1.53,866,0.886,878,0.886,880,0.886,883,0.886,893,0.769,894,0.886,898,0.886,907,0.886,914,0.886,924,1.53,926,2.404,927,2.019,931,0.886,936,0.886,939,0.886,944,0.886,946,1.063,947,1.836,948,1.063,949,1.063,950,1.063,951,1.063,952,1.063,953,1.063,954,1.063,955,1.063,956,1.063,957,1.063,958,1.063,959,1.063,960,1.063,961,1.063,962,2.885,963,1.063,964,2.424,965,1.063,966,1.836,967,1.063,968,1.063,969,1.063,970,1.836,971,1.063,972,1.063,973,1.836,974,1.063,975,1.063,976,1.063,977,1.063,978,1.063,979,1.063,980,1.063,981,1.063,982,2.424,983,1.063,984,1.063,985,1.063,986,1.063,987,1.063,988,1.063,989,1.836,990,2.424,991,1.836,992,1.063,993,2.424,994,1.063,995,1.063,996,1.063,997,3.564,998,1.836,999,1.063,1000,1.836,1001,1.063,1002,1.063,1003,1.063,1004,1.063,1005,1.063,1006,1.063,1007,1.836,1008,1.063,1009,1.063,1010,1.063,1011,1.063,1012,1.063,1013,1.063,1014,1.063,1015,1.063,1016,1.063,1017,1.063,1018,1.063,1019,1.063,1020,1.063,1021,1.063,1022,1.063,1023,1.063,1024,1.063,1025,1.063,1026,1.063,1027,1.063,1028,1.063,1029,1.063,1030,1.063,1031,1.063,1032,1.063,1033,1.063,1034,1.063,1035,1.063,1036,1.063,1037,1.063,1038,1.063,1039,1.063,1040,1.063,1041,1.063,1042,1.063,1043,1.063,1044,1.063,1045,1.063,1046,1.063,1047,1.063,1048,1.063,1049,1.063,1050,1.063,1051,1.063,1052,2.424,1053,1.063,1054,1.063,1055,1.063,1056,1.063,1057,2.424,1058,3.258,1059,1.063,1060,1.836,1061,1.063,1062,1.063,1063,1.063,1064,1.063,1065,1.063,1066,1.063,1067,1.063,1068,1.836,1069,1.063,1070,1.063,1071,2.885,1072,1.063,1073,1.063,1074,1.836,1075,1.836,1076,1.063,1077,1.063,1078,1.063,1079,2.424,1080,2.885,1081,1.836,1082,1.063,1083,1.063,1084,1.063,1085,2.424,1086,1.063,1087,1.063,1088,1.063,1089,1.063,1090,1.063,1091,1.063,1092,1.063,1093,1.063,1094,1.063,1095,1.063,1096,1.063,1097,1.063,1098,1.063,1099,1.063,1100,1.063,1101,2.424,1102,1.063,1103,1.063,1104,1.063,1105,1.063,1106,1.063,1107,1.836,1108,1.063,1109,1.063,1110,1.063,1111,1.836,1112,1.063,1113,1.836,1114,1.836,1115,2.424,1116,1.836,1117,1.836,1118,1.836,1119,1.836,1120,2.424,1121,2.424,1122,1.063,1123,1.063,1124,1.063,1125,1.836,1126,1.063,1127,1.063,1128,1.063,1129,1.063]],["t/94",[0,1.915,3,0.118,9,0.72,10,1.733,21,1.578,30,2.133,40,2.133,42,2.406,43,1.915,44,1.915,70,1.321,73,1.733,111,2.772,112,1.442,129,1.733,141,1.442,217,1.733,219,2.406,239,2.406,274,1.733,301,1.915,363,2.772,404,2.406,411,1.442,421,2.772,427,2.406,431,1.368,449,1.321,495,2.406,517,2.772,518,2.772,520,3.218,521,2.563,523,2.772,537,2.406,563,2.406,629,2.406,741,2.772,750,2.772,752,2.772,754,2.772,791,2.406,793,2.406,795,2.772,796,2.772,817,2.772,819,2.772,842,2.772,901,3.221,1130,3.328,1131,3.328,1132,3.328,1133,3.328,1134,3.328,1135,3.328,1136,3.328,1137,3.328,1138,3.328,1139,3.328,1140,3.328,1141,3.328,1142,3.328,1143,3.328,1144,3.328,1145,3.328,1146,3.328,1147,3.328,1148,3.328,1149,3.328,1150,3.328,1151,3.328]],["t/96",[3,0.117,25,2.08,46,1.597,51,0.71,71,2.285,218,2.812,313,3.172,358,2.812,511,2.285,528,2.812,635,2.812,717,3.172,757,3.172,783,3.172,785,3.654,786,3.654,787,3.654,788,3.654,789,3.654,790,3.654,791,3.172,792,3.654,793,3.172,1152,4.387,1153,4.387]]],"invertedIndex":[["",{"_index":668,"t":{"41":{"position":[[1321,1],[1374,1]]},"45":{"position":[[340,2]]},"47":{"position":[[184,1],[205,1],[245,1],[262,1],[291,2],[307,3],[311,2],[353,1],[455,2]]},"90":{"position":[[206,2],[510,1],[563,1],[1007,3],[1716,2],[1972,1],[1981,1],[2011,1],[2021,1],[2058,1],[2076,1]]},"92":{"position":[[452,1],[486,1],[514,1],[542,2],[545,2],[548,1],[567,2],[590,3],[594,2],[615,1],[647,2],[666,2],[684,5],[690,2],[1103,1],[1140,2],[1196,2],[1440,2],[1496,1],[1504,2],[1578,1],[1861,1],[1924,2],[1940,2],[2615,2],[2700,1],[2715,2],[2724,2],[3789,1],[3836,2],[3885,1],[3917,3],[3932,1],[3979,3],[4175,2],[4648,1],[4700,2],[4793,1],[4795,2],[5003,1],[5050,2],[5137,1],[5161,2],[5199,1],[5223,1],[5225,2],[5257,1],[5259,2]]}}}],["0",{"_index":1069,"t":{"92":{"position":[[3338,4]]}}}],["0.12ms",{"_index":683,"t":{"41":{"position":[[1569,7]]},"90":{"position":[[758,7]]}}}],["0.5ms",{"_index":685,"t":{"41":{"position":[[1589,6]]},"90":{"position":[[778,6]]}}}],["1",{"_index":68,"t":{"5":{"position":[[141,2]]},"15":{"position":[[19,1]]}}}],["100",{"_index":1058,"t":{"92":{"position":[[2975,4],[2980,4],[3315,3],[3826,4],[3831,4]]}}}],["100k",{"_index":674,"t":{"41":{"position":[[1483,4],[1539,4],[1602,4]]},"90":{"position":[[672,4],[728,4],[791,4]]}}}],["108",{"_index":689,"t":{"41":{"position":[[1654,4]]},"90":{"position":[[843,4]]}}}],["12",{"_index":49,"t":{"3":{"position":[[635,2]]},"92":{"position":[[4776,3],[5127,3]]}}}],["150",{"_index":1067,"t":{"92":{"position":[[3325,3]]}}}],["15ms",{"_index":677,"t":{"41":{"position":[[1513,5]]},"90":{"position":[[702,5]]}}}],["1700",{"_index":686,"t":{"41":{"position":[[1596,5]]},"90":{"position":[[785,5]]}}}],["17417",{"_index":684,"t":{"41":{"position":[[1577,6]]},"90":{"position":[[766,6]]}}}],["2",{"_index":311,"t":{"17":{"position":[[6,1]]}}}],["21ms",{"_index":682,"t":{"41":{"position":[[1563,5]]},"90":{"position":[[752,5]]}}}],["233",{"_index":678,"t":{"41":{"position":[[1519,4]]},"90":{"position":[[708,4]]}}}],["24ms",{"_index":688,"t":{"41":{"position":[[1648,5]]},"90":{"position":[[837,5]]}}}],["27",{"_index":589,"t":{"39":{"position":[[825,3]]}}}],["2d",{"_index":19,"t":{"3":{"position":[[239,2]]},"29":{"position":[[114,2]]},"31":{"position":[[208,2]]},"37":{"position":[[62,2]]},"47":{"position":[[438,2]]},"84":{"position":[[513,2]]},"86":{"position":[[2234,2]]},"92":{"position":[[845,2],[2864,2]]}}}],["2d/3d",{"_index":499,"t":{"33":{"position":[[173,5]]}}}],["2ms",{"_index":680,"t":{"41":{"position":[[1529,4],[1664,4]]},"90":{"position":[[718,4],[853,4]]}}}],["3",{"_index":159,"t":{"11":{"position":[[343,1]]},"23":{"position":[[6,1]]},"41":{"position":[[1137,2]]}}}],["300",{"_index":1068,"t":{"92":{"position":[[3330,3],[3334,3]]}}}],["350",{"_index":681,"t":{"41":{"position":[[1534,4],[1669,4]]},"90":{"position":[[723,4],[858,4]]},"92":{"position":[[3319,3]]}}}],["3d",{"_index":476,"t":{"31":{"position":[[52,2],[215,2],[269,3],[352,2]]},"92":{"position":[[982,2]]}}}],["3rd",{"_index":139,"t":{"9":{"position":[[622,3]]}}}],["4",{"_index":468,"t":{"29":{"position":[[6,1]]}}}],["50",{"_index":1057,"t":{"92":{"position":[[2971,3],[3817,3],[3822,3]]}}}],["50ms",{"_index":676,"t":{"41":{"position":[[1507,5],[1642,5]]},"90":{"position":[[696,5],[831,5]]}}}],["8",{"_index":603,"t":{"39":{"position":[[1103,1]]}}}],["95",{"_index":583,"t":{"39":{"position":[[704,3]]}}}],["9ms",{"_index":679,"t":{"41":{"position":[[1524,4],[1584,4],[1659,4]]},"90":{"position":[[713,4],[773,4],[848,4]]}}}],["ability",{"_index":276,"t":{"15":{"position":[[420,7]]},"21":{"position":[[457,7]]},"39":{"position":[[477,7]]}}}],["above",{"_index":527,"t":{"35":{"position":[[480,5]]},"90":{"position":[[199,6]]}}}],["accelerated",{"_index":972,"t":{"92":{"position":[[857,11]]}}}],["achieves",{"_index":604,"t":{"39":{"position":[[1105,8]]}}}],["acknowledgment",{"_index":835,"t":{"86":{"position":[[525,14]]}}}],["adapt",{"_index":228,"t":{"13":{"position":[[782,5]]},"92":{"position":[[4054,5]]}}}],["add",{"_index":861,"t":{"86":{"position":[[1200,3]]},"92":{"position":[[1543,3],[1580,5],[4414,3]]}}}],["added",{"_index":1007,"t":{"92":{"position":[[1956,5],[3279,6]]}}}],["adding",{"_index":101,"t":{"7":{"position":[[437,6]]},"86":{"position":[[911,6]]}}}],["addition",{"_index":412,"t":{"25":{"position":[[729,9]]},"27":{"position":[[763,8]]}}}],["additional",{"_index":718,"t":{"43":{"position":[[322,10]]}}}],["address",{"_index":39,"t":{"3":{"position":[[520,7]]}}}],["addressed",{"_index":874,"t":{"86":{"position":[[1605,9]]}}}],["adjusted",{"_index":243,"t":{"13":{"position":[[1083,8]]}}}],["adopters",{"_index":1141,"t":{"94":{"position":[[319,8]]}}}],["advanced",{"_index":455,"t":{"27":{"position":[[649,8]]}}}],["advancements",{"_index":544,"t":{"37":{"position":[[398,12]]},"84":{"position":[[211,13]]},"86":{"position":[[1361,12]]},"90":{"position":[[1702,13]]}}}],["advantage",{"_index":454,"t":{"27":{"position":[[636,9]]}}}],["advisable",{"_index":1034,"t":{"92":{"position":[[2517,9]]}}}],["agnostic",{"_index":267,"t":{"15":{"position":[[205,8],[1061,8]]}}}],["aim",{"_index":848,"t":{"86":{"position":[[815,3]]}}}],["aims",{"_index":264,"t":{"15":{"position":[[146,4]]},"17":{"position":[[31,4]]},"21":{"position":[[143,4],[731,4]]},"25":{"position":[[32,4]]},"33":{"position":[[122,4]]},"39":{"position":[[928,4]]}}}],["allow",{"_index":1093,"t":{"92":{"position":[[4219,5]]}}}],["allowed",{"_index":577,"t":{"39":{"position":[[579,7]]}}}],["allowing",{"_index":204,"t":{"13":{"position":[[353,8],[874,8]]},"19":{"position":[[306,8]]},"25":{"position":[[237,8]]},"39":{"position":[[972,8]]},"86":{"position":[[756,8]]},"92":{"position":[[3425,8]]}}}],["allows",{"_index":136,"t":{"9":{"position":[[579,6]]},"25":{"position":[[800,6]]},"92":{"position":[[2019,6],[3582,6]]}}}],["alpha",{"_index":988,"t":{"92":{"position":[[1297,6]]}}}],["already",{"_index":885,"t":{"86":{"position":[[1832,7]]}}}],["alternatively",{"_index":789,"t":{"49":{"position":[[140,14]]},"96":{"position":[[139,14]]}}}],["although",{"_index":488,"t":{"31":{"position":[[381,8]]},"37":{"position":[[114,8]]}}}],["always",{"_index":22,"t":{"3":{"position":[[275,6]]},"39":{"position":[[988,6]]},"41":{"position":[[11,6]]},"86":{"position":[[553,6]]}}}],["amazing",{"_index":14,"t":{"3":{"position":[[171,7]]}}}],["animation",{"_index":505,"t":{"33":{"position":[[438,9]]}}}],["animations",{"_index":402,"t":{"25":{"position":[[416,11],[622,11]]}}}],["announce",{"_index":1,"t":{"3":{"position":[[18,8]]},"7":{"position":[[27,8]]},"33":{"position":[[28,8]]}}}],["announcement",{"_index":55,"t":{"3":{"position":[[698,13]]}}}],["announcing",{"_index":258,"t":{"15":{"position":[[28,10]]}}}],["another",{"_index":220,"t":{"13":{"position":[[608,7]]},"39":{"position":[[1159,7]]},"86":{"position":[[1068,7]]},"92":{"position":[[1199,7]]}}}],["antialias:true",{"_index":1006,"t":{"92":{"position":[[1909,14]]}}}],["antialiasing",{"_index":998,"t":{"92":{"position":[[1614,12],[1680,12]]}}}],["anticipating",{"_index":857,"t":{"86":{"position":[[1016,12]]}}}],["anyone",{"_index":176,"t":{"11":{"position":[[947,6]]}}}],["api",{"_index":450,"t":{"27":{"position":[[546,3]]},"39":{"position":[[189,4]]},"43":{"position":[[146,3],[350,3],[555,3]]},"86":{"position":[[2093,3]]},"92":{"position":[[2759,3],[2875,4],[4085,4],[5181,3],[5245,3]]}}}],["app",{"_index":334,"t":{"19":{"position":[[424,3]]},"90":{"position":[[1905,3]]},"92":{"position":[[510,3]]}}}],["app.init",{"_index":961,"t":{"92":{"position":[[556,10]]}}}],["appeal",{"_index":393,"t":{"25":{"position":[[196,6]]}}}],["appealing",{"_index":423,"t":{"25":{"position":[[980,10]]}}}],["appearance",{"_index":206,"t":{"13":{"position":[[379,10]]}}}],["application",{"_index":287,"t":{"15":{"position":[[636,12]]},"19":{"position":[[345,12],[795,11]]},"25":{"position":[[713,12]]},"92":{"position":[[454,12],[520,14],[570,11]]}}}],["applications",{"_index":32,"t":{"3":{"position":[[387,12]]},"9":{"position":[[78,13],[494,12]]},"15":{"position":[[102,13]]},"17":{"position":[[74,13]]},"19":{"position":[[110,13]]},"21":{"position":[[119,13],[374,12],[937,12],[1141,13]]},"25":{"position":[[96,12],[851,13],[1146,12]]},"27":{"position":[[746,13],[1168,13]]},"31":{"position":[[243,13],[619,13]]}}}],["applied",{"_index":991,"t":{"92":{"position":[[1392,7],[4973,7]]}}}],["apply",{"_index":701,"t":{"41":{"position":[[1994,5]]},"90":{"position":[[356,6]]}}}],["applying",{"_index":1001,"t":{"92":{"position":[[1772,8]]}}}],["appreciate",{"_index":413,"t":{"25":{"position":[[755,10]]}}}],["approach",{"_index":549,"t":{"37":{"position":[[512,8]]},"39":{"position":[[570,8]]},"41":{"position":[[230,10],[455,9]]},"92":{"position":[[1039,8]]}}}],["appropriate",{"_index":771,"t":{"47":{"position":[[113,11]]}}}],["apps",{"_index":16,"t":{"3":{"position":[[189,5]]}}}],["architecture",{"_index":610,"t":{"41":{"position":[[105,12]]}}}],["areas",{"_index":471,"t":{"29":{"position":[[88,5]]},"86":{"position":[[1725,5]]}}}],["arguably",{"_index":831,"t":{"86":{"position":[[384,8]]}}}],["arise",{"_index":1137,"t":{"94":{"position":[[233,6]]}}}],["aspect",{"_index":232,"t":{"13":{"position":[[818,6]]}}}],["aspects",{"_index":838,"t":{"86":{"position":[[615,7],[1641,7]]}}}],["assembled",{"_index":41,"t":{"3":{"position":[[545,9]]}}}],["asset",{"_index":259,"t":{"15":{"position":[[50,5]]},"33":{"position":[[390,5]]},"86":{"position":[[306,5]]}}}],["assetpack",{"_index":164,"t":{"11":{"position":[[507,10]]},"15":{"position":[[39,10],[128,9],[180,9],[403,9]]}}}],["assets",{"_index":272,"t":{"15":{"position":[[364,6],[458,6],[847,6]]},"25":{"position":[[1093,6]]}}}],["assured",{"_index":739,"t":{"43":{"position":[[722,7]]}}}],["async",{"_index":776,"t":{"47":{"position":[[223,5]]},"92":{"position":[[535,6]]}}}],["asynchronous",{"_index":947,"t":{"92":{"position":[[50,13],[374,12]]}}}],["attempt",{"_index":572,"t":{"39":{"position":[[494,7]]}}}],["audio",{"_index":293,"t":{"15":{"position":[[739,5]]},"33":{"position":[[367,6]]}}}],["autodetectrenderer",{"_index":772,"t":{"47":{"position":[[148,18],[186,18],[270,20]]},"92":{"position":[[467,18],[623,23]]}}}],["automatically",{"_index":277,"t":{"15":{"position":[[431,13]]},"41":{"position":[[2089,13]]},"90":{"position":[[1238,13]]}}}],["available",{"_index":175,"t":{"11":{"position":[[923,9]]},"27":{"position":[[904,9]]},"39":{"position":[[370,9],[691,9],[1024,9]]}}}],["avoid",{"_index":1036,"t":{"92":{"position":[[2550,5]]}}}],["avoids",{"_index":649,"t":{"41":{"position":[[985,6]]}}}],["await",{"_index":779,"t":{"47":{"position":[[264,5]]},"92":{"position":[[550,5],[617,5]]}}}],["away",{"_index":350,"t":{"19":{"position":[[854,5]]}}}],["b",{"_index":576,"t":{"39":{"position":[[562,2]]}}}],["back",{"_index":574,"t":{"39":{"position":[[537,4]]},"86":{"position":[[733,4]]}}}],["backend",{"_index":914,"t":{"90":{"position":[[1055,7]]},"92":{"position":[[215,7]]}}}],["bad",{"_index":760,"t":{"45":{"position":[[225,4]]}}}],["bandwidth",{"_index":660,"t":{"41":{"position":[[1176,9]]}}}],["bar",{"_index":909,"t":{"90":{"position":[[225,4]]}}}],["bars",{"_index":200,"t":{"13":{"position":[[258,5]]}}}],["based",{"_index":633,"t":{"41":{"position":[[634,5],[1702,5]]},"90":{"position":[[891,5]]}}}],["batch",{"_index":626,"t":{"41":{"position":[[431,5]]},"90":{"position":[[1420,5]]}}}],["batches",{"_index":622,"t":{"41":{"position":[[377,7]]}}}],["batching",{"_index":367,"t":{"21":{"position":[[518,8],[538,8]]}}}],["beautiful",{"_index":184,"t":{"13":{"position":[[61,9]]},"84":{"position":[[630,9]]}}}],["become",{"_index":336,"t":{"19":{"position":[[454,6]]},"92":{"position":[[2788,6]]}}}],["becomes",{"_index":594,"t":{"39":{"position":[[890,7]]}}}],["before",{"_index":593,"t":{"39":{"position":[[880,6]]}}}],["begin",{"_index":312,"t":{"17":{"position":[[13,5]]}}}],["behaviour",{"_index":207,"t":{"13":{"position":[[394,9]]}}}],["behind",{"_index":706,"t":{"43":{"position":[[26,6]]}}}],["being",{"_index":317,"t":{"19":{"position":[[28,5]]},"27":{"position":[[558,5]]}}}],["believe",{"_index":820,"t":{"86":{"position":[[13,7]]}}}],["below",{"_index":905,"t":{"90":{"position":[[82,5]]}}}],["benchmark",{"_index":690,"t":{"41":{"position":[[1680,9]]},"90":{"position":[[869,9]]}}}],["benefit",{"_index":579,"t":{"39":{"position":[[617,7]]}}}],["best",{"_index":359,"t":{"21":{"position":[[257,4]]},"39":{"position":[[1008,4]]},"41":{"position":[[1962,4]]},"86":{"position":[[673,4]]}}}],["beta",{"_index":75,"t":{"7":{"position":[[64,4]]},"37":{"position":[[87,4],[147,4]]},"47":{"position":[[28,4],[390,4]]}}}],["better",{"_index":301,"t":{"15":{"position":[[880,6]]},"27":{"position":[[1113,6]]},"90":{"position":[[1104,6],[1492,6],[1878,6]]},"92":{"position":[[4229,6]]},"94":{"position":[[279,7]]}}}],["between",{"_index":485,"t":{"31":{"position":[[307,7]]},"92":{"position":[[4594,7]]}}}],["big",{"_index":1147,"t":{"94":{"position":[[536,3]]}}}],["bigger",{"_index":846,"t":{"86":{"position":[[779,6]]}}}],["bitmap",{"_index":1107,"t":{"92":{"position":[[4496,6],[4685,6]]}}}],["bitmapfonts",{"_index":1096,"t":{"92":{"position":[[4317,11]]}}}],["bitmaptext",{"_index":1112,"t":{"92":{"position":[[4654,12]]}}}],["blend",{"_index":926,"t":{"90":{"position":[[1462,5]]},"92":{"position":[[1235,5],[1411,5],[1547,5],[2602,5]]}}}],["blog",{"_index":305,"t":{"15":{"position":[[962,4]]},"43":{"position":[[275,4]]}}}],["board",{"_index":889,"t":{"86":{"position":[[1942,5]]}}}],["boosting",{"_index":884,"t":{"86":{"position":[[1800,8]]}}}],["both",{"_index":235,"t":{"13":{"position":[[898,4]]},"25":{"position":[[206,4],[246,4],[951,4]]},"41":{"position":[[130,4]]},"90":{"position":[[266,4]]}}}],["boundaries",{"_index":796,"t":{"84":{"position":[[22,10]]},"94":{"position":[[652,10]]}}}],["breaking",{"_index":891,"t":{"86":{"position":[[2084,8]]}}}],["breaks",{"_index":923,"t":{"90":{"position":[[1426,7]]}}}],["brouwer",{"_index":122,"t":{"9":{"position":[[168,8]]}}}],["browser",{"_index":352,"t":{"21":{"position":[[27,7]]},"27":{"position":[[583,7]]}}}],["browsers",{"_index":570,"t":{"39":{"position":[[404,9],[711,9],[804,8]]}}}],["bubble",{"_index":160,"t":{"11":{"position":[[356,6]]}}}],["bubbo",{"_index":183,"t":{"11":{"position":[[1053,5],[1059,5]]}}}],["bugs",{"_index":762,"t":{"45":{"position":[[250,5]]}}}],["build",{"_index":31,"t":{"3":{"position":[[371,5]]},"21":{"position":[[895,5]]},"41":{"position":[[371,5]]}}}],["buildgeometryfrompath",{"_index":1081,"t":{"92":{"position":[[3673,21],[3887,23]]}}}],["building",{"_index":332,"t":{"19":{"position":[[331,8],[839,8]]},"27":{"position":[[1131,8]]},"31":{"position":[[604,8]]}}}],["built",{"_index":478,"t":{"31":{"position":[[83,5]]}}}],["bump",{"_index":636,"t":{"41":{"position":[[729,5]]}}}],["bundle",{"_index":463,"t":{"27":{"position":[[971,6]]},"90":{"position":[[1931,6]]}}}],["bundlers",{"_index":327,"t":{"19":{"position":[[237,8],[555,8]]}}}],["bunnies",{"_index":699,"t":{"41":{"position":[[1909,8]]}}}],["bunny",{"_index":671,"t":{"41":{"position":[[1423,5]]},"90":{"position":[[612,5]]}}}],["bunnymark",{"_index":692,"t":{"41":{"position":[[1716,9],[1761,9],[1774,9],[1796,9]]},"90":{"position":[[904,9],[949,9],[962,9],[984,9]]}}}],["burn",{"_index":1045,"t":{"92":{"position":[[2709,5]]}}}],["buttons",{"_index":190,"t":{"13":{"position":[[166,8],[236,8]]}}}],["call",{"_index":372,"t":{"21":{"position":[[630,5]]}}}],["called",{"_index":144,"t":{"11":{"position":[[38,6]]},"31":{"position":[[62,6]]},"33":{"position":[[78,6]]}}}],["camera",{"_index":973,"t":{"92":{"position":[[869,7],[964,6]]}}}],["candidate",{"_index":749,"t":{"45":{"position":[[34,10]]}}}],["canvas",{"_index":460,"t":{"27":{"position":[[873,6]]},"39":{"position":[[420,6],[545,6]]},"92":{"position":[[2857,6]]}}}],["capabilities",{"_index":8,"t":{"3":{"position":[[99,12]]},"27":{"position":[[662,13]]},"31":{"position":[[544,12]]}}}],["care",{"_index":912,"t":{"90":{"position":[[401,4]]}}}],["cases",{"_index":666,"t":{"41":{"position":[[1310,6]]}}}],["catalysed",{"_index":548,"t":{"37":{"position":[[498,9]]}}}],["causing",{"_index":37,"t":{"3":{"position":[[477,7]]}}}],["celebrating",{"_index":799,"t":{"84":{"position":[[111,11]]}}}],["certain",{"_index":876,"t":{"86":{"position":[[1633,7]]}}}],["change",{"_index":653,"t":{"41":{"position":[[1093,6],[1888,6]]},"90":{"position":[[1848,6]]},"92":{"position":[[1216,6]]}}}],["changed",{"_index":630,"t":{"41":{"position":[[506,7],[780,8]]}}}],["changer",{"_index":798,"t":{"84":{"position":[[102,8]]}}}],["changes",{"_index":240,"t":{"13":{"position":[[989,8]]},"23":{"position":[[78,7]]},"37":{"position":[[360,7]]},"41":{"position":[[681,7]]},"43":{"position":[[612,7]]},"86":{"position":[[2097,8]]},"90":{"position":[[153,8]]},"92":{"position":[[2777,7]]}}}],["changing",{"_index":687,"t":{"41":{"position":[[1615,9]]},"90":{"position":[[804,9]]}}}],["characters",{"_index":1102,"t":{"92":{"position":[[4418,10]]}}}],["chats",{"_index":1153,"t":{"96":{"position":[[241,6]]}}}],["check",{"_index":216,"t":{"13":{"position":[[528,5]]},"15":{"position":[[1126,5]]},"35":{"position":[[443,5]]},"90":{"position":[[478,5]]}}}],["checkboxes",{"_index":191,"t":{"13":{"position":[[175,11]]}}}],["cherry",{"_index":1041,"t":{"92":{"position":[[2660,6]]}}}],["children",{"_index":990,"t":{"92":{"position":[[1364,8],[1461,8],[1525,8]]}}}],["chit",{"_index":1152,"t":{"96":{"position":[[236,4]]}}}],["class",{"_index":447,"t":{"27":{"position":[[496,5],[925,5]]},"92":{"position":[[3491,5]]}}}],["classics",{"_index":1010,"t":{"92":{"position":[[2098,9]]}}}],["cleaner",{"_index":869,"t":{"86":{"position":[[1504,7]]}}}],["clear",{"_index":854,"t":{"86":{"position":[[956,6]]}}}],["cli",{"_index":315,"t":{"19":{"position":[[19,3],[393,3]]}}}],["closely",{"_index":1047,"t":{"92":{"position":[[2829,7]]}}}],["code",{"_index":178,"t":{"11":{"position":[[979,4]]},"21":{"position":[[240,5],[1097,4]]},"25":{"position":[[545,5]]},"39":{"position":[[1066,5]]},"41":{"position":[[814,4]]},"45":{"position":[[276,5]]},"86":{"position":[[630,4],[928,5]]},"92":{"position":[[146,4]]}}}],["codebase",{"_index":552,"t":{"37":{"position":[[543,8]]},"45":{"position":[[391,8]]}}}],["collaborate",{"_index":396,"t":{"25":{"position":[[261,11]]}}}],["collaboration",{"_index":425,"t":{"25":{"position":[[1022,14]]}}}],["collection",{"_index":146,"t":{"11":{"position":[[76,10]]}}}],["color",{"_index":1044,"t":{"92":{"position":[[2702,6]]}}}],["color:'blue",{"_index":1129,"t":{"92":{"position":[[5210,12]]}}}],["color:'red",{"_index":1127,"t":{"92":{"position":[[5148,12]]}}}],["colorblend",{"_index":1011,"t":{"92":{"position":[[2108,11]]}}}],["colorburnblend",{"_index":1012,"t":{"92":{"position":[[2120,15]]}}}],["colordodgeblend",{"_index":1013,"t":{"92":{"position":[[2136,16]]}}}],["combine",{"_index":234,"t":{"13":{"position":[[890,7]]}}}],["comet",{"_index":389,"t":{"25":{"position":[[0,5],[332,5],[1037,5]]}}}],["coming",{"_index":512,"t":{"35":{"position":[[67,6]]}}}],["committed",{"_index":1134,"t":{"94":{"position":[[163,9]]}}}],["community",{"_index":25,"t":{"3":{"position":[[313,9],[506,10]]},"9":{"position":[[218,9]]},"19":{"position":[[498,10]]},"35":{"position":[[88,10],[207,10]]},"49":{"position":[[180,9]]},"86":{"position":[[66,9]]},"96":{"position":[[179,9]]}}}],["compared",{"_index":442,"t":{"27":{"position":[[382,8]]},"86":{"position":[[1948,8]]}}}],["compatibility",{"_index":896,"t":{"86":{"position":[[2151,13]]}}}],["compilation",{"_index":940,"t":{"90":{"position":[[1909,12]]}}}],["complete",{"_index":433,"t":{"27":{"position":[[59,8]]}}}],["complex",{"_index":236,"t":{"13":{"position":[[923,8]]},"21":{"position":[[499,7]]},"25":{"position":[[484,7]]},"27":{"position":[[1140,8]]}}}],["complexity",{"_index":877,"t":{"86":{"position":[[1669,10]]}}}],["complicated",{"_index":323,"t":{"19":{"position":[[181,11]]},"21":{"position":[[656,11]]}}}],["components",{"_index":138,"t":{"9":{"position":[[607,10]]},"13":{"position":[[147,10],[317,10]]}}}],["comprehensive",{"_index":722,"t":{"43":{"position":[[429,13]]}}}],["compress",{"_index":294,"t":{"15":{"position":[[767,8]]}}}],["computational",{"_index":641,"t":{"41":{"position":[[843,13],[1207,13]]}}}],["computations",{"_index":560,"t":{"39":{"position":[[109,12]]}}}],["concept",{"_index":963,"t":{"92":{"position":[[713,7]]}}}],["conform",{"_index":1122,"t":{"92":{"position":[[4825,7]]}}}],["considering",{"_index":105,"t":{"7":{"position":[[481,11]]}}}],["const",{"_index":778,"t":{"47":{"position":[[247,5]]},"92":{"position":[[504,5],[600,5],[1087,5],[1847,5],[3778,5],[3870,5],[3921,5],[4635,5],[4990,5]]}}}],["construct",{"_index":631,"t":{"41":{"position":[[543,9]]}}}],["consuming",{"_index":366,"t":{"21":{"position":[[391,10]]}}}],["container",{"_index":982,"t":{"92":{"position":[[1093,9],[1109,11],[1341,10]]}}}],["container.blendmode",{"_index":996,"t":{"92":{"position":[[1558,19]]}}}],["container.tint",{"_index":994,"t":{"92":{"position":[[1481,14]]}}}],["containers",{"_index":966,"t":{"92":{"position":[[768,10],[1148,10]]}}}],["content",{"_index":483,"t":{"31":{"position":[[218,7]]},"39":{"position":[[259,7],[594,7]]},"90":{"position":[[1185,8]]}}}],["context",{"_index":1050,"t":{"92":{"position":[[2867,7]]}}}],["continuation",{"_index":119,"t":{"9":{"position":[[110,12]]}}}],["continue",{"_index":741,"t":{"43":{"position":[[759,8]]},"94":{"position":[[618,8]]}}}],["continuing",{"_index":522,"t":{"35":{"position":[[379,10]]}}}],["contribute",{"_index":179,"t":{"11":{"position":[[987,10]]},"45":{"position":[[265,10]]}}}],["contributions",{"_index":1132,"t":{"94":{"position":[[101,14]]}}}],["contributors",{"_index":518,"t":{"35":{"position":[[222,13]]},"94":{"position":[[394,12]]}}}],["conversations",{"_index":794,"t":{"49":{"position":[[237,14]]}}}],["convert",{"_index":290,"t":{"15":{"position":[[695,7],[731,7]]}}}],["cool",{"_index":985,"t":{"92":{"position":[[1207,4]]}}}],["core",{"_index":135,"t":{"9":{"position":[[551,4]]},"27":{"position":[[230,4]]},"86":{"position":[[889,4],[1247,4]]},"92":{"position":[[2503,5]]}}}],["correct",{"_index":619,"t":{"41":{"position":[[303,7]]}}}],["correcting",{"_index":870,"t":{"86":{"position":[[1531,10]]}}}],["course",{"_index":539,"t":{"37":{"position":[[274,6]]}}}],["covered",{"_index":904,"t":{"90":{"position":[[56,7]]}}}],["cpu",{"_index":667,"t":{"41":{"position":[[1317,3],[1341,3],[1442,3],[1449,3],[1453,3]]},"90":{"position":[[506,3],[530,3],[631,3],[638,3],[642,3],[1363,3]]}}}],["create",{"_index":13,"t":{"3":{"position":[[164,6]]},"9":{"position":[[481,6],[593,6]]},"11":{"position":[[144,6],[871,6]]},"13":{"position":[[54,6],[699,6],[916,6],[1046,6]]},"19":{"position":[[411,6],[431,6],[775,6]]},"21":{"position":[[1106,6]]},"25":{"position":[[79,6],[468,6]]},"35":{"position":[[313,6]]},"43":{"position":[[385,6]]},"47":{"position":[[97,6]]},"84":{"position":[[422,6]]},"92":{"position":[[3839,6]]}}}],["created",{"_index":26,"t":{"3":{"position":[[327,7]]},"9":{"position":[[149,7]]},"90":{"position":[[1094,7]]},"92":{"position":[[4728,7],[5078,8]]}}}],["creating",{"_index":320,"t":{"19":{"position":[[90,8]]},"25":{"position":[[378,8],[604,8],[694,8],[1114,8]]},"92":{"position":[[1823,8]]}}}],["creation",{"_index":1000,"t":{"92":{"position":[[1735,8],[3597,8]]}}}],["crucial",{"_index":728,"t":{"43":{"position":[[502,7]]}}}],["curious",{"_index":700,"t":{"41":{"position":[[1918,7]]}}}],["current",{"_index":78,"t":{"7":{"position":[[112,7]]}}}],["currently",{"_index":64,"t":{"5":{"position":[[106,9]]},"27":{"position":[[397,10]]},"39":{"position":[[762,9]]},"92":{"position":[[3386,9]]}}}],["custom",{"_index":137,"t":{"9":{"position":[[600,6]]}}}],["customizable",{"_index":203,"t":{"13":{"position":[[339,13]]}}}],["cutting",{"_index":863,"t":{"86":{"position":[[1293,7]]}}}],["d",{"_index":606,"t":{"39":{"position":[[1177,2]]},"41":{"position":[[2103,2]]}}}],["darkenblend",{"_index":1014,"t":{"92":{"position":[[2153,12]]}}}],["data",{"_index":625,"t":{"41":{"position":[[406,4],[593,4],[1114,4]]}}}],["debug",{"_index":354,"t":{"21":{"position":[[100,5],[757,5]]}}}],["decade",{"_index":800,"t":{"84":{"position":[[125,6]]},"86":{"position":[[1076,7]]}}}],["decade—yes",{"_index":540,"t":{"37":{"position":[[286,11]]}}}],["decent",{"_index":664,"t":{"41":{"position":[[1267,6]]}}}],["dedicated",{"_index":42,"t":{"3":{"position":[[557,9]]},"9":{"position":[[303,9]]},"94":{"position":[[384,9]]}}}],["deeper",{"_index":380,"t":{"21":{"position":[[994,6]]},"29":{"position":[[76,6]]},"43":{"position":[[304,6]]}}}],["default",{"_index":1109,"t":{"92":{"position":[[4549,7]]}}}],["delve",{"_index":470,"t":{"29":{"position":[[70,5]]},"43":{"position":[[298,5]]}}}],["demonstrate",{"_index":162,"t":{"11":{"position":[[398,11],[574,11]]}}}],["depending",{"_index":1110,"t":{"92":{"position":[[4610,9]]}}}],["deprecation",{"_index":744,"t":{"43":{"position":[[796,11]]}}}],["design",{"_index":227,"t":{"13":{"position":[[759,6]]},"15":{"position":[[1070,7]]},"25":{"position":[[68,6]]}}}],["designed",{"_index":361,"t":{"21":{"position":[[279,8]]},"25":{"position":[[184,8]]},"27":{"position":[[279,8]]},"86":{"position":[[977,8]]}}}],["designers",{"_index":394,"t":{"25":{"position":[[211,9],[454,9]]}}}],["designs",{"_index":419,"t":{"25":{"position":[[907,8]]},"92":{"position":[[3461,8],[3769,8]]}}}],["desktop",{"_index":251,"t":{"13":{"position":[[1228,7]]},"39":{"position":[[396,7],[796,7]]}}}],["despite",{"_index":732,"t":{"43":{"position":[[559,7]]}}}],["destructuring",{"_index":868,"t":{"86":{"position":[[1467,13]]}}}],["detailed",{"_index":907,"t":{"90":{"position":[[123,8]]},"92":{"position":[[3752,8]]}}}],["details",{"_index":307,"t":{"15":{"position":[[991,7]]}}}],["dev",{"_index":351,"t":{"21":{"position":[[7,3],[440,3],[721,3],[818,3]]}}}],["developed",{"_index":318,"t":{"19":{"position":[[34,9]]},"27":{"position":[[564,9]]}}}],["developer",{"_index":222,"t":{"13":{"position":[[653,9]]}}}],["developers",{"_index":12,"t":{"3":{"position":[[150,10],[360,10],[575,10]]},"9":{"position":[[467,10]]},"11":{"position":[[730,10],[849,10]]},"13":{"position":[[31,10]]},"15":{"position":[[340,10],[821,10]]},"19":{"position":[[140,10],[652,10]]},"21":{"position":[[89,10],[170,10],[296,10],[473,10],[702,11],[881,10],[976,10],[1071,10]]},"25":{"position":[[225,11],[739,10]]},"27":{"position":[[617,10],[942,10],[1043,10]]},"31":{"position":[[566,10]]}}}],["developing",{"_index":263,"t":{"15":{"position":[[91,10]]}}}],["development",{"_index":156,"t":{"11":{"position":[[289,12],[437,11],[786,11]]},"13":{"position":[[1275,11]]},"19":{"position":[[486,11]]},"27":{"position":[[110,11]]},"33":{"position":[[243,11]]},"84":{"position":[[368,12]]},"86":{"position":[[1418,12]]},"90":{"position":[[1637,11]]}}}],["device",{"_index":245,"t":{"13":{"position":[[1118,7]]}}}],["devices",{"_index":249,"t":{"13":{"position":[[1211,7]]}}}],["diagnose",{"_index":362,"t":{"21":{"position":[[307,8]]}}}],["didn't",{"_index":709,"t":{"43":{"position":[[82,6]]}}}],["dif",{"_index":673,"t":{"41":{"position":[[1457,3],[1479,3]]},"90":{"position":[[646,3],[668,3]]}}}],["differenceblend",{"_index":1015,"t":{"92":{"position":[[2166,16]]}}}],["different",{"_index":229,"t":{"13":{"position":[[791,9]]},"15":{"position":[[712,9],[748,9]]},"19":{"position":[[227,9],[545,9]]}}}],["digital",{"_index":822,"t":{"86":{"position":[[120,7]]}}}],["direct",{"_index":792,"t":{"49":{"position":[[205,6]]},"96":{"position":[[204,6]]}}}],["discord",{"_index":791,"t":{"49":{"position":[[193,7]]},"94":{"position":[[206,7]]},"96":{"position":[[192,7]]}}}],["discuss",{"_index":903,"t":{"90":{"position":[[30,8]]}}}],["displays",{"_index":252,"t":{"13":{"position":[[1236,9]]}}}],["dive",{"_index":751,"t":{"45":{"position":[[80,4]]},"84":{"position":[[537,4]]}}}],["divideblend",{"_index":1016,"t":{"92":{"position":[[2183,12]]}}}],["docs",{"_index":899,"t":{"88":{"position":[[8,4]]}}}],["documentation",{"_index":79,"t":{"7":{"position":[[120,13],[245,13],[419,13],[509,13]]},"9":{"position":[[353,14]]}}}],["don't",{"_index":725,"t":{"43":{"position":[[467,5]]},"45":{"position":[[343,5]]}}}],["doormat23",{"_index":785,"t":{"49":{"position":[[46,9]]},"96":{"position":[[45,9]]}}}],["draw",{"_index":371,"t":{"21":{"position":[[625,4]]},"41":{"position":[[422,4]]}}}],["drawing",{"_index":1052,"t":{"92":{"position":[[2894,7],[3262,7],[3509,7]]}}}],["drivers",{"_index":705,"t":{"43":{"position":[[18,7]]}}}],["driving",{"_index":546,"t":{"37":{"position":[[482,7]]},"84":{"position":[[135,7]]}}}],["dropping",{"_index":813,"t":{"84":{"position":[[433,8]]}}}],["due",{"_index":928,"t":{"90":{"position":[[1511,3]]}}}],["during",{"_index":939,"t":{"90":{"position":[[1898,6]]},"92":{"position":[[1724,6]]}}}],["dynamic",{"_index":237,"t":{"13":{"position":[[932,7]]},"41":{"position":[[146,7]]}}}],["dynamically",{"_index":1101,"t":{"92":{"position":[[4402,11],[4716,11],[5066,11]]}}}],["each",{"_index":208,"t":{"13":{"position":[[407,4]]},"41":{"position":[[1046,4]]}}}],["eager",{"_index":537,"t":{"37":{"position":[[228,5]]},"86":{"position":[[2004,5]]},"94":{"position":[[57,5]]}}}],["early",{"_index":1140,"t":{"94":{"position":[[313,5]]}}}],["ease",{"_index":815,"t":{"84":{"position":[[463,5]]}}}],["easier",{"_index":11,"t":{"3":{"position":[[139,6]]},"13":{"position":[[663,7]]},"15":{"position":[[172,7]]},"17":{"position":[[47,6]]},"21":{"position":[[159,6],[747,6],[870,6]]},"25":{"position":[[48,6]]},"33":{"position":[[255,6]]},"92":{"position":[[4577,6]]}}}],["easily",{"_index":97,"t":{"7":{"position":[[362,6]]},"13":{"position":[[277,6]]},"25":{"position":[[815,6]]},"92":{"position":[[1327,6]]}}}],["easy",{"_index":131,"t":{"9":{"position":[[422,4],[458,4]]},"19":{"position":[[643,4]]},"25":{"position":[[669,4],[879,4],[1052,4]]},"92":{"position":[[1431,4],[1927,4],[2718,5]]}}}],["ecosystem",{"_index":387,"t":{"23":{"position":[[100,9]]},"35":{"position":[[421,10]]}}}],["edge",{"_index":864,"t":{"86":{"position":[[1301,4]]}}}],["edit",{"_index":403,"t":{"25":{"position":[[479,4]]}}}],["editing",{"_index":399,"t":{"25":{"position":[[391,7]]}}}],["editor",{"_index":390,"t":{"25":{"position":[[20,6],[174,6],[555,6]]}}}],["effect",{"_index":663,"t":{"41":{"position":[[1235,6]]}}}],["efficiency",{"_index":1063,"t":{"92":{"position":[[3218,10]]}}}],["efficient",{"_index":383,"t":{"21":{"position":[[1118,9]]},"27":{"position":[[310,10],[1088,9]]},"33":{"position":[[271,10]]},"39":{"position":[[168,9]]}}}],["efficiently",{"_index":273,"t":{"15":{"position":[[371,12]]},"25":{"position":[[287,12]]}}}],["effort",{"_index":459,"t":{"27":{"position":[[835,6]]}}}],["efforts",{"_index":1145,"t":{"94":{"position":[[442,7]]}}}],["element",{"_index":209,"t":{"13":{"position":[[412,7]]}}}],["elements",{"_index":410,"t":{"25":{"position":[[649,9]]},"31":{"position":[[355,8]]},"41":{"position":[[761,8],[1071,8]]}}}],["elevate",{"_index":763,"t":{"45":{"position":[[299,7]]},"84":{"position":[[563,7]]}}}],["embracing",{"_index":860,"t":{"86":{"position":[[1108,9]]}}}],["emerge",{"_index":843,"t":{"86":{"position":[[701,6]]}}}],["empowering",{"_index":720,"t":{"43":{"position":[[367,10]]},"84":{"position":[[404,10]]}}}],["enable",{"_index":452,"t":{"27":{"position":[[610,6]]},"92":{"position":[[1665,6]]}}}],["enables",{"_index":223,"t":{"13":{"position":[[684,7]]},"92":{"position":[[3497,7]]}}}],["enabling",{"_index":965,"t":{"92":{"position":[[759,8]]}}}],["encapsulate",{"_index":715,"t":{"43":{"position":[[221,11]]}}}],["encounter",{"_index":736,"t":{"43":{"position":[[692,9]]}}}],["encountered",{"_index":837,"t":{"86":{"position":[[603,11]]}}}],["encounters",{"_index":920,"t":{"90":{"position":[[1328,10]]}}}],["end",{"_index":66,"t":{"5":{"position":[[128,3]]},"19":{"position":[[482,3]]}}}],["engagement",{"_index":793,"t":{"49":{"position":[[212,10]]},"94":{"position":[[694,10]]},"96":{"position":[[211,10]]}}}],["engaging",{"_index":384,"t":{"21":{"position":[[1132,8]]},"92":{"position":[[3452,8]]}}}],["engine",{"_index":24,"t":{"3":{"position":[[300,8]]},"27":{"position":[[242,7],[858,6],[1098,6]]},"31":{"position":[[55,6]]},"33":{"position":[[97,7],[115,6],[184,6],[318,6]]},"37":{"position":[[382,7]]},"45":{"position":[[166,7]]},"86":{"position":[[290,7]]}}}],["engineering",{"_index":551,"t":{"37":{"position":[[527,11]]}}}],["engines",{"_index":486,"t":{"31":{"position":[[315,7]]},"33":{"position":[[358,8]]}}}],["engine—far",{"_index":714,"t":{"43":{"position":[[198,10]]}}}],["enhance",{"_index":7,"t":{"3":{"position":[[87,7]]},"43":{"position":[[134,7]]},"86":{"position":[[838,7]]},"90":{"position":[[1594,7]]},"92":{"position":[[1066,7]]}}}],["enhanced",{"_index":1089,"t":{"92":{"position":[[4067,8]]}}}],["enhancing",{"_index":878,"t":{"86":{"position":[[1684,9]]},"92":{"position":[[3208,9]]}}}],["ensured",{"_index":895,"t":{"86":{"position":[[2143,7]]}}}],["ensuring",{"_index":420,"t":{"25":{"position":[[916,8]]},"86":{"position":[[1262,8]]}}}],["entirely",{"_index":656,"t":{"41":{"position":[[1143,8]]}}}],["environment",{"_index":981,"t":{"92":{"position":[[985,11]]}}}],["era",{"_index":561,"t":{"39":{"position":[[146,4]]}}}],["especially",{"_index":373,"t":{"21":{"position":[[683,10]]}}}],["essentially",{"_index":1033,"t":{"92":{"position":[[2476,11]]}}}],["even",{"_index":10,"t":{"3":{"position":[[134,4]]},"31":{"position":[[577,4]]},"43":{"position":[[392,4]]},"45":{"position":[[260,4]]},"86":{"position":[[1888,4]]},"94":{"position":[[274,4]]}}}],["everyone",{"_index":1142,"t":{"94":{"position":[[328,9]]}}}],["everything",{"_index":93,"t":{"7":{"position":[[322,10]]},"13":{"position":[[1182,10]]},"33":{"position":[[138,10]]},"39":{"position":[[1136,10]]}}}],["evolution",{"_index":1151,"t":{"94":{"position":[[724,10]]}}}],["evolved",{"_index":824,"t":{"86":{"position":[[142,7]]}}}],["example",{"_index":280,"t":{"15":{"position":[[481,8]]},"92":{"position":[[3290,8]]}}}],["examples",{"_index":103,"t":{"7":{"position":[[460,9]]},"11":{"position":[[250,8]]},"13":{"position":[[559,9]]},"88":{"position":[[48,8]]},"92":{"position":[[4165,9]]}}}],["excited",{"_index":0,"t":{"3":{"position":[[7,7]]},"7":{"position":[[16,7]]},"23":{"position":[[133,7]]},"35":{"position":[[286,7]]},"94":{"position":[[745,7]]}}}],["exciting",{"_index":71,"t":{"5":{"position":[[182,8]]},"27":{"position":[[439,8]]},"31":{"position":[[155,8]]},"35":{"position":[[22,8]]},"49":{"position":[[114,8]]},"96":{"position":[[113,8]]}}}],["exclusionblend",{"_index":1017,"t":{"92":{"position":[[2196,15]]}}}],["exclusive",{"_index":530,"t":{"37":{"position":[[27,9]]}}}],["execute",{"_index":596,"t":{"39":{"position":[[936,7]]},"41":{"position":[[616,7]]}}}],["executed",{"_index":639,"t":{"41":{"position":[[822,9]]}}}],["existing",{"_index":648,"t":{"41":{"position":[[947,8]]},"86":{"position":[[1214,8]]}}}],["expand",{"_index":494,"t":{"31":{"position":[[528,6]]}}}],["expect",{"_index":466,"t":{"27":{"position":[[1058,6]]},"33":{"position":[[159,6]]}}}],["expected",{"_index":930,"t":{"90":{"position":[[1582,8]]}}}],["experience",{"_index":303,"t":{"15":{"position":[[918,11]]},"27":{"position":[[157,10]]},"86":{"position":[[2205,10]]}}}],["experiences",{"_index":814,"t":{"84":{"position":[[446,11]]}}}],["experimenting",{"_index":782,"t":{"47":{"position":[[361,13]]}}}],["exploration",{"_index":908,"t":{"90":{"position":[[132,11]]}}}],["explore",{"_index":177,"t":{"11":{"position":[[967,7]]},"45":{"position":[[92,7],[369,7]]}}}],["extend",{"_index":515,"t":{"35":{"position":[[167,6]]}}}],["extension",{"_index":353,"t":{"21":{"position":[[35,9]]}}}],["extensive",{"_index":437,"t":{"27":{"position":[[147,9]]}}}],["facilitates",{"_index":969,"t":{"92":{"position":[[826,11]]}}}],["factors",{"_index":547,"t":{"37":{"position":[[490,7]]}}}],["fall",{"_index":573,"t":{"39":{"position":[[532,4]]}}}],["fallback",{"_index":597,"t":{"39":{"position":[[953,8]]}}}],["familiar",{"_index":731,"t":{"43":{"position":[[546,8]]}}}],["fancy",{"_index":1126,"t":{"92":{"position":[[5037,5]]}}}],["fast",{"_index":582,"t":{"39":{"position":[[651,4]]},"41":{"position":[[177,5]]}}}],["faster",{"_index":298,"t":{"15":{"position":[[858,6]]},"27":{"position":[[294,6],[1072,6]]},"84":{"position":[[235,7]]},"86":{"position":[[1924,6]]},"90":{"position":[[255,6]]}}}],["feature",{"_index":275,"t":{"15":{"position":[[392,7]]},"25":{"position":[[785,8]]},"39":{"position":[[461,7]]},"92":{"position":[[3545,7]]}}}],["features",{"_index":130,"t":{"9":{"position":[[388,9],[556,8]]},"15":{"position":[[321,8],[807,8],[1038,8]]},"21":{"position":[[417,8]]},"25":{"position":[[320,8]]},"27":{"position":[[448,8]]},"33":{"position":[[211,8],[294,8]]},"37":{"position":[[213,8]]},"43":{"position":[[182,8]]},"86":{"position":[[1446,8],[2044,8]]}}}],["feedback",{"_index":752,"t":{"45":{"position":[[109,8]]},"94":{"position":[[88,8]]}}}],["feel",{"_index":214,"t":{"13":{"position":[[515,4]]}}}],["felt",{"_index":881,"t":{"86":{"position":[[1734,4]]}}}],["few",{"_index":255,"t":{"13":{"position":[[1317,3]]},"19":{"position":[[817,3]]},"39":{"position":[[792,3]]}}}],["fiddle",{"_index":695,"t":{"41":{"position":[[1847,6]]}}}],["fill",{"_index":1071,"t":{"92":{"position":[[3352,4],[4780,5],[4937,4],[5131,5]]}}}],["fill('blue",{"_index":1059,"t":{"92":{"position":[[2985,14]]}}}],["filling",{"_index":1053,"t":{"92":{"position":[[2906,7]]}}}],["fills",{"_index":1120,"t":{"92":{"position":[[4803,5],[4845,5],[5185,5]]}}}],["filter",{"_index":1002,"t":{"92":{"position":[[1783,7]]}}}],["filters",{"_index":924,"t":{"90":{"position":[[1442,8]]},"92":{"position":[[2005,8],[2488,7]]}}}],["final",{"_index":421,"t":{"25":{"position":[[934,5]]},"94":{"position":[[530,5]]}}}],["finalized",{"_index":533,"t":{"37":{"position":[[131,10]]}}}],["finally",{"_index":257,"t":{"15":{"position":[[0,8]]},"33":{"position":[[0,8]]}}}],["fine",{"_index":755,"t":{"45":{"position":[[150,4]]}}}],["first",{"_index":73,"t":{"7":{"position":[[0,5]]},"11":{"position":[[306,5]]},"27":{"position":[[490,5],[919,5]]},"39":{"position":[[488,5]]},"41":{"position":[[735,6]]},"94":{"position":[[23,5]]}}}],["firstly",{"_index":949,"t":{"92":{"position":[[90,8]]}}}],["fit",{"_index":210,"t":{"13":{"position":[[423,3],[1095,3]]}}}],["flexibility",{"_index":241,"t":{"13":{"position":[[1031,11]]},"31":{"position":[[587,11]]},"92":{"position":[[3233,12]]}}}],["fly",{"_index":279,"t":{"15":{"position":[[472,4]]},"92":{"position":[[4357,3]]}}}],["focus",{"_index":331,"t":{"19":{"position":[[322,5]]}}}],["folder",{"_index":281,"t":{"15":{"position":[[516,6]]}}}],["follow",{"_index":358,"t":{"21":{"position":[[250,6]]},"49":{"position":[[39,6]]},"90":{"position":[[173,6]]},"96":{"position":[[38,6]]}}}],["following",{"_index":621,"t":{"41":{"position":[[361,9]]}}}],["follows",{"_index":1055,"t":{"92":{"position":[[2943,8]]}}}],["font",{"_index":1115,"t":{"92":{"position":[[4692,7],[4703,4],[5053,4]]}}}],["font's",{"_index":1103,"t":{"92":{"position":[[4436,6]]}}}],["fontfamily",{"_index":1117,"t":{"92":{"position":[[4744,11],[5095,11]]}}}],["fonts",{"_index":291,"t":{"15":{"position":[[703,5]]}}}],["fontsize",{"_index":1119,"t":{"92":{"position":[[4766,9],[5117,9]]}}}],["formats",{"_index":292,"t":{"15":{"position":[[722,8],[758,8]]}}}],["forward",{"_index":465,"t":{"27":{"position":[[1027,7]]},"35":{"position":[[121,7],[368,7]]},"39":{"position":[[656,7]]}}}],["found",{"_index":900,"t":{"88":{"position":[[27,5]]}}}],["foundation",{"_index":850,"t":{"86":{"position":[[850,10]]},"90":{"position":[[1680,10]]}}}],["four",{"_index":61,"t":{"5":{"position":[[72,4]]}}}],["fragmentation",{"_index":38,"t":{"3":{"position":[[485,13]]}}}],["fragmented",{"_index":89,"t":{"7":{"position":[[262,10]]}}}],["frame",{"_index":651,"t":{"41":{"position":[[1051,6],[1364,5],[1417,5]]},"90":{"position":[[553,5],[606,5]]}}}],["frames",{"_index":646,"t":{"41":{"position":[[926,7]]}}}],["framework",{"_index":266,"t":{"15":{"position":[[195,9],[248,10],[1051,9]]}}}],["frameworks",{"_index":328,"t":{"19":{"position":[[250,11],[568,11]]},"31":{"position":[[326,10]]}}}],["free",{"_index":215,"t":{"13":{"position":[[520,4]]}}}],["friendly",{"_index":392,"t":{"25":{"position":[[150,8]]},"43":{"position":[[673,9]]},"92":{"position":[[2819,9]]}}}],["front",{"_index":337,"t":{"19":{"position":[[476,5]]}}}],["full",{"_index":45,"t":{"3":{"position":[[610,4]]}}}],["fun",{"_index":1123,"t":{"92":{"position":[[4920,3]]}}}],["function",{"_index":773,"t":{"47":{"position":[[167,9],[229,8]]},"92":{"position":[[3695,9]]}}}],["functional",{"_index":185,"t":{"13":{"position":[[75,10]]},"25":{"position":[[956,10]]}}}],["functionality",{"_index":879,"t":{"86":{"position":[[1694,14]]}}}],["further",{"_index":6,"t":{"3":{"position":[[79,7]]},"41":{"position":[[1190,7]]}}}],["future",{"_index":532,"t":{"37":{"position":[[52,6]]},"39":{"position":[[1123,6]]},"47":{"position":[[428,6]]},"84":{"position":[[503,6]]},"90":{"position":[[1166,6],[1695,6]]}}}],["gained",{"_index":580,"t":{"39":{"position":[[634,6]]}}}],["game",{"_index":155,"t":{"11":{"position":[[284,4],[345,4],[371,5],[432,4],[725,4],[781,4]]},"13":{"position":[[305,5]]},"25":{"position":[[644,4],[705,4]]},"33":{"position":[[92,4],[110,4],[179,4],[238,4],[313,4]]},"84":{"position":[[97,4]]}}}],["game's",{"_index":211,"t":{"13":{"position":[[432,6],[1147,6]]}}}],["games",{"_index":15,"t":{"3":{"position":[[179,5],[377,5]]},"11":{"position":[[58,7],[102,5],[151,5],[217,5],[316,5],[383,5],[536,5],[677,5],[888,5]]},"13":{"position":[[505,6]]},"25":{"position":[[86,5],[1136,5]]},"31":{"position":[[234,5]]},"88":{"position":[[62,5]]}}}],["geared",{"_index":734,"t":{"43":{"position":[[624,6]]}}}],["generate",{"_index":278,"t":{"15":{"position":[[445,8],[556,8],[677,8]]}}}],["generated",{"_index":1097,"t":{"92":{"position":[[4340,9]]}}}],["geometry",{"_index":1080,"t":{"92":{"position":[[3654,8],[3846,8],[3876,8],[3945,9]]}}}],["github",{"_index":112,"t":{"7":{"position":[[614,6]]},"9":{"position":[[643,6]]},"11":{"position":[[936,6],[1014,6]]},"13":{"position":[[579,6],[1341,6]]},"15":{"position":[[1140,6],[1152,6]]},"35":{"position":[[457,6]]},"45":{"position":[[403,6]]},"94":{"position":[[195,6]]}}}],["give",{"_index":496,"t":{"31":{"position":[[561,4]]},"41":{"position":[[707,4]]}}}],["glyphs",{"_index":1104,"t":{"92":{"position":[[4443,6]]}}}],["go",{"_index":563,"t":{"39":{"position":[[215,2]]},"41":{"position":[[612,3]]},"94":{"position":[[773,2]]}}}],["good",{"_index":759,"t":{"45":{"position":[[215,5]]}}}],["goodboy",{"_index":474,"t":{"31":{"position":[[11,7]]}}}],["gotten",{"_index":1146,"t":{"94":{"position":[[503,6]]}}}],["gpu",{"_index":456,"t":{"27":{"position":[[658,3]]},"39":{"position":[[247,3]]},"41":{"position":[[418,3],[601,3],[1370,3],[1394,3],[1464,3],[1471,3],[1475,3]]},"90":{"position":[[559,3],[583,3],[653,3],[660,3],[664,3],[1381,4]]},"92":{"position":[[790,3],[1191,4]]}}}],["gradient",{"_index":1070,"t":{"92":{"position":[[3343,8]]}}}],["gradients",{"_index":1074,"t":{"92":{"position":[[3414,10],[4887,10]]}}}],["graph",{"_index":617,"t":{"41":{"position":[[260,5],[330,5],[533,5],[888,5]]}}}],["graphic",{"_index":944,"t":{"90":{"position":[[2013,7],[2068,7]]},"92":{"position":[[3761,7]]}}}],["graphics",{"_index":449,"t":{"27":{"position":[[537,8],[727,8],[1149,8]]},"37":{"position":[[69,8]]},"39":{"position":[[126,8]]},"41":{"position":[[66,9]]},"47":{"position":[[445,9]]},"84":{"position":[[520,9]]},"90":{"position":[[1111,8]]},"92":{"position":[[2727,8],[2750,8],[2952,8],[3052,8],[3190,8],[4013,8],[4076,8],[4866,9],[4953,8],[5172,8],[5236,8]]},"94":{"position":[[670,8]]}}}],["graphics.svg('m",{"_index":1065,"t":{"92":{"position":[[3299,15]]}}}],["graphicscontext",{"_index":1060,"t":{"92":{"position":[[3002,15],[3142,15]]}}}],["graphicspath",{"_index":1075,"t":{"92":{"position":[[3478,12],[3795,14]]}}}],["great",{"_index":28,"t":{"3":{"position":[[340,5]]},"11":{"position":[[817,5]]},"13":{"position":[[1173,5]]},"90":{"position":[[395,5]]}}}],["greater",{"_index":888,"t":{"86":{"position":[[1893,7]]}}}],["greatly",{"_index":493,"t":{"31":{"position":[[520,7]]}}}],["ground",{"_index":435,"t":{"27":{"position":[[95,6]]}}}],["groups",{"_index":395,"t":{"25":{"position":[[251,6]]},"92":{"position":[[731,6]]}}}],["grow",{"_index":523,"t":{"35":{"position":[[405,4]]},"94":{"position":[[73,4]]}}}],["growth",{"_index":84,"t":{"7":{"position":[[170,6]]}}}],["guarantee",{"_index":918,"t":{"90":{"position":[[1252,9]]}}}],["guidance",{"_index":1088,"t":{"92":{"position":[[4035,8]]}}}],["guide",{"_index":894,"t":{"86":{"position":[[2133,5]]},"92":{"position":[[4120,6]]}}}],["guides",{"_index":102,"t":{"7":{"position":[[449,6]]}}}],["guiding",{"_index":746,"t":{"43":{"position":[[817,7]]}}}],["handful",{"_index":569,"t":{"39":{"position":[[385,7]]}}}],["handle",{"_index":329,"t":{"19":{"position":[[276,6]]}}}],["handled",{"_index":984,"t":{"92":{"position":[[1176,7]]}}}],["handling",{"_index":503,"t":{"33":{"position":[[380,9]]}}}],["happens",{"_index":704,"t":{"41":{"position":[[2081,7]]}}}],["hard",{"_index":819,"t":{"86":{"position":[[5,4]]},"94":{"position":[[426,4]]}}}],["hardlightblend",{"_index":1018,"t":{"92":{"position":[[2212,15]]}}}],["hardmixblend",{"_index":1019,"t":{"92":{"position":[[2228,13]]}}}],["hardware",{"_index":971,"t":{"92":{"position":[[848,8]]}}}],["having",{"_index":405,"t":{"25":{"position":[[512,6]]}}}],["heartfelt",{"_index":1139,"t":{"94":{"position":[[289,9]]}}}],["height:100",{"_index":1005,"t":{"92":{"position":[[1897,11]]}}}],["heights",{"_index":765,"t":{"45":{"position":[[331,8]]},"84":{"position":[[595,8]]}}}],["hello",{"_index":1113,"t":{"92":{"position":[[4673,6],[5022,6]]}}}],["help",{"_index":30,"t":{"3":{"position":[[355,4]]},"15":{"position":[[335,4],[816,4]]},"21":{"position":[[84,4],[291,4],[468,4],[1066,4]]},"94":{"position":[[786,5]]}}}],["here",{"_index":901,"t":{"88":{"position":[[33,4]]},"90":{"position":[[500,5]]},"94":{"position":[[341,5],[510,4]]}}}],["high",{"_index":376,"t":{"21":{"position":[[901,4]]},"25":{"position":[[1123,4]]},"41":{"position":[[49,4]]}}}],["highlights",{"_index":906,"t":{"90":{"position":[[100,11]]}}}],["highly",{"_index":202,"t":{"13":{"position":[[332,6]]}}}],["history",{"_index":584,"t":{"39":{"position":[[721,7]]}}}],["hood",{"_index":916,"t":{"90":{"position":[[1139,4]]}}}],["hopefully",{"_index":166,"t":{"11":{"position":[[688,9]]}}}],["html",{"_index":1049,"t":{"92":{"position":[[2852,4]]}}}],["htmltext",{"_index":1094,"t":{"92":{"position":[[4287,8]]}}}],["ideal",{"_index":974,"t":{"92":{"position":[[877,5]]}}}],["ideas",{"_index":108,"t":{"7":{"position":[[561,5]]},"25":{"position":[[1104,5]]}}}],["identical",{"_index":1108,"t":{"92":{"position":[[4518,9]]}}}],["identifying",{"_index":950,"t":{"92":{"position":[[99,11]]}}}],["im",{"_index":1114,"t":{"92":{"position":[[4680,2],[5029,2]]}}}],["images",{"_index":283,"t":{"15":{"position":[[537,6],[776,7]]}}}],["immediately",{"_index":578,"t":{"39":{"position":[[605,11]]}}}],["implemented",{"_index":543,"t":{"37":{"position":[[336,11]]},"90":{"position":[[1034,11]]}}}],["import",{"_index":774,"t":{"47":{"position":[[177,6]]},"90":{"position":[[1799,6],[1812,6],[1965,6],[2004,6],[2051,6]]},"92":{"position":[[445,6],[2577,6]]}}}],["important",{"_index":261,"t":{"15":{"position":[[73,9]]},"90":{"position":[[1199,9]]},"92":{"position":[[2440,9]]}}}],["imported",{"_index":941,"t":{"90":{"position":[[1950,9]]}}}],["improve",{"_index":36,"t":{"3":{"position":[[456,7]]},"7":{"position":[[577,7]]},"15":{"position":[[604,7]]},"27":{"position":[[700,7]]}}}],["improved",{"_index":302,"t":{"15":{"position":[[904,8]]},"90":{"position":[[1262,8]]}}}],["improvement",{"_index":441,"t":{"27":{"position":[[345,11]]},"39":{"position":[[53,11]]},"86":{"position":[[569,12]]}}}],["improvements",{"_index":438,"t":{"27":{"position":[[192,12]]},"37":{"position":[[196,12]]},"41":{"position":[[1251,13],[1981,12]]},"43":{"position":[[333,12]]},"86":{"position":[[2023,12]]},"90":{"position":[[343,12]]}}}],["improving",{"_index":100,"t":{"7":{"position":[[405,9]]},"9":{"position":[[316,9]]}}}],["include",{"_index":501,"t":{"33":{"position":[[330,7]]},"92":{"position":[[2631,7]]}}}],["includes",{"_index":188,"t":{"13":{"position":[[127,8]]}}}],["including",{"_index":268,"t":{"15":{"position":[[259,9]]},"19":{"position":[[580,9]]},"92":{"position":[[2080,9]]}}}],["inclusion",{"_index":446,"t":{"27":{"position":[[477,9]]}}}],["incorporate",{"_index":487,"t":{"31":{"position":[[340,11]]}}}],["incredibly",{"_index":388,"t":{"23":{"position":[[122,10]]},"86":{"position":[[1970,10]]}}}],["individual",{"_index":282,"t":{"15":{"position":[[526,10]]}}}],["information",{"_index":491,"t":{"31":{"position":[[471,11]]},"92":{"position":[[3992,11]]}}}],["inherited",{"_index":987,"t":{"92":{"position":[[1261,10]]}}}],["init",{"_index":777,"t":{"47":{"position":[[238,6]]}}}],["initial",{"_index":568,"t":{"39":{"position":[[317,7]]}}}],["initialization",{"_index":958,"t":{"92":{"position":[[336,14]]}}}],["initializing",{"_index":946,"t":{"92":{"position":[[5,12]]}}}],["initiative",{"_index":5,"t":{"3":{"position":[[65,10]]}}}],["inner",{"_index":356,"t":{"21":{"position":[[199,5],[1022,5]]}}}],["innovate",{"_index":1150,"t":{"94":{"position":[[630,8]]}}}],["innovation",{"_index":801,"t":{"84":{"position":[[143,11]]},"86":{"position":[[1084,10]]}}}],["input",{"_index":239,"t":{"13":{"position":[[972,5]]},"33":{"position":[[374,5]]},"94":{"position":[[253,5]]}}}],["inputs",{"_index":194,"t":{"13":{"position":[[201,7]]}}}],["insights",{"_index":842,"t":{"86":{"position":[[692,8]]},"94":{"position":[[454,8]]}}}],["inspiration",{"_index":171,"t":{"11":{"position":[[833,11]]}}}],["install",{"_index":769,"t":{"47":{"position":[[16,7],[54,7]]}}}],["installed",{"_index":1098,"t":{"92":{"position":[[4364,9]]}}}],["instance",{"_index":1051,"t":{"92":{"position":[[2884,9]]}}}],["instructions",{"_index":632,"t":{"41":{"position":[[562,13],[647,13],[966,13],[1029,12]]}}}],["integrated",{"_index":201,"t":{"13":{"position":[[284,10]]},"86":{"position":[[1171,10]]},"92":{"position":[[4276,10]]}}}],["integrates",{"_index":134,"t":{"9":{"position":[[532,10]]}}}],["integration",{"_index":807,"t":{"84":{"position":[[301,11]]},"86":{"position":[[330,12]]}}}],["intensive",{"_index":457,"t":{"27":{"position":[[736,9],[1158,9]]}}}],["interface",{"_index":132,"t":{"9":{"position":[[434,9]]},"13":{"position":[[1154,9]]},"25":{"position":[[159,10],[352,9]]}}}],["interfaces",{"_index":187,"t":{"13":{"position":[[91,10],[766,10],[940,10]]}}}],["internal",{"_index":475,"t":{"31":{"position":[[43,8]]},"43":{"position":[[590,8]]}}}],["intricate",{"_index":1084,"t":{"92":{"position":[[3738,9]]}}}],["introduce",{"_index":56,"t":{"3":{"position":[[729,9]]},"43":{"position":[[154,9]]}}}],["introduced",{"_index":964,"t":{"92":{"position":[[747,11],[3027,11],[3374,11]]}}}],["intuitive",{"_index":391,"t":{"25":{"position":[[131,9]]},"92":{"position":[[2800,9]]}}}],["invaluable",{"_index":754,"t":{"45":{"position":[[135,10]]},"94":{"position":[[467,10]]}}}],["invite",{"_index":757,"t":{"45":{"position":[[177,6]]},"49":{"position":[[25,6]]},"96":{"position":[[24,6]]}}}],["isrendergroup:true",{"_index":983,"t":{"92":{"position":[[1121,18]]}}}],["issues",{"_index":363,"t":{"21":{"position":[[328,6]]},"94":{"position":[[221,6]]}}}],["it's",{"_index":591,"t":{"39":{"position":[[853,4]]},"84":{"position":[[90,4],[469,4],[494,4]]},"86":{"position":[[0,4]]},"90":{"position":[[1194,4],[1577,4]]},"92":{"position":[[2435,4],[2512,4]]}}}],["iterate",{"_index":418,"t":{"25":{"position":[[896,7]]}}}],["iteration",{"_index":534,"t":{"37":{"position":[[152,9]]}}}],["itself",{"_index":586,"t":{"39":{"position":[[742,6]]},"92":{"position":[[361,6],[1026,7]]}}}],["javascript",{"_index":810,"t":{"84":{"position":[[344,10]]},"86":{"position":[[1345,11],[1377,10]]}}}],["jaw",{"_index":812,"t":{"84":{"position":[[429,3]]}}}],["join",{"_index":783,"t":{"47":{"position":[[405,4]]},"49":{"position":[[163,4]]},"96":{"position":[[162,4]]}}}],["json",{"_index":296,"t":{"15":{"position":[[795,5]]}}}],["jump",{"_index":1091,"t":{"92":{"position":[[4138,4]]}}}],["jumpstart",{"_index":314,"t":{"19":{"position":[[0,9],[358,9],[746,10]]}}}],["key",{"_index":274,"t":{"15":{"position":[[388,3]]},"21":{"position":[[413,3]]},"41":{"position":[[677,3]]},"43":{"position":[[14,3]]},"90":{"position":[[96,3]]},"94":{"position":[[708,3]]}}}],["killer",{"_index":536,"t":{"37":{"position":[[177,6]]}}}],["know",{"_index":111,"t":{"7":{"position":[[608,5]]},"94":{"position":[[123,4]]}}}],["lacked",{"_index":33,"t":{"3":{"position":[[420,6]]}}}],["landed",{"_index":797,"t":{"84":{"position":[[78,7]]}}}],["landscape",{"_index":823,"t":{"86":{"position":[[128,9]]}}}],["languages",{"_index":107,"t":{"7":{"position":[[534,10]]}}}],["large",{"_index":250,"t":{"13":{"position":[[1222,5]]},"92":{"position":[[898,5]]}}}],["later",{"_index":492,"t":{"31":{"position":[[483,5]]}}}],["latest",{"_index":803,"t":{"84":{"position":[[190,6]]},"86":{"position":[[1122,6]]}}}],["launch",{"_index":2,"t":{"3":{"position":[[31,6]]},"39":{"position":[[325,7]]}}}],["layers",{"_index":852,"t":{"86":{"position":[[918,6]]}}}],["layout",{"_index":165,"t":{"11":{"position":[[640,6]]},"13":{"position":[[598,6],[840,6],[1010,7],[1253,6],[1334,6]]},"92":{"position":[[4486,6],[4535,6]]}}}],["layouts",{"_index":225,"t":{"13":{"position":[[717,7],[1063,7]]}}}],["leap",{"_index":464,"t":{"27":{"position":[[1022,4]]},"29":{"position":[[21,4]]},"41":{"position":[[1286,4]]}}}],["learn",{"_index":170,"t":{"11":{"position":[[753,5]]}}}],["lerna",{"_index":934,"t":{"90":{"position":[[1750,8]]}}}],["lessons",{"_index":873,"t":{"86":{"position":[[1581,8]]}}}],["let's",{"_index":817,"t":{"84":{"position":[[604,5]]},"94":{"position":[[612,5]]}}}],["level",{"_index":898,"t":{"86":{"position":[[2225,5]]},"92":{"position":[[2065,6]]}}}],["leverage",{"_index":599,"t":{"39":{"position":[[995,8]]}}}],["leveraged",{"_index":436,"t":{"27":{"position":[[131,9]]}}}],["leveraging",{"_index":808,"t":{"84":{"position":[[326,10]]},"86":{"position":[[1327,10]]}}}],["lib",{"_index":1040,"t":{"92":{"position":[[2651,4]]}}}],["libraries",{"_index":72,"t":{"5":{"position":[[205,9]]},"9":{"position":[[632,10]]},"11":{"position":[[475,9],[615,9]]},"13":{"position":[[903,9]]}}}],["library",{"_index":115,"t":{"9":{"position":[[27,7],[141,7],[288,7],[402,7],[524,7]]},"13":{"position":[[19,7],[119,7],[616,7],[676,7]]},"15":{"position":[[138,7],[214,7]]},"33":{"position":[[70,7]]}}}],["library's",{"_index":127,"t":{"9":{"position":[[330,9]]}}}],["license",{"_index":151,"t":{"11":{"position":[[187,8]]}}}],["life",{"_index":221,"t":{"13":{"position":[[643,4]]}}}],["lightenblend",{"_index":1020,"t":{"92":{"position":[[2242,13]]}}}],["limitations",{"_index":921,"t":{"90":{"position":[[1344,11]]}}}],["limited",{"_index":1072,"t":{"92":{"position":[[3396,7]]}}}],["limits",{"_index":1144,"t":{"94":{"position":[[363,6]]}}}],["line",{"_index":408,"t":{"25":{"position":[[537,4]]}}}],["linear",{"_index":1073,"t":{"92":{"position":[[3407,6]]}}}],["linearburnblend",{"_index":1021,"t":{"92":{"position":[[2256,16]]}}}],["lineardodgeblend",{"_index":1022,"t":{"92":{"position":[[2273,17]]}}}],["linearlightblend",{"_index":1023,"t":{"92":{"position":[[2291,17]]}}}],["links",{"_index":525,"t":{"35":{"position":[[464,5]]},"90":{"position":[[184,5]]}}}],["lists",{"_index":197,"t":{"13":{"position":[[223,6]]}}}],["little",{"_index":85,"t":{"7":{"position":[[197,6]]}}}],["load",{"_index":955,"t":{"92":{"position":[[202,4]]}}}],["loaded",{"_index":953,"t":{"92":{"position":[[171,6]]}}}],["loading",{"_index":299,"t":{"15":{"position":[[865,7]]},"33":{"position":[[396,7]]},"86":{"position":[[312,7]]},"92":{"position":[[115,7],[268,7]]}}}],["long",{"_index":81,"t":{"7":{"position":[[152,4]]},"23":{"position":[[21,4]]},"31":{"position":[[400,4]]}}}],["longer",{"_index":321,"t":{"19":{"position":[[159,6]]},"31":{"position":[[285,6]]}}}],["longevity",{"_index":855,"t":{"86":{"position":[[963,10]]}}}],["look",{"_index":246,"t":{"13":{"position":[[1168,4]]},"29":{"position":[[62,4]]},"35":{"position":[[116,4],[363,4]]}}}],["looking",{"_index":172,"t":{"11":{"position":[[860,7]]},"27":{"position":[[953,7]]},"86":{"position":[[1771,8]]}}}],["loop",{"_index":635,"t":{"41":{"position":[[697,4]]},"49":{"position":[[16,5]]},"90":{"position":[[437,4]]},"96":{"position":[[15,5]]}}}],["lot",{"_index":509,"t":{"35":{"position":[[15,3],[109,3]]}}}],["luminosityblend",{"_index":1024,"t":{"92":{"position":[[2309,16]]}}}],["made",{"_index":458,"t":{"27":{"position":[[816,4]]},"37":{"position":[[472,5]]}}}],["mainly",{"_index":911,"t":{"90":{"position":[[371,6]]}}}],["maintain",{"_index":35,"t":{"3":{"position":[[443,8]]}}}],["maintenance",{"_index":126,"t":{"9":{"position":[[269,11]]}}}],["major",{"_index":386,"t":{"23":{"position":[[72,5]]},"27":{"position":[[27,5],[577,5],[1016,5]]},"86":{"position":[[271,5]]}}}],["make",{"_index":9,"t":{"3":{"position":[[126,4]]},"13":{"position":[[633,4]]},"15":{"position":[[154,4]]},"17":{"position":[[39,4]]},"19":{"position":[[635,4]]},"21":{"position":[[151,4],[739,4],[862,4]]},"25":{"position":[[40,4]]},"27":{"position":[[187,4]]},"33":{"position":[[233,4]]},"39":{"position":[[1150,4]]},"41":{"position":[[270,4]]},"84":{"position":[[610,4]]},"86":{"position":[[1496,4]]},"90":{"position":[[409,4]]},"92":{"position":[[1448,4],[1512,4],[2618,4]]},"94":{"position":[[262,4]]}}}],["makes",{"_index":133,"t":{"9":{"position":[[449,5]]},"25":{"position":[[870,5],[1043,5]]}}}],["making",{"_index":411,"t":{"25":{"position":[[659,6]]},"31":{"position":[[431,6]]},"35":{"position":[[251,6]]},"43":{"position":[[638,6]]},"84":{"position":[[225,6]]},"86":{"position":[[1914,6]]},"92":{"position":[[4567,6]]},"94":{"position":[[581,6]]}}}],["manage",{"_index":271,"t":{"15":{"position":[[351,6]]}}}],["management",{"_index":260,"t":{"15":{"position":[[56,10]]},"33":{"position":[[408,11],[426,11]]}}}],["manpower",{"_index":34,"t":{"3":{"position":[[431,8]]}}}],["many",{"_index":27,"t":{"3":{"position":[[335,4]]},"15":{"position":[[1026,4]]},"27":{"position":[[173,4]]},"33":{"position":[[206,4]]},"43":{"position":[[213,4]]},"92":{"position":[[3119,4]]}}}],["market",{"_index":590,"t":{"39":{"position":[[836,7]]}}}],["masks",{"_index":925,"t":{"90":{"position":[[1451,6]]}}}],["match",{"_index":158,"t":{"11":{"position":[[337,5]]}}}],["matter",{"_index":592,"t":{"39":{"position":[[865,6]]}}}],["means",{"_index":226,"t":{"13":{"position":[[745,5],[1131,5]]},"25":{"position":[[443,5]]},"90":{"position":[[287,5],[1855,5]]},"92":{"position":[[1309,5],[4881,5]]}}}],["media",{"_index":787,"t":{"49":{"position":[[77,6]]},"96":{"position":[[76,6]]}}}],["memory",{"_index":1106,"t":{"92":{"position":[[4474,7]]}}}],["mention",{"_index":1032,"t":{"92":{"position":[[2453,7]]}}}],["mentioned",{"_index":526,"t":{"35":{"position":[[470,9]]}}}],["mesh",{"_index":1079,"t":{"92":{"position":[[3649,4],[3927,4],[3938,6]]}}}],["method",{"_index":564,"t":{"39":{"position":[[221,6]]}}}],["methodology",{"_index":740,"t":{"43":{"position":[[742,11]]}}}],["migration",{"_index":893,"t":{"86":{"position":[[2123,9]]},"88":{"position":[[38,9]]},"92":{"position":[[4110,9]]}}}],["minify",{"_index":295,"t":{"15":{"position":[[788,6]]}}}],["minimize",{"_index":952,"t":{"92":{"position":[[154,8]]}}}],["minutes",{"_index":347,"t":{"19":{"position":[[821,7]]}}}],["mipmaps",{"_index":289,"t":{"15":{"position":[[686,8]]}}}],["miss",{"_index":726,"t":{"43":{"position":[[473,4]]}}}],["mit",{"_index":150,"t":{"11":{"position":[[183,3]]}}}],["mix",{"_index":482,"t":{"31":{"position":[[204,3]]}}}],["mobile",{"_index":248,"t":{"13":{"position":[[1204,6]]}}}],["mode",{"_index":995,"t":{"92":{"position":[[1553,4]]}}}],["modern",{"_index":809,"t":{"84":{"position":[[337,6]]},"86":{"position":[[1338,6]]},"90":{"position":[[1527,6]]}}}],["modes",{"_index":927,"t":{"90":{"position":[[1468,6]]},"92":{"position":[[1241,5],[1417,6],[2608,6]]}}}],["modifications",{"_index":737,"t":{"43":{"position":[[702,14]]}}}],["months",{"_index":50,"t":{"3":{"position":[[638,7]]},"35":{"position":[[148,7]]}}}],["monumental",{"_index":545,"t":{"37":{"position":[[450,10]]}}}],["more",{"_index":51,"t":{"3":{"position":[[654,4]]},"7":{"position":[[444,4]]},"11":{"position":[[531,4]]},"15":{"position":[[986,4]]},"19":{"position":[[619,5]]},"21":{"position":[[1113,4]]},"25":{"position":[[282,4],[432,5]]},"27":{"position":[[305,4],[1083,4]]},"31":{"position":[[466,4],[582,4]]},"33":{"position":[[266,4],[466,5]]},"35":{"position":[[505,4]]},"39":{"position":[[163,4]]},"43":{"position":[[397,4],[652,4]]},"49":{"position":[[109,4]]},"84":{"position":[[243,4],[625,4]]},"86":{"position":[[1516,4]]},"90":{"position":[[39,4],[118,4],[416,4],[1339,4],[1522,4],[1745,4]]},"92":{"position":[[2795,4],[3438,4],[3987,4]]},"96":{"position":[[108,4]]}}}],["moved",{"_index":638,"t":{"41":{"position":[[804,6]]}}}],["moves",{"_index":980,"t":{"92":{"position":[[971,5]]}}}],["moving",{"_index":675,"t":{"41":{"position":[[1500,6],[1556,6]]},"90":{"position":[[689,6],[745,6]]},"92":{"position":[[1009,6]]}}}],["much",{"_index":88,"t":{"7":{"position":[[226,4]]},"27":{"position":[[1067,4]]},"43":{"position":[[534,4]]},"90":{"position":[[1873,4]]},"92":{"position":[[1272,4]]}}}],["multi",{"_index":424,"t":{"25":{"position":[[1000,5]]}}}],["multiple",{"_index":90,"t":{"7":{"position":[[280,8]]},"21":{"position":[[596,8]]},"92":{"position":[[3181,8]]}}}],["mycontainer.blendmode",{"_index":1043,"t":{"92":{"position":[[2678,21]]}}}],["mytext",{"_index":1111,"t":{"92":{"position":[[4641,6],[4996,6]]}}}],["navigating",{"_index":975,"t":{"92":{"position":[[887,10]]}}}],["naïve",{"_index":614,"t":{"41":{"position":[[209,7]]}}}],["nearing",{"_index":65,"t":{"5":{"position":[[116,7]]}}}],["necessary",{"_index":951,"t":{"92":{"position":[[127,9]]}}}],["need",{"_index":94,"t":{"7":{"position":[[337,4]]},"19":{"position":[[166,4]]},"31":{"position":[[292,4]]},"92":{"position":[[402,4],[1657,4]]}}}],["needing",{"_index":601,"t":{"39":{"position":[[1042,7]]}}}],["needs",{"_index":213,"t":{"13":{"position":[[448,6]]},"90":{"position":[[468,5]]},"92":{"position":[[4628,6]]}}}],["negationblend",{"_index":1025,"t":{"92":{"position":[[2326,14]]}}}],["net",{"_index":662,"t":{"41":{"position":[[1231,3]]}}}],["new",{"_index":58,"t":{"5":{"position":[[16,3],[191,3]]},"7":{"position":[[84,3],[301,3]]},"9":{"position":[[384,3]]},"11":{"position":[[23,3]]},"13":{"position":[[15,3]]},"15":{"position":[[124,3],[454,3],[958,3]]},"19":{"position":[[15,3],[99,3],[784,3]]},"21":{"position":[[698,3]]},"25":{"position":[[16,3]]},"27":{"position":[[254,3],[533,3]]},"29":{"position":[[31,3]]},"33":{"position":[[66,3]]},"35":{"position":[[42,3],[331,3]]},"37":{"position":[[419,3]]},"39":{"position":[[142,3],[357,3]]},"43":{"position":[[178,3],[462,4]]},"47":{"position":[[144,3]]},"86":{"position":[[2040,3]]},"88":{"position":[[4,3]]},"90":{"position":[[209,3],[1572,4],[1719,3],[2046,4]]},"92":{"position":[[516,3],[1105,3],[1212,3],[1676,3],[3474,3],[3716,3],[3791,3],[3934,3],[4650,3],[5005,3]]}}}],["newcomer",{"_index":554,"t":{"39":{"position":[[4,8]]}}}],["news",{"_index":510,"t":{"35":{"position":[[31,4]]}}}],["next",{"_index":48,"t":{"3":{"position":[[630,4]]},"9":{"position":[[0,4]]},"13":{"position":[[1312,4]]},"27":{"position":[[22,4]]},"86":{"position":[[2220,4]]},"92":{"position":[[2060,4]]}}}],["note",{"_index":729,"t":{"43":{"position":[[510,5]]},"90":{"position":[[1212,4]]}}}],["notes",{"_index":727,"t":{"43":{"position":[[490,6]]}}}],["nothing",{"_index":637,"t":{"41":{"position":[[792,7]]}}}],["now",{"_index":141,"t":{"11":{"position":[[8,3]]},"31":{"position":[[19,4],[114,3]]},"39":{"position":[[687,3]]},"45":{"position":[[45,3]]},"86":{"position":[[343,4]]},"90":{"position":[[1769,3],[1864,3]]},"92":{"position":[[46,3],[1172,3],[1231,3],[1323,3],[3162,3],[4333,3],[4562,4],[4821,3],[4966,3]]},"94":{"position":[[116,3]]}}}],["npm",{"_index":768,"t":{"47":{"position":[[4,3],[50,3]]}}}],["number",{"_index":698,"t":{"41":{"position":[[1899,6]]}}}],["numbers",{"_index":691,"t":{"41":{"position":[[1690,7],[1938,7]]},"90":{"position":[[492,7],[879,7]]}}}],["numerous",{"_index":902,"t":{"90":{"position":[[10,8],[1411,8]]}}}],["object",{"_index":867,"t":{"86":{"position":[[1460,6]]}}}],["objects",{"_index":369,"t":{"21":{"position":[[605,7],[793,8]]},"92":{"position":[[3199,8]]}}}],["odie",{"_index":477,"t":{"31":{"position":[[69,4]]}}}],["offer",{"_index":500,"t":{"33":{"position":[[200,5]]},"37":{"position":[[18,5]]},"90":{"position":[[1486,5]]}}}],["offers",{"_index":555,"t":{"39":{"position":[[20,6]]}}}],["old",{"_index":942,"t":{"90":{"position":[[1960,4]]}}}],["one",{"_index":95,"t":{"7":{"position":[[345,3]]},"21":{"position":[[402,3]]},"25":{"position":[[300,3]]},"27":{"position":[[423,3]]},"41":{"position":[[608,3]]},"84":{"position":[[647,3]]},"90":{"position":[[1778,3],[1795,3]]},"92":{"position":[[211,3],[2672,5],[3088,3]]}}}],["open",{"_index":145,"t":{"11":{"position":[[53,4],[90,4],[672,4]]},"13":{"position":[[493,4]]},"31":{"position":[[130,4]]},"86":{"position":[[54,4]]},"88":{"position":[[57,4]]}}}],["opening",{"_index":1082,"t":{"92":{"position":[[3705,7]]}}}],["operates",{"_index":612,"t":{"41":{"position":[[186,8]]}}}],["operations",{"_index":1062,"t":{"92":{"position":[[3061,11]]}}}],["opportunity",{"_index":712,"t":{"43":{"position":[[119,11]]}}}],["optimal",{"_index":748,"t":{"43":{"position":[[837,7]]}}}],["optimizations",{"_index":439,"t":{"27":{"position":[[209,13]]}}}],["optimize",{"_index":297,"t":{"15":{"position":[[832,8]]},"21":{"position":[[225,8],[570,8],[767,8],[1082,8]]},"27":{"position":[[845,8]]},"41":{"position":[[121,8]]}}}],["optimizing",{"_index":640,"t":{"41":{"position":[[832,10]]}}}],["option",{"_index":461,"t":{"27":{"position":[[931,6]]}}}],["options",{"_index":409,"t":{"25":{"position":[[592,7]]},"86":{"position":[[1485,7]]},"92":{"position":[[582,7]]}}}],["organic",{"_index":83,"t":{"7":{"position":[[162,7]]}}}],["out",{"_index":217,"t":{"13":{"position":[[540,3]]},"15":{"position":[[1132,3]]},"35":{"position":[[449,3]]},"86":{"position":[[1322,4]]},"90":{"position":[[484,3]]},"94":{"position":[[546,3]]}}}],["outfit",{"_index":1118,"t":{"92":{"position":[[4756,9],[5107,9]]}}}],["outside",{"_index":472,"t":{"29":{"position":[[94,7]]}}}],["over",{"_index":47,"t":{"3":{"position":[[621,4]]},"5":{"position":[[84,4]]},"7":{"position":[[177,4]]},"9":{"position":[[264,4]]},"27":{"position":[[168,4]]},"37":{"position":[[265,4]]},"39":{"position":[[65,4]]},"86":{"position":[[582,4]]},"90":{"position":[[1283,4],[1611,4]]}}}],["overall",{"_index":374,"t":{"21":{"position":[[802,8]]},"27":{"position":[[984,8]]}}}],["overengineered",{"_index":882,"t":{"86":{"position":[[1744,14]]}}}],["overhaul",{"_index":707,"t":{"43":{"position":[[38,8]]}}}],["overhauled",{"_index":828,"t":{"86":{"position":[[260,10]]}}}],["overhead",{"_index":642,"t":{"41":{"position":[[857,9],[996,8]]}}}],["overlayblend",{"_index":1026,"t":{"92":{"position":[[2341,13]]}}}],["oversights",{"_index":872,"t":{"86":{"position":[[1547,11]]}}}],["overuse",{"_index":1035,"t":{"92":{"position":[[2534,7]]}}}],["overview",{"_index":723,"t":{"43":{"position":[[443,8]]}}}],["package",{"_index":933,"t":{"90":{"position":[[1723,7],[1782,7]]}}}],["packed",{"_index":535,"t":{"37":{"position":[[165,6]]}}}],["panning",{"_index":978,"t":{"92":{"position":[[926,7]]}}}],["paradigm",{"_index":862,"t":{"86":{"position":[[1252,9]]},"90":{"position":[[1120,8]]}}}],["parameters",{"_index":696,"t":{"41":{"position":[[1863,10]]}}}],["parcel",{"_index":340,"t":{"19":{"position":[[599,7]]}}}],["part",{"_index":262,"t":{"15":{"position":[[83,4]]},"86":{"position":[[42,4]]}}}],["particularly",{"_index":880,"t":{"86":{"position":[[1709,12]]},"92":{"position":[[3556,12]]}}}],["parts",{"_index":829,"t":{"86":{"position":[[277,5]]}}}],["party",{"_index":140,"t":{"9":{"position":[[626,5]]},"41":{"position":[[2058,5]]}}}],["past",{"_index":871,"t":{"86":{"position":[[1542,4],[1766,4]]}}}],["path",{"_index":1085,"t":{"92":{"position":[[3784,4],[3864,5],[3911,5]]}}}],["paths",{"_index":1077,"t":{"92":{"position":[[3609,5]]}}}],["patrick",{"_index":121,"t":{"9":{"position":[[160,7]]}}}],["perfect",{"_index":750,"t":{"45":{"position":[[56,7]]},"94":{"position":[[144,8]]}}}],["performance",{"_index":128,"t":{"9":{"position":[[340,12]]},"15":{"position":[[616,11],[887,12]]},"21":{"position":[[316,11],[906,12]]},"27":{"position":[[370,11],[712,11]]},"37":{"position":[[184,11]]},"39":{"position":[[41,11]]},"41":{"position":[[54,11],[717,11],[1274,11]]},"43":{"position":[[52,11]]},"86":{"position":[[1809,12],[1901,12]]},"90":{"position":[[213,11],[234,11],[1271,11],[1499,11]]},"92":{"position":[[1074,12],[4236,11]]}}}],["phase",{"_index":67,"t":{"5":{"position":[[135,5]]},"15":{"position":[[13,5]]},"17":{"position":[[0,5]]},"23":{"position":[[0,5]]},"29":{"position":[[0,5]]}}}],["phaser",{"_index":270,"t":{"15":{"position":[[290,7]]}}}],["phases",{"_index":62,"t":{"5":{"position":[[77,6]]},"86":{"position":[[1315,6]]}}}],["photoshop",{"_index":1009,"t":{"92":{"position":[[1990,9]]}}}],["physics",{"_index":502,"t":{"33":{"position":[[350,7]]}}}],["pick",{"_index":1042,"t":{"92":{"position":[[2667,4]]}}}],["picture",{"_index":847,"t":{"86":{"position":[[786,8]]}}}],["pinlightblend",{"_index":1027,"t":{"92":{"position":[[2355,14]]}}}],["pipeline",{"_index":553,"t":{"37":{"position":[[566,8]]}}}],["pixi",{"_index":120,"t":{"9":{"position":[[136,4]]},"92":{"position":[[672,4]]}}}],["pixi(el",{"_index":818,"t":{"84":{"position":[[651,8]]}}}],["pixi.js",{"_index":775,"t":{"47":{"position":[[212,10]]},"90":{"position":[[1832,10],[2083,10]]},"92":{"position":[[493,10]]}}}],["pixi.js/advanced",{"_index":1039,"t":{"92":{"position":[[2584,17]]}}}],["pixi.js@prerelease",{"_index":770,"t":{"47":{"position":[[62,18]]}}}],["pixi/graphics",{"_index":945,"t":{"90":{"position":[[2028,17]]}}}],["pixi/sprite",{"_index":943,"t":{"90":{"position":[[1988,15]]}}}],["pixijs",{"_index":3,"t":{"3":{"position":[[45,6],[115,6],[206,6],[405,7],[603,6]]},"5":{"position":[[219,7]]},"7":{"position":[[100,7],[238,6]]},"9":{"position":[[11,6],[62,6],[92,6],[211,6],[247,6],[512,7],[568,6]]},"11":{"position":[[45,7],[134,6],[273,6],[421,6],[493,6],[597,6],[633,6],[651,6],[665,6],[770,6],[900,7]]},"13":{"position":[[0,6],[107,7],[455,6],[569,6],[591,6],[731,7],[833,6],[863,6],[1003,6],[1246,6],[1327,6]]},"15":{"position":[[269,7]]},"17":{"position":[[67,6]]},"19":{"position":[[51,6],[103,6],[683,6],[788,6]]},"21":{"position":[[0,6],[112,6],[217,7],[433,6],[530,7],[714,6],[811,6],[955,7],[1040,7]]},"23":{"position":[[93,6]]},"25":{"position":[[114,7]]},"27":{"position":[[0,6],[79,6],[235,6],[269,6],[460,6],[795,6],[993,6]]},"29":{"position":[[49,6]]},"31":{"position":[[99,7],[262,6]]},"33":{"position":[[85,6],[306,6]]},"35":{"position":[[81,6],[200,6],[414,6],[525,6]]},"37":{"position":[[103,6],[375,6]]},"39":{"position":[[587,6],[921,6]]},"41":{"position":[[0,6]]},"43":{"position":[[516,6],[645,6]]},"45":{"position":[[307,6],[381,6]]},"47":{"position":[[380,6]]},"49":{"position":[[60,6]]},"84":{"position":[[64,6],[174,6],[381,6],[553,6]]},"86":{"position":[[26,6],[175,7],[373,6],[800,6],[864,7],[1271,6],[1652,7],[1822,6],[1990,6],[2252,6]]},"90":{"position":[[1315,6],[1759,6]]},"94":{"position":[[3,6],[267,6]]},"96":{"position":[[59,6]]}}}],["pixijs's",{"_index":495,"t":{"31":{"position":[[535,8]]},"39":{"position":[[308,8],[443,8]]},"94":{"position":[[715,8]]}}}],["pixijs’s",{"_index":702,"t":{"41":{"position":[[2049,8]]}}}],["place",{"_index":96,"t":{"7":{"position":[[349,5]]},"84":{"position":[[640,6]]}}}],["plan",{"_index":575,"t":{"39":{"position":[[557,4]]}}}],["planned",{"_index":54,"t":{"3":{"position":[[677,8]]},"11":{"position":[[542,7]]},"21":{"position":[[53,7]]}}}],["planning",{"_index":99,"t":{"7":{"position":[[393,8]]},"31":{"position":[[118,8]]}}}],["plans",{"_index":489,"t":{"31":{"position":[[451,5]]}}}],["play",{"_index":180,"t":{"11":{"position":[[1026,4],[1048,4]]},"41":{"position":[[1833,5]]},"92":{"position":[[4150,4]]}}}],["playco",{"_index":40,"t":{"3":{"position":[[534,6]]},"31":{"position":[[24,7]]},"35":{"position":[[240,6]]},"94":{"position":[[553,6]]}}}],["player",{"_index":415,"t":{"25":{"position":[[778,6]]}}}],["playing",{"_index":538,"t":{"37":{"position":[[251,7]]}}}],["please",{"_index":110,"t":{"7":{"position":[[594,6]]},"41":{"position":[[1819,6]]},"92":{"position":[[4090,6]]}}}],["plethora",{"_index":713,"t":{"43":{"position":[[166,8]]}}}],["plugins",{"_index":288,"t":{"15":{"position":[[666,7]]}}}],["point",{"_index":956,"t":{"92":{"position":[[259,5]]}}}],["popular",{"_index":18,"t":{"3":{"position":[[231,7]]},"19":{"position":[[461,7]]}}}],["position",{"_index":654,"t":{"41":{"position":[[1100,9]]}}}],["possibilities",{"_index":1083,"t":{"92":{"position":[[3720,13]]}}}],["possible",{"_index":519,"t":{"35":{"position":[[270,9]]},"84":{"position":[[43,8]]},"86":{"position":[[2182,9]]}}}],["post",{"_index":306,"t":{"15":{"position":[[967,4]]},"43":{"position":[[245,5]]},"90":{"position":[[76,5]]}}}],["posts",{"_index":716,"t":{"43":{"position":[[280,5]]}}}],["potential",{"_index":1037,"t":{"92":{"position":[[2556,9]]}}}],["potions",{"_index":182,"t":{"11":{"position":[[1040,7]]}}}],["powered",{"_index":565,"t":{"39":{"position":[[251,7]]}}}],["powerful",{"_index":375,"t":{"21":{"position":[[838,8]]},"84":{"position":[[273,9]]},"86":{"position":[[1521,9]]}}}],["powering",{"_index":1061,"t":{"92":{"position":[[3039,8]]}}}],["practices",{"_index":360,"t":{"21":{"position":[[262,10]]},"43":{"position":[[845,10]]}}}],["precisely",{"_index":602,"t":{"39":{"position":[[1080,9]]}}}],["predecessor",{"_index":557,"t":{"39":{"position":[[74,12]]}}}],["prefer",{"_index":1100,"t":{"92":{"position":[[4389,7]]}}}],["preferred",{"_index":344,"t":{"19":{"position":[[710,9]]}}}],["preview",{"_index":531,"t":{"37":{"position":[[37,7]]}}}],["problem",{"_index":845,"t":{"86":{"position":[[747,8]]}}}],["process",{"_index":265,"t":{"15":{"position":[[164,7]]},"19":{"position":[[79,7]]},"21":{"position":[[507,7],[641,7]]},"92":{"position":[[35,7],[387,8],[1806,7]]}}}],["product",{"_index":422,"t":{"25":{"position":[[940,7]]}}}],["professional",{"_index":154,"t":{"11":{"position":[[237,12]]}}}],["progress",{"_index":199,"t":{"13":{"position":[[249,8]]},"31":{"position":[[438,8]]},"45":{"position":[[6,8]]}}}],["project",{"_index":174,"t":{"11":{"position":[[912,7],[1005,8]]},"31":{"position":[[372,8],[410,8]]},"86":{"position":[[1565,7]]}}}],["projects",{"_index":53,"t":{"3":{"position":[[668,8]]},"5":{"position":[[20,8]]},"9":{"position":[[237,9]]},"23":{"position":[[31,8]]},"35":{"position":[[46,8]]},"43":{"position":[[413,9]]},"84":{"position":[[576,8]]}}}],["promise",{"_index":959,"t":{"92":{"position":[[417,7]]}}}],["proof",{"_index":605,"t":{"39":{"position":[[1130,5]]}}}],["propels",{"_index":559,"t":{"39":{"position":[[97,7]]}}}],["property",{"_index":999,"t":{"92":{"position":[[1693,8]]}}}],["proud",{"_index":890,"t":{"86":{"position":[[1981,5]]}}}],["provide",{"_index":153,"t":{"11":{"position":[[229,7]]},"15":{"position":[[498,7]]},"19":{"position":[[523,7]]},"33":{"position":[[130,7]]}}}],["provided",{"_index":892,"t":{"86":{"position":[[2112,8]]},"90":{"position":[[190,8]]}}}],["provides",{"_index":116,"t":{"9":{"position":[[40,8],[410,8]]},"15":{"position":[[301,8],[657,8],[977,8]]},"25":{"position":[[365,8],[562,8]]}}}],["providing",{"_index":379,"t":{"21":{"position":[[966,9]]},"27":{"position":[[321,9]]},"39":{"position":[[151,9]]}}}],["purpose",{"_index":152,"t":{"11":{"position":[[200,7]]}}}],["purposes",{"_index":948,"t":{"92":{"position":[[80,9]]}}}],["push",{"_index":795,"t":{"84":{"position":[[13,4]]},"94":{"position":[[643,4]]}}}],["put",{"_index":92,"t":{"7":{"position":[[318,3]]}}}],["puzzling",{"_index":181,"t":{"11":{"position":[[1031,8]]}}}],["q",{"_index":1066,"t":{"92":{"position":[[3323,1]]}}}],["quality",{"_index":429,"t":{"25":{"position":[[1128,7]]}}}],["quick",{"_index":1135,"t":{"94":{"position":[[176,5]]}}}],["radio",{"_index":198,"t":{"13":{"position":[[230,5]]}}}],["range",{"_index":189,"t":{"13":{"position":[[138,5]]},"15":{"position":[[312,5]]},"25":{"position":[[573,5]]},"92":{"position":[[1981,5]]}}}],["ratios",{"_index":233,"t":{"13":{"position":[[825,7]]}}}],["re",{"_index":550,"t":{"37":{"position":[[524,2]]}}}],["react",{"_index":114,"t":{"9":{"position":[[18,6],[72,5],[99,5],[130,5],[231,5],[488,5]]},"11":{"position":[[658,6]]},"19":{"position":[[418,5]]}}}],["reactive",{"_index":913,"t":{"90":{"position":[[421,8]]}}}],["read",{"_index":541,"t":{"37":{"position":[[302,4]]}}}],["ready",{"_index":254,"t":{"13":{"position":[[1299,5]]},"84":{"position":[[4,5]]},"86":{"position":[[2196,5]]}}}],["real",{"_index":218,"t":{"13":{"position":[[548,4]]},"25":{"position":[[1012,4]]},"49":{"position":[[227,4]]},"96":{"position":[[226,4]]}}}],["reality",{"_index":1149,"t":{"94":{"position":[[603,8]]}}}],["rearchitected",{"_index":875,"t":{"86":{"position":[[1619,13]]}}}],["reconstructing",{"_index":650,"t":{"41":{"position":[[1008,14]]}}}],["record",{"_index":430,"t":{"25":{"position":[[1162,6]]}}}],["recreate",{"_index":416,"t":{"25":{"position":[[822,8]]}}}],["rect",{"_index":1086,"t":{"92":{"position":[[3810,6]]}}}],["rect(50",{"_index":1056,"t":{"92":{"position":[[2961,9]]}}}],["rectangle",{"_index":1054,"t":{"92":{"position":[[2916,9]]}}}],["red",{"_index":993,"t":{"92":{"position":[[1477,3],[1498,5],[4786,6]]}}}],["reduce",{"_index":462,"t":{"27":{"position":[[964,6]]}}}],["reducing",{"_index":661,"t":{"41":{"position":[[1198,8]]},"86":{"position":[[1660,8]]},"90":{"position":[[1922,8]]}}}],["refer",{"_index":1090,"t":{"92":{"position":[[4097,5]]}}}],["refine",{"_index":840,"t":{"86":{"position":[[654,7]]}}}],["refinements",{"_index":719,"t":{"43":{"position":[[354,12]]}}}],["reflection",{"_index":832,"t":{"86":{"position":[[454,10]]}}}],["regardless",{"_index":343,"t":{"19":{"position":[[690,10]]}}}],["relatively",{"_index":929,"t":{"90":{"position":[[1561,10]]}}}],["release",{"_index":70,"t":{"5":{"position":[[163,7]]},"11":{"position":[[554,8]]},"27":{"position":[[33,7]]},"31":{"position":[[507,7]]},"37":{"position":[[92,7],[423,7]]},"43":{"position":[[482,7]]},"45":{"position":[[26,7]]},"86":{"position":[[432,7]]},"94":{"position":[[593,7]]}}}],["released",{"_index":142,"t":{"11":{"position":[[12,8],[164,8],[322,8]]},"21":{"position":[[67,8]]}}}],["releasing",{"_index":60,"t":{"5":{"position":[[54,9]]},"7":{"position":[[52,9]]},"15":{"position":[[946,9]]}}}],["relevant",{"_index":859,"t":{"86":{"position":[[1044,8]]}}}],["remain",{"_index":858,"t":{"86":{"position":[[1037,6]]}}}],["remains",{"_index":643,"t":{"41":{"position":[[894,7]]},"86":{"position":[[1278,7]]}}}],["remarkable",{"_index":721,"t":{"43":{"position":[[402,10]]}}}],["reminiscent",{"_index":567,"t":{"39":{"position":[[293,11]]}}}],["render",{"_index":623,"t":{"41":{"position":[[388,6]]},"90":{"position":[[430,6]]},"92":{"position":[[724,6],[1749,6]]}}}],["renderer",{"_index":20,"t":{"3":{"position":[[242,8]]},"27":{"position":[[880,9]]},"41":{"position":[[217,9],[2024,9]]},"47":{"position":[[125,8],[253,8],[344,8]]},"86":{"position":[[1229,8]]},"90":{"position":[[319,9],[1018,9]]},"92":{"position":[[20,9],[137,8],[606,8],[1837,9]]}}}],["renderers",{"_index":910,"t":{"90":{"position":[[271,10]]}}}],["rendering",{"_index":23,"t":{"3":{"position":[[290,9]]},"21":{"position":[[583,9],[780,9]]},"27":{"position":[[360,9]]},"29":{"position":[[117,10]]},"37":{"position":[[556,9]]},"39":{"position":[[232,9],[502,9]]},"41":{"position":[[154,10],[624,9],[956,9],[1345,9],[1398,9]]},"86":{"position":[[1132,9],[2237,9]]},"90":{"position":[[534,9],[587,9],[1067,10],[1537,10]]},"92":{"position":[[1586,9],[2043,9]]}}}],["rendertexture.create",{"_index":1003,"t":{"92":{"position":[[1863,22]]}}}],["renowned",{"_index":886,"t":{"86":{"position":[[1840,8]]}}}],["repeating",{"_index":585,"t":{"39":{"position":[[732,9]]}}}],["repo",{"_index":113,"t":{"7":{"position":[[621,4]]},"9":{"position":[[650,4]]},"11":{"position":[[1021,4]]},"13":{"position":[[586,4],[1348,4]]},"15":{"position":[[1147,4],[1159,4]]},"41":{"position":[[1814,4]]},"90":{"position":[[1002,4]]}}}],["repository",{"_index":143,"t":{"11":{"position":[[27,10]]}}}],["represents",{"_index":432,"t":{"27":{"position":[[46,10],[1003,10]]},"29":{"position":[[8,10]]}}}],["required",{"_index":1105,"t":{"92":{"position":[[4454,9]]}}}],["resembling",{"_index":1048,"t":{"92":{"position":[[2837,10]]}}}],["resizable",{"_index":242,"t":{"13":{"position":[[1053,9]]}}}],["resource",{"_index":168,"t":{"11":{"position":[[712,8]]}}}],["resources",{"_index":365,"t":{"21":{"position":[[353,9]]},"35":{"position":[[345,10]]}}}],["respond",{"_index":238,"t":{"13":{"position":[[956,7]]}}}],["responses",{"_index":1136,"t":{"94":{"position":[[182,9]]}}}],["responsive",{"_index":224,"t":{"13":{"position":[[706,10]]}}}],["rest",{"_index":738,"t":{"43":{"position":[[717,4]]}}}],["retains",{"_index":730,"t":{"43":{"position":[[526,7]]}}}],["return",{"_index":781,"t":{"47":{"position":[[319,6]]}}}],["reuse",{"_index":647,"t":{"41":{"position":[[937,5]]}}}],["revealed",{"_index":385,"t":{"23":{"position":[[52,9]]}}}],["revisit",{"_index":849,"t":{"86":{"position":[[826,7]]}}}],["revisited",{"_index":609,"t":{"41":{"position":[[91,9]]}}}],["rewrite",{"_index":434,"t":{"27":{"position":[[68,7]]},"39":{"position":[[1053,7]]}}}],["rich",{"_index":917,"t":{"90":{"position":[[1176,4]]}}}],["ridiculously",{"_index":805,"t":{"84":{"position":[[260,12]]}}}],["right",{"_index":349,"t":{"19":{"position":[[848,5]]},"37":{"position":[[312,6]]},"45":{"position":[[359,5]]}}}],["robust",{"_index":562,"t":{"39":{"position":[[182,6]]},"43":{"position":[[657,6]]},"84":{"position":[[248,7]]},"86":{"position":[[1057,6]]}}}],["rollup",{"_index":341,"t":{"19":{"position":[[607,7]]}}}],["room",{"_index":836,"t":{"86":{"position":[[560,4]]}}}],["root",{"_index":935,"t":{"90":{"position":[[1806,5]]}}}],["roughly",{"_index":588,"t":{"39":{"position":[[817,7]]}}}],["runtime",{"_index":414,"t":{"25":{"position":[[770,7]]}}}],["same",{"_index":370,"t":{"21":{"position":[[620,4]]},"39":{"position":[[948,4]]},"92":{"position":[[1402,4],[4840,4],[5164,4],[5228,4]]}}}],["saturationblend",{"_index":1028,"t":{"92":{"position":[[2370,16]]}}}],["saving",{"_index":659,"t":{"41":{"position":[[1169,6]]},"92":{"position":[[4464,6]]}}}],["scenarios",{"_index":919,"t":{"90":{"position":[[1301,10]]}}}],["scene",{"_index":616,"t":{"41":{"position":[[254,5],[324,5],[527,5],[587,5],[882,5],[1087,5],[1625,5]]},"90":{"position":[[814,5]]},"92":{"position":[[693,5]]}}}],["scenes",{"_index":400,"t":{"25":{"position":[[399,7],[492,6],[831,6]]},"90":{"position":[[1399,6]]}}}],["screen",{"_index":230,"t":{"13":{"position":[[801,6],[982,6],[1103,6]]},"41":{"position":[[444,7]]}}}],["scroll",{"_index":195,"t":{"13":{"position":[[209,6]]}}}],["seamless",{"_index":806,"t":{"84":{"position":[[292,8]]}}}],["seamlessly",{"_index":481,"t":{"31":{"position":[[193,10]]},"86":{"position":[[1160,10]]}}}],["searchable",{"_index":98,"t":{"7":{"position":[[369,11]]}}}],["second",{"_index":620,"t":{"41":{"position":[[338,6],[867,7]]}}}],["secondly",{"_index":957,"t":{"92":{"position":[[322,9]]}}}],["see",{"_index":521,"t":{"35":{"position":[[297,3]]},"41":{"position":[[1929,3]]},"43":{"position":[[790,3]]},"86":{"position":[[771,3]]},"94":{"position":[[66,3],[756,3]]}}}],["seen",{"_index":69,"t":{"5":{"position":[[154,4]]},"86":{"position":[[189,4]]}}}],["seized",{"_index":711,"t":{"43":{"position":[[107,6]]}}}],["served",{"_index":834,"t":{"86":{"position":[[502,6]]}}}],["serves",{"_index":931,"t":{"90":{"position":[[1662,6]]},"92":{"position":[[69,6]]}}}],["set",{"_index":322,"t":{"19":{"position":[[174,3]]},"41":{"position":[[555,3]]},"90":{"position":[[1148,3]]}}}],["setting",{"_index":326,"t":{"19":{"position":[[216,7]]},"92":{"position":[[1705,7]]}}}],["settings",{"_index":780,"t":{"47":{"position":[[298,8]]}}}],["setup",{"_index":330,"t":{"19":{"position":[[291,5]]}}}],["several",{"_index":57,"t":{"5":{"position":[[8,7],[174,7]]}}}],["shaking",{"_index":938,"t":{"90":{"position":[[1890,7]]}}}],["shapes",{"_index":1076,"t":{"92":{"position":[[3532,7]]}}}],["shaping",{"_index":784,"t":{"47":{"position":[[416,7]]}}}],["share",{"_index":490,"t":{"31":{"position":[[460,5]]},"45":{"position":[[191,5]]},"86":{"position":[[2013,5]]}}}],["shared",{"_index":508,"t":{"35":{"position":[[6,6]]}}}],["sharing",{"_index":428,"t":{"25":{"position":[[1085,7]]},"92":{"position":[[3521,7]]}}}],["sheets",{"_index":285,"t":{"15":{"position":[[572,7]]}}}],["shift",{"_index":566,"t":{"39":{"position":[[284,5]]}}}],["shooter",{"_index":161,"t":{"11":{"position":[[363,7]]}}}],["shortcomings",{"_index":833,"t":{"86":{"position":[[472,12]]}}}],["shortly",{"_index":313,"t":{"17":{"position":[[19,7]]},"49":{"position":[[131,8]]},"96":{"position":[[130,8]]}}}],["shout",{"_index":1148,"t":{"94":{"position":[[540,5]]}}}],["showcases",{"_index":148,"t":{"11":{"position":[[113,9]]}}}],["side",{"_index":922,"t":{"90":{"position":[[1367,4]]}}}],["significant",{"_index":440,"t":{"27":{"position":[[333,11],[823,11]]},"37":{"position":[[348,11]]},"43":{"position":[[578,11]]},"86":{"position":[[194,11]]}}}],["significantly",{"_index":286,"t":{"15":{"position":[[590,13]]},"27":{"position":[[686,13]]},"86":{"position":[[1393,13]]},"92":{"position":[[1052,13]]}}}],["similar",{"_index":333,"t":{"19":{"position":[[376,7]]},"90":{"position":[[1622,7]]},"92":{"position":[[947,7],[1791,7],[3073,7]]}}}],["simplified",{"_index":865,"t":{"86":{"position":[[1407,10]]},"92":{"position":[[1636,11],[2929,10]]}}}],["simplify",{"_index":319,"t":{"19":{"position":[[66,8]]}}}],["simply",{"_index":743,"t":{"43":{"position":[[783,6]]}}}],["sincere",{"_index":516,"t":{"35":{"position":[[178,7]]}}}],["single",{"_index":407,"t":{"25":{"position":[[530,6]]},"41":{"position":[[1357,6],[1410,6]]},"43":{"position":[[238,6]]},"90":{"position":[[69,6],[546,6],[599,6]]},"92":{"position":[[3135,6]]}}}],["site",{"_index":109,"t":{"7":{"position":[[589,4]]}}}],["sites",{"_index":91,"t":{"7":{"position":[[289,6]]}}}],["sitting",{"_index":444,"t":{"27":{"position":[[408,7]]}}}],["situation",{"_index":672,"t":{"41":{"position":[[1429,9]]},"90":{"position":[[618,9]]}}}],["size",{"_index":244,"t":{"13":{"position":[[1110,4]]},"27":{"position":[[978,5]]},"90":{"position":[[1938,4]]}}}],["sizes",{"_index":231,"t":{"13":{"position":[[808,5]]}}}],["skipped",{"_index":657,"t":{"41":{"position":[[1152,8]]}}}],["sliders",{"_index":192,"t":{"13":{"position":[[187,8]]}}}],["slowdowns",{"_index":1038,"t":{"92":{"position":[[2566,10]]}}}],["small",{"_index":247,"t":{"13":{"position":[[1198,5]]}}}],["smoother",{"_index":811,"t":{"84":{"position":[[359,8]]}}}],["social",{"_index":786,"t":{"49":{"position":[[70,6]]},"96":{"position":[[69,6]]}}}],["softlightblend",{"_index":1029,"t":{"92":{"position":[[2387,15]]}}}],["solid",{"_index":932,"t":{"90":{"position":[[1674,5]]}}}],["solutions",{"_index":841,"t":{"86":{"position":[[678,9]]}}}],["somewhat",{"_index":613,"t":{"41":{"position":[[200,8]]}}}],["somewhere",{"_index":960,"t":{"92":{"position":[[434,10]]}}}],["soon",{"_index":304,"t":{"15":{"position":[[938,4]]},"21":{"position":[[76,4]]},"39":{"position":[[194,5]]}}}],["source",{"_index":147,"t":{"11":{"position":[[95,6],[823,6]]},"13":{"position":[[498,6]]},"31":{"position":[[135,6]]},"86":{"position":[[59,6]]}}}],["specific",{"_index":212,"t":{"13":{"position":[[439,8]]}}}],["speed",{"_index":608,"t":{"41":{"position":[[39,5]]},"86":{"position":[[1857,6]]},"90":{"position":[[337,5],[1605,5]]}}}],["spend",{"_index":670,"t":{"41":{"position":[[1381,5]]}}}],["spent",{"_index":669,"t":{"41":{"position":[[1328,5]]},"90":{"position":[[517,5],[570,5]]}}}],["sprite",{"_index":284,"t":{"15":{"position":[[565,6]]},"90":{"position":[[1974,6],[2060,7]]}}}],["sprites",{"_index":401,"t":{"25":{"position":[[407,8],[613,8]]},"41":{"position":[[1488,7],[1544,7],[1607,7]]},"90":{"position":[[677,7],[733,7],[796,7]]},"92":{"position":[[3124,8]]}}}],["stage",{"_index":753,"t":{"45":{"position":[[126,5]]}}}],["stand",{"_index":856,"t":{"86":{"position":[[992,5]]}}}],["standard",{"_index":1095,"t":{"92":{"position":[[4307,9]]}}}],["standout",{"_index":397,"t":{"25":{"position":[[311,8]]},"39":{"position":[[452,8]]}}}],["start",{"_index":348,"t":{"19":{"position":[[833,5]]},"23":{"position":[[40,5]]},"37":{"position":[[245,5]]},"47":{"position":[[355,5]]}}}],["started",{"_index":342,"t":{"19":{"position":[[670,7]]},"25":{"position":[[681,7]]}}}],["state",{"_index":504,"t":{"33":{"position":[[420,5]]}}}],["static",{"_index":611,"t":{"41":{"position":[[135,6]]},"92":{"position":[[904,6]]}}}],["stay",{"_index":528,"t":{"35":{"position":[[490,4]]},"43":{"position":[[251,4]]},"49":{"position":[[4,4]]},"96":{"position":[[3,4]]}}}],["step",{"_index":655,"t":{"41":{"position":[[1126,4],[1131,5]]}}}],["stepped",{"_index":844,"t":{"86":{"position":[[725,7]]}}}],["steps",{"_index":1131,"t":{"94":{"position":[[29,5]]}}}],["still",{"_index":253,"t":{"13":{"position":[[1263,5]]}}}],["stop",{"_index":710,"t":{"43":{"position":[[89,4]]}}}],["strategy",{"_index":598,"t":{"39":{"position":[[962,9]]}}}],["streamlining",{"_index":851,"t":{"86":{"position":[[872,12]]}}}],["strictly",{"_index":473,"t":{"29":{"position":[[105,8]]}}}],["stroke",{"_index":1125,"t":{"92":{"position":[[4946,6],[5191,7]]}}}],["strokes",{"_index":1121,"t":{"92":{"position":[[4813,7],[4855,7],[5249,7]]}}}],["structure",{"_index":86,"t":{"7":{"position":[[204,9]]},"41":{"position":[[1631,10]]},"90":{"position":[[820,10],[1731,10]]}}}],["stuck",{"_index":309,"t":{"15":{"position":[[1106,5]]}}}],["stuff",{"_index":936,"t":{"90":{"position":[[1819,7]]},"92":{"position":[[290,5]]}}}],["stunning",{"_index":378,"t":{"21":{"position":[[928,8]]}}}],["style",{"_index":1116,"t":{"92":{"position":[[4736,7],[5087,7]]}}}],["subsequent",{"_index":645,"t":{"41":{"position":[[915,10]]}}}],["substantial",{"_index":556,"t":{"39":{"position":[[29,11]]},"86":{"position":[[402,11]]}}}],["subtractblend",{"_index":1030,"t":{"92":{"position":[[2403,14]]}}}],["such",{"_index":87,"t":{"7":{"position":[[221,4]]},"11":{"position":[[485,4],[625,4]]},"13":{"position":[[158,4]]},"19":{"position":[[403,4]]},"86":{"position":[[298,4]]},"90":{"position":[[1434,4]]}}}],["suffered",{"_index":80,"t":{"7":{"position":[[138,8]]}}}],["suited",{"_index":467,"t":{"27":{"position":[[1120,6]]}}}],["supercharged",{"_index":802,"t":{"84":{"position":[[161,12]]}}}],["support",{"_index":129,"t":{"9":{"position":[[372,7]]},"27":{"position":[[502,7],[782,8]]},"33":{"position":[[338,7]]},"35":{"position":[[393,7]]},"92":{"position":[[1962,7],[3246,7],[3357,7]]},"94":{"position":[[570,7]]}}}],["supported",{"_index":587,"t":{"39":{"position":[[772,9],[910,10]]}}}],["sure",{"_index":524,"t":{"35":{"position":[[435,4]]},"41":{"position":[[275,4]]},"90":{"position":[[165,4]]},"92":{"position":[[2623,4]]}}}],["svg",{"_index":1064,"t":{"92":{"position":[[3258,3]]}}}],["switch",{"_index":484,"t":{"31":{"position":[[300,6]]},"92":{"position":[[4587,6]]}}}],["synonymous",{"_index":607,"t":{"41":{"position":[[23,10]]}}}],["take",{"_index":453,"t":{"27":{"position":[[631,4]]},"92":{"position":[[2033,4]]}}}],["taken",{"_index":125,"t":{"9":{"position":[[258,5]]},"90":{"position":[[389,5]]}}}],["takes",{"_index":1130,"t":{"94":{"position":[[13,5]]}}}],["team",{"_index":43,"t":{"3":{"position":[[567,4]]},"19":{"position":[[58,4]]},"27":{"position":[[122,4],[802,4]]},"31":{"position":[[423,4]]},"94":{"position":[[411,4]]}}}],["teams",{"_index":426,"t":{"25":{"position":[[1061,5]]}}}],["technique",{"_index":368,"t":{"21":{"position":[[552,9]]}}}],["technological",{"_index":804,"t":{"84":{"position":[[197,13]]}}}],["technology",{"_index":600,"t":{"39":{"position":[[1013,10]]},"86":{"position":[[1142,11]]}}}],["templates",{"_index":338,"t":{"19":{"position":[[531,9]]}}}],["ten",{"_index":52,"t":{"3":{"position":[[664,3]]},"37":{"position":[[319,3]]},"39":{"position":[[1167,3]]},"86":{"position":[[91,3]]}}}],["term",{"_index":82,"t":{"7":{"position":[[157,4]]},"23":{"position":[[26,4]]},"31":{"position":[[405,4]]}}}],["territory",{"_index":469,"t":{"29":{"position":[[35,9]]}}}],["test",{"_index":417,"t":{"25":{"position":[[887,4]]},"41":{"position":[[1726,4]]},"86":{"position":[[1002,4]]},"90":{"position":[[914,4]]}}}],["testing",{"_index":1143,"t":{"94":{"position":[[351,7]]}}}],["text",{"_index":193,"t":{"13":{"position":[[196,4]]},"92":{"position":[[4178,4],[4193,4],[4503,4],[4557,4],[4667,5],[4798,4],[4984,5],[5009,6],[5016,5],[5043,6]]}}}],["texture",{"_index":997,"t":{"92":{"position":[[1601,7],[1756,7],[1853,7],[3092,7],[3955,8],[5139,8]]}}}],["texture.white",{"_index":1087,"t":{"92":{"position":[[3964,14]]}}}],["textures",{"_index":883,"t":{"86":{"position":[[1788,11]]},"92":{"position":[[4898,9]]}}}],["thanks",{"_index":517,"t":{"35":{"position":[[186,6]]},"94":{"position":[[299,6]]}}}],["there's",{"_index":513,"t":{"35":{"position":[[99,7]]},"86":{"position":[[545,7]]},"92":{"position":[[248,7]]}}}],["thereby",{"_index":658,"t":{"41":{"position":[[1161,7]]}}}],["things",{"_index":629,"t":{"41":{"position":[[494,6]]},"92":{"position":[[677,6]]},"94":{"position":[[128,6]]}}}],["third",{"_index":652,"t":{"41":{"position":[[1058,6]]}}}],["those",{"_index":480,"t":{"31":{"position":[[168,5]]}}}],["thoughts—the",{"_index":758,"t":{"45":{"position":[[202,12]]}}}],["three",{"_index":634,"t":{"41":{"position":[[671,5]]}}}],["threejs",{"_index":269,"t":{"15":{"position":[[277,8]]}}}],["thrilled",{"_index":497,"t":{"33":{"position":[[16,8]]},"37":{"position":[[6,8]]},"86":{"position":[[354,8]]}}}],["through",{"_index":977,"t":{"92":{"position":[[918,7]]}}}],["time",{"_index":46,"t":{"3":{"position":[[615,5]]},"25":{"position":[[1017,4],[1169,5]]},"39":{"position":[[341,5],[875,4]]},"41":{"position":[[345,4],[1323,4],[1376,4]]},"45":{"position":[[64,4]]},"49":{"position":[[232,4]]},"84":{"position":[[665,5]]},"86":{"position":[[110,5],[587,5],[1010,5]]},"90":{"position":[[512,4],[565,4],[1616,5]]},"96":{"position":[[231,4]]}}}],["times",{"_index":300,"t":{"15":{"position":[[873,6]]}}}],["tint",{"_index":989,"t":{"92":{"position":[[1334,4],[1387,4]]}}}],["tinted",{"_index":992,"t":{"92":{"position":[[1470,6]]}}}],["tints",{"_index":986,"t":{"92":{"position":[[1251,5]]}}}],["today",{"_index":310,"t":{"15":{"position":[[1115,5]]},"39":{"position":[[667,6]]},"47":{"position":[[395,5]]},"84":{"position":[[530,6]]}}}],["together",{"_index":427,"t":{"25":{"position":[[1075,9]]},"45":{"position":[[282,9]]},"94":{"position":[[679,9]]}}}],["tool",{"_index":316,"t":{"19":{"position":[[23,4],[134,5],[266,4],[513,4]]},"21":{"position":[[138,4],[847,4]]}}}],["tooling",{"_index":324,"t":{"19":{"position":[[193,7]]}}}],["tools",{"_index":29,"t":{"3":{"position":[[346,5],[470,6]]},"5":{"position":[[195,5]]},"19":{"position":[[397,5],[720,5]]},"21":{"position":[[11,5],[444,5],[725,5],[822,5]]},"25":{"position":[[582,5]]},"33":{"position":[[224,5]]},"35":{"position":[[335,5]]}}}],["toolset",{"_index":382,"t":{"21":{"position":[[1053,7]]}}}],["top",{"_index":479,"t":{"31":{"position":[[92,3]]}}}],["toward",{"_index":735,"t":{"43":{"position":[[631,6]]},"45":{"position":[[15,6]]}}}],["towards",{"_index":747,"t":{"43":{"position":[[829,7]]}}}],["traction",{"_index":581,"t":{"39":{"position":[[641,9]]}}}],["transform",{"_index":628,"t":{"41":{"position":[[476,9]]},"92":{"position":[[1159,9]]}}}],["transformations",{"_index":968,"t":{"92":{"position":[[804,16]]}}}],["transformed",{"_index":1078,"t":{"92":{"position":[[3632,11]]}}}],["transforms",{"_index":618,"t":{"41":{"position":[[288,10]]},"92":{"position":[[1282,10]]}}}],["transition",{"_index":826,"t":{"86":{"position":[[224,10]]}}}],["translating",{"_index":106,"t":{"7":{"position":[[493,11]]}}}],["traverse",{"_index":615,"t":{"41":{"position":[[241,8],[311,8],[514,8]]}}}],["tree",{"_index":937,"t":{"90":{"position":[[1885,4]]}}}],["tremendously",{"_index":825,"t":{"86":{"position":[[150,13]]}}}],["tricks",{"_index":703,"t":{"41":{"position":[[2064,7]]}}}],["true",{"_index":970,"t":{"92":{"position":[[840,4],[1719,4]]}}}],["try",{"_index":693,"t":{"41":{"position":[[1744,3]]},"90":{"position":[[932,3]]}}}],["tuned",{"_index":529,"t":{"35":{"position":[[495,5]]},"43":{"position":[[256,5]]}}}],["tuning",{"_index":756,"t":{"45":{"position":[[155,6]]}}}],["tweak",{"_index":205,"t":{"13":{"position":[[369,5]]}}}],["tweening",{"_index":506,"t":{"33":{"position":[[452,9]]}}}],["two",{"_index":157,"t":{"11":{"position":[[312,3]]},"37":{"position":[[478,3]]},"43":{"position":[[10,3]]},"92":{"position":[[76,3],[4606,3]]}}}],["typescript",{"_index":827,"t":{"86":{"position":[[238,11]]}}}],["ubiquitous",{"_index":571,"t":{"39":{"position":[[431,11]]}}}],["ugly—report",{"_index":761,"t":{"45":{"position":[[238,11]]}}}],["ui",{"_index":163,"t":{"11":{"position":[[500,2]]},"13":{"position":[[7,2],[462,2],[576,2],[870,3]]}}}],["unchanged",{"_index":644,"t":{"41":{"position":[[902,9]]}}}],["under",{"_index":149,"t":{"11":{"position":[[173,5]]},"13":{"position":[[1269,5]]},"90":{"position":[[1129,5]]}}}],["undergoing",{"_index":733,"t":{"43":{"position":[[567,10]]}}}],["undergone",{"_index":1046,"t":{"92":{"position":[[2767,9]]}}}],["understand",{"_index":355,"t":{"21":{"position":[[184,10],[484,10],[671,11]]}}}],["understanding",{"_index":381,"t":{"21":{"position":[[1001,13]]}}}],["universally",{"_index":595,"t":{"39":{"position":[[898,11]]}}}],["universe",{"_index":4,"t":{"3":{"position":[[52,9]]},"35":{"position":[[532,9]]}}}],["unlocked",{"_index":887,"t":{"86":{"position":[[1879,8]]}}}],["unprecedented",{"_index":764,"t":{"45":{"position":[[317,13]]}}}],["unseen",{"_index":816,"t":{"84":{"position":[[588,6]]}}}],["unveil",{"_index":830,"t":{"86":{"position":[[366,6]]}}}],["unveiling",{"_index":788,"t":{"49":{"position":[[99,9]]},"96":{"position":[[98,9]]}}}],["up",{"_index":74,"t":{"7":{"position":[[6,2]]},"9":{"position":[[5,2]]},"19":{"position":[[178,2],[224,2]]},"27":{"position":[[102,3]]},"90":{"position":[[1155,2]]},"92":{"position":[[3713,2]]}}}],["upcoming",{"_index":514,"t":{"35":{"position":[[139,8]]},"43":{"position":[[266,8]]}}}],["update",{"_index":627,"t":{"41":{"position":[[465,6],[745,6]]},"84":{"position":[[486,7]]},"86":{"position":[[414,6]]}}}],["updates",{"_index":511,"t":{"35":{"position":[[59,7],[510,7]]},"43":{"position":[[599,8]]},"49":{"position":[[123,7]]},"86":{"position":[[206,8]]},"90":{"position":[[19,7],[452,7]]},"96":{"position":[[122,7]]}}}],["upfront",{"_index":1099,"t":{"92":{"position":[[4374,7]]}}}],["upgraded",{"_index":1092,"t":{"92":{"position":[[4207,8]]}}}],["upgrades",{"_index":962,"t":{"92":{"position":[[699,9],[2736,9],[4022,8],[4183,9]]}}}],["upload",{"_index":624,"t":{"41":{"position":[[395,6],[576,6],[1119,6]]}}}],["url",{"_index":697,"t":{"41":{"position":[[1881,3]]}}}],["usability",{"_index":708,"t":{"43":{"position":[[68,10]]},"92":{"position":[[4252,10]]}}}],["use",{"_index":118,"t":{"9":{"position":[[58,3],[430,3]]},"11":{"position":[[130,3],[269,3],[417,3],[465,3],[593,3],[766,3]]},"15":{"position":[[1009,3]]},"41":{"position":[[1306,3]]}}}],["used",{"_index":124,"t":{"9":{"position":[[199,4]]},"13":{"position":[[474,4]]},"15":{"position":[[234,4]]},"21":{"position":[[562,4]]},"92":{"position":[[1814,4],[3107,4]]}}}],["useful",{"_index":308,"t":{"15":{"position":[[1031,6]]},"92":{"position":[[3569,6]]}}}],["user",{"_index":186,"t":{"13":{"position":[[86,4],[967,4]]},"15":{"position":[[913,4]]},"25":{"position":[[145,4],[1006,5]]},"43":{"position":[[668,4]]},"92":{"position":[[233,4],[2814,4]]}}}],["users",{"_index":954,"t":{"92":{"position":[[187,6]]}}}],["using",{"_index":173,"t":{"11":{"position":[[894,5]]},"13":{"position":[[725,5]]},"47":{"position":[[134,5]]},"90":{"position":[[296,5]]},"92":{"position":[[241,6],[308,5],[3663,5]]}}}],["utilize",{"_index":967,"t":{"92":{"position":[[782,7]]}}}],["utilized",{"_index":866,"t":{"86":{"position":[[1437,8]]},"92":{"position":[[3169,8]]}}}],["v7",{"_index":443,"t":{"27":{"position":[[394,2]]},"41":{"position":[[171,2],[227,2],[1439,2],[1461,2],[1758,2]]},"43":{"position":[[739,2]]},"86":{"position":[[488,3],[1960,3],[2170,2]]},"90":{"position":[[628,2],[650,2],[946,2]]}}}],["v8",{"_index":431,"t":{"27":{"position":[[7,2],[467,2],[1000,2]]},"37":{"position":[[110,3],[578,3]]},"41":{"position":[[81,3],[452,2],[1446,2],[1468,2],[1771,2],[1793,2]]},"43":{"position":[[523,2]]},"45":{"position":[[100,3],[388,2]]},"47":{"position":[[81,2],[387,2]]},"84":{"position":[[71,2],[388,2],[560,2]]},"86":{"position":[[380,3],[807,3],[949,2],[986,2],[1501,2],[1595,3],[1869,3],[1997,2],[2259,3]]},"88":{"position":[[17,2]]},"90":{"position":[[249,2],[302,2],[635,2],[657,2],[959,2],[981,2]]},"92":{"position":[[4301,2]]},"94":{"position":[[10,2],[373,3]]}}}],["valuable",{"_index":167,"t":{"11":{"position":[[703,8]]}}}],["valuing",{"_index":1138,"t":{"94":{"position":[[240,7]]}}}],["varying",{"_index":665,"t":{"41":{"position":[[1298,7]]}}}],["vendors",{"_index":451,"t":{"27":{"position":[[591,8]]}}}],["version",{"_index":76,"t":{"7":{"position":[[69,7]]},"27":{"position":[[258,7]]},"39":{"position":[[1095,7]]},"47":{"position":[[33,7]]}}}],["via",{"_index":767,"t":{"47":{"position":[[0,3]]}}}],["vibrant",{"_index":790,"t":{"49":{"position":[[172,7]]},"96":{"position":[[171,7]]}}}],["views",{"_index":196,"t":{"13":{"position":[[216,6]]}}}],["vision",{"_index":853,"t":{"86":{"position":[[938,6]]}}}],["visual",{"_index":398,"t":{"25":{"position":[[345,6]]}}}],["visualize",{"_index":364,"t":{"21":{"position":[[339,9]]}}}],["visually",{"_index":377,"t":{"21":{"position":[[919,8]]},"25":{"position":[[971,8]]},"92":{"position":[[3443,8]]}}}],["vividlightblend",{"_index":1031,"t":{"92":{"position":[[2418,16]]}}}],["vue",{"_index":335,"t":{"19":{"position":[[438,4]]}}}],["wait—dive",{"_index":766,"t":{"45":{"position":[[349,9]]}}}],["want",{"_index":169,"t":{"11":{"position":[[745,4]]},"13":{"position":[[46,4]]},"15":{"position":[[1094,4]]},"31":{"position":[[185,4]]},"35":{"position":[[159,4]]}}}],["warning",{"_index":745,"t":{"43":{"position":[[808,8]]}}}],["way",{"_index":117,"t":{"9":{"position":[[51,3]]}}}],["ways",{"_index":1124,"t":{"92":{"position":[[4924,4]]}}}],["we'll",{"_index":717,"t":{"43":{"position":[[292,5]]},"49":{"position":[[90,5]]},"96":{"position":[[89,5]]}}}],["we're",{"_index":520,"t":{"35":{"position":[[280,5]]},"37":{"position":[[0,5],[222,5]]},"86":{"position":[[348,5],[1964,5]]},"94":{"position":[[51,5],[157,5],[739,5]]}}}],["we've",{"_index":507,"t":{"35":{"position":[[0,5]]},"37":{"position":[[461,5]]},"41":{"position":[[85,5]]},"43":{"position":[[101,5]]},"84":{"position":[[155,5]]},"86":{"position":[[183,5],[254,5],[593,5],[719,5],[1154,5],[1431,5],[1599,5],[1873,5],[2106,5]]},"90":{"position":[[1028,5]]}}}],["web",{"_index":21,"t":{"3":{"position":[[259,4]]},"37":{"position":[[65,3]]},"39":{"position":[[105,3],[274,4]]},"47":{"position":[[441,3]]},"84":{"position":[[59,4],[442,3],[516,3],[619,3]]},"90":{"position":[[1181,3]]},"94":{"position":[[666,3]]}}}],["webgl",{"_index":558,"t":{"39":{"position":[[87,6],[347,5],[517,5],[628,5],[678,5]]},"41":{"position":[[1808,5],[2018,5]]},"47":{"position":[[328,5]]},"86":{"position":[[324,5],[1223,5],[1309,5]]},"90":{"position":[[313,5],[996,5],[1288,5],[1652,6]]},"92":{"position":[[284,5],[650,5]]}}}],["webgpu",{"_index":448,"t":{"27":{"position":[[514,7],[775,6]]},"39":{"position":[[13,6],[754,7]]},"41":{"position":[[1786,6],[2003,6]]},"47":{"position":[[337,6]]},"84":{"position":[[316,6]]},"86":{"position":[[1100,7],[1182,7]]},"90":{"position":[[974,6],[1011,6],[1048,6],[1222,6],[1475,6],[1551,6]]},"92":{"position":[[314,7],[354,6],[659,6]]}}}],["webpack",{"_index":339,"t":{"19":{"position":[[590,8]]}}}],["website",{"_index":77,"t":{"7":{"position":[[88,7],[305,7]]}}}],["weeks",{"_index":256,"t":{"13":{"position":[[1321,5]]}}}],["well",{"_index":104,"t":{"7":{"position":[[473,4]]},"13":{"position":[[853,4]]},"86":{"position":[[512,5]]}}}],["what's",{"_index":724,"t":{"43":{"position":[[455,6]]},"84":{"position":[[36,6]]}}}],["wherever",{"_index":897,"t":{"86":{"position":[[2173,8]]}}}],["whilst",{"_index":915,"t":{"90":{"position":[[1078,6]]}}}],["whopping",{"_index":821,"t":{"86":{"position":[[82,8]]}}}],["wide",{"_index":1008,"t":{"92":{"position":[[1976,4]]}}}],["widely",{"_index":123,"t":{"9":{"position":[[192,6]]}}}],["width:100",{"_index":1004,"t":{"92":{"position":[[1886,10]]}}}],["width:3",{"_index":1128,"t":{"92":{"position":[[5201,8]]}}}],["wished",{"_index":839,"t":{"86":{"position":[[638,6]]}}}],["without",{"_index":404,"t":{"25":{"position":[[499,7]]},"39":{"position":[[1034,7]]},"94":{"position":[[515,7]]}}}],["won't",{"_index":1133,"t":{"94":{"position":[[135,5]]}}}],["work",{"_index":44,"t":{"3":{"position":[[595,4]]},"17":{"position":[[57,4]]},"25":{"position":[[277,4],[1070,4]]},"41":{"position":[[1221,5]]},"94":{"position":[[431,5]]}}}],["workflows",{"_index":345,"t":{"19":{"position":[[730,10]]}}}],["working",{"_index":498,"t":{"33":{"position":[[53,7]]}}}],["workings",{"_index":357,"t":{"21":{"position":[[205,8],[1028,8]]}}}],["works",{"_index":59,"t":{"5":{"position":[[36,6]]},"13":{"position":[[847,5]]}}}],["work—you'll",{"_index":742,"t":{"43":{"position":[[771,11]]}}}],["world",{"_index":219,"t":{"13":{"position":[[553,5]]},"92":{"position":[[1020,5]]},"94":{"position":[[44,6]]}}}],["worlds",{"_index":976,"t":{"92":{"position":[[911,6]]}}}],["worry",{"_index":325,"t":{"19":{"position":[[204,5]]}}}],["write",{"_index":406,"t":{"25":{"position":[[522,5]]}}}],["x2",{"_index":445,"t":{"27":{"position":[[419,3]]}}}],["year",{"_index":63,"t":{"5":{"position":[[93,5]]},"31":{"position":[[496,5]]}}}],["years",{"_index":17,"t":{"3":{"position":[[199,6]]},"7":{"position":[[186,5]]},"27":{"position":[[178,5]]},"31":{"position":[[4,6]]},"39":{"position":[[1171,5]]},"86":{"position":[[95,6]]}}}],["years!—we've",{"_index":542,"t":{"37":{"position":[[323,12]]}}}],["you'll",{"_index":346,"t":{"19":{"position":[[757,6]]},"35":{"position":[[306,6]]}}}],["yourself",{"_index":694,"t":{"41":{"position":[[1748,9]]},"90":{"position":[[936,9]]}}}],["zooming",{"_index":979,"t":{"92":{"position":[[938,8]]}}}]],"pipeline":["stemmer"]}}] \ No newline at end of file diff --git a/search-index-examples.json b/search-index-examples.json index 9f66a3cdd..28682781f 100644 --- a/search-index-examples.json +++ b/search-index-examples.json @@ -1 +1 @@ -[{"documents":[{"i":506,"t":"Collision Detection","u":"/examples/advanced/collision-detection","b":["Advanced"]},{"i":507,"t":"Mouse Trail","u":"/examples/advanced/mouse-trail","b":["Advanced"]},{"i":508,"t":"Scratch Card","u":"/examples/advanced/scratch-card","b":["Advanced"]},{"i":509,"t":"Screen Shot","u":"/examples/advanced/screen-shot","b":["Advanced"]},{"i":510,"t":"Slots","u":"/examples/advanced/slots","b":["Advanced"]},{"i":511,"t":"Spinners","u":"/examples/advanced/spinners","b":["Advanced"]},{"i":512,"t":"Star Warp","u":"/examples/advanced/star-warp","b":["Advanced"]},{"i":513,"t":"Async","u":"/examples/assets/async","b":["Assets"]},{"i":514,"t":"Examples","u":"/examples","b":[]},{"i":516,"t":"Background","u":"/examples/assets/background","b":["Assets"]},{"i":517,"t":"Bundle","u":"/examples/assets/bundle","b":["Assets"]},{"i":518,"t":"Multiple","u":"/examples/assets/multiple","b":["Assets"]},{"i":519,"t":"Promise","u":"/examples/assets/promise","b":["Assets"]},{"i":520,"t":"Blend Modes","u":"/examples/basic/blend-modes","b":["Basic"]},{"i":521,"t":"Container","u":"/examples/basic/container","b":["Basic"]},{"i":522,"t":"Mesh Plane","u":"/examples/basic/mesh-plane","b":["Basic"]},{"i":523,"t":"Particle Container","u":"/examples/basic/particle-container","b":["Basic"]},{"i":524,"t":"Render Group","u":"/examples/basic/render-group","b":["Basic"]},{"i":525,"t":"Tinting","u":"/examples/basic/tinting","b":["Basic"]},{"i":526,"t":"Transparent Background","u":"/examples/basic/transparent-background","b":["Basic"]},{"i":527,"t":"Click","u":"/examples/events/click","b":["Events"]},{"i":528,"t":"Custom Hitarea","u":"/examples/events/custom-hitarea","b":["Events"]},{"i":529,"t":"Custom Mouse Icon","u":"/examples/events/custom-mouse-icon","b":["Events"]},{"i":530,"t":"Dragging","u":"/examples/events/dragging","b":["Events"]},{"i":531,"t":"Interactivity","u":"/examples/events/interactivity","b":["Events"]},{"i":532,"t":"Logger","u":"/examples/events/logger","b":["Events"]},{"i":533,"t":"Pointer Tracker","u":"/examples/events/pointer-tracker","b":["Events"]},{"i":534,"t":"Slider","u":"/examples/events/slider","b":["Events"]},{"i":535,"t":"Mouse Blending","u":"/examples/filters-advanced/mouse-blending","b":["Filters Advanced"]},{"i":536,"t":"Custom","u":"/examples/filters-advanced/custom","b":["Filters Advanced"]},{"i":537,"t":"Blur","u":"/examples/filters-basic/blur","b":["Filters Basic"]},{"i":538,"t":"Color Matrix","u":"/examples/filters-basic/color-matrix","b":["Filters Basic"]},{"i":539,"t":"Displacement Map Crawlies","u":"/examples/filters-basic/displacement-map-crawlies","b":["Filters Basic"]},{"i":540,"t":"Displacement Map Flag","u":"/examples/filters-basic/displacement-map-flag","b":["Filters Basic"]},{"i":541,"t":"Advanced","u":"/examples/graphics/advanced","b":["Graphics"]},{"i":542,"t":"Dynamic","u":"/examples/graphics/dynamic","b":["Graphics"]},{"i":543,"t":"Fill Gradient","u":"/examples/graphics/fill-gradient","b":["Graphics"]},{"i":544,"t":"Mesh From Path","u":"/examples/graphics/mesh-from-path","b":["Graphics"]},{"i":545,"t":"Simple","u":"/examples/graphics/simple","b":["Graphics"]},{"i":546,"t":"Svg","u":"/examples/graphics/svg","b":["Graphics"]},{"i":547,"t":"Svg-load","u":"/examples/graphics/svg-load","b":["Graphics"]},{"i":548,"t":"Texture","u":"/examples/graphics/texture","b":["Graphics"]},{"i":549,"t":"Filter","u":"/examples/masks/filter","b":["Masks"]},{"i":550,"t":"Graphics","u":"/examples/masks/graphics","b":["Masks"]},{"i":551,"t":"Sprite","u":"/examples/masks/sprite","b":["Masks"]},{"i":552,"t":"Instanced Geometry","u":"/examples/mesh-and-shaders/instanced-geometry","b":["Mesh And Shaders"]},{"i":553,"t":"Multipass Mesh","u":"/examples/mesh-and-shaders/multipass-mesh","b":["Mesh And Shaders"]},{"i":554,"t":"Shader Toy Mesh","u":"/examples/mesh-and-shaders/shader-toy-mesh","b":["Mesh And Shaders"]},{"i":555,"t":"Shared Shader","u":"/examples/mesh-and-shaders/shared-shader","b":["Mesh And Shaders"]},{"i":556,"t":"Shared Geometry","u":"/examples/mesh-and-shaders/shared-geometry","b":["Mesh And Shaders"]},{"i":557,"t":"Textured Mesh Advanced","u":"/examples/mesh-and-shaders/textured-mesh-advanced","b":["Mesh And Shaders"]},{"i":558,"t":"Textured Mesh Basic","u":"/examples/mesh-and-shaders/textured-mesh-basic","b":["Mesh And Shaders"]},{"i":559,"t":"Triangle","u":"/examples/mesh-and-shaders/triangle","b":["Mesh And Shaders"]},{"i":560,"t":"Triangle Textured","u":"/examples/mesh-and-shaders/triangle-textured","b":["Mesh And Shaders"]},{"i":561,"t":"Triangle Color","u":"/examples/mesh-and-shaders/triangle-color","b":["Mesh And Shaders"]},{"i":562,"t":"Basic","u":"/examples/offscreen-canvas/basic","b":["Offscreen Canvas"]},{"i":563,"t":"Animated Sprite Animation Speed","u":"/examples/sprite/animated-sprite-animation-speed","b":["Sprite"]},{"i":564,"t":"Animated Sprite Explosion","u":"/examples/sprite/animated-sprite-explosion","b":["Sprite"]},{"i":565,"t":"Animated Sprite Jet","u":"/examples/sprite/animated-sprite-jet","b":["Sprite"]},{"i":566,"t":"Basic","u":"/examples/sprite/basic","b":["Sprite"]},{"i":567,"t":"Tiling Sprite","u":"/examples/sprite/tiling-sprite","b":["Sprite"]},{"i":568,"t":"Texture Swap","u":"/examples/sprite/texture-swap","b":["Sprite"]},{"i":569,"t":"Bitmap Text","u":"/examples/text/bitmap-text","b":["Text"]},{"i":570,"t":"Video","u":"/examples/sprite/video","b":["Sprite"]},{"i":571,"t":"From Font","u":"/examples/text/from-font","b":["Text"]},{"i":572,"t":"Pixi Text","u":"/examples/text/pixi-text","b":["Text"]},{"i":573,"t":"Web Font","u":"/examples/text/web-font","b":["Text"]},{"i":574,"t":"Render Texture Advanced","u":"/examples/textures/render-texture-advanced","b":["Textures"]},{"i":575,"t":"Render Texture Basic","u":"/examples/textures/render-texture-basic","b":["Textures"]},{"i":576,"t":"Texture Rotate","u":"/examples/textures/texture-rotate","b":["Textures"]}],"index":{"version":"2.3.9","fields":["t"],"fieldVectors":[["t/506",[0,3.638,1,3.638]],["t/507",[2,2.839,3,3.638]],["t/508",[4,3.638,5,3.638]],["t/509",[6,3.638,7,3.638]],["t/510",[8,4.672]],["t/511",[9,4.672]],["t/512",[10,3.638,11,3.638]],["t/513",[12,4.672]],["t/514",[13,4.672]],["t/516",[14,4.053]],["t/517",[15,4.672]],["t/518",[16,4.672]],["t/519",[17,4.672]],["t/520",[18,3.638,19,3.638]],["t/521",[20,4.053]],["t/522",[21,2.255,22,3.638]],["t/523",[20,3.156,23,3.638]],["t/524",[24,2.839,25,3.638]],["t/525",[26,4.672]],["t/526",[14,3.156,27,3.638]],["t/527",[28,4.672]],["t/528",[29,2.839,30,3.638]],["t/529",[2,2.324,29,2.324,31,2.978]],["t/530",[32,4.672]],["t/531",[33,4.672]],["t/532",[34,4.672]],["t/533",[35,3.638,36,3.638]],["t/534",[37,4.672]],["t/535",[2,2.839,38,3.638]],["t/536",[29,3.646]],["t/537",[39,4.672]],["t/538",[40,3.156,41,3.638]],["t/539",[42,2.584,43,2.584,44,2.978]],["t/540",[42,2.584,43,2.584,45,2.978]],["t/541",[46,3.646]],["t/542",[47,4.672]],["t/543",[48,3.638,49,3.638]],["t/544",[21,2.255,50,3.638]],["t/545",[51,4.672]],["t/546",[52,4.053]],["t/547",[52,3.156,53,3.638]],["t/548",[54,3.098]],["t/549",[55,4.672]],["t/550",[56,4.672]],["t/551",[57,3.098]],["t/552",[58,3.638,59,3.156]],["t/553",[21,2.255,60,3.638]],["t/554",[21,1.846,61,2.584,62,2.978]],["t/555",[61,3.156,63,3.156]],["t/556",[59,3.156,63,3.156]],["t/557",[21,1.846,46,2.324,64,2.324]],["t/558",[21,1.846,64,2.324,65,2.13]],["t/559",[66,3.646]],["t/560",[64,2.839,66,2.839]],["t/561",[40,3.156,66,2.839]],["t/562",[65,3.341]],["t/563",[57,1.672,67,1.968,68,2.521,69,2.521]],["t/564",[57,1.975,67,2.324,70,2.978]],["t/565",[57,1.975,67,2.324,71,2.978]],["t/566",[65,3.341]],["t/567",[57,2.412,72,3.638]],["t/568",[54,2.412,73,3.638]],["t/569",[74,3.638,75,3.156]],["t/570",[76,4.672]],["t/571",[77,4.053]],["t/572",[75,3.156,78,3.638]],["t/573",[77,3.156,79,3.638]],["t/574",[24,2.324,46,2.324,54,1.975]],["t/575",[24,2.324,54,1.975,65,2.13]],["t/576",[54,2.412,80,3.638]]],"invertedIndex":[["advanced",{"_index":46,"t":{"541":{"position":[[0,8]]},"557":{"position":[[14,8]]},"574":{"position":[[15,8]]}}}],["animated",{"_index":67,"t":{"563":{"position":[[0,8]]},"564":{"position":[[0,8]]},"565":{"position":[[0,8]]}}}],["animation",{"_index":68,"t":{"563":{"position":[[16,9]]}}}],["async",{"_index":12,"t":{"513":{"position":[[0,5]]}}}],["background",{"_index":14,"t":{"516":{"position":[[0,10]]},"526":{"position":[[12,10]]}}}],["basic",{"_index":65,"t":{"558":{"position":[[14,5]]},"562":{"position":[[0,5]]},"566":{"position":[[0,5]]},"575":{"position":[[15,5]]}}}],["bitmap",{"_index":74,"t":{"569":{"position":[[0,6]]}}}],["blend",{"_index":18,"t":{"520":{"position":[[0,5]]}}}],["blending",{"_index":38,"t":{"535":{"position":[[6,8]]}}}],["blur",{"_index":39,"t":{"537":{"position":[[0,4]]}}}],["bundle",{"_index":15,"t":{"517":{"position":[[0,6]]}}}],["card",{"_index":5,"t":{"508":{"position":[[8,4]]}}}],["click",{"_index":28,"t":{"527":{"position":[[0,5]]}}}],["collision",{"_index":0,"t":{"506":{"position":[[0,9]]}}}],["color",{"_index":40,"t":{"538":{"position":[[0,5]]},"561":{"position":[[9,5]]}}}],["container",{"_index":20,"t":{"521":{"position":[[0,9]]},"523":{"position":[[9,9]]}}}],["crawlies",{"_index":44,"t":{"539":{"position":[[17,8]]}}}],["custom",{"_index":29,"t":{"528":{"position":[[0,6]]},"529":{"position":[[0,6]]},"536":{"position":[[0,6]]}}}],["detection",{"_index":1,"t":{"506":{"position":[[10,9]]}}}],["displacement",{"_index":42,"t":{"539":{"position":[[0,12]]},"540":{"position":[[0,12]]}}}],["dragging",{"_index":32,"t":{"530":{"position":[[0,8]]}}}],["dynamic",{"_index":47,"t":{"542":{"position":[[0,7]]}}}],["examples",{"_index":13,"t":{"514":{"position":[[0,8]]}}}],["explosion",{"_index":70,"t":{"564":{"position":[[16,9]]}}}],["fill",{"_index":48,"t":{"543":{"position":[[0,4]]}}}],["filter",{"_index":55,"t":{"549":{"position":[[0,6]]}}}],["flag",{"_index":45,"t":{"540":{"position":[[17,4]]}}}],["font",{"_index":77,"t":{"571":{"position":[[5,4]]},"573":{"position":[[4,4]]}}}],["geometry",{"_index":59,"t":{"552":{"position":[[10,8]]},"556":{"position":[[7,8]]}}}],["gradient",{"_index":49,"t":{"543":{"position":[[5,8]]}}}],["graphics",{"_index":56,"t":{"550":{"position":[[0,8]]}}}],["group",{"_index":25,"t":{"524":{"position":[[7,5]]}}}],["hitarea",{"_index":30,"t":{"528":{"position":[[7,7]]}}}],["icon",{"_index":31,"t":{"529":{"position":[[13,4]]}}}],["instanced",{"_index":58,"t":{"552":{"position":[[0,9]]}}}],["interactivity",{"_index":33,"t":{"531":{"position":[[0,13]]}}}],["jet",{"_index":71,"t":{"565":{"position":[[16,3]]}}}],["load",{"_index":53,"t":{"547":{"position":[[4,4]]}}}],["logger",{"_index":34,"t":{"532":{"position":[[0,6]]}}}],["map",{"_index":43,"t":{"539":{"position":[[13,3]]},"540":{"position":[[13,3]]}}}],["matrix",{"_index":41,"t":{"538":{"position":[[6,6]]}}}],["mesh",{"_index":21,"t":{"522":{"position":[[0,4]]},"544":{"position":[[0,4]]},"553":{"position":[[10,4]]},"554":{"position":[[11,4]]},"557":{"position":[[9,4]]},"558":{"position":[[9,4]]}}}],["modes",{"_index":19,"t":{"520":{"position":[[6,5]]}}}],["mouse",{"_index":2,"t":{"507":{"position":[[0,5]]},"529":{"position":[[7,5]]},"535":{"position":[[0,5]]}}}],["multipass",{"_index":60,"t":{"553":{"position":[[0,9]]}}}],["multiple",{"_index":16,"t":{"518":{"position":[[0,8]]}}}],["particle",{"_index":23,"t":{"523":{"position":[[0,8]]}}}],["path",{"_index":50,"t":{"544":{"position":[[10,4]]}}}],["pixi",{"_index":78,"t":{"572":{"position":[[0,4]]}}}],["plane",{"_index":22,"t":{"522":{"position":[[5,5]]}}}],["pointer",{"_index":35,"t":{"533":{"position":[[0,7]]}}}],["promise",{"_index":17,"t":{"519":{"position":[[0,7]]}}}],["render",{"_index":24,"t":{"524":{"position":[[0,6]]},"574":{"position":[[0,6]]},"575":{"position":[[0,6]]}}}],["rotate",{"_index":80,"t":{"576":{"position":[[8,6]]}}}],["scratch",{"_index":4,"t":{"508":{"position":[[0,7]]}}}],["screen",{"_index":6,"t":{"509":{"position":[[0,6]]}}}],["shader",{"_index":61,"t":{"554":{"position":[[0,6]]},"555":{"position":[[7,6]]}}}],["shared",{"_index":63,"t":{"555":{"position":[[0,6]]},"556":{"position":[[0,6]]}}}],["shot",{"_index":7,"t":{"509":{"position":[[7,4]]}}}],["simple",{"_index":51,"t":{"545":{"position":[[0,6]]}}}],["slider",{"_index":37,"t":{"534":{"position":[[0,6]]}}}],["slots",{"_index":8,"t":{"510":{"position":[[0,5]]}}}],["speed",{"_index":69,"t":{"563":{"position":[[26,5]]}}}],["spinners",{"_index":9,"t":{"511":{"position":[[0,8]]}}}],["sprite",{"_index":57,"t":{"551":{"position":[[0,6]]},"563":{"position":[[9,6]]},"564":{"position":[[9,6]]},"565":{"position":[[9,6]]},"567":{"position":[[7,6]]}}}],["star",{"_index":10,"t":{"512":{"position":[[0,4]]}}}],["svg",{"_index":52,"t":{"546":{"position":[[0,3]]},"547":{"position":[[0,3]]}}}],["swap",{"_index":73,"t":{"568":{"position":[[8,4]]}}}],["text",{"_index":75,"t":{"569":{"position":[[7,4]]},"572":{"position":[[5,4]]}}}],["texture",{"_index":54,"t":{"548":{"position":[[0,7]]},"568":{"position":[[0,7]]},"574":{"position":[[7,7]]},"575":{"position":[[7,7]]},"576":{"position":[[0,7]]}}}],["textured",{"_index":64,"t":{"557":{"position":[[0,8]]},"558":{"position":[[0,8]]},"560":{"position":[[9,8]]}}}],["tiling",{"_index":72,"t":{"567":{"position":[[0,6]]}}}],["tinting",{"_index":26,"t":{"525":{"position":[[0,7]]}}}],["toy",{"_index":62,"t":{"554":{"position":[[7,3]]}}}],["tracker",{"_index":36,"t":{"533":{"position":[[8,7]]}}}],["trail",{"_index":3,"t":{"507":{"position":[[6,5]]}}}],["transparent",{"_index":27,"t":{"526":{"position":[[0,11]]}}}],["triangle",{"_index":66,"t":{"559":{"position":[[0,8]]},"560":{"position":[[0,8]]},"561":{"position":[[0,8]]}}}],["video",{"_index":76,"t":{"570":{"position":[[0,5]]}}}],["warp",{"_index":11,"t":{"512":{"position":[[5,4]]}}}],["web",{"_index":79,"t":{"573":{"position":[[0,3]]}}}]],"pipeline":["stemmer"]}},{"documents":[{"i":515,"t":"Welcome to the PixiJS Examples page! Here you can find a variety of demos and code snippets to help you get started with PixiJS. Check out some of our featured examples below: Basic Container Blend Modes Tiling Sprite Animated Sprite Text Graphics","s":"Examples","u":"/examples","h":"","p":514}],"index":{"version":"2.3.9","fields":["t"],"fieldVectors":[["t/515",[0,0.288,1,0.396,2,0.396,3,0.288,4,0.288,5,0.288,6,0.288,7,0.288,8,0.288,9,0.288,10,0.288,11,0.288,12,0.288,13,0.288,14,0.288,15,0.288,16,0.288,17,0.288,18,0.288,19,0.288,20,0.288,21,0.396,22,0.288,23,0.288,24,0.288]]],"invertedIndex":[["animated",{"_index":22,"t":{"515":{"position":[[218,8]]}}}],["basic",{"_index":16,"t":{"515":{"position":[[176,5]]}}}],["below",{"_index":15,"t":{"515":{"position":[[169,6]]}}}],["blend",{"_index":18,"t":{"515":{"position":[[192,5]]}}}],["check",{"_index":12,"t":{"515":{"position":[[129,5]]}}}],["code",{"_index":8,"t":{"515":{"position":[[78,4]]}}}],["container",{"_index":17,"t":{"515":{"position":[[182,9]]}}}],["demos",{"_index":7,"t":{"515":{"position":[[68,5]]}}}],["examples",{"_index":2,"t":{"515":{"position":[[22,8],[160,8]]}}}],["featured",{"_index":14,"t":{"515":{"position":[[151,8]]}}}],["find",{"_index":5,"t":{"515":{"position":[[50,4]]}}}],["graphics",{"_index":24,"t":{"515":{"position":[[239,8]]}}}],["help",{"_index":10,"t":{"515":{"position":[[95,4]]}}}],["here",{"_index":4,"t":{"515":{"position":[[37,4]]}}}],["modes",{"_index":19,"t":{"515":{"position":[[198,5]]}}}],["out",{"_index":13,"t":{"515":{"position":[[135,3]]}}}],["page",{"_index":3,"t":{"515":{"position":[[31,5]]}}}],["pixijs",{"_index":1,"t":{"515":{"position":[[15,6],[121,7]]}}}],["snippets",{"_index":9,"t":{"515":{"position":[[83,8]]}}}],["sprite",{"_index":21,"t":{"515":{"position":[[211,6],[227,6]]}}}],["started",{"_index":11,"t":{"515":{"position":[[108,7]]}}}],["text",{"_index":23,"t":{"515":{"position":[[234,4]]}}}],["tiling",{"_index":20,"t":{"515":{"position":[[204,6]]}}}],["variety",{"_index":6,"t":{"515":{"position":[[57,7]]}}}],["welcome",{"_index":0,"t":{"515":{"position":[[0,7]]}}}]],"pipeline":["stemmer"]}}] \ No newline at end of file +[{"documents":[{"i":506,"t":"Collision Detection","u":"/examples/advanced/collision-detection","b":["Advanced"]},{"i":507,"t":"Mouse Trail","u":"/examples/advanced/mouse-trail","b":["Advanced"]},{"i":508,"t":"Scratch Card","u":"/examples/advanced/scratch-card","b":["Advanced"]},{"i":509,"t":"Examples","u":"/examples","b":[]},{"i":511,"t":"Screen Shot","u":"/examples/advanced/screen-shot","b":["Advanced"]},{"i":512,"t":"Slots","u":"/examples/advanced/slots","b":["Advanced"]},{"i":513,"t":"Spinners","u":"/examples/advanced/spinners","b":["Advanced"]},{"i":514,"t":"Star Warp","u":"/examples/advanced/star-warp","b":["Advanced"]},{"i":515,"t":"Background","u":"/examples/assets/background","b":["Assets"]},{"i":516,"t":"Async","u":"/examples/assets/async","b":["Assets"]},{"i":517,"t":"Bundle","u":"/examples/assets/bundle","b":["Assets"]},{"i":518,"t":"Promise","u":"/examples/assets/promise","b":["Assets"]},{"i":519,"t":"Multiple","u":"/examples/assets/multiple","b":["Assets"]},{"i":520,"t":"Blend Modes","u":"/examples/basic/blend-modes","b":["Basic"]},{"i":521,"t":"Container","u":"/examples/basic/container","b":["Basic"]},{"i":522,"t":"Mesh Plane","u":"/examples/basic/mesh-plane","b":["Basic"]},{"i":523,"t":"Particle Container","u":"/examples/basic/particle-container","b":["Basic"]},{"i":524,"t":"Render Group","u":"/examples/basic/render-group","b":["Basic"]},{"i":525,"t":"Tinting","u":"/examples/basic/tinting","b":["Basic"]},{"i":526,"t":"Transparent Background","u":"/examples/basic/transparent-background","b":["Basic"]},{"i":527,"t":"Click","u":"/examples/events/click","b":["Events"]},{"i":528,"t":"Custom Hitarea","u":"/examples/events/custom-hitarea","b":["Events"]},{"i":529,"t":"Custom Mouse Icon","u":"/examples/events/custom-mouse-icon","b":["Events"]},{"i":530,"t":"Interactivity","u":"/examples/events/interactivity","b":["Events"]},{"i":531,"t":"Logger","u":"/examples/events/logger","b":["Events"]},{"i":532,"t":"Dragging","u":"/examples/events/dragging","b":["Events"]},{"i":533,"t":"Pointer Tracker","u":"/examples/events/pointer-tracker","b":["Events"]},{"i":534,"t":"Slider","u":"/examples/events/slider","b":["Events"]},{"i":535,"t":"Custom","u":"/examples/filters-advanced/custom","b":["Filters Advanced"]},{"i":536,"t":"Mouse Blending","u":"/examples/filters-advanced/mouse-blending","b":["Filters Advanced"]},{"i":537,"t":"Blur","u":"/examples/filters-basic/blur","b":["Filters Basic"]},{"i":538,"t":"Color Matrix","u":"/examples/filters-basic/color-matrix","b":["Filters Basic"]},{"i":539,"t":"Displacement Map Crawlies","u":"/examples/filters-basic/displacement-map-crawlies","b":["Filters Basic"]},{"i":540,"t":"Displacement Map Flag","u":"/examples/filters-basic/displacement-map-flag","b":["Filters Basic"]},{"i":541,"t":"Advanced","u":"/examples/graphics/advanced","b":["Graphics"]},{"i":542,"t":"Dynamic","u":"/examples/graphics/dynamic","b":["Graphics"]},{"i":543,"t":"Fill Gradient","u":"/examples/graphics/fill-gradient","b":["Graphics"]},{"i":544,"t":"Mesh From Path","u":"/examples/graphics/mesh-from-path","b":["Graphics"]},{"i":545,"t":"Simple","u":"/examples/graphics/simple","b":["Graphics"]},{"i":546,"t":"Svg","u":"/examples/graphics/svg","b":["Graphics"]},{"i":547,"t":"Svg Load","u":"/examples/graphics/svg-load","b":["Graphics"]},{"i":548,"t":"Texture","u":"/examples/graphics/texture","b":["Graphics"]},{"i":549,"t":"Filter","u":"/examples/masks/filter","b":["Masks"]},{"i":550,"t":"Graphics","u":"/examples/masks/graphics","b":["Masks"]},{"i":551,"t":"Sprite","u":"/examples/masks/sprite","b":["Masks"]},{"i":552,"t":"Instanced Geometry","u":"/examples/mesh-and-shaders/instanced-geometry","b":["Mesh And Shaders"]},{"i":553,"t":"Multipass Mesh","u":"/examples/mesh-and-shaders/multipass-mesh","b":["Mesh And Shaders"]},{"i":554,"t":"Shader Toy Mesh","u":"/examples/mesh-and-shaders/shader-toy-mesh","b":["Mesh And Shaders"]},{"i":555,"t":"Shared Geometry","u":"/examples/mesh-and-shaders/shared-geometry","b":["Mesh And Shaders"]},{"i":556,"t":"Shared Shader","u":"/examples/mesh-and-shaders/shared-shader","b":["Mesh And Shaders"]},{"i":557,"t":"Textured Mesh Advanced","u":"/examples/mesh-and-shaders/textured-mesh-advanced","b":["Mesh And Shaders"]},{"i":558,"t":"Textured Mesh Basic","u":"/examples/mesh-and-shaders/textured-mesh-basic","b":["Mesh And Shaders"]},{"i":559,"t":"Triangle","u":"/examples/mesh-and-shaders/triangle","b":["Mesh And Shaders"]},{"i":560,"t":"Triangle Color","u":"/examples/mesh-and-shaders/triangle-color","b":["Mesh And Shaders"]},{"i":561,"t":"Basic","u":"/examples/offscreen-canvas/basic","b":["Offscreen Canvas"]},{"i":562,"t":"Animated Sprite Animation Speed","u":"/examples/sprite/animated-sprite-animation-speed","b":["Sprite"]},{"i":563,"t":"Triangle Textured","u":"/examples/mesh-and-shaders/triangle-textured","b":["Mesh And Shaders"]},{"i":564,"t":"Animated Sprite Explosion","u":"/examples/sprite/animated-sprite-explosion","b":["Sprite"]},{"i":565,"t":"Basic","u":"/examples/sprite/basic","b":["Sprite"]},{"i":566,"t":"Texture Swap","u":"/examples/sprite/texture-swap","b":["Sprite"]},{"i":567,"t":"Animated Sprite Jet","u":"/examples/sprite/animated-sprite-jet","b":["Sprite"]},{"i":568,"t":"Tiling Sprite","u":"/examples/sprite/tiling-sprite","b":["Sprite"]},{"i":569,"t":"Video","u":"/examples/sprite/video","b":["Sprite"]},{"i":570,"t":"Bitmap Text","u":"/examples/text/bitmap-text","b":["Text"]},{"i":571,"t":"Web Font","u":"/examples/text/web-font","b":["Text"]},{"i":572,"t":"Pixi Text","u":"/examples/text/pixi-text","b":["Text"]},{"i":573,"t":"Render Texture Advanced","u":"/examples/textures/render-texture-advanced","b":["Textures"]},{"i":574,"t":"From Font","u":"/examples/text/from-font","b":["Text"]},{"i":575,"t":"Render Texture Basic","u":"/examples/textures/render-texture-basic","b":["Textures"]},{"i":576,"t":"Texture Rotate","u":"/examples/textures/texture-rotate","b":["Textures"]}],"index":{"version":"2.3.9","fields":["t"],"fieldVectors":[["t/506",[0,3.638,1,3.638]],["t/507",[2,2.839,3,3.638]],["t/508",[4,3.638,5,3.638]],["t/509",[6,4.672]],["t/511",[7,3.638,8,3.638]],["t/512",[9,4.672]],["t/513",[10,4.672]],["t/514",[11,3.638,12,3.638]],["t/515",[13,4.053]],["t/516",[14,4.672]],["t/517",[15,4.672]],["t/518",[16,4.672]],["t/519",[17,4.672]],["t/520",[18,3.638,19,3.638]],["t/521",[20,4.053]],["t/522",[21,2.255,22,3.638]],["t/523",[20,3.156,23,3.638]],["t/524",[24,2.839,25,3.638]],["t/525",[26,4.672]],["t/526",[13,3.156,27,3.638]],["t/527",[28,4.672]],["t/528",[29,2.839,30,3.638]],["t/529",[2,2.324,29,2.324,31,2.978]],["t/530",[32,4.672]],["t/531",[33,4.672]],["t/532",[34,4.672]],["t/533",[35,3.638,36,3.638]],["t/534",[37,4.672]],["t/535",[29,3.646]],["t/536",[2,2.839,38,3.638]],["t/537",[39,4.672]],["t/538",[40,3.156,41,3.638]],["t/539",[42,2.584,43,2.584,44,2.978]],["t/540",[42,2.584,43,2.584,45,2.978]],["t/541",[46,3.646]],["t/542",[47,4.672]],["t/543",[48,3.638,49,3.638]],["t/544",[21,2.255,50,3.638]],["t/545",[51,4.672]],["t/546",[52,4.053]],["t/547",[52,3.156,53,3.638]],["t/548",[54,3.098]],["t/549",[55,4.672]],["t/550",[56,4.672]],["t/551",[57,3.098]],["t/552",[58,3.638,59,3.156]],["t/553",[21,2.255,60,3.638]],["t/554",[21,1.846,61,2.584,62,2.978]],["t/555",[59,3.156,63,3.156]],["t/556",[61,3.156,63,3.156]],["t/557",[21,1.846,46,2.324,64,2.324]],["t/558",[21,1.846,64,2.324,65,2.13]],["t/559",[66,3.646]],["t/560",[40,3.156,66,2.839]],["t/561",[65,3.341]],["t/562",[57,1.672,67,1.968,68,2.521,69,2.521]],["t/563",[64,2.839,66,2.839]],["t/564",[57,1.975,67,2.324,70,2.978]],["t/565",[65,3.341]],["t/566",[54,2.412,71,3.638]],["t/567",[57,1.975,67,2.324,72,2.978]],["t/568",[57,2.412,73,3.638]],["t/569",[74,4.672]],["t/570",[75,3.638,76,3.156]],["t/571",[77,3.638,78,3.156]],["t/572",[76,3.156,79,3.638]],["t/573",[24,2.324,46,2.324,54,1.975]],["t/574",[78,4.053]],["t/575",[24,2.324,54,1.975,65,2.13]],["t/576",[54,2.412,80,3.638]]],"invertedIndex":[["advanced",{"_index":46,"t":{"541":{"position":[[0,8]]},"557":{"position":[[14,8]]},"573":{"position":[[15,8]]}}}],["animated",{"_index":67,"t":{"562":{"position":[[0,8]]},"564":{"position":[[0,8]]},"567":{"position":[[0,8]]}}}],["animation",{"_index":68,"t":{"562":{"position":[[16,9]]}}}],["async",{"_index":14,"t":{"516":{"position":[[0,5]]}}}],["background",{"_index":13,"t":{"515":{"position":[[0,10]]},"526":{"position":[[12,10]]}}}],["basic",{"_index":65,"t":{"558":{"position":[[14,5]]},"561":{"position":[[0,5]]},"565":{"position":[[0,5]]},"575":{"position":[[15,5]]}}}],["bitmap",{"_index":75,"t":{"570":{"position":[[0,6]]}}}],["blend",{"_index":18,"t":{"520":{"position":[[0,5]]}}}],["blending",{"_index":38,"t":{"536":{"position":[[6,8]]}}}],["blur",{"_index":39,"t":{"537":{"position":[[0,4]]}}}],["bundle",{"_index":15,"t":{"517":{"position":[[0,6]]}}}],["card",{"_index":5,"t":{"508":{"position":[[8,4]]}}}],["click",{"_index":28,"t":{"527":{"position":[[0,5]]}}}],["collision",{"_index":0,"t":{"506":{"position":[[0,9]]}}}],["color",{"_index":40,"t":{"538":{"position":[[0,5]]},"560":{"position":[[9,5]]}}}],["container",{"_index":20,"t":{"521":{"position":[[0,9]]},"523":{"position":[[9,9]]}}}],["crawlies",{"_index":44,"t":{"539":{"position":[[17,8]]}}}],["custom",{"_index":29,"t":{"528":{"position":[[0,6]]},"529":{"position":[[0,6]]},"535":{"position":[[0,6]]}}}],["detection",{"_index":1,"t":{"506":{"position":[[10,9]]}}}],["displacement",{"_index":42,"t":{"539":{"position":[[0,12]]},"540":{"position":[[0,12]]}}}],["dragging",{"_index":34,"t":{"532":{"position":[[0,8]]}}}],["dynamic",{"_index":47,"t":{"542":{"position":[[0,7]]}}}],["examples",{"_index":6,"t":{"509":{"position":[[0,8]]}}}],["explosion",{"_index":70,"t":{"564":{"position":[[16,9]]}}}],["fill",{"_index":48,"t":{"543":{"position":[[0,4]]}}}],["filter",{"_index":55,"t":{"549":{"position":[[0,6]]}}}],["flag",{"_index":45,"t":{"540":{"position":[[17,4]]}}}],["font",{"_index":78,"t":{"571":{"position":[[4,4]]},"574":{"position":[[5,4]]}}}],["geometry",{"_index":59,"t":{"552":{"position":[[10,8]]},"555":{"position":[[7,8]]}}}],["gradient",{"_index":49,"t":{"543":{"position":[[5,8]]}}}],["graphics",{"_index":56,"t":{"550":{"position":[[0,8]]}}}],["group",{"_index":25,"t":{"524":{"position":[[7,5]]}}}],["hitarea",{"_index":30,"t":{"528":{"position":[[7,7]]}}}],["icon",{"_index":31,"t":{"529":{"position":[[13,4]]}}}],["instanced",{"_index":58,"t":{"552":{"position":[[0,9]]}}}],["interactivity",{"_index":32,"t":{"530":{"position":[[0,13]]}}}],["jet",{"_index":72,"t":{"567":{"position":[[16,3]]}}}],["load",{"_index":53,"t":{"547":{"position":[[4,4]]}}}],["logger",{"_index":33,"t":{"531":{"position":[[0,6]]}}}],["map",{"_index":43,"t":{"539":{"position":[[13,3]]},"540":{"position":[[13,3]]}}}],["matrix",{"_index":41,"t":{"538":{"position":[[6,6]]}}}],["mesh",{"_index":21,"t":{"522":{"position":[[0,4]]},"544":{"position":[[0,4]]},"553":{"position":[[10,4]]},"554":{"position":[[11,4]]},"557":{"position":[[9,4]]},"558":{"position":[[9,4]]}}}],["modes",{"_index":19,"t":{"520":{"position":[[6,5]]}}}],["mouse",{"_index":2,"t":{"507":{"position":[[0,5]]},"529":{"position":[[7,5]]},"536":{"position":[[0,5]]}}}],["multipass",{"_index":60,"t":{"553":{"position":[[0,9]]}}}],["multiple",{"_index":17,"t":{"519":{"position":[[0,8]]}}}],["particle",{"_index":23,"t":{"523":{"position":[[0,8]]}}}],["path",{"_index":50,"t":{"544":{"position":[[10,4]]}}}],["pixi",{"_index":79,"t":{"572":{"position":[[0,4]]}}}],["plane",{"_index":22,"t":{"522":{"position":[[5,5]]}}}],["pointer",{"_index":35,"t":{"533":{"position":[[0,7]]}}}],["promise",{"_index":16,"t":{"518":{"position":[[0,7]]}}}],["render",{"_index":24,"t":{"524":{"position":[[0,6]]},"573":{"position":[[0,6]]},"575":{"position":[[0,6]]}}}],["rotate",{"_index":80,"t":{"576":{"position":[[8,6]]}}}],["scratch",{"_index":4,"t":{"508":{"position":[[0,7]]}}}],["screen",{"_index":7,"t":{"511":{"position":[[0,6]]}}}],["shader",{"_index":61,"t":{"554":{"position":[[0,6]]},"556":{"position":[[7,6]]}}}],["shared",{"_index":63,"t":{"555":{"position":[[0,6]]},"556":{"position":[[0,6]]}}}],["shot",{"_index":8,"t":{"511":{"position":[[7,4]]}}}],["simple",{"_index":51,"t":{"545":{"position":[[0,6]]}}}],["slider",{"_index":37,"t":{"534":{"position":[[0,6]]}}}],["slots",{"_index":9,"t":{"512":{"position":[[0,5]]}}}],["speed",{"_index":69,"t":{"562":{"position":[[26,5]]}}}],["spinners",{"_index":10,"t":{"513":{"position":[[0,8]]}}}],["sprite",{"_index":57,"t":{"551":{"position":[[0,6]]},"562":{"position":[[9,6]]},"564":{"position":[[9,6]]},"567":{"position":[[9,6]]},"568":{"position":[[7,6]]}}}],["star",{"_index":11,"t":{"514":{"position":[[0,4]]}}}],["svg",{"_index":52,"t":{"546":{"position":[[0,3]]},"547":{"position":[[0,3]]}}}],["swap",{"_index":71,"t":{"566":{"position":[[8,4]]}}}],["text",{"_index":76,"t":{"570":{"position":[[7,4]]},"572":{"position":[[5,4]]}}}],["texture",{"_index":54,"t":{"548":{"position":[[0,7]]},"566":{"position":[[0,7]]},"573":{"position":[[7,7]]},"575":{"position":[[7,7]]},"576":{"position":[[0,7]]}}}],["textured",{"_index":64,"t":{"557":{"position":[[0,8]]},"558":{"position":[[0,8]]},"563":{"position":[[9,8]]}}}],["tiling",{"_index":73,"t":{"568":{"position":[[0,6]]}}}],["tinting",{"_index":26,"t":{"525":{"position":[[0,7]]}}}],["toy",{"_index":62,"t":{"554":{"position":[[7,3]]}}}],["tracker",{"_index":36,"t":{"533":{"position":[[8,7]]}}}],["trail",{"_index":3,"t":{"507":{"position":[[6,5]]}}}],["transparent",{"_index":27,"t":{"526":{"position":[[0,11]]}}}],["triangle",{"_index":66,"t":{"559":{"position":[[0,8]]},"560":{"position":[[0,8]]},"563":{"position":[[0,8]]}}}],["video",{"_index":74,"t":{"569":{"position":[[0,5]]}}}],["warp",{"_index":12,"t":{"514":{"position":[[5,4]]}}}],["web",{"_index":77,"t":{"571":{"position":[[0,3]]}}}]],"pipeline":["stemmer"]}},{"documents":[{"i":510,"t":"Welcome to the PixiJS Examples page! Here you can find a variety of demos and code snippets to help you get started with PixiJS. Check out some of our featured examples below: Basic Container Blend Modes Tiling Sprite Animated Sprite Text Graphics","s":"Examples","u":"/examples","h":"","p":509}],"index":{"version":"2.3.9","fields":["t"],"fieldVectors":[["t/510",[0,0.288,1,0.396,2,0.396,3,0.288,4,0.288,5,0.288,6,0.288,7,0.288,8,0.288,9,0.288,10,0.288,11,0.288,12,0.288,13,0.288,14,0.288,15,0.288,16,0.288,17,0.288,18,0.288,19,0.288,20,0.288,21,0.396,22,0.288,23,0.288,24,0.288]]],"invertedIndex":[["animated",{"_index":22,"t":{"510":{"position":[[218,8]]}}}],["basic",{"_index":16,"t":{"510":{"position":[[176,5]]}}}],["below",{"_index":15,"t":{"510":{"position":[[169,6]]}}}],["blend",{"_index":18,"t":{"510":{"position":[[192,5]]}}}],["check",{"_index":12,"t":{"510":{"position":[[129,5]]}}}],["code",{"_index":8,"t":{"510":{"position":[[78,4]]}}}],["container",{"_index":17,"t":{"510":{"position":[[182,9]]}}}],["demos",{"_index":7,"t":{"510":{"position":[[68,5]]}}}],["examples",{"_index":2,"t":{"510":{"position":[[22,8],[160,8]]}}}],["featured",{"_index":14,"t":{"510":{"position":[[151,8]]}}}],["find",{"_index":5,"t":{"510":{"position":[[50,4]]}}}],["graphics",{"_index":24,"t":{"510":{"position":[[239,8]]}}}],["help",{"_index":10,"t":{"510":{"position":[[95,4]]}}}],["here",{"_index":4,"t":{"510":{"position":[[37,4]]}}}],["modes",{"_index":19,"t":{"510":{"position":[[198,5]]}}}],["out",{"_index":13,"t":{"510":{"position":[[135,3]]}}}],["page",{"_index":3,"t":{"510":{"position":[[31,5]]}}}],["pixijs",{"_index":1,"t":{"510":{"position":[[15,6],[121,7]]}}}],["snippets",{"_index":9,"t":{"510":{"position":[[83,8]]}}}],["sprite",{"_index":21,"t":{"510":{"position":[[211,6],[227,6]]}}}],["started",{"_index":11,"t":{"510":{"position":[[108,7]]}}}],["text",{"_index":23,"t":{"510":{"position":[[234,4]]}}}],["tiling",{"_index":20,"t":{"510":{"position":[[204,6]]}}}],["variety",{"_index":6,"t":{"510":{"position":[[57,7]]}}}],["welcome",{"_index":0,"t":{"510":{"position":[[0,7]]}}}]],"pipeline":["stemmer"]}}] \ No newline at end of file diff --git a/search-index-guides.json b/search-index-guides.json index c5eba5b6e..6c3b8d428 100644 --- a/search-index-guides.json +++ b/search-index-guides.json @@ -1 +1 @@ -[{"documents":[{"i":594,"t":"Welcome","u":"/guides","b":[]},{"i":600,"t":"Render Groups","u":"/guides/advanced/render-groups","b":["Advanced"]},{"i":611,"t":"Getting Started","u":"/guides/basics/getting-started","b":["Basics"]},{"i":637,"t":"Render Loop","u":"/guides/basics/render-loop","b":["Basics"]},{"i":649,"t":"Scene Graph","u":"/guides/basics/scene-graph","b":["Basics"]},{"i":665,"t":"What PixiJS Is","u":"/guides/basics/what-pixijs-is","b":["Basics"]},{"i":679,"t":"What PixiJS Is Not","u":"/guides/basics/what-pixijs-is-not","b":["Basics"]},{"i":697,"t":"Assets","u":"/guides/components/assets","b":["Components"]},{"i":712,"t":"Containers","u":"/guides/components/containers","b":["Components"]},{"i":722,"t":"Architecture Overview","u":"/guides/basics/architecture-overview","b":["Basics"]},{"i":730,"t":"Graphics","u":"/guides/components/graphics","b":["Components"]},{"i":744,"t":"Interaction","u":"/guides/components/interaction","b":["Components"]},{"i":758,"t":"Spritesheets","u":"/guides/components/sprite-sheets","b":["Components"]},{"i":766,"t":"Sprites","u":"/guides/components/sprites","b":["Components"]},{"i":778,"t":"Text","u":"/guides/components/text","b":["Components"]},{"i":796,"t":"Textures","u":"/guides/components/textures","b":["Components"]},{"i":814,"t":"v5 Migration Guide","u":"/guides/migrations/v5","b":["Migrations"]},{"i":844,"t":"v6 Migration Guide","u":"/guides/migrations/v6","b":["Migrations"]},{"i":850,"t":"v7 Migration Guide","u":"/guides/migrations/v7","b":["Migrations"]},{"i":886,"t":"v8 Migration Guide","u":"/guides/migrations/v8","b":["Migrations"]},{"i":906,"t":"Performance Tips","u":"/guides/production/performance-tips","b":["Production"]}],"index":{"version":"2.3.9","fields":["t"],"fieldVectors":[["t/594",[0,3.211]],["t/600",[1,2.01,2,2.482]],["t/611",[3,2.482,4,2.482]],["t/637",[1,2.01,5,2.482]],["t/649",[6,2.482,7,2.482]],["t/665",[8,2.6]],["t/679",[8,2.6]],["t/697",[9,3.211]],["t/712",[10,3.211]],["t/722",[11,2.482,12,2.482]],["t/730",[13,3.211]],["t/744",[14,3.211]],["t/758",[15,3.211]],["t/766",[16,3.211]],["t/778",[17,3.211]],["t/796",[18,3.211]],["t/814",[19,2.023,20,1.196,21,1.196]],["t/844",[20,1.196,21,1.196,22,2.023]],["t/850",[20,1.196,21,1.196,23,2.023]],["t/886",[20,1.196,21,1.196,24,2.023]],["t/906",[25,2.482,26,2.482]]],"invertedIndex":[["architecture",{"_index":11,"t":{"722":{"position":[[0,12]]}}}],["assets",{"_index":9,"t":{"697":{"position":[[0,6]]}}}],["containers",{"_index":10,"t":{"712":{"position":[[0,10]]}}}],["getting",{"_index":3,"t":{"611":{"position":[[0,7]]}}}],["graph",{"_index":7,"t":{"649":{"position":[[6,5]]}}}],["graphics",{"_index":13,"t":{"730":{"position":[[0,8]]}}}],["groups",{"_index":2,"t":{"600":{"position":[[7,6]]}}}],["guide",{"_index":21,"t":{"814":{"position":[[13,5]]},"844":{"position":[[13,5]]},"850":{"position":[[13,5]]},"886":{"position":[[13,5]]}}}],["interaction",{"_index":14,"t":{"744":{"position":[[0,11]]}}}],["loop",{"_index":5,"t":{"637":{"position":[[7,4]]}}}],["migration",{"_index":20,"t":{"814":{"position":[[3,9]]},"844":{"position":[[3,9]]},"850":{"position":[[3,9]]},"886":{"position":[[3,9]]}}}],["overview",{"_index":12,"t":{"722":{"position":[[13,8]]}}}],["performance",{"_index":25,"t":{"906":{"position":[[0,11]]}}}],["pixijs",{"_index":8,"t":{"665":{"position":[[5,6]]},"679":{"position":[[5,6]]}}}],["render",{"_index":1,"t":{"600":{"position":[[0,6]]},"637":{"position":[[0,6]]}}}],["scene",{"_index":6,"t":{"649":{"position":[[0,5]]}}}],["sprites",{"_index":16,"t":{"766":{"position":[[0,7]]}}}],["spritesheets",{"_index":15,"t":{"758":{"position":[[0,12]]}}}],["started",{"_index":4,"t":{"611":{"position":[[8,7]]}}}],["text",{"_index":17,"t":{"778":{"position":[[0,4]]}}}],["textures",{"_index":18,"t":{"796":{"position":[[0,8]]}}}],["tips",{"_index":26,"t":{"906":{"position":[[12,4]]}}}],["v5",{"_index":19,"t":{"814":{"position":[[0,2]]}}}],["v6",{"_index":22,"t":{"844":{"position":[[0,2]]}}}],["v7",{"_index":23,"t":{"850":{"position":[[0,2]]}}}],["v8",{"_index":24,"t":{"886":{"position":[[0,2]]}}}],["welcome",{"_index":0,"t":{"594":{"position":[[0,7]]}}}]],"pipeline":["stemmer"]}},{"documents":[{"i":596,"t":"About The Guides","u":"/guides","h":"#about-the-guides","p":594},{"i":598,"t":"Other Resources","u":"/guides","h":"#other-resources","p":594},{"i":601,"t":"Understanding RenderGroups in PixiJS","u":"/guides/advanced/render-groups","h":"#understanding-rendergroups-in-pixijs","p":600},{"i":603,"t":"What Are Render Groups?","u":"/guides/advanced/render-groups","h":"#what-are-render-groups","p":600},{"i":605,"t":"Why Use Render Groups?","u":"/guides/advanced/render-groups","h":"#why-use-render-groups","p":600},{"i":607,"t":"Examples","u":"/guides/advanced/render-groups","h":"#examples","p":600},{"i":609,"t":"Best Practices","u":"/guides/advanced/render-groups","h":"#best-practices","p":600},{"i":613,"t":"Advanced Users","u":"/guides/basics/getting-started","h":"#advanced-users","p":611},{"i":615,"t":"A Note About JavaScript","u":"/guides/basics/getting-started","h":"#a-note-about-javascript","p":611},{"i":617,"t":"Components of a PixiJS Application","u":"/guides/basics/getting-started","h":"#components-of-a-pixijs-application","p":611},{"i":619,"t":"The HTML File","u":"/guides/basics/getting-started","h":"#the-html-file","p":611},{"i":621,"t":"Serving the File","u":"/guides/basics/getting-started","h":"#serving-the-file","p":611},{"i":623,"t":"Loading PixiJS","u":"/guides/basics/getting-started","h":"#loading-pixijs","p":611},{"i":625,"t":"Creating an Application","u":"/guides/basics/getting-started","h":"#creating-an-application","p":611},{"i":627,"t":"Adding the Canvas to the DOM","u":"/guides/basics/getting-started","h":"#adding-the-canvas-to-the-dom","p":611},{"i":629,"t":"Creating a Sprite","u":"/guides/basics/getting-started","h":"#creating-a-sprite","p":611},{"i":631,"t":"Adding the Sprite to the Stage","u":"/guides/basics/getting-started","h":"#adding-the-sprite-to-the-stage","p":611},{"i":633,"t":"Writing an Update Loop","u":"/guides/basics/getting-started","h":"#writing-an-update-loop","p":611},{"i":635,"t":"Putting It All Together","u":"/guides/basics/getting-started","h":"#putting-it-all-together","p":611},{"i":639,"t":"Running Ticker Callbacks","u":"/guides/basics/render-loop","h":"#running-ticker-callbacks","p":637},{"i":641,"t":"Updating the Scene Graph","u":"/guides/basics/render-loop","h":"#updating-the-scene-graph","p":637},{"i":643,"t":"Rendering the Scene Graph","u":"/guides/basics/render-loop","h":"#rendering-the-scene-graph","p":637},{"i":645,"t":"Frame Rates","u":"/guides/basics/render-loop","h":"#frame-rates","p":637},{"i":647,"t":"Custom Render Loops","u":"/guides/basics/render-loop","h":"#custom-render-loops","p":637},{"i":651,"t":"The Scene Graph Is a Tree","u":"/guides/basics/scene-graph","h":"#the-scene-graph-is-a-tree","p":649},{"i":653,"t":"Parents and Children","u":"/guides/basics/scene-graph","h":"#parents-and-children","p":649},{"i":655,"t":"Render Order","u":"/guides/basics/scene-graph","h":"#render-order","p":649},{"i":657,"t":"RenderGroups","u":"/guides/basics/scene-graph","h":"#rendergroups","p":649},{"i":659,"t":"Culling","u":"/guides/basics/scene-graph","h":"#culling","p":649},{"i":661,"t":"Local vs Global Coordinates","u":"/guides/basics/scene-graph","h":"#local-vs-global-coordinates","p":649},{"i":663,"t":"Global vs Screen Coordinates","u":"/guides/basics/scene-graph","h":"#global-vs-screen-coordinates","p":649},{"i":667,"t":"PixiJS Is ... Fast","u":"/guides/basics/what-pixijs-is","h":"#pixijs-is--fast","p":665},{"i":669,"t":"... More Than Just Sprites","u":"/guides/basics/what-pixijs-is","h":"#-more-than-just-sprites","p":665},{"i":671,"t":"... Hardware accelerated","u":"/guides/basics/what-pixijs-is","h":"#-hardware-accelerated","p":665},{"i":673,"t":"... Open Source","u":"/guides/basics/what-pixijs-is","h":"#-open-source","p":665},{"i":675,"t":"... Extensible","u":"/guides/basics/what-pixijs-is","h":"#-extensible","p":665},{"i":677,"t":"... Easy to Deploy","u":"/guides/basics/what-pixijs-is","h":"#-easy-to-deploy","p":665},{"i":681,"t":"PixiJS Is Not ... A Framework","u":"/guides/basics/what-pixijs-is-not","h":"#pixijs-is-not--a-framework","p":679},{"i":683,"t":"... A 3D Renderer","u":"/guides/basics/what-pixijs-is-not","h":"#-a-3d-renderer","p":679},{"i":685,"t":"... A Mobile App","u":"/guides/basics/what-pixijs-is-not","h":"#-a-mobile-app","p":679},{"i":687,"t":"... A UI Library","u":"/guides/basics/what-pixijs-is-not","h":"#-a-ui-library","p":679},{"i":689,"t":"... A Data Store","u":"/guides/basics/what-pixijs-is-not","h":"#-a-data-store","p":679},{"i":691,"t":"... An Audio Library","u":"/guides/basics/what-pixijs-is-not","h":"#-an-audio-library","p":679},{"i":693,"t":"... A Development Environment","u":"/guides/basics/what-pixijs-is-not","h":"#-a-development-environment","p":679},{"i":695,"t":"So Is PixiJS Right For Me?","u":"/guides/basics/what-pixijs-is-not","h":"#so-is-pixijs-right-for-me","p":679},{"i":698,"t":"The Assets package","u":"/guides/components/assets","h":"#the-assets-package","p":697},{"i":700,"t":"Getting started","u":"/guides/components/assets","h":"#getting-started","p":697},{"i":702,"t":"Making our first Assets Promise","u":"/guides/components/assets","h":"#making-our-first-assets-promise","p":697},{"i":704,"t":"Warning about solved promises","u":"/guides/components/assets","h":"#warning-about-solved-promises","p":697},{"i":706,"t":"Using Async/Await","u":"/guides/components/assets","h":"#using-asyncawait","p":697},{"i":708,"t":"Loading multiple assets","u":"/guides/components/assets","h":"#loading-multiple-assets","p":697},{"i":710,"t":"Background loading","u":"/guides/components/assets","h":"#background-loading","p":697},{"i":714,"t":"Commonly Used Attributes","u":"/guides/components/containers","h":"#commonly-used-attributes","p":712},{"i":716,"t":"Containers as Groups","u":"/guides/components/containers","h":"#containers-as-groups","p":712},{"i":718,"t":"Masking","u":"/guides/components/containers","h":"#masking","p":712},{"i":720,"t":"Filtering","u":"/guides/components/containers","h":"#filtering","p":712},{"i":724,"t":"The Code","u":"/guides/basics/architecture-overview","h":"#the-code","p":722},{"i":726,"t":"The Components","u":"/guides/basics/architecture-overview","h":"#the-components","p":722},{"i":728,"t":"Major Components","u":"/guides/basics/architecture-overview","h":"#major-components","p":722},{"i":732,"t":"Graphics Is About Building - Not Drawing","u":"/guides/components/graphics","h":"#graphics-is-about-building---not-drawing","p":730},{"i":734,"t":"Types of Primitives","u":"/guides/components/graphics","h":"#types-of-primitives","p":730},{"i":736,"t":"The GraphicsContext","u":"/guides/components/graphics","h":"#the-graphicscontext","p":730},{"i":738,"t":"Graphics For Display","u":"/guides/components/graphics","h":"#graphics-for-display","p":730},{"i":740,"t":"Graphics as a Mask","u":"/guides/components/graphics","h":"#graphics-as-a-mask","p":730},{"i":742,"t":"Caveats and Gotchas","u":"/guides/components/graphics","h":"#caveats-and-gotchas","p":730},{"i":746,"t":"Event Modes","u":"/guides/components/interaction","h":"#event-modes","p":744},{"i":748,"t":"Event Types","u":"/guides/components/interaction","h":"#event-types","p":744},{"i":750,"t":"Enabling Interaction","u":"/guides/components/interaction","h":"#enabling-interaction","p":744},{"i":752,"t":"Checking if Object is Interactive","u":"/guides/components/interaction","h":"#checking-if-object-is-interactive","p":744},{"i":754,"t":"Use Pointer Events","u":"/guides/components/interaction","h":"#use-pointer-events","p":744},{"i":756,"t":"Optimization","u":"/guides/components/interaction","h":"#optimization","p":744},{"i":760,"t":"Anatomy of a Spritesheet","u":"/guides/components/sprite-sheets","h":"#anatomy-of-a-spritesheet","p":758},{"i":762,"t":"Doubly Efficient","u":"/guides/components/sprite-sheets","h":"#doubly-efficient","p":758},{"i":764,"t":"Creating SpriteSheets","u":"/guides/components/sprite-sheets","h":"#creating-spritesheets","p":758},{"i":768,"t":"Creating Sprites","u":"/guides/components/sprites","h":"#creating-sprites","p":766},{"i":770,"t":"Using Sprites","u":"/guides/components/sprites","h":"#using-sprites","p":766},{"i":772,"t":"Alpha, Tint and Blend Modes","u":"/guides/components/sprites","h":"#alpha-tint-and-blend-modes","p":766},{"i":774,"t":"Scale vs Width & Height","u":"/guides/components/sprites","h":"#scale-vs-width--height","p":766},{"i":776,"t":"Pivot vs Anchor","u":"/guides/components/sprites","h":"#pivot-vs-anchor","p":766},{"i":780,"t":"There Are Three Kinds of Text","u":"/guides/components/text","h":"#there-are-three-kinds-of-text","p":778},{"i":782,"t":"The Text Object","u":"/guides/components/text","h":"#the-text-object","p":778},{"i":784,"t":"Text Styles","u":"/guides/components/text","h":"#text-styles","p":778},{"i":786,"t":"Loading and Using Fonts","u":"/guides/components/text","h":"#loading-and-using-fonts","p":778},{"i":788,"t":"Caveats and Gotchas","u":"/guides/components/text","h":"#caveats-and-gotchas","p":778},{"i":790,"t":"BitmapText","u":"/guides/components/text","h":"#bitmaptext","p":778},{"i":792,"t":"BitmapFont","u":"/guides/components/text","h":"#bitmapfont","p":778},{"i":794,"t":"Selecting the Right Approach","u":"/guides/components/text","h":"#selecting-the-right-approach","p":778},{"i":798,"t":"Life-cycle of a Texture","u":"/guides/components/textures","h":"#life-cycle-of-a-texture","p":796},{"i":800,"t":"Serving the Image","u":"/guides/components/textures","h":"#serving-the-image","p":796},{"i":802,"t":"Loading the Image","u":"/guides/components/textures","h":"#loading-the-image","p":796},{"i":804,"t":"TextureSources Own the Data","u":"/guides/components/textures","h":"#texturesources-own-the-data","p":796},{"i":806,"t":"Textures are a View on BaseTextures","u":"/guides/components/textures","h":"#textures-are-a-view-on-basetextures","p":796},{"i":808,"t":"Loading Textures","u":"/guides/components/textures","h":"#loading-textures","p":796},{"i":810,"t":"Unloading Textures","u":"/guides/components/textures","h":"#unloading-textures","p":796},{"i":812,"t":"Beyond Images","u":"/guides/components/textures","h":"#beyond-images","p":796},{"i":816,"t":"🚧 API Changes","u":"/guides/migrations/v5","h":"#-api-changes","p":814},{"i":817,"t":"Making WebGL First-Class","u":"/guides/migrations/v5","h":"#making-webgl-first-class","p":814},{"i":819,"t":"Renderer Parameters","u":"/guides/migrations/v5","h":"#renderer-parameters","p":814},{"i":821,"t":"Mesh, Plane, Rope","u":"/guides/migrations/v5","h":"#mesh-plane-rope","p":814},{"i":823,"t":"Graphics Holes","u":"/guides/migrations/v5","h":"#graphics-holes","p":814},{"i":825,"t":"Filter Padding","u":"/guides/migrations/v5","h":"#filter-padding","p":814},{"i":827,"t":"Filter Default Vertex Shader","u":"/guides/migrations/v5","h":"#filter-default-vertex-shader","p":814},{"i":829,"t":"Enable Mipmapping for RenderTexture","u":"/guides/migrations/v5","h":"#enable-mipmapping-for-rendertexture","p":814},{"i":831,"t":"BaseTexture Resources","u":"/guides/migrations/v5","h":"#basetexture-resources","p":814},{"i":833,"t":"BaseTexture.source","u":"/guides/migrations/v5","h":"#basetexturesource","p":814},{"i":835,"t":"Graphics Interaction","u":"/guides/migrations/v5","h":"#graphics-interaction","p":814},{"i":837,"t":"📦 Publishing Changes","u":"/guides/migrations/v5","h":"#-publishing-changes","p":814},{"i":838,"t":"Canvas Becomes Legacy","u":"/guides/migrations/v5","h":"#canvas-becomes-legacy","p":814},{"i":840,"t":"Bundling Changes","u":"/guides/migrations/v5","h":"#bundling-changes","p":814},{"i":842,"t":"Webpack","u":"/guides/migrations/v5","h":"#webpack","p":814},{"i":846,"t":"Typings","u":"/guides/migrations/v6","h":"#typings","p":844},{"i":848,"t":"Mesh Internals","u":"/guides/migrations/v6","h":"#mesh-internals","p":844},{"i":852,"t":"👋 Dropping Internet Explorer","u":"/guides/migrations/v7","h":"#-dropping-internet-explorer","p":850},{"i":854,"t":"🗑️ Remove Polyfills","u":"/guides/migrations/v7","h":"#️-remove-polyfills","p":850},{"i":856,"t":"💬 Output ES2020 (modules) and ES2017 (browser)","u":"/guides/migrations/v7","h":"#-output-es2020-modules-and-es2017-browser","p":850},{"i":858,"t":"🐭 Replaces InteractionManager with EventSystem","u":"/guides/migrations/v7","h":"#-replaces-interactionmanager-with-eventsystem","p":850},{"i":860,"t":"📦 Replaces Loader with Assets","u":"/guides/migrations/v7","h":"#-replaces-loader-with-assets","p":850},{"i":862,"t":"🤝 Abandon the use of peerDependencies","u":"/guides/migrations/v7","h":"#-abandon-the-use-of-peerdependencies","p":850},{"i":864,"t":"👂 Other Changes","u":"/guides/migrations/v7","h":"#-other-changes","p":850},{"i":866,"t":"Exports from @pixi/core","u":"/guides/migrations/v7","h":"#exports-from-pixicore","p":850},{"i":868,"t":"Extract and Prepare Systems","u":"/guides/migrations/v7","h":"#extract-and-prepare-systems","p":850},{"i":870,"t":"Extensions Self-Install","u":"/guides/migrations/v7","h":"#extensions-self-install","p":850},{"i":872,"t":"Using hitTest with Events","u":"/guides/migrations/v7","h":"#using-hittest-with-events","p":850},{"i":874,"t":"New Async Extract Methods","u":"/guides/migrations/v7","h":"#new-async-extract-methods","p":850},{"i":876,"t":"Interactive Move Events","u":"/guides/migrations/v7","h":"#interactive-move-events","p":850},{"i":878,"t":"Interactive Property Handlers are Removed","u":"/guides/migrations/v7","h":"#interactive-property-handlers-are-removed","p":850},{"i":880,"t":"Property buttonMode has been removed","u":"/guides/migrations/v7","h":"#property-buttonmode-has-been-removed","p":850},{"i":882,"t":"☝️ Suggestions for Upgrading","u":"/guides/migrations/v7","h":"#️-suggestions-for-upgrading","p":850},{"i":884,"t":"🏗️ Plugin Supported","u":"/guides/migrations/v7","h":"#️-plugin-supported","p":850},{"i":888,"t":"Table of Contents","u":"/guides/migrations/v8","h":"#table-of-contents","p":886},{"i":890,"t":"1. Introduction","u":"/guides/migrations/v8","h":"#1-introduction","p":886},{"i":892,"t":"2. Breaking Changes","u":"/guides/migrations/v8","h":"#2-breaking-changes","p":886},{"i":894,"t":"New Package Structure","u":"/guides/migrations/v8","h":"#new-package-structure","p":886},{"i":896,"t":"Async Initialisation","u":"/guides/migrations/v8","h":"#async-initialisation","p":886},{"i":898,"t":"Graphics API Overhaul","u":"/guides/migrations/v8","h":"#graphics-api-overhaul","p":886},{"i":900,"t":"Other Breaking Changes","u":"/guides/migrations/v8","h":"#other-breaking-changes","p":886},{"i":902,"t":"3. Deprecated Features","u":"/guides/migrations/v8","h":"#3-deprecated-features","p":886},{"i":904,"t":"4. Resources","u":"/guides/migrations/v8","h":"#4-resources","p":886},{"i":907,"t":"General","u":"/guides/production/performance-tips","h":"#general","p":906},{"i":909,"t":"Sprites","u":"/guides/production/performance-tips","h":"#sprites","p":906},{"i":911,"t":"Graphics","u":"/guides/production/performance-tips","h":"#graphics","p":906},{"i":913,"t":"Texture","u":"/guides/production/performance-tips","h":"#texture","p":906},{"i":915,"t":"Text","u":"/guides/production/performance-tips","h":"#text","p":906},{"i":917,"t":"Masks","u":"/guides/production/performance-tips","h":"#masks","p":906},{"i":919,"t":"Filters","u":"/guides/production/performance-tips","h":"#filters","p":906},{"i":921,"t":"BlendModes","u":"/guides/production/performance-tips","h":"#blendmodes","p":906},{"i":923,"t":"Events","u":"/guides/production/performance-tips","h":"#events","p":906}],"index":{"version":"2.3.9","fields":["t"],"fieldVectors":[["t/596",[0,6.028]],["t/598",[1,4.916]],["t/601",[2,4.161,3,3.698,4,2.832]],["t/603",[5,3.746,6,4.015]],["t/605",[5,3.166,6,3.393,7,3.393]],["t/607",[8,6.028]],["t/609",[9,4.924,10,4.924]],["t/613",[11,4.924,12,4.924]],["t/615",[13,4.924,14,4.924]],["t/617",[4,2.832,15,3.393,16,3.698]],["t/619",[17,4.924,18,4.376]],["t/621",[18,4.376,19,4.376]],["t/623",[4,3.351,20,3.351]],["t/625",[16,4.376,21,3.746]],["t/627",[22,3.698,23,3.698,24,4.161]],["t/629",[21,3.746,25,4.376]],["t/631",[22,3.698,25,3.698,26,4.161]],["t/633",[27,4.161,28,4.161,29,4.161]],["t/635",[30,4.924,31,4.924]],["t/639",[32,4.161,33,4.161,34,4.161]],["t/641",[35,4.161,36,3.393,37,3.393]],["t/643",[36,3.393,37,3.393,38,4.161]],["t/645",[39,4.924,40,4.924]],["t/647",[5,3.166,41,4.161,42,4.161]],["t/651",[36,3.393,37,3.393,43,4.161]],["t/653",[44,4.924,45,4.924]],["t/655",[5,3.746,46,4.924]],["t/657",[3,5.357]],["t/659",[47,6.028]],["t/661",[48,3.603,49,2.741,50,3.203,51,3.203]],["t/663",[49,2.741,50,3.203,51,3.203,52,3.603]],["t/667",[4,2.832,53,1.594,54,4.161]],["t/669",[53,1.594,55,4.161,56,3.166]],["t/671",[53,1.594,57,4.161,58,4.161]],["t/673",[53,1.594,59,4.161,60,4.161]],["t/675",[53,1.886,61,4.924]],["t/677",[53,1.594,62,4.161,63,4.161]],["t/681",[4,2.832,53,1.594,64,4.161]],["t/683",[53,1.594,65,4.161,66,3.698]],["t/685",[53,1.594,67,4.161,68,4.161]],["t/687",[53,1.594,69,4.161,70,3.698]],["t/689",[53,1.594,71,3.698,72,4.161]],["t/691",[53,1.594,70,3.698,73,4.161]],["t/693",[53,1.594,74,4.161,75,4.161]],["t/695",[4,3.351,76,4.376]],["t/698",[77,3.746,78,4.376]],["t/700",[79,4.924,80,4.924]],["t/702",[77,2.741,81,3.203,82,3.203,83,3.603]],["t/704",[84,4.161,85,4.161,86,4.161]],["t/706",[87,3.746,88,4.924]],["t/708",[20,2.832,77,3.166,89,4.161]],["t/710",[20,3.351,90,4.924]],["t/714",[91,4.161,92,4.161,93,4.161]],["t/716",[6,4.015,94,4.924]],["t/718",[95,6.028]],["t/720",[96,6.028]],["t/724",[97,6.028]],["t/726",[15,4.916]],["t/728",[15,4.015,98,4.924]],["t/732",[99,2.703,100,4.161,101,4.161]],["t/734",[102,4.376,103,4.924]],["t/736",[104,6.028]],["t/738",[99,3.198,105,4.924]],["t/740",[99,3.198,106,4.924]],["t/742",[107,4.376,108,4.376]],["t/746",[109,4.376,110,4.376]],["t/748",[102,4.376,109,4.376]],["t/750",[111,4.924,112,4.376]],["t/752",[113,4.161,114,3.698,115,3.393]],["t/754",[7,3.393,116,4.161,117,3.166]],["t/756",[118,6.028]],["t/760",[119,4.924,120,4.924]],["t/762",[121,4.924,122,4.924]],["t/764",[21,3.746,123,4.924]],["t/768",[21,3.746,56,3.746]],["t/770",[56,3.746,87,3.746]],["t/772",[110,3.203,124,3.603,125,3.603,126,3.603]],["t/774",[49,2.417,53,1.217,127,3.177,128,3.177,129,3.177]],["t/776",[49,3.166,130,4.161,131,4.161]],["t/780",[132,4.161,133,4.161,134,3.166]],["t/782",[114,4.376,134,3.746]],["t/784",[134,3.746,135,4.924]],["t/786",[20,2.832,87,3.166,136,4.161]],["t/788",[107,4.376,108,4.376]],["t/790",[137,6.028]],["t/792",[138,6.028]],["t/794",[76,3.698,139,4.161,140,4.161]],["t/798",[141,4.161,142,4.161,143,3.698]],["t/800",[19,4.376,144,4.376]],["t/802",[20,3.351,144,4.376]],["t/804",[71,4.376,145,4.924]],["t/806",[146,3.393,147,4.161,148,4.161]],["t/808",[20,3.351,146,4.015]],["t/810",[146,4.015,149,4.924]],["t/812",[150,4.924,151,4.924]],["t/816",[53,1.594,152,3.698,153,2.832]],["t/817",[81,3.203,82,3.203,154,3.603,155,3.603]],["t/819",[66,4.376,156,4.924]],["t/821",[157,3.698,158,4.161,159,4.161]],["t/823",[99,3.198,160,4.924]],["t/825",[161,4.376,162,4.924]],["t/827",[161,3.203,163,3.603,164,3.603,165,3.603]],["t/829",[166,4.161,167,4.161,168,4.161]],["t/831",[1,4.015,169,4.924]],["t/833",[170,6.028]],["t/835",[99,3.198,112,4.376]],["t/837",[53,1.594,153,2.832,171,4.161]],["t/838",[23,3.698,172,4.161,173,4.161]],["t/840",[153,3.351,174,4.924]],["t/842",[175,6.028]],["t/846",[176,6.028]],["t/848",[157,4.376,177,4.924]],["t/852",[53,1.38,178,3.603,179,3.603,180,3.603]],["t/854",[53,1.594,181,4.161,182,4.161]],["t/856",[53,1.088,183,2.841,184,2.841,185,2.841,186,2.841,187,2.841]],["t/858",[53,1.38,188,3.203,189,3.603,190,3.603]],["t/860",[53,1.38,77,2.741,188,3.203,191,3.603]],["t/862",[7,2.938,53,1.38,192,3.603,193,3.603]],["t/864",[53,1.886,153,3.351]],["t/866",[194,4.924,195,4.924]],["t/868",[196,3.698,197,4.161,198,4.161]],["t/870",[199,4.161,200,4.161,201,4.161]],["t/872",[87,3.166,117,3.166,202,4.161]],["t/874",[196,3.203,203,3.203,204,3.203,205,3.603]],["t/876",[115,3.393,117,3.166,206,4.161]],["t/878",[115,2.938,207,3.203,208,3.603,209,3.203]],["t/880",[207,3.698,209,3.698,210,4.161]],["t/882",[53,1.594,211,4.161,212,4.161]],["t/884",[53,1.594,213,4.161,214,4.161]],["t/888",[215,4.924,216,4.924]],["t/890",[217,4.924,218,4.924]],["t/892",[153,2.832,219,4.161,220,3.698]],["t/894",[78,3.698,203,3.698,221,4.161]],["t/896",[204,4.376,222,4.924]],["t/898",[99,2.703,152,3.698,223,4.161]],["t/900",[153,3.351,220,4.376]],["t/902",[224,4.161,225,4.161,226,4.161]],["t/904",[1,4.015,227,4.924]],["t/907",[228,6.028]],["t/909",[56,4.586]],["t/911",[99,3.915]],["t/913",[143,5.357]],["t/915",[134,4.586]],["t/917",[229,6.028]],["t/919",[230,6.028]],["t/921",[231,6.028]],["t/923",[117,4.586]]],"invertedIndex":[["",{"_index":53,"t":{"667":{"position":[[10,3]]},"669":{"position":[[0,3]]},"671":{"position":[[0,3]]},"673":{"position":[[0,3]]},"675":{"position":[[0,3]]},"677":{"position":[[0,3]]},"681":{"position":[[14,3]]},"683":{"position":[[0,3]]},"685":{"position":[[0,3]]},"687":{"position":[[0,3]]},"689":{"position":[[0,3]]},"691":{"position":[[0,3]]},"693":{"position":[[0,3]]},"774":{"position":[[15,1]]},"816":{"position":[[0,2]]},"837":{"position":[[0,2]]},"852":{"position":[[0,2]]},"854":{"position":[[0,3]]},"856":{"position":[[0,2]]},"858":{"position":[[0,2]]},"860":{"position":[[0,2]]},"862":{"position":[[0,2]]},"864":{"position":[[0,2]]},"882":{"position":[[0,2]]},"884":{"position":[[0,3]]}}}],["1",{"_index":217,"t":{"890":{"position":[[0,2]]}}}],["2",{"_index":219,"t":{"892":{"position":[[0,2]]}}}],["3",{"_index":224,"t":{"902":{"position":[[0,2]]}}}],["3d",{"_index":65,"t":{"683":{"position":[[6,2]]}}}],["4",{"_index":227,"t":{"904":{"position":[[0,2]]}}}],["abandon",{"_index":192,"t":{"862":{"position":[[3,7]]}}}],["accelerated",{"_index":58,"t":{"671":{"position":[[13,11]]}}}],["adding",{"_index":22,"t":{"627":{"position":[[0,6]]},"631":{"position":[[0,6]]}}}],["advanced",{"_index":11,"t":{"613":{"position":[[0,8]]}}}],["alpha",{"_index":124,"t":{"772":{"position":[[0,6]]}}}],["anatomy",{"_index":119,"t":{"760":{"position":[[0,7]]}}}],["anchor",{"_index":131,"t":{"776":{"position":[[9,6]]}}}],["api",{"_index":152,"t":{"816":{"position":[[3,3]]},"898":{"position":[[9,3]]}}}],["app",{"_index":68,"t":{"685":{"position":[[13,3]]}}}],["application",{"_index":16,"t":{"617":{"position":[[23,11]]},"625":{"position":[[12,11]]}}}],["approach",{"_index":140,"t":{"794":{"position":[[20,8]]}}}],["assets",{"_index":77,"t":{"698":{"position":[[4,6]]},"702":{"position":[[17,6]]},"708":{"position":[[17,6]]},"860":{"position":[[24,6]]}}}],["async",{"_index":204,"t":{"874":{"position":[[4,5]]},"896":{"position":[[0,5]]}}}],["async/await",{"_index":88,"t":{"706":{"position":[[6,11]]}}}],["attributes",{"_index":93,"t":{"714":{"position":[[14,10]]}}}],["audio",{"_index":73,"t":{"691":{"position":[[7,5]]}}}],["background",{"_index":90,"t":{"710":{"position":[[0,10]]}}}],["basetexture",{"_index":169,"t":{"831":{"position":[[0,11]]}}}],["basetexture.source",{"_index":170,"t":{"833":{"position":[[0,18]]}}}],["basetextures",{"_index":148,"t":{"806":{"position":[[23,12]]}}}],["becomes",{"_index":172,"t":{"838":{"position":[[7,7]]}}}],["best",{"_index":9,"t":{"609":{"position":[[0,4]]}}}],["beyond",{"_index":150,"t":{"812":{"position":[[0,6]]}}}],["bitmapfont",{"_index":138,"t":{"792":{"position":[[0,10]]}}}],["bitmaptext",{"_index":137,"t":{"790":{"position":[[0,10]]}}}],["blend",{"_index":126,"t":{"772":{"position":[[16,5]]}}}],["blendmodes",{"_index":231,"t":{"921":{"position":[[0,10]]}}}],["breaking",{"_index":220,"t":{"892":{"position":[[3,8]]},"900":{"position":[[6,8]]}}}],["browser",{"_index":187,"t":{"856":{"position":[[38,9]]}}}],["building",{"_index":100,"t":{"732":{"position":[[18,8]]}}}],["bundling",{"_index":174,"t":{"840":{"position":[[0,8]]}}}],["buttonmode",{"_index":210,"t":{"880":{"position":[[9,10]]}}}],["callbacks",{"_index":34,"t":{"639":{"position":[[15,9]]}}}],["canvas",{"_index":23,"t":{"627":{"position":[[11,6]]},"838":{"position":[[0,6]]}}}],["caveats",{"_index":107,"t":{"742":{"position":[[0,7]]},"788":{"position":[[0,7]]}}}],["changes",{"_index":153,"t":{"816":{"position":[[7,7]]},"837":{"position":[[14,7]]},"840":{"position":[[9,7]]},"864":{"position":[[9,7]]},"892":{"position":[[12,7]]},"900":{"position":[[15,7]]}}}],["checking",{"_index":113,"t":{"752":{"position":[[0,8]]}}}],["children",{"_index":45,"t":{"653":{"position":[[12,8]]}}}],["class",{"_index":155,"t":{"817":{"position":[[19,5]]}}}],["code",{"_index":97,"t":{"724":{"position":[[4,4]]}}}],["commonly",{"_index":91,"t":{"714":{"position":[[0,8]]}}}],["components",{"_index":15,"t":{"617":{"position":[[0,10]]},"726":{"position":[[4,10]]},"728":{"position":[[6,10]]}}}],["containers",{"_index":94,"t":{"716":{"position":[[0,10]]}}}],["contents",{"_index":216,"t":{"888":{"position":[[9,8]]}}}],["coordinates",{"_index":51,"t":{"661":{"position":[[16,11]]},"663":{"position":[[17,11]]}}}],["creating",{"_index":21,"t":{"625":{"position":[[0,8]]},"629":{"position":[[0,8]]},"764":{"position":[[0,8]]},"768":{"position":[[0,8]]}}}],["culling",{"_index":47,"t":{"659":{"position":[[0,7]]}}}],["custom",{"_index":41,"t":{"647":{"position":[[0,6]]}}}],["cycle",{"_index":142,"t":{"798":{"position":[[5,5]]}}}],["data",{"_index":71,"t":{"689":{"position":[[6,4]]},"804":{"position":[[23,4]]}}}],["default",{"_index":163,"t":{"827":{"position":[[7,7]]}}}],["deploy",{"_index":63,"t":{"677":{"position":[[12,6]]}}}],["deprecated",{"_index":225,"t":{"902":{"position":[[3,10]]}}}],["development",{"_index":74,"t":{"693":{"position":[[6,11]]}}}],["display",{"_index":105,"t":{"738":{"position":[[13,7]]}}}],["dom",{"_index":24,"t":{"627":{"position":[[25,3]]}}}],["doubly",{"_index":121,"t":{"762":{"position":[[0,6]]}}}],["drawing",{"_index":101,"t":{"732":{"position":[[33,7]]}}}],["dropping",{"_index":178,"t":{"852":{"position":[[3,8]]}}}],["easy",{"_index":62,"t":{"677":{"position":[[4,4]]}}}],["efficient",{"_index":122,"t":{"762":{"position":[[7,9]]}}}],["enable",{"_index":166,"t":{"829":{"position":[[0,6]]}}}],["enabling",{"_index":111,"t":{"750":{"position":[[0,8]]}}}],["environment",{"_index":75,"t":{"693":{"position":[[18,11]]}}}],["es2017",{"_index":186,"t":{"856":{"position":[[31,6]]}}}],["es2020",{"_index":184,"t":{"856":{"position":[[10,6]]}}}],["event",{"_index":109,"t":{"746":{"position":[[0,5]]},"748":{"position":[[0,5]]}}}],["events",{"_index":117,"t":{"754":{"position":[[12,6]]},"872":{"position":[[19,6]]},"876":{"position":[[17,6]]},"923":{"position":[[0,6]]}}}],["eventsystem",{"_index":190,"t":{"858":{"position":[[36,11]]}}}],["examples",{"_index":8,"t":{"607":{"position":[[0,8]]}}}],["explorer",{"_index":180,"t":{"852":{"position":[[21,8]]}}}],["exports",{"_index":194,"t":{"866":{"position":[[0,7]]}}}],["extensible",{"_index":61,"t":{"675":{"position":[[4,10]]}}}],["extensions",{"_index":199,"t":{"870":{"position":[[0,10]]}}}],["extract",{"_index":196,"t":{"868":{"position":[[0,7]]},"874":{"position":[[10,7]]}}}],["fast",{"_index":54,"t":{"667":{"position":[[14,4]]}}}],["features",{"_index":226,"t":{"902":{"position":[[14,8]]}}}],["file",{"_index":18,"t":{"619":{"position":[[9,4]]},"621":{"position":[[12,4]]}}}],["filter",{"_index":161,"t":{"825":{"position":[[0,6]]},"827":{"position":[[0,6]]}}}],["filtering",{"_index":96,"t":{"720":{"position":[[0,9]]}}}],["filters",{"_index":230,"t":{"919":{"position":[[0,7]]}}}],["first",{"_index":82,"t":{"702":{"position":[[11,5]]},"817":{"position":[[13,5]]}}}],["fonts",{"_index":136,"t":{"786":{"position":[[18,5]]}}}],["frame",{"_index":39,"t":{"645":{"position":[[0,5]]}}}],["framework",{"_index":64,"t":{"681":{"position":[[20,9]]}}}],["general",{"_index":228,"t":{"907":{"position":[[0,7]]}}}],["getting",{"_index":79,"t":{"700":{"position":[[0,7]]}}}],["global",{"_index":50,"t":{"661":{"position":[[9,6]]},"663":{"position":[[0,6]]}}}],["gotchas",{"_index":108,"t":{"742":{"position":[[12,7]]},"788":{"position":[[12,7]]}}}],["graph",{"_index":37,"t":{"641":{"position":[[19,5]]},"643":{"position":[[20,5]]},"651":{"position":[[10,5]]}}}],["graphics",{"_index":99,"t":{"732":{"position":[[0,8]]},"738":{"position":[[0,8]]},"740":{"position":[[0,8]]},"823":{"position":[[0,8]]},"835":{"position":[[0,8]]},"898":{"position":[[0,8]]},"911":{"position":[[0,8]]}}}],["graphicscontext",{"_index":104,"t":{"736":{"position":[[4,15]]}}}],["groups",{"_index":6,"t":{"603":{"position":[[16,7]]},"605":{"position":[[15,7]]},"716":{"position":[[14,6]]}}}],["guides",{"_index":0,"t":{"596":{"position":[[10,6]]}}}],["handlers",{"_index":208,"t":{"878":{"position":[[21,8]]}}}],["hardware",{"_index":57,"t":{"671":{"position":[[4,8]]}}}],["height",{"_index":129,"t":{"774":{"position":[[17,6]]}}}],["hittest",{"_index":202,"t":{"872":{"position":[[6,7]]}}}],["holes",{"_index":160,"t":{"823":{"position":[[9,5]]}}}],["html",{"_index":17,"t":{"619":{"position":[[4,4]]}}}],["image",{"_index":144,"t":{"800":{"position":[[12,5]]},"802":{"position":[[12,5]]}}}],["images",{"_index":151,"t":{"812":{"position":[[7,6]]}}}],["initialisation",{"_index":222,"t":{"896":{"position":[[6,14]]}}}],["install",{"_index":201,"t":{"870":{"position":[[16,7]]}}}],["interaction",{"_index":112,"t":{"750":{"position":[[9,11]]},"835":{"position":[[9,11]]}}}],["interactionmanager",{"_index":189,"t":{"858":{"position":[[12,18]]}}}],["interactive",{"_index":115,"t":{"752":{"position":[[22,11]]},"876":{"position":[[0,11]]},"878":{"position":[[0,11]]}}}],["internals",{"_index":177,"t":{"848":{"position":[[5,9]]}}}],["internet",{"_index":179,"t":{"852":{"position":[[12,8]]}}}],["introduction",{"_index":218,"t":{"890":{"position":[[3,12]]}}}],["javascript",{"_index":14,"t":{"615":{"position":[[13,10]]}}}],["kinds",{"_index":133,"t":{"780":{"position":[[16,5]]}}}],["legacy",{"_index":173,"t":{"838":{"position":[[15,6]]}}}],["library",{"_index":70,"t":{"687":{"position":[[9,7]]},"691":{"position":[[13,7]]}}}],["life",{"_index":141,"t":{"798":{"position":[[0,4]]}}}],["loader",{"_index":191,"t":{"860":{"position":[[12,6]]}}}],["loading",{"_index":20,"t":{"623":{"position":[[0,7]]},"708":{"position":[[0,7]]},"710":{"position":[[11,7]]},"786":{"position":[[0,7]]},"802":{"position":[[0,7]]},"808":{"position":[[0,7]]}}}],["local",{"_index":48,"t":{"661":{"position":[[0,5]]}}}],["loop",{"_index":29,"t":{"633":{"position":[[18,4]]}}}],["loops",{"_index":42,"t":{"647":{"position":[[14,5]]}}}],["major",{"_index":98,"t":{"728":{"position":[[0,5]]}}}],["making",{"_index":81,"t":{"702":{"position":[[0,6]]},"817":{"position":[[0,6]]}}}],["mask",{"_index":106,"t":{"740":{"position":[[14,4]]}}}],["masking",{"_index":95,"t":{"718":{"position":[[0,7]]}}}],["masks",{"_index":229,"t":{"917":{"position":[[0,5]]}}}],["mesh",{"_index":157,"t":{"821":{"position":[[0,5]]},"848":{"position":[[0,4]]}}}],["methods",{"_index":205,"t":{"874":{"position":[[18,7]]}}}],["mipmapping",{"_index":167,"t":{"829":{"position":[[7,10]]}}}],["mobile",{"_index":67,"t":{"685":{"position":[[6,6]]}}}],["modes",{"_index":110,"t":{"746":{"position":[[6,5]]},"772":{"position":[[22,5]]}}}],["modules",{"_index":185,"t":{"856":{"position":[[17,9]]}}}],["more",{"_index":55,"t":{"669":{"position":[[4,4]]}}}],["move",{"_index":206,"t":{"876":{"position":[[12,4]]}}}],["multiple",{"_index":89,"t":{"708":{"position":[[8,8]]}}}],["new",{"_index":203,"t":{"874":{"position":[[0,3]]},"894":{"position":[[0,3]]}}}],["note",{"_index":13,"t":{"615":{"position":[[2,4]]}}}],["object",{"_index":114,"t":{"752":{"position":[[12,6]]},"782":{"position":[[9,6]]}}}],["open",{"_index":59,"t":{"673":{"position":[[4,4]]}}}],["optimization",{"_index":118,"t":{"756":{"position":[[0,12]]}}}],["order",{"_index":46,"t":{"655":{"position":[[7,5]]}}}],["output",{"_index":183,"t":{"856":{"position":[[3,6]]}}}],["overhaul",{"_index":223,"t":{"898":{"position":[[13,8]]}}}],["package",{"_index":78,"t":{"698":{"position":[[11,7]]},"894":{"position":[[4,7]]}}}],["padding",{"_index":162,"t":{"825":{"position":[[7,7]]}}}],["parameters",{"_index":156,"t":{"819":{"position":[[9,10]]}}}],["parents",{"_index":44,"t":{"653":{"position":[[0,7]]}}}],["peerdependencies",{"_index":193,"t":{"862":{"position":[[22,16]]}}}],["pivot",{"_index":130,"t":{"776":{"position":[[0,5]]}}}],["pixi/core",{"_index":195,"t":{"866":{"position":[[13,10]]}}}],["pixijs",{"_index":4,"t":{"601":{"position":[[30,6]]},"617":{"position":[[16,6]]},"623":{"position":[[8,6]]},"667":{"position":[[0,6]]},"681":{"position":[[0,6]]},"695":{"position":[[6,6]]}}}],["plane",{"_index":158,"t":{"821":{"position":[[6,6]]}}}],["plugin",{"_index":213,"t":{"884":{"position":[[4,6]]}}}],["pointer",{"_index":116,"t":{"754":{"position":[[4,7]]}}}],["polyfills",{"_index":182,"t":{"854":{"position":[[11,9]]}}}],["practices",{"_index":10,"t":{"609":{"position":[[5,9]]}}}],["prepare",{"_index":197,"t":{"868":{"position":[[12,7]]}}}],["primitives",{"_index":103,"t":{"734":{"position":[[9,10]]}}}],["promise",{"_index":83,"t":{"702":{"position":[[24,7]]}}}],["promises",{"_index":86,"t":{"704":{"position":[[21,8]]}}}],["property",{"_index":207,"t":{"878":{"position":[[12,8]]},"880":{"position":[[0,8]]}}}],["publishing",{"_index":171,"t":{"837":{"position":[[3,10]]}}}],["putting",{"_index":30,"t":{"635":{"position":[[0,7]]}}}],["rates",{"_index":40,"t":{"645":{"position":[[6,5]]}}}],["remove",{"_index":181,"t":{"854":{"position":[[4,6]]}}}],["removed",{"_index":209,"t":{"878":{"position":[[34,7]]},"880":{"position":[[29,7]]}}}],["render",{"_index":5,"t":{"603":{"position":[[9,6]]},"605":{"position":[[8,6]]},"647":{"position":[[7,6]]},"655":{"position":[[0,6]]}}}],["renderer",{"_index":66,"t":{"683":{"position":[[9,8]]},"819":{"position":[[0,8]]}}}],["rendergroups",{"_index":3,"t":{"601":{"position":[[14,12]]},"657":{"position":[[0,12]]}}}],["rendering",{"_index":38,"t":{"643":{"position":[[0,9]]}}}],["rendertexture",{"_index":168,"t":{"829":{"position":[[22,13]]}}}],["replaces",{"_index":188,"t":{"858":{"position":[[3,8]]},"860":{"position":[[3,8]]}}}],["resources",{"_index":1,"t":{"598":{"position":[[6,9]]},"831":{"position":[[12,9]]},"904":{"position":[[3,9]]}}}],["right",{"_index":76,"t":{"695":{"position":[[13,5]]},"794":{"position":[[14,5]]}}}],["rope",{"_index":159,"t":{"821":{"position":[[13,4]]}}}],["running",{"_index":32,"t":{"639":{"position":[[0,7]]}}}],["scale",{"_index":127,"t":{"774":{"position":[[0,5]]}}}],["scene",{"_index":36,"t":{"641":{"position":[[13,5]]},"643":{"position":[[14,5]]},"651":{"position":[[4,5]]}}}],["screen",{"_index":52,"t":{"663":{"position":[[10,6]]}}}],["selecting",{"_index":139,"t":{"794":{"position":[[0,9]]}}}],["self",{"_index":200,"t":{"870":{"position":[[11,4]]}}}],["serving",{"_index":19,"t":{"621":{"position":[[0,7]]},"800":{"position":[[0,7]]}}}],["shader",{"_index":165,"t":{"827":{"position":[[22,6]]}}}],["solved",{"_index":85,"t":{"704":{"position":[[14,6]]}}}],["source",{"_index":60,"t":{"673":{"position":[[9,6]]}}}],["sprite",{"_index":25,"t":{"629":{"position":[[11,6]]},"631":{"position":[[11,6]]}}}],["sprites",{"_index":56,"t":{"669":{"position":[[19,7]]},"768":{"position":[[9,7]]},"770":{"position":[[6,7]]},"909":{"position":[[0,7]]}}}],["spritesheet",{"_index":120,"t":{"760":{"position":[[13,11]]}}}],["spritesheets",{"_index":123,"t":{"764":{"position":[[9,12]]}}}],["stage",{"_index":26,"t":{"631":{"position":[[25,5]]}}}],["started",{"_index":80,"t":{"700":{"position":[[8,7]]}}}],["store",{"_index":72,"t":{"689":{"position":[[11,5]]}}}],["structure",{"_index":221,"t":{"894":{"position":[[12,9]]}}}],["styles",{"_index":135,"t":{"784":{"position":[[5,6]]}}}],["suggestions",{"_index":211,"t":{"882":{"position":[[3,11]]}}}],["supported",{"_index":214,"t":{"884":{"position":[[11,9]]}}}],["systems",{"_index":198,"t":{"868":{"position":[[20,7]]}}}],["table",{"_index":215,"t":{"888":{"position":[[0,5]]}}}],["text",{"_index":134,"t":{"780":{"position":[[25,4]]},"782":{"position":[[4,4]]},"784":{"position":[[0,4]]},"915":{"position":[[0,4]]}}}],["texture",{"_index":143,"t":{"798":{"position":[[16,7]]},"913":{"position":[[0,7]]}}}],["textures",{"_index":146,"t":{"806":{"position":[[0,8]]},"808":{"position":[[8,8]]},"810":{"position":[[10,8]]}}}],["texturesources",{"_index":145,"t":{"804":{"position":[[0,14]]}}}],["three",{"_index":132,"t":{"780":{"position":[[10,5]]}}}],["ticker",{"_index":33,"t":{"639":{"position":[[8,6]]}}}],["tint",{"_index":125,"t":{"772":{"position":[[7,4]]}}}],["together",{"_index":31,"t":{"635":{"position":[[15,8]]}}}],["tree",{"_index":43,"t":{"651":{"position":[[21,4]]}}}],["types",{"_index":102,"t":{"734":{"position":[[0,5]]},"748":{"position":[[6,5]]}}}],["typings",{"_index":176,"t":{"846":{"position":[[0,7]]}}}],["ui",{"_index":69,"t":{"687":{"position":[[6,2]]}}}],["understanding",{"_index":2,"t":{"601":{"position":[[0,13]]}}}],["unloading",{"_index":149,"t":{"810":{"position":[[0,9]]}}}],["update",{"_index":28,"t":{"633":{"position":[[11,6]]}}}],["updating",{"_index":35,"t":{"641":{"position":[[0,8]]}}}],["upgrading",{"_index":212,"t":{"882":{"position":[[19,9]]}}}],["use",{"_index":7,"t":{"605":{"position":[[4,3]]},"754":{"position":[[0,3]]},"862":{"position":[[15,3]]}}}],["used",{"_index":92,"t":{"714":{"position":[[9,4]]}}}],["users",{"_index":12,"t":{"613":{"position":[[9,5]]}}}],["using",{"_index":87,"t":{"706":{"position":[[0,5]]},"770":{"position":[[0,5]]},"786":{"position":[[12,5]]},"872":{"position":[[0,5]]}}}],["vertex",{"_index":164,"t":{"827":{"position":[[15,6]]}}}],["view",{"_index":147,"t":{"806":{"position":[[15,4]]}}}],["vs",{"_index":49,"t":{"661":{"position":[[6,2]]},"663":{"position":[[7,2]]},"774":{"position":[[6,2]]},"776":{"position":[[6,2]]}}}],["warning",{"_index":84,"t":{"704":{"position":[[0,7]]}}}],["webgl",{"_index":154,"t":{"817":{"position":[[7,5]]}}}],["webpack",{"_index":175,"t":{"842":{"position":[[0,7]]}}}],["width",{"_index":128,"t":{"774":{"position":[[9,5]]}}}],["writing",{"_index":27,"t":{"633":{"position":[[0,7]]}}}]],"pipeline":["stemmer"]}},{"documents":[{"i":595,"t":"PixiJS is an open source, web-based rendering system that provides blazing fast performance for games, data visualization, and other graphics intensive projects. These guides are designed to be a companion to the API documentation, providing a structured introduction to using the API to solve problems and build projects.","s":"Welcome","u":"/guides","h":"","p":594},{"i":597,"t":"If you're new to PixiJS, we suggest you start with the Basics and read through them in order (a good place to start is Getting Started). While PixiJS has a mature API and solid documentation, the guides go over many common issues and questions that developers new to the system encounter.","s":"About The Guides","u":"/guides","h":"#about-the-guides","p":594},{"i":599,"t":"As you explore the guides, you may find these resources valuable: PixiJS API documentation PixiJS Github repo","s":"Other Resources","u":"/guides","h":"#other-resources","p":594},{"i":602,"t":"As you delve deeper into PixiJS, especially with version 8, you'll encounter a powerful feature known as RenderGroups. Think of RenderGroups as specialized containers within your scene graph that act like mini scene graphs themselves. Here's what you need to know to effectively use Render Groups in your projects:","s":"Understanding RenderGroups in PixiJS","u":"/guides/advanced/render-groups","h":"#understanding-rendergroups-in-pixijs","p":600},{"i":604,"t":"Render Groups are essentially containers that PixiJS treats as self-contained scene graphs. When you assign parts of your scene to a Render Group, you're telling PixiJS to manage these objects together as a unit. This management includes monitoring for changes and preparing a set of render instructions specifically for the group. This is a powerful tool for optimizing your rendering process.","s":"What Are Render Groups?","u":"/guides/advanced/render-groups","h":"#what-are-render-groups","p":600},{"i":606,"t":"The main advantage of using Render Groups lies in their optimization capabilities. They allow for certain calculations, like transformations (position, scale, rotation), tint, and alpha adjustments, to be offloaded to the GPU. This means that operations like moving or adjusting the Render Group can be done with minimal CPU impact, making your application more performance-efficient. In practice, you're utilizing Render Groups even without explicit awareness. The root element you pass to the render function in PixiJS is automatically converted into a RenderGroup as this is where its render instructions will be stored. Though you also have the option to explicitly create additional RenderGroups as needed to further optimize your project. This feature is particularly beneficial for: Static Content: For content that doesn't change often, a Render Group can significantly reduce the computational load on the CPU. In this case static refers to the scene graph structure, not that actual values of the PixiJS elements inside it (eg position, scale of things). Distinct Scene Parts: You can separate your scene into logical parts, such as the game world and the HUD (Heads-Up Display). Each part can be optimized individually, leading to overall better performance.","s":"Why Use Render Groups?","u":"/guides/advanced/render-groups","h":"#why-use-render-groups","p":600},{"i":608,"t":"const myGameWorld = new Container({ isRenderGroup:true }) const myHud = new Container({ isRenderGroup:true }) scene.addChild(myGameWorld, myHud) renderer.render(scene) // this action will actually convert the scene to a render group under the hood Check out the [container example] (../../examples/basic/container).","s":"Examples","u":"/guides/advanced/render-groups","h":"#examples","p":600},{"i":610,"t":"Don't Overuse: While Render Groups are powerful, using too many can actually degrade performance. The goal is to find a balance that optimizes rendering without overwhelming the system with too many separate groups. Make sure to profile when using them. The majority of the time you won't need do use them at all! Strategic Grouping: Consider what parts of your scene change together and which parts remain static. Grouping dynamic elements separately from static elements can lead to performance gains. By understanding and utilizing Render Groups, you can take full advantage of PixiJS's rendering capabilities, making your applications smoother and more efficient. This feature represents a powerful tool in the optimization toolkit offered by PixiJS, enabling developers to create rich, interactive scenes that run smoothly across different devices.","s":"Best Practices","u":"/guides/advanced/render-groups","h":"#best-practices","p":600},{"i":612,"t":"In this section we're going to build the simplest possible PixiJS application. In doing so, we'll walk through the basics of how to build and serve the code.","s":"Getting Started","u":"/guides/basics/getting-started","h":"","p":611},{"i":614,"t":"A quick note before we start: this guide is aimed at beginning PixiJS developers who have minimal experience developing JavaScript-based applications. If you are a coding veteran, you may find that the level of detail here is not helpful. If that's the case, you may want to skim this guide, then jump into how to work with PixiJS and packers like webpack and npm.","s":"Advanced Users","u":"/guides/basics/getting-started","h":"#advanced-users","p":611},{"i":616,"t":"One final note. The JavaScript universe is currently in transition from old-school JavaScript (ES5) to the newer ES6 flavor: // ES5 var x = 5; setTimeout(function() { alert(x); }, 1000); // ES6 const x = 5; setTimeout(() => alert(x), 1000); ES6 brings a number of major advantages in terms of clearer syntax, better variable scoping, native class support, etc. By now, all major browsers support it. Given this, our examples in these guides will use ES6. This doesn't mean you can't use PixiJS with ES5 programs! Just mentally substitute \"var\" for \"let/const\", expand the shorter function-passing syntax, and everything will run just fine.","s":"A Note About JavaScript","u":"/guides/basics/getting-started","h":"#a-note-about-javascript","p":611},{"i":618,"t":"OK! With those notes out of the way, let's get started. There are only a few steps required to write a PixiJS application: Create an HTML file Serve the file with a web server Load the PixiJS library Create an Application Add the generated view to the DOM Add an image to the stage Write an update loop Let's walk through them together.","s":"Components of a PixiJS Application","u":"/guides/basics/getting-started","h":"#components-of-a-pixijs-application","p":611},{"i":620,"t":"PixiJS is a JavaScript library that runs in a web page. So the first thing we're going to need is some HTML in a file. In a real PixiJS application, you might want to embed your display within a complex existing page, or you might want your display area to fill the whole page. For this demo, we'll build an empty page to start:

Hello PixiJS

Create a new folder named pixi-test, then copy and paste this HTML into a new file in the pixi-test folder named index.html.","s":"The HTML File","u":"/guides/basics/getting-started","h":"#the-html-file","p":611},{"i":622,"t":"You will need to run a web server to develop locally with PixiJS. Web browsers prevent loading local files (such as images and audio files) on locally loaded web pages. If you just double-click your new HTML file, you'll get an error when you try to add a sprite to the PixiJS stage. Running a web server sounds complex and difficult, but it turns out there are a number of simple web servers that will serve this purpose. For this guide, we're going to be working with Mongoose, but you could just as easily use XAMPP or the http-server Node.js package to serve your files. To start serving your page with Mongoose, go to the Mongoose download page and download the free server for your operating system. Mongoose defaults to serving the files in the folder it's run in, so copy the downloaded executable into the folder you created in the prior step (pixi-test). Double-click the executable, tell your operating system that you trust the file to run, and you'll have a running web server, serving your new folder. Test that everything is working by opening your browser of choice and entering http://127.0.0.1:8080 in the location bar. (Mongoose by default serves files on port 8080.) You should see \"Hello PixiJS\" and nothing else. If you get an error at this step, it means you didn't name your file index.html or you mis-configured your web server.","s":"Serving the File","u":"/guides/basics/getting-started","h":"#serving-the-file","p":611},{"i":624,"t":"OK, so we have a web page, and we're serving it. But it's empty. The next step is to actually load the PixiJS library. If we were building a real application, we'd want to download a target version of PixiJS from the Pixi Github repo so that our version wouldn't change on us. But for this sample application, we'll just use the CDN version of PixiJS. Add this line to the section of your index.html file: This will include a non-minified version of the latest version of PixiJS when your page loads, ready to be used. We use the non-minified version because we're in development. In production, you'd want to use pixi.min.js instead, which is compressed for faster download and excludes assertions and deprecation warnings that can help when building your project, but take longer to download and run.","s":"Loading PixiJS","u":"/guides/basics/getting-started","h":"#loading-pixijs","p":611},{"i":626,"t":"Loading the library doesn't do much good if we don't use it, so the next step is to start up PixiJS. Start by replacing the line

Hello PixiJS

with a script tag like so: What we're doing here is adding a JavaScript code block, and in that block creating a new PIXI.Application instance. Application is a helper class that simplifies working with PixiJS. It creates the renderer, creates the stage, and starts a ticker for updating. In production, you'll almost certainly want to do these steps yourself for added customization and control - we'll cover doing so in a later guide. For now, the Application class is a perfect way to start playing with PixiJS without worrying about the details. The Application class also has a method init that will initialize the application with the given options. This method is asynchronous, so we use the await keyword to wait for it to complete. This is because PixiJS uses WebGPU or WebGL under the hood, and the former API asynchronous.","s":"Creating an Application","u":"/guides/basics/getting-started","h":"#creating-an-application","p":611},{"i":628,"t":"When the PIXI.Application class creates the renderer, it builds a Canvas element that it will render to. In order to see what we draw with PixiJS, we need to add this Canvas element to the web page's DOM. Append the following line to your page's script block: document.body.appendChild(app.canvas); This takes the canvas created by the application (the Canvas element) and adds it to the body of your page.","s":"Adding the Canvas to the DOM","u":"/guides/basics/getting-started","h":"#adding-the-canvas-to-the-dom","p":611},{"i":630,"t":"So far all we've been doing is prep work. We haven't actually told PixiJS to draw anything. Let's fix that by adding an image to be displayed. There are a number of ways to draw images in PixiJS, but the simplest is by using a Sprite. We'll get into the details of how the scene graph works in a later guide, but for now all you need to know is that PixiJS renders a hierarchy of Containers. A Sprite is a type of Container that wraps a loaded image resource to allow drawing it, scaling it, rotating it, and so forth. Before PixiJS can render an image, it needs to be loaded. Just like in any web page, image loading happens asynchronously. We'll talk a lot more about resource loading in later guides. For now, we can use a helper method on the PIXI.Sprite class to handle the image loading for us: // Magically load the PNG asynchronously let sprite = PIXI.Sprite.from('sample.png'); Download the sample PNG here, and save it into your pixi-test directory next to your index.html.","s":"Creating a Sprite","u":"/guides/basics/getting-started","h":"#creating-a-sprite","p":611},{"i":632,"t":"Finally, we need to add our new sprite to the stage. The stage is simply a Container that is the root of the scene graph. Every child of the stage container will be rendered every frame. By adding our sprite to the stage, we tell PixiJS's renderer we want to draw it. app.stage.addChild(sprite);","s":"Adding the Sprite to the Stage","u":"/guides/basics/getting-started","h":"#adding-the-sprite-to-the-stage","p":611},{"i":634,"t":"While you can use PixiJS for static content, for most projects you'll want to add animation. Our sample app is actually cranking away, rendering the same sprite in the same place multiple times a second. All we have to do to make the image move is to update its attributes once per frame. To do this, we want to hook into the application's ticker. A ticker is a PixiJS object that runs one or more callbacks each frame. Doing so is surprisingly easy. Add the following to the end of your script block: // Add a variable to count up the seconds our demo has been running let elapsed = 0.0; // Tell our application's ticker to run a new callback every frame, passing // in the amount of time that has passed since the last tick app.ticker.add((ticker) => { // Add the time to our total elapsed time elapsed += ticker.deltaTime; // Update the sprite's X position based on the cosine of our elapsed time. We divide // by 50 to slow the animation down a bit... sprite.x = 100.0 + Math.cos(elapsed/50.0) * 100.0; }); All you need to do is to call app.ticker.add(...), pass it a callback function, and then update your scene in that function. It will get called every frame, and you can move, rotate etc. whatever you'd like to drive your project's animations.","s":"Writing an Update Loop","u":"/guides/basics/getting-started","h":"#writing-an-update-loop","p":611},{"i":636,"t":"That's it! The simplest PixiJS project! Here's the whole thing in one place. Check your file and make sure it matches if you're getting errors. Once you have things working, the next thing to do is to read through the rest of the Basics guides to dig into how all this works in much greater depth.","s":"Putting It All Together","u":"/guides/basics/getting-started","h":"#putting-it-all-together","p":611},{"i":638,"t":"Now that you understand the major parts of the system, let's look at how these parts work together to get your project onto the screen. Unlike a web page, PixiJS is constantly updating and re-drawing itself, over and over. You update your objects, then PixiJS renders them to the screen, then the process repeats. We call this cycle the render loop. The majority of any PixiJS project is contained in this update + render cycle. You code the updates, PixiJS handles the rendering. Let's walk through what happens each frame of the render loop. There are three main steps.","s":"Render Loop","u":"/guides/basics/render-loop","h":"","p":637},{"i":640,"t":"The first step is to calculate how much time has elapsed since the last frame, and then call the Application object's ticker callbacks with that time delta. This allows your project's code to animate and update the sprites, etc. on the stage in preparation for rendering.","s":"Running Ticker Callbacks","u":"/guides/basics/render-loop","h":"#running-ticker-callbacks","p":637},{"i":642,"t":"We'll talk a lot more about what a scene graph is and what it's made of in the next guide, but for now, all you need to know is that it contains the things you're drawing - sprites, text, etc. - and that these objects are in a tree-like hierarchy. After you've updated your game objects by moving, rotating and so forth, PixiJS needs to calculate the new positions and state of every object in the scene, before it can start drawing.","s":"Updating the Scene Graph","u":"/guides/basics/render-loop","h":"#updating-the-scene-graph","p":637},{"i":644,"t":"Now that our game's state has been updated, it's time to draw it to the screen. The rendering system starts with the root of the scene graph (app.stage), and starts rendering each object and its children, until all objects have been drawn. No culling or other cleverness is built into this process. If you have lots of objects outside of the visible portion of the stage, you'll want to investigate disabling them as an optimization.","s":"Rendering the Scene Graph","u":"/guides/basics/render-loop","h":"#rendering-the-scene-graph","p":637},{"i":646,"t":"A note about frame rates. The render loop can't be run infinitely fast - drawing things to the screen takes time. In addition, it's not generally useful to have a frame updated more than once per screen update (commonly 60fps, but newer monitors can support 144fps and up). Finally, PixiJS runs in the context of a web browser like Chrome or Firefox. The browser itself has to balance the needs of various internal operations with servicing any open tabs. All this to say, determining when to draw a frame is a complex issue. In cases where you want to adjust that behavior, you can set the minFPS and maxFPS attributes on a Ticker to give PixiJS hints as to the range of tick speeds you want to support. Just be aware that due to the complex environment, your project cannot guarantee a given FPS. Use the passed ticker.deltaTime value in your ticker callbacks to scale any animations to ensure smooth playback.","s":"Frame Rates","u":"/guides/basics/render-loop","h":"#frame-rates","p":637},{"i":648,"t":"What we've just covered is the default render loop provided out of the box by the Application helper class. There are many other ways of creating a render loop that may be helpful for advanced users looking to solve a given problem. While you're prototyping and learning PixiJS, sticking with the Application's provided system is the recommended approach.","s":"Custom Render Loops","u":"/guides/basics/render-loop","h":"#custom-render-loops","p":637},{"i":650,"t":"Every frame, PixiJS is updating and then rendering the scene graph. Let's talk about what's in the scene graph, and how it impacts how you develop your project. If you've built games before, this should all sound very familiar, but if you're coming from HTML and the DOM, it's worth understanding before we get into specific types of objects you can render.","s":"Scene Graph","u":"/guides/basics/scene-graph","h":"","p":649},{"i":652,"t":"The scene graph's root node is a container maintained by the application, and referenced with app.stage. When you add a sprite or other renderable object as a child to the stage, it's added to the scene graph and will be rendered and interactable. PixiJS Containers can also have children, and so as you build more complex scenes, you will end up with a tree of parent-child relationships, rooted at the app's stage. (A helpful tool for exploring your project is the Pixi.js devtools plugin for Chrome, which allows you to view and manipulate the scene graph in real time as it's running!)","s":"The Scene Graph Is a Tree","u":"/guides/basics/scene-graph","h":"#the-scene-graph-is-a-tree","p":649},{"i":654,"t":"When a parent moves, its children move as well. When a parent is rotated, its children are rotated too. Hide a parent, and the children will also be hidden. If you have a game object that's made up of multiple sprites, you can collect them under a container to treat them as a single object in the world, moving and rotating as one. Each frame, PixiJS runs through the scene graph from the root down through all the children to the leaves to calculate each object's final position, rotation, visibility, transparency, etc. If a parent's alpha is set to 0.5 (making it 50% transparent), all its children will start at 50% transparent as well. If a child is then set to 0.5 alpha, it won't be 50% transparent, it will be 0.5 x 0.5 = 0.25 alpha, or 75% transparent. Similarly, an object's position is relative to its parent, so if a parent is set to an x position of 50 pixels, and the child is set to an x position of 100 pixels, it will be drawn at a screen offset of 150 pixels, or 50 + 100. Here's an example. We'll create three sprites, each a child of the last, and animate their position, rotation, scale and alpha. Even though each sprite's properties are set to the same values, the parent-child chain amplifies each change: // Create the application helper and add its render target to the page const app = new Application(); await app.init({ width: 640, height: 360 }) document.body.appendChild(app.canvas); // Add a container to center our sprite stack on the page const container = new Container({ x:app.screen.width / 2, y:app.screen.height / 2; }); app.stage.addChild(container); // load the texture await Assets.load('assets/images/sample.png'); // Create the 3 sprites, each a child of the last const sprites = []; let parent = container; for (let i = 0; i < 3; i++) { let wrapper = new Container(); let sprite = Sprite.from('assets/images/sample.png'); sprite.anchor.set(0.5); wrapper.addChild(sprite); parent.addChild(wrapper); sprites.push(wrapper); parent = wrapper; } // Set all sprite's properties to the same value, animated over time let elapsed = 0.0; app.ticker.add((delta) => { elapsed += delta / 60; const amount = Math.sin(elapsed); const scale = 1.0 + 0.25 * amount; const alpha = 0.75 + 0.25 * amount; const angle = 40 * amount; const x = 75 * amount; for (let i = 0; i < sprites.length; i++) { const sprite = sprites[i]; sprite.scale.set(scale); sprite.alpha = alpha; sprite.angle = angle; sprite.x = x; } }); The cumulative translation, rotation, scale and skew of any given node in the scene graph is stored in the object's worldTransform property. Similarly, the cumulative alpha value is stored in the worldAlpha property.","s":"Parents and Children","u":"/guides/basics/scene-graph","h":"#parents-and-children","p":649},{"i":656,"t":"So we have a tree of things to draw. Who gets drawn first? PixiJS renders the tree from the root down. At each level, the current object is rendered, then each child is rendered in order of insertion. So the second child is rendered on top of the first child, and the third over the second. Check out this example, with two parent objects A & D, and two children B & C under A: // Create the application helper and add its render target to the page const app = new Application(); await app.init({ width: 640, height: 360 }) document.body.appendChild(app.canvas); // Label showing scene graph hierarchy const label = new Text({ text:'Scene Graph:\\n\\napp.stage\\n ┗ A\\n ┗ B\\n ┗ C\\n ┗ D', style:{fill: '#ffffff'}, position: {x: 300, y: 100} }); app.stage.addChild(label); // Helper function to create a block of color with a letter const letters = []; function addLetter(letter, parent, color, pos) { const bg = new Sprite(Texture.WHITE); bg.width = 100; bg.height = 100; bg.tint = color; const text = new Text({ text:letter, style:{fill: \"#ffffff\"} }); text.anchor.set(0.5); text.position = {x: 50, y: 50}; const container = new Container(); container.position = pos; container.visible = false; container.addChild(bg, text); parent.addChild(container); letters.push(container); return container; } // Define 4 letters let a = addLetter('A', app.stage, 0xff0000, {x: 100, y: 100}); let b = addLetter('B', a, 0x00ff00, {x: 20, y: 20}); let c = addLetter('C', a, 0x0000ff, {x: 20, y: 40}); let d = addLetter('D', app.stage, 0xff8800, {x: 140, y: 100}); // Display them over time, in order let elapsed = 0.0; app.ticker.add((delta) => { elapsed += delta / 60.0; if (elapsed >= letters.length) { elapsed = 0.0; } for (let i = 0; i < letters.length; i ++) { letters[i].visible = elapsed >= i; } }); If you'd like to re-order a child object, you can use setChildIndex(). To add a child at a given point in a parent's list, use addChildAt(). Finally, you can enable automatic sorting of an object's children using the sortableChildren option combined with setting the zIndex property on each child.","s":"Render Order","u":"/guides/basics/scene-graph","h":"#render-order","p":649},{"i":658,"t":"As you delve deeper into PixiJS, you'll encounter a powerful feature known as Render Groups. Think of Render Groups as specialized containers within your scene graph that act like mini scene graphs themselves. Here's what you need to know to effectively use Render Groups in your projects. For more info check out the RenderGroups overview","s":"RenderGroups","u":"/guides/basics/scene-graph","h":"#rendergroups","p":649},{"i":660,"t":"If you're building a project where a large proportion of your scene objects are off-screen (say, a side-scrolling game), you will want to cull those objects. Culling is the process of evaluating if an object (or its children!) is on the screen, and if not, turning off rendering for it. If you don't cull off-screen objects, the renderer will still draw them, even though none of their pixels end up on the screen. PixiJS doesn't provide built-in support for viewport culling, but you can find 3rd party plugins that might fit your needs. Alternately, if you'd like to build your own culling system, simply run your objects during each tick and set renderable to false on any object that doesn't need to be drawn.","s":"Culling","u":"/guides/basics/scene-graph","h":"#culling","p":649},{"i":662,"t":"If you add a sprite to the stage, by default it will show up in the top left corner of the screen. That's the origin of the global coordinate space used by PixiJS. If all your objects were children of the stage, that's the only coordinates you'd need to worry about. But once you introduce containers and children, things get more complicated. A child object at [50, 100] is 50 pixels right and 100 pixels down from its parent. We call these two coordinate systems \"global\" and \"local\" coordinates. When you use position.set(x, y) on an object, you're always working in local coordinates, relative to the object's parent. The problem is, there are many times when you want to know the global position of an object. For example, if you want to cull offscreen objects to save render time, you need to know if a given child is outside the view rectangle. To convert from local to global coordinates, you use the toGlobal() function. Here's a sample usage: // Get the global position of an object, relative to the top-left of the screen let globalPos = obj.toGlobal(new Point(0,0)); This snippet will set globalPos to be the global coordinates for the child object, relative to [0, 0] in the global coordinate system.","s":"Local vs Global Coordinates","u":"/guides/basics/scene-graph","h":"#local-vs-global-coordinates","p":649},{"i":664,"t":"When your project is working with the host operating system or browser, there is a third coordinate system that comes into play - \"screen\" coordinates (aka \"viewport\" coordinates). Screen coordinates represent position relative to the top-left of the canvas element that PixiJS is rendering into. Things like the DOM and native mouse click events work in screen space. Now, in many cases, screen space is equivalent to world space. This is the case if the size of the canvas is the same as the size of the render view specified when you create you Application. By default, this will be the case - you'll create for example an 800x600 application window and add it to your HTML page, and it will stay that size. 100 pixels in world coordinates will equal 100 pixels in screen space. BUT! It is common to stretch the rendered view to have it fill the screen, or to render at a lower resolution and up-scale for speed. In that case, the screen size of the canvas element will change (e.g. via CSS), but the underlying render view will not, resulting in a mis-match between world coordinates and screen coordinates.","s":"Global vs Screen Coordinates","u":"/guides/basics/scene-graph","h":"#global-vs-screen-coordinates","p":649},{"i":666,"t":"So what exactly is PixiJS? At its heart, PixiJS is a rendering system that uses WebGL (or optionally Canvas) to display images and other 2D visual content. It provides a full scene graph (a hierarchy of objects to render), and provides interaction support to enable handling click and touch events. It is a natural replacement for Flash in the modern HTML5 world, but provides better performance and pixel-level effects that go beyond what Flash could achieve. It is perfect for online games, educational content, interactive ads, data visualization... any web-based application where complex graphics are important. And coupled with technology such as Cordova and Electron, PixiJS apps can be distributed beyond the browser as mobile and desktop applications. Here's what else you get with PixiJS:","s":"What PixiJS Is","u":"/guides/basics/what-pixijs-is","h":"","p":665},{"i":668,"t":"One of the major features that distinguishes PixiJS from other web-based rendering solutions is speed. From the ground up, the render pipeline has been built to get the most performance possible out of your users' browsers. Automatic sprite and geometry batching, careful use of GPU resources, a tight scene graph - no matter your application, speed is valuable, and PixiJS has it to spare.","s":"PixiJS Is ... Fast","u":"/guides/basics/what-pixijs-is","h":"#pixijs-is--fast","p":665},{"i":670,"t":"Drawing images on a page can be handled with HTML5 and the DOM, so why use PixiJS? Beyond performance, the answer is that PixiJS goes well beyond simple images. Draw trails and tracks with MeshRope. Draw polygons, lines, circles and other primitives with Graphics. Text provides full text rendering support that's just as performant as sprites. And even when drawing simple images, PixiJS natively supports spritesheets for efficient loading and ease of development.","s":"... More Than Just Sprites","u":"/guides/basics/what-pixijs-is","h":"#-more-than-just-sprites","p":665},{"i":672,"t":"JavaScript has two APIs for handling hardware acceleration for graphical rendering: WebGL and the more modern WebGPU. Both essentially offer a JavaScript API for accessing users' GPUs for fast rendering and advanced effects. PixiJS leverages them to efficiently display thousands of moving sprites, even on mobile devices. However, using WebGL and WebGPU offers more than just speed. By using the Filter class, you can write shader programs (or use pre-built ones!) to achieve displacement maps, blurring, and other advanced visual effects that cannot be accomplished with just the DOM or Canvas APIs.","s":"... Hardware accelerated","u":"/guides/basics/what-pixijs-is","h":"#-hardware-accelerated","p":665},{"i":674,"t":"Want to understand how the engine works? Trying to track down a bug? Been burned by closed-source projects going dark? With PixiJS, you get a mature project with full source code access. We're MIT licensed for compatibility, and hosted on GitHub for issue tracking and ease of access.","s":"... Open Source","u":"/guides/basics/what-pixijs-is","h":"#-open-source","p":665},{"i":676,"t":"Open source helps. So does being based on JavaScript. But the real reason PixiJS is easy to extend is the clean internal API that underlies every part of the system. After years of development and 5 major releases, PixiJS is ready to make your project a success, no matter what your needs.","s":"... Extensible","u":"/guides/basics/what-pixijs-is","h":"#-extensible","p":665},{"i":678,"t":"Flash required the player. Unity requires an installer or app store. PixiJS requires... a browser. Deploying PixiJS on the web is exactly like deploying a web site. That's all it is - JavaScript + images + audio, like you've done a hundred times. Your users simply visit a URL, and your game or other content is ready to run. But it doesn't stop at the web. If you want to deploy a mobile app, wrap your PixiJS code in Cordova. Want to deploy a standalone desktop program? Build an Electron wrapper, and you're ready to rock.","s":"... Easy to Deploy","u":"/guides/basics/what-pixijs-is","h":"#-easy-to-deploy","p":665},{"i":680,"t":"While PixiJS can do many things, there are things it can't do, or that require additional tools to accomplish. Newcomers to PixiJS often struggle to identify which tasks PixiJS can solve, and which require outside solutions. If you're about to start a project, it can be helpful to know if PixiJS is a good fit for your needs. The following list is obviously incomplete - PixiJS is also not, for example, a duck - but it includes many common tasks or features that you might expect us to support.","s":"What PixiJS Is Not","u":"/guides/basics/what-pixijs-is-not","h":"","p":679},{"i":682,"t":"PixiJS is a rendering engine, and it supports additional features such as interaction management that are commonly needed when using a render engine. But it is not a framework like Unity or Phaser. Frameworks are designed to do all the things you'd need to do when building a game - user settings management, music playback, object scripting, art pipeline management... the list goes on. PixiJS is designed to do one thing really well - render graphical content. This lets us focus on keeping up with new technology, and makes downloading PixiJS blazingly fast.","s":"PixiJS Is Not ... A Framework","u":"/guides/basics/what-pixijs-is-not","h":"#pixijs-is-not--a-framework","p":679},{"i":684,"t":"PixiJS is built for 2D. Platformers, adventure games, interactive ads, custom data visualization... all good. But if you want to render 3D models, you might want to check out babylon.js or three.js.","s":"... A 3D Renderer","u":"/guides/basics/what-pixijs-is-not","h":"#-a-3d-renderer","p":679},{"i":686,"t":"If you're looking to build mobile games, you can do it with PixiJS, but you'll need to use a deployment system like Apache Cordova if you want access to native bindings. We don't provide access to the camera, location services, notifications, etc.","s":"... A Mobile App","u":"/guides/basics/what-pixijs-is-not","h":"#-a-mobile-app","p":679},{"i":688,"t":"Building a truly generic UI system is a huge challenge, as anyone who has worked with Unity's UI tools can attest. We've chosen to avoid the complexity to stay true to our core focus on speed. While you can certainly build your own UI using PixiJS's scene graph and interaction manager, we don't ship with a UI library out of the box.","s":"... A UI Library","u":"/guides/basics/what-pixijs-is-not","h":"#-a-ui-library","p":679},{"i":690,"t":"There are many techniques and technologies that you can use to store settings, scores, and other data. Cookies, Web Storage, server-based storage... there are many solutions, each with advantages and disadvantages. You can use any of them with PixiJS, but we don't provide tools to do so.","s":"... A Data Store","u":"/guides/basics/what-pixijs-is-not","h":"#-a-data-store","p":679},{"i":692,"t":"At least, not out of the box. Again, web audio technology is a constantly evolving challenge, with constantly changing rules and requirements across many browsers. There are a number of dedicated web audio libraries (such as Howler.js that can be used with PixiJS to play sound effects and music. Alternatively, the PixiJS Sound plugin is designed to work well with PixiJS.","s":"... An Audio Library","u":"/guides/basics/what-pixijs-is-not","h":"#-an-audio-library","p":679},{"i":694,"t":"There are a number of tools that are useful for building 2D art and games that you might expect to be a part of PixiJS, but we're a rendering engine, not a development environment. Packing sprite sheets, processing images, building mipmaps or Retina-ready sprites - there are great standalone tools for this type of tooling. Where appropriate throughout the guides, we'll point you to tools that may be useful.","s":"... A Development Environment","u":"/guides/basics/what-pixijs-is-not","h":"#-a-development-environment","p":679},{"i":696,"t":"Only you know! If you're looking for a tightly focused, fast and efficient rendering engine for your next web-based project, PixiJS is likely a great fit. If you need a full game development framework, with native bindings and a rich UI library, you may want to explore other options. Or you may not. It can be faster and easier to build just the subset of a full framework that your project needs than it can be to digest a monolithic API with bells and whistles you don't need. There are hundreds of complex, rich games and visual projects that use PixiJS for rendering, with plugins or custom code to add the UI and sound effects. There are benefits to both approaches. Regardless, we hope you have a better feel for what PixiJS can (and cannot!) offer your project.","s":"So Is PixiJS Right For Me?","u":"/guides/basics/what-pixijs-is-not","h":"#so-is-pixijs-right-for-me","p":679},{"i":699,"t":"The Assets package is a modern replacement for the old Loader class. It is a promise-based resource management solution that will download, cache and parse your assets into something you can use. The downloads can be simultaneous and in the background, meaning faster startup times for your app, the cache ensures that you never download the same asset twice and the extensible parser system allows you to easily extend and customize the process to your needs.","s":"The Assets package","u":"/guides/components/assets","h":"#the-assets-package","p":697},{"i":701,"t":"Assets relies heavily on JavaScript Promises that all modern browsers support, however, if your target browser doesn't support promises you should look into polyfilling them.","s":"Getting started","u":"/guides/components/assets","h":"#getting-started","p":697},{"i":703,"t":"To quickly use the Assets instance, you just need to call Assets.load and pass in an asset. This will return a promise that when resolved will yield the value you seek. In this example, we will load a texture and then turn it into a sprite. import { Application, Assets, Sprite } from 'pixi.js'; // Create a new application const app = new Application(); // Initialize the application await app.init({ background: '#1099bb', resizeTo: window }); // Append the application canvas to the document body document.body.appendChild(app.canvas); // Start loading right away and create a promise const texturePromise = Assets.load('https://pixijs.com/assets/bunny.png'); // When the promise resolves, we have the texture! texturePromise.then((resolvedTexture) => { // create a new Sprite from the resolved loaded Texture const bunny = Sprite.from(resolvedTexture); // center the sprite's anchor point bunny.anchor.set(0.5); // move the sprite to the center of the screen bunny.x = app.screen.width / 2; bunny.y = app.screen.height / 2; app.stage.addChild(bunny); }); One very important thing to keep in mind while using Assets is that all requests are cached and if the URL is the same, the promise returned will also be the same. To show it in code: promise1 = Assets.load('bunny.png') promise2 = Assets.load('bunny.png') // promise1 === promise2 Out of the box, the following assets types can be loaded without the need for external plugins: Textures (avif, webp, png, jpg, gif) Sprite sheets (json) Bitmap fonts (xml, fnt, txt) Web fonts (ttf, woff, woff2) Json files (json) Text files (txt) More types can be added fairly easily by creating additional loader parsers.","s":"Making our first Assets Promise","u":"/guides/components/assets","h":"#making-our-first-assets-promise","p":697},{"i":705,"t":"When an asset is downloaded, it is cached as a promise inside the Assets instance and if you try to download it again you will get a reference to the already resolved promise. However promise handlers .then(...)/.catch(...)/.finally(...) are always asynchronous, this means that even if a promise was already resolved the code below the .then(...)/.catch(...)/.finally(...) will execute before the code inside them. See this example: console.log(1); alreadyResolvedPromise.then(() => console.log(2)); console.log(3); // Console output: // 1 // 3 // 2 To learn more about why this happens you will need to learn about Microtasks, however, using async functions should mitigate this problem.","s":"Warning about solved promises","u":"/guides/components/assets","h":"#warning-about-solved-promises","p":697},{"i":707,"t":"There is a way to work with promises that is more intuitive and easier to read: async/await. To use it we first need to create a function/method and mark it as async. async function test() { // ... } This function now wraps the return value in a promise and allows us to use the await keyword before a promise to halt the execution of the code until it is resolved and gives us the value. See this example: // Create a new application const app = new Application(); // Initialize the application await app.init({ background: '#1099bb', resizeTo: window }); // Append the application canvas to the document body document.body.appendChild(app.canvas); const texture = await Assets.load('https://pixijs.com/assets/bunny.png'); // Create a new Sprite from the awaited loaded Texture const bunny = Sprite.from(texture); // Center the sprite's anchor point bunny.anchor.set(0.5); // Move the sprite to the center of the screen bunny.x = app.screen.width / 2; bunny.y = app.screen.height / 2; app.stage.addChild(bunny); The texture variable now is not a promise but the resolved texture that resulted after waiting for this promise to resolve. const texture = await Assets.load('examples/assets/bunny.png'); This allows us to write more readable code without falling into callback hell and to better think when our program halts and yields.","s":"Using Async/Await","u":"/guides/components/assets","h":"#using-asyncawait","p":697},{"i":709,"t":"We can add assets to the cache and then load them all simultaneously by using Assets.add(...) and then calling Assets.load(...) with all the keys you want to have loaded. See the following example: // Append the application canvas to the document body document.body.appendChild(app.canvas); // Add the assets to load Assets.add({ alias: 'flowerTop', src: 'https://pixijs.com/assets/flowerTop.png' }); Assets.add({ alias: 'eggHead', src: 'https://pixijs.com/assets/eggHead.png' }); // Load the assets and get a resolved promise once both are loaded const texturesPromise = Assets.load(['flowerTop', 'eggHead']); // => Promise<{flowerTop: Texture, eggHead: Texture}> // When the promise resolves, we have the texture! texturesPromise.then((textures) => { // Create a new Sprite from the resolved loaded Textures const flower = Sprite.from(textures.flowerTop); flower.anchor.set(0.5); flower.x = app.screen.width * 0.25; flower.y = app.screen.height / 2; app.stage.addChild(flower); const egg = Sprite.from(textures.eggHead); egg.anchor.set(0.5); egg.x = app.screen.width * 0.75; egg.y = app.screen.height / 2; app.stage.addChild(egg); }); However, if you want to take full advantage of @pixi/Assets you should use bundles. Bundles are just a way to group assets together and can be added manually by calling Assets.addBundle(...)/Assets.loadBundle(...). Assets.addBundle('animals', { bunny: 'bunny.png', chicken: 'chicken.png', thumper: 'thumper.png', }); const assets = await Assets.loadBundle('animals'); However, the best way to handle bundles is to use a manifest and call Assets.init({manifest}) with said manifest (or even better, an URL pointing to it). Splitting our assets into bundles that correspond to screens or stages of our app will come in handy for loading in the background while the user is using the app instead of locking them in a single monolithic loading screen. { \"bundles\":[ { \"name\":\"load-screen\", \"assets\":[ { \"alias\":\"background\", \"src\":\"sunset.png\" }, { \"alias\":\"bar\", \"src\":\"load-bar.{png,webp}\" } ] }, { \"name\":\"game-screen\", \"assets\":[ { \"alias\":\"character\", \"src\":\"robot.png\" }, { \"alias\":\"enemy\", \"src\":\"bad-guy.png\" } ] } ] } Assets.init({manifest: \"path/manifest.json\"}); Beware that you can only call init once. Remember there is no downside in repeating URLs since they will all be cached, so if you need the same asset in two bundles you can duplicate the request without any extra cost!","s":"Loading multiple assets","u":"/guides/components/assets","h":"#loading-multiple-assets","p":697},{"i":711,"t":"The old approach to loading was to use Loader to load all your assets at the beginning of your app, but users are less patient now and want content to be instantly available so the practices are moving towards loading the bare minimum needed to show the user some content and, while they are interacting with that, we keep loading the following content in the background. Luckily, Assets has us covered with a system that allows us to load everything in the background and in case we need some assets right now, bump them to the top of the queue so we can minimize loading times. To achieve this, we have the methods Assets.backgroundLoad(...) and Assets.backgroundLoadBundle(...) that will passively begin to load these assets in the background. So when you finally come to loading them you will get a promise that resolves to the loaded assets immediately. When you finally need the assets to show, you call the usual Assets.load(...) or Assets.loadBundle(...) and you will get the corresponding promise. The best way to do this is using bundles, see the following example: import { Application, Assets, Sprite } from 'pixi.js'; // Create a new application const app = new Application(); async function init() { // Initialize the application await app.init({ background: '#1099bb', resizeTo: window }); // Append the application canvas to the document body document.body.appendChild(app.canvas); // Manifest example const manifestExample = { bundles: [ { name: 'load-screen', assets: [ { alias: 'flowerTop', src: 'https://pixijs.com/assets/flowerTop.png', }, ], }, { name: 'game-screen', assets: [ { alias: 'eggHead', src: 'https://pixijs.com/assets/eggHead.png', }, ], }, ], }; await Assets.init({ manifest: manifestExample }); // Bundles can be loaded in the background too! Assets.backgroundLoadBundle(['load-screen', 'game-screen']); } init(); We create one bundle for each screen our game will have and set them all to start downloading at the beginning of our app. If the user progresses slowly enough in our app then they should never get to see a loading screen after the first one!","s":"Background loading","u":"/guides/components/assets","h":"#background-loading","p":697},{"i":713,"t":"The Container class provides a simple display object that does what its name implies - collect a set of child objects together. But beyond grouping objects, containers have a few uses that you should be aware of.","s":"Containers","u":"/guides/components/containers","h":"","p":712},{"i":715,"t":"The most common attributes you'll use when laying out and animating content in PixiJS are provided by the Container class: Property Description position X- and Y-position are given in pixels and change the position of the object relative to its parent, also available directly as object.x / object.y rotation Rotation is specified in radians, and turns an object clockwise (0.0 - 2 * Math.PI) angle Angle is an alias for rotation that is specified in degrees instead of radians (0.0 - 360.0) pivot Point the object rotates around, in pixels - also sets origin for child objects alpha Opacity from 0.0 (fully transparent) to 1.0 (fully opaque), inherited by children scale Scale is specified as a percent with 1.0 being 100% or actual-size, and can be set independently for the x and y axis skew Skew transforms the object in x and y similar to the CSS skew() function, and is specified in radians visible Whether the object is visible or not, as a boolean value - prevents updating and rendering object and children renderable Whether the object should be rendered - when false, object will still be updated, but won't be rendered, doesn't affect children","s":"Commonly Used Attributes","u":"/guides/components/containers","h":"#commonly-used-attributes","p":712},{"i":717,"t":"Almost every type of display object is also derived from Container! This means that in many cases you can create a parent-child hierarchy with the objects you want to render. However, it's a good idea not to do this. Standalone Container objects are very cheap to render, and having a proper hierarchy of Container objects, each containing one or more renderable objects, provides flexibility in rendering order. It also future-proofs your code, as when you need to add an additional object to a branch of the tree, your animation logic doesn't need to change - just drop the new object into the proper Container, and your logic moves the Container with no changes to your code. So that's the primary use for Containers - as groups of renderable objects in a hierarchy. Check out the container example code.","s":"Containers as Groups","u":"/guides/components/containers","h":"#containers-as-groups","p":712},{"i":719,"t":"Another common use for Container objects is as hosts for masked content. \"Masking\" is a technique where parts of your scene graph are only visible within a given area. Think of a pop-up window. It has a frame made of one or more Sprites, then has a scrollable content area that hides content outside the frame. A Container plus a mask makes that scrollable area easy to implement. Add the Container, set its mask property to a Graphics object with a rect, and add the text, image, etc. content you want to display as children of that masked Container. Any content that extends beyond the rectangular mask will simply not be drawn. Move the contents of the Container to scroll as desired. // Create the application helper and add its render target to the page let app = new Application({ width: 640, height: 360 }); document.body.appendChild(app.view); // Create window frame let frame = new Graphics({ x:320 - 104, y:180 - 104 }) .rect(0, 0, 208, 208) .fill(0x666666) .stroke({ color: 0xffffff, width: 4, alignment: 0 }) app.stage.addChild(frame); // Create a graphics object to define our mask let mask = new Graphics() // Add the rectangular area to show .rect(0,0,200,200) .fill(0xffffff); // Add container that will hold our masked content let maskContainer = new Container(); // Set the mask to use our graphics object from above maskContainer.mask = mask; // Add the mask as a child, so that the mask is positioned relative to its parent maskContainer.addChild(mask); // Offset by the window's frame width maskContainer.position.set(4,4); // And add the container to the window! frame.addChild(maskContainer); // Create contents for the masked container let text = new Text({ text:'This text will scroll up and be masked, so you can see how masking works. Lorem ipsum and all that.\\n\\n' + 'You can put anything in the container and it will be masked!', style{ fontSize: 24, fill: 0x1010ff, wordWrap: true, wordWrapWidth: 180 }, x:10 }); maskContainer.addChild(text); // Add a ticker callback to scroll the text up and down let elapsed = 0.0; app.ticker.add(({delta}) => { // Update the text's y coordinate to scroll it elapsed += delta; text.y = 10 + -100.0 + Math.cos(elapsed/50.0) * 100.0; }); There are two types of masks supported by PixiJS: Use a Graphics object to create a mask with an arbitrary shape - powerful, but doesn't support anti-aliasing Sprite: Use the alpha channel from a Sprite as your mask, providing anti-aliased edging - not supported on the Canvas renderer","s":"Masking","u":"/guides/components/containers","h":"#masking","p":712},{"i":721,"t":"Another common use for Container objects is as hosts for filtered content. Filters are an advanced, WebGL/WebGPU-only feature that allows PixiJS to perform per-pixel effects like blurring and displacements. By setting a filter on a Container, the area of the screen the Container encompasses will be processed by the filter after the Container's contents have been rendered. Below are list of filters available by default in PixiJS. There is, however, a community repository with many more filters. Filter Description AlphaFilter Similar to setting alpha property, but flattens the Container instead of applying to children individually. BlurFilter Apply a blur effect ColorMatrixFilter A color matrix is a flexible way to apply more complex tints or color transforms (e.g., sepia tone). DisplacementFilter Displacement maps create visual offset pixels, for instance creating a wavy water effect. NoiseFilter Create random noise (e.g., grain effect). Under the hood, each Filter we offer out of the box is written in both glsl (for WebGL) and wgsl (for WebGPU). This means all filters should work on both renderers. Important: Filters should be use somewhat sparingly. They can slow performance and increase memory if used too often in a scene.","s":"Filtering","u":"/guides/components/containers","h":"#filtering","p":712},{"i":723,"t":"OK, now that you've gotten a feel for how easy it is to build a PixiJS application, let's get into the specifics. For the rest of the Basics section, we're going to work from the high level down to the details. We'll start with an overview of how PixiJS is put together.","s":"Architecture Overview","u":"/guides/basics/architecture-overview","h":"","p":722},{"i":725,"t":"Before we get into how the code is layed out, let's talk about where it lives. PixiJS is an open source product hosted on GitHub. Like any GitHub repo, you can browse and download the raw source files for each PixiJS class, as well as search existing issues & bugs, and even submit your own. PixiJS is written in a JavaScript variant called TypeScript, which enables type-checking in JavaScript via a pre-compile step.","s":"The Code","u":"/guides/basics/architecture-overview","h":"#the-code","p":722},{"i":727,"t":"Here's a list of the major components that make up PixiJS. Note that this list isn't exhaustive. Additionally, don't worry too much about how each component works. The goal here is to give you a feel for what's under the hood as we start exploring the engine.","s":"The Components","u":"/guides/basics/architecture-overview","h":"#the-components","p":722},{"i":729,"t":"Component Description Renderer The core of the PixiJS system is the renderer, which displays the scene graph and draws it to the screen. PixiJS will automatically determine whether to provide you the WebGPU or WebGL renderer under the hood. Container Main scene object which creates a scene graph: the tree of renderable objects to be displayed, such as sprites, graphics and text. See Scene Graph for more details. Assets The Asset system provides tools for asynchronously loading resources such as images and audio files. Ticker Tickers provide periodic callbacks based on a clock. Your game update logic will generally be run in response to a tick once per frame. You can have multiple tickers in use at one time. Application The Application is a simple helper that wraps a Loader, Ticker and Renderer into a single, convenient easy-to-use object. Great for getting started quickly, prototyping and building simple projects. Events PixiJS supports pointer-based interaction - making objects clickable, firing hover events, etc. Accessibility Woven through our display system is a rich set of tools for enabling keyboard and screen-reader accessibility.","s":"Major Components","u":"/guides/basics/architecture-overview","h":"#major-components","p":722},{"i":731,"t":"Graphics is a complex and much misunderstood tool in the PixiJS toolbox. At first glance, it looks like a tool for drawing shapes. And it is! But it can also be used to generate masks. How does that work? In this guide, we're going to de-mystify the Graphics object, starting with how to think about what it does. Check out the graphics example code.","s":"Graphics","u":"/guides/components/graphics","h":"","p":730},{"i":733,"t":"First-time users of the Graphics class often struggle with how it works. Let's look at an example snippet that creates a Graphics object and draws a rectangle: // Create a Graphics object, draw a rectangle and fill it let obj = new Graphics() .rect(0, 0, 200, 100) .fill(0xff0000); // Add it to the stage to render app.stage.addChild(obj); That code will work - you'll end up with a red rectangle on the screen. But it's pretty confusing when you start to think about it. Why am I drawing a rectangle when constructing the object? Isn't drawing something a one-time action? How does the rectangle get drawn the second frame? And it gets even weirder when you create a Graphics object with a bunch of drawThis and drawThat calls, and then you use it as a mask. What??? The problem is that the function names are centered around drawing, which is an action that puts pixels on the screen. But in spite of that, the Graphics object is really about building. Let's look a bit deeper at that rect() call. When you call rect(), PixiJS doesn't actually draw anything. Instead, it stores the rectangle you \"drew\" into a list of geometry for later use. If you then add the Graphics object to the scene, the renderer will come along, and ask the Graphics object to render itself. At that point, your rectangle actually gets drawn - along with any other shapes, lines, etc. that you've added to the geometry list. Once you understand what's going on, things start to make a lot more sense. When you use a Graphics object as a mask, for example, the masking system uses that list of graphics primitives in the geometry list to constrain which pixels make it to the screen. There's no drawing involved. That's why it helps to think of the Graphics class not as a drawing tool, but as a geometry building tool.","s":"Graphics Is About Building - Not Drawing","u":"/guides/components/graphics","h":"#graphics-is-about-building---not-drawing","p":730},{"i":735,"t":"There are a lot of functions in the Graphics class, but as a quick orientation, here's the list of basic primitives you can add: Line Rect RoundRect Circle Ellipse Arc Bezier and Quadratic Curve In addition, you have access to the following complex primitives: Torus Chamfer Rect Fillet Rect Regular Polygon Star Rounded Polygon There is also support for svg. But due to the nature of how PixiJS renders holes (it favours performance) Some complex hole shapes may render incorrectly. But for the majority of shapes, this will do the trick! let mySvg = new Graphics() .svg('M 100 350 q 150 -300 300 0');","s":"Types of Primitives","u":"/guides/components/graphics","h":"#types-of-primitives","p":730},{"i":737,"t":"Understanding the relationship between Sprites and their shared Texture can help grasp the concept of a GraphicsContext. Just as multiple Sprites can utilize a single Texture, saving memory by not duplicating pixel data, a GraphicsContext can be shared across multiple Graphics objects. This sharing of a GraphicsContext means that the intensive task of converting graphics instructions into GPU-ready geometry is done once, and the results are reused, much like textures. Consider the difference in efficiency between these approaches: Creating individual circles without sharing a context: // Create 5 circles for (let i = 0; i < 5; i++) { let circle = new Graphics() .circle(100, 100, 50) .fill('red'); } Versus sharing a GraphicsContext: // Create a master Graphicscontext let circleContext = new GraphicsContext() .circle(100, 100, 50) .fill('red') // Create 5 duplicate objects for (let i = 0; i < 5; i++) { // Initialize the duplicate using our circleContext let duplicate = new Graphics(circleContext); } Now, this might not be a huge deal for circles and squares, but when you are using SVGs, it becomes quite important to not have to rebuild each time and instead share a GraphicsContext. It's recommended for maximum performance to create your contexts upfront and reuse them, just like textures! let circleContext = new GraphicsContext() .circle(100, 100, 50) .fill('red') let rectangleContext = new GraphicsContext() .rect(0, 0, 50, 50) .fill('red') let frames = [circleContext, rectangleContext]; let frameIndex = 0; const graphics = new Graphics(frames[frameIndex]); // animate from square to circle: function update() { // swap the context - this is a very cheap operation! // much cheaper than clearing it each frame. graphics.context = frames[frameIndex++%frames.length]; } If you don't explicitly pass a GraphicsContext when creating a Graphics object, then internally, it will have its own context, accessible via myGraphics.context. The GraphicsContext class manages the list of geometry primitives created by the Graphics parent object. Graphics functions are literally passed through to the internal contexts: let circleGraphics = new Graphics() .circle(100, 100, 50) .fill('red') same as: let circleGraphics = new Graphics() circleGraphics.context .circle(100, 100, 50) .fill('red') Calling Graphics.destroy() will destroy the graphics. If a context was passed to it via the constructor then it will leave the destruction the that context to you. However if the context is internally created (the default), when destroyed the Graphics object will destroy its internal GraphicsContext.","s":"The GraphicsContext","u":"/guides/components/graphics","h":"#the-graphicscontext","p":730},{"i":739,"t":"OK, so now that we've covered how the Graphics class works, let's look at how you use it. The most obvious use of a Graphics object is to draw dynamically generated shapes to the screen. Doing so is simple. Create the object, call the various builder functions to add your custom primitives, then add the object to the scene graph. Each frame, the renderer will come along, ask the Graphics object to render itself, and each primitive, with associated line and fill styles, will be drawn to the screen.","s":"Graphics For Display","u":"/guides/components/graphics","h":"#graphics-for-display","p":730},{"i":741,"t":"You can also use a Graphics object as a complex mask. To do so, build your object and primitives as usual. Next create a Container object that will contain the masked content, and set its mask property to your Graphics object. The children of the container will now be clipped to only show through inside the geometry you've created. This technique works for both WebGL and Canvas-based rendering. Check out the masking example code.","s":"Graphics as a Mask","u":"/guides/components/graphics","h":"#graphics-as-a-mask","p":730},{"i":743,"t":"The Graphics class is a complex beast, and so there are a number of things to be aware of when using it. Memory Leaks: Call destroy() on any Graphics object you no longer need to avoid memory leaks. Holes: Holes you create have to be completely contained in the shape or else it may not be able to triangulate correctly. Changing Geometry: If you want to change the shape of a Graphics object, you don't need to delete and recreate it. Instead you can use the clear() function to reset the contents of the geometry list, then add new primitives as desired. Be careful of performance when doing this every frame. Performance: Graphics objects are generally quite performant. However, if you build highly complex geometry, you may pass the threshold that permits batching during rendering, which can negatively impact performance. It's better for batching to use many Graphics objects instead of a single Graphics with many shapes. Transparency: Because the Graphics object renders its primitives sequentially, be careful when using blend modes or partial transparency with overlapping geometry. Blend modes like ADD and MULTIPLY will work on each primitive, not on the final composite image. Similarly, partially transparent Graphics objects will show primitives overlapping. To apply transparency or blend modes to a single flattened surface, consider using AlphaFilter or RenderTexture.","s":"Caveats and Gotchas","u":"/guides/components/graphics","h":"#caveats-and-gotchas","p":730},{"i":745,"t":"PixiJS is primarily a rendering system, but it also includes support for interactivity. Adding support for mouse and touch events to your project is simple and consistent.","s":"Interaction","u":"/guides/components/interaction","h":"","p":744},{"i":747,"t":"The new event-based system that replaced InteractionManager from v6 has expanded the definition of what a Container means to be interactive. With this we have introduced eventMode which allows you to control how an object responds to interaction events. This is similar to the interactive property in v6 but with more options. eventMode Description none Ignores all interaction events, similar to CSS's pointer-events: none, good optimization for non-interactive children passive Does not emit events and ignores hit testing on itself but does allow for events and hit testing only its interactive children. This is default eventMode for all containers auto Does not emit events and but is hit tested if parent is interactive. Same as interactive = false in v7 static Emit events and is hit tested. Same as interaction = true in v7, useful for objects like buttons that do not move. dynamic Emits events and is hit tested but will also receive mock interaction events fired from a ticker to allow for interaction when the mouse isn't moving. This is useful for elements that independently moving or animating.","s":"Event Modes","u":"/guides/components/interaction","h":"#event-modes","p":744},{"i":749,"t":"PixiJS supports the following event types: Event Type Description pointercancel Fired when a pointer device button is released outside the display object that initially registered a pointerdown. pointerdown Fired when a pointer device button is pressed on the display object. pointerenter Fired when a pointer device enters the display object. pointerleave Fired when a pointer device leaves the display object. pointermove Fired when a pointer device is moved while over the display object. globalpointermove Fired when a pointer device is moved, regardless of hit-testing the current object. pointerout Fired when a pointer device is moved off the display object. pointerover Fired when a pointer device is moved onto the display object. pointertap Fired when a pointer device is tapped twice on the display object. pointerup Fired when a pointer device button is released over the display object. pointerupoutside Fired when a pointer device button is released outside the display object that initially registered a pointerdown. mousedown Fired when a mouse button is pressed on the display object. mouseenter Fired when the mouse cursor enters the display object. mouseleave Fired when the mouse cursor leaves the display object. mousemove Fired when the mouse cursor is moved while over the display object. globalmousemove Fired when a mouse is moved, regardless of hit-testing the current object. mouseout Fired when the mouse cursor is moved off the display object. mouseover Fired when the mouse cursor is moved onto the display object. mouseup Fired when a mouse button is released over the display object. mouseupoutside Fired when a mouse button is released outside the display object that initially registered a mousedown. click Fired when a mouse button is clicked (pressed and released) over the display object. touchcancel Fired when a touch point is removed outside of the display object that initially registered a touchstart. touchend Fired when a touch point is removed from the display object. touchendoutside Fired when a touch point is removed outside of the display object that initially registered a touchstart. touchmove Fired when a touch point is moved along the display object. globaltouchmove Fired when a touch point is moved, regardless of hit-testing the current object. touchstart Fired when a touch point is placed on the display object. tap Fired when a touch point is tapped twice on the display object. wheel Fired when a mouse wheel is spun over the display object. rightclick Fired when a right mouse button is clicked (pressed and released) over the display object. rightdown Fired when a right mouse button is pressed on the display object. rightup Fired when a right mouse button is released over the display object. rightupoutside Fired when a right mouse button is released outside the display object that initially registered a rightdown.","s":"Event Types","u":"/guides/components/interaction","h":"#event-types","p":744},{"i":751,"t":"Any Container-derived object (Sprite, Container, etc.) can become interactive simply by setting its eventMode property to any of the eventModes listed above. Doing so will cause the object to emit interaction events that can be responded to in order to drive your project's behavior. Check out the interaction example code. To respond to clicks and taps, bind to the events fired on the object, like so: let sprite = Sprite.from('/some/texture.png'); sprite.on('pointerdown', (event) => { alert('clicked!'); }); sprite.eventMode = 'static'; Check out the Container for the list of interaction events supported.","s":"Enabling Interaction","u":"/guides/components/interaction","h":"#enabling-interaction","p":744},{"i":753,"t":"You can check if an object is interactive by calling the isInteractive property. This will return true if eventMode is set to static or dynamic. if (sprite.isInteractive()) { // sprite is interactive }","s":"Checking if Object is Interactive","u":"/guides/components/interaction","h":"#checking-if-object-is-interactive","p":744},{"i":755,"t":"PixiJS supports three types of interaction events - mouse, touch and pointer. Mouse events are fired by mouse movement, clicks etc. Touch events are fired for touch-capable devices. And pointer events are fired for both. What this means is that, in many cases, you can write your project to use pointer events and it will just work when used with either mouse or touch input. Given that, the only reason to use non-pointer events is to support different modes of operation based on input type or to support multi-touch interaction. In all other cases, prefer pointer events.","s":"Use Pointer Events","u":"/guides/components/interaction","h":"#use-pointer-events","p":744},{"i":757,"t":"Hit testing requires walking the full object tree, which in complex projects can become an optimization bottleneck. To mitigate this issue, PixiJS Container-derived objects have a property named interactiveChildren. If you have Containers or other objects with complex child trees that you know will never be interactive, you can set this property to false and the hit testing algorithm will skip those children when checking for hover and click events. As an example, if you were building a side-scrolling game, you would probably want to set background.interactiveChildren = false for your background layer with rocks, clouds, flowers, etc. Doing so would speed up hit testing substantially due to the number of unclickable child objects the background layer would contain. The EventSystem can also be customised to be more performant: const app = new Application({ eventMode: 'passive', eventFeatures: { move: true, /** disables the global move events which can be very expensive in large scenes */ globalMove: false, click: true, wheel: true, } });","s":"Optimization","u":"/guides/components/interaction","h":"#optimization","p":744},{"i":759,"t":"Now that you understand basic sprites, it's time to talk about a better way to create them - the Spritesheet class. A Spritesheet is a media format for more efficiently downloading and rendering Sprites. While somewhat more complex to create and use, they are a key tool in optimizing your project.","s":"Spritesheets","u":"/guides/components/sprite-sheets","h":"","p":758},{"i":761,"t":"The basic idea of a spritesheet is to pack a series of images together into a single image, track where each source image ends up, and use that combined image as a shared BaseTexture for the resulting Sprites. The first step is to collect the images you want to combine. The sprite packer then collects the images, and creates a new combined image. As this image is being created, the tool building it keeps track of the location of the rectangle where each source image is stored. It then writes out a JSON file with that information. These two files, in combination, can be passed into a SpriteSheet constructor. The SpriteSheet object then parses the JSON, and creates a series of Texture objects, one for each source image, setting the source rectangle for each based on the JSON data. Each texture uses the same shared BaseTexture as its source.","s":"Anatomy of a Spritesheet","u":"/guides/components/sprite-sheets","h":"#anatomy-of-a-spritesheet","p":758},{"i":763,"t":"SpriteSheets help your project in two ways. First, by speeding up the loading process. While downloading a SpriteSheet's texture requires moving the same (or even slightly more!) number of bytes, they're grouped into a single file. This means that the user's browser can request and download far fewer files for the same number of Sprites. The number of files itself is a key driver of download speed, because each request requires a round-trip to the webserver, and browsers are limited to how many files they can download simultaneously. Converting a project from individual source images to shared sprite sheets can cut your download time in half, at no cost in quality. Second, by improving batch rendering. WebGL rendering speed scales roughly with the number of draw calls made. Batching multiple Sprites, etc. into a single draw call is the main secret to how PixiJS can run so blazingly fast. Maximizing batching is a complex topic, but when multiple Sprites all share a common BaseTexture, it makes it more likely that they can be batched together and rendered in a single call.","s":"Doubly Efficient","u":"/guides/components/sprite-sheets","h":"#doubly-efficient","p":758},{"i":765,"t":"You can use a 3rd party tool to assemble your sprite sheet files. Here are two that may fit your needs: ShoeBox: ShoeBox is a free, Adobe AIR-based sprite packing utility that is great for small projects or learning how SpriteSheets work. TexturePacker: TexturePacker is a more polished tool that supports advanced features and workflows. A free version is available which has all the necessary features for packing spritesheets for PixiJS. It's a good fit for larger projects and professional game development, or projects that need more complex tile mapping features. Spritesheet data can also be created manually or programmatically, and supplied to a new AnimatedSprite. This may be an easier option if your sprites are already contained in a single image. // Create object to store sprite sheet data const atlasData = { frames: { enemy1: { frame: { x: 0, y:0, w:32, h:32 }, sourceSize: { w: 32, h: 32 }, spriteSourceSize: { x: 0, y: 0, w: 32, h: 32 } }, enemy2: { frame: { x: 32, y:0, w:32, h:32 }, sourceSize: { w: 32, h: 32 }, spriteSourceSize: { x: 0, y: 0, w: 32, h: 32 } }, }, meta: { image: 'images/spritesheet.png', format: 'RGBA8888', size: { w: 128, h: 32 }, scale: 1 }, animations: { enemy: ['enemy1','enemy2'] //array of frames by name } } // Create the SpriteSheet from data and image const spritesheet = new Spritesheet( Texture.from(atlasData.meta.image), atlasData ); // Generate all the Textures asynchronously await spritesheet.parse(); // spritesheet is ready to use! const anim = new AnimatedSprite(spritesheet.animations.enemy); // set the animation speed anim.animationSpeed = 0.1666; // play the animation on a loop anim.play(); // add it to the stage to render app.stage.addChild(anim);","s":"Creating SpriteSheets","u":"/guides/components/sprite-sheets","h":"#creating-spritesheets","p":758},{"i":767,"t":"Sprites are the simplest and most common renderable object in PixiJS. They represent a single image to be displayed on the screen. Each Sprite contains a Texture to be drawn, along with all the transformation and display state required to function in the scene graph.","s":"Sprites","u":"/guides/components/sprites","h":"","p":766},{"i":769,"t":"To create a Sprite, all you need is a Texture (check out the Texture guide). Load a PNG's URL using the Assets class, then call Sprite.from(url) and you're all set. Unlike v7 you now must load your texture before using it, this is to ensure best practices. Check out the sprite example code.","s":"Creating Sprites","u":"/guides/components/sprites","h":"#creating-sprites","p":766},{"i":771,"t":"In our Container guide, we learned about the Container class and the various properties it defines. Since Sprite objects are also containers, you can move a sprite, rotate it, and update any other display property.","s":"Using Sprites","u":"/guides/components/sprites","h":"#using-sprites","p":766},{"i":773,"t":"Alpha is a standard display object property. You can use it to fade sprites into the scene by animating each sprite's alpha from 0.0 to 1.0 over a period of time. Tinting allows you multiply the color value of every pixel by a single color. For example, if you had a dungeon game, you might show a character's poison status by setting obj.tint = 0x00FF00, which would give a green tint to the character. Blend modes change how pixel colors are added to the screen when rendering. The three main modes are add, which adds each pixel's RGB channels to whatever is under your sprite (useful for glows and lighting), multiply which works like tint, but on a per-pixel basis, and screen, which overlays the pixels, brightening whatever is underneath them.","s":"Alpha, Tint and Blend Modes","u":"/guides/components/sprites","h":"#alpha-tint-and-blend-modes","p":766},{"i":775,"t":"One common area of confusion when working with sprites lies in scaling and dimensions. The Container class allows you to set the x and y scale for any object. Sprites, being Containers, also support scaling. In addition, however, Sprites support explicit width and height attributes that can be used to achieve the same effect, but are in pixels instead of a percentage. This works because a Sprite object owns a Texture, which has an explicit width and height. When you set a Sprite's width, internally PixiJS converts that width into a percentage of the underlying texture's width and updates the object's x-scale. So width and height are really just convenience methods for changing scale, based on pixel dimensions rather than percentages.","s":"Scale vs Width & Height","u":"/guides/components/sprites","h":"#scale-vs-width--height","p":766},{"i":777,"t":"If you add a sprite to your stage and rotate it, it will by default rotate around the top-left corner of the image. In some cases, this is what you want. In many cases, however, what you want is for the sprite to rotate around the center of the image it contains, or around an arbitrary point. There are two ways to achieve this: pivots and anchors An object's pivot is an offset, expressed in pixels, from the top-left corner of the Sprite. It defaults to (0, 0). If you have a Sprite whose texture is 100px x 50px, and want to set the pivot point to the center of the image, you'd set your pivot to (50, 25) - half the width, and half the height. Note that pivots can be set outside of the image, meaning the pivot may be less than zero or greater than the width/height. This can be useful in setting up complex animation hierarchies, for example. Every Container has a pivot. An anchor, in contrast, is only available for Sprites. Anchors are specified in percentages, from 0.0 to 1.0, in each dimension. To rotate around the center point of a texture using anchors, you'd set your Sprite's anchor to (0.5, 0.5) - 50% in width and height. While less common, anchors can also be outside the standard 0.0 - 1.0 range. The nice thing about anchors is that they are resolution and dimension agnostic. If you set your Sprite to be anchored in the middle then later change the size of the texture, your object will still rotate correctly. If you had instead set a pivot using pixel-based calculations, changing the texture size would require changing your pivot point. So, generally speaking, you'll want to use anchors when working with Sprites. One final note: unlike CSS, where setting the transform-origin of the image doesn't move it, in PixiJS setting an anchor or pivot will move your object on the screen. In other words, setting an anchor or pivot affects not just the rotation origin, but also the position of the sprite relative to its parent.","s":"Pivot vs Anchor","u":"/guides/components/sprites","h":"#pivot-vs-anchor","p":766},{"i":779,"t":"Whether it's a high score or a diagram label, text is often the best way to convey information in your projects. Surprisingly, drawing text to the screen with WebGL is a very complex process - there's no built in support for it at all. One of the values PixiJS provides is in hiding this complexity to allow you to draw text in diverse styles, fonts and colors with a few lines of code. In addition, these bits of text are just as much scene objects as sprites - you can tint text, rotate it, alpha-blend it, and otherwise treat it like any other graphical object. Let's dig into how this works.","s":"Text","u":"/guides/components/text","h":"","p":778},{"i":781,"t":"Because of the challenges of working with text in WebGL, PixiJS provides three very different solutions. In this guide, we're going to go over both methods in some detail to help you make the right choice for your project's needs. Selecting the wrong text type can have a large negative impact on your project's performance and appearance.","s":"There Are Three Kinds of Text","u":"/guides/components/text","h":"#there-are-three-kinds-of-text","p":778},{"i":783,"t":"In order to draw text to the screen, you use a Text object. Under the hood, this class draws text to an off-screen buffer using the browser's normal text rendering, then uses that offscreen buffer as the source for drawing the text object. Effectively what this means is that whenever you create or change text, PixiJS creates a new rasterized image of that text, and then treats it like a sprite. This approach allows truly rich text display while keeping rendering speed high. So when working with Text objects, there are two sets of options - standard display object options like position, rotation, etc that work after the text is rasterized internally, and text style options that are used while rasterizing. Because text once rendered is basically just a sprite, there's no need to review the standard options. Instead, let's focus on how text is styled. Check out the text example code.","s":"The Text Object","u":"/guides/components/text","h":"#the-text-object","p":778},{"i":785,"t":"There are a lot of text style options available (see TextStyle), but they break down into 5 main groups: Font: fontFamily to select the webfont to use, fontSize to specify the size of the text to draw, along with options for font weight, style and variant. Appearance: Set the color with fill or add a stroke outline, including options for gradient fills. Drop-Shadows: Set a drop-shadow with dropShadow, with a host of related options to specify offset, blur, opacity, etc. Layout: Enable with wordWrap and wordWrapWidth, and then customize the lineHeight and align or letterSpacing Utilities: Add padding or trim extra space to deal with funky font families if needed. To interactively test out feature of Text Style, check out this tool.","s":"Text Styles","u":"/guides/components/text","h":"#text-styles","p":778},{"i":787,"t":"In order for PixiJS to build a Text object, you'll need to make sure that the font you want to use is loaded by the browser. This can be easily accomplished with our good friends Assets // load the fonts await Assets.load('short-stack.woff2'); // now they can be used! const text = new Text({ text:'hello', style:{ fontFamily:'short-stack' } })","s":"Loading and Using Fonts","u":"/guides/components/text","h":"#loading-and-using-fonts","p":778},{"i":789,"t":"While PixiJS does make working with text easy, there are a few things you need to watch out for. First, changing an existing text string requires re-generating the internal render of that text, which is a slow operation that can impact performance if you change many text objects each frame. If your project requires lots of frequently changing text on the screen at once, consider using a BitmapText object (explained below) which uses a fixed bitmap font that doesn't require re-generation when text changes. Second, be careful when scaling text. Setting a text object's scale to > 1.0 will result in blurry/pixely display, because the text is not re-rendered at the higher resolution needed to look sharp - it's still the same resolution it was when generated. To deal with this, you can render at a higher initial size and down-scale, instead. This will use more memory, but will allow your text to always look clear and crisp.","s":"Caveats and Gotchas","u":"/guides/components/text","h":"#caveats-and-gotchas","p":778},{"i":791,"t":"In addition to the standard Text approach to adding text to your project, PixiJS also supports bitmap fonts. Bitmap fonts are very different from TrueType or other general purpose fonts, in that they consist of a single image containing pre-rendered versions of every letter you want to use. When drawing text with a bitmap font, PixiJS doesn't need to render the font glyphs into a temporary buffer - it can simply copy and stamp out each character of a string from the master font image. The primary advantage of this approach is speed - changing text frequently is much cheaper and rendering each additional piece of text is much faster due to the shared source texture. Check out the bitmap text example code.","s":"BitmapText","u":"/guides/components/text","h":"#bitmaptext","p":778},{"i":793,"t":"3rd party solutions BitmapFont.from auto-generation","s":"BitmapFont","u":"/guides/components/text","h":"#bitmapfont","p":778},{"i":795,"t":"Text Static text Small number of text objects High fidelity text rendering (kerning e.g.) Text layout (line & letter spacing) BitmapText Dynamic text Large number of text objects Lower memory HTMLText Static text Need that HTML formatting","s":"Selecting the Right Approach","u":"/guides/components/text","h":"#selecting-the-right-approach","p":778},{"i":797,"t":"We're slowly working our way down from the high level to the low. We've talked about the scene graph, and in general about display objects that live in it. We're about to get to sprites and other simple display objects. But before we do, we need to talk about textures. In PixiJS, textures are one of the core resources used by display objects. A texture, broadly speaking, represents a source of pixels to be used to fill in an area on the screen. The simplest example is a sprite - a rectangle that is completely filled with a single texture. But things can get much more complex.","s":"Textures","u":"/guides/components/textures","h":"","p":796},{"i":799,"t":"Let's examine how textures really work, by following the path your image data travels on its way to the screen. Here's the flow we're going to follow: Source Image > Loader > BaseTexture > Texture","s":"Life-cycle of a Texture","u":"/guides/components/textures","h":"#life-cycle-of-a-texture","p":796},{"i":801,"t":"To start with, you have the image you want to display. The first step is to make it available on your server. This may seem obvious, but if you're coming to PixiJS from other game development systems, it's worth remembering that everything has to be loaded over the network. If you're developing locally, please be aware that you must use a webserver to test, or your images won't load due to how browsers treat local file security.","s":"Serving the Image","u":"/guides/components/textures","h":"#serving-the-image","p":796},{"i":803,"t":"To work with the image, the first step is to pull the image file from your webserver into the user's web browser. To do this, we can use Assets.load('myTexture.png'). Assets wraps and deals with telling the browser to fetch the image, convert it and then let you when that has been completed. This process is asynchronous - you request the load, then time passes, then a proimise completes to let you know the load is completed. We'll go into the loader in a lot more depth in a later guide. const texture = await Assets.load('myTexture.png'); // pass a texture explicitly const sprite = new Sprite(texture); // as options const sprite2 = new Sprite({texture}); // from the cache as the texture is loaded const sprite3 = Sprite.from('myTexture.png')","s":"Loading the Image","u":"/guides/components/textures","h":"#loading-the-image","p":796},{"i":805,"t":"Once the texture has loaded, the loaded element contains the pixel data we need. But to use it to render something, PixiJS has to take that raw image file and upload it to the GPU. This brings us to the real workhorse of the texture system - the TextureSource class. Each TextureSource manages a single pixel source - usually an image, but can also be a Canvas or Video element. TextureSources allow PixiJS to convert the image to pixels and use those pixels in rendering. In addition, it also contains settings that control how the texture data is rendered, such as the wrap mode (for UV coordinates outside the 0.0-1.0 range) and scale mode (used when scaling a texture). TextureSource are automatically cached, so that calling Texture.from() repeatedly for the same URL returns the same TextureSource each time. Destroying a TextureSource frees the image data associated with it.","s":"TextureSources Own the Data","u":"/guides/components/textures","h":"#texturesources-own-the-data","p":796},{"i":807,"t":"So finally, we get to the Texture class itself! At this point, you may be wondering what the Texture object does. After all, the BaseTexture manages the pixels and render settings. And the answer is, it doesn't do very much. Textures are light-weight views on an underlying BaseTexture. Their main attribute is the source rectangle within the TextureSource from which to pull. If all PixiJS drew were sprites, that would be pretty redundant. But consider SpriteSheets. A SpriteSheet is a single image that contains multiple sprite images arranged within. In a Spritesheet object, a single TextureSource is referenced by a set of Textures, one for each source image in the original sprite sheet. By sharing a single TextureSource, the browser only downloads one file, and our batching renderer can blaze through drawing sprites since they all share the same underlying pixel data. The SpriteSheet's Textures pull out just the rectangle of pixels needed by each sprite. That is why we have both Textures and TextureSource - to allow sprite sheets, animations, button states, etc to be loaded as a single image, while only displaying the part of the master image that is needed.","s":"Textures are a View on BaseTextures","u":"/guides/components/textures","h":"#textures-are-a-view-on-basetextures","p":796},{"i":809,"t":"We will discuss resource loading in a later guide, but one of the most common issues new users face when building a PixiJS project is how best to load their textures. here's a quick cheat sheet of one good solution: Show a loading image Use Assets to ensure that all textures are loaded optionally update your loading image based on progress callbacks On loader completion, run all objects and use Texture.from() to pull the loaded textures out of the texture cache Prepare your textures (optional - see below) Hide your loading image, start rendering your scene graph Using this workflow ensures that your textures are pre-loaded, to prevent pop-in, and is relatively easy to code. Regarding preparing textures: Even after you've loaded your textures, the images still need to be pushed to the GPU and decoded. Doing this for a large number of source images can be slow and cause lag spikes when your project first loads. To solve this, you can use the Prepare plugin, which allows you to pre-load textures in a final step before displaying your project.","s":"Loading Textures","u":"/guides/components/textures","h":"#loading-textures","p":796},{"i":811,"t":"Once you're done with a Texture, you may wish to free up the memory (both WebGL-managed buffers and browser-based) that it uses. To do so, you should call destroy() on the BaseTexture that owns the data. Remember that Textures don't manage pixel data! This is a particularly good idea for short-lived imagery like cut-scenes that are large and will only be used once. If a texture is destroyed that was loaded via Assets then the assets class will automatically remove it from the cache for you.","s":"Unloading Textures","u":"/guides/components/textures","h":"#unloading-textures","p":796},{"i":813,"t":"As we alluded to above, you can make a Texture out of more than just images: Video: Pass an HTML5