# API (vanilla.js 0.4.0)

- [base/wait](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/base/wait&lang=en): Asynchronous wait functions. (await seconds or frames)
- [base/math](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/base/math&lang=en): Math functions. (interpolation, clamping, rounding, trigonometry, random numbers, following)
- Importing the engine's Math hides the JavaScript built-in Math under that name.
- [base/reflection](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/base/reflection&lang=en): Reflection functions. (presence checks, type checks, class inheritance checks, cloning, unique identifiers)
- [base/object](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/base/object&lang=en): Base object.
- [base/color](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/base/color&lang=en): Color.
- [base/colors](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/base/colors&lang=en): Color value.
- [base/vector2](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/base/vector2&lang=en): 2D vector.
- [base/vector3](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/base/vector3&lang=en): 3D vector.
- [base/matrix4](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/base/matrix4&lang=en): 4x4 transform matrix. (Column-major, can be uploaded as is with WebGL uniformMatrix4fv)
- [base/transformmatrix](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/base/transformmatrix&lang=en): 2D affine transform matrix. (3x2 form compatible with Canvas2D)
- [base/quaternion](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/base/quaternion&lang=en): Quaternion. (3D rotation, the basic unit of skeletal animation interpolation)
- [base/pivot](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/base/pivot&lang=en): Pivot. (In the 2D coordinate system, uses top-left (0,0) ~ bottom-right (1,1) as the reference.)
- [base/rect](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/base/rect&lang=en): Rectangular area.
- [base/obb](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/base/obb&lang=en): Rotated bounding box.
- [base/platform](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/base/platform&lang=en): Platform information.
- [base/identifier](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/base/identifier&lang=en): Identifier generator.
- [base/version](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/base/version&lang=en): Version class.
- [base/node](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/base/node&lang=en): Hierarchy object.
- [core/engine](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/core/engine&lang=en): Engine.
- [core/modaldialog](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/core/modaldialog&lang=en): Modal dialog. (in place of the browser window.alert, window.confirm and window.prompt that games called, same as core/modaldialog.rs in the Rust edition)
- The engine draws a dialog like the Chrome tab modal dialog (JavaScriptTabModalDialogViewViews) on top of the canvas. (no browser dialog is opened)
  - Position: horizontal center at the top edge of the canvas. The title is "This page says" (in the browser UI language, core/browseruitext.js). There is no close X.
  - alert has only OK, confirm and prompt have OK and Cancel. The default button is OK. The button order follows Chrome: `[OK][Cancel]` on Windows, `[Cancel][OK]` elsewhere.
  - The prompt field gets the default value fully selected and takes focus. Enter confirms, Escape cancels.
  - While open, scenes are not updated (the frozen screen is still drawn) and the dialog holds the keyboard focus. When it closes, pressed keys and buttons are cleared and focus is given back.
  - A hidden DOM input receives the field text (IME, editing keys, undo). Pressing and dragging sets the cursor and selection.
  - Several dialogs requested in one frame are shown one after another.
- The shadow bakes the two layers of the Chrome bubble_border (offset 2 down, blur 8 and 12) as Gaussians with the views sigma. (core/blurshadow.js)
- [core/asset](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/core/asset&lang=en): Asset.
- [core/timemanager](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/core/timemanager&lang=en): Time manager.
- [core/viewmanager](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/core/viewmanager&lang=en): View manager.
- [core/inputmanager](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/core/inputmanager&lang=en): Input manager.
- [core/pointercursor](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/core/pointercursor&lang=en): Mouse cursor.
- [core/touchraycaster](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/core/touchraycaster&lang=en): Touch raycaster.
- [ui/touchrecognizer](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/ui/touchrecognizer&lang=en): Distance (px) at which it is judged to have switched to a drag.
- [core/graphic](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/core/graphic&lang=en): Graphics.
- [core/graphic/colorspace](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/core/graphic/colorspace&lang=en): Color space. (The setting each game uses to choose the space for 3D lighting, in the form of Color Space in Unity's Player Settings)
- gamma (default): the path so far. Color textures are uploaded as RGBA, the shader converts to linear with the pow(color, 2.2) approximation for lighting and outputs screen color with pow(1 / 2.2).
  Base color, tint and decal are multiplied and mixed as gamma-encoded colors (sRGB). The screens of released games do not change.
- linear: the standard path for 3D. Color textures (base color, glow, decal, matcap, angel ring, ramp) are uploaded as SRGB8_ALPHA8 and the GPU decodes them to linear
  (filtering and mipmaps in linear space), and passed colors (vertex color, tint, glow color, decal color, outline color) are converted to linear with the sRGB standard curve (IEC 61966-2-1)
  before multiplying and mixing. Screen output is converted back to sRGB with the same curve. Data textures such as normals and masks stay linear. (isColorData: false of ToonRenderer.createTexture)
- A game chooses once with EngineConfiguration.colorSpace. The toon renderer, post process, screen outline and GLB reading follow the engine's value unless given their own.
  (Pages without an engine use gamma) The chosen value is fixed at construction and does not change afterwards. (Programs and texture formats differ)
- 2D (Graphic's 2D batch, text, UI) mixes and composites in gamma space (sRGB values as is) either way, as before. This setting only splits the 3D (toon) path.
- Shaders: in linear, #define VANILLA_COLOR_SPACE_LINEAR 1 is added on the line after #version of the 3D shaders the engine builds.
  Material chunks can branch with #ifdef VANILLA_COLOR_SPACE_LINEAR. (The same use as UNITY_COLORSPACE_GAMMA in Unity shaders)
- [core/scene](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/core/scene&lang=en): Scene.
- [game/gamescene](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/game/gamescene&lang=en): Common base scene for games.
- [core/node/componentnode](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/core/node/componentnode&lang=en): Hierarchical component processing object.
- [core/node/transformnode](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/core/node/transformnode&lang=en): Hierarchical TRS object.
- [core/node/worldnode](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/core/node/worldnode&lang=en): Hierarchical area object.
- [ui/uinode](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/ui/uinode&lang=en): A sentinel value with the same meaning as UIKit's UIView.noIntrinsicMetric.
- If x or y of getIntrinsicContentSize is this value, that axis has no intrinsic preference.
- [core/tween](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/core/tween&lang=en): Tween.
- [core/component](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/core/component&lang=en): Component.
- [core/frame](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/core/frame&lang=en): Image region.
- [core/animation](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/core/animation&lang=en): Animation handler.
- [core/component/paint](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/core/component/paint&lang=en): Component that determines the color and opacity of the content.
- [core/component/outline](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/core/component/outline&lang=en): Component that draws only a border. (rounded rectangle border or circle border)
- [core/component/softshade](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/core/component/softshade&lang=en): Soft shade.
- [core/component/shadowtext](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/core/component/shadowtext&lang=en): Single-line text with a shadow.
- [core/component/shadowimage](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/core/component/shadowimage&lang=en): Image with a shadow.
- [core/component/sprite](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/core/component/sprite&lang=en): Sprite renderer component.
- [core/component/text](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/core/component/text&lang=en): Plain text renderer component.
- [core/component/richtext](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/core/component/richtext&lang=en): Markup color name → HEX mapping. (compatible with Unity TMP)
- [core/component/mask](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/core/component/mask&lang=en): Mask component.
- [ui/uiscene](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/ui/uiscene&lang=en): UI scene.
- [ui/uiview](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/ui/uiview&lang=en): View component.
- [ui/uiimageview](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/ui/uiimageview&lang=en): UI image view.
- [ui/uilabel](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/ui/uilabel&lang=en): UI label.
- [ui/uicontrol](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/ui/uicontrol&lang=en): UI control.
- [ui/uibutton](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/ui/uibutton&lang=en): Button.
- [ui/uitogglebutton](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/ui/uitogglebutton&lang=en): Toggle button component.
- [ui/uiscrollview](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/ui/uiscrollview&lang=en): Default scrollbar thickness / margin (UIKit indicator style).
- [ui/uiprogressview](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/ui/uiprogressview&lang=en): Progress display.
- [ui/uiprogressring](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/ui/uiprogressring&lang=en): Progress ring.
- [ui/uihitarea](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/ui/uihitarea&lang=en): Expands the press area.
- [ui/buttonmotion](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/ui/buttonmotion&lang=en): Button motion. (Grows on hover, shrinks while pressed, bounces on release, shakes when not pressable, does not grow inside windows, section 8.1)
- [ui/uiscrollbar](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/ui/uiscrollbar&lang=en): Scroll bar.
- [ui/uiinputfield](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/ui/uiinputfield&lang=en): Input field (canvas based).
- [ui/autolayout/layoutstrength](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/ui/autolayout/layoutstrength&lang=en): Layout constraint strength.
- [ui/autolayout/layoutpriority](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/ui/autolayout/layoutpriority&lang=en): Layout priority. (Same concept as UIKit's UILayoutPriority)
- [ui/autolayout/layoutconstraintaxis](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/ui/autolayout/layoutconstraintaxis&lang=en): Layout constraint axis. (Same concept as UIKit's NSLayoutConstraint.Axis)
- [ui/autolayout/layoutvariable](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/ui/autolayout/layoutvariable&lang=en): Layout solver unknown.
- [ui/autolayout/layoutterm](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/ui/autolayout/layoutterm&lang=en): A term of an expression. coefficient * variable.
- [ui/autolayout/layoutexpression](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/ui/autolayout/layoutexpression&lang=en): Linear expression. In the form terms[] + constant.
- [ui/autolayout/layoutrelation](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/ui/autolayout/layoutrelation&lang=en): Constraint relation operator.
- [ui/autolayout/layoutconstraint](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/ui/autolayout/layoutconstraint&lang=en): Layout constraint.
- [ui/autolayout/layoutsolver](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/ui/autolayout/layoutsolver&lang=en): Constraint solver based on Kiwi dual simplex.
- [ui/uislider](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/ui/uislider&lang=en): Slider control.
- [ui/uidocument](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/ui/uidocument&lang=en): UI document. (WorldNode tree ↔ JSON conversion)
- [ui/uisnapscrollview](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/ui/uisnapscrollview&lang=en): Snap scroll view component.
- [resource/animationclip](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/resource/animationclip&lang=en): Animation clip.
- [resource/audioasset](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/resource/audioasset&lang=en): Audio asset.
- [resource/blobasset](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/resource/blobasset&lang=en): Blob asset. (binary)
- [resource/fontasset](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/resource/fontasset&lang=en): Font asset.
- [resource/imageasset](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/resource/imageasset&lang=en): Image asset.
- [resource/jsonasset](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/resource/jsonasset&lang=en): JSON data asset.
- [resource/textasset](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/resource/textasset&lang=en): Text asset.
- [resource/visualasset](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/resource/visualasset&lang=en): Visual asset. (Reads a document file saved by the visual editor and makes a Visual)
- [resource/bunchasset](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/resource/bunchasset&lang=en): Bundle asset.
- [misc/imagescroller](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/misc/imagescroller&lang=en): Image scroller.
- [misc/toucheffect](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/misc/toucheffect&lang=en): Radial gradient texture for particles. (Baked in white and colored by the shader tint)
- WebGL2 has no gradient API, so it is baked only once onto an offscreen 2D canvas.
- [misc/virtualpad](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/misc/virtualpad&lang=en): Virtual pad state.
- [misc/nodelayout](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/misc/nodelayout&lang=en): Node layout.
- [misc/visual](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/misc/visual&lang=en): Visual object. (A component that builds a visual editor document into a node tree at a set location)
- [base/collection/set](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/base/collection/set&lang=en): Set (a collection without duplicates).
- [animation/animator](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/animation/animator&lang=en): Animator. (Picks and blends sprite clips with a state machine)
- [animation/action](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/animation/action&lang=en): Action.
- [core/graphic/shaderprogram](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/core/graphic/shaderprogram&lang=en): Shader program.
- [core/graphic/shaderwarmer](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/core/graphic/shaderwarmer&lang=en): Shader pre-linking.
- [core/fullscreenpass](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/core/fullscreenpass&lang=en): Fullscreen pass. (one triangle covering the whole screen + fragment shader)
- [graphics3d/rendertarget](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/graphics3d/rendertarget&lang=en): Render target. (offscreen framebuffer + color texture [+ depth renderbuffer / depth texture])
- [graphics3d/bloomeffect](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/graphics3d/bloomeffect&lang=en): Bloom effect. (bright area extraction → half resolution Gaussian blur ping-pong)
- [graphics3d/skinnedmodel](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/graphics3d/skinnedmodel&lang=en): Skinned model. (model instance, mesh/bone/skin/material/animation data + pose state)
- [graphics3d/skinnedmodelasset](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/graphics3d/skinnedmodelasset&lang=en): Skinned model asset. (decoded data and GPU resources shared by the model instances built from the same file)
- [graphics3d/skinnedmodelrenderer](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/graphics3d/skinnedmodelrenderer&lang=en): Skinned model renderer. (owns the skinning PBR shader template + environment state, one per scene)
- [graphics3d/jointblock](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/graphics3d/jointblock&lang=en): Joint matrix uniform block. (passes the vertex shader's jointMatrices through a uniform block instead of a default block uniform)
- [graphics3d/toon/meshbuilder](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/graphics3d/toon/meshbuilder&lang=en): Building 3D models. (Builds basic shapes in code and puts them into one vertex array)

Builds the vertex array used to draw toon 3D (single-color clay-like material with outlines). It came from the in-board 3D of webgame-rimminer. (Same form as the three.js basic geometries)
  - Shapes are built in their own coordinates with the center at the origin. When a part is added, position, rotation and scale are multiplied in and it is put into one lump.
  - One vertex is position 3, normal 3, color 3 (sRGB), material 2 (glow strength, unlit), pattern 4 (pattern number, pattern color). The meaning of the pattern number and color is decided by the shader that draws it. (0 means no pattern)
  - Texture coordinates (UV) are stored separately, 2 per vertex, in uvData outside the vertex array. If even one vertex was given a UV, the rest are filled with 0. (uvs of a shape, uvs of addTriangles)
  - The second UV is stored the same way in uv1Data. (uvs1 of a shape, uvs1 of addTriangles, TEXCOORD_1 of GLB, for things that read a second unwrap such as the angel ring)
    (0, 0) is the top left of the image. (Same as glTF) A box is 0 ~ 1 per face, a sphere is 0 ~ 1 by longitude and latitude.
  - A material range (materialRanges) is the span of body vertex indices that holds one material. The GLB reader stores one per primitive. (Material name, extras, textures, indexStart and indexCount of ToonRenderer.drawMesh)
  - The outline is a slightly enlarged copy of the part. Since only its back faces are drawn, it is stored separately. (inverted hull)
  - Triangle winding is fixed by looking at the vertex normals so the outside becomes the front face. (Back-face culling and the outline rely on winding)
- [graphics3d/toon/glbmeshreader](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/graphics3d/toon/glbmeshreader&lang=en): Reading clay models (GLB) and skeleton poses. (Into toon 3D MeshBuilder vertex arrays, came from webgame-rimminer)

Reads models painted with material colors. Texture coordinates and material textures are read too if present.
  - One part is one node, and a node's mesh is one primitive per color. Vertices are position and normal, plus joint indices and weights if there is a skeleton.
    A primitive without normals is read with flat normals (one per triangle) as the glTF 2.0 specification says. Vertices are split per triangle and given the face normal. (The same goes for the rebuilt outline shell)
  - The material's baseColorFactor is a linear color, so it is converted to sRGB (pow 1 / 2.2 in the gamma color space, the sRGB standard curve in the linear color space, the inverse of the curve the shader decodes with), and emissiveFactor, if present, is stored as glow. (If there is an emissiveTexture, glow is passed only through the material range)
  - TEXCOORD_0, if present, goes into uvData and TEXCOORD_1 into uv1Data (second UV, angel ring). A material range (materialRanges) is stored per primitive.
    { name material name, materialIndex, nodeName, indexStart, indexCount, extras material extras, alphaMode, alphaCutoff, baseColorFactor linear, emissiveFactor linear, baseColorImage, emissiveImage (images order, -1 if none), hasUv }
    When painting split areas inside a part (accent color areas, display panels), pick them by material name or extras and draw only that area with indexStart and indexCount of ToonRenderer.drawMesh.
  - Images are read with readGlbImages, decoded with decodeGlbImage and passed to ToonRenderer.createTexture.
  - outline in material extras is an outline shell (only back faces drawn), and basic is a part that does not receive light.
    If outlineOptions is given, that shell is not stored, and a shell of uniform thickness per point is newly built from the body of each node that has a ".outline" pair. (MeshBuilder.addTriangleShell)
  - If there is a skeleton (skin), the joint nodes and their inverse bind matrices, the animations and their extras (hitAt of an attack, loop "once" that plays only once, and so on) are read together. Poses are computed by writeSkinPose.
  - Models whose parts are hidden or painted separately (like a cluster of several crystals) are read per node with readGlbNodeArrays.
    Node extras (pivot where doors and legs rotate, and so on) are stored as that part's extras.
  - For a skeletal model read as one lump (like a vehicle), node extras, part positions and the joints they follow are read separately with readGlbNodeInfos.
  - GLB files whose vertex attributes are stored as integers (KHR_mesh_quantization) are read too. Normalized integers are divided with the glTF spec formulas, and texture coordinates get the material texture KHR_texture_transform baked in.
    An unnamed mesh node belongs to the part of its named parent node. (the leaf node a quantizer adds for the dequantization transform) If extensionsRequired lists an extension that cannot be read (meshopt compression and others), an error is thrown.
The engine's GLB reader is tied inside the engine's PBR model (SkinnedModel), so only the vertex arrays used for toon drawing are extracted here.
- [graphics3d/toon/toonrenderer](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/graphics3d/toon/toonrenderer&lang=en): Toon renderer. (draws MeshBuilder and readGlbArrays arrays with single-color material and outline)
- [graphics3d/toon/toonpostprocess](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/graphics3d/toon/toonpostprocess&lang=en): Toon HDR finishing. (outputs linear color drawn to a float render target to the screen with bloom, exposure, tone mapping and gamma)
- [graphics3d/humanskinrenderer](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/graphics3d/humanskinrenderer&lang=en): Human skin renderer. (builds skin / eye / hair shading templates on top of the SkinnedModelRenderer skinning/morph vertex path)
- [graphics3d/ambientocclusioneffect](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/graphics3d/ambientocclusioneffect&lang=en): Screen-space ambient occlusion. (depth + normal buffer → hemisphere sample occlusion → depth-aware blur)
- [graphics3d/subsurfacescatteringeffect](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/graphics3d/subsurfacescatteringeffect&lang=en): Screen-space subsurface scattering. (separable, depth-aware horizontal/vertical blur of the diffuse irradiance buffer)
- [graphics3d/material](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/graphics3d/material&lang=en): Material. (shader template reference + metallic-roughness PBR parameters/textures, format-neutral)
- [graphics3d/shadowmap](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/graphics3d/shadowmap&lang=en): Shadow map. (directional light real-time shadows, depth texture + orthographic light matrix)
- [base/seededrandom](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/base/seededrandom&lang=en): Seeded random number generator. (mulberry32)
- [base/timer](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/base/timer&lang=en): Cooldown.
- [base/objectpool](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/base/objectpool&lang=en): Object pool.
- [base/fsm](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/base/fsm&lang=en): Finite state machine.
- [base/format](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/base/format&lang=en): Formatting utility.
- Gathers number-string handling that repeats in every game, such as currency / score display.
- [misc/localstorage](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/misc/localstorage&lang=en): Local storage.
- [misc/persistedstore](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/misc/persistedstore&lang=en): Persistent store.
- [misc/localization](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/misc/localization&lang=en): Localization.
- [misc/pathfinder](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/misc/pathfinder&lang=en): Grid pathfinding. (A*)
- [misc/grid](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/misc/grid&lang=en): Grid utility.
- [misc/collision2d](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/misc/collision2d&lang=en): 2D collision utility.
- [misc/steering2d](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/misc/steering2d&lang=en): 2D steering utility.
- [misc/pointergesture](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/misc/pointergesture&lang=en): Pointer gesture recognizer. (headless)
- [misc/frameprobe](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/misc/frameprobe&lang=en): Detects slow devices. (measures frame intervals for the first few seconds, used to automatically turn on a lightweight path that disables heavy effects)
- [misc/cameragestures](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/misc/cameragestures&lang=en): Camera gestures. (gestures that rotate, pan and zoom a 3D board or map, mouse right and middle button drag, two fingers)
- [misc/languagepack](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/misc/languagepack&lang=en): Language pack. (screen text languages kept as asset tables, imported as LanguagePack)
- Unlike Localization (tables in code), keeps text in asset JSON files. Used for games with many languages where translators edit the files separately.
- Paths are set with setLanguagePaths. (initially ./assets/localization/languages.json and its folder)
- What to do after a language is loaded (fetching that language's font, etc.) is hooked with setLanguageLoadedHandler.

Text lives in asset tables, not in source. The language list is languages.json,
and each language has one file (key → text). Every language file has the same keys as the default language file.
If the setting's language is empty, it follows the language the platform reported, then the device (browser) language, and if that is not in the list, the default language (English).
Keys missing from the chosen language's table use the default language's text, and if missing there too, the key itself.
Paths are written as literal strings so the build's cache busting attaches fingerprints. (the build attaches the language file fingerprints to the list)
- [misc/uifont](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/misc/uifont&lang=en): UI font. (all on-screen text, groups font subsets for many scripts under one name, imported as UIFont)
- Font name, list file and folder, last group, weights and wait time are set with configureUiFont. (initially GameUI, ./assets/fonts/fonts.json, latin, 500 and 700)
- The lists are fonts.json (index { fonts: [{ group, manifest }] }) and fonts-<group>.json (subsets { faces: [{ file, weight, style, unicodeRange }] }).

Draws all on-screen languages under one font name (the family of configureUiFont).
Latin and Cyrillic use the base font (Exo 2), and other scripts use fonts with a similar feel.
Font files are not merged. A FontFace is created for each subset split by Google Fonts and registered with that subset's character range (unicode-range).
So the browser downloads only the subsets containing characters used on screen. (Korean, Chinese and Japanese fonts have hundreds of subsets)
Characters shared by several fonts, such as Han characters, are drawn by the font registered later. The selected language's font group is registered right before Latin (second from the end)
so that Japanese gets Japanese-font Han characters and Traditional Chinese gets Traditional-font ones. Latin is always last, so digits and Latin letters use the Latin font in every language.
Subsets under one font name must all declare the same weight to be selected together by character range. (because the weight is chosen first and only subsets of that weight are considered)
So every subset is registered with only the two weights in configureUiFont's weights (initially 500, 700). Variable-weight subsets are registered twice (500 and 700), and 400-only subsets as 500.
When the screen requests 400, the 500 subset draws, and for 600 the 700 subset draws.
The canvas does not wait for subsets not yet downloaded and draws with another font, so subsets for the characters to be drawn are fetched in advance. (loadUiFontText)
When a subset is downloaded, the engine (EngineConfiguration.rebakeTextOnFontLoad) discards and rebakes only the text images baked with that subset's characters.
The font lists are split per group. (fonts.json is the index, fonts-<group>.json holds that group's subsets)
At first only the lists for the selected language and Latin are fetched, and the rest (language names in the language window, other scripts such as person names) are fetched a little after play starts.
Initial subsets are waited for only up to configureUiFont's waitMilliseconds, after which play starts first and text is rebaked as subsets arrive. (shorter first load)
Paths are written as literal strings so the build's cache busting can add fingerprints. (subset fingerprints are added to the lists by the build)
- [misc/focusnavigator](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/misc/focusnavigator&lang=en): Directional focus navigator.
- [misc/shaker](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/misc/shaker&lang=en): Shake generator. (shared by screen / node)
- [misc/camera2d](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/misc/camera2d&lang=en): 2D camera.
- [misc/typewriter](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/misc/typewriter&lang=en): Typewriter effect runner.
- [misc/dialogue](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/misc/dialogue&lang=en): Dialogue runner.
- [misc/spriteanimator](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/misc/spriteanimator&lang=en): Sprite animator component.
- [misc/platformerbody](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/misc/platformerbody&lang=en): Platformer physics component.
- [misc/floatingtext](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/misc/floatingtext&lang=en): Floating text manager node. (damage numbers / +coins, etc.)
- [misc/beepplayer](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/misc/beepplayer&lang=en): Procedural beep player.
- [core/soundeffectpool](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/core/soundeffectpool&lang=en): Sound effect pool.
- [core/soundsystem](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/core/soundsystem&lang=en): Sound. (background music and sound effects)

Uses the engine's AudioManager (shared AudioContext) and AudioAsset (MP3). Plays downloaded sound buffers with Web Audio. (does not synthesize sound, only plays files)
Takes a sound table. Each row is { id, path or paths, volume, minimumInterval, isMusic, maximumVoices, pitchVariation, playSeconds, fadeOutSeconds }.
  volume: per-sound volume. (0 ~ 1, 1 if absent)  minimumInterval: interval before the same sound can play again. (seconds, so they do not pile up and get noisy)
  paths: a group of multiple recordings of the same sound. Picks one each time it plays, never the same as the one just before. (path if only one)
  maximumVoices: number of instances of the same sound that can play at once. (beyond that the oldest is cut off, if absent up to the total number of sound effects)
  pitchVariation: ratio by which the pitch varies on each play. (0.05 means ±5%, 0 if absent)
  playSeconds, fadeOutSeconds: plays only the first playSeconds seconds of a sound effect and fades it out over fadeOutSeconds seconds. (long files, to the end if absent or 0)
  loadType: load type. (AudioLoadType, background music uses streaming and sound effects use decompressOnLoad if absent, sound effects overlap so they must be fully decompressed to play)

Volume: background music = music volume setting × music ratio (half volume for the pause window, etc.) × sound volume, sound effect = sound effect volume setting × sound volume × volume at call time (attenuation by distance, etc.).
Background music can be crossfaded (fadeSeconds), and the stopped position is remembered per sound so it can resume from there. (isResumed)
Mute takes precedence over the volume setting. If any one of the following applies, no sound plays regardless of the settings.
  - Platform mute. (the function given with setExternalMuteProvider, the platform SDK's mute setting, while a rewarded ad is shown, etc.)
  - The user's mute button. (setUserMuted)
  - Page hidden. (another tab, app switch)
  - The window loses focus on a touch-primary device. (blur, when the app starts going to the background)
    On iPhone the page-hidden notification arrives after the app has gone to the background, by which time audio freezes without stopping and the last sound chunk repeats.
    The window focus-loss notification arrives before that. On desktop, clicking outside the canvas (the outer page) also loses focus, so it is not followed there.
Platform mute is read every frame (update), and page hiding is applied at that moment. (frames stop when hidden)
While muted, the AudioContext is also stopped. (suspend, resume when unmuted) On iPhone, if an app switch or interstitial ad takes over a running AudioContext,
no sound plays even when it is woken on return. If it is stopped on its own beforehand, sound plays again on return.
If the AudioContext is still not running after unmuting, it tries to wake it at short intervals until it runs. (iPhone sometimes ignores the wake at the moment of returning to the app)

If allowed (setAutoplayAllowedProvider, allowed if not given), it tries to wake once even before a press. If blocked, it turns on at the first press as below.
Browsers do not allow sound before the person first presses. Since the engine creates and wakes the AudioContext on the first press,
the sound paths (music and sound effect buses, AudioBus) are created after that, and sound plays only while the AudioContext is running. (so sounds requested while stopped do not all play at once on wake)
Buses are retrieved with getMusicBus and getEffectBus. Players made from a bus (AudioBus.createAudioPlayer) also follow the volume setting and mute.
The volume setting is applied directly to the bus's GainNode. So values set with the bus's setVolume and mute last only until SoundSystem applies the volume again.
Sound files are downloaded in the background so they do not block play. Sounds not yet downloaded or that failed to download simply do not play.
- [core/gamepadmanager](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/core/gamepadmanager&lang=en): Input manager.
- [core/audioplayer](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/core/audioplayer&lang=en): Audio player.
- [core/audiobus](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/core/audiobus&lang=en): Audio bus.
- [ui/popupmotion](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/ui/popupmotion&lang=en): Popup open / close transitioner.
- [effect/particlesystem](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/effect/particlesystem&lang=en): Particle system.
- [effect/trailrenderer](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/effect/trailrenderer&lang=en): Trail renderer.
- [effect/shadersprite](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/effect/shadersprite&lang=en): Shader sprite component.
- [effect/screeneffect](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/effect/screeneffect&lang=en): Screen effect. (scene post-processing chain)
- [animation/timeline](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/animation/timeline&lang=en): Timeline.
- [ui/uilistview](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/ui/uilistview&lang=en): Recycling list view.
- [ui/uichart](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/ui/uichart&lang=en): Line chart.
- [ui/uidropdown](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/ui/uidropdown&lang=en): Dropdown. (combo box)
- [ui/uicontextmenu](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/ui/uicontextmenu&lang=en): Context menu. (right-click / long-press menu)
- [ui/uidraggable](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/ui/uidraggable&lang=en): Draggable component.
- [ui/uispinner](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/ui/uispinner&lang=en): Spinning loading indicator.
- [ui/uitoast](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/ui/uitoast&lang=en): Toast.
- [ui/toastmotion](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/ui/toastmotion&lang=en): How a notification appears and disappears. (a component attached to a toast node, UIToast builds queued pill notifications itself, while this moves a notification node made by the game)
- [ui/uidialog](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/ui/uidialog&lang=en): Confirmation dialog.
- [core/inputactions](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/core/inputactions&lang=en): Input actions.
- [graphics3d/camera3d](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/graphics3d/camera3d&lang=en): 3D camera. (holds a perspective or orthographic projection and the viewpoint, recomputes the view and projection matrices only when they change)
- [graphics3d/camerashake](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/graphics3d/camerashake&lang=en): 3D camera shake. (an engine shake in the form of Unity Cinemachine Impulse and Unreal Camera Shake)
- [graphics3d/toon/toondrawqueue](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/graphics3d/toon/toondrawqueue&lang=en): Toon draw queue. (holds the models to draw in a frame, then draws them in order with ToonRenderer)
- [graphics3d/toon/toonview3d](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/graphics3d/toon/toonview3d&lang=en): Component that draws toon 3D inside the node rectangle. (Inserts a 3D pass between the 2D node tree)
- [misc/graphicsqualitygovernor](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/misc/graphicsqualitygovernor&lang=en): Decides graphics quality. (Decides whether to use the lite path from the setting and frame measurement, and picks the render pixel ratio cap)
- [misc/fixedstepper](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/misc/fixedstepper&lang=en): Fixed step.
- [resource/assetloader](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/resource/assetloader&lang=en): Loads assets together.
- [misc/loadingprogress](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/misc/loadingprogress&lang=en): Loading progress.
- [misc/buildinfo](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/misc/buildinfo&lang=en): Build info.
- [graphics3d/toon/toonscreenoutline](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/graphics3d/toon/toonscreenoutline&lang=en): Toon screen-space outline. (Draws normals, line IDs and depth into the line target, picks lines at the boundaries between direct neighbors, looks at the surrounding cells directly for thin lines and widens thick lines with jump flooding, then computes coverage from distance and blends)
- [graphics3d/toon/toonvfx](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/graphics3d/toon/toonvfx&lang=en): Base of toon 3D GPU effects. (The general-purpose part of the in-board effects that webgame-rimminer and aberrant each used separately)
- [ui/uiscale](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/ui/uiscale&lang=en): UI scale.
- [ui/uiwindow](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/ui/uiwindow&lang=en): A single window in the window stack. (UIWindowLayer opens and removes it)
- [ui/uiwindowlayer](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/ui/uiwindowlayer&lang=en): Window layer. (stacks UIWindow over the area)
- [ui/uiconfirmwindow](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/ui/uiconfirmwindow&lang=en): Confirm window. (title, question text, two buttons: cancel and confirm)
- [resource/spriteatlas](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/resource/spriteatlas&lang=en): List of atlases to search. (SpriteAtlas.findFrame searches from the front)
- [core/graphic/gpumemorytracker](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/core/graphic/gpumemorytracker&lang=en): GPU memory tracking.
- Intercepts the functions that create textures, renderbuffers and buffers and set their sizes (texImage2D, texStorage2D, renderbufferStorageMultisample, bufferData and so on) on the context, and records bytes per object. Deleting subtracts, and losing the context clears everything.
- Bytes are nominal values computed from format and size. (Driver row alignment, tile memory and multisample compression are unknown. Multisample renderbuffers are multiplied by the sample count)
- The owner is the top three frames of the call stack that created the object. (A development name that tells which engine part created it, the stack is read once at creation)
- Objects dropped without deleting are removed by FinalizationRegistry when garbage collection comes. (The browser releases the GL object then)
- Only one is attached per context. (Off by default. Turn it on with EngineConfiguration.trackGpuMemory, Graphic.enableGpuMemoryTracking, or GpuMemoryTracker.attach for a context made outside the engine. Before it is attached, GL create calls are not intercepted)
- [effect/heathazeeffect](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/effect/heathazeeffect&lang=en): Heat haze effect component.
- [misc/indicator](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/misc/indicator&lang=en): Indicator class.
- [misc/dynamicfont](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/misc/dynamicfont&lang=en): Dynamic font.
- [graphics3d/multilevelbloomeffect](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/graphics3d/multilevelbloomeffect&lang=en): Multi-level bloom effect. (extracts the bright part at half size, blurs it while halving the size, then adds it back to the level above while doubling the size)
- [core/graphic/textstringtexturecache](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/core/graphic/textstringtexturecache&lang=en): Measures text without a Graphic. (same as measureTextMetrics, same name as measure_text_without_graphic in the Rust version. null if there is no document)
- [graphics3d/toon/toonlightset](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/graphics3d/toon/toonlightset&lang=en): Toon light set. (Holds as one bundle the lights ToonRenderer uses to shade bodies and the toon light response)
- [graphics3d/toon/toonmaterial](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/graphics3d/toon/toonmaterial&lang=en): Toon material. (shader chunks inserted into ToonRenderer's body shader, the per-game extension point)
- [core/audiomanager](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/core/audiomanager&lang=en): Audio manager.
Owns the shared AudioContext and creates AudioPlayer instances.

Handling the browser autoplay policy:
 - Creating an AudioContext before the first user gesture (click/touch/keydown) makes the browser print a console warning ("AudioContext was not allowed to start ...").
 - So the AudioContext is created lazily, only after a user gesture has happened.
 - resumeContext() also silently does nothing before a user gesture.
 - For the case where createAudioPlayer() is called before a user gesture, the AudioContext is created (reluctantly) when the player is created, and only then a warning may appear.

Handling iOS updates (2026-10-22 03:41, confirmed on iOS 26.6.2):
 - On iOS, when a context restored by resumeContext() is "running", verifyContextClock() checks that the clock is really advancing.
 - This is not an option: it always runs on iOS (including iPadOS). Other platforms behave as before.
- [misc/devtools](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/misc/devtools&lang=en): Fixed layout constants.
- [web/pane](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/web/pane&lang=en): Split panel (Pane) class.
- [web/websocketclient](https://vanillapunch.com/md.php?page=docs&path=vanilla.js/0.4.0/api/web/websocketclient&lang=en): WebSocket communication handler.
