diff --git a/examples/src/examples/animation/blend-trees-1d.mjs b/examples/src/examples/animation/blend-trees-1d.mjs index 62390508615..8da55407ad0 100644 --- a/examples/src/examples/animation/blend-trees-1d.mjs +++ b/examples/src/examples/animation/blend-trees-1d.mjs @@ -52,15 +52,10 @@ async function example({ canvas, deviceType, assetPath, scriptsPath, data, glsla pc.AnimComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.ContainerHandler, - // @ts-ignore pc.ScriptHandler, - // @ts-ignore pc.AnimClipHandler, - // @ts-ignore pc.AnimStateGraphHandler ]; diff --git a/examples/src/examples/animation/blend-trees-2d-cartesian.mjs b/examples/src/examples/animation/blend-trees-2d-cartesian.mjs index 5bd7bb7825e..407e882098e 100644 --- a/examples/src/examples/animation/blend-trees-2d-cartesian.mjs +++ b/examples/src/examples/animation/blend-trees-2d-cartesian.mjs @@ -157,15 +157,10 @@ async function example({ canvas, deviceType, assetPath, scriptsPath, glslangPath pc.AnimComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.ContainerHandler, - // @ts-ignore pc.ScriptHandler, - // @ts-ignore pc.AnimClipHandler, - // @ts-ignore pc.AnimStateGraphHandler ]; diff --git a/examples/src/examples/animation/blend-trees-2d-directional.mjs b/examples/src/examples/animation/blend-trees-2d-directional.mjs index 45dc70d4b3e..09d7d58b72e 100644 --- a/examples/src/examples/animation/blend-trees-2d-directional.mjs +++ b/examples/src/examples/animation/blend-trees-2d-directional.mjs @@ -114,15 +114,10 @@ async function example({ canvas, deviceType, assetPath, glslangPath, twgslPath, pc.AnimComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.ContainerHandler, - // @ts-ignore pc.ScriptHandler, - // @ts-ignore pc.AnimClipHandler, - // @ts-ignore pc.AnimStateGraphHandler ]; diff --git a/examples/src/examples/animation/component-properties.mjs b/examples/src/examples/animation/component-properties.mjs index 85870975e05..f69bd58704d 100644 --- a/examples/src/examples/animation/component-properties.mjs +++ b/examples/src/examples/animation/component-properties.mjs @@ -45,11 +45,8 @@ async function example({ canvas, deviceType, data, assetPath, glslangPath, twgsl pc.AnimComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.AnimClipHandler, - // @ts-ignore pc.AnimStateGraphHandler ]; diff --git a/examples/src/examples/animation/events.mjs b/examples/src/examples/animation/events.mjs index 385aec81ee7..507359a8f04 100644 --- a/examples/src/examples/animation/events.mjs +++ b/examples/src/examples/animation/events.mjs @@ -33,15 +33,10 @@ async function example({ canvas, deviceType, assetPath, glslangPath, twgslPath, pc.AnimComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.ContainerHandler, - // @ts-ignore pc.ScriptHandler, - // @ts-ignore pc.AnimClipHandler, - // @ts-ignore pc.AnimStateGraphHandler ]; diff --git a/examples/src/examples/animation/layer-masks.mjs b/examples/src/examples/animation/layer-masks.mjs index 9ac24de1bdd..0a8f4aa82ea 100644 --- a/examples/src/examples/animation/layer-masks.mjs +++ b/examples/src/examples/animation/layer-masks.mjs @@ -118,15 +118,10 @@ async function example({ canvas, deviceType, assetPath, scriptsPath, glslangPath pc.AnimComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.ContainerHandler, - // @ts-ignore pc.ScriptHandler, - // @ts-ignore pc.AnimClipHandler, - // @ts-ignore pc.AnimStateGraphHandler ]; diff --git a/examples/src/examples/animation/locomotion.mjs b/examples/src/examples/animation/locomotion.mjs index cc2cbbb8247..60c061c909d 100644 --- a/examples/src/examples/animation/locomotion.mjs +++ b/examples/src/examples/animation/locomotion.mjs @@ -74,15 +74,10 @@ async function example({ canvas, deviceType, assetPath, ammoPath, glslangPath, t pc.RigidBodyComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.ContainerHandler, - // @ts-ignore pc.ScriptHandler, - // @ts-ignore pc.AnimClipHandler, - // @ts-ignore pc.AnimStateGraphHandler ]; diff --git a/examples/src/examples/animation/tween.mjs b/examples/src/examples/animation/tween.mjs index a677a9a5dda..938abd8aa51 100644 --- a/examples/src/examples/animation/tween.mjs +++ b/examples/src/examples/animation/tween.mjs @@ -31,13 +31,9 @@ async function example({ canvas, deviceType, assetPath, scriptsPath, glslangPath pc.ElementComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.FontHandler, - // @ts-ignore pc.JsonHandler, - // @ts-ignore pc.ScriptHandler ]; diff --git a/examples/src/examples/camera/first-person.mjs b/examples/src/examples/camera/first-person.mjs index 0e3866a19c5..85be45486a1 100644 --- a/examples/src/examples/camera/first-person.mjs +++ b/examples/src/examples/camera/first-person.mjs @@ -28,11 +28,8 @@ async function example({ canvas, deviceType, glslangPath, twgslPath, assetPath, pc.RigidBodyComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.ContainerHandler, - // @ts-ignore pc.ScriptHandler ]; diff --git a/examples/src/examples/camera/fly.mjs b/examples/src/examples/camera/fly.mjs index 4b10d6db740..02c00d2eb6b 100644 --- a/examples/src/examples/camera/fly.mjs +++ b/examples/src/examples/camera/fly.mjs @@ -24,7 +24,6 @@ async function example({ canvas, deviceType, glslangPath, twgslPath, scriptsPath pc.ScriptComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.ScriptHandler ]; diff --git a/examples/src/examples/camera/orbit.mjs b/examples/src/examples/camera/orbit.mjs index 14cc3268118..33d9e31ff65 100644 --- a/examples/src/examples/camera/orbit.mjs +++ b/examples/src/examples/camera/orbit.mjs @@ -24,11 +24,8 @@ async function example({ canvas, deviceType, glslangPath, twgslPath, assetPath, pc.ScriptComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.ContainerHandler, - // @ts-ignore pc.ScriptHandler ]; diff --git a/examples/src/examples/graphics/area-lights.mjs b/examples/src/examples/graphics/area-lights.mjs index 7c0e4f71018..efae2ba0afa 100644 --- a/examples/src/examples/graphics/area-lights.mjs +++ b/examples/src/examples/graphics/area-lights.mjs @@ -33,13 +33,9 @@ async function example({ canvas, deviceType, assetPath, glslangPath, twgslPath } pc.LightComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.ContainerHandler, - // @ts-ignore pc.JsonHandler, - // @ts-ignore pc.CubemapHandler ]; diff --git a/examples/src/examples/graphics/area-picker.mjs b/examples/src/examples/graphics/area-picker.mjs index 744b67d3081..2da4e031524 100644 --- a/examples/src/examples/graphics/area-picker.mjs +++ b/examples/src/examples/graphics/area-picker.mjs @@ -29,9 +29,7 @@ async function example({ canvas, deviceType, assetPath, glslangPath, twgslPath, pc.ScriptComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.ScriptHandler, - // @ts-ignore pc.TextureHandler ]; diff --git a/examples/src/examples/graphics/asset-viewer.mjs b/examples/src/examples/graphics/asset-viewer.mjs index fafbb1ed9a8..bea9682e71c 100644 --- a/examples/src/examples/graphics/asset-viewer.mjs +++ b/examples/src/examples/graphics/asset-viewer.mjs @@ -58,15 +58,10 @@ async function example({ canvas, deviceType, data, assetPath, scriptsPath, glsla pc.ElementComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.ContainerHandler, - // @ts-ignore pc.ScriptHandler, - // @ts-ignore pc.JsonHandler, - // @ts-ignore pc.FontHandler ]; diff --git a/examples/src/examples/graphics/batching-dynamic.mjs b/examples/src/examples/graphics/batching-dynamic.mjs index d60b12cf38d..5d7b39544ba 100644 --- a/examples/src/examples/graphics/batching-dynamic.mjs +++ b/examples/src/examples/graphics/batching-dynamic.mjs @@ -16,7 +16,6 @@ async function example({ canvas, deviceType, glslangPath, twgslPath }) { const createOptions = new pc.AppOptions(); createOptions.graphicsDevice = device; - // @ts-ignore createOptions.batchManager = pc.BatchManager; createOptions.componentSystems = [ diff --git a/examples/src/examples/graphics/clustered-area-lights.mjs b/examples/src/examples/graphics/clustered-area-lights.mjs index ca2e8010c1b..c334be977a1 100644 --- a/examples/src/examples/graphics/clustered-area-lights.mjs +++ b/examples/src/examples/graphics/clustered-area-lights.mjs @@ -71,13 +71,9 @@ async function example({ canvas, deviceType, assetPath, scriptsPath, glslangPath pc.ScriptComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.ContainerHandler, - // @ts-ignore pc.ScriptHandler, - // @ts-ignore pc.JsonHandler ]; diff --git a/examples/src/examples/graphics/clustered-lighting.mjs b/examples/src/examples/graphics/clustered-lighting.mjs index bef3cd67f9b..4a787dbbb43 100644 --- a/examples/src/examples/graphics/clustered-lighting.mjs +++ b/examples/src/examples/graphics/clustered-lighting.mjs @@ -30,11 +30,8 @@ async function example({ canvas, deviceType, assetPath, glslangPath, twgslPath, pc.ScriptComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.ContainerHandler, - // @ts-ignore pc.ScriptHandler ]; diff --git a/examples/src/examples/graphics/clustered-omni-shadows.mjs b/examples/src/examples/graphics/clustered-omni-shadows.mjs index 22ce16d79c5..211883ca832 100644 --- a/examples/src/examples/graphics/clustered-omni-shadows.mjs +++ b/examples/src/examples/graphics/clustered-omni-shadows.mjs @@ -80,11 +80,8 @@ async function example({ canvas, deviceType, data, assetPath, scriptsPath, glsla pc.ScriptComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.ScriptHandler, - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.CubemapHandler ]; diff --git a/examples/src/examples/graphics/clustered-spot-shadows.mjs b/examples/src/examples/graphics/clustered-spot-shadows.mjs index a0e039c16aa..507eee34b14 100644 --- a/examples/src/examples/graphics/clustered-spot-shadows.mjs +++ b/examples/src/examples/graphics/clustered-spot-shadows.mjs @@ -136,9 +136,7 @@ async function example({ canvas, deviceType, data, assetPath, scriptsPath, glsla pc.ScriptComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.ScriptHandler ]; diff --git a/examples/src/examples/graphics/contact-hardening-shadows.mjs b/examples/src/examples/graphics/contact-hardening-shadows.mjs index 385af563274..b00e4f89667 100644 --- a/examples/src/examples/graphics/contact-hardening-shadows.mjs +++ b/examples/src/examples/graphics/contact-hardening-shadows.mjs @@ -160,17 +160,11 @@ async function example({ canvas, deviceType, data, assetPath, scriptsPath, glsla pc.AnimComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.ContainerHandler, - // @ts-ignore pc.ScriptHandler, - // @ts-ignore pc.JsonHandler, - // @ts-ignore pc.AnimClipHandler, - // @ts-ignore pc.AnimStateGraphHandler ]; diff --git a/examples/src/examples/graphics/grab-pass.mjs b/examples/src/examples/graphics/grab-pass.mjs index 3e794c69c52..a20465e83e8 100644 --- a/examples/src/examples/graphics/grab-pass.mjs +++ b/examples/src/examples/graphics/grab-pass.mjs @@ -31,7 +31,6 @@ async function example({ canvas, deviceType, files, assetPath, glslangPath, twgs pc.CameraComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler ]; diff --git a/examples/src/examples/graphics/ground-fog.mjs b/examples/src/examples/graphics/ground-fog.mjs index 8f4ceb8b371..bf4d8c8a21e 100644 --- a/examples/src/examples/graphics/ground-fog.mjs +++ b/examples/src/examples/graphics/ground-fog.mjs @@ -52,11 +52,8 @@ async function example({ canvas, deviceType, files, assetPath, scriptsPath, glsl pc.ScriptComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.ContainerHandler, - // @ts-ignore pc.ScriptHandler ]; diff --git a/examples/src/examples/graphics/hardware-instancing.mjs b/examples/src/examples/graphics/hardware-instancing.mjs index 3c95251b4ec..abe987e1c45 100644 --- a/examples/src/examples/graphics/hardware-instancing.mjs +++ b/examples/src/examples/graphics/hardware-instancing.mjs @@ -25,7 +25,6 @@ async function example({ canvas, deviceType, assetPath, glslangPath, twgslPath } pc.CameraComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler ]; diff --git a/examples/src/examples/graphics/light-physical-units.mjs b/examples/src/examples/graphics/light-physical-units.mjs index d11ba5bd494..9768028c85e 100644 --- a/examples/src/examples/graphics/light-physical-units.mjs +++ b/examples/src/examples/graphics/light-physical-units.mjs @@ -143,13 +143,9 @@ async function example({ canvas, deviceType, data, assetPath, scriptsPath, glsla pc.ScriptComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.ContainerHandler, - // @ts-ignore pc.ScriptHandler, - // @ts-ignore pc.JsonHandler ]; diff --git a/examples/src/examples/graphics/lights-baked-a-o.mjs b/examples/src/examples/graphics/lights-baked-a-o.mjs index 4e08bc09a7d..c5feca22ae3 100644 --- a/examples/src/examples/graphics/lights-baked-a-o.mjs +++ b/examples/src/examples/graphics/lights-baked-a-o.mjs @@ -174,7 +174,6 @@ async function example({ canvas, deviceType, data, assetPath, scriptsPath, glsla createOptions.mouse = new pc.Mouse(document.body); createOptions.touch = new pc.TouchDevice(document.body); - // @ts-ignore createOptions.lightmapper = pc.Lightmapper; createOptions.componentSystems = [ @@ -184,13 +183,9 @@ async function example({ canvas, deviceType, data, assetPath, scriptsPath, glsla pc.ScriptComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.ScriptHandler, - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.ContainerHandler, - // @ts-ignore pc.CubemapHandler ]; diff --git a/examples/src/examples/graphics/lights-baked.mjs b/examples/src/examples/graphics/lights-baked.mjs index 43b11fc30fb..7d92ceb91ab 100644 --- a/examples/src/examples/graphics/lights-baked.mjs +++ b/examples/src/examples/graphics/lights-baked.mjs @@ -16,7 +16,6 @@ async function example({ canvas, deviceType, glslangPath, twgslPath }) { const createOptions = new pc.AppOptions(); createOptions.graphicsDevice = device; - // @ts-ignore createOptions.lightmapper = pc.Lightmapper; createOptions.componentSystems = [ diff --git a/examples/src/examples/graphics/lights.mjs b/examples/src/examples/graphics/lights.mjs index 8a9f3234ec0..e2c246db0ef 100644 --- a/examples/src/examples/graphics/lights.mjs +++ b/examples/src/examples/graphics/lights.mjs @@ -126,11 +126,8 @@ async function example({ canvas, deviceType, assetPath, glslangPath, twgslPath, pc.LightComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.ContainerHandler, - // @ts-ignore pc.CubemapHandler ]; diff --git a/examples/src/examples/graphics/lines.mjs b/examples/src/examples/graphics/lines.mjs index 538cd0ebb42..b280a743799 100644 --- a/examples/src/examples/graphics/lines.mjs +++ b/examples/src/examples/graphics/lines.mjs @@ -26,7 +26,6 @@ async function example({ canvas, deviceType, assetPath, glslangPath, twgslPath } pc.LightComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler ]; diff --git a/examples/src/examples/graphics/lit-material.mjs b/examples/src/examples/graphics/lit-material.mjs index a96f75816a7..eb47a3a4c4a 100644 --- a/examples/src/examples/graphics/lit-material.mjs +++ b/examples/src/examples/graphics/lit-material.mjs @@ -37,15 +37,10 @@ async function example({ canvas, deviceType, assetPath, scriptsPath, glslangPath pc.ElementComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.ContainerHandler, - // @ts-ignore pc.ScriptHandler, - // @ts-ignore pc.JsonHandler, - // @ts-ignore pc.FontHandler ]; diff --git a/examples/src/examples/graphics/material-anisotropic.mjs b/examples/src/examples/graphics/material-anisotropic.mjs index c72d0b18a53..8ed14e3bb64 100644 --- a/examples/src/examples/graphics/material-anisotropic.mjs +++ b/examples/src/examples/graphics/material-anisotropic.mjs @@ -30,9 +30,7 @@ async function example({ canvas, deviceType, assetPath, glslangPath, twgslPath } pc.ElementComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.FontHandler ]; diff --git a/examples/src/examples/graphics/material-basic.mjs b/examples/src/examples/graphics/material-basic.mjs index af1ea4046a3..59d8a6cd41e 100644 --- a/examples/src/examples/graphics/material-basic.mjs +++ b/examples/src/examples/graphics/material-basic.mjs @@ -27,9 +27,7 @@ async function example({ canvas, deviceType, assetPath, glslangPath, twgslPath } pc.ElementComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.FontHandler ]; diff --git a/examples/src/examples/graphics/material-clear-coat.mjs b/examples/src/examples/graphics/material-clear-coat.mjs index f455983b22f..049449184f3 100644 --- a/examples/src/examples/graphics/material-clear-coat.mjs +++ b/examples/src/examples/graphics/material-clear-coat.mjs @@ -31,7 +31,6 @@ async function example({ canvas, deviceType, assetPath, glslangPath, twgslPath } pc.LightComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler ]; diff --git a/examples/src/examples/graphics/material-physical.mjs b/examples/src/examples/graphics/material-physical.mjs index 8c586e9e04b..dc4d7132d60 100644 --- a/examples/src/examples/graphics/material-physical.mjs +++ b/examples/src/examples/graphics/material-physical.mjs @@ -27,9 +27,7 @@ async function example({ canvas, deviceType, assetPath, glslangPath, twgslPath } pc.ElementComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.FontHandler ]; diff --git a/examples/src/examples/graphics/material-translucent-specular.mjs b/examples/src/examples/graphics/material-translucent-specular.mjs index ede6479a96f..2d4da5c4cf9 100644 --- a/examples/src/examples/graphics/material-translucent-specular.mjs +++ b/examples/src/examples/graphics/material-translucent-specular.mjs @@ -28,9 +28,7 @@ async function example({ canvas, deviceType, assetPath, glslangPath, twgslPath } pc.ElementComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.FontHandler ]; diff --git a/examples/src/examples/graphics/mesh-decals.mjs b/examples/src/examples/graphics/mesh-decals.mjs index b70b0a0cadf..d247ff45e7f 100644 --- a/examples/src/examples/graphics/mesh-decals.mjs +++ b/examples/src/examples/graphics/mesh-decals.mjs @@ -25,7 +25,6 @@ async function example({ canvas, deviceType, assetPath, glslangPath, twgslPath } pc.CameraComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler ]; diff --git a/examples/src/examples/graphics/mesh-deformation.mjs b/examples/src/examples/graphics/mesh-deformation.mjs index e2de8247b3b..5714f010870 100644 --- a/examples/src/examples/graphics/mesh-deformation.mjs +++ b/examples/src/examples/graphics/mesh-deformation.mjs @@ -27,9 +27,7 @@ async function example({ canvas, deviceType, assetPath, glslangPath, twgslPath } pc.LightComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.ContainerHandler ]; diff --git a/examples/src/examples/graphics/mesh-generation.mjs b/examples/src/examples/graphics/mesh-generation.mjs index 3e763705c8d..2b27c1c8a94 100644 --- a/examples/src/examples/graphics/mesh-generation.mjs +++ b/examples/src/examples/graphics/mesh-generation.mjs @@ -26,7 +26,6 @@ async function example({ canvas, deviceType, assetPath, glslangPath, twgslPath } pc.LightComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler ]; diff --git a/examples/src/examples/graphics/mesh-morph-many.mjs b/examples/src/examples/graphics/mesh-morph-many.mjs index 052dfed91cb..083024ceb22 100644 --- a/examples/src/examples/graphics/mesh-morph-many.mjs +++ b/examples/src/examples/graphics/mesh-morph-many.mjs @@ -30,9 +30,7 @@ async function example({ canvas, deviceType, assetPath, glslangPath, twgslPath } pc.LightComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.ContainerHandler ]; diff --git a/examples/src/examples/graphics/model-asset.mjs b/examples/src/examples/graphics/model-asset.mjs index 4bb9f0bacf2..53547c58373 100644 --- a/examples/src/examples/graphics/model-asset.mjs +++ b/examples/src/examples/graphics/model-asset.mjs @@ -26,9 +26,7 @@ async function example({ canvas, deviceType, assetPath, glslangPath, twgslPath } pc.LightComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.ContainerHandler ]; diff --git a/examples/src/examples/graphics/model-outline.mjs b/examples/src/examples/graphics/model-outline.mjs index c29e1966672..d7e98232c6a 100644 --- a/examples/src/examples/graphics/model-outline.mjs +++ b/examples/src/examples/graphics/model-outline.mjs @@ -27,7 +27,6 @@ async function example({ canvas, deviceType, scriptsPath, glslangPath, twgslPath pc.ScriptComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.ScriptHandler ]; diff --git a/examples/src/examples/graphics/model-textured-box.mjs b/examples/src/examples/graphics/model-textured-box.mjs index fb4e0b448ed..3809f24354e 100644 --- a/examples/src/examples/graphics/model-textured-box.mjs +++ b/examples/src/examples/graphics/model-textured-box.mjs @@ -26,7 +26,6 @@ async function example({ canvas, deviceType, assetPath, glslangPath, twgslPath } pc.LightComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler ]; diff --git a/examples/src/examples/graphics/multi-render-targets.mjs b/examples/src/examples/graphics/multi-render-targets.mjs index 7147a0f2230..d5dd48122d5 100644 --- a/examples/src/examples/graphics/multi-render-targets.mjs +++ b/examples/src/examples/graphics/multi-render-targets.mjs @@ -40,13 +40,9 @@ async function example({ canvas, deviceType, files, dracoPath, assetPath, glslan pc.ElementComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.ScriptHandler, - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.ContainerHandler, - // @ts-ignore pc.FontHandler ]; diff --git a/examples/src/examples/graphics/multi-view.mjs b/examples/src/examples/graphics/multi-view.mjs index 4bc9ec84233..dc8a8621965 100644 --- a/examples/src/examples/graphics/multi-view.mjs +++ b/examples/src/examples/graphics/multi-view.mjs @@ -72,11 +72,8 @@ async function example({ canvas, deviceType, data, assetPath, scriptsPath, glsla pc.ScriptComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.ContainerHandler, - // @ts-ignore pc.ScriptHandler ]; diff --git a/examples/src/examples/graphics/paint-mesh.mjs b/examples/src/examples/graphics/paint-mesh.mjs index 615c17a194a..2f2b677c558 100644 --- a/examples/src/examples/graphics/paint-mesh.mjs +++ b/examples/src/examples/graphics/paint-mesh.mjs @@ -31,9 +31,7 @@ async function example({ canvas, files, deviceType, assetPath, glslangPath, twgs pc.LightComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.CubemapHandler ]; diff --git a/examples/src/examples/graphics/painter.mjs b/examples/src/examples/graphics/painter.mjs index 4380c6e8d67..ae99c0ae6e0 100644 --- a/examples/src/examples/graphics/painter.mjs +++ b/examples/src/examples/graphics/painter.mjs @@ -27,9 +27,7 @@ async function example({ canvas, deviceType, assetPath, glslangPath, twgslPath } pc.ParticleSystemComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.ScriptHandler ]; diff --git a/examples/src/examples/graphics/particles-spark.mjs b/examples/src/examples/graphics/particles-spark.mjs index 1442c6b4b47..d842ba1f168 100644 --- a/examples/src/examples/graphics/particles-spark.mjs +++ b/examples/src/examples/graphics/particles-spark.mjs @@ -26,7 +26,6 @@ async function example({ canvas, deviceType, assetPath, glslangPath, twgslPath } pc.ParticleSystemComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler ]; diff --git a/examples/src/examples/graphics/point-cloud.mjs b/examples/src/examples/graphics/point-cloud.mjs index 512c8a979e4..e146605fc96 100644 --- a/examples/src/examples/graphics/point-cloud.mjs +++ b/examples/src/examples/graphics/point-cloud.mjs @@ -22,10 +22,8 @@ async function example({ canvas, deviceType, glslangPath, twgslPath, files, asse pc.CameraComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore - pc.ContainerHandler, + pc.ContainerHandler ]; const app = new pc.AppBase(canvas); diff --git a/examples/src/examples/graphics/portal.mjs b/examples/src/examples/graphics/portal.mjs index f78826f528c..6fc44e137e0 100644 --- a/examples/src/examples/graphics/portal.mjs +++ b/examples/src/examples/graphics/portal.mjs @@ -30,11 +30,8 @@ async function example({ canvas, deviceType, assetPath, glslangPath, twgslPath } pc.ScriptComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.ContainerHandler, - // @ts-ignore pc.ScriptHandler ]; diff --git a/examples/src/examples/graphics/post-effects.mjs b/examples/src/examples/graphics/post-effects.mjs index 652211c71d3..08cca617fd5 100644 --- a/examples/src/examples/graphics/post-effects.mjs +++ b/examples/src/examples/graphics/post-effects.mjs @@ -192,13 +192,9 @@ async function example({ canvas, deviceType, data, assetPath, scriptsPath, glsla pc.ElementComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.ScriptHandler, - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.ContainerHandler, - // @ts-ignore pc.FontHandler ]; diff --git a/examples/src/examples/graphics/post-processing.mjs b/examples/src/examples/graphics/post-processing.mjs index aedb41b9aab..d5171c2da86 100644 --- a/examples/src/examples/graphics/post-processing.mjs +++ b/examples/src/examples/graphics/post-processing.mjs @@ -244,13 +244,9 @@ async function example({ canvas, deviceType, assetPath, scriptsPath, glslangPath pc.ElementComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.ContainerHandler, - // @ts-ignore pc.ScriptHandler, - // @ts-ignore pc.FontHandler ]; diff --git a/examples/src/examples/graphics/reflection-box.mjs b/examples/src/examples/graphics/reflection-box.mjs index 07a5a2c7377..31649f5e5b2 100644 --- a/examples/src/examples/graphics/reflection-box.mjs +++ b/examples/src/examples/graphics/reflection-box.mjs @@ -88,11 +88,8 @@ async function example({ canvas, deviceType, data, assetPath, scriptsPath, glsla pc.ScriptComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.ScriptHandler, - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.ContainerHandler ]; diff --git a/examples/src/examples/graphics/reflection-cubemap.mjs b/examples/src/examples/graphics/reflection-cubemap.mjs index 71617750287..bf227bc6436 100644 --- a/examples/src/examples/graphics/reflection-cubemap.mjs +++ b/examples/src/examples/graphics/reflection-cubemap.mjs @@ -28,9 +28,7 @@ async function example({ canvas, deviceType, assetPath, glslangPath, twgslPath, pc.ScriptComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.ScriptHandler ]; diff --git a/examples/src/examples/graphics/reflection-planar.mjs b/examples/src/examples/graphics/reflection-planar.mjs index 75bd47a87ab..7f2132167de 100644 --- a/examples/src/examples/graphics/reflection-planar.mjs +++ b/examples/src/examples/graphics/reflection-planar.mjs @@ -29,11 +29,8 @@ async function example({ canvas, deviceType, files, scriptsPath, assetPath, glsl pc.ScriptComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.ScriptHandler, - // @ts-ignore pc.ContainerHandler ]; diff --git a/examples/src/examples/graphics/render-asset.mjs b/examples/src/examples/graphics/render-asset.mjs index 94d3194eed4..061ba4b189b 100644 --- a/examples/src/examples/graphics/render-asset.mjs +++ b/examples/src/examples/graphics/render-asset.mjs @@ -28,9 +28,7 @@ async function example({ canvas, deviceType, assetPath, glslangPath, twgslPath } pc.LightComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.ContainerHandler ]; diff --git a/examples/src/examples/graphics/render-pass.mjs b/examples/src/examples/graphics/render-pass.mjs index bb2038f051a..92aa3187838 100644 --- a/examples/src/examples/graphics/render-pass.mjs +++ b/examples/src/examples/graphics/render-pass.mjs @@ -60,9 +60,7 @@ async function example({ canvas, deviceType, assetPath, glslangPath, twgslPath, pc.LightComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.ContainerHandler ]; diff --git a/examples/src/examples/graphics/render-to-texture.mjs b/examples/src/examples/graphics/render-to-texture.mjs index bf17c32ed27..4fc9f80dd4c 100644 --- a/examples/src/examples/graphics/render-to-texture.mjs +++ b/examples/src/examples/graphics/render-to-texture.mjs @@ -42,9 +42,7 @@ async function example({ canvas, deviceType, assetPath, glslangPath, twgslPath, pc.ParticleSystemComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.ScriptHandler ]; diff --git a/examples/src/examples/graphics/shader-burn.mjs b/examples/src/examples/graphics/shader-burn.mjs index 5fcfb647ad6..2d4d1523d73 100644 --- a/examples/src/examples/graphics/shader-burn.mjs +++ b/examples/src/examples/graphics/shader-burn.mjs @@ -32,9 +32,7 @@ async function example({ canvas, deviceType, files, assetPath, glslangPath, twgs pc.LightComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.ContainerHandler ]; diff --git a/examples/src/examples/graphics/shader-compile.mjs b/examples/src/examples/graphics/shader-compile.mjs index 592a0f62243..e4499fdf419 100644 --- a/examples/src/examples/graphics/shader-compile.mjs +++ b/examples/src/examples/graphics/shader-compile.mjs @@ -36,11 +36,8 @@ async function example({ canvas, deviceType, assetPath, glslangPath, twgslPath } pc.LightComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.ContainerHandler, - // @ts-ignore pc.JsonHandler ]; diff --git a/examples/src/examples/graphics/shader-toon.mjs b/examples/src/examples/graphics/shader-toon.mjs index 49d7313a66e..d774a0f2ca0 100644 --- a/examples/src/examples/graphics/shader-toon.mjs +++ b/examples/src/examples/graphics/shader-toon.mjs @@ -31,9 +31,7 @@ async function example({ canvas, deviceType, files, assetPath, glslangPath, twgs pc.LightComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.ContainerHandler ]; diff --git a/examples/src/examples/graphics/shader-wobble.mjs b/examples/src/examples/graphics/shader-wobble.mjs index e982a5764d7..1aa85ff5882 100644 --- a/examples/src/examples/graphics/shader-wobble.mjs +++ b/examples/src/examples/graphics/shader-wobble.mjs @@ -31,9 +31,7 @@ async function example({ canvas, deviceType, files, assetPath, glslangPath, twgs pc.LightComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.ContainerHandler ]; diff --git a/examples/src/examples/graphics/shadow-cascades.mjs b/examples/src/examples/graphics/shadow-cascades.mjs index 66507888006..37dfa3b2656 100644 --- a/examples/src/examples/graphics/shadow-cascades.mjs +++ b/examples/src/examples/graphics/shadow-cascades.mjs @@ -102,11 +102,8 @@ async function example({ canvas, deviceType, data, assetPath, scriptsPath, glsla pc.ScriptComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.ContainerHandler, - // @ts-ignore pc.ScriptHandler ]; diff --git a/examples/src/examples/graphics/shapes.mjs b/examples/src/examples/graphics/shapes.mjs index 4b6ca8e63d6..ab8716f91dc 100644 --- a/examples/src/examples/graphics/shapes.mjs +++ b/examples/src/examples/graphics/shapes.mjs @@ -23,9 +23,7 @@ async function example({ canvas, deviceType, glslangPath, twgslPath }) { pc.LightComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.ContainerHandler ]; diff --git a/examples/src/examples/graphics/texture-array.mjs b/examples/src/examples/graphics/texture-array.mjs index a80b4e151c0..5f61c59685c 100644 --- a/examples/src/examples/graphics/texture-array.mjs +++ b/examples/src/examples/graphics/texture-array.mjs @@ -102,11 +102,8 @@ async function example({ canvas, deviceType, data, files, assetPath, scriptsPath pc.ScriptComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.ContainerHandler, - // @ts-ignore pc.ScriptHandler ]; diff --git a/examples/src/examples/graphics/texture-basis.mjs b/examples/src/examples/graphics/texture-basis.mjs index 117cba5c0c0..8457e2d3a78 100644 --- a/examples/src/examples/graphics/texture-basis.mjs +++ b/examples/src/examples/graphics/texture-basis.mjs @@ -42,9 +42,7 @@ async function example({ canvas, deviceType, assetPath, glslangPath, twgslPath, pc.LightComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.ContainerHandler ]; diff --git a/examples/src/examples/graphics/transform-feedback.mjs b/examples/src/examples/graphics/transform-feedback.mjs index 76b615c8ed3..4f303eaf689 100644 --- a/examples/src/examples/graphics/transform-feedback.mjs +++ b/examples/src/examples/graphics/transform-feedback.mjs @@ -23,10 +23,8 @@ async function example({ canvas, deviceType, glslangPath, twgslPath, files, asse pc.LightComponentSystem, ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore - pc.ContainerHandler, + pc.ContainerHandler ]; const app = new pc.AppBase(canvas); diff --git a/examples/src/examples/graphics/video-texture.mjs b/examples/src/examples/graphics/video-texture.mjs index 4f0a1e3d0cc..fa4fbc6dbc7 100644 --- a/examples/src/examples/graphics/video-texture.mjs +++ b/examples/src/examples/graphics/video-texture.mjs @@ -21,10 +21,8 @@ async function example({ canvas, deviceType, glslangPath, twgslPath, assetPath } pc.LightComponentSystem, ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore - pc.ContainerHandler, + pc.ContainerHandler ]; const app = new pc.AppBase(canvas); diff --git a/examples/src/examples/input/gamepad.mjs b/examples/src/examples/input/gamepad.mjs index aad87fe9d6f..9817cd0ced6 100644 --- a/examples/src/examples/input/gamepad.mjs +++ b/examples/src/examples/input/gamepad.mjs @@ -28,9 +28,7 @@ async function example({ canvas, deviceType, assetPath, glslangPath, twgslPath } pc.CameraComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.ContainerHandler ]; diff --git a/examples/src/examples/input/keyboard.mjs b/examples/src/examples/input/keyboard.mjs index 4b3f8f7608b..4a108539042 100644 --- a/examples/src/examples/input/keyboard.mjs +++ b/examples/src/examples/input/keyboard.mjs @@ -26,9 +26,7 @@ async function example({ canvas, deviceType, assetPath, glslangPath, twgslPath } pc.CameraComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.ContainerHandler ]; diff --git a/examples/src/examples/input/mouse.mjs b/examples/src/examples/input/mouse.mjs index 03e03391d4b..3b2ea3cd703 100644 --- a/examples/src/examples/input/mouse.mjs +++ b/examples/src/examples/input/mouse.mjs @@ -25,9 +25,7 @@ async function example({ canvas, deviceType, assetPath, glslangPath, twgslPath } pc.CameraComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.ContainerHandler ]; diff --git a/examples/src/examples/loaders/draco-glb.mjs b/examples/src/examples/loaders/draco-glb.mjs index a530aa19733..af340354ec3 100644 --- a/examples/src/examples/loaders/draco-glb.mjs +++ b/examples/src/examples/loaders/draco-glb.mjs @@ -28,9 +28,7 @@ async function example({ canvas, deviceType, assetPath, glslangPath, twgslPath, pc.LightComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.ContainerHandler ]; diff --git a/examples/src/examples/loaders/glb.mjs b/examples/src/examples/loaders/glb.mjs index 7c8c5a4a064..bcdd66b9e51 100644 --- a/examples/src/examples/loaders/glb.mjs +++ b/examples/src/examples/loaders/glb.mjs @@ -29,9 +29,7 @@ async function example({ canvas, deviceType, assetPath, glslangPath, twgslPath } pc.LightComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.ContainerHandler ]; diff --git a/examples/src/examples/loaders/gltf-export.mjs b/examples/src/examples/loaders/gltf-export.mjs index 97e212d1b54..17b0bb60746 100644 --- a/examples/src/examples/loaders/gltf-export.mjs +++ b/examples/src/examples/loaders/gltf-export.mjs @@ -52,9 +52,7 @@ async function example({ canvas, deviceType, assetPath, glslangPath, twgslPath, pc.LightComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.ContainerHandler ]; diff --git a/examples/src/examples/loaders/gsplat-many.mjs b/examples/src/examples/loaders/gsplat-many.mjs index 60e65fd5e42..e6c2ecc804f 100644 --- a/examples/src/examples/loaders/gsplat-many.mjs +++ b/examples/src/examples/loaders/gsplat-many.mjs @@ -47,13 +47,9 @@ async function example({ canvas, deviceType, data, assetPath, scriptsPath, glsla pc.GSplatComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.ContainerHandler, - // @ts-ignore pc.ScriptHandler, - // @ts-ignore pc.GSplatHandler ]; diff --git a/examples/src/examples/loaders/gsplat.mjs b/examples/src/examples/loaders/gsplat.mjs index 31bcfa9fe6c..0fcd0c6b86a 100644 --- a/examples/src/examples/loaders/gsplat.mjs +++ b/examples/src/examples/loaders/gsplat.mjs @@ -29,13 +29,9 @@ async function example({ canvas, deviceType, assetPath, scriptsPath, glslangPath pc.GSplatComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.ContainerHandler, - // @ts-ignore pc.ScriptHandler, - // @ts-ignore pc.GSplatHandler ]; diff --git a/examples/src/examples/loaders/loaders-gl.mjs b/examples/src/examples/loaders/loaders-gl.mjs index ed0682451cb..c80c98a6fc8 100644 --- a/examples/src/examples/loaders/loaders-gl.mjs +++ b/examples/src/examples/loaders/loaders-gl.mjs @@ -34,9 +34,7 @@ async function example({ canvas, deviceType, files, assetPath, glslangPath, twgs pc.LightComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.ContainerHandler ]; diff --git a/examples/src/examples/loaders/obj.mjs b/examples/src/examples/loaders/obj.mjs index 82ea3d8caa4..3c4a4cff913 100644 --- a/examples/src/examples/loaders/obj.mjs +++ b/examples/src/examples/loaders/obj.mjs @@ -23,14 +23,10 @@ async function example({ canvas, deviceType, glslangPath, twgslPath, assetPath, pc.ModelComponentSystem, ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.ContainerHandler, - // @ts-ignore pc.ScriptHandler, - // @ts-ignore - pc.ModelHandler, + pc.ModelHandler ]; const app = new pc.AppBase(canvas); diff --git a/examples/src/examples/loaders/usdz-export.mjs b/examples/src/examples/loaders/usdz-export.mjs index f4434ea13d8..9d2d692232d 100644 --- a/examples/src/examples/loaders/usdz-export.mjs +++ b/examples/src/examples/loaders/usdz-export.mjs @@ -39,9 +39,7 @@ async function example({ canvas, deviceType, assetPath, glslangPath, twgslPath, pc.LightComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.ContainerHandler ]; diff --git a/examples/src/examples/misc/gizmos.mjs b/examples/src/examples/misc/gizmos.mjs index 862caa383fa..963985221d5 100644 --- a/examples/src/examples/misc/gizmos.mjs +++ b/examples/src/examples/misc/gizmos.mjs @@ -410,11 +410,8 @@ async function example({ pcx, canvas, deviceType, data, glslangPath, twgslPath, pc.ScriptComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.ContainerHandler, - // @ts-ignore pc.ScriptHandler ]; diff --git a/examples/src/examples/misc/hello-world.mjs b/examples/src/examples/misc/hello-world.mjs index d08df9ef8b7..63f7e516d46 100644 --- a/examples/src/examples/misc/hello-world.mjs +++ b/examples/src/examples/misc/hello-world.mjs @@ -22,9 +22,7 @@ async function example({ canvas, deviceType, glslangPath, twgslPath }) { pc.LightComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.ContainerHandler ]; diff --git a/examples/src/examples/misc/spineboy.mjs b/examples/src/examples/misc/spineboy.mjs index 293ba677120..01b43d410d9 100644 --- a/examples/src/examples/misc/spineboy.mjs +++ b/examples/src/examples/misc/spineboy.mjs @@ -28,13 +28,9 @@ async function example({ canvas, deviceType, assetPath, scriptsPath, glslangPath pc.ScriptComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.ScriptHandler, - // @ts-ignore pc.JsonHandler, - // @ts-ignore pc.TextHandler ]; diff --git a/examples/src/examples/physics/compound-collision.mjs b/examples/src/examples/physics/compound-collision.mjs index 1763119b7db..d492898a1fa 100644 --- a/examples/src/examples/physics/compound-collision.mjs +++ b/examples/src/examples/physics/compound-collision.mjs @@ -34,15 +34,10 @@ async function example({ canvas, deviceType, ammoPath, glslangPath, twgslPath }) pc.ElementComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.ContainerHandler, - // @ts-ignore pc.ScriptHandler, - // @ts-ignore pc.JsonHandler, - // @ts-ignore pc.FontHandler ]; diff --git a/examples/src/examples/physics/falling-shapes.mjs b/examples/src/examples/physics/falling-shapes.mjs index 2817448c225..8017e9b90f8 100644 --- a/examples/src/examples/physics/falling-shapes.mjs +++ b/examples/src/examples/physics/falling-shapes.mjs @@ -38,15 +38,10 @@ async function example({ canvas, deviceType, assetPath, ammoPath, glslangPath, t pc.ElementComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.ContainerHandler, - // @ts-ignore pc.ScriptHandler, - // @ts-ignore pc.JsonHandler, - // @ts-ignore pc.FontHandler ]; diff --git a/examples/src/examples/physics/offset-collision.mjs b/examples/src/examples/physics/offset-collision.mjs index 6e3833d6738..0ce66add74b 100644 --- a/examples/src/examples/physics/offset-collision.mjs +++ b/examples/src/examples/physics/offset-collision.mjs @@ -40,15 +40,10 @@ async function example({ canvas, deviceType, assetPath, ammoPath, glslangPath, t pc.AnimComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.ContainerHandler, - // @ts-ignore pc.ScriptHandler, - // @ts-ignore pc.AnimClipHandler, - // @ts-ignore pc.AnimStateGraphHandler ]; diff --git a/examples/src/examples/physics/raycast.mjs b/examples/src/examples/physics/raycast.mjs index 3b8cfbcd6af..2c0a1af097d 100644 --- a/examples/src/examples/physics/raycast.mjs +++ b/examples/src/examples/physics/raycast.mjs @@ -38,15 +38,10 @@ async function example({ canvas, deviceType, assetPath, ammoPath, glslangPath, t pc.ElementComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.ContainerHandler, - // @ts-ignore pc.ScriptHandler, - // @ts-ignore pc.JsonHandler, - // @ts-ignore pc.FontHandler ]; diff --git a/examples/src/examples/physics/vehicle.mjs b/examples/src/examples/physics/vehicle.mjs index 76ecb76b741..43da368afb8 100644 --- a/examples/src/examples/physics/vehicle.mjs +++ b/examples/src/examples/physics/vehicle.mjs @@ -41,13 +41,9 @@ async function example({ canvas, deviceType, assetPath, scriptsPath, ammoPath, g pc.RigidBodyComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.ContainerHandler, - // @ts-ignore pc.ScriptHandler, - // @ts-ignore pc.JsonHandler ]; diff --git a/examples/src/examples/sound/positional.mjs b/examples/src/examples/sound/positional.mjs index c069ea56cf7..3cbad12e278 100644 --- a/examples/src/examples/sound/positional.mjs +++ b/examples/src/examples/sound/positional.mjs @@ -27,19 +27,12 @@ async function example({ canvas, deviceType, glslangPath, twgslPath, assetPath } pc.AudioListenerComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.ContainerHandler, - // @ts-ignore pc.AudioHandler, - // @ts-ignore pc.JsonHandler, - // @ts-ignore pc.AnimationHandler, - // @ts-ignore pc.ModelHandler, - // @ts-ignore pc.MaterialHandler ]; diff --git a/examples/src/examples/user-interface/button-basic.mjs b/examples/src/examples/user-interface/button-basic.mjs index 0b9f1bfc33f..7a1f1480ec7 100644 --- a/examples/src/examples/user-interface/button-basic.mjs +++ b/examples/src/examples/user-interface/button-basic.mjs @@ -31,9 +31,7 @@ async function example({ canvas, deviceType, assetPath, glslangPath, twgslPath } pc.ElementComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.FontHandler ]; diff --git a/examples/src/examples/user-interface/button-sprite.mjs b/examples/src/examples/user-interface/button-sprite.mjs index 8c5f66cee05..a94abc358aa 100644 --- a/examples/src/examples/user-interface/button-sprite.mjs +++ b/examples/src/examples/user-interface/button-sprite.mjs @@ -33,9 +33,7 @@ async function example({ canvas, deviceType, assetPath, glslangPath, twgslPath } pc.ElementComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.FontHandler ]; diff --git a/examples/src/examples/user-interface/custom-shader.mjs b/examples/src/examples/user-interface/custom-shader.mjs index 632c6f2415c..0b6489c5fa9 100644 --- a/examples/src/examples/user-interface/custom-shader.mjs +++ b/examples/src/examples/user-interface/custom-shader.mjs @@ -34,9 +34,7 @@ async function example({ canvas, deviceType, files, assetPath, glslangPath, twgs pc.ElementComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.FontHandler ]; diff --git a/examples/src/examples/user-interface/layout-group.mjs b/examples/src/examples/user-interface/layout-group.mjs index 8caeb22659f..3b4f39bcdd0 100644 --- a/examples/src/examples/user-interface/layout-group.mjs +++ b/examples/src/examples/user-interface/layout-group.mjs @@ -33,9 +33,7 @@ async function example({ canvas, deviceType, assetPath, glslangPath, twgslPath } pc.LayoutChildComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.FontHandler ]; diff --git a/examples/src/examples/user-interface/particle-system.mjs b/examples/src/examples/user-interface/particle-system.mjs index 6bc568d508d..f6646f36b5c 100644 --- a/examples/src/examples/user-interface/particle-system.mjs +++ b/examples/src/examples/user-interface/particle-system.mjs @@ -33,9 +33,7 @@ async function example({ canvas, deviceType, assetPath, glslangPath, twgslPath } pc.ParticleSystemComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.FontHandler ]; diff --git a/examples/src/examples/user-interface/scroll-view.mjs b/examples/src/examples/user-interface/scroll-view.mjs index 3a423a60bb7..7a0a808023a 100644 --- a/examples/src/examples/user-interface/scroll-view.mjs +++ b/examples/src/examples/user-interface/scroll-view.mjs @@ -34,9 +34,7 @@ async function example({ canvas, deviceType, assetPath, glslangPath, twgslPath } pc.ScrollbarComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.FontHandler ]; diff --git a/examples/src/examples/user-interface/text-auto-font-size.mjs b/examples/src/examples/user-interface/text-auto-font-size.mjs index 5e15ec11b91..11fd81605c1 100644 --- a/examples/src/examples/user-interface/text-auto-font-size.mjs +++ b/examples/src/examples/user-interface/text-auto-font-size.mjs @@ -35,9 +35,7 @@ async function example({ canvas, deviceType, assetPath, glslangPath, twgslPath } pc.ScrollbarComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.FontHandler ]; diff --git a/examples/src/examples/user-interface/text-emojis.mjs b/examples/src/examples/user-interface/text-emojis.mjs index bca5b9040ae..e3714a15f4e 100644 --- a/examples/src/examples/user-interface/text-emojis.mjs +++ b/examples/src/examples/user-interface/text-emojis.mjs @@ -35,9 +35,7 @@ async function example({ canvas, deviceType, assetPath, glslangPath, twgslPath } pc.LayoutChildComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.FontHandler ]; diff --git a/examples/src/examples/user-interface/text-localization.mjs b/examples/src/examples/user-interface/text-localization.mjs index 327134319f0..c66691d6d96 100644 --- a/examples/src/examples/user-interface/text-localization.mjs +++ b/examples/src/examples/user-interface/text-localization.mjs @@ -31,9 +31,7 @@ async function example({ canvas, deviceType, assetPath, glslangPath, twgslPath } pc.ElementComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.FontHandler ]; diff --git a/examples/src/examples/user-interface/text-typewriter.mjs b/examples/src/examples/user-interface/text-typewriter.mjs index 8bdc534ea9b..5396a228ab7 100644 --- a/examples/src/examples/user-interface/text-typewriter.mjs +++ b/examples/src/examples/user-interface/text-typewriter.mjs @@ -32,9 +32,7 @@ async function example({ canvas, deviceType, assetPath, glslangPath, twgslPath } pc.ElementComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.FontHandler ]; diff --git a/examples/src/examples/user-interface/text.mjs b/examples/src/examples/user-interface/text.mjs index b3c5a6c6c7d..59a276f0d31 100644 --- a/examples/src/examples/user-interface/text.mjs +++ b/examples/src/examples/user-interface/text.mjs @@ -33,9 +33,7 @@ async function example({ canvas, deviceType, assetPath, glslangPath, twgslPath } pc.ScrollbarComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.FontHandler ]; diff --git a/examples/src/examples/user-interface/world-to-screen.mjs b/examples/src/examples/user-interface/world-to-screen.mjs index 138aa56d25e..85b77468145 100644 --- a/examples/src/examples/user-interface/world-to-screen.mjs +++ b/examples/src/examples/user-interface/world-to-screen.mjs @@ -33,9 +33,7 @@ async function example({ canvas, deviceType, assetPath, glslangPath, twgslPath } pc.ElementComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.FontHandler ]; diff --git a/examples/src/examples/user-interface/world-ui.mjs b/examples/src/examples/user-interface/world-ui.mjs index 492b5d4d467..386004b4c4a 100644 --- a/examples/src/examples/user-interface/world-ui.mjs +++ b/examples/src/examples/user-interface/world-ui.mjs @@ -35,11 +35,8 @@ async function example({ canvas, deviceType, assetPath, scriptsPath, glslangPath pc.ScriptComponentSystem ]; createOptions.resourceHandlers = [ - // @ts-ignore pc.TextureHandler, - // @ts-ignore pc.FontHandler, - // @ts-ignore pc.ScriptHandler ]; diff --git a/src/framework/app-options.js b/src/framework/app-options.js index 667834fa942..9b2473e5667 100644 --- a/src/framework/app-options.js +++ b/src/framework/app-options.js @@ -1,3 +1,7 @@ +/** + * AppOptions is an object that holds configuration settings utilized in the creation of AppBase. It + * allows functionality to be included or excluded from the AppBase instance. + */ class AppOptions { /** * Input handler for {@link ElementComponent}s. @@ -72,21 +76,21 @@ class AppOptions { /** * The lightmapper. * - * @type {import('./lightmapper/lightmapper.js').Lightmapper} + * @type {typeof import('./lightmapper/lightmapper.js').Lightmapper} */ lightmapper; /** * The BatchManager. * - * @type {import('../scene/batching/batch-manager.js').BatchManager} + * @type {typeof import('../scene/batching/batch-manager.js').BatchManager} */ batchManager; /** * The XrManager. * - * @type {import('./xr/xr-manager.js').XrManager} + * @type {typeof import('./xr/xr-manager.js').XrManager} */ xr; @@ -100,7 +104,7 @@ class AppOptions { /** * The resource handlers the app requires. * - * @type {import('./handlers/handler.js').ResourceHandler[]} + * @type {typeof import('./handlers/handler.js').ResourceHandler[]} */ resourceHandlers = []; }