B. Glossary
Every term the book uses that you might want to look up, in one or two sentences each, with a link to the section that teaches it. The first part holds MVT's own terms, and the general terms the book leans on. The second holds the names of the libraries and tools that the book uses for its examples.
Related: MVT on One Page · The Eight Principles · Troubleshooting
An entry here is a reminder, not a lesson. If a definition leaves you with a question, follow its link: the chapter there explains the idea in full, with examples, and says why it matters.
B.1 MVT Terms
| Term | Meaning |
|---|---|
| Action | A model's method for a one-off command from the player, named for what the player means, such as startNewRun(). The model still decides whether the action is allowed. 4.6 Actions Say What the Player Means |
| Advance, then orchestrate | The two steps of a model's update. First it moves every clock and child model on by deltaMs, then it checks the result and starts whatever should come next. 6.1 Advance, Then Orchestrate |
| Audio test | A test that checks what a sound sounds like, so that a sound changed by accident fails it. It does for sound what a visual test does for a view. 20.7 Testing an Audio View |
| Audio view | A view that plays sounds instead of drawing. It reads its bindings like any view, and plays a sound when a value changes in a way worth hearing. 20.2 Audio Views |
| B- rules | The binding rules, B-contract, B-reusable, B-optional and B-wiring, which say what a view's bindings are and where they're wired. A.7 Binding Rules |
| Bindings | The plain object that a view receives when it's made. Its query bindings carry state in, its relay bindings carry the player's input out, and its type lists everything the view depends on. 8.1 The Bindings Object |
| Change detection | Comparing what you read now with what you read last time, and doing slow work only when the two differ. Chapter 9, Noticing Changes |
| Changed per frame | In the measurements, the share of Pixi containers that change in a frame, from 0% (a scene at rest) to 100%. C.2 The Benchmark Setup |
| Cohesion, coupling | A component is cohesive when its contents belong together and change for the same reasons. Components are loosely coupled when they depend on each other only through small, declared interfaces. 26.4 Applied to MVT: Cohesion and Coupling |
| Command, query | A command changes state and doesn't return a value. A query returns a value, and doesn't change any state that a caller can observe. 28.1 The Principle |
| Command-Query Separation (CQS) | The principle that reading state never changes it. Each tick runs every command (update), then every query (refresh). Command-Query Separation (CQS) |
| Component | Any separable unit of an MVT program, such as a model, a view or the ticker. It isn't a JSX component, or a component in an entity component system. 25.2 The Goal |
| Composite Reuse Principle (CRP) | The principle of building bigger components by combining smaller ones, never by extending them. Composite Reuse Principle (CRP) |
| Computed value | A value worked out from the getters it watches, and worked out again only when one of them changes. It computes lazily, on its first read, and it's a getter itself. 9.4 Computed Values: A Value Worked Out From Others |
| Continuous state | State that changes on most frames, such as a position. A view just reads it, without detecting changes. 9.8 When to Use Change Detection |
| Contract | What a component requires of its callers, and what it guarantees in return. A view's bindings type is its contract with the rest of the game. 31.1 The Principle |
| Cosmetic state | Another name for presentation state. 11.1 Presentation State and Domain State |
| Count | A number in a model that rises by one each time a moment happens, such as shotsFired. It lets a view notice a moment that doesn't change any other state. 9.6 Counts: Moments That Repeat |
| Declarative, imperative | Declarative code says what should be true, such as "this sprite sits where the ship is", and leaves the steps to something else. Imperative code lists the steps. 12.7 Is a JSX View Really Declarative? |
| Delete-the-view test | The way to tell presentation state from domain state: if you deleted the view, would the game still play correctly? If not, the state belongs in a model. 11.6 When Is Presentation State Really Domain State? |
| Delta cap | The ticker's limit on deltaMs, typically 100 ms, so that a long gap, such as a hidden tab, never reaches the models as one huge step. Every model must produce the same results at any step size up to the cap, and never has to handle a bigger step, as Chapter 6 explains. 5.5 The Delta Cap |
deltaMs | The number of milliseconds since the last frame, which the ticker passes to every update. It's the only way time reaches a model. 4.1 The update(deltaMs) Contract |
| Dependency Inversion Principle (DIP) | The principle that a component declares what it needs, as a small interface of its own, and the code that creates it supplies it, time included. Dependency Inversion Principle (DIP) |
| Design by Contract (DbC) | The principle that every component states what it requires and what it guarantees, and fails loudly when either is broken. Design by Contract (DbC) |
| Design for Testability (DfT) | The principle that every component can be tested on its own, through its contract, with the same result every time. Design for Testability (DfT) |
| Deterministic | A model is deterministic when the same series of update calls, with the same input between them, always leaves it in the same state. 4.1 The update(deltaMs) Contract |
| Dirty checking | Finding a change by comparing a value with what it was, rather than waiting for a notification. MVT's change detection works this way. 10.7 Other Approaches to Reactivity |
| Discrete state | State that changes now and then, such as a score or a phase. A view notices its changes, so that slow work runs only when it changes. 9.8 When to Use Change Detection |
| Domain coordinates | Positions, distances and speeds in units that mean something in the game, such as tiles or world units, never pixels. Views convert them for the screen. 4.4 Domain Coordinates |
| Domain logic | The rules that change domain state, such as collisions and scoring. They belong in models, where a test can check them without drawing anything. 4.2 Splitting Concerns Between Model and View |
| Domain state | The state that decides the game's outcomes, such as positions, scores and phases. Models own it, and it never depends on presentation state. 2.2 Two Kinds of State |
| Dynamic property | In the measurements, a property of a Pixi container that is updated from the model every frame. Its opposite is a static property. C.2 The Benchmark Setup |
| Effect | In a library of signals, code that reads signals, and that the library runs again whenever one of them changes. 10.1 Three Ways to Detect a Change |
| Entity component system (ECS) | A way of building game objects from pieces of plain data, its own "components", which separate systems process. It works at a different level from MVT, and the two fit together. 30.6 Common Misreadings |
| Events | A way of learning about a change in which the model sends a named notification, and each listener that registered for it runs at once. It's also called the observer pattern. 10.1 Three Ways to Detect a Change |
| Factory function | A function named createXxx that takes one options object and returns a plain object that matches an interface. This book writes models this way, but MVT doesn't require it. 4.5 Writing a Model as a Factory |
| Fixed value | A query binding given as a plain value, such as tileSize: 20, rather than a getter. The view reads it once, when it's made. A binding declared as a plain T takes only a fixed value, so its type says the view won't follow a change. 8.4 Fixed Values and Getters |
| Forced layout | The layout work that a browser must do at once when code reads a size after writing to the page. A refresh step that forces it for each element can make a frame late. 21.2 Why Not Measure in the Refresh Step? |
| Frame | The browser's call to the ticker each time it's about to draw a new picture. A running game ticks once a frame, so "every frame" and "every tick" usually mean the same, but a test ticks without any frames, a paused game has frames whose models aren't ticked, and fast-forward can tick the models many times in one frame. 5.1 Ticks |
| Frame sequence | The fixed order of every tick: the models update, the views update their presentation state, the views refresh, and the renderer draws. 5.2 The Frame Sequence in Detail |
| Game engine | A program that provides a whole way of making a game: drawing, sound, input, physics, and a loop that calls your code once a frame. The game's state usually lives in the engine's own objects. Phaser, Unity and Godot are examples. MVT can work inside one, with one script as the ticker. 1.2 Game Engines |
| Game loop | A loop that runs once a frame, and drives the simulation and then the presentation. MVT's ticker is a game loop. 5.1 Ticks |
| Garbage | Objects, arrays, strings and functions that the program doesn't use any more. The JavaScript engine pauses now and then to reclaim them, so code on a hot path avoids making them. 23.3 Garbage Turns Into Pauses |
get accessor | A property defined with get, such as get score() { return score; }, which runs a function each time it's read. Reading model.score returns a value, not a getter, so pass () => model.score where a getter is expected. Code Style |
| Getter | A function that takes no arguments and returns a current value, such as () => model.score. A view calls the getters that it receives every frame. 8.2 Query Bindings |
| GSAP timeline | A timeline from GSAP, a popular animation library. A model can use one, as long as it creates it paused and moves it on in update. E.1 Why a Model Needs a Paused Timeline |
| H- rules | The hot-path rules, H-cost, H-alloc, H-loops and H-change, which keep code that runs every tick fast. A.8 Hot-Path Rules |
| Hot path | Code that runs every tick: a model's update, a view's update and refresh, and everything they call. 24.1 Code That Runs on a Hot Path |
| Idempotent | A refresh() is idempotent when calling it twice with the same state produces the same output as calling it once. 7.3 The refresh() Contract |
| Immediate-mode data flow | How a view reads: every frame, it reads all the state it shows, as if it were drawing from scratch. 7.4 Immediate-Mode Data Flow, Retained-Mode Output |
| Invariant | What is always true of a component between calls. 31.1 The Principle |
| Leaf view | A view of a single game object, a HUD or an overlay, which takes query and relay bindings rather than the model, so it can be reused and tested alone. Chapter 8 calls it a reusable view. 8.7 When to Pass the Whole Model |
| M- rules | The model rules, M-time, M-isolation, M-domain and M-composition, which say how a model gets its time and what it may reference. A.4 Model Rules |
| Make Illegal States Unrepresentable (MISU) | The principle of shaping state so that a combination that doesn't make sense can't be written, such as one phase in place of several flags. Make Illegal States Unrepresentable (MISU) |
| Model | The part of an MVT program that owns domain state and the rules that change it. It moves forward in time only through update(deltaMs), and doesn't reference any view. Chapter 4, Models |
| Model tree | Models made of models. The ticker updates the root, and each parent calls its children's update, then handles the work that spans them, such as collisions. 4.8 Trees of Models |
| MVT | Model-View-Ticker: an architecture that assigns a game's three jobs, deciding what happens, showing it and keeping time, to three parts. 2.1 Three Jobs, Three Owners |
| MVVM | Model-View-ViewModel, a pattern for user interfaces in which a ViewModel sits between the view and the model, and adapts the model's state for the view. MVT's bindings are close to its data binding. MVT's view model takes its name from the ViewModel, but is narrower. 18.6 Extract a View Model |
| Open-ended phase | A phase that waits for something to happen, rather than ending after a set time, such as a chest that stays open until something closes it. Its progress stays at 1, and only an action moves the model on. 6.3 Open-Ended Phases |
| Passive View | A form of Model-View-Presenter in which a presenter reads the model and pushes each value into a view that doesn't have any logic. MVT's views share its aim of keeping domain logic out of views, but they read the state themselves, every frame. 2.5 Patterns You May Know |
| Phase | The named stage something is in, such as 'opening' or 'open', given as a string-literal union. A model is in exactly one phase at a time. 6.2 Phases and Progress |
| Polling | Learning about a change by reading the current state at a point that comes round regularly. MVT views poll, in refresh(). 10.1 Three Ways to Detect a Change |
| Practices | Habits the book teaches that follow from MVT's rules but aren't rules themselves, such as actions that say what the player means. Appendix A lists them, each with a link to where it's taught. A.9 Practices the Book Teaches |
| Pool | A set of objects made once and reused, such as the views of short-lived bullets, so that objects aren't built or destroyed every frame. 14.6.2 Pools of short-lived items |
| Presentation state | State that a view keeps only for how things are shown, such as how far a fade has got. The view owns it, keeps it private, and moves it on in its own update(deltaMs). 11.1 Presentation State and Domain State |
| Principles | The eight design principles that MVT's rules come from: SoC, SSOT, CQS, DIP, CRP, DbC, MISU and DfT. Each has a chapter of its own. The Eight Principles |
| Progress | A number from 0 to 1 that says how far through its current phase a model is. 6.2 Phases and Progress |
| Push | Any way of learning about a change in which the side that changed starts the work, as events and signals do. Its opposite is polling. 10.1 Three Ways to Detect a Change |
| Query binding | A binding that the view reads for the state it shows, such as a position or a score. It's a fixed value, a getter, or a function with arguments such as tileKindAt(row, col), and it never changes any state. 8.2 Query Bindings |
| Reaction | A function you call on every step. Each call reads the getter it watches, and runs its react callback when the value has changed in a way its when accepts. It never reacts to its first read. 9.2 Reactions: Do Something When a Value Changes |
| Reactivity | The general name for how views find out about a change. The three broad ways are events, signals and polling. 10.1 Three Ways to Detect a Change |
| Recognised gesture | Input that a view works out from simpler events, such as a long press from a press and the time that passes. A view model usually times it, and reports it after the frame. 18.6.3 Example: a press that turns into a hold |
| Reduced motion | A setting people choose when large movements on screen make them dizzy or sick. It's presentation, so the views read it through a binding, and the model never references it. 22.1 Motion Is Presentation |
Refresh step, refresh() | A view's step that reads state and writes the view's output, once a tick, after every model has updated. It's reactive, idempotent and read-only, works with no time involved, and never reads back what it wrote. 7.3 The refresh() Contract |
| Relay binding | A binding the view calls to report input, which is usually what the player did, such as onFirePressed. It's named for what happened, the wiring decides what it means, and the view calls it only between frames. 8.3 Relay Bindings and Input Handling |
| Renderer | Whatever draws a view's output, such as Pixi, three.js or the browser's DOM. It draws after the views have refreshed. 7.1 The Role of a View |
| Requirement, guarantee | A requirement (a precondition) is what must be true before a call, and meeting it is the caller's job. A guarantee (a postcondition) is what will be true after it, and keeping it is the component's job. 31.1 The Principle |
| Retained-mode output | How a view writes: it builds its display objects once, and refresh() sets their properties. 7.4 Immediate-Mode Data Flow, Retained-Mode Output |
| Scene graph | A renderer's tree of display objects, such as Pixi's containers or the page's HTML elements. You create a display object once and change its properties, and the renderer draws it as it is now. 1.3 Renderers |
| Separation of Concerns (SoC) | The principle of keeping different jobs apart, each with its own owner. MVT's three are deciding what happens, showing it and keeping time. Separation of Concerns (SoC) |
| Signal | A value kept in a small container. A runtime records which effects read it, and runs them again when it changes, as Solid's createSignal does. 10.1 Three Ways to Detect a Change |
| Single Responsibility Principle (SRP) | Cohesion taken to its limit: a module should be responsible to one group of people whose requests change it. 26.4 Applied to MVT: Cohesion and Coupling |
| Single Source of Truth (SSOT) | The principle that each piece of domain state lives in exactly one model. Everything else reads it, or works out what it needs from it, and doesn't keep a copy. Single Source of Truth (SSOT) |
| Spiral of death | A loop that runs the models in fixed steps, several a frame when it's behind, falls further behind every frame if each step takes longer than the time it covers. A ticker that updates the models once a frame never has this problem. 5.5 The Delta Cap |
| Stateless view | In this book, a view that doesn't hold any domain state. It still holds its display objects, and it may hold presentation state. 7.1 The Role of a View |
| Stand-in binding | A getter or function that a test supplies in place of a model's, such as () => 100 for a bullet's position. It lets a test put a view in any state without building a game. 16.1 The Steps of a View Test |
| Static property | In the measurements, a property of a Pixi container that is set once, when the scene is built, and doesn't take any time per frame. C.2 The Benchmark Setup |
| Static state | State that never changes while the game runs, such as a tile size. A view reads it once, when it's made. 9.8 When to Use Change Detection |
| T- rules | The ticker rules, T-sequence, T-cap, T-minimal and T-control, which say what the ticker does each frame, and what it never does. A.6 Ticker Rules |
| Tick | One turn of the ticker's loop. Ticking a model calls its update(deltaMs), and ticking a view calls its update(deltaMs), if it has one, then its refresh(). 5.1 Ticks |
| Ticker | The part of an MVT program that keeps time. Each frame, it measures deltaMs, ticks the models, then the views, and then calls the renderer to draw. Chapter 5, The Tick |
| Timed phase | A phase with a set duration. Its progress runs from 0 to 1, and the model moves on by itself when the time is up. Its opposite is an open-ended phase. 6.3 Open-Ended Phases |
| Time control | Pausing, slow motion, fast forward, stepping and replay, all done by the ticker choosing which deltaMs to pass. 5.6 Time Control |
| Top-level view | The view at the top of a game, which wires the game's views together. Its one binding is the model itself, since it won't be reused. 8.7 When to Pass the Whole Model |
| UI framework | A library that structures a web app as components built from its state, and updates the page when the state changes, such as React, Vue or Solid. It suits pages that are mostly still. 1.4 UI Frameworks |
| Unidirectional data flow | State flows one way: from the models to the views through query bindings, and the player's input back to the models through relay bindings. 27.3.3 State flows one way |
| Update Method | A pattern from game programming in which each object has a method that the game loop calls once a frame. A model's update(deltaMs) is one. 4.1 The update(deltaMs) Contract |
| Update step | A view's own update(deltaMs), which only a view with presentation state has. It moves that state on, doesn't write any output, and accepts a deltaMs of 0. 11.3 A View's update(deltaMs) |
update(deltaMs) | A model's one way to move forward in time, which the ticker calls each frame. A view with presentation state has one too, its update step. 4.1 The update(deltaMs) Contract |
| V- rules | The view rules, such as V-reactive, V-idempotent and V-readonly, which say what a view may hold and which rules its refresh step follows. A.5 View Rules |
| Version | A number that rises whenever a structure may have changed, such as a model's gridVersion, so that a view can watch the structure through a primitive. 9.4.4 Reading state you don't watch |
| View | The part of an MVT program that shows the model's state. It reads the state through its bindings, writes it to an output such as a Pixi container, the DOM or a speaker, and doesn't hold any domain state. 7.1 The Role of a View |
| View model | A plain object that one view makes and owns, holding only presentation state, or a gesture's timing, and the rules that coordinate it, with an update(deltaMs) of its own. It doesn't touch any display objects, so you can test it alone. It takes its name from MVVM's ViewModel, but is narrower, since it doesn't adapt domain state for a view. 18.6 Extract a View Model |
| View tree | Views made of views. Each parent view builds its children and wires their bindings, and the tree doesn't need to match the model tree. 13.1 Parent Views Wire Their Children |
| Visual test | A test that builds a view in a known state, makes an image of it, and compares that with its reference image. Chapter 17, Visual Tests |
| Wall clock | The real time, as setTimeout, setInterval, requestAnimationFrame and Date.now() measure it. A model never uses it, since time reaches it only as deltaMs. 4.3 Things to Keep Out of a Model |
| Watcher | A tool you poll once in each step. Its reading reports, for each getter it watches, the current and previous values and whether the value changed. 9.3 Watchers: What Changed, for Logic in a Step |
| Wiring | The code that makes a view, and supplies each of its bindings: query bindings from the models or with fixed values, relay bindings with the models' methods. 8.6 Wiring Bindings |
B.2 Terms From the Book's Libraries
These come from the @mvtjs libraries, audio90 and v-snap. MVT doesn't require any of them. They're one way of meeting its rules, and the book's examples use them.
| Term | Meaning |
|---|---|
| Actual image | The image a visual test makes on this run. When it differs from the reference image, the test fails, and v-snap keeps the actual image and a diff for you to look at. 17.6 Reviewing a Change |
advanceTime | A test helper that moves models and views on by some milliseconds, in steps of 16 ms, updating the models before the views. It doesn't refresh. Always await it. 15.4.2 Moving time on with advanceTime |
| Attribute | In JSX, a name={value} on a tag. On an intrinsic element it sets a property, and on a view's tag it supplies one of the view's bindings. Other JSX libraries call these props. 12.2 Setting Up a JSX File |
| Audio80, Audio90 | The book's two virtual sound chips, from the audio90 package. The Audio80 is in the spirit of the 1980s home computers, with four mono voices, and the Audio90 in the spirit of the 1990s, with sixteen stereo voices. 20.2.1 Play on a change, never on a state |
| BooleanTween | Presentation state made with createBooleanTween, which moves a number smoothly between two values as a flag changes, and turns round from where it is if the flag flips back. 18.4.1 Tweening a boolean |
canvasTest, htmlTest | v-snap's declarations of a visual test: canvasTest for a view drawn on a canvas, such as a Pixi or three.js view, and htmlTest for an HTML view. 17.1 Why MVT Views Suit Visual Tests |
createReaction, watch, createComputed | The functions that make reactions, watchers and computed values, from @mvtjs/utils, with the conditions increased, decreased and changedFrom. 9.1 Three Tools, One Idea |
| Dense id | A small whole number that a model assigns to each item, from 0 up with no large gaps, so that a view model can keep each item's state in an array, by id. 19.3.1 In a plain array: dense ids |
| Easing function | A pure function that turns steady progress, from 0 to 1, into curved progress, such as easeOutQuad. Every tween helper takes one. 18.4.4 Easing functions |
| EdgeTween | Presentation state made with createEdgeTween, which plays once from a trigger value back to rest each time a flag turns from false to true, such as a flash as the player is hurt. 18.4.2 Playing once on a rising edge |
| Headless chip | A sound chip from audio90/headless that doesn't make any sound, and whose clock moves only when you call its update(deltaMs). Tests, visual tests among them, play on one. 20.6 The Clock That Sound Plays On |
| Intrinsic element | A JSX tag in lower case, such as <sprite>, which builds a display object rather than calling a view. 12.2 Setting Up a JSX File |
| Item accessor | The function that a <List> passes to each slot's view, such as bullet. Calling it, as bullet(), returns whatever item is in the slot this frame. 14.1 How <List> Works |
| Item view | The view a <List> builds for one slot, and reuses for whatever item the slot holds. It mustn't keep anything about an item from when it was built. 14.3 Two Rules for Item Views |
| JSX runtime | The code that turns a view's JSX into display objects and a refresh step. Each renderer package has one, all built on one base in @mvtjs/utils/jsx. 12.1 The Same View in JSX |
<List> | A view that shows a collection with one view per slot, built the first time the slot holds an item and kept from then on. An empty slot hides itself, and takes one check. 14.1 How <List> Works |
ListSource | The kind of source that a <List> can show: anything with a length and an at(index) that returns an item, or undefined for an empty slot. Arrays and slot lists already have this shape. 14.2 Sources a List Can Show |
<Match> | One branch of a <Switch>, shown while its when getter returns true. A <Match else>, last, is shown when every other branch is hidden. 14.5 Showing One of Several: <Switch> |
| Method list | The cached list of update or refresh methods in a view's tree, which updateView or refreshView runs through. It's rebuilt only when the tree changes. C.7 The Performance Cost of refreshView |
| Metronome | Presentation state made with createMetronome, which counts beats at a period the view can change. A period of 0 stops it, and the first beat comes at once. 18.4.3 Repeating beats |
| Music chip, sfx chip | A game plays its music on one sound chip and its sound effects on another, so that a sound effect never uses a voice that the music needs. An audio view's binding for a chip declares only the members that it calls, such as play, so the view can't pause the chip or change its volume. 20.2.1 Play on a change, never on a state |
onRefresh, onUpdate, ref, onDestroyed | The JSX attributes that step out into code: a step of your own in an element's refresh, an update method, a callback with the built element, and a callback as it's destroyed. 12.5 Stepping Out into Code |
owns | The JSX attribute that lists the resources that a view made for an element, such as a texture or a geometry. When the element is destroyed, the JSX runtime frees each one. 7.8 Releasing a View's Resources |
| OrderedSlotList | A slot list with an order of its own, made with createOrderedSlotList. Each item keeps its storage slot for life, and has an ordinal that changes as items move. 19.3.2 In an OrderedSlotList: storage slots |
| Ordinal | An item's position in the order of an OrderedSlotList. Unlike its storage slot, it changes as items are moved, inserted and removed. 19.3.2 In an OrderedSlotList: storage slots |
| Pose | Arranging a view in one state for a visual test's image. A leaf view is posed with stand-in bindings, and a top-level view with a model brought into that state through its actions. In v-snap, a test's pose is the function that returns the posed view. 17.1 Why MVT Views Suit Visual Tests |
| Reference image | The accepted image that a visual test compares its actual image with. It's committed beside the test, so a change to it is reviewed like a change to code. 17.6 Reviewing a Change |
refreshView | refreshView(view) calls every refresh method in a view's tree, each once, parents before children, including views attached while it runs. The ticker calls it on the stage once a frame. 7.9 Updating and Refreshing Views with the @mvtjs Libraries |
| Release delay | How long a slot list keeps a removed item's slot readable before it frees it, set with releaseDelayMs, so that a view can show the item leaving. 19.2 Keep a Removed Item Until It Has Gone |
| Renderer package | @mvtjs/pixi, @mvtjs/three or @mvtjs/html. Each provides the view tick API and a JSX runtime for its renderer, and code imports both from the one it uses. 7.9 Updating and Refreshing Views with the @mvtjs Libraries |
| Sequence | A list of named steps, made with createSequence, each with a start time and a duration, all on one clock. Each step has an isActive and a progress. 18.5.1 Defining a sequence |
| Sequence tracker | The object that createSequenceTracker creates: it tracks which phase each step of a sequence is in, and calls your entering function as a step starts, active while it runs, and inactive as it comes to rest. 18.5.4 Tracking a sequence's steps |
| Sequencer | The part of a sound chip that plays its songs. In a browser, it runs on the sound card's clock, so a late frame never holds the music up. 20.6 The Clock That Sound Plays On |
setUpdate, setRefresh | setUpdate(view, fn) sets a view's update method, and setRefresh(view, fn) its refresh method, on its container. updateView and refreshView call them, so a view never calls its children's. 7.9 Updating and Refreshing Views with the @mvtjs Libraries |
SKIP_DESCENDANTS | A value that an update or refresh method may return to skip its container's descendants for that call, such as a hidden panel's. 7.5 Doing Less Work in refresh() |
| Slot | One numbered position in a collection. A <List> keeps one view for each slot, and a slot list keeps each item in the same slot for its whole life. 14.1 How <List> Works |
| Slot list | A collection, made with createSlotList, that keeps each item in the same slot for its whole life, and can keep a removed item readable for a release delay. The model calls its update(deltaMs). 4.9 Collections of Models |
| Storage slot | The slot an item keeps for its whole life in an OrderedSlotList, however the order changes. Its index is the item's identity. 19.3.2 In an OrderedSlotList: storage slots |
<Switch> | A view that shows the first of its <Match> branches whose when is true. Every branch is built up front, and a hidden branch doesn't take any time. 14.5 Showing One of Several: <Switch> |
updateView | updateView(view, deltaMs) calls every update method in a view's tree, each once, parents before children. The ticker calls it on the stage once a frame, after the models and before refreshView. 7.9 Updating and Refreshing Views with the @mvtjs Libraries |
| v-snap | The book's visual testing tool, which runs on Vitest, and draws the same image on every machine. 17.1 Why MVT Views Suit Visual Tests |
ValueOrGetter<T> | A binding type that accepts a fixed value or a getter, T | (() => T). The view tells the two apart as it reads. 8.4.3 Accepting either |
| View tick API | The functions that update and refresh views: updateView and refreshView for the ticker, and setUpdate, setRefresh and SKIP_DESCENDANTS for views. Every renderer package exports them. 7.9 Updating and Refreshing Views with the @mvtjs Libraries |
| Windowed list | A <List> over a fixed number of rows that read through a scroll offset, so scrolling doesn't cause any work for the list. 14.6.5 Windowed lists |