@classytic/labs 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +32 -7
- package/dist/algorithms/GraphAlgorithmLab.d.mts +18 -4
- package/dist/algorithms/GraphAlgorithmLab.mjs +476 -109
- package/dist/algorithms/GraphView.d.mts +83 -3
- package/dist/algorithms/GraphView.mjs +386 -55
- package/dist/algorithms/GridPathLab.d.mts +24 -1
- package/dist/algorithms/GridPathLab.mjs +438 -115
- package/dist/algorithms/GrowthLab.d.mts +30 -2
- package/dist/algorithms/GrowthLab.mjs +239 -117
- package/dist/algorithms/HashLab.d.mts +12 -3
- package/dist/algorithms/HashLab.mjs +194 -61
- package/dist/algorithms/HeapDualView.d.mts +20 -2
- package/dist/algorithms/HeapDualView.mjs +91 -29
- package/dist/algorithms/HeapQuestLab.d.mts +27 -3
- package/dist/algorithms/HeapQuestLab.mjs +170 -40
- package/dist/algorithms/ListLab.d.mts +46 -5
- package/dist/algorithms/ListLab.mjs +551 -69
- package/dist/algorithms/SearchLab.d.mts +9 -1
- package/dist/algorithms/SearchLab.mjs +154 -47
- package/dist/algorithms/SortingLab.d.mts +12 -2
- package/dist/algorithms/SortingLab.mjs +271 -81
- package/dist/algorithms/TreeQuestLab.d.mts +26 -4
- package/dist/algorithms/TreeQuestLab.mjs +297 -140
- package/dist/algorithms/TreeScene.d.mts +3 -1
- package/dist/algorithms/TreeScene.mjs +26 -9
- package/dist/algorithms/contract.d.mts +131 -2
- package/dist/algorithms/core/index.d.mts +17 -13
- package/dist/algorithms/core/index.mjs +13 -10
- package/dist/algorithms/cost-derivation/core.d.mts +22 -5
- package/dist/algorithms/cost-derivation/core.mjs +181 -7
- package/dist/algorithms/cost-derivation/index.d.mts +1 -1
- package/dist/algorithms/cost-derivation/preset.d.mts +13 -3
- package/dist/algorithms/cost-derivation/preset.mjs +376 -21
- package/dist/algorithms/dp/CoinChangeLab.mjs +375 -0
- package/dist/algorithms/dp/ValueEntry.mjs +49 -0
- package/dist/algorithms/dp/coin-change.d.mts +90 -0
- package/dist/algorithms/dp/coin-change.mjs +213 -0
- package/dist/algorithms/dp/index.d.mts +3 -2
- package/dist/algorithms/dp/index.mjs +3 -2
- package/dist/algorithms/dp.d.mts +138 -2
- package/dist/algorithms/dp.mjs +748 -1
- package/dist/algorithms/graph/index.d.mts +3 -3
- package/dist/algorithms/graph/index.mjs +2 -2
- package/dist/algorithms/graph.d.mts +117 -4
- package/dist/algorithms/graph.mjs +1050 -24
- package/dist/algorithms/growth.d.mts +74 -2
- package/dist/algorithms/growth.mjs +146 -3
- package/dist/algorithms/hashing.d.mts +75 -12
- package/dist/algorithms/hashing.mjs +210 -49
- package/dist/algorithms/heap/index.d.mts +2 -2
- package/dist/algorithms/heap/index.mjs +2 -2
- package/dist/algorithms/heap.d.mts +81 -5
- package/dist/algorithms/heap.mjs +321 -112
- package/dist/algorithms/index.d.mts +21 -21
- package/dist/algorithms/index.mjs +16 -16
- package/dist/algorithms/lists.d.mts +46 -2
- package/dist/algorithms/lists.mjs +335 -37
- package/dist/algorithms/react/index.d.mts +6 -6
- package/dist/algorithms/react/index.mjs +5 -5
- package/dist/algorithms/recursion.d.mts +133 -0
- package/dist/algorithms/recursion.mjs +392 -0
- package/dist/algorithms/search.d.mts +19 -5
- package/dist/algorithms/search.mjs +47 -5
- package/dist/algorithms/sequence-contract.d.mts +2 -1
- package/dist/algorithms/sorting.d.mts +88 -7
- package/dist/algorithms/sorting.mjs +293 -41
- package/dist/algorithms/tree/index.d.mts +4 -4
- package/dist/algorithms/tree/index.mjs +2 -2
- package/dist/algorithms/tree-builder.d.mts +10 -3
- package/dist/algorithms/tree-builder.mjs +33 -12
- package/dist/algorithms/tree-contract.d.mts +41 -3
- package/dist/algorithms/tree.d.mts +15 -4
- package/dist/algorithms/tree.mjs +265 -20
- package/dist/algorithms/worlds/delivery/dispatch.mjs +192 -0
- package/dist/algorithms/worlds/delivery/keys.mjs +73 -0
- package/dist/algorithms/worlds/delivery/orders.mjs +169 -0
- package/dist/algorithms/worlds/delivery/roads.mjs +562 -0
- package/dist/algorithms/worlds/delivery/stops.mjs +106 -0
- package/dist/algorithms/worlds/index.d.mts +12 -0
- package/dist/algorithms/worlds/index.mjs +31 -0
- package/dist/algorithms/worlds/types.d.mts +33 -0
- package/dist/biology/cell-division/meiosis-scene.mjs +7 -3
- package/dist/biology/cell-division/preset.mjs +7 -5
- package/dist/biology/cell-sample-investigator.mjs +1 -1
- package/dist/biology/enzyme-rate/preset.mjs +24 -17
- package/dist/biology/photosynthesis-factors/preset.mjs +1 -1
- package/dist/blocks/catalog.d.mts +1 -1
- package/dist/build/CircuitEditor.mjs +19 -60
- package/dist/build/CircuitScene.mjs +33 -44
- package/dist/build/CircuitWorldScene.d.mts +15 -0
- package/dist/build/CircuitWorldScene.mjs +32 -0
- package/dist/build/ElectronicsWorkbenchEditor.d.mts +12 -0
- package/dist/build/ElectronicsWorkbenchEditor.mjs +120 -0
- package/dist/build/ElectronicsWorkbenchPlayer.d.mts +13 -0
- package/dist/build/ElectronicsWorkbenchPlayer.mjs +21 -0
- package/dist/build/contract.d.mts +2 -29
- package/dist/build/editor/index.d.mts +3 -4
- package/dist/build/editor/index.mjs +3 -3
- package/dist/build/editor-ops.mjs +1 -42
- package/dist/build/index.d.mts +7 -8
- package/dist/build/index.mjs +5 -7
- package/dist/build/part-state.mjs +40 -0
- package/dist/build/parts/ammeter.mjs +0 -7
- package/dist/build/parts/bulb.mjs +1 -7
- package/dist/build/parts/capacitor.mjs +1 -2
- package/dist/build/parts/cell.mjs +0 -7
- package/dist/build/parts/diode.mjs +0 -7
- package/dist/build/parts/index.mjs +3 -5
- package/dist/build/parts/mosfet.mjs +0 -12
- package/dist/build/parts/node.mjs +0 -1
- package/dist/build/parts/resistor.mjs +0 -6
- package/dist/build/parts/shared.mjs +9 -7
- package/dist/build/parts/switch.mjs +0 -7
- package/dist/build/runtime/index.d.mts +5 -6
- package/dist/build/runtime/index.mjs +3 -5
- package/dist/build/world-adapter.d.mts +15 -0
- package/dist/build/world-adapter.mjs +118 -0
- package/dist/build/world-editor-ops.d.mts +8 -0
- package/dist/build/world-editor-ops.mjs +200 -0
- package/dist/build/world-solution.mjs +30 -0
- package/dist/catalog/registry.d.mts +4 -3
- package/dist/catalog/templates.mjs +2 -2
- package/dist/chem/air-composition.mjs +28 -0
- package/dist/chem/battery.mjs +38 -337
- package/dist/chem/bohr-atom.d.mts +3 -11
- package/dist/chem/bohr-atom.mjs +2 -259
- package/dist/chem/crystal-lattice/activity.d.mts +1 -0
- package/dist/chem/crystal-lattice/activity.mjs +220 -1
- package/dist/chem/crystal-lattice/core.mjs +14 -4
- package/dist/chem/crystal-lattice/index.d.mts +2 -1
- package/dist/chem/crystal-lattice/preset.d.mts +6 -12
- package/dist/chem/crystal-lattice/preset.mjs +143 -214
- package/dist/chem/crystal-lattice/scene.d.mts +27 -0
- package/dist/chem/crystal-lattice/scene.mjs +405 -0
- package/dist/chem/diffusion/asset.mjs +1 -1
- package/dist/chem/diffusion/preset.mjs +1 -1
- package/dist/chem/electrochem/index.d.mts +2 -1
- package/dist/chem/electrochem/preset.mjs +43 -31
- package/dist/chem/electrochem/scene.d.mts +40 -1
- package/dist/chem/electrochem/scene.mjs +33 -57
- package/dist/chem/electrochem/world.d.mts +40 -0
- package/dist/chem/electrochem/world.mjs +155 -0
- package/dist/chem/equation-conservation-desk.mjs +2 -2
- package/dist/chem/equilibrium/preset.mjs +122 -325
- package/dist/chem/equilibrium/scene.mjs +234 -0
- package/dist/chem/equilibrium/world.mjs +230 -0
- package/dist/chem/evidence-scenes.mjs +198 -1
- package/dist/chem/formula-forge.d.mts +2 -2
- package/dist/chem/formula-forge.mjs +19 -129
- package/dist/chem/gas-box/activity.d.mts +5 -0
- package/dist/chem/gas-box/activity.mjs +213 -0
- package/dist/chem/gas-box/preset.d.mts +7 -3
- package/dist/chem/gas-box/preset.mjs +244 -422
- package/dist/chem/gas-box/scene.mjs +178 -0
- package/dist/chem/gas-box/world.d.mts +5 -0
- package/dist/chem/gas-box/world.mjs +219 -0
- package/dist/chem/index.d.mts +19 -10
- package/dist/chem/index.mjs +3 -2
- package/dist/chem/industrial-process-lab.d.mts +26 -2
- package/dist/chem/industrial-process-lab.mjs +51 -18
- package/dist/chem/kinetics/preset.d.mts +4 -2
- package/dist/chem/kinetics/preset.mjs +198 -351
- package/dist/chem/kinetics/scene.mjs +163 -0
- package/dist/chem/kinetics/world.d.mts +5 -0
- package/dist/chem/kinetics/world.mjs +309 -0
- package/dist/chem/metal-acid.d.mts +25 -0
- package/dist/chem/metal-acid.mjs +164 -0
- package/dist/chem/mole-factory.d.mts +2 -2
- package/dist/chem/mole-factory.mjs +43 -86
- package/dist/chem/molecular-geometry/activity.mjs +6 -6
- package/dist/chem/molecular-geometry/preset.mjs +49 -24
- package/dist/chem/o-level-concepts.d.mts +48 -5
- package/dist/chem/o-level-concepts.mjs +417 -121
- package/dist/chem/orbital-overlap/activity.mjs +2 -1
- package/dist/chem/orbital-overlap/preset.mjs +54 -24
- package/dist/chem/orbitals/activity.mjs +5 -5
- package/dist/chem/orbitals/core.mjs +2 -2
- package/dist/chem/orbitals/preset.mjs +87 -63
- package/dist/chem/particle-theatre.d.mts +5 -3
- package/dist/chem/particle-theatre.mjs +169 -327
- package/dist/chem/periodic-trends/preset.d.mts +16 -2
- package/dist/chem/periodic-trends/preset.mjs +18 -9
- package/dist/chem/ratio-normalizer/preset.mjs +2 -2
- package/dist/chem/reaction-lab/index.d.mts +2 -0
- package/dist/chem/reaction-lab/model.mjs +83 -0
- package/dist/chem/reaction-lab/preset.d.mts +14 -0
- package/dist/chem/reaction-lab/preset.mjs +152 -0
- package/dist/chem/reaction-lab/scene.mjs +139 -0
- package/dist/chem/reaction-lab/world.mjs +96 -0
- package/dist/chem/reaction-profile.mjs +7 -3
- package/dist/chem/solubility-kitchen.d.mts +2 -2
- package/dist/chem/solubility-kitchen.mjs +55 -107
- package/dist/chem/solution/field.mjs +1 -1
- package/dist/chem/solution-mixer.d.mts +2 -2
- package/dist/chem/solution-mixer.mjs +54 -110
- package/dist/chem/species-workshop.d.mts +2 -2
- package/dist/chem/species-workshop.mjs +16 -44
- package/dist/chem/stereochemistry/preset.mjs +22 -18
- package/dist/chem/stoichiometry/preset.mjs +1 -1
- package/dist/chem/structure-detective.d.mts +2 -3
- package/dist/chem/structure-detective.mjs +46 -158
- package/dist/chem/titration/preset.mjs +152 -128
- package/dist/chem/visual/atom.mjs +8 -9
- package/dist/circuits/ac-dc/asset.mjs +59 -40
- package/dist/circuits/ac-dc/index.d.mts +1 -0
- package/dist/circuits/ac-dc/model.d.mts +1 -0
- package/dist/circuits/ac-dc/model.mjs +26 -0
- package/dist/circuits/ac-dc/preset.mjs +77 -66
- package/dist/circuits/ac-response/preset.mjs +41 -13
- package/dist/circuits/bjt-amplifier/activity-plan.mjs +84 -0
- package/dist/circuits/bjt-amplifier/index.d.mts +2 -0
- package/dist/circuits/bjt-amplifier/preset.d.mts +16 -0
- package/dist/circuits/bjt-amplifier/preset.mjs +271 -0
- package/dist/circuits/brownout/preset.mjs +17 -64
- package/dist/circuits/capacitor-energy/index.d.mts +2 -0
- package/dist/circuits/capacitor-energy/preset.d.mts +11 -0
- package/dist/circuits/capacitor-energy/preset.mjs +185 -0
- package/dist/circuits/capacitor-leak/preset.mjs +101 -168
- package/dist/circuits/cell-combination/preset.mjs +1 -1
- package/dist/circuits/circuit/index.d.mts +2 -3
- package/dist/circuits/circuit/preset.d.mts +3 -6
- package/dist/circuits/circuit/preset.mjs +188 -202
- package/dist/circuits/circuit-lab.mjs +56 -237
- package/dist/circuits/cmos-gate/inverter.mjs +5 -5
- package/dist/circuits/cmos-gate/model.mjs +261 -181
- package/dist/circuits/cmos-gate/nand.mjs +4 -4
- package/dist/circuits/cmos-gate/nor.mjs +4 -4
- package/dist/circuits/cmos-gate/rnmos-not.mjs +4 -4
- package/dist/circuits/diode/preset.mjs +44 -104
- package/dist/circuits/energy-cost/preset.mjs +1 -1
- package/dist/circuits/energy-flow/preset.mjs +156 -0
- package/dist/circuits/first-order/preset.mjs +196 -0
- package/dist/circuits/index.d.mts +10 -3
- package/dist/circuits/index.mjs +6 -3
- package/dist/circuits/kirchhoff/core.d.mts +1 -9
- package/dist/circuits/kirchhoff/core.mjs +70 -62
- package/dist/circuits/kirchhoff/preset.d.mts +1 -16
- package/dist/circuits/kirchhoff/preset.mjs +112 -237
- package/dist/circuits/meter-conversion/preset.mjs +13 -22
- package/dist/circuits/network-reduction/preset.mjs +1 -1
- package/dist/circuits/null-balance/core.mjs +1 -13
- package/dist/circuits/null-balance/preset.mjs +26 -19
- package/dist/circuits/op-amp-comparator/activity-plan.mjs +83 -0
- package/dist/circuits/op-amp-comparator/index.d.mts +2 -0
- package/dist/circuits/op-amp-comparator/preset.d.mts +13 -0
- package/dist/circuits/op-amp-comparator/preset.mjs +183 -0
- package/dist/circuits/op-amp-feedback/activity-plan.mjs +81 -0
- package/dist/circuits/op-amp-feedback/index.d.mts +2 -0
- package/dist/circuits/op-amp-feedback/preset.d.mts +16 -0
- package/dist/circuits/op-amp-feedback/preset.mjs +251 -0
- package/dist/circuits/potential-divider/core.d.mts +1 -13
- package/dist/circuits/potential-divider/core.mjs +75 -18
- package/dist/circuits/potential-divider/preset.mjs +103 -175
- package/dist/circuits/rc-charging/preset.d.mts +3 -2
- package/dist/circuits/rc-charging/preset.mjs +27 -566
- package/dist/circuits/rectifier/preset.mjs +184 -0
- package/dist/circuits/regulated-supply/preset.mjs +196 -0
- package/dist/circuits/semiconductor/bjt-inside.mjs +16 -10
- package/dist/circuits/semiconductor/conduction.mjs +20 -11
- package/dist/circuits/semiconductor/diode-world.mjs +62 -0
- package/dist/circuits/semiconductor/hall-effect.mjs +40 -27
- package/dist/circuits/semiconductor/mosfet-inside.mjs +22 -66
- package/dist/circuits/semiconductor/pn-junction.mjs +20 -38
- package/dist/circuits/semiconductor/shared.mjs +15 -12
- package/dist/circuits/semiconductor/silicon-lattice.mjs +12 -9
- package/dist/circuits/smoothing/preset.mjs +178 -0
- package/dist/circuits/transistor/activity-plan.mjs +16 -36
- package/dist/circuits/transistor/preset.d.mts +0 -1
- package/dist/circuits/transistor/preset.mjs +168 -353
- package/dist/commerce/accounting/balance-off/balance-figure.mjs +289 -0
- package/dist/commerce/accounting/balance-off/core.mjs +316 -0
- package/dist/commerce/accounting/balance-off/preset.mjs +717 -0
- package/dist/commerce/accounting/books/chart.d.mts +14 -0
- package/dist/commerce/accounting/books/chart.mjs +184 -0
- package/dist/commerce/accounting/books/entry.d.mts +26 -0
- package/dist/commerce/accounting/books/entry.mjs +161 -0
- package/dist/commerce/accounting/books/errors.mjs +214 -0
- package/dist/commerce/accounting/books/ledger.d.mts +23 -0
- package/dist/commerce/accounting/books/ledger.mjs +165 -0
- package/dist/commerce/accounting/books/world.d.mts +16 -0
- package/dist/commerce/accounting/books/world.mjs +53 -0
- package/dist/commerce/accounting/books/worlds/kalam.mjs +566 -0
- package/dist/commerce/accounting/debit-credit-sprint/core.mjs +148 -0
- package/dist/commerce/accounting/debit-credit-sprint/preset.mjs +298 -0
- package/dist/commerce/accounting/entry-desk/core.mjs +59 -0
- package/dist/commerce/accounting/entry-desk/preset.mjs +317 -0
- package/dist/commerce/accounting/equation-balance.mjs +1 -1
- package/dist/commerce/accounting/journal-poster.d.mts +2 -1
- package/dist/commerce/accounting/journal-poster.mjs +19 -16
- package/dist/commerce/accounting/ledger-detective/core.mjs +306 -0
- package/dist/commerce/accounting/ledger-detective/preset.mjs +741 -0
- package/dist/commerce/economics/demand-shift-vs-move.mjs +1 -1
- package/dist/commerce/economics/elasticity-revenue.mjs +1 -1
- package/dist/commerce/economics/market-equilibrium.mjs +1 -1
- package/dist/commerce/finance/apportion.d.mts +3 -1
- package/dist/commerce/finance/apportion.mjs +15 -15
- package/dist/commerce/finance/break-even.mjs +1 -1
- package/dist/commerce/finance/club-subscriptions/preset.mjs +1 -1
- package/dist/commerce/finance/compound-interest.mjs +1 -1
- package/dist/commerce/finance/depreciation.mjs +1 -1
- package/dist/commerce/finance/limited-company.mjs +1 -1
- package/dist/commerce/finance/supply-chain.mjs +1 -1
- package/dist/core/index.d.mts +1 -2
- package/dist/core/index.mjs +1 -2
- package/dist/core/rng.d.mts +2 -21
- package/dist/core/rng.mjs +2 -38
- package/dist/core/tex.mjs +1 -1
- package/dist/databases/visuals/index-detective-board.d.mts +0 -2
- package/dist/deep-learning/core/attention.d.mts +46 -5
- package/dist/deep-learning/core/attention.mjs +45 -20
- package/dist/deep-learning/core/backprop-graph.d.mts +31 -0
- package/dist/deep-learning/core/backprop-graph.mjs +162 -0
- package/dist/deep-learning/core/bpe.d.mts +11 -0
- package/dist/deep-learning/core/bpe.mjs +25 -0
- package/dist/deep-learning/core/causal-mask.d.mts +54 -2
- package/dist/deep-learning/core/causal-mask.mjs +63 -18
- package/dist/deep-learning/core/char-run.d.mts +156 -0
- package/dist/deep-learning/core/char-run.mjs +318 -0
- package/dist/deep-learning/core/context-window.d.mts +31 -3
- package/dist/deep-learning/core/context-window.mjs +40 -10
- package/dist/deep-learning/core/convolution.d.mts +50 -5
- package/dist/deep-learning/core/convolution.mjs +83 -11
- package/dist/deep-learning/core/dense-layer.d.mts +38 -7
- package/dist/deep-learning/core/dense-layer.mjs +101 -24
- package/dist/deep-learning/core/embedding-neighborhood.d.mts +57 -2
- package/dist/deep-learning/core/embedding-neighborhood.mjs +54 -9
- package/dist/deep-learning/core/encoder-decoder.d.mts +28 -2
- package/dist/deep-learning/core/encoder-decoder.mjs +43 -12
- package/dist/deep-learning/core/feed-forward-network.d.mts +43 -2
- package/dist/deep-learning/core/feed-forward-network.mjs +58 -14
- package/dist/deep-learning/core/gradient-run.d.mts +17 -1
- package/dist/deep-learning/core/gradient-run.mjs +7 -1
- package/dist/deep-learning/core/gradient-step.d.mts +16 -1
- package/dist/deep-learning/core/gradient-step.mjs +34 -2
- package/dist/deep-learning/core/layer-normalization.d.mts +28 -1
- package/dist/deep-learning/core/layer-normalization.mjs +48 -13
- package/dist/deep-learning/core/learning-loop.d.mts +14 -1
- package/dist/deep-learning/core/learning-loop.mjs +20 -1
- package/dist/deep-learning/core/linear-algebra.d.mts +27 -2
- package/dist/deep-learning/core/linear-algebra.mjs +27 -9
- package/dist/deep-learning/core/linear-fit.d.mts +20 -1
- package/dist/deep-learning/core/linear-fit.mjs +36 -10
- package/dist/deep-learning/core/loss.d.mts +22 -1
- package/dist/deep-learning/core/loss.mjs +15 -2
- package/dist/deep-learning/core/memory-relay.d.mts +60 -2
- package/dist/deep-learning/core/memory-relay.mjs +202 -13
- package/dist/deep-learning/core/multi-head-attention.d.mts +58 -5
- package/dist/deep-learning/core/multi-head-attention.mjs +87 -18
- package/dist/deep-learning/core/multimodal-alignment.d.mts +46 -5
- package/dist/deep-learning/core/multimodal-alignment.mjs +57 -14
- package/dist/deep-learning/core/neural-trace.d.mts +24 -1
- package/dist/deep-learning/core/neural-trace.mjs +37 -9
- package/dist/deep-learning/core/overfit-gap.d.mts +28 -0
- package/dist/deep-learning/core/overfit-gap.mjs +197 -0
- package/dist/deep-learning/core/position.d.mts +43 -4
- package/dist/deep-learning/core/position.mjs +66 -28
- package/dist/deep-learning/core/query-key-value.d.mts +53 -16
- package/dist/deep-learning/core/query-key-value.mjs +44 -11
- package/dist/deep-learning/core/residual-stream.d.mts +22 -1
- package/dist/deep-learning/core/residual-stream.mjs +22 -2
- package/dist/deep-learning/core/reward-groups.d.mts +19 -0
- package/dist/deep-learning/core/reward-groups.mjs +110 -0
- package/dist/deep-learning/core/scaled-dot-product-attention.d.mts +49 -2
- package/dist/deep-learning/core/scaled-dot-product-attention.mjs +105 -18
- package/dist/deep-learning/core/tiny-network.d.mts +28 -0
- package/dist/deep-learning/core/tiny-network.mjs +32 -0
- package/dist/deep-learning/core/token-generation.d.mts +52 -3
- package/dist/deep-learning/core/token-generation.mjs +77 -5
- package/dist/deep-learning/core/transformer-block.d.mts +25 -8
- package/dist/deep-learning/core/transformer-block.mjs +47 -2
- package/dist/deep-learning/core/unembedding.d.mts +31 -3
- package/dist/deep-learning/core/unembedding.mjs +110 -8
- package/dist/deep-learning/foundation/activation-gates.d.mts +13 -3
- package/dist/deep-learning/foundation/activation-gates.mjs +126 -41
- package/dist/deep-learning/foundation/affine-neuron.d.mts +16 -3
- package/dist/deep-learning/foundation/affine-neuron.mjs +115 -43
- package/dist/deep-learning/foundation/anomaly-detector.d.mts +29 -3
- package/dist/deep-learning/foundation/anomaly-detector.mjs +240 -50
- package/dist/deep-learning/foundation/attention-routing.d.mts +14 -3
- package/dist/deep-learning/foundation/attention-routing.mjs +103 -30
- package/dist/deep-learning/foundation/autoencoder.d.mts +30 -3
- package/dist/deep-learning/foundation/autoencoder.mjs +115 -35
- package/dist/deep-learning/foundation/backprop-tracer.d.mts +38 -0
- package/dist/deep-learning/foundation/backprop-tracer.mjs +462 -0
- package/dist/deep-learning/foundation/causal-mask.d.mts +15 -3
- package/dist/deep-learning/foundation/causal-mask.mjs +128 -33
- package/dist/deep-learning/foundation/char-model.d.mts +49 -0
- package/dist/deep-learning/foundation/char-model.mjs +717 -0
- package/dist/deep-learning/foundation/context-window.d.mts +22 -3
- package/dist/deep-learning/foundation/context-window.mjs +113 -27
- package/dist/deep-learning/foundation/denoising.d.mts +29 -3
- package/dist/deep-learning/foundation/denoising.mjs +116 -31
- package/dist/deep-learning/foundation/embedding-neighborhood.d.mts +15 -3
- package/dist/deep-learning/foundation/embedding-neighborhood.mjs +107 -31
- package/dist/deep-learning/foundation/encoder-decoder.d.mts +27 -3
- package/dist/deep-learning/foundation/encoder-decoder.mjs +192 -29
- package/dist/deep-learning/foundation/feature-map.d.mts +29 -4
- package/dist/deep-learning/foundation/feature-map.mjs +168 -53
- package/dist/deep-learning/foundation/feed-forward-network.d.mts +17 -2
- package/dist/deep-learning/foundation/feed-forward-network.mjs +146 -56
- package/dist/deep-learning/foundation/fit-evidence.d.mts +11 -3
- package/dist/deep-learning/foundation/fit-evidence.mjs +116 -44
- package/dist/deep-learning/foundation/foundation-support.mjs +29 -0
- package/dist/deep-learning/foundation/gradient-step.d.mts +11 -2
- package/dist/deep-learning/foundation/gradient-step.mjs +114 -45
- package/dist/deep-learning/foundation/lab-goal.mjs +136 -0
- package/dist/deep-learning/foundation/latent-space.d.mts +26 -3
- package/dist/deep-learning/foundation/latent-space.mjs +138 -30
- package/dist/deep-learning/foundation/layer-normalization.d.mts +10 -1
- package/dist/deep-learning/foundation/layer-normalization.mjs +125 -48
- package/dist/deep-learning/foundation/learning-loop.d.mts +11 -2
- package/dist/deep-learning/foundation/learning-loop.mjs +112 -34
- package/dist/deep-learning/foundation/loss-error.d.mts +12 -2
- package/dist/deep-learning/foundation/loss-error.mjs +90 -35
- package/dist/deep-learning/foundation/matrix-vector.d.mts +16 -4
- package/dist/deep-learning/foundation/matrix-vector.mjs +99 -47
- package/dist/deep-learning/foundation/memory-relay.d.mts +28 -3
- package/dist/deep-learning/foundation/memory-relay.mjs +159 -28
- package/dist/deep-learning/foundation/multi-head-attention.d.mts +15 -3
- package/dist/deep-learning/foundation/multi-head-attention.mjs +131 -47
- package/dist/deep-learning/foundation/multimodal-alignment.d.mts +38 -3
- package/dist/deep-learning/foundation/multimodal-alignment.mjs +179 -38
- package/dist/deep-learning/foundation/overfit-gap.d.mts +36 -0
- package/dist/deep-learning/foundation/overfit-gap.mjs +651 -0
- package/dist/deep-learning/foundation/pixel-filter.d.mts +30 -3
- package/dist/deep-learning/foundation/pixel-filter.mjs +213 -26
- package/dist/deep-learning/foundation/position.d.mts +16 -3
- package/dist/deep-learning/foundation/position.mjs +131 -30
- package/dist/deep-learning/foundation/query-key-value.d.mts +15 -3
- package/dist/deep-learning/foundation/query-key-value.mjs +131 -37
- package/dist/deep-learning/foundation/residual-stream.d.mts +11 -2
- package/dist/deep-learning/foundation/residual-stream.mjs +104 -25
- package/dist/deep-learning/foundation/reward-groups.d.mts +53 -0
- package/dist/deep-learning/foundation/reward-groups.mjs +808 -0
- package/dist/deep-learning/foundation/scaled-dot-product-attention.d.mts +16 -2
- package/dist/deep-learning/foundation/scaled-dot-product-attention.mjs +135 -110
- package/dist/deep-learning/foundation/tiny-network.d.mts +26 -4
- package/dist/deep-learning/foundation/tiny-network.mjs +221 -30
- package/dist/deep-learning/foundation/token-generation.d.mts +26 -3
- package/dist/deep-learning/foundation/token-generation.mjs +186 -32
- package/dist/deep-learning/foundation/tokenizer-bpe.d.mts +38 -0
- package/dist/deep-learning/foundation/tokenizer-bpe.mjs +395 -0
- package/dist/deep-learning/foundation/training-loop.d.mts +12 -2
- package/dist/deep-learning/foundation/training-loop.mjs +110 -42
- package/dist/deep-learning/foundation/transformer-block.d.mts +16 -1
- package/dist/deep-learning/foundation/transformer-block.mjs +179 -60
- package/dist/deep-learning/foundation/typed-number.mjs +80 -0
- package/dist/deep-learning/foundation/unembedding.d.mts +22 -3
- package/dist/deep-learning/foundation/unembedding.mjs +156 -101
- package/dist/deep-learning/index.d.mts +39 -27
- package/dist/deep-learning/index.mjs +32 -20
- package/dist/deep-learning/schema-parts.mjs +26 -0
- package/dist/deep-learning/visuals/anomaly-diagram.d.mts +5 -3
- package/dist/deep-learning/visuals/anomaly-diagram.mjs +44 -9
- package/dist/deep-learning/visuals/attention-roles.mjs +21 -0
- package/dist/deep-learning/visuals/attention-routing-diagram.mjs +42 -43
- package/dist/deep-learning/visuals/autoencoder-diagram.d.mts +6 -3
- package/dist/deep-learning/visuals/autoencoder-diagram.mjs +17 -7
- package/dist/deep-learning/visuals/backprop-graph-diagram.d.mts +23 -0
- package/dist/deep-learning/visuals/backprop-graph-diagram.mjs +156 -0
- package/dist/deep-learning/visuals/causal-mask-diagram.d.mts +4 -1
- package/dist/deep-learning/visuals/causal-mask-diagram.mjs +101 -71
- package/dist/deep-learning/visuals/context-window-diagram.d.mts +5 -1
- package/dist/deep-learning/visuals/context-window-diagram.mjs +43 -38
- package/dist/deep-learning/visuals/convolution-diagram.d.mts +8 -3
- package/dist/deep-learning/visuals/convolution-diagram.mjs +17 -11
- package/dist/deep-learning/visuals/denoising-diagram.d.mts +4 -2
- package/dist/deep-learning/visuals/denoising-diagram.mjs +8 -4
- package/dist/deep-learning/visuals/embedding-neighborhood-diagram.d.mts +4 -2
- package/dist/deep-learning/visuals/embedding-neighborhood-diagram.mjs +16 -7
- package/dist/deep-learning/visuals/encoder-decoder-diagram.d.mts +13 -4
- package/dist/deep-learning/visuals/encoder-decoder-diagram.mjs +243 -183
- package/dist/deep-learning/visuals/feature-map-diagram.d.mts +7 -2
- package/dist/deep-learning/visuals/feature-map-diagram.mjs +60 -39
- package/dist/deep-learning/visuals/feed-forward-workshop-diagram.d.mts +2 -2
- package/dist/deep-learning/visuals/feed-forward-workshop-diagram.mjs +9 -5
- package/dist/deep-learning/visuals/latent-space-diagram.d.mts +10 -2
- package/dist/deep-learning/visuals/latent-space-diagram.mjs +56 -31
- package/dist/deep-learning/visuals/layer-normalization-diagram.d.mts +2 -2
- package/dist/deep-learning/visuals/layer-normalization-diagram.mjs +21 -25
- package/dist/deep-learning/visuals/learning-loop-diagram.mjs +4 -4
- package/dist/deep-learning/visuals/memory-relay-diagram.d.mts +4 -3
- package/dist/deep-learning/visuals/memory-relay-diagram.mjs +125 -62
- package/dist/deep-learning/visuals/multi-head-attention-diagram.d.mts +3 -2
- package/dist/deep-learning/visuals/multi-head-attention-diagram.mjs +52 -46
- package/dist/deep-learning/visuals/multimodal-alignment-diagram.d.mts +4 -3
- package/dist/deep-learning/visuals/multimodal-alignment-diagram.mjs +71 -37
- package/dist/deep-learning/visuals/neuron-diagram.d.mts +8 -0
- package/dist/deep-learning/visuals/neuron-diagram.mjs +245 -147
- package/dist/deep-learning/visuals/pixel-window-diagram.mjs +69 -0
- package/dist/deep-learning/visuals/position-diagram.d.mts +5 -1
- package/dist/deep-learning/visuals/position-diagram.mjs +48 -27
- package/dist/deep-learning/visuals/query-key-value-diagram.mjs +54 -50
- package/dist/deep-learning/visuals/residual-stream-diagram.d.mts +3 -1
- package/dist/deep-learning/visuals/residual-stream-diagram.mjs +16 -11
- package/dist/deep-learning/visuals/scaled-attention-mixer.mjs +21 -24
- package/dist/deep-learning/visuals/token-generation-diagram.d.mts +7 -1
- package/dist/deep-learning/visuals/token-generation-diagram.mjs +7 -5
- package/dist/deep-learning/visuals/training-trail-diagram.mjs +100 -12
- package/dist/deep-learning/visuals/transformer-block-diagram.d.mts +4 -1
- package/dist/deep-learning/visuals/transformer-block-diagram.mjs +20 -20
- package/dist/deep-learning/visuals/unembedding-diagram.d.mts +5 -2
- package/dist/deep-learning/visuals/unembedding-diagram.mjs +19 -14
- package/dist/deep-learning/worlds/word-list-ids.d.mts +9 -0
- package/dist/deep-learning/worlds/word-list-ids.mjs +9 -0
- package/dist/deep-learning/worlds/word-lists.d.mts +12 -0
- package/dist/deep-learning/worlds/word-lists.mjs +221 -0
- package/dist/diagrams/graph/GraphDiagram.mjs +266 -0
- package/dist/diagrams/graph/core.mjs +52 -0
- package/dist/diagrams/graph/schema.mjs +78 -0
- package/dist/diagrams/graph/spec.d.mts +88 -0
- package/dist/diagrams/index.d.mts +8 -0
- package/dist/diagrams/index.mjs +18 -0
- package/dist/diagrams/magnetism/MagnetismDiagram.d.mts +1 -0
- package/dist/diagrams/magnetism/MagnetismDiagram.mjs +1702 -0
- package/dist/diagrams/magnetism/core.mjs +586 -0
- package/dist/diagrams/magnetism/schema.mjs +236 -0
- package/dist/diagrams/magnetism/spec.d.mts +295 -0
- package/dist/diagrams/rich.mjs +27 -0
- package/dist/diagrams/schema.mjs +11 -0
- package/dist/discrete/arrangements/preset.mjs +3 -3
- package/dist/discrete/bayes/preset.d.mts +18 -2
- package/dist/discrete/bayes/preset.mjs +87 -24
- package/dist/discrete/binomial/preset.mjs +68 -28
- package/dist/discrete/combination-studio/figure.mjs +13 -9
- package/dist/discrete/combination-studio/preset.mjs +25 -39
- package/dist/discrete/core/enumerate.d.mts +34 -0
- package/dist/discrete/core/enumerate.mjs +128 -0
- package/dist/discrete/core/exact.d.mts +24 -0
- package/dist/discrete/core/exact.mjs +60 -0
- package/dist/discrete/core/index.d.mts +12 -0
- package/dist/discrete/core/rng.d.mts +2 -0
- package/dist/discrete/core/rng.mjs +3 -0
- package/dist/discrete/core/solve.d.mts +59 -0
- package/dist/discrete/core/solve.mjs +296 -0
- package/dist/discrete/core/special.d.mts +32 -0
- package/dist/discrete/core/special.mjs +101 -0
- package/dist/discrete/core/twelvefold.d.mts +33 -0
- package/dist/discrete/core/twelvefold.mjs +136 -0
- package/dist/discrete/counting-slots/preset.d.mts +7 -1
- package/dist/discrete/counting-slots/preset.mjs +48 -16
- package/dist/discrete/counting-tree/preset.mjs +1 -1
- package/dist/discrete/expected-value/preset.mjs +2 -2
- package/dist/discrete/graded-ask.mjs +184 -0
- package/dist/discrete/hypergeometric/preset.mjs +75 -25
- package/dist/discrete/index.d.mts +8 -2
- package/dist/discrete/index.mjs +7 -2
- package/dist/discrete/karnaugh/preset.mjs +64 -52
- package/dist/discrete/lln/asset.mjs +32 -35
- package/dist/discrete/lln/preset.mjs +4 -6
- package/dist/discrete/monte-carlo/preset.d.mts +22 -3
- package/dist/discrete/monte-carlo/preset.mjs +59 -13
- package/dist/discrete/monty-hall/preset.mjs +40 -124
- package/dist/discrete/monty-hall/world.mjs +234 -0
- package/dist/discrete/outcome-builder/preset.mjs +1 -1
- package/dist/discrete/pascal/preset.mjs +43 -24
- package/dist/discrete/proof-builder/preset.mjs +1 -1
- package/dist/discrete/sample-space/preset.mjs +1 -1
- package/dist/discrete/selection/preset.mjs +11 -11
- package/dist/discrete/statement-logic/core.d.mts +15 -1
- package/dist/discrete/statement-logic/preset.mjs +136 -3
- package/dist/discrete/truth-table/preset.mjs +3 -2
- package/dist/discrete/venn/preset.d.mts +1 -0
- package/dist/discrete/venn/preset.mjs +44 -20
- package/dist/distributed-systems/visuals/shard-key-board.d.mts +0 -2
- package/dist/domains/accounting/apportion/manifest.mjs +1 -0
- package/dist/domains/accounting/balance-off/manifest.mjs +87 -0
- package/dist/domains/accounting/balance-off/runtime.mjs +5 -0
- package/dist/domains/accounting/bank-reconciliation/runtime.mjs +1 -5
- package/dist/domains/accounting/bank-reconciliation/scene.mjs +52 -40
- package/dist/domains/accounting/debit-credit-sprint/manifest.mjs +105 -0
- package/dist/domains/accounting/debit-credit-sprint/runtime.mjs +5 -0
- package/dist/domains/accounting/entry-desk/manifest.mjs +110 -0
- package/dist/domains/accounting/entry-desk/runtime.mjs +5 -0
- package/dist/domains/accounting/integrated-budget-mission/activity.mjs +3 -3
- package/dist/domains/accounting/integrated-budget-mission/manifest.mjs +5 -2
- package/dist/domains/accounting/integrated-budget-mission/runtime.mjs +60 -2
- package/dist/domains/accounting/inventory-costing/activity.mjs +2 -2
- package/dist/domains/accounting/inventory-costing/manifest.mjs +10 -5
- package/dist/domains/accounting/inventory-costing/runtime.mjs +42 -24
- package/dist/domains/accounting/inventory-costing/scene.mjs +2 -2
- package/dist/domains/accounting/journal-poster/manifest.mjs +1 -0
- package/dist/domains/accounting/journal-poster/runtime.mjs +1 -0
- package/dist/domains/accounting/ledger-detective/manifest.mjs +166 -0
- package/dist/domains/accounting/ledger-detective/runtime.mjs +12 -0
- package/dist/domains/accounting/variance-detective/manifest.mjs +7 -1
- package/dist/domains/accounting/variance-detective/runtime.mjs +84 -20
- package/dist/domains/activity-map.mjs +59 -53
- package/dist/domains/block-loaders.mjs +1 -0
- package/dist/domains/block-sets/accounting.mjs +43 -35
- package/dist/domains/block-sets/chem.mjs +89 -75
- package/dist/domains/block-sets/circuits.mjs +31 -27
- package/dist/domains/block-sets/exam.mjs +2 -1
- package/dist/domains/block-sets/ict.mjs +26 -20
- package/dist/domains/block-sets/math.mjs +174 -66
- package/dist/domains/block-sets/ml.mjs +51 -35
- package/dist/domains/block-sets/physics.mjs +247 -103
- package/dist/domains/block-sets/revision.mjs +21 -0
- package/dist/domains/catalog-map.mjs +8511 -4242
- package/dist/domains/chem/acid-base/titration/manifest.mjs +62 -0
- package/dist/domains/chem/acid-base/titration/runtime.mjs +5 -0
- package/dist/domains/chem/acid-base/titration-run/activity.mjs +54 -0
- package/dist/domains/chem/acid-base/titration-run/live-scene.mjs +161 -0
- package/dist/domains/chem/acid-base/titration-run/manifest.mjs +87 -0
- package/dist/domains/chem/acid-base/titration-run/model.mjs +344 -0
- package/dist/domains/chem/acid-base/titration-run/runtime.mjs +274 -0
- package/dist/domains/chem/acid-base/titration-run/scene.mjs +191 -0
- package/dist/domains/chem/analysis/apparatus-builder/manifest.mjs +101 -0
- package/dist/domains/chem/analysis/apparatus-builder/model.mjs +411 -0
- package/dist/domains/chem/analysis/apparatus-builder/runtime.mjs +221 -0
- package/dist/domains/chem/analysis/apparatus-builder/scene.mjs +834 -0
- package/dist/domains/chem/analysis/apparatus-choice/manifest.mjs +64 -0
- package/dist/domains/chem/analysis/apparatus-choice/runtime.mjs +5 -0
- package/dist/domains/chem/analysis/change-detective/activity.mjs +81 -0
- package/dist/domains/chem/analysis/change-detective/manifest.mjs +46 -0
- package/dist/domains/chem/analysis/change-detective/model.mjs +65 -0
- package/dist/domains/chem/analysis/change-detective/runtime.mjs +73 -0
- package/dist/domains/chem/analysis/change-detective/scene.mjs +415 -0
- package/dist/domains/chem/analysis/chem-qualitative-analysis/activity.mjs +95 -0
- package/dist/domains/chem/analysis/chem-qualitative-analysis/manifest.mjs +68 -0
- package/dist/domains/chem/analysis/chem-qualitative-analysis/runtime.mjs +303 -0
- package/dist/domains/chem/analysis/chromatography-plate/activity.mjs +87 -0
- package/dist/domains/chem/analysis/chromatography-plate/manifest.mjs +59 -0
- package/dist/domains/chem/analysis/chromatography-plate/model.mjs +180 -0
- package/dist/domains/chem/analysis/chromatography-plate/runtime.mjs +200 -0
- package/dist/domains/chem/analysis/chromatography-plate/scene.mjs +292 -0
- package/dist/domains/chem/analysis/complex-colour/activity.mjs +94 -0
- package/dist/domains/chem/analysis/complex-colour/manifest.mjs +53 -0
- package/dist/domains/chem/analysis/complex-colour/model.mjs +243 -0
- package/dist/domains/chem/analysis/complex-colour/runtime.mjs +179 -0
- package/dist/domains/chem/analysis/complex-colour/scene.mjs +283 -0
- package/dist/domains/chem/analysis/composition-evidence/activity.mjs +94 -0
- package/dist/domains/chem/analysis/composition-evidence/manifest.mjs +71 -0
- package/dist/domains/chem/analysis/composition-evidence/model.mjs +60 -0
- package/dist/domains/chem/analysis/composition-evidence/runtime.mjs +127 -0
- package/dist/domains/chem/analysis/composition-evidence/scene.mjs +308 -0
- package/dist/domains/chem/analysis/conductivity-bench/activity.mjs +95 -0
- package/dist/domains/chem/analysis/conductivity-bench/manifest.mjs +69 -0
- package/dist/domains/chem/analysis/conductivity-bench/material-scene.mjs +162 -0
- package/dist/domains/chem/analysis/conductivity-bench/model.mjs +257 -0
- package/dist/domains/chem/analysis/conductivity-bench/runtime.mjs +212 -0
- package/dist/domains/chem/analysis/conductivity-bench/scene.mjs +305 -0
- package/dist/domains/chem/analysis/conductivity-bench/world.mjs +182 -0
- package/dist/domains/chem/analysis/flame-test/activity.mjs +66 -0
- package/dist/domains/chem/analysis/flame-test/manifest.mjs +85 -0
- package/dist/domains/chem/analysis/flame-test/model.mjs +171 -0
- package/dist/domains/chem/analysis/flame-test/runtime.mjs +221 -0
- package/dist/domains/chem/analysis/flame-test/scene.mjs +173 -0
- package/dist/domains/chem/analysis/paper-chromatogram/manifest.mjs +119 -0
- package/dist/domains/chem/analysis/paper-chromatogram/model.mjs +177 -0
- package/dist/domains/chem/analysis/paper-chromatogram/runtime.mjs +268 -0
- package/dist/domains/chem/analysis/paper-chromatogram/scene.mjs +310 -0
- package/dist/domains/chem/analysis/practical-observation/activity.mjs +66 -0
- package/dist/domains/chem/analysis/practical-observation/manifest.mjs +50 -0
- package/dist/domains/chem/analysis/practical-observation/model.mjs +487 -0
- package/dist/domains/chem/analysis/practical-observation/runtime.mjs +113 -0
- package/dist/domains/chem/analysis/practical-observation/scene.mjs +663 -0
- package/dist/domains/chem/analysis/precipitation-bench/activity.mjs +65 -0
- package/dist/domains/chem/analysis/precipitation-bench/manifest.mjs +61 -0
- package/dist/domains/chem/analysis/precipitation-bench/model.mjs +72 -0
- package/dist/domains/chem/analysis/precipitation-bench/runtime.mjs +117 -0
- package/dist/domains/chem/analysis/precipitation-bench/scene.mjs +170 -0
- package/dist/domains/chem/analysis/precipitation-bench/world.mjs +130 -0
- package/dist/domains/chem/analysis/reaction-evidence/manifest.mjs +63 -0
- package/dist/domains/chem/analysis/reaction-evidence/runtime.mjs +5 -0
- package/dist/domains/chem/analysis/species-workshop/activity.mjs +55 -0
- package/dist/domains/chem/analysis/species-workshop/manifest.mjs +66 -0
- package/dist/domains/chem/analysis/species-workshop/runtime.mjs +6 -0
- package/dist/domains/chem/analysis/species-workshop/world.d.mts +5 -0
- package/dist/domains/chem/analysis/species-workshop/world.mjs +124 -0
- package/dist/domains/chem/analysis/specimen-row/activity.mjs +70 -0
- package/dist/domains/chem/analysis/specimen-row/manifest.mjs +57 -0
- package/dist/domains/chem/analysis/specimen-row/model.mjs +122 -0
- package/dist/domains/chem/analysis/specimen-row/runtime.mjs +109 -0
- package/dist/domains/chem/analysis/specimen-row/scene.mjs +234 -0
- package/dist/domains/chem/analysis/structure-detective/activity.mjs +67 -0
- package/dist/domains/chem/analysis/structure-detective/manifest.mjs +59 -0
- package/dist/domains/chem/analysis/structure-detective/model.d.mts +5 -0
- package/dist/domains/chem/analysis/structure-detective/model.mjs +119 -0
- package/dist/domains/chem/analysis/structure-detective/runtime.mjs +6 -0
- package/dist/domains/chem/analysis/structure-detective/world.mjs +105 -0
- package/dist/domains/chem/electrochemistry/battery/manifest.mjs +55 -0
- package/dist/domains/chem/electrochemistry/battery/model.d.mts +18 -0
- package/dist/domains/chem/electrochemistry/battery/model.mjs +63 -0
- package/dist/domains/chem/electrochemistry/battery/runtime.mjs +15 -0
- package/dist/domains/chem/electrochemistry/battery/scene.d.mts +9 -0
- package/dist/domains/chem/electrochemistry/battery/scene.mjs +367 -0
- package/dist/domains/chem/electrochemistry/battery/world.d.mts +11 -0
- package/dist/domains/chem/electrochemistry/battery/world.mjs +92 -0
- package/dist/domains/chem/electrochemistry/corrosion-cell/activity.mjs +67 -0
- package/dist/domains/chem/electrochemistry/corrosion-cell/manifest.mjs +87 -0
- package/dist/domains/chem/electrochemistry/corrosion-cell/runtime.mjs +261 -0
- package/dist/domains/chem/electrochemistry/corrosion-cell/scene.d.mts +9 -0
- package/dist/domains/chem/electrochemistry/corrosion-cell/scene.mjs +186 -0
- package/dist/domains/chem/electrochemistry/corrosion-cell/tubes.mjs +64 -0
- package/dist/domains/chem/electrochemistry/corrosion-cell/world.d.mts +43 -0
- package/dist/domains/chem/electrochemistry/corrosion-cell/world.mjs +189 -0
- package/dist/domains/chem/electrochemistry/electrochem/manifest.mjs +72 -0
- package/dist/domains/chem/electrochemistry/electrochem/runtime.mjs +5 -0
- package/dist/domains/chem/electrochemistry/electrolysis-bench/activity.mjs +92 -0
- package/dist/domains/chem/electrochemistry/electrolysis-bench/manifest.mjs +117 -0
- package/dist/domains/chem/electrochemistry/electrolysis-bench/model.mjs +255 -0
- package/dist/domains/chem/electrochemistry/electrolysis-bench/runtime.mjs +209 -0
- package/dist/domains/chem/electrochemistry/electrolysis-bench/scene.mjs +295 -0
- package/dist/domains/chem/electrochemistry/electrolysis-bench/world.mjs +96 -0
- package/dist/domains/chem/electrochemistry/faraday-bench/activity.mjs +51 -0
- package/dist/domains/chem/electrochemistry/faraday-bench/manifest.mjs +65 -0
- package/dist/domains/chem/electrochemistry/faraday-bench/model.mjs +193 -0
- package/dist/domains/chem/electrochemistry/faraday-bench/runtime.mjs +120 -0
- package/dist/domains/chem/electrochemistry/faraday-bench/scene.mjs +271 -0
- package/dist/domains/chem/electrochemistry/faraday-bench/world.mjs +84 -0
- package/dist/domains/chem/electrochemistry/fuel-cell-flow/activity.mjs +81 -0
- package/dist/domains/chem/electrochemistry/fuel-cell-flow/manifest.mjs +49 -0
- package/dist/domains/chem/electrochemistry/fuel-cell-flow/model.mjs +63 -0
- package/dist/domains/chem/electrochemistry/fuel-cell-flow/runtime.mjs +143 -0
- package/dist/domains/chem/electrochemistry/fuel-cell-flow/scene.mjs +245 -0
- package/dist/domains/chem/electrochemistry/fuel-cell-flow/world.mjs +72 -0
- package/dist/domains/chem/electrochemistry/redox-balancer/activity.mjs +86 -0
- package/dist/domains/chem/electrochemistry/redox-balancer/manifest.mjs +52 -0
- package/dist/domains/chem/electrochemistry/redox-balancer/model.mjs +215 -0
- package/dist/domains/chem/electrochemistry/redox-balancer/runtime.mjs +177 -0
- package/dist/domains/chem/electrochemistry/redox-balancer/scene.mjs +267 -0
- package/dist/domains/chem/energetics/bond-energy-ledger/activity.mjs +67 -0
- package/dist/domains/chem/energetics/bond-energy-ledger/manifest.mjs +67 -0
- package/dist/domains/chem/energetics/bond-energy-ledger/model.mjs +79 -0
- package/dist/domains/chem/energetics/bond-energy-ledger/runtime.mjs +141 -0
- package/dist/domains/chem/energetics/bond-energy-ledger/scene.mjs +149 -0
- package/dist/domains/chem/energetics/energy-cycle/activity.mjs +86 -0
- package/dist/domains/chem/energetics/energy-cycle/manifest.mjs +52 -0
- package/dist/domains/chem/energetics/energy-cycle/model.mjs +249 -0
- package/dist/domains/chem/energetics/energy-cycle/runtime.mjs +176 -0
- package/dist/domains/chem/energetics/energy-cycle/scene.mjs +277 -0
- package/dist/domains/chem/energetics/hydrate-cycle/activity.mjs +96 -0
- package/dist/domains/chem/energetics/hydrate-cycle/manifest.mjs +56 -0
- package/dist/domains/chem/energetics/hydrate-cycle/model.mjs +99 -0
- package/dist/domains/chem/energetics/hydrate-cycle/runtime.mjs +187 -0
- package/dist/domains/chem/energetics/hydrate-cycle/scene.mjs +268 -0
- package/dist/domains/chem/gases-and-states/air-composition/manifest.mjs +51 -0
- package/dist/domains/chem/gases-and-states/air-composition/runtime.mjs +5 -0
- package/dist/domains/chem/gases-and-states/gas-box/manifest.mjs +89 -0
- package/dist/domains/chem/gases-and-states/gas-box/runtime.mjs +5 -0
- package/dist/domains/chem/gases-and-states/particle-theatre/manifest.mjs +72 -0
- package/dist/domains/chem/gases-and-states/particle-theatre/runtime.mjs +5 -0
- package/dist/domains/chem/gases-and-states/particle-theatre/scene.mjs +102 -0
- package/dist/domains/chem/gases-and-states/particle-theatre/world.d.mts +5 -0
- package/dist/domains/chem/gases-and-states/particle-theatre/world.mjs +203 -0
- package/dist/domains/chem/industrial/applied-chemistry/manifest.mjs +62 -0
- package/dist/domains/chem/industrial/applied-chemistry/runtime.mjs +5 -0
- package/dist/domains/chem/industrial/contact-process-control/activity.mjs +75 -0
- package/dist/domains/chem/industrial/contact-process-control/manifest.mjs +48 -0
- package/dist/domains/chem/industrial/contact-process-control/model.mjs +106 -0
- package/dist/domains/chem/industrial/contact-process-control/runtime.mjs +65 -0
- package/dist/domains/chem/industrial/contact-process-control/scene.mjs +694 -0
- package/dist/domains/chem/industrial/industrial-process/manifest.mjs +65 -0
- package/dist/domains/chem/industrial/industrial-process/runtime.mjs +5 -0
- package/dist/domains/chem/kinetics-equilibrium/catalytic-cycle/activity.mjs +36 -0
- package/dist/domains/chem/kinetics-equilibrium/catalytic-cycle/manifest.mjs +44 -0
- package/dist/domains/chem/kinetics-equilibrium/catalytic-cycle/model.mjs +61 -0
- package/dist/domains/chem/kinetics-equilibrium/catalytic-cycle/runtime.mjs +61 -0
- package/dist/domains/chem/kinetics-equilibrium/catalytic-cycle/scene.mjs +28 -0
- package/dist/domains/chem/kinetics-equilibrium/kinetics/manifest.mjs +69 -0
- package/dist/domains/chem/kinetics-equilibrium/kinetics/runtime.mjs +5 -0
- package/dist/domains/chem/kinetics-equilibrium/le-chatelier/manifest.mjs +57 -0
- package/dist/domains/chem/kinetics-equilibrium/le-chatelier/runtime.mjs +5 -0
- package/dist/domains/chem/kinetics-equilibrium/mechanism-walk/activity.mjs +53 -0
- package/dist/domains/chem/kinetics-equilibrium/mechanism-walk/manifest.mjs +53 -0
- package/dist/domains/chem/kinetics-equilibrium/mechanism-walk/model.mjs +431 -0
- package/dist/domains/chem/kinetics-equilibrium/mechanism-walk/runtime.mjs +76 -0
- package/dist/domains/chem/kinetics-equilibrium/mechanism-walk/scene.mjs +36 -0
- package/dist/domains/chem/kinetics-equilibrium/reaction-lab/manifest.mjs +56 -0
- package/dist/domains/chem/kinetics-equilibrium/reaction-lab/runtime.mjs +18 -0
- package/dist/domains/chem/kinetics-equilibrium/reaction-profile/manifest.mjs +57 -0
- package/dist/domains/chem/kinetics-equilibrium/reaction-profile/runtime.mjs +17 -0
- package/dist/domains/chem/metals/metal-reactivity-bench/manifest.mjs +97 -0
- package/dist/domains/chem/metals/metal-reactivity-bench/model.mjs +213 -0
- package/dist/domains/chem/metals/metal-reactivity-bench/runtime.mjs +242 -0
- package/dist/domains/chem/metals/metal-reactivity-bench/scene.mjs +657 -0
- package/dist/domains/chem/organic/alkene-geometry/activity.mjs +73 -0
- package/dist/domains/chem/organic/alkene-geometry/manifest.mjs +58 -0
- package/dist/domains/chem/organic/alkene-geometry/model.d.mts +131 -0
- package/dist/domains/chem/organic/alkene-geometry/model.mjs +204 -0
- package/dist/domains/chem/organic/alkene-geometry/runtime.mjs +118 -0
- package/dist/domains/chem/organic/alkene-geometry/scene.d.mts +8 -0
- package/dist/domains/chem/organic/alkene-geometry/scene.mjs +170 -0
- package/dist/domains/chem/organic/arene-evidence/activity.mjs +86 -0
- package/dist/domains/chem/organic/arene-evidence/manifest.mjs +51 -0
- package/dist/domains/chem/organic/arene-evidence/model.d.mts +71 -0
- package/dist/domains/chem/organic/arene-evidence/model.mjs +116 -0
- package/dist/domains/chem/organic/arene-evidence/runtime.mjs +140 -0
- package/dist/domains/chem/organic/arene-evidence/scene.d.mts +8 -0
- package/dist/domains/chem/organic/arene-evidence/scene.mjs +208 -0
- package/dist/domains/chem/organic/functional-group-lens/activity.mjs +86 -0
- package/dist/domains/chem/organic/functional-group-lens/manifest.mjs +54 -0
- package/dist/domains/chem/organic/functional-group-lens/model.d.mts +128 -0
- package/dist/domains/chem/organic/functional-group-lens/model.mjs +250 -0
- package/dist/domains/chem/organic/functional-group-lens/runtime.d.mts +16 -0
- package/dist/domains/chem/organic/functional-group-lens/runtime.mjs +140 -0
- package/dist/domains/chem/organic/functional-group-lens/scene.d.mts +10 -0
- package/dist/domains/chem/organic/functional-group-lens/scene.mjs +388 -0
- package/dist/domains/chem/organic/isomer-builder/activity.mjs +86 -0
- package/dist/domains/chem/organic/isomer-builder/manifest.mjs +52 -0
- package/dist/domains/chem/organic/isomer-builder/model.mjs +345 -0
- package/dist/domains/chem/organic/isomer-builder/runtime.mjs +186 -0
- package/dist/domains/chem/organic/isomer-builder/scene.mjs +216 -0
- package/dist/domains/chem/organic/isomer-builder/world.mjs +81 -0
- package/dist/domains/chem/organic/nmr-reader/activity.mjs +88 -0
- package/dist/domains/chem/organic/nmr-reader/manifest.mjs +59 -0
- package/dist/domains/chem/organic/nmr-reader/model.mjs +200 -0
- package/dist/domains/chem/organic/nmr-reader/runtime.mjs +169 -0
- package/dist/domains/chem/organic/nmr-reader/scene.mjs +30 -0
- package/dist/domains/chem/organic/organic-formula-studio/activity.mjs +128 -0
- package/dist/domains/chem/organic/organic-formula-studio/manifest.mjs +67 -0
- package/dist/domains/chem/organic/organic-formula-studio/model.mjs +47 -0
- package/dist/domains/chem/organic/organic-formula-studio/pattern-scene.mjs +344 -0
- package/dist/domains/chem/organic/organic-formula-studio/runtime.mjs +233 -0
- package/dist/domains/chem/organic/organic-formula-studio/scene.mjs +354 -0
- package/dist/domains/chem/organic/organic-formula-studio/topics.mjs +186 -0
- package/dist/domains/chem/organic/organic-reaction-map/manifest.mjs +67 -0
- package/dist/domains/chem/organic/organic-reaction-map/runtime.mjs +5 -0
- package/dist/domains/chem/organic/polymer-builder/activity.mjs +88 -0
- package/dist/domains/chem/organic/polymer-builder/manifest.mjs +63 -0
- package/dist/domains/chem/organic/polymer-builder/model.mjs +200 -0
- package/dist/domains/chem/organic/polymer-builder/runtime.mjs +182 -0
- package/dist/domains/chem/organic/polymer-builder/scene.mjs +153 -0
- package/dist/domains/chem/organic/polymer-builder/world.mjs +84 -0
- package/dist/domains/chem/organic/spectrum-reader/activity.mjs +36 -0
- package/dist/domains/chem/organic/spectrum-reader/manifest.mjs +47 -0
- package/dist/domains/chem/organic/spectrum-reader/model.mjs +244 -0
- package/dist/domains/chem/organic/spectrum-reader/runtime.mjs +62 -0
- package/dist/domains/chem/organic/spectrum-reader/scene.mjs +37 -0
- package/dist/domains/chem/organic/stereochemistry/activity.mjs +3 -0
- package/dist/domains/chem/organic/stereochemistry/manifest.mjs +65 -0
- package/dist/domains/chem/organic/stereochemistry/runtime.mjs +21 -0
- package/dist/domains/chem/organic/synthesis-route/activity.mjs +36 -0
- package/dist/domains/chem/organic/synthesis-route/manifest.mjs +45 -0
- package/dist/domains/chem/organic/synthesis-route/model.mjs +165 -0
- package/dist/domains/chem/organic/synthesis-route/runtime.mjs +75 -0
- package/dist/domains/chem/organic/synthesis-route/scene.mjs +229 -0
- package/dist/domains/chem/organic/synthesis-route/world.mjs +78 -0
- package/dist/domains/chem/quantitative/dilution/manifest.mjs +57 -0
- package/dist/domains/chem/quantitative/dilution/runtime.mjs +5 -0
- package/dist/domains/chem/quantitative/equation-conservation-desk/activity.mjs +55 -0
- package/dist/domains/chem/quantitative/equation-conservation-desk/manifest.mjs +61 -0
- package/dist/domains/chem/quantitative/equation-conservation-desk/runtime.mjs +6 -0
- package/dist/domains/chem/quantitative/formula-forge/activity.mjs +55 -0
- package/dist/domains/chem/quantitative/formula-forge/manifest.mjs +66 -0
- package/dist/domains/chem/quantitative/formula-forge/runtime.mjs +6 -0
- package/dist/domains/chem/quantitative/formula-forge/world.d.mts +5 -0
- package/dist/domains/chem/quantitative/formula-forge/world.mjs +206 -0
- package/dist/domains/chem/quantitative/formula-workbench/activity.mjs +92 -0
- package/dist/domains/chem/quantitative/formula-workbench/manifest.mjs +73 -0
- package/dist/domains/chem/quantitative/formula-workbench/model.mjs +89 -0
- package/dist/domains/chem/quantitative/formula-workbench/runtime.mjs +131 -0
- package/dist/domains/chem/quantitative/formula-workbench/scene.mjs +276 -0
- package/dist/domains/chem/quantitative/formula-workbench/world.mjs +111 -0
- package/dist/domains/chem/quantitative/mole-factory/activity.mjs +55 -0
- package/dist/domains/chem/quantitative/mole-factory/manifest.mjs +62 -0
- package/dist/domains/chem/quantitative/mole-factory/model.d.mts +5 -0
- package/dist/domains/chem/quantitative/mole-factory/model.mjs +70 -0
- package/dist/domains/chem/quantitative/mole-factory/runtime.mjs +6 -0
- package/dist/domains/chem/quantitative/mole-factory/world.mjs +90 -0
- package/dist/domains/chem/quantitative/percent-lens/activity.mjs +119 -0
- package/dist/domains/chem/quantitative/percent-lens/manifest.mjs +65 -0
- package/dist/domains/chem/quantitative/percent-lens/model.mjs +84 -0
- package/dist/domains/chem/quantitative/percent-lens/runtime.mjs +114 -0
- package/dist/domains/chem/quantitative/percent-lens/scene.mjs +278 -0
- package/dist/domains/chem/quantitative/percentage-purity-lab/activity.mjs +85 -0
- package/dist/domains/chem/quantitative/percentage-purity-lab/manifest.mjs +51 -0
- package/dist/domains/chem/quantitative/percentage-purity-lab/model.mjs +101 -0
- package/dist/domains/chem/quantitative/percentage-purity-lab/runtime.mjs +146 -0
- package/dist/domains/chem/quantitative/percentage-purity-lab/scene.mjs +306 -0
- package/dist/domains/chem/quantitative/percentage-yield-lab/activity.mjs +54 -0
- package/dist/domains/chem/quantitative/percentage-yield-lab/manifest.mjs +60 -0
- package/dist/domains/chem/quantitative/percentage-yield-lab/model.mjs +96 -0
- package/dist/domains/chem/quantitative/percentage-yield-lab/runtime.mjs +124 -0
- package/dist/domains/chem/quantitative/percentage-yield-lab/scene.mjs +153 -0
- package/dist/domains/chem/quantitative/quantity-route/manifest.mjs +133 -0
- package/dist/domains/chem/quantitative/quantity-route/runtime.mjs +5 -0
- package/dist/domains/chem/quantitative/ratio-normalizer/manifest.mjs +61 -0
- package/dist/domains/chem/quantitative/ratio-normalizer/runtime.mjs +5 -0
- package/dist/domains/chem/quantitative/relation-origin/activity.mjs +42 -0
- package/dist/domains/chem/quantitative/relation-origin/manifest.mjs +61 -0
- package/dist/domains/chem/quantitative/relation-origin/model.mjs +185 -0
- package/dist/domains/chem/quantitative/relation-origin/runtime.mjs +110 -0
- package/dist/domains/chem/quantitative/relation-origin/scene.mjs +197 -0
- package/dist/domains/chem/quantitative/solution-box/manifest.mjs +57 -0
- package/dist/domains/chem/quantitative/solution-box/runtime.mjs +5 -0
- package/dist/domains/chem/quantitative/solution-mixer/activity.mjs +54 -0
- package/dist/domains/chem/quantitative/solution-mixer/manifest.mjs +58 -0
- package/dist/domains/chem/quantitative/solution-mixer/model.d.mts +4 -0
- package/dist/domains/chem/quantitative/solution-mixer/model.mjs +32 -0
- package/dist/domains/chem/quantitative/solution-mixer/runtime.mjs +6 -0
- package/dist/domains/chem/quantitative/solution-mixer/world.mjs +92 -0
- package/dist/domains/chem/quantitative/stoichiometry/manifest.mjs +61 -0
- package/dist/domains/chem/quantitative/stoichiometry/runtime.mjs +5 -0
- package/dist/domains/chem/salts-and-solubility/reagent-ladder/activity.mjs +85 -0
- package/dist/domains/chem/salts-and-solubility/reagent-ladder/manifest.mjs +58 -0
- package/dist/domains/chem/salts-and-solubility/reagent-ladder/model.mjs +120 -0
- package/dist/domains/chem/salts-and-solubility/reagent-ladder/runtime.mjs +107 -0
- package/dist/domains/chem/salts-and-solubility/reagent-ladder/scene.mjs +174 -0
- package/dist/domains/chem/salts-and-solubility/solubility-kitchen/activity.mjs +54 -0
- package/dist/domains/chem/salts-and-solubility/solubility-kitchen/manifest.mjs +66 -0
- package/dist/domains/chem/salts-and-solubility/solubility-kitchen/model.d.mts +4 -0
- package/dist/domains/chem/salts-and-solubility/solubility-kitchen/model.mjs +68 -0
- package/dist/domains/chem/salts-and-solubility/solubility-kitchen/runtime.mjs +6 -0
- package/dist/domains/chem/salts-and-solubility/solubility-kitchen/world.mjs +101 -0
- package/dist/domains/chem/salts-and-solubility/soluble-salt-workshop/activity.mjs +115 -0
- package/dist/domains/chem/salts-and-solubility/soluble-salt-workshop/manifest.mjs +50 -0
- package/dist/domains/chem/salts-and-solubility/soluble-salt-workshop/model.mjs +187 -0
- package/dist/domains/chem/salts-and-solubility/soluble-salt-workshop/runtime.mjs +118 -0
- package/dist/domains/chem/salts-and-solubility/soluble-salt-workshop/scene.mjs +700 -0
- package/dist/domains/chem/structure/atomic-orbital/activity.mjs +3 -0
- package/dist/domains/chem/structure/atomic-orbital/manifest.mjs +71 -0
- package/dist/domains/chem/structure/atomic-orbital/runtime.mjs +20 -0
- package/dist/domains/chem/structure/atomic-orbital/world.d.mts +20 -0
- package/dist/domains/chem/structure/atomic-orbital/world.mjs +103 -0
- package/dist/domains/chem/structure/bohr-atom/activity.mjs +58 -0
- package/dist/domains/chem/structure/bohr-atom/manifest.mjs +55 -0
- package/dist/domains/chem/structure/bohr-atom/model.d.mts +28 -0
- package/dist/domains/chem/structure/bohr-atom/model.mjs +66 -0
- package/dist/domains/chem/structure/bohr-atom/runtime.d.mts +12 -0
- package/dist/domains/chem/structure/bohr-atom/runtime.mjs +89 -0
- package/dist/domains/chem/structure/bohr-atom/scene.d.mts +8 -0
- package/dist/domains/chem/structure/bohr-atom/scene.mjs +125 -0
- package/dist/domains/chem/structure/bohr-atom/world.d.mts +9 -0
- package/dist/domains/chem/structure/bohr-atom/world.mjs +52 -0
- package/dist/domains/chem/structure/complex-shape/activity.mjs +86 -0
- package/dist/domains/chem/structure/complex-shape/manifest.mjs +52 -0
- package/dist/domains/chem/structure/complex-shape/model.mjs +182 -0
- package/dist/domains/chem/structure/complex-shape/runtime.mjs +165 -0
- package/dist/domains/chem/structure/complex-shape/scene.mjs +270 -0
- package/dist/domains/chem/structure/covalent-bond-builder/activity.mjs +58 -0
- package/dist/domains/chem/structure/covalent-bond-builder/manifest.mjs +63 -0
- package/dist/domains/chem/structure/covalent-bond-builder/model.d.mts +42 -0
- package/dist/domains/chem/structure/covalent-bond-builder/model.mjs +116 -0
- package/dist/domains/chem/structure/covalent-bond-builder/runtime.mjs +82 -0
- package/dist/domains/chem/structure/covalent-bond-builder/scene.d.mts +10 -0
- package/dist/domains/chem/structure/covalent-bond-builder/scene.mjs +229 -0
- package/dist/domains/chem/structure/covalent-bond-builder/world.d.mts +9 -0
- package/dist/domains/chem/structure/covalent-bond-builder/world.mjs +52 -0
- package/dist/domains/chem/structure/crystal-lattice/activity.mjs +3 -0
- package/dist/domains/chem/structure/crystal-lattice/manifest.mjs +82 -0
- package/dist/domains/chem/structure/crystal-lattice/runtime.mjs +21 -0
- package/dist/domains/chem/structure/crystal-lattice/world.d.mts +24 -0
- package/dist/domains/chem/structure/crystal-lattice/world.mjs +131 -0
- package/dist/domains/chem/structure/electron-configuration/activity.mjs +63 -0
- package/dist/domains/chem/structure/electron-configuration/manifest.mjs +58 -0
- package/dist/domains/chem/structure/electron-configuration/model.d.mts +50 -0
- package/dist/domains/chem/structure/electron-configuration/model.mjs +243 -0
- package/dist/domains/chem/structure/electron-configuration/runtime.mjs +93 -0
- package/dist/domains/chem/structure/electron-configuration/scene.d.mts +9 -0
- package/dist/domains/chem/structure/electron-configuration/scene.mjs +151 -0
- package/dist/domains/chem/structure/electron-configuration/world.d.mts +9 -0
- package/dist/domains/chem/structure/electron-configuration/world.mjs +58 -0
- package/dist/domains/chem/structure/ionic-bond-builder/activity.mjs +58 -0
- package/dist/domains/chem/structure/ionic-bond-builder/manifest.mjs +52 -0
- package/dist/domains/chem/structure/ionic-bond-builder/model.d.mts +39 -0
- package/dist/domains/chem/structure/ionic-bond-builder/model.mjs +104 -0
- package/dist/domains/chem/structure/ionic-bond-builder/runtime.mjs +88 -0
- package/dist/domains/chem/structure/ionic-bond-builder/scene.d.mts +10 -0
- package/dist/domains/chem/structure/ionic-bond-builder/scene.mjs +183 -0
- package/dist/domains/chem/structure/ionic-bond-builder/world.d.mts +9 -0
- package/dist/domains/chem/structure/ionic-bond-builder/world.mjs +52 -0
- package/dist/domains/chem/structure/molecular-geometry/activity.mjs +3 -0
- package/dist/domains/chem/structure/molecular-geometry/manifest.mjs +74 -0
- package/dist/domains/chem/structure/molecular-geometry/runtime.mjs +22 -0
- package/dist/domains/chem/structure/molecular-geometry/world.d.mts +24 -0
- package/dist/domains/chem/structure/molecular-geometry/world.mjs +99 -0
- package/dist/domains/chem/structure/orbital-diagram/activity.mjs +74 -0
- package/dist/domains/chem/structure/orbital-diagram/manifest.mjs +58 -0
- package/dist/domains/chem/structure/orbital-diagram/model.d.mts +92 -0
- package/dist/domains/chem/structure/orbital-diagram/model.mjs +189 -0
- package/dist/domains/chem/structure/orbital-diagram/runtime.mjs +108 -0
- package/dist/domains/chem/structure/orbital-diagram/scene.mjs +289 -0
- package/dist/domains/chem/structure/orbital-diagram/world.d.mts +9 -0
- package/dist/domains/chem/structure/orbital-diagram/world.mjs +59 -0
- package/dist/domains/chem/structure/orbital-overlap/activity.mjs +3 -0
- package/dist/domains/chem/structure/orbital-overlap/manifest.mjs +60 -0
- package/dist/domains/chem/structure/orbital-overlap/runtime.mjs +18 -0
- package/dist/domains/chem/structure/orbital-overlap/world.d.mts +20 -0
- package/dist/domains/chem/structure/orbital-overlap/world.mjs +101 -0
- package/dist/domains/chem/structure/periodic-trends/manifest.mjs +60 -0
- package/dist/domains/chem/structure/periodic-trends/runtime.mjs +5 -0
- package/dist/domains/chem/structure/periodic-trends/world.d.mts +17 -0
- package/dist/domains/chem/structure/periodic-trends/world.mjs +85 -0
- package/dist/domains/chem/structure/trend-axis/activity.mjs +52 -0
- package/dist/domains/chem/structure/trend-axis/manifest.mjs +57 -0
- package/dist/domains/chem/structure/trend-axis/model.d.mts +8 -0
- package/dist/domains/chem/structure/trend-axis/model.mjs +487 -0
- package/dist/domains/chem/structure/trend-axis/runtime.mjs +84 -0
- package/dist/domains/chem/structure/trend-axis/scene.mjs +244 -0
- package/dist/domains/chem/structure/trend-axis/world.d.mts +21 -0
- package/dist/domains/chem/structure/trend-axis/world.mjs +76 -0
- package/dist/domains/circuits/ac-response/manifest.mjs +3 -1
- package/dist/domains/circuits/bjt-amplifier/manifest.mjs +67 -0
- package/dist/domains/circuits/bjt-amplifier/runtime.mjs +5 -0
- package/dist/domains/circuits/circuit-scene/authoring.mjs +9 -13
- package/dist/domains/circuits/circuit-scene/manifest.mjs +57 -34
- package/dist/domains/circuits/circuit-scene/runtime.mjs +8 -11
- package/dist/domains/circuits/op-amp-comparator/manifest.mjs +65 -0
- package/dist/domains/circuits/op-amp-comparator/runtime.mjs +5 -0
- package/dist/domains/circuits/rc-charging/manifest.mjs +4 -4
- package/dist/domains/discrete/bayes/manifest.mjs +7 -0
- package/dist/domains/discrete/counting-slots/manifest.mjs +26 -0
- package/dist/domains/discrete/monte-carlo/manifest.mjs +26 -0
- package/dist/domains/discrete/rule-card/manifest.mjs +4 -1
- package/dist/domains/discrete/rule-card/runtime.mjs +9 -2
- package/dist/domains/domain-map.mjs +318 -4
- package/dist/domains/exam/exam-question/manifest.mjs +4 -1
- package/dist/domains/exam/practice-set/manifest.mjs +116 -0
- package/dist/domains/exam/practice-set/runtime.mjs +5 -0
- package/dist/domains/geometry/geometry-board/runtime.mjs +15 -1
- package/dist/domains/ict/array-vs-list/manifest.mjs +20 -12
- package/dist/domains/ict/binary-search/manifest.mjs +18 -12
- package/dist/domains/ict/bound-prover/manifest.mjs +75 -0
- package/dist/domains/ict/bound-prover/model.mjs +163 -0
- package/dist/domains/ict/bound-prover/runtime.mjs +396 -0
- package/dist/domains/ict/coin-change/manifest.mjs +83 -0
- package/dist/domains/ict/coin-change/runtime.mjs +5 -0
- package/dist/domains/ict/complexity-growth/manifest.mjs +44 -5
- package/dist/domains/ict/cost-derivation/manifest.mjs +19 -6
- package/dist/domains/ict/graph-algorithm/authoring.mjs +116 -42
- package/dist/domains/ict/graph-algorithm/manifest.mjs +41 -15
- package/dist/domains/ict/grid-path-dp/authoring.mjs +9 -2
- package/dist/domains/ict/grid-path-dp/manifest.mjs +70 -10
- package/dist/domains/ict/hash-table/manifest.mjs +21 -11
- package/dist/domains/ict/heap-quest/authoring.mjs +101 -29
- package/dist/domains/ict/heap-quest/manifest.mjs +26 -14
- package/dist/domains/ict/recursion-tree/manifest.mjs +75 -0
- package/dist/domains/ict/recursion-tree/runtime.mjs +300 -0
- package/dist/domains/ict/sorting-quest/manifest.mjs +31 -13
- package/dist/domains/ict/tree-quest/authoring.mjs +80 -18
- package/dist/domains/ict/tree-quest/manifest.mjs +23 -18
- package/dist/domains/ict/wire-a-chip/runtime.mjs +106 -29
- package/dist/domains/manifests.mjs +815 -501
- package/dist/domains/math/alligation-mix/manifest.mjs +64 -0
- package/dist/domains/math/alligation-mix/runtime.mjs +5 -0
- package/dist/domains/math/angle-between-lines/manifest.mjs +56 -0
- package/dist/domains/math/angle-between-lines/runtime.mjs +5 -0
- package/dist/domains/math/angle-chase/manifest.mjs +103 -0
- package/dist/domains/math/angle-chase/runtime.mjs +5 -0
- package/dist/domains/math/associated-angle-wheel/manifest.mjs +75 -0
- package/dist/domains/math/associated-angle-wheel/runtime.mjs +5 -0
- package/dist/domains/math/bearings/manifest.mjs +34 -2
- package/dist/domains/math/broken-tree/manifest.mjs +32 -2
- package/dist/domains/math/chord-bisection/manifest.mjs +61 -0
- package/dist/domains/math/chord-bisection/runtime.mjs +5 -0
- package/dist/domains/math/chord-given-midpoint/manifest.mjs +56 -0
- package/dist/domains/math/chord-given-midpoint/runtime.mjs +5 -0
- package/dist/domains/math/chord-of-contact/manifest.mjs +56 -0
- package/dist/domains/math/chord-of-contact/runtime.mjs +5 -0
- package/dist/domains/math/circle-diameter-endpoints/manifest.mjs +60 -0
- package/dist/domains/math/circle-diameter-endpoints/runtime.mjs +5 -0
- package/dist/domains/math/circle-geometry/runtime.mjs +1 -1
- package/dist/domains/math/circle-intersection-angle/manifest.mjs +57 -0
- package/dist/domains/math/circle-intersection-angle/runtime.mjs +5 -0
- package/dist/domains/math/circle-line-tangency/manifest.mjs +61 -0
- package/dist/domains/math/circle-line-tangency/runtime.mjs +5 -0
- package/dist/domains/math/circle-through-points/manifest.mjs +56 -0
- package/dist/domains/math/circle-through-points/runtime.mjs +5 -0
- package/dist/domains/math/clock-hand-angle/manifest.mjs +57 -0
- package/dist/domains/math/clock-hand-angle/runtime.mjs +305 -0
- package/dist/domains/math/common-tangents-count/manifest.mjs +61 -0
- package/dist/domains/math/common-tangents-count/runtime.mjs +5 -0
- package/dist/domains/math/composite-functions/manifest.mjs +79 -0
- package/dist/domains/math/composite-functions/runtime.mjs +5 -0
- package/dist/domains/math/compound-angle-proof/manifest.mjs +59 -0
- package/dist/domains/math/compound-angle-proof/runtime.mjs +510 -0
- package/dist/domains/math/coord-point/manifest.mjs +64 -0
- package/dist/domains/math/coord-point/runtime.mjs +5 -0
- package/dist/domains/math/derivation/authoring.mjs +67 -48
- package/dist/domains/math/derivation/manifest.mjs +8 -4
- package/dist/domains/math/derivation/runtime.mjs +5 -2
- package/dist/domains/math/discriminant-radar/manifest.mjs +78 -0
- package/dist/domains/math/discriminant-radar/runtime.mjs +23 -0
- package/dist/domains/math/distribute-strip/manifest.mjs +61 -0
- package/dist/domains/math/distribute-strip/runtime.mjs +5 -0
- package/dist/domains/math/exact-triangle/manifest.mjs +38 -8
- package/dist/domains/math/exact-triangle/runtime.mjs +2 -3
- package/dist/domains/math/family-tree/manifest.mjs +118 -0
- package/dist/domains/math/family-tree/runtime.mjs +5 -0
- package/dist/domains/math/geometry-foundations/manifest.mjs +6 -1
- package/dist/domains/math/graph-transform/manifest.mjs +65 -0
- package/dist/domains/math/graph-transform/runtime.mjs +5 -0
- package/dist/domains/math/implicit-parametric-derivative/manifest.mjs +62 -0
- package/dist/domains/math/implicit-parametric-derivative/runtime.mjs +26 -0
- package/dist/domains/math/inequality-line/manifest.mjs +63 -0
- package/dist/domains/math/inequality-line/runtime.mjs +5 -0
- package/dist/domains/math/inequality-solver/manifest.mjs +69 -0
- package/dist/domains/math/inequality-solver/runtime.mjs +5 -0
- package/dist/domains/math/injective-classifier/manifest.mjs +60 -0
- package/dist/domains/math/injective-classifier/runtime.mjs +5 -0
- package/dist/domains/math/integration-workbench/manifest.mjs +58 -0
- package/dist/domains/math/integration-workbench/runtime.mjs +23 -0
- package/dist/domains/math/inverse-functions/manifest.mjs +55 -0
- package/dist/domains/math/inverse-functions/runtime.mjs +5 -0
- package/dist/domains/math/line-concurrency/manifest.mjs +59 -0
- package/dist/domains/math/line-concurrency/runtime.mjs +5 -0
- package/dist/domains/math/line-family/manifest.mjs +57 -0
- package/dist/domains/math/line-family/runtime.mjs +5 -0
- package/dist/domains/math/linear-map/manifest.mjs +59 -0
- package/dist/domains/math/linear-map/runtime.mjs +12 -0
- package/dist/domains/math/linearisation/activity.mjs +4 -2
- package/dist/domains/math/linearisation/runtime.mjs +25 -15
- package/dist/domains/math/modulus-function/manifest.mjs +58 -0
- package/dist/domains/math/modulus-function/runtime.mjs +5 -0
- package/dist/domains/math/modulus-inequality/manifest.mjs +66 -0
- package/dist/domains/math/modulus-inequality/runtime.mjs +5 -0
- package/dist/domains/math/multiple-angle-wheel/manifest.mjs +66 -0
- package/dist/domains/math/multiple-angle-wheel/runtime.mjs +5 -0
- package/dist/domains/math/oblique-triangle/manifest.mjs +86 -3
- package/dist/domains/math/point-line-distance/manifest.mjs +55 -0
- package/dist/domains/math/point-line-distance/runtime.mjs +5 -0
- package/dist/domains/math/point-reflection/manifest.mjs +55 -0
- package/dist/domains/math/point-reflection/runtime.mjs +5 -0
- package/dist/domains/math/polar-cartesian/manifest.mjs +53 -0
- package/dist/domains/math/polar-cartesian/runtime.mjs +5 -0
- package/dist/domains/math/polynomial-solver/manifest.mjs +29 -11
- package/dist/domains/math/price-chain/manifest.mjs +68 -0
- package/dist/domains/math/price-chain/runtime.mjs +5 -0
- package/dist/domains/math/pythagoras-dissection/manifest.mjs +89 -0
- package/dist/domains/math/pythagoras-dissection/runtime.mjs +3 -0
- package/dist/domains/math/radical-axis/manifest.mjs +61 -0
- package/dist/domains/math/radical-axis/runtime.mjs +5 -0
- package/dist/domains/math/ratio-share/manifest.mjs +3 -1
- package/dist/domains/math/relative-speed-track/manifest.mjs +68 -0
- package/dist/domains/math/relative-speed-track/runtime.mjs +5 -0
- package/dist/domains/math/root-fingerprint/manifest.mjs +63 -0
- package/dist/domains/math/root-fingerprint/runtime.mjs +27 -0
- package/dist/domains/math/root-mover/manifest.mjs +57 -0
- package/dist/domains/math/root-mover/runtime.mjs +23 -0
- package/dist/domains/math/section-formula/manifest.mjs +54 -0
- package/dist/domains/math/section-formula/runtime.mjs +5 -0
- package/dist/domains/math/sequence-predict/manifest.mjs +27 -5
- package/dist/domains/math/solids-of-revolution/manifest.mjs +79 -0
- package/dist/domains/math/solids-of-revolution/runtime.mjs +61 -0
- package/dist/domains/math/special-triangles/manifest.mjs +74 -0
- package/dist/domains/math/special-triangles/runtime.mjs +3 -0
- package/dist/domains/math/stationary-point-classifier/manifest.mjs +55 -0
- package/dist/domains/math/stationary-point-classifier/runtime.mjs +19 -0
- package/dist/domains/math/story-scene/manifest.mjs +41 -0
- package/dist/domains/math/story-scene/runtime.mjs +5 -0
- package/dist/domains/math/straight-line/runtime.mjs +1 -1
- package/dist/domains/math/substitute-value/manifest.mjs +61 -0
- package/dist/domains/math/substitute-value/runtime.mjs +5 -0
- package/dist/domains/math/sum-to-product-waves/manifest.mjs +61 -0
- package/dist/domains/math/sum-to-product-waves/runtime.mjs +5 -0
- package/dist/domains/math/tangent-length-power-of-point/manifest.mjs +56 -0
- package/dist/domains/math/tangent-length-power-of-point/runtime.mjs +5 -0
- package/dist/domains/math/tangent-normal/manifest.mjs +56 -0
- package/dist/domains/math/tangent-normal/runtime.mjs +20 -0
- package/dist/domains/math/tangent-rule-triangle/manifest.mjs +59 -0
- package/dist/domains/math/tangent-rule-triangle/runtime.mjs +5 -0
- package/dist/domains/math/triangle-area/manifest.mjs +81 -0
- package/dist/domains/math/triangle-area/runtime.mjs +5 -0
- package/dist/domains/math/triangle-trig/manifest.mjs +47 -4
- package/dist/domains/math/triangle-trig/runtime.mjs +1 -1
- package/dist/domains/math/trig-equation-solver/manifest.mjs +66 -0
- package/dist/domains/math/trig-equation-solver/runtime.mjs +5 -0
- package/dist/domains/math/trig-general-solution/manifest.mjs +59 -0
- package/dist/domains/math/trig-general-solution/runtime.mjs +5 -0
- package/dist/domains/ml/activation-gates/manifest.mjs +53 -10
- package/dist/domains/ml/affine-neuron/manifest.mjs +58 -9
- package/dist/domains/ml/anomaly-detector/manifest.mjs +34 -5
- package/dist/domains/ml/attention-fields.mjs +28 -0
- package/dist/domains/ml/attention-routing/manifest.mjs +67 -4
- package/dist/domains/ml/autoencoder/manifest.mjs +31 -4
- package/dist/domains/ml/backprop-tracer/manifest.mjs +147 -0
- package/dist/domains/ml/backprop-tracer/runtime.mjs +3 -0
- package/dist/domains/ml/causal-mask/manifest.mjs +29 -4
- package/dist/domains/ml/char-model/manifest.mjs +134 -0
- package/dist/domains/ml/char-model/runtime.mjs +3 -0
- package/dist/domains/ml/classifier-threshold/manifest.mjs +63 -6
- package/dist/domains/ml/classifier-threshold/runtime.d.mts +33 -2
- package/dist/domains/ml/classifier-threshold/runtime.mjs +518 -186
- package/dist/domains/ml/classifier-threshold/scores-setup.mjs +30 -0
- package/dist/domains/ml/context-window/manifest.mjs +56 -3
- package/dist/domains/ml/decision-boundary/manifest.mjs +7 -6
- package/dist/domains/ml/decision-boundary/runtime.d.mts +18 -3
- package/dist/domains/ml/decision-boundary/runtime.mjs +176 -162
- package/dist/domains/ml/denoising/manifest.mjs +30 -4
- package/dist/domains/ml/embedding-neighborhood/manifest.mjs +47 -4
- package/dist/domains/ml/embedding-space/manifest.mjs +28 -9
- package/dist/domains/ml/embedding-space/runtime.mjs +99 -49
- package/dist/domains/ml/encoder-decoder/manifest.mjs +55 -4
- package/dist/domains/ml/feature-map/manifest.mjs +38 -3
- package/dist/domains/ml/feed-forward-network/manifest.mjs +86 -8
- package/dist/domains/ml/fit-evidence/manifest.mjs +29 -9
- package/dist/domains/ml/gradient-step/manifest.mjs +27 -9
- package/dist/domains/ml/kmeans/manifest.mjs +32 -12
- package/dist/domains/ml/kmeans/runtime.d.mts +20 -1
- package/dist/domains/ml/kmeans/runtime.mjs +248 -69
- package/dist/domains/ml/knn/axis-caption.mjs +37 -0
- package/dist/domains/ml/knn/class-plane.mjs +133 -0
- package/dist/domains/ml/knn/manifest.mjs +10 -6
- package/dist/domains/ml/knn/question-schema.d.mts +21 -0
- package/dist/domains/ml/knn/question-schema.mjs +40 -0
- package/dist/domains/ml/knn/questions.d.mts +3 -0
- package/dist/domains/ml/knn/questions.mjs +85 -0
- package/dist/domains/ml/knn/runtime.d.mts +25 -3
- package/dist/domains/ml/knn/runtime.mjs +223 -131
- package/dist/domains/ml/knn/typed-check.mjs +53 -0
- package/dist/domains/ml/latent-space/manifest.mjs +46 -4
- package/dist/domains/ml/layer-normalization/manifest.mjs +33 -10
- package/dist/domains/ml/learning-loop/manifest.mjs +23 -9
- package/dist/domains/ml/logistic-fit/manifest.mjs +104 -0
- package/dist/domains/ml/logistic-fit/runtime.mjs +638 -0
- package/dist/domains/ml/loss-error/manifest.mjs +31 -6
- package/dist/domains/ml/matrix-vector/manifest.mjs +47 -7
- package/dist/domains/ml/memory-relay/manifest.mjs +47 -4
- package/dist/domains/ml/model-complexity/manifest.mjs +101 -0
- package/dist/domains/ml/model-complexity/runtime.mjs +466 -0
- package/dist/domains/ml/multi-head-attention/manifest.mjs +68 -4
- package/dist/domains/ml/multimodal-alignment/manifest.mjs +58 -4
- package/dist/domains/ml/next-token/manifest.mjs +24 -3
- package/dist/domains/ml/next-token/runtime.mjs +116 -39
- package/dist/domains/ml/overfit-gap/manifest.mjs +105 -0
- package/dist/domains/ml/overfit-gap/runtime.mjs +3 -0
- package/dist/domains/ml/pixel-filter/manifest.mjs +50 -5
- package/dist/domains/ml/position-signals/manifest.mjs +47 -4
- package/dist/domains/ml/query-key-value/manifest.mjs +49 -4
- package/dist/domains/ml/regression/manifest.mjs +90 -15
- package/dist/domains/ml/regression/points-setup.d.mts +14 -0
- package/dist/domains/ml/regression/points-setup.mjs +73 -0
- package/dist/domains/ml/regression/runtime.d.mts +36 -2
- package/dist/domains/ml/regression/runtime.mjs +550 -176
- package/dist/domains/ml/residual-stream/manifest.mjs +15 -4
- package/dist/domains/ml/reward-groups/manifest.mjs +149 -0
- package/dist/domains/ml/reward-groups/runtime.mjs +3 -0
- package/dist/domains/ml/scaled-dot-product-attention/manifest.mjs +61 -7
- package/dist/domains/ml/split-and-leak/manifest.mjs +154 -0
- package/dist/domains/ml/split-and-leak/runtime.mjs +618 -0
- package/dist/domains/ml/tiny-network/manifest.mjs +60 -6
- package/dist/domains/ml/token-generation/manifest.mjs +61 -4
- package/dist/domains/ml/tokenizer-bpe/manifest.mjs +126 -0
- package/dist/domains/ml/tokenizer-bpe/runtime.mjs +3 -0
- package/dist/domains/ml/training-loop/manifest.mjs +30 -10
- package/dist/domains/ml/transformer-block/manifest.mjs +47 -6
- package/dist/domains/ml/unembedding/manifest.mjs +75 -9
- package/dist/domains/networking/_shared/decision-scene.mjs +74 -12
- package/dist/domains/networking/data-recovery-planner/scene.mjs +11 -7
- package/dist/domains/networking/packet-journey/runtime.mjs +19 -7
- package/dist/domains/networking/packet-journey/world.mjs +73 -0
- package/dist/domains/networking/server-deployment/scene.mjs +41 -35
- package/dist/domains/networking/slo-incident-console/scene.mjs +45 -34
- package/dist/domains/networking/vpc-route-planner/scene.mjs +32 -8
- package/dist/domains/physics/ac-generator/manifest.mjs +5 -0
- package/dist/domains/physics/acoustic-boundary/manifest.mjs +58 -0
- package/dist/domains/physics/acoustic-boundary/runtime.mjs +5 -0
- package/dist/domains/physics/alternating-current/manifest.mjs +9 -1
- package/dist/domains/physics/beam-reactions/manifest.mjs +67 -0
- package/dist/domains/physics/beam-reactions/runtime.mjs +12 -0
- package/dist/domains/physics/buoyancy/manifest.mjs +58 -0
- package/dist/domains/physics/buoyancy/runtime.mjs +5 -0
- package/dist/domains/physics/capacitor-energy/manifest.mjs +65 -0
- package/dist/domains/physics/capacitor-energy/runtime.mjs +3 -0
- package/dist/domains/physics/carnot/manifest.mjs +5 -1
- package/dist/domains/physics/circuit-energy-flow/manifest.mjs +65 -0
- package/dist/domains/physics/circuit-energy-flow/runtime.mjs +5 -0
- package/dist/domains/physics/circuit-fault-detective/runtime.mjs +3 -3
- package/dist/domains/physics/circuit-iv-investigation/runtime.mjs +2 -2
- package/dist/domains/physics/circular-motion/manifest.mjs +12 -1
- package/dist/domains/physics/coherence/manifest.mjs +57 -0
- package/dist/domains/physics/coherence/runtime.mjs +5 -0
- package/dist/domains/physics/contact-pressure/manifest.mjs +63 -0
- package/dist/domains/physics/contact-pressure/runtime.mjs +5 -0
- package/dist/domains/physics/cooling-insulation-investigation/runtime.mjs +1 -1
- package/dist/domains/physics/cosmic-expansion/manifest.mjs +58 -0
- package/dist/domains/physics/cosmic-expansion/runtime.mjs +3 -0
- package/dist/domains/physics/data-table-clinic/manifest.mjs +75 -0
- package/dist/domains/physics/data-table-clinic/runtime.mjs +137 -0
- package/dist/domains/physics/dc-motor/manifest.mjs +6 -1
- package/dist/domains/physics/density-displacement/activity.mjs +3 -3
- package/dist/domains/physics/density-displacement/runtime.mjs +84 -86
- package/dist/domains/physics/diffraction-grating/manifest.mjs +51 -0
- package/dist/domains/physics/diffraction-grating/runtime.mjs +5 -0
- package/dist/domains/physics/echo-ranging/manifest.mjs +58 -0
- package/dist/domains/physics/echo-ranging/runtime.mjs +5 -0
- package/dist/domains/physics/energy-resource-grid/runtime.mjs +1 -1
- package/dist/domains/physics/evaluation-clinic/manifest.mjs +73 -0
- package/dist/domains/physics/evaluation-clinic/runtime.mjs +322 -0
- package/dist/domains/physics/evaporation/manifest.mjs +56 -0
- package/dist/domains/physics/evaporation/runtime.mjs +5 -0
- package/dist/domains/physics/eye-correction/manifest.mjs +62 -0
- package/dist/domains/physics/eye-correction/runtime.mjs +5 -0
- package/dist/domains/physics/fibre-pulse/manifest.mjs +64 -0
- package/dist/domains/physics/fibre-pulse/runtime.mjs +5 -0
- package/dist/domains/physics/field-geometry/manifest.mjs +82 -0
- package/dist/domains/physics/field-geometry/runtime.mjs +5 -0
- package/dist/domains/physics/fluid-pressure/manifest.mjs +2 -2
- package/dist/domains/physics/gap-diffraction/manifest.mjs +58 -0
- package/dist/domains/physics/gap-diffraction/runtime.mjs +5 -0
- package/dist/domains/physics/gas-process/manifest.mjs +5 -1
- package/dist/domains/physics/gas-theory/manifest.mjs +70 -0
- package/dist/domains/physics/gas-theory/runtime.mjs +5 -0
- package/dist/domains/physics/generator-grid-mission/manifest.mjs +1 -1
- package/dist/domains/physics/generator-grid-mission/model.mjs +26 -0
- package/dist/domains/physics/generator-grid-mission/runtime.mjs +4 -3
- package/dist/domains/physics/glass-block-refraction/runtime.mjs +15 -4
- package/dist/domains/physics/graph-craft/manifest.mjs +67 -0
- package/dist/domains/physics/graph-craft/runtime.mjs +161 -0
- package/dist/domains/physics/harmonic-modes/manifest.mjs +60 -0
- package/dist/domains/physics/harmonic-modes/runtime.mjs +5 -0
- package/dist/domains/physics/heat-transfer/manifest.mjs +1 -0
- package/dist/domains/physics/heat-transfer-cases/manifest.mjs +45 -0
- package/dist/domains/physics/heat-transfer-cases/runtime.mjs +3 -0
- package/dist/domains/physics/heating-curve/manifest.mjs +6 -0
- package/dist/domains/physics/hydrogen-spectrum/manifest.mjs +55 -0
- package/dist/domains/physics/hydrogen-spectrum/runtime.mjs +5 -0
- package/dist/domains/physics/induction-bench/manifest.mjs +58 -0
- package/dist/domains/physics/induction-bench/runtime.mjs +5 -0
- package/dist/domains/physics/inductor-energy/manifest.mjs +59 -0
- package/dist/domains/physics/inductor-energy/runtime.mjs +5 -0
- package/dist/domains/physics/intensity-amplitude/manifest.mjs +53 -0
- package/dist/domains/physics/intensity-amplitude/runtime.mjs +5 -0
- package/dist/domains/physics/lens-focal-investigation/runtime.mjs +1 -1
- package/dist/domains/physics/lens-geometry/manifest.mjs +81 -0
- package/dist/domains/physics/lens-geometry/runtime.mjs +5 -0
- package/dist/domains/physics/lens-mission/manifest.mjs +61 -0
- package/dist/domains/physics/lens-mission/runtime.mjs +151 -0
- package/dist/domains/physics/lorentz/manifest.mjs +7 -1
- package/dist/domains/physics/magnet-pair/manifest.mjs +58 -0
- package/dist/domains/physics/magnet-pair/runtime.mjs +5 -0
- package/dist/domains/physics/magnetism/manifest.mjs +25 -1
- package/dist/domains/physics/magnetism-diagram/manifest.mjs +50 -0
- package/dist/domains/physics/magnetism-diagram/runtime.mjs +19 -0
- package/dist/domains/physics/mutual-induction/manifest.mjs +59 -0
- package/dist/domains/physics/mutual-induction/runtime.mjs +5 -0
- package/dist/domains/physics/newton-first-law/manifest.mjs +75 -0
- package/dist/domains/physics/newton-first-law/runtime.mjs +113 -0
- package/dist/domains/physics/optics-mission/manifest.mjs +62 -0
- package/dist/domains/physics/optics-mission/runtime.mjs +486 -0
- package/dist/domains/physics/paper5-analysis-lab/runtime.mjs +123 -32
- package/dist/domains/physics/particle-wave-motion/manifest.mjs +58 -0
- package/dist/domains/physics/particle-wave-motion/runtime.mjs +5 -0
- package/dist/domains/physics/phase-path/manifest.mjs +49 -0
- package/dist/domains/physics/phase-path/runtime.mjs +5 -0
- package/dist/domains/physics/physics-practical-studio/runtime.mjs +1 -1
- package/dist/domains/physics/plane-mirror/manifest.mjs +56 -0
- package/dist/domains/physics/plane-mirror/runtime.mjs +5 -0
- package/dist/domains/physics/plug-safety-inspector/runtime.mjs +2 -2
- package/dist/domains/physics/polarisation/manifest.mjs +55 -0
- package/dist/domains/physics/polarisation/runtime.mjs +5 -0
- package/dist/domains/physics/precision-measurement-lab/activity.mjs +13 -13
- package/dist/domains/physics/precision-measurement-lab/manifest.mjs +3 -3
- package/dist/domains/physics/precision-measurement-lab/palette.mjs +22 -1
- package/dist/domains/physics/precision-measurement-lab/runtime.mjs +390 -371
- package/dist/domains/physics/prism-dispersion/manifest.mjs +58 -0
- package/dist/domains/physics/prism-dispersion/runtime.mjs +5 -0
- package/dist/domains/physics/progressive-stationary/manifest.mjs +59 -0
- package/dist/domains/physics/progressive-stationary/runtime.mjs +5 -0
- package/dist/domains/physics/projectile-lab/core/model.mjs +30 -18
- package/dist/domains/physics/projectile-lab/runtime/index.mjs +10 -21
- package/dist/domains/physics/projectile-lab/runtime/svg.mjs +36 -124
- package/dist/domains/physics/pulse-echo/manifest.mjs +66 -0
- package/dist/domains/physics/pulse-echo/runtime.mjs +5 -0
- package/dist/domains/physics/radiation-half-life-investigation/runtime.mjs +1 -1
- package/dist/domains/physics/radioactive-decay/manifest.mjs +55 -0
- package/dist/domains/physics/radioactive-decay/runtime.mjs +5 -0
- package/dist/domains/physics/rc-step-response/manifest.mjs +54 -0
- package/dist/domains/physics/rc-step-response/runtime.mjs +5 -0
- package/dist/domains/physics/reading-spread/manifest.mjs +77 -0
- package/dist/domains/physics/reading-spread/runtime.mjs +183 -0
- package/dist/domains/physics/rectifier/manifest.mjs +69 -0
- package/dist/domains/physics/rectifier/runtime.mjs +5 -0
- package/dist/domains/physics/regulated-supply/manifest.mjs +61 -0
- package/dist/domains/physics/regulated-supply/runtime.mjs +5 -0
- package/dist/domains/physics/relay-bench/manifest.mjs +55 -0
- package/dist/domains/physics/relay-bench/runtime.mjs +5 -0
- package/dist/domains/physics/rl-step-response/manifest.mjs +54 -0
- package/dist/domains/physics/rl-step-response/runtime.mjs +5 -0
- package/dist/domains/physics/rocket-flight/manifest.mjs +81 -0
- package/dist/domains/physics/rocket-flight/runtime.mjs +5 -0
- package/dist/domains/physics/scale-reading/manifest.mjs +91 -0
- package/dist/domains/physics/scale-reading/model.mjs +212 -0
- package/dist/domains/physics/scale-reading/runtime.mjs +190 -0
- package/dist/domains/physics/scale-reading/scene.mjs +691 -0
- package/dist/domains/physics/shm/manifest.mjs +7 -0
- package/dist/domains/physics/shm-energy/manifest.mjs +6 -0
- package/dist/domains/physics/shm-graphs/manifest.mjs +1 -0
- package/dist/domains/physics/smoothing/manifest.mjs +62 -0
- package/dist/domains/physics/smoothing/runtime.mjs +5 -0
- package/dist/domains/physics/soft-iron-steel/activity.mjs +3 -0
- package/dist/domains/physics/soft-iron-steel/manifest.mjs +72 -0
- package/dist/domains/physics/soft-iron-steel/runtime.mjs +3 -0
- package/dist/domains/physics/solenoid-bench/manifest.mjs +57 -0
- package/dist/domains/physics/solenoid-bench/runtime.mjs +5 -0
- package/dist/domains/physics/sound-air/manifest.mjs +59 -0
- package/dist/domains/physics/sound-air/runtime.mjs +5 -0
- package/dist/domains/physics/sound-medium/manifest.mjs +64 -0
- package/dist/domains/physics/sound-medium/runtime.mjs +5 -0
- package/dist/domains/physics/sound-mission/manifest.mjs +66 -0
- package/dist/domains/physics/sound-mission/runtime.mjs +321 -0
- package/dist/domains/physics/specific-heat/manifest.mjs +59 -0
- package/dist/domains/physics/specific-heat/runtime.mjs +5 -0
- package/dist/domains/physics/spectral-resolver/manifest.mjs +50 -0
- package/dist/domains/physics/spectral-resolver/runtime.mjs +5 -0
- package/dist/domains/physics/spectrum-mission/manifest.mjs +60 -0
- package/dist/domains/physics/spectrum-mission/runtime.mjs +320 -0
- package/dist/domains/physics/stability/manifest.mjs +55 -0
- package/dist/domains/physics/stability/runtime.mjs +5 -0
- package/dist/domains/physics/stellar-distance/manifest.mjs +58 -0
- package/dist/domains/physics/stellar-distance/runtime.mjs +3 -0
- package/dist/domains/physics/stellar-evolution/manifest.mjs +49 -0
- package/dist/domains/physics/stellar-evolution/runtime.mjs +3 -0
- package/dist/domains/physics/stellar-radiation/manifest.mjs +58 -0
- package/dist/domains/physics/stellar-radiation/runtime.mjs +3 -0
- package/dist/domains/physics/stress-strain/manifest.mjs +8 -0
- package/dist/domains/physics/thermal-equilibrium/manifest.mjs +49 -0
- package/dist/domains/physics/thermal-equilibrium/runtime.mjs +5 -0
- package/dist/domains/physics/timbre/manifest.mjs +62 -0
- package/dist/domains/physics/timbre/runtime.mjs +5 -0
- package/dist/domains/physics/tomography/manifest.mjs +62 -0
- package/dist/domains/physics/tomography/runtime.mjs +3 -0
- package/dist/domains/physics/transformer-bench/manifest.mjs +57 -0
- package/dist/domains/physics/transformer-bench/runtime.mjs +5 -0
- package/dist/domains/physics/trolley-acceleration-investigation/runtime.mjs +1 -1
- package/dist/domains/physics/ultrasound-frequency/manifest.mjs +51 -0
- package/dist/domains/physics/ultrasound-frequency/runtime.mjs +5 -0
- package/dist/domains/physics/uncertainty-budget/manifest.mjs +68 -0
- package/dist/domains/physics/uncertainty-budget/runtime.mjs +111 -0
- package/dist/domains/physics/unit-machine/manifest.mjs +63 -0
- package/dist/domains/physics/unit-machine/runtime.mjs +149 -0
- package/dist/domains/physics/velocity-gradient/manifest.mjs +67 -0
- package/dist/domains/physics/velocity-gradient/runtime.mjs +144 -0
- package/dist/domains/physics/water-wave-refraction/manifest.mjs +60 -0
- package/dist/domains/physics/water-wave-refraction/runtime.mjs +5 -0
- package/dist/domains/physics/wave-graphs/manifest.mjs +60 -0
- package/dist/domains/physics/wave-graphs/runtime.mjs +5 -0
- package/dist/domains/physics/wave-lab/manifest.mjs +7 -0
- package/dist/domains/physics/wave-speed/manifest.mjs +63 -0
- package/dist/domains/physics/wave-speed/runtime.mjs +5 -0
- package/dist/domains/physics/wire-force-angle/activity.mjs +3 -0
- package/dist/domains/physics/wire-force-angle/manifest.mjs +69 -0
- package/dist/domains/physics/wire-force-angle/runtime.mjs +3 -0
- package/dist/domains/physics/xray-attenuation/manifest.mjs +7 -1
- package/dist/domains/physics/xray-tube-spectrum/manifest.mjs +8 -1
- package/dist/domains/physics/young-double-slit/manifest.mjs +61 -0
- package/dist/domains/physics/young-double-slit/runtime.mjs +5 -0
- package/dist/domains/render-map.mjs +393 -79
- package/dist/domains/revision/chapter-summary/manifest.mjs +67 -0
- package/dist/domains/revision/chapter-summary/runtime.mjs +16 -0
- package/dist/domains/revision/concept-sprint/manifest.mjs +149 -0
- package/dist/domains/revision/concept-sprint/runtime.mjs +5 -0
- package/dist/domains/revision/flashcard/manifest.mjs +61 -0
- package/dist/domains/revision/flashcard/runtime.mjs +18 -0
- package/dist/domains/revision/flashcard-deck/manifest.mjs +83 -0
- package/dist/domains/revision/flashcard-deck/runtime.mjs +16 -0
- package/dist/domains/revision/spot-the-error/manifest.mjs +70 -0
- package/dist/domains/revision/spot-the-error/runtime.mjs +16 -0
- package/dist/domains/revision/step-order-puzzle/manifest.mjs +67 -0
- package/dist/domains/revision/step-order-puzzle/runtime.mjs +15 -0
- package/dist/domains/statistics/sampling/manifest.mjs +11 -0
- package/dist/exam/exam-question/core.d.mts +10 -2
- package/dist/exam/exam-question/core.mjs +7 -12
- package/dist/exam/exam-question/preset.d.mts +8 -1
- package/dist/exam/exam-question/preset.mjs +138 -133
- package/dist/exam/practice-set/preset.mjs +270 -0
- package/dist/geography/cycle-lab/preset.mjs +10 -7
- package/dist/geometry/board/preset.mjs +1 -1
- package/dist/geometry/builder.mjs +1 -1
- package/dist/ict/number-systems/base-odometer.mjs +1 -1
- package/dist/ict/number-systems/wheel.mjs +27 -22
- package/dist/illustrations/story-scene/accounting/cash-credit-flow.mjs +104 -0
- package/dist/illustrations/story-scene/accounting/club-evening.mjs +202 -0
- package/dist/illustrations/story-scene/accounting/delivery-van.mjs +119 -0
- package/dist/illustrations/story-scene/accounting/electricity-meter-bill.mjs +185 -0
- package/dist/illustrations/story-scene/accounting/factory-floor.mjs +217 -0
- package/dist/illustrations/story-scene/accounting/registry.mjs +222 -0
- package/dist/illustrations/story-scene/accounting/rival-shops.mjs +127 -0
- package/dist/illustrations/story-scene/accounting/shop-counter-till.mjs +151 -0
- package/dist/illustrations/story-scene/accounting/stocktake-shelves.mjs +154 -0
- package/dist/illustrations/story-scene/accounting/supplier-delivery.mjs +128 -0
- package/dist/illustrations/story-scene/accounting/tea-stall.mjs +187 -0
- package/dist/illustrations/story-scene/accounting/van.mjs +101 -0
- package/dist/illustrations/story-scene/accounting/workshop-machine.mjs +166 -0
- package/dist/illustrations/story-scene/chemistry/acid-rain.mjs +263 -0
- package/dist/illustrations/story-scene/chemistry/aluminium-cell.mjs +211 -0
- package/dist/illustrations/story-scene/chemistry/blast-furnace.mjs +322 -0
- package/dist/illustrations/story-scene/chemistry/car-exhaust.mjs +132 -0
- package/dist/illustrations/story-scene/chemistry/fertiliser-field.mjs +149 -0
- package/dist/illustrations/story-scene/chemistry/fractionating-tower.mjs +289 -0
- package/dist/illustrations/story-scene/chemistry/galvanised-roof.mjs +216 -0
- package/dist/illustrations/story-scene/chemistry/gas-stove.mjs +142 -0
- package/dist/illustrations/story-scene/chemistry/greenhouse-earth.mjs +239 -0
- package/dist/illustrations/story-scene/chemistry/lime-kiln.mjs +145 -0
- package/dist/illustrations/story-scene/chemistry/magnesium-ribbon.mjs +211 -0
- package/dist/illustrations/story-scene/chemistry/registry.mjs +150 -0
- package/dist/illustrations/story-scene/chemistry/rusty-bike.mjs +171 -0
- package/dist/illustrations/story-scene/chemistry/water-treatment.mjs +370 -0
- package/dist/illustrations/story-scene/everyday/bicycle-wheel.mjs +130 -0
- package/dist/illustrations/story-scene/everyday/cake-slices.mjs +117 -0
- package/dist/illustrations/story-scene/everyday/car-road.mjs +175 -0
- package/dist/illustrations/story-scene/everyday/dial.mjs +129 -0
- package/dist/illustrations/story-scene/everyday/phone-battery.mjs +125 -0
- package/dist/illustrations/story-scene/everyday/pond-path.mjs +113 -0
- package/dist/illustrations/story-scene/everyday/registry.mjs +111 -0
- package/dist/illustrations/story-scene/everyday/speedometer.mjs +22 -0
- package/dist/illustrations/story-scene/everyday/train-speedometer.mjs +208 -0
- package/dist/illustrations/story-scene/index.d.mts +6 -0
- package/dist/illustrations/story-scene/index.mjs +6 -0
- package/dist/illustrations/story-scene/math/bag-of-counters.mjs +147 -0
- package/dist/illustrations/story-scene/math/bank-savings.mjs +111 -0
- package/dist/illustrations/story-scene/math/bearing.mjs +145 -0
- package/dist/illustrations/story-scene/math/building-shadow.mjs +149 -0
- package/dist/illustrations/story-scene/math/bus-timetable.mjs +212 -0
- package/dist/illustrations/story-scene/math/code-lock.mjs +146 -0
- package/dist/illustrations/story-scene/math/counting.mjs +31 -0
- package/dist/illustrations/story-scene/math/cricket-area.mjs +119 -0
- package/dist/illustrations/story-scene/math/cylinder-tank.mjs +118 -0
- package/dist/illustrations/story-scene/math/drone-field.mjs +237 -0
- package/dist/illustrations/story-scene/math/elevation.mjs +242 -0
- package/dist/illustrations/story-scene/math/fenced-garden.mjs +129 -0
- package/dist/illustrations/story-scene/math/flag-pole.mjs +78 -0
- package/dist/illustrations/story-scene/math/football-goal.mjs +155 -0
- package/dist/illustrations/story-scene/math/ice-cream-cone.mjs +143 -0
- package/dist/illustrations/story-scene/math/kite-string.mjs +154 -0
- package/dist/illustrations/story-scene/math/ladder-wall.mjs +154 -0
- package/dist/illustrations/story-scene/math/lighthouse-boats.mjs +321 -0
- package/dist/illustrations/story-scene/math/map-scale.mjs +172 -0
- package/dist/illustrations/story-scene/math/phone-tower.mjs +132 -0
- package/dist/illustrations/story-scene/math/photo-line-up.mjs +130 -0
- package/dist/illustrations/story-scene/math/population-town.mjs +173 -0
- package/dist/illustrations/story-scene/math/pyramid-tent.mjs +227 -0
- package/dist/illustrations/story-scene/math/ramp.mjs +202 -0
- package/dist/illustrations/story-scene/math/registry.mjs +414 -0
- package/dist/illustrations/story-scene/math/river-boat.mjs +173 -0
- package/dist/illustrations/story-scene/math/shop-price-tag.mjs +107 -0
- package/dist/illustrations/story-scene/math/snapped-tree.mjs +125 -0
- package/dist/illustrations/story-scene/math/storeroom-box.mjs +222 -0
- package/dist/illustrations/story-scene/math/tank-tap.mjs +166 -0
- package/dist/illustrations/story-scene/math/taxi-fare.mjs +120 -0
- package/dist/illustrations/story-scene/math/team-pick.mjs +120 -0
- package/dist/illustrations/story-scene/model.d.mts +50 -0
- package/dist/illustrations/story-scene/model.mjs +154 -0
- package/dist/illustrations/story-scene/parts.mjs +310 -0
- package/dist/illustrations/story-scene/physics/car-bend.mjs +142 -0
- package/dist/illustrations/story-scene/physics/car-crash.mjs +117 -0
- package/dist/illustrations/story-scene/physics/cliff-throw.mjs +110 -0
- package/dist/illustrations/story-scene/physics/curved-slide.mjs +202 -0
- package/dist/illustrations/story-scene/physics/diver-depth.mjs +237 -0
- package/dist/illustrations/story-scene/physics/electric-kettle.mjs +195 -0
- package/dist/illustrations/story-scene/physics/hot-drink.mjs +124 -0
- package/dist/illustrations/story-scene/physics/lift-shaft.mjs +207 -0
- package/dist/illustrations/story-scene/physics/pendulum.mjs +112 -0
- package/dist/illustrations/story-scene/physics/registry.mjs +192 -0
- package/dist/illustrations/story-scene/physics/sealed-syringe.mjs +155 -0
- package/dist/illustrations/story-scene/physics/see-saw.mjs +162 -0
- package/dist/illustrations/story-scene/physics/thermometer.mjs +194 -0
- package/dist/illustrations/story-scene/physics/trolley-pull.mjs +186 -0
- package/dist/illustrations/story-scene/registry.d.mts +9 -0
- package/dist/illustrations/story-scene/registry.mjs +31 -0
- package/dist/illustrations/story-scene/schema.mjs +82 -0
- package/dist/illustrations/story-scene/spec-kit.d.mts +58 -0
- package/dist/illustrations/story-scene/spec-kit.mjs +81 -0
- package/dist/illustrations/story-scene/specs.d.mts +18 -0
- package/dist/illustrations/story-scene/specs.mjs +48 -0
- package/dist/illustrations/story-scene/story-scene.d.mts +25 -0
- package/dist/illustrations/story-scene/story-scene.mjs +138 -0
- package/dist/index.d.mts +1 -2
- package/dist/index.mjs +1 -2
- package/dist/kit/active-recall.d.mts +65 -0
- package/dist/kit/active-recall.mjs +581 -0
- package/dist/kit/activity.d.mts +7 -21
- package/dist/kit/activity.mjs +13 -6
- package/dist/kit/annotate.mjs +33 -29
- package/dist/kit/authored-activity-runtime.mjs +10 -5
- package/dist/kit/authored-response.mjs +20 -17
- package/dist/kit/bar-strip.mjs +1 -1
- package/dist/kit/chemistry/cycle.mjs +2 -2
- package/dist/kit/chemistry/glassware.d.mts +50 -2
- package/dist/kit/chemistry/glassware.mjs +396 -5
- package/dist/kit/chemistry/index.d.mts +3 -2
- package/dist/kit/chemistry/mechanism.mjs +30 -6
- package/dist/kit/chemistry/observation.d.mts +1 -1
- package/dist/kit/chemistry/observation.mjs +1 -0
- package/dist/kit/chemistry/reaction.mjs +198 -16
- package/dist/kit/chemistry/spectrum.mjs +5 -2
- package/dist/kit/chemistry/tool-icons.d.mts +12 -0
- package/dist/kit/chemistry/tool-icons.mjs +51 -0
- package/dist/kit/choice-order.mjs +29 -0
- package/dist/kit/clue-scene.mjs +14 -10
- package/dist/kit/cluster.mjs +17 -13
- package/dist/kit/commerce/books.d.mts +66 -0
- package/dist/kit/commerce/books.mjs +281 -0
- package/dist/kit/commerce/index.d.mts +2 -1
- package/dist/kit/commerce/ledger.mjs +5 -1
- package/dist/kit/controls.mjs +3 -2
- package/dist/kit/coords.mjs +1 -1
- package/dist/kit/cycle.mjs +90 -34
- package/dist/kit/data-scene.mjs +19 -22
- package/dist/kit/diagram/annotations.mjs +74 -16
- package/dist/kit/diagram/circuit-box.mjs +3 -40
- package/dist/kit/electronics/icons.mjs +4 -4
- package/dist/kit/electronics/op-amp.mjs +72 -0
- package/dist/kit/electronics/rectifier.mjs +153 -0
- package/dist/kit/electronics/semiconductor.mjs +92 -1
- package/dist/kit/engine-trace.mjs +257 -0
- package/dist/kit/ensure-asset.mjs +21 -0
- package/dist/kit/figure/figure.d.mts +14 -3
- package/dist/kit/figure/figure.mjs +11 -3
- package/dist/kit/figure/index.d.mts +3 -3
- package/dist/kit/figure/plot.d.mts +13 -1
- package/dist/kit/figure/text.d.mts +12 -3
- package/dist/kit/figure/text.mjs +18 -7
- package/dist/kit/figure-drag.mjs +93 -0
- package/dist/kit/frame.mjs +18 -1
- package/dist/kit/freq-tree.d.mts +22 -0
- package/dist/kit/freq-tree.mjs +15 -10
- package/dist/kit/gameshow.mjs +16 -14
- package/dist/kit/goal-activity.mjs +38 -0
- package/dist/kit/index.d.mts +14 -7
- package/dist/kit/index.mjs +20 -14
- package/dist/kit/instruments.mjs +2 -1
- package/dist/kit/learning-sequence.mjs +13 -6
- package/dist/kit/logic-gates/_shared.mjs +1 -2
- package/dist/kit/logic-gates/display.mjs +17 -19
- package/dist/kit/logic-gates/gate.mjs +46 -22
- package/dist/kit/magnetism/glyphs.d.mts +46 -1
- package/dist/kit/magnetism/glyphs.mjs +72 -1
- package/dist/kit/magnetism/index.d.mts +2 -2
- package/dist/kit/molecules.mjs +37 -24
- package/dist/kit/networking/glyphs.d.mts +2 -1
- package/dist/kit/networking/glyphs.mjs +9 -6
- package/dist/kit/networking/primitives.d.mts +1 -1
- package/dist/kit/networking/primitives.mjs +276 -3
- package/dist/kit/palette.mjs +62 -1
- package/dist/kit/pedagogy.d.mts +12 -1
- package/dist/kit/pedagogy.mjs +64 -19
- package/dist/kit/play.mjs +1 -1
- package/dist/kit/predict-gate.d.mts +7 -1
- package/dist/kit/predict-gate.mjs +99 -13
- package/dist/kit/predict.mjs +1 -1
- package/dist/kit/probability.mjs +10 -7
- package/dist/kit/proportion.mjs +34 -35
- package/dist/kit/reaction.mjs +31 -37
- package/dist/kit/recall-schedule.d.mts +12 -0
- package/dist/kit/recall-schedule.mjs +35 -0
- package/dist/kit/rich.mjs +1 -1
- package/dist/kit/rule.d.mts +7 -1
- package/dist/kit/rule.mjs +4 -4
- package/dist/kit/scale.mjs +1 -1
- package/dist/kit/scene-studio.mjs +7 -5
- package/dist/kit/scenes.mjs +51 -67
- package/dist/kit/space-glyphs.mjs +1 -1
- package/dist/kit/streak.mjs +156 -0
- package/dist/kit/thermal.mjs +25 -33
- package/dist/kit/vessel.mjs +30 -34
- package/dist/kit/world/index.d.mts +4 -0
- package/dist/kit/world/runtime.d.mts +42 -0
- package/dist/kit/world/runtime.mjs +103 -0
- package/dist/kit/world/skin-registry.d.mts +21 -0
- package/dist/kit/world/skin-registry.mjs +16 -0
- package/dist/kit/world/world-scene.d.mts +22 -0
- package/dist/kit/world/world-scene.mjs +176 -0
- package/dist/lab-def/define-lab.d.mts +9 -1
- package/dist/lab-def/define-lab.mjs +3 -1
- package/dist/lab-def/lab-runtime.mjs +3 -3
- package/dist/lab-def/to-block.mjs +2 -2
- package/dist/language/ui.mjs +2 -1
- package/dist/language/word-match/preset.mjs +2 -2
- package/dist/logic/ChipScene.mjs +7 -6
- package/dist/logic/LatchScene.mjs +1 -1
- package/dist/logic/LogicBuildLab.mjs +2 -2
- package/dist/logic/LogicEditScene.mjs +12 -12
- package/dist/logic/LogicEditor.mjs +1 -1
- package/dist/logic/LogicScene.mjs +28 -25
- package/dist/logic/contract.d.mts +4 -86
- package/dist/logic/counter.d.mts +4 -1
- package/dist/logic/counter.mjs +49 -4
- package/dist/logic/display.mjs +29 -27
- package/dist/logic/evaluate.d.mts +2 -17
- package/dist/logic/evaluate.mjs +2 -169
- package/dist/logic/gates.d.mts +1 -6
- package/dist/logic/gates.mjs +21 -62
- package/dist/logic/ic.d.mts +2 -58
- package/dist/logic/ic.mjs +4 -234
- package/dist/logic/index.d.mts +2 -2
- package/dist/logic/index.mjs +2 -2
- package/dist/logic/netlist.d.mts +2 -26
- package/dist/logic/netlist.mjs +1 -27
- package/dist/logic/registry.d.mts +0 -1
- package/dist/logic/registry.mjs +16 -8
- package/dist/logic/runtime/index.d.mts +1 -1
- package/dist/logic/sequential.d.mts +2 -123
- package/dist/logic/sequential.mjs +1 -185
- package/dist/math/alligation-mix/preset.mjs +239 -0
- package/dist/math/angle-chase/index.d.mts +4 -0
- package/dist/math/angle-chase/model.d.mts +14 -0
- package/dist/math/angle-chase/model.mjs +355 -0
- package/dist/math/angle-chase/preset.d.mts +26 -0
- package/dist/math/angle-chase/preset.mjs +438 -0
- package/dist/math/angle-chase/presets.d.mts +6 -0
- package/dist/math/angle-chase/presets.mjs +766 -0
- package/dist/math/angle-chase/scene.mjs +228 -0
- package/dist/math/answer-accuracy/core.d.mts +24 -0
- package/dist/math/answer-accuracy/core.mjs +99 -0
- package/dist/math/answer-accuracy/entry.mjs +81 -0
- package/dist/math/answer-accuracy/schema.mjs +15 -0
- package/dist/math/area-model/asset.mjs +34 -27
- package/dist/math/area-model/preset.mjs +87 -35
- package/dist/math/area-rearrange/preset.mjs +1 -1
- package/dist/math/balance-algebra/asset.mjs +1 -1
- package/dist/math/balance-algebra/preset.mjs +3 -2
- package/dist/math/bearings/index.d.mts +1 -1
- package/dist/math/bearings/preset.d.mts +40 -2
- package/dist/math/bearings/preset.mjs +169 -59
- package/dist/math/bounds-window/preset.mjs +1 -1
- package/dist/math/broken-tree/index.d.mts +1 -1
- package/dist/math/broken-tree/preset.d.mts +30 -2
- package/dist/math/broken-tree/preset.mjs +127 -44
- package/dist/math/complex/preset.mjs +1 -1
- package/dist/math/complex/rule-figures.mjs +1 -1
- package/dist/math/cone-frustum/preset.mjs +1 -1
- package/dist/math/conic/preset.mjs +1 -1
- package/dist/math/coord-point/preset.mjs +136 -0
- package/dist/math/coordinate-geometry/angle-between-lines/core.mjs +29 -0
- package/dist/math/coordinate-geometry/angle-between-lines/preset.mjs +279 -0
- package/dist/math/coordinate-geometry/chord-bisection/core.mjs +52 -0
- package/dist/math/coordinate-geometry/chord-bisection/preset.mjs +244 -0
- package/dist/math/coordinate-geometry/chord-given-midpoint/core.mjs +39 -0
- package/dist/math/coordinate-geometry/chord-given-midpoint/preset.mjs +206 -0
- package/dist/math/coordinate-geometry/chord-of-contact/core.mjs +33 -0
- package/dist/math/coordinate-geometry/chord-of-contact/preset.mjs +248 -0
- package/dist/math/coordinate-geometry/circle/preset.d.mts +30 -0
- package/dist/math/coordinate-geometry/circle/preset.mjs +216 -0
- package/dist/math/coordinate-geometry/circle-diameter-endpoints/core.mjs +54 -0
- package/dist/math/coordinate-geometry/circle-diameter-endpoints/preset.mjs +272 -0
- package/dist/math/coordinate-geometry/circle-intersection-angle/core.mjs +48 -0
- package/dist/math/coordinate-geometry/circle-intersection-angle/preset.mjs +249 -0
- package/dist/math/coordinate-geometry/circle-line-tangency/core.mjs +50 -0
- package/dist/math/coordinate-geometry/circle-line-tangency/preset.mjs +254 -0
- package/dist/math/coordinate-geometry/circle-through-points/core.mjs +77 -0
- package/dist/math/coordinate-geometry/circle-through-points/preset.mjs +241 -0
- package/dist/math/coordinate-geometry/common-tangents-count/core.mjs +99 -0
- package/dist/math/coordinate-geometry/common-tangents-count/preset.mjs +236 -0
- package/dist/math/coordinate-geometry/line-concurrency/core.mjs +62 -0
- package/dist/math/coordinate-geometry/line-concurrency/preset.mjs +264 -0
- package/dist/math/coordinate-geometry/line-family/core.mjs +26 -0
- package/dist/math/coordinate-geometry/line-family/preset.mjs +298 -0
- package/dist/math/coordinate-geometry/point-line-distance/core.mjs +47 -0
- package/dist/math/coordinate-geometry/point-line-distance/preset.mjs +285 -0
- package/dist/math/coordinate-geometry/point-reflection/preset.mjs +291 -0
- package/dist/math/coordinate-geometry/polar-cartesian/core.mjs +20 -0
- package/dist/math/coordinate-geometry/polar-cartesian/preset.mjs +254 -0
- package/dist/math/coordinate-geometry/radical-axis/core.mjs +57 -0
- package/dist/math/coordinate-geometry/radical-axis/preset.mjs +268 -0
- package/dist/math/coordinate-geometry/section-formula/core.mjs +16 -0
- package/dist/math/coordinate-geometry/section-formula/preset.mjs +286 -0
- package/dist/math/coordinate-geometry/straight-line/preset.d.mts +36 -0
- package/dist/math/coordinate-geometry/straight-line/preset.mjs +420 -0
- package/dist/math/coordinate-geometry/tangent-length-power-of-point/core.mjs +49 -0
- package/dist/math/coordinate-geometry/tangent-length-power-of-point/preset.mjs +250 -0
- package/dist/math/coordinate-geometry/triangle-area/core.mjs +23 -0
- package/dist/math/coordinate-geometry/triangle-area/preset.mjs +458 -0
- package/dist/math/derivation.d.mts +19 -10
- package/dist/math/derivation.mjs +79 -62
- package/dist/math/derivative-explorer/preset.mjs +87 -11
- package/dist/math/differential-equation/preset.mjs +1 -1
- package/dist/math/discriminant-radar/index.d.mts +2 -0
- package/dist/math/discriminant-radar/model.d.mts +5 -0
- package/dist/math/discriminant-radar/model.mjs +440 -0
- package/dist/math/discriminant-radar/preset.d.mts +29 -0
- package/dist/math/discriminant-radar/preset.mjs +625 -0
- package/dist/math/distribute-strip/preset.mjs +203 -0
- package/dist/math/domain-range/preset.mjs +2 -29
- package/dist/math/exact-triangle/preset.mjs +172 -42
- package/dist/math/fraction-bar/preset.mjs +1 -1
- package/dist/math/function-machine/preset.mjs +1 -1
- package/dist/math/functions/composite/model.d.mts +15 -0
- package/dist/math/functions/composite/model.mjs +452 -0
- package/dist/math/functions/composite/rounds-lab.d.mts +17 -0
- package/dist/math/functions/composite/rounds-lab.mjs +501 -0
- package/dist/math/functions/composite/scenes.mjs +451 -0
- package/dist/math/functions/composite-functions.d.mts +34 -0
- package/dist/math/functions/composite-functions.mjs +640 -0
- package/dist/math/functions/family-tree/lab.d.mts +24 -0
- package/dist/math/functions/family-tree/lab.mjs +602 -0
- package/dist/math/functions/family-tree/layout.mjs +188 -0
- package/dist/math/functions/family-tree/model.d.mts +64 -0
- package/dist/math/functions/family-tree/model.mjs +742 -0
- package/dist/math/functions/family-tree/scenes.mjs +608 -0
- package/dist/math/functions/graph-transform.d.mts +31 -0
- package/dist/math/functions/graph-transform.mjs +439 -0
- package/dist/math/functions/index.d.mts +7 -0
- package/dist/math/functions/injective-classifier.d.mts +16 -0
- package/dist/math/functions/injective-classifier.mjs +300 -0
- package/dist/math/functions/inverse-functions.d.mts +16 -0
- package/dist/math/functions/inverse-functions.mjs +366 -0
- package/dist/math/functions/modulus-function.d.mts +18 -0
- package/dist/math/functions/modulus-function.mjs +426 -0
- package/dist/math/fundamental-theorem/preset.mjs +1 -1
- package/dist/math/geometry-foundations/activity.mjs +6 -3
- package/dist/math/geometry-foundations/core.mjs +1 -1
- package/dist/math/geometry-foundations/preset.d.mts +8 -1
- package/dist/math/geometry-foundations/preset.mjs +196 -114
- package/dist/math/gradient-descent.mjs +50 -12
- package/dist/math/grapher/preset.mjs +1 -1
- package/dist/math/harmonic-form/preset.mjs +3 -3
- package/dist/math/implicit-parametric-derivative/contour.mjs +170 -0
- package/dist/math/implicit-parametric-derivative/index.d.mts +2 -0
- package/dist/math/implicit-parametric-derivative/preset.d.mts +23 -0
- package/dist/math/implicit-parametric-derivative/preset.mjs +753 -0
- package/dist/math/index.d.mts +50 -6
- package/dist/math/index.mjs +32 -4
- package/dist/math/inequalities/index.d.mts +3 -0
- package/dist/math/inequalities/inequality-solver.d.mts +21 -0
- package/dist/math/inequalities/inequality-solver.mjs +477 -0
- package/dist/math/inequalities/modulus-inequality.d.mts +17 -0
- package/dist/math/inequalities/modulus-inequality.mjs +366 -0
- package/dist/math/inequality-line/preset.mjs +196 -0
- package/dist/math/integral-explorer/preset.mjs +1 -1
- package/dist/math/integration-workbench/index.d.mts +2 -0
- package/dist/math/integration-workbench/model.mjs +578 -0
- package/dist/math/integration-workbench/preset.d.mts +20 -0
- package/dist/math/integration-workbench/preset.mjs +489 -0
- package/dist/math/interactive/preset.mjs +1 -1
- package/dist/math/iteration/preset.mjs +1 -1
- package/dist/math/limit-explorer/preset.mjs +84 -6
- package/dist/math/linear-map/index.d.mts +2 -0
- package/dist/math/linear-map/preset.d.mts +19 -0
- package/dist/math/linear-map/preset.mjs +433 -0
- package/dist/math/linear-model/preset.mjs +2 -1
- package/dist/math/linear-system/preset.mjs +72 -16
- package/dist/math/linearisation/chart.mjs +106 -0
- package/dist/math/linearisation/core.mjs +27 -0
- package/dist/math/lines-in-space/preset.mjs +240 -54
- package/dist/math/measurement/preset.mjs +83 -66
- package/dist/math/mystery-bucket/asset.mjs +1 -1
- package/dist/math/mystery-bucket/preset.mjs +3 -2
- package/dist/math/newton-method/preset.mjs +1 -1
- package/dist/math/number-line/preset.mjs +1 -1
- package/dist/math/oblique-triangle/core.d.mts +3 -1
- package/dist/math/oblique-triangle/core.mjs +131 -4
- package/dist/math/oblique-triangle/index.d.mts +2 -2
- package/dist/math/oblique-triangle/preset.d.mts +50 -4
- package/dist/math/oblique-triangle/preset.mjs +270 -72
- package/dist/math/parabola/preset.mjs +1 -1
- package/dist/math/partial-fractions/core.d.mts +2 -68
- package/dist/math/partial-fractions/core.mjs +2 -221
- package/dist/math/partial-fractions/index.d.mts +1 -1
- package/dist/math/partial-fractions/preset.mjs +1 -1
- package/dist/math/pattern/asset.mjs +11 -8
- package/dist/math/pattern/preset.mjs +3 -2
- package/dist/math/percent-bar/preset.mjs +3 -9
- package/dist/math/phase-portrait/preset.mjs +1 -1
- package/dist/math/poly/guided.mjs +1064 -0
- package/dist/math/poly/index.d.mts +2 -2
- package/dist/math/poly/index.mjs +2 -2
- package/dist/math/poly/model.mjs +378 -0
- package/dist/math/poly/preset.d.mts +13 -3
- package/dist/math/poly/preset.mjs +226 -103
- package/dist/math/poly/scenes.mjs +370 -0
- package/dist/math/poly/trace-renderers.mjs +178 -0
- package/dist/math/poly-roots/exact.mjs +179 -0
- package/dist/math/poly-roots/one-question.mjs +16 -0
- package/dist/math/poly-roots/typed-answer.mjs +92 -0
- package/dist/math/price-chain/preset.mjs +243 -0
- package/dist/math/radian-wrap/preset.mjs +11 -7
- package/dist/math/rate-machine/preset.mjs +3 -2
- package/dist/math/ratio-share/preset.d.mts +4 -0
- package/dist/math/ratio-share/preset.mjs +49 -7
- package/dist/math/relative-speed-track/preset.mjs +231 -0
- package/dist/math/right-triangle/dissection-board.d.mts +5 -0
- package/dist/math/right-triangle/dissection-board.mjs +143 -0
- package/dist/math/right-triangle/exact-entry.d.mts +2 -0
- package/dist/math/right-triangle/exact-entry.mjs +79 -0
- package/dist/math/right-triangle/index.d.mts +5 -0
- package/dist/math/right-triangle/pythagoras-dissection.d.mts +35 -0
- package/dist/math/right-triangle/pythagoras-dissection.mjs +481 -0
- package/dist/math/right-triangle/special-triangles.d.mts +34 -0
- package/dist/math/right-triangle/special-triangles.mjs +499 -0
- package/dist/math/root-fingerprint/index.d.mts +2 -0
- package/dist/math/root-fingerprint/model.mjs +336 -0
- package/dist/math/root-fingerprint/preset.d.mts +32 -0
- package/dist/math/root-fingerprint/preset.mjs +566 -0
- package/dist/math/root-fingerprint/scene.mjs +753 -0
- package/dist/math/root-mover/index.d.mts +2 -0
- package/dist/math/root-mover/model.mjs +458 -0
- package/dist/math/root-mover/preset.d.mts +23 -0
- package/dist/math/root-mover/preset.mjs +361 -0
- package/dist/math/root-mover/scene.mjs +221 -0
- package/dist/math/sequence-predict/index.d.mts +2 -1
- package/dist/math/sequence-predict/model.d.mts +13 -0
- package/dist/math/sequence-predict/model.mjs +57 -0
- package/dist/math/sequence-predict/preset.d.mts +8 -4
- package/dist/math/sequence-predict/preset.mjs +89 -32
- package/dist/math/slide-rule/preset.mjs +1 -1
- package/dist/math/solid-net/preset.mjs +1 -1
- package/dist/math/solid-slice/preset.mjs +1 -1
- package/dist/math/solids-of-revolution/index.d.mts +4 -0
- package/dist/math/solids-of-revolution/model.d.mts +71 -0
- package/dist/math/solids-of-revolution/model.mjs +379 -0
- package/dist/math/solids-of-revolution/preset.d.mts +33 -0
- package/dist/math/solids-of-revolution/preset.mjs +411 -0
- package/dist/math/solids-of-revolution/scene.d.mts +20 -0
- package/dist/math/solids-of-revolution/scene.mjs +330 -0
- package/dist/math/stationary-point-classifier/index.d.mts +2 -0
- package/dist/math/stationary-point-classifier/preset.d.mts +14 -0
- package/dist/math/stationary-point-classifier/preset.mjs +263 -0
- package/dist/math/substitute-value/preset.mjs +184 -0
- package/dist/math/system-solve/preset.mjs +143 -29
- package/dist/math/tangent-normal/index.d.mts +2 -0
- package/dist/math/tangent-normal/preset.d.mts +15 -0
- package/dist/math/tangent-normal/preset.mjs +335 -0
- package/dist/math/tangent-rule-triangle/core.d.mts +13 -0
- package/dist/math/tangent-rule-triangle/core.mjs +42 -0
- package/dist/math/tangent-rule-triangle/index.d.mts +4 -0
- package/dist/math/tangent-rule-triangle/preset.d.mts +16 -0
- package/dist/math/tangent-rule-triangle/preset.mjs +306 -0
- package/dist/math/tank-design/preset.mjs +2 -2
- package/dist/math/taylor-series/preset.mjs +1 -1
- package/dist/math/transform/preset.mjs +2 -2
- package/dist/math/triangle-trig/core.d.mts +19 -0
- package/dist/math/triangle-trig/core.mjs +71 -0
- package/dist/math/triangle-trig/index.d.mts +2 -1
- package/dist/math/triangle-trig/preset.d.mts +52 -7
- package/dist/math/triangle-trig/preset.mjs +224 -69
- package/dist/math/trig/associated-angle.d.mts +16 -0
- package/dist/math/trig/associated-angle.mjs +355 -0
- package/dist/math/trig/diagrams.mjs +1 -1
- package/dist/math/trig/equation-solver.d.mts +28 -0
- package/dist/math/trig/equation-solver.mjs +702 -0
- package/dist/math/trig/general-solution.d.mts +16 -0
- package/dist/math/trig/general-solution.mjs +353 -0
- package/dist/math/trig/index.d.mts +6 -1
- package/dist/math/trig/multiple-angle.d.mts +20 -0
- package/dist/math/trig/multiple-angle.mjs +338 -0
- package/dist/math/trig/preset.mjs +1 -1
- package/dist/math/trig/sum-to-product.d.mts +16 -0
- package/dist/math/trig/sum-to-product.mjs +317 -0
- package/dist/math/trig-explorer.mjs +1 -1
- package/dist/ml/core/embedding.d.mts +34 -0
- package/dist/ml/core/embedding.mjs +148 -0
- package/dist/ml/core/index.d.mts +11 -0
- package/dist/ml/core/index.mjs +20 -0
- package/dist/ml/core/next-token.d.mts +20 -0
- package/dist/ml/core/next-token.mjs +69 -0
- package/dist/ml/core/polyfit.d.mts +12 -0
- package/dist/ml/core/polyfit.mjs +62 -0
- package/dist/ml/core/regression.d.mts +99 -0
- package/dist/ml/core/regression.mjs +171 -0
- package/dist/ml/core/split-leak.d.mts +137 -0
- package/dist/ml/core/split-leak.mjs +488 -0
- package/dist/ml/core/threshold-metrics.d.mts +14 -0
- package/dist/ml/core/threshold-metrics.mjs +11 -0
- package/dist/ml/index.d.mts +4 -1
- package/dist/ml/index.mjs +3 -1
- package/dist/ml/worlds/bakery/records.mjs +96 -0
- package/dist/ml/worlds/bakery/sets.mjs +619 -0
- package/dist/ml/worlds/index.d.mts +12 -0
- package/dist/ml/worlds/index.mjs +22 -0
- package/dist/ml/worlds/synthetic.d.mts +10 -0
- package/dist/ml/worlds/synthetic.mjs +83 -0
- package/dist/ml/worlds/types.d.mts +84 -0
- package/dist/networking/AirtimeScene.mjs +6 -15
- package/dist/networking/CellularScene.mjs +247 -36
- package/dist/networking/HandoverScene.mjs +15 -3
- package/dist/networking/HandshakeScene.mjs +266 -47
- package/dist/networking/MediaScene.mjs +7 -31
- package/dist/networking/NetworkScene.d.mts +3 -1
- package/dist/networking/NetworkScene.mjs +16 -4
- package/dist/networking/PlugScene.mjs +4 -30
- package/dist/networking/PrivacyScene.mjs +7 -26
- package/dist/networking/SatelliteScene.mjs +4 -3
- package/dist/networking/SpectrumScene.mjs +21 -28
- package/dist/networking/SubnetScene.mjs +7 -15
- package/dist/networking/SwitchScene.mjs +27 -195
- package/dist/networking/VlanScene.mjs +19 -32
- package/dist/networking/VpnScene.mjs +22 -35
- package/dist/networking/WifiScene.mjs +38 -40
- package/dist/pedagogy/concept-sprint/clock.mjs +25 -0
- package/dist/pedagogy/concept-sprint/core.mjs +206 -0
- package/dist/pedagogy/concept-sprint/preset.mjs +329 -0
- package/dist/physics/alternating-current/preset.d.mts +5 -1
- package/dist/physics/alternating-current/preset.mjs +47 -16
- package/dist/physics/astronomy/cosmic-expansion.d.mts +16 -0
- package/dist/physics/astronomy/cosmic-expansion.mjs +356 -0
- package/dist/physics/astronomy/stellar-distance.d.mts +16 -0
- package/dist/physics/astronomy/stellar-distance.mjs +291 -0
- package/dist/physics/astronomy/stellar-evolution.d.mts +15 -0
- package/dist/physics/astronomy/stellar-evolution.mjs +314 -0
- package/dist/physics/astronomy/stellar-radiation.d.mts +16 -0
- package/dist/physics/astronomy/stellar-radiation.mjs +239 -0
- package/dist/physics/atwood/preset.mjs +43 -47
- package/dist/physics/beam-reactions/index.d.mts +2 -0
- package/dist/physics/beam-reactions/preset.d.mts +21 -0
- package/dist/physics/beam-reactions/preset.mjs +360 -0
- package/dist/physics/biot-savart/activity.mjs +71 -2
- package/dist/physics/biot-savart/preset.mjs +84 -42
- package/dist/physics/biot-savart/presets.mjs +111 -28
- package/dist/physics/biot-savart/torque-activity.mjs +30 -2
- package/dist/physics/biot-savart/torque-preset.mjs +79 -31
- package/dist/physics/bullet-walls/preset.mjs +2 -2
- package/dist/physics/buoyancy/index.d.mts +2 -0
- package/dist/physics/buoyancy/preset.d.mts +16 -0
- package/dist/physics/buoyancy/preset.mjs +365 -0
- package/dist/physics/carnot/preset.d.mts +1 -1
- package/dist/physics/carnot/preset.mjs +58 -60
- package/dist/physics/circular-motion/preset.d.mts +5 -1
- package/dist/physics/circular-motion/preset.mjs +136 -69
- package/dist/physics/collision-track/preset.mjs +65 -77
- package/dist/physics/constants.mjs +4 -4
- package/dist/physics/couple-torque/preset.mjs +50 -20
- package/dist/physics/efficiency/preset.mjs +30 -37
- package/dist/physics/electric-field/preset.mjs +20 -21
- package/dist/physics/electric-flux/preset.mjs +10 -3
- package/dist/physics/electrostatics/coulomb-preset.mjs +1 -1
- package/dist/physics/energy/core.d.mts +3 -89
- package/dist/physics/energy/core.mjs +4 -125
- package/dist/physics/energy-skate/preset.mjs +3 -3
- package/dist/physics/entropy/preset.mjs +62 -59
- package/dist/physics/expansion/preset.mjs +53 -61
- package/dist/physics/exponential/asset.mjs +28 -28
- package/dist/physics/exponential/preset.mjs +1 -1
- package/dist/physics/field-geometry/flux-geometry.mjs +53 -0
- package/dist/physics/field-geometry/index.d.mts +2 -0
- package/dist/physics/field-geometry/preset.d.mts +19 -0
- package/dist/physics/field-geometry/preset.mjs +440 -0
- package/dist/physics/fields/spatial-preset.mjs +6 -5
- package/dist/physics/fluid-pressure/preset.mjs +60 -57
- package/dist/physics/force-pairs/preset.mjs +105 -59
- package/dist/physics/gas-process/preset.d.mts +1 -1
- package/dist/physics/gas-process/preset.mjs +34 -36
- package/dist/physics/gas-theory/index.d.mts +2 -0
- package/dist/physics/gas-theory/preset.d.mts +13 -0
- package/dist/physics/gas-theory/preset.mjs +302 -0
- package/dist/physics/gauss-law/preset.mjs +77 -66
- package/dist/physics/geomagnetism/preset.mjs +1 -1
- package/dist/physics/gravitation/preset.mjs +1 -1
- package/dist/physics/gravity-drop.mjs +40 -13
- package/dist/physics/gravity-profile/preset.mjs +2 -2
- package/dist/physics/heat-transfer/cases.d.mts +9 -0
- package/dist/physics/heat-transfer/cases.mjs +319 -0
- package/dist/physics/heat-transfer/index.d.mts +2 -1
- package/dist/physics/heat-transfer/preset.d.mts +3 -1
- package/dist/physics/heat-transfer/preset.mjs +243 -180
- package/dist/physics/impulse/preset.mjs +33 -45
- package/dist/physics/index.d.mts +59 -8
- package/dist/physics/index.mjs +53 -8
- package/dist/physics/intercept/animals.mjs +10 -6
- package/dist/physics/intercept/preset.mjs +4 -3
- package/dist/physics/investigation/circuit.d.mts +3 -5
- package/dist/physics/investigation/energy-resource.mjs +2 -2
- package/dist/physics/investigation/measurement.mjs +9 -12
- package/dist/physics/investigation-activity.d.mts +2 -0
- package/dist/physics/investigation-activity.mjs +20 -36
- package/dist/physics/kepler/period.d.mts +5 -0
- package/dist/physics/kepler/period.mjs +9 -0
- package/dist/physics/kepler/preset.mjs +2 -2
- package/dist/physics/lever/asset.mjs +10 -8
- package/dist/physics/lever/preset.mjs +36 -6
- package/dist/physics/lift-weight/preset.mjs +1 -1
- package/dist/physics/lifting-work/preset.mjs +1 -1
- package/dist/physics/linear-pursuit/preset.mjs +2 -2
- package/dist/physics/lorentz/activity.d.mts +26 -0
- package/dist/physics/lorentz/activity.mjs +85 -0
- package/dist/physics/lorentz/core.d.mts +1 -5
- package/dist/physics/lorentz/core.mjs +1 -29
- package/dist/physics/lorentz/index.d.mts +1 -1
- package/dist/physics/lorentz/preset.d.mts +9 -2
- package/dist/physics/lorentz/preset.mjs +289 -111
- package/dist/physics/machines/ac-generator/core.d.mts +2 -38
- package/dist/physics/machines/ac-generator/core.mjs +2 -49
- package/dist/physics/machines/ac-generator/index.d.mts +2 -2
- package/dist/physics/machines/ac-generator/preset.d.mts +2 -1
- package/dist/physics/machines/ac-generator/preset.mjs +164 -186
- package/dist/physics/machines/dc-motor/core.d.mts +2 -28
- package/dist/physics/machines/dc-motor/core.mjs +2 -56
- package/dist/physics/machines/dc-motor/index.d.mts +2 -2
- package/dist/physics/machines/dc-motor/preset.d.mts +3 -1
- package/dist/physics/machines/dc-motor/preset.mjs +92 -85
- package/dist/physics/magnetisation/activity.mjs +187 -0
- package/dist/physics/magnetisation/core.mjs +180 -0
- package/dist/physics/magnetisation/preset.mjs +715 -0
- package/dist/physics/magnetism/compass-core.d.mts +8 -0
- package/dist/physics/magnetism/compass-core.mjs +184 -0
- package/dist/physics/magnetism/electromagnet-bench.d.mts +19 -0
- package/dist/physics/magnetism/electromagnet-bench.mjs +342 -0
- package/dist/physics/magnetism/formula-core.d.mts +1 -1
- package/dist/physics/magnetism/formula-core.mjs +3 -6
- package/dist/physics/magnetism/index.d.mts +9 -1
- package/dist/physics/magnetism/induction-bench.d.mts +19 -0
- package/dist/physics/magnetism/induction-bench.mjs +232 -0
- package/dist/physics/magnetism/inductor-energy.d.mts +1 -0
- package/dist/physics/magnetism/inductor-energy.mjs +168 -0
- package/dist/physics/magnetism/mutual-induction-core.mjs +32 -0
- package/dist/physics/magnetism/mutual-induction.d.mts +1 -0
- package/dist/physics/magnetism/mutual-induction.mjs +163 -0
- package/dist/physics/magnetism/pair-core.d.mts +1 -0
- package/dist/physics/magnetism/pair-core.mjs +117 -0
- package/dist/physics/magnetism/pair-preset.d.mts +3 -0
- package/dist/physics/magnetism/pair-preset.mjs +377 -0
- package/dist/physics/magnetism/preset.d.mts +18 -1
- package/dist/physics/magnetism/preset.mjs +174 -256
- package/dist/physics/magnetism/transformer-bench.d.mts +14 -0
- package/dist/physics/magnetism/transformer-bench.mjs +246 -0
- package/dist/physics/magnetism/world-glyphs.d.mts +2 -0
- package/dist/physics/mechanics/activity.mjs +1 -1
- package/dist/physics/mechanics/contact-pressure.d.mts +16 -0
- package/dist/physics/mechanics/contact-pressure.mjs +180 -0
- package/dist/physics/mechanics/core.d.mts +3 -15
- package/dist/physics/mechanics/core.mjs +3 -22
- package/dist/physics/mechanics/force-balance-scene.mjs +108 -0
- package/dist/physics/mechanics/glyphs.mjs +121 -29
- package/dist/physics/mechanics/presentation.mjs +2 -1
- package/dist/physics/mechanics/stability.d.mts +16 -0
- package/dist/physics/mechanics/stability.mjs +183 -0
- package/dist/physics/modern/imaging/index.d.mts +2 -3
- package/dist/physics/modern/imaging/pet-activity.d.mts +4 -1
- package/dist/physics/modern/imaging/pet-activity.mjs +94 -49
- package/dist/physics/modern/imaging/pet-preset.d.mts +4 -2
- package/dist/physics/modern/imaging/pet-preset.mjs +23 -18
- package/dist/physics/modern/imaging/pet-scene.d.mts +3 -2
- package/dist/physics/modern/imaging/pet-scene.mjs +124 -116
- package/dist/physics/modern/imaging/preset.d.mts +3 -2
- package/dist/physics/modern/imaging/preset.mjs +30 -8
- package/dist/physics/modern/imaging/spectrum-preset.d.mts +3 -2
- package/dist/physics/modern/imaging/spectrum-preset.mjs +30 -8
- package/dist/physics/modern/imaging/tomography-preset.mjs +238 -0
- package/dist/physics/modern/index.d.mts +7 -3
- package/dist/physics/modern/index.mjs +7 -3
- package/dist/physics/modern/nuclear/core.d.mts +33 -51
- package/dist/physics/modern/nuclear/core.mjs +30 -60
- package/dist/physics/modern/nuclear/decay-activity.d.mts +5 -0
- package/dist/physics/modern/nuclear/decay-activity.mjs +102 -0
- package/dist/physics/modern/nuclear/decay-core.d.mts +57 -0
- package/dist/physics/modern/nuclear/decay-core.mjs +65 -0
- package/dist/physics/modern/nuclear/decay-preset.d.mts +16 -0
- package/dist/physics/modern/nuclear/decay-preset.mjs +307 -0
- package/dist/physics/modern/nuclear/index.d.mts +4 -1
- package/dist/physics/modern/nuclear/preset.mjs +150 -25
- package/dist/physics/modern/quantum/bloch-preset.mjs +1 -1
- package/dist/physics/modern/quantum/double-slit-preset.mjs +1 -1
- package/dist/physics/modern/quantum/index.d.mts +3 -1
- package/dist/physics/modern/quantum/preset.mjs +1 -1
- package/dist/physics/modern/quantum/spectra-activity.d.mts +5 -0
- package/dist/physics/modern/quantum/spectra-activity.mjs +102 -0
- package/dist/physics/modern/quantum/spectra-preset.d.mts +16 -0
- package/dist/physics/modern/quantum/spectra-preset.mjs +335 -0
- package/dist/physics/modern/quantum/uncertainty-preset.mjs +1 -1
- package/dist/physics/modern/relativity/explorer-preset.mjs +1 -1
- package/dist/physics/modern/relativity/length-preset.mjs +1 -1
- package/dist/physics/modern/relativity/simultaneity-preset.mjs +1 -1
- package/dist/physics/modern/shared/experiment-transport.mjs +1 -1
- package/dist/physics/optics/activity.mjs +27 -0
- package/dist/physics/optics/asset.mjs +53 -28
- package/dist/physics/optics/diffraction-grating.d.mts +15 -0
- package/dist/physics/optics/diffraction-grating.mjs +307 -0
- package/dist/physics/optics/eye-correction.d.mts +16 -0
- package/dist/physics/optics/eye-correction.mjs +272 -0
- package/dist/physics/optics/guided-light.d.mts +19 -0
- package/dist/physics/optics/guided-light.mjs +334 -0
- package/dist/physics/optics/imaging-activity.mjs +3 -14
- package/dist/physics/optics/imaging-world-scene.mjs +564 -0
- package/dist/physics/optics/index.d.mts +8 -1
- package/dist/physics/optics/laser-emitter-glyph.mjs +46 -0
- package/dist/physics/optics/lens-geometry-scene.mjs +266 -0
- package/dist/physics/optics/lens-geometry.d.mts +14 -0
- package/dist/physics/optics/lens-geometry.mjs +122 -0
- package/dist/physics/optics/lens.d.mts +1 -1
- package/dist/physics/optics/lens.mjs +59 -334
- package/dist/physics/optics/light-path-world-scene.mjs +219 -0
- package/dist/physics/optics/mirror.d.mts +1 -1
- package/dist/physics/optics/mirror.mjs +66 -333
- package/dist/physics/optics/polarisation.d.mts +15 -0
- package/dist/physics/optics/polarisation.mjs +264 -0
- package/dist/physics/optics/preset.mjs +6 -4
- package/dist/physics/optics/prism-dispersion.d.mts +15 -0
- package/dist/physics/optics/prism-dispersion.mjs +91 -0
- package/dist/physics/optics/refraction-world-scene.mjs +275 -0
- package/dist/physics/optics/refraction.d.mts +1 -5
- package/dist/physics/optics/refraction.mjs +161 -365
- package/dist/physics/optics/spectral-resolver.d.mts +13 -0
- package/dist/physics/optics/spectral-resolver.mjs +207 -0
- package/dist/physics/orbit-lab.mjs +66 -53
- package/dist/physics/orbital/model.d.mts +3 -3
- package/dist/physics/orbital/model.mjs +32 -9
- package/dist/physics/power/preset.mjs +45 -40
- package/dist/physics/practical-data/scale.mjs +47 -0
- package/dist/physics/projectiles/falling-target.mjs +22 -4
- package/dist/physics/projectiles/moving-launcher.mjs +5 -5
- package/dist/physics/rain-relative/preset.mjs +28 -20
- package/dist/physics/ramp-forces/preset.mjs +4 -4
- package/dist/physics/river-boat.mjs +7 -6
- package/dist/physics/rocket-flight/index.d.mts +2 -0
- package/dist/physics/rocket-flight/preset.d.mts +14 -0
- package/dist/physics/rocket-flight/preset.mjs +200 -0
- package/dist/physics/rolling-race/index.d.mts +2 -0
- package/dist/physics/rolling-race/preset.d.mts +15 -0
- package/dist/physics/rolling-race/preset.mjs +193 -0
- package/dist/physics/shm/energy.d.mts +5 -2
- package/dist/physics/shm/energy.mjs +5 -5
- package/dist/physics/shm/graphs.d.mts +3 -1
- package/dist/physics/shm/graphs.mjs +4 -4
- package/dist/physics/shm/index.d.mts +2 -2
- package/dist/physics/shm/pendulum-worlds.mjs +1 -1
- package/dist/physics/shm/preset.d.mts +5 -2
- package/dist/physics/shm/preset.mjs +50 -24
- package/dist/physics/shm/springs.mjs +1 -1
- package/dist/physics/spin-studio/preset.mjs +28 -24
- package/dist/physics/stopping-distance/preset.mjs +8 -8
- package/dist/physics/stress-strain/core.d.mts +2 -127
- package/dist/physics/stress-strain/core.mjs +2 -160
- package/dist/physics/stress-strain/index.d.mts +3 -3
- package/dist/physics/stress-strain/preset.d.mts +5 -2
- package/dist/physics/stress-strain/preset.mjs +45 -16
- package/dist/physics/suspension/preset.mjs +181 -128
- package/dist/physics/temperature-scales/preset.mjs +26 -29
- package/dist/physics/terminal-velocity/model.mjs +38 -12
- package/dist/physics/terminal-velocity/preset.mjs +58 -50
- package/dist/physics/thermal/activity.mjs +1 -1
- package/dist/physics/thermal/equilibrium.d.mts +14 -0
- package/dist/physics/thermal/equilibrium.mjs +168 -0
- package/dist/physics/thermal/evaporation.d.mts +16 -0
- package/dist/physics/thermal/evaporation.mjs +177 -0
- package/dist/physics/thermal/index.d.mts +1 -1
- package/dist/physics/thermal/preset.d.mts +5 -2
- package/dist/physics/thermal/preset.mjs +138 -48
- package/dist/physics/thermal/specific-heat.d.mts +16 -0
- package/dist/physics/thermal/specific-heat.mjs +181 -0
- package/dist/physics/vector-board/preset.mjs +1 -1
- package/dist/physics/vector-types/preset.mjs +1 -1
- package/dist/physics/venturi/preset.mjs +2 -2
- package/dist/physics/water-density/preset.mjs +53 -57
- package/dist/physics/waves/acoustic-boundary.d.mts +16 -0
- package/dist/physics/waves/acoustic-boundary.mjs +215 -0
- package/dist/physics/waves/coherence.d.mts +13 -0
- package/dist/physics/waves/coherence.mjs +104 -0
- package/dist/physics/waves/diffraction-scene.mjs +23 -0
- package/dist/physics/waves/diffraction-skin.mjs +109 -0
- package/dist/physics/waves/doppler.mjs +4 -5
- package/dist/physics/waves/echo-ranging.d.mts +16 -0
- package/dist/physics/waves/echo-ranging.mjs +189 -0
- package/dist/physics/waves/gap-diffraction.d.mts +15 -0
- package/dist/physics/waves/gap-diffraction.mjs +83 -0
- package/dist/physics/waves/guitar.mjs +1 -1
- package/dist/physics/waves/harmonic-modes.d.mts +15 -0
- package/dist/physics/waves/harmonic-modes.mjs +91 -0
- package/dist/physics/waves/index.d.mts +22 -2
- package/dist/physics/waves/intensity-amplitude.d.mts +12 -0
- package/dist/physics/waves/intensity-amplitude.mjs +209 -0
- package/dist/physics/waves/interference-core.mjs +10 -2
- package/dist/physics/waves/particle-motion.d.mts +17 -0
- package/dist/physics/waves/particle-motion.mjs +178 -0
- package/dist/physics/waves/phase-path.d.mts +12 -0
- package/dist/physics/waves/phase-path.mjs +69 -0
- package/dist/physics/waves/preset.d.mts +4 -2
- package/dist/physics/waves/preset.mjs +43 -22
- package/dist/physics/waves/progressive-stationary.d.mts +14 -0
- package/dist/physics/waves/progressive-stationary.mjs +88 -0
- package/dist/physics/waves/pulse-echo.d.mts +18 -0
- package/dist/physics/waves/pulse-echo.mjs +435 -0
- package/dist/physics/waves/ripple.mjs +5 -3
- package/dist/physics/waves/sound-air.d.mts +18 -0
- package/dist/physics/waves/sound-air.mjs +187 -0
- package/dist/physics/waves/sound-medium.d.mts +19 -0
- package/dist/physics/waves/sound-medium.mjs +178 -0
- package/dist/physics/waves/standing-wave-scene.mjs +22 -0
- package/dist/physics/waves/string.mjs +3 -4
- package/dist/physics/waves/timbre.d.mts +17 -0
- package/dist/physics/waves/timbre.mjs +161 -0
- package/dist/physics/waves/travelling-wave-scene.d.mts +10 -0
- package/dist/physics/waves/travelling-wave-scene.mjs +22 -0
- package/dist/physics/waves/ultrasound-frequency.d.mts +13 -0
- package/dist/physics/waves/ultrasound-frequency.mjs +196 -0
- package/dist/physics/waves/water-refraction.d.mts +18 -0
- package/dist/physics/waves/water-refraction.mjs +196 -0
- package/dist/physics/waves/wave-activity.mjs +6 -4
- package/dist/physics/waves/wave-bench-scene.d.mts +9 -0
- package/dist/physics/waves/wave-bench-scene.mjs +22 -0
- package/dist/physics/waves/wave-bench-skins.mjs +513 -0
- package/dist/physics/waves/wave-graphs.d.mts +14 -0
- package/dist/physics/waves/wave-graphs.mjs +88 -0
- package/dist/physics/waves/wave-speed.d.mts +14 -0
- package/dist/physics/waves/wave-speed.mjs +75 -0
- package/dist/physics/waves/young-double-slit.d.mts +15 -0
- package/dist/physics/waves/young-double-slit.mjs +271 -0
- package/dist/physics/wire-force/activity.mjs +169 -0
- package/dist/physics/wire-force/core.mjs +108 -0
- package/dist/physics/wire-force/preset.mjs +698 -0
- package/dist/physics/work-energy/preset.mjs +25 -32
- package/dist/physics/work-potential/preset.mjs +14 -11
- package/dist/statistics/center-spread/preset.mjs +29 -30
- package/dist/statistics/frequency-density/preset.mjs +1 -1
- package/dist/statistics/galton/preset.mjs +3 -5
- package/dist/statistics/histogram/preset.mjs +44 -44
- package/dist/statistics/normal/preset.mjs +43 -23
- package/dist/statistics/ogive/preset.mjs +1 -1
- package/dist/statistics/sampling/preset.d.mts +20 -2
- package/dist/statistics/sampling/preset.mjs +67 -16
- package/dist/statistics/sequence/preset.mjs +49 -56
- package/dist/statistics/z-table/preset.mjs +32 -17
- package/dist/three/chemistry/crystal-lattice.d.mts +2 -1
- package/dist/three/chemistry/crystal-lattice.mjs +2 -1
- package/dist/three/index.d.mts +3 -1
- package/dist/three/index.mjs +2 -1
- package/dist/three/math/index.d.mts +2 -0
- package/dist/three/math/index.mjs +3 -0
- package/dist/three/math/solids-of-revolution.d.mts +10 -0
- package/dist/three/math/solids-of-revolution.mjs +345 -0
- package/dist/three/palette.d.mts +2 -0
- package/dist/three/palette.mjs +4 -2
- package/package.json +82 -57
- package/styles/core.css +3952 -4083
- package/styles/domains/algorithms.css +1 -0
- package/styles/domains/chemistry.css +5 -2
- package/styles/domains/commerce.css +5 -0
- package/styles/domains/exam.css +4 -0
- package/styles/domains/geometry.css +5 -0
- package/styles/domains/language.css +2 -0
- package/styles/domains/math.css +1 -1
- package/styles/domains/ml.css +1 -0
- package/styles/domains/parts/algorithms-0.css +63 -95
- package/styles/domains/parts/algorithms-1.css +53 -69
- package/styles/domains/parts/algorithms-2.css +12 -12
- package/styles/domains/parts/algorithms-3.css +10 -0
- package/styles/domains/parts/algorithms-4.css +756 -0
- package/styles/domains/parts/chemistry-concepts.css +1032 -0
- package/styles/domains/parts/chemistry-workshops.css +809 -0
- package/styles/domains/parts/circuits.css +305 -0
- package/styles/domains/parts/commerce-books.css +268 -0
- package/styles/domains/parts/commerce-entry-practice.css +244 -0
- package/styles/domains/parts/commerce-foundation.css +832 -0
- package/styles/domains/parts/commerce-ledger-practice.css +489 -0
- package/styles/domains/parts/discrete-4.css +15 -0
- package/styles/domains/parts/discrete-5.css +201 -0
- package/styles/domains/parts/exam-paper.css +258 -0
- package/styles/domains/parts/exam-practice.css +105 -0
- package/styles/domains/parts/exam-proof.css +74 -0
- package/styles/domains/parts/geometry-1.css +363 -0
- package/styles/domains/parts/ict.css +9 -0
- package/styles/domains/parts/language.css +663 -0
- package/styles/domains/parts/math-1.css +11 -2
- package/styles/domains/parts/math-2.css +0 -55
- package/styles/domains/parts/math-3.css +50 -48
- package/styles/domains/parts/math-5.css +76 -305
- package/styles/domains/parts/math-6.css +66 -35
- package/styles/domains/parts/math-7.css +592 -0
- package/styles/domains/parts/ml-2.css +775 -0
- package/styles/domains/parts/ml.css +6 -0
- package/styles/domains/parts/networking.css +18 -0
- package/styles/domains/parts/physics-foundations.css +672 -0
- package/styles/domains/parts/physics-investigations.css +757 -0
- package/styles/domains/parts/physics-refinements.css +446 -0
- package/styles/domains/parts/probability-2.css +19 -0
- package/styles/domains/parts/probability-3.css +9 -0
- package/styles/domains/parts/revision-1.css +711 -0
- package/styles/domains/parts/revision-2.css +312 -0
- package/styles/domains/parts/statistics.css +6 -0
- package/styles/domains/physics.css +3 -3
- package/styles/domains/revision.css +5 -0
- package/styles/domains.css +21 -7
- package/styles/figure.css +42 -16
- package/styles/runtime.css +16 -0
- package/styles.css +11 -20
- package/tailwind.css +17 -0
- package/dist/build/CircuitEditor.d.mts +0 -10
- package/dist/build/CircuitPlayer.d.mts +0 -13
- package/dist/build/CircuitPlayer.mjs +0 -53
- package/dist/build/CircuitScene.d.mts +0 -59
- package/dist/build/editor-ops.d.mts +0 -64
- package/dist/build/flow.d.mts +0 -13
- package/dist/build/flow.mjs +0 -119
- package/dist/build/solve.d.mts +0 -7
- package/dist/build/solve.mjs +0 -0
- package/dist/chem/reaction-lab.d.mts +0 -14
- package/dist/chem/reaction-lab.mjs +0 -266
- package/dist/circuits/circuit/asset.d.mts +0 -5
- package/dist/circuits/circuit/asset.mjs +0 -312
- package/dist/core/embedding.d.mts +0 -14
- package/dist/core/embedding.mjs +0 -107
- package/dist/core/next-token.d.mts +0 -9
- package/dist/core/next-token.mjs +0 -88
- package/dist/domains/chem/air-composition/manifest.mjs +0 -45
- package/dist/domains/chem/air-composition/runtime.mjs +0 -5
- package/dist/domains/chem/alkene-geometry/activity.mjs +0 -73
- package/dist/domains/chem/alkene-geometry/manifest.mjs +0 -58
- package/dist/domains/chem/alkene-geometry/model.mjs +0 -204
- package/dist/domains/chem/alkene-geometry/runtime.mjs +0 -122
- package/dist/domains/chem/alkene-geometry/scene.mjs +0 -170
- package/dist/domains/chem/apparatus-choice/manifest.mjs +0 -51
- package/dist/domains/chem/apparatus-choice/runtime.mjs +0 -5
- package/dist/domains/chem/applied-chemistry/manifest.mjs +0 -62
- package/dist/domains/chem/applied-chemistry/runtime.mjs +0 -5
- package/dist/domains/chem/arene-evidence/activity.mjs +0 -86
- package/dist/domains/chem/arene-evidence/manifest.mjs +0 -51
- package/dist/domains/chem/arene-evidence/model.d.mts +0 -71
- package/dist/domains/chem/arene-evidence/model.mjs +0 -116
- package/dist/domains/chem/arene-evidence/runtime.mjs +0 -138
- package/dist/domains/chem/arene-evidence/scene.d.mts +0 -8
- package/dist/domains/chem/arene-evidence/scene.mjs +0 -208
- package/dist/domains/chem/atomic-orbital/activity.mjs +0 -3
- package/dist/domains/chem/atomic-orbital/manifest.mjs +0 -71
- package/dist/domains/chem/atomic-orbital/runtime.mjs +0 -20
- package/dist/domains/chem/battery/manifest.mjs +0 -55
- package/dist/domains/chem/battery/runtime.mjs +0 -15
- package/dist/domains/chem/bohr-atom/manifest.mjs +0 -55
- package/dist/domains/chem/bohr-atom/runtime.mjs +0 -15
- package/dist/domains/chem/catalytic-cycle/activity.mjs +0 -36
- package/dist/domains/chem/catalytic-cycle/manifest.mjs +0 -44
- package/dist/domains/chem/catalytic-cycle/model.mjs +0 -61
- package/dist/domains/chem/catalytic-cycle/runtime.mjs +0 -61
- package/dist/domains/chem/catalytic-cycle/scene.mjs +0 -27
- package/dist/domains/chem/change-detective/activity.mjs +0 -81
- package/dist/domains/chem/change-detective/manifest.mjs +0 -46
- package/dist/domains/chem/change-detective/model.mjs +0 -65
- package/dist/domains/chem/change-detective/runtime.mjs +0 -73
- package/dist/domains/chem/change-detective/scene.mjs +0 -415
- package/dist/domains/chem/chem-qualitative-analysis/activity.mjs +0 -95
- package/dist/domains/chem/chem-qualitative-analysis/manifest.mjs +0 -68
- package/dist/domains/chem/chem-qualitative-analysis/runtime.mjs +0 -303
- package/dist/domains/chem/chromatography-plate/activity.mjs +0 -87
- package/dist/domains/chem/chromatography-plate/manifest.mjs +0 -59
- package/dist/domains/chem/chromatography-plate/model.mjs +0 -180
- package/dist/domains/chem/chromatography-plate/runtime.mjs +0 -200
- package/dist/domains/chem/chromatography-plate/scene.mjs +0 -292
- package/dist/domains/chem/complex-colour/activity.mjs +0 -94
- package/dist/domains/chem/complex-colour/manifest.mjs +0 -53
- package/dist/domains/chem/complex-colour/model.mjs +0 -243
- package/dist/domains/chem/complex-colour/runtime.mjs +0 -168
- package/dist/domains/chem/complex-colour/scene.mjs +0 -283
- package/dist/domains/chem/complex-shape/activity.mjs +0 -86
- package/dist/domains/chem/complex-shape/manifest.mjs +0 -52
- package/dist/domains/chem/complex-shape/model.mjs +0 -182
- package/dist/domains/chem/complex-shape/runtime.mjs +0 -162
- package/dist/domains/chem/complex-shape/scene.mjs +0 -270
- package/dist/domains/chem/composition-evidence/activity.mjs +0 -94
- package/dist/domains/chem/composition-evidence/manifest.mjs +0 -71
- package/dist/domains/chem/composition-evidence/model.mjs +0 -60
- package/dist/domains/chem/composition-evidence/runtime.mjs +0 -127
- package/dist/domains/chem/composition-evidence/scene.mjs +0 -308
- package/dist/domains/chem/conductivity-bench/activity.mjs +0 -71
- package/dist/domains/chem/conductivity-bench/manifest.mjs +0 -58
- package/dist/domains/chem/conductivity-bench/model.mjs +0 -257
- package/dist/domains/chem/conductivity-bench/runtime.mjs +0 -136
- package/dist/domains/chem/conductivity-bench/scene.mjs +0 -305
- package/dist/domains/chem/contact-process-control/activity.mjs +0 -75
- package/dist/domains/chem/contact-process-control/manifest.mjs +0 -48
- package/dist/domains/chem/contact-process-control/model.mjs +0 -106
- package/dist/domains/chem/contact-process-control/runtime.mjs +0 -65
- package/dist/domains/chem/contact-process-control/scene.mjs +0 -694
- package/dist/domains/chem/crystal-lattice/activity.mjs +0 -3
- package/dist/domains/chem/crystal-lattice/manifest.mjs +0 -68
- package/dist/domains/chem/crystal-lattice/runtime.mjs +0 -20
- package/dist/domains/chem/dilution/manifest.mjs +0 -57
- package/dist/domains/chem/dilution/runtime.mjs +0 -5
- package/dist/domains/chem/electrochem/manifest.mjs +0 -72
- package/dist/domains/chem/electrochem/runtime.mjs +0 -5
- package/dist/domains/chem/electrolysis-bench/activity.mjs +0 -72
- package/dist/domains/chem/electrolysis-bench/manifest.mjs +0 -71
- package/dist/domains/chem/electrolysis-bench/model.mjs +0 -174
- package/dist/domains/chem/electrolysis-bench/runtime.mjs +0 -169
- package/dist/domains/chem/electrolysis-bench/scene.mjs +0 -291
- package/dist/domains/chem/energy-cycle/activity.mjs +0 -86
- package/dist/domains/chem/energy-cycle/manifest.mjs +0 -52
- package/dist/domains/chem/energy-cycle/model.mjs +0 -249
- package/dist/domains/chem/energy-cycle/runtime.mjs +0 -181
- package/dist/domains/chem/energy-cycle/scene.mjs +0 -277
- package/dist/domains/chem/equation-conservation-desk/activity.mjs +0 -55
- package/dist/domains/chem/equation-conservation-desk/manifest.mjs +0 -61
- package/dist/domains/chem/equation-conservation-desk/runtime.mjs +0 -6
- package/dist/domains/chem/faraday-bench/activity.mjs +0 -51
- package/dist/domains/chem/faraday-bench/manifest.mjs +0 -65
- package/dist/domains/chem/faraday-bench/model.mjs +0 -193
- package/dist/domains/chem/faraday-bench/runtime.mjs +0 -99
- package/dist/domains/chem/faraday-bench/scene.mjs +0 -254
- package/dist/domains/chem/flame-test/activity.mjs +0 -66
- package/dist/domains/chem/flame-test/manifest.mjs +0 -66
- package/dist/domains/chem/flame-test/model.mjs +0 -149
- package/dist/domains/chem/flame-test/runtime.mjs +0 -120
- package/dist/domains/chem/flame-test/scene.mjs +0 -172
- package/dist/domains/chem/formula-forge/activity.mjs +0 -55
- package/dist/domains/chem/formula-forge/manifest.mjs +0 -66
- package/dist/domains/chem/formula-forge/runtime.mjs +0 -6
- package/dist/domains/chem/formula-workbench/activity.mjs +0 -92
- package/dist/domains/chem/formula-workbench/manifest.mjs +0 -73
- package/dist/domains/chem/formula-workbench/model.mjs +0 -89
- package/dist/domains/chem/formula-workbench/runtime.mjs +0 -135
- package/dist/domains/chem/formula-workbench/scene.mjs +0 -275
- package/dist/domains/chem/fuel-cell-flow/activity.mjs +0 -81
- package/dist/domains/chem/fuel-cell-flow/manifest.mjs +0 -49
- package/dist/domains/chem/fuel-cell-flow/model.mjs +0 -63
- package/dist/domains/chem/fuel-cell-flow/runtime.mjs +0 -134
- package/dist/domains/chem/fuel-cell-flow/scene.mjs +0 -245
- package/dist/domains/chem/functional-group-lens/activity.mjs +0 -86
- package/dist/domains/chem/functional-group-lens/manifest.mjs +0 -54
- package/dist/domains/chem/functional-group-lens/model.d.mts +0 -128
- package/dist/domains/chem/functional-group-lens/model.mjs +0 -250
- package/dist/domains/chem/functional-group-lens/runtime.d.mts +0 -16
- package/dist/domains/chem/functional-group-lens/runtime.mjs +0 -135
- package/dist/domains/chem/functional-group-lens/scene.d.mts +0 -8
- package/dist/domains/chem/functional-group-lens/scene.mjs +0 -389
- package/dist/domains/chem/gas-box/manifest.mjs +0 -79
- package/dist/domains/chem/gas-box/runtime.mjs +0 -5
- package/dist/domains/chem/hydrate-cycle/activity.mjs +0 -78
- package/dist/domains/chem/hydrate-cycle/manifest.mjs +0 -47
- package/dist/domains/chem/hydrate-cycle/model.mjs +0 -66
- package/dist/domains/chem/hydrate-cycle/runtime.mjs +0 -72
- package/dist/domains/chem/hydrate-cycle/scene.mjs +0 -187
- package/dist/domains/chem/industrial-process/manifest.mjs +0 -51
- package/dist/domains/chem/industrial-process/runtime.mjs +0 -5
- package/dist/domains/chem/ionic-bond-builder/manifest.mjs +0 -47
- package/dist/domains/chem/ionic-bond-builder/runtime.mjs +0 -5
- package/dist/domains/chem/isomer-builder/activity.mjs +0 -86
- package/dist/domains/chem/isomer-builder/manifest.mjs +0 -52
- package/dist/domains/chem/isomer-builder/model.mjs +0 -345
- package/dist/domains/chem/isomer-builder/runtime.mjs +0 -174
- package/dist/domains/chem/isomer-builder/scene.mjs +0 -216
- package/dist/domains/chem/kinetics/manifest.mjs +0 -59
- package/dist/domains/chem/kinetics/runtime.mjs +0 -5
- package/dist/domains/chem/le-chatelier/manifest.mjs +0 -57
- package/dist/domains/chem/le-chatelier/runtime.mjs +0 -5
- package/dist/domains/chem/mechanism-walk/activity.mjs +0 -53
- package/dist/domains/chem/mechanism-walk/manifest.mjs +0 -53
- package/dist/domains/chem/mechanism-walk/model.mjs +0 -429
- package/dist/domains/chem/mechanism-walk/runtime.mjs +0 -76
- package/dist/domains/chem/mechanism-walk/scene.mjs +0 -36
- package/dist/domains/chem/mole-factory/activity.mjs +0 -55
- package/dist/domains/chem/mole-factory/manifest.mjs +0 -62
- package/dist/domains/chem/mole-factory/runtime.mjs +0 -6
- package/dist/domains/chem/molecular-geometry/activity.mjs +0 -3
- package/dist/domains/chem/molecular-geometry/manifest.mjs +0 -74
- package/dist/domains/chem/molecular-geometry/runtime.mjs +0 -22
- package/dist/domains/chem/nmr-reader/activity.mjs +0 -88
- package/dist/domains/chem/nmr-reader/manifest.mjs +0 -59
- package/dist/domains/chem/nmr-reader/model.mjs +0 -200
- package/dist/domains/chem/nmr-reader/runtime.mjs +0 -167
- package/dist/domains/chem/nmr-reader/scene.mjs +0 -30
- package/dist/domains/chem/orbital-diagram/activity.mjs +0 -74
- package/dist/domains/chem/orbital-diagram/manifest.mjs +0 -58
- package/dist/domains/chem/orbital-diagram/model.mjs +0 -182
- package/dist/domains/chem/orbital-diagram/runtime.mjs +0 -98
- package/dist/domains/chem/orbital-diagram/scene.mjs +0 -289
- package/dist/domains/chem/orbital-overlap/activity.mjs +0 -3
- package/dist/domains/chem/orbital-overlap/manifest.mjs +0 -60
- package/dist/domains/chem/orbital-overlap/runtime.mjs +0 -18
- package/dist/domains/chem/organic-formula-studio/activity.mjs +0 -128
- package/dist/domains/chem/organic-formula-studio/manifest.mjs +0 -67
- package/dist/domains/chem/organic-formula-studio/model.mjs +0 -47
- package/dist/domains/chem/organic-formula-studio/pattern-scene.mjs +0 -344
- package/dist/domains/chem/organic-formula-studio/runtime.mjs +0 -221
- package/dist/domains/chem/organic-formula-studio/scene.mjs +0 -354
- package/dist/domains/chem/organic-formula-studio/topics.mjs +0 -186
- package/dist/domains/chem/organic-reaction-map/manifest.mjs +0 -67
- package/dist/domains/chem/organic-reaction-map/runtime.mjs +0 -5
- package/dist/domains/chem/particle-theatre/manifest.mjs +0 -66
- package/dist/domains/chem/particle-theatre/runtime.mjs +0 -5
- package/dist/domains/chem/percent-lens/activity.mjs +0 -119
- package/dist/domains/chem/percent-lens/manifest.mjs +0 -65
- package/dist/domains/chem/percent-lens/model.mjs +0 -84
- package/dist/domains/chem/percent-lens/runtime.mjs +0 -114
- package/dist/domains/chem/percent-lens/scene.mjs +0 -278
- package/dist/domains/chem/percentage-purity-lab/activity.mjs +0 -85
- package/dist/domains/chem/percentage-purity-lab/manifest.mjs +0 -51
- package/dist/domains/chem/percentage-purity-lab/model.mjs +0 -101
- package/dist/domains/chem/percentage-purity-lab/runtime.mjs +0 -146
- package/dist/domains/chem/percentage-purity-lab/scene.mjs +0 -309
- package/dist/domains/chem/percentage-yield-lab/activity.mjs +0 -54
- package/dist/domains/chem/percentage-yield-lab/manifest.mjs +0 -60
- package/dist/domains/chem/percentage-yield-lab/model.mjs +0 -96
- package/dist/domains/chem/percentage-yield-lab/runtime.mjs +0 -124
- package/dist/domains/chem/percentage-yield-lab/scene.mjs +0 -152
- package/dist/domains/chem/periodic-trends/manifest.mjs +0 -60
- package/dist/domains/chem/periodic-trends/runtime.mjs +0 -5
- package/dist/domains/chem/polymer-builder/activity.mjs +0 -88
- package/dist/domains/chem/polymer-builder/manifest.mjs +0 -63
- package/dist/domains/chem/polymer-builder/model.mjs +0 -200
- package/dist/domains/chem/polymer-builder/runtime.mjs +0 -175
- package/dist/domains/chem/polymer-builder/scene.mjs +0 -170
- package/dist/domains/chem/practical-observation/activity.mjs +0 -66
- package/dist/domains/chem/practical-observation/manifest.mjs +0 -50
- package/dist/domains/chem/practical-observation/model.mjs +0 -487
- package/dist/domains/chem/practical-observation/runtime.mjs +0 -113
- package/dist/domains/chem/practical-observation/scene.mjs +0 -662
- package/dist/domains/chem/precipitation-bench/activity.mjs +0 -65
- package/dist/domains/chem/precipitation-bench/manifest.mjs +0 -61
- package/dist/domains/chem/precipitation-bench/model.mjs +0 -119
- package/dist/domains/chem/precipitation-bench/runtime.mjs +0 -90
- package/dist/domains/chem/precipitation-bench/scene.mjs +0 -215
- package/dist/domains/chem/quantity-route/manifest.mjs +0 -133
- package/dist/domains/chem/quantity-route/runtime.mjs +0 -5
- package/dist/domains/chem/ratio-normalizer/manifest.mjs +0 -61
- package/dist/domains/chem/ratio-normalizer/runtime.mjs +0 -5
- package/dist/domains/chem/reaction-evidence/manifest.mjs +0 -51
- package/dist/domains/chem/reaction-evidence/runtime.mjs +0 -5
- package/dist/domains/chem/reaction-lab/manifest.mjs +0 -56
- package/dist/domains/chem/reaction-lab/runtime.mjs +0 -18
- package/dist/domains/chem/reaction-profile/manifest.mjs +0 -57
- package/dist/domains/chem/reaction-profile/runtime.mjs +0 -17
- package/dist/domains/chem/reagent-ladder/activity.mjs +0 -85
- package/dist/domains/chem/reagent-ladder/manifest.mjs +0 -58
- package/dist/domains/chem/reagent-ladder/model.mjs +0 -120
- package/dist/domains/chem/reagent-ladder/runtime.mjs +0 -107
- package/dist/domains/chem/reagent-ladder/scene.mjs +0 -174
- package/dist/domains/chem/redox-balancer/activity.mjs +0 -86
- package/dist/domains/chem/redox-balancer/manifest.mjs +0 -52
- package/dist/domains/chem/redox-balancer/model.mjs +0 -191
- package/dist/domains/chem/redox-balancer/runtime.mjs +0 -175
- package/dist/domains/chem/redox-balancer/scene.mjs +0 -159
- package/dist/domains/chem/relation-origin/activity.mjs +0 -42
- package/dist/domains/chem/relation-origin/manifest.mjs +0 -61
- package/dist/domains/chem/relation-origin/model.mjs +0 -172
- package/dist/domains/chem/relation-origin/runtime.mjs +0 -114
- package/dist/domains/chem/relation-origin/scene.mjs +0 -195
- package/dist/domains/chem/solubility-kitchen/activity.mjs +0 -54
- package/dist/domains/chem/solubility-kitchen/manifest.mjs +0 -66
- package/dist/domains/chem/solubility-kitchen/runtime.mjs +0 -6
- package/dist/domains/chem/soluble-salt-workshop/activity.mjs +0 -115
- package/dist/domains/chem/soluble-salt-workshop/manifest.mjs +0 -50
- package/dist/domains/chem/soluble-salt-workshop/model.mjs +0 -187
- package/dist/domains/chem/soluble-salt-workshop/runtime.mjs +0 -118
- package/dist/domains/chem/soluble-salt-workshop/scene.mjs +0 -700
- package/dist/domains/chem/solution-box/manifest.mjs +0 -57
- package/dist/domains/chem/solution-box/runtime.mjs +0 -5
- package/dist/domains/chem/solution-mixer/activity.mjs +0 -54
- package/dist/domains/chem/solution-mixer/manifest.mjs +0 -58
- package/dist/domains/chem/solution-mixer/runtime.mjs +0 -6
- package/dist/domains/chem/species-workshop/activity.mjs +0 -55
- package/dist/domains/chem/species-workshop/manifest.mjs +0 -66
- package/dist/domains/chem/species-workshop/runtime.mjs +0 -6
- package/dist/domains/chem/specimen-row/activity.mjs +0 -70
- package/dist/domains/chem/specimen-row/manifest.mjs +0 -57
- package/dist/domains/chem/specimen-row/model.mjs +0 -122
- package/dist/domains/chem/specimen-row/runtime.mjs +0 -105
- package/dist/domains/chem/specimen-row/scene.mjs +0 -230
- package/dist/domains/chem/spectrum-reader/activity.mjs +0 -36
- package/dist/domains/chem/spectrum-reader/manifest.mjs +0 -47
- package/dist/domains/chem/spectrum-reader/model.mjs +0 -244
- package/dist/domains/chem/spectrum-reader/runtime.mjs +0 -62
- package/dist/domains/chem/spectrum-reader/scene.mjs +0 -37
- package/dist/domains/chem/stereochemistry/activity.mjs +0 -3
- package/dist/domains/chem/stereochemistry/manifest.mjs +0 -65
- package/dist/domains/chem/stereochemistry/runtime.mjs +0 -21
- package/dist/domains/chem/stoichiometry/manifest.mjs +0 -61
- package/dist/domains/chem/stoichiometry/runtime.mjs +0 -5
- package/dist/domains/chem/structure-detective/activity.mjs +0 -67
- package/dist/domains/chem/structure-detective/manifest.mjs +0 -59
- package/dist/domains/chem/structure-detective/runtime.mjs +0 -6
- package/dist/domains/chem/synthesis-route/activity.mjs +0 -36
- package/dist/domains/chem/synthesis-route/manifest.mjs +0 -45
- package/dist/domains/chem/synthesis-route/model.mjs +0 -165
- package/dist/domains/chem/synthesis-route/runtime.mjs +0 -67
- package/dist/domains/chem/synthesis-route/scene.mjs +0 -152
- package/dist/domains/chem/titration/manifest.mjs +0 -62
- package/dist/domains/chem/titration/runtime.mjs +0 -5
- package/dist/domains/chem/titration-run/activity.mjs +0 -54
- package/dist/domains/chem/titration-run/manifest.mjs +0 -61
- package/dist/domains/chem/titration-run/model.mjs +0 -174
- package/dist/domains/chem/titration-run/runtime.mjs +0 -113
- package/dist/domains/chem/titration-run/scene.mjs +0 -166
- package/dist/domains/chem/trend-axis/activity.mjs +0 -52
- package/dist/domains/chem/trend-axis/manifest.mjs +0 -57
- package/dist/domains/chem/trend-axis/model.mjs +0 -487
- package/dist/domains/chem/trend-axis/runtime.mjs +0 -87
- package/dist/domains/chem/trend-axis/scene.mjs +0 -246
- package/dist/domains/physics/magnetic-field-mission/activity.mjs +0 -120
- package/dist/domains/physics/magnetic-field-mission/manifest.mjs +0 -73
- package/dist/domains/physics/magnetic-field-mission/palette.mjs +0 -40
- package/dist/domains/physics/magnetic-field-mission/runtime.mjs +0 -547
- package/dist/domains/physics/projectile-lab/core/formulas.mjs +0 -26
- package/dist/domains/physics/space-evidence-mission/activity.mjs +0 -148
- package/dist/domains/physics/space-evidence-mission/manifest.mjs +0 -88
- package/dist/domains/physics/space-evidence-mission/runtime.mjs +0 -624
- package/dist/kit/guide.d.mts +0 -41
- package/dist/kit/guide.mjs +0 -53
- package/dist/kit/steps.d.mts +0 -22
- package/dist/kit/steps.mjs +0 -57
- package/dist/math/circle/preset.d.mts +0 -30
- package/dist/math/circle/preset.mjs +0 -216
- package/dist/math/straight-line/preset.d.mts +0 -36
- package/dist/math/straight-line/preset.mjs +0 -420
- package/dist/physics/astronomy/core.d.mts +0 -111
- package/dist/physics/astronomy/core.mjs +0 -147
- package/dist/physics/circular-motion/model.mjs +0 -46
- package/dist/physics/collision-track/model.mjs +0 -62
- package/dist/physics/investigation/space.mjs +0 -191
- package/dist/physics/modern/imaging/pet-core.d.mts +0 -296
- package/dist/physics/modern/imaging/pet-core.mjs +0 -389
- package/dist/physics/orbital/core.d.mts +0 -69
- package/dist/physics/orbital/core.mjs +0 -93
- package/dist/physics/ultrasound/core.d.mts +0 -221
- package/dist/physics/ultrasound/core.mjs +0 -235
- package/styles/commerce.css +0 -826
- package/styles/domains/parts/chemistry.css +0 -1698
- package/styles/domains/parts/math-4.css +0 -75
- package/styles/domains/parts/physics-1.css +0 -483
- package/styles/domains/parts/physics-2.css +0 -664
- package/styles/domains/parts/physics-3.css +0 -433
- package/styles/exam.css +0 -206
- /package/dist/math/{circle → coordinate-geometry/circle}/index.d.mts +0 -0
- /package/dist/math/{straight-line → coordinate-geometry/straight-line}/index.d.mts +0 -0
|
@@ -0,0 +1,1702 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { Figure, HUE, STROKE, alpha, shade, tint } from "../../kit/figure/figure.mjs";
|
|
4
|
+
import { GAUGE } from "../../kit/figure/gauge.mjs";
|
|
5
|
+
import { FigText } from "../../kit/figure/text.mjs";
|
|
6
|
+
import { Arrow } from "../../kit/figure/beam.mjs";
|
|
7
|
+
import { rich, richHtml } from "../rich.mjs";
|
|
8
|
+
import { DEFAULT_SIZE, barEnds, blocked, chargeForce, chargeOrbit, coilCentreField, conductorForce, dirVec, facing, fieldDirAt, hallFace, inducedPoles, magnetGeometry, orbitPolyline, pageDir, railsCurrent, regionAt, sceneCurrents, solenoidNorth, textBox, traceSceneLines, wireRingTopDir } from "./core.mjs";
|
|
9
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
|
|
11
|
+
//#region src/diagrams/magnetism/MagnetismDiagram.tsx
|
|
12
|
+
const FIELD = HUE[1];
|
|
13
|
+
const CURRENT = HUE.warn;
|
|
14
|
+
const FORCE = HUE.danger;
|
|
15
|
+
const VELOCITY = HUE.good;
|
|
16
|
+
const NORTH = HUE.danger;
|
|
17
|
+
const SOUTH = HUE[1];
|
|
18
|
+
const COPPER = HUE.copper;
|
|
19
|
+
const COPPER_LIT = `color-mix(in oklab, ${HUE.copper} 55%, ${HUE.obsLit})`;
|
|
20
|
+
const COPPER_DARK = `color-mix(in oklab, ${HUE.copper} 55%, ${HUE.obsDark})`;
|
|
21
|
+
const pathOf = (points) => points.map((p, i) => `${i === 0 ? "M" : "L"}${p.x.toFixed(1)} ${p.y.toFixed(1)}`).join(" ");
|
|
22
|
+
const CHIP_POS = `color-mix(in oklab, ${HUE.danger} 78%, ${HUE.obsDark})`;
|
|
23
|
+
const CHIP_NEG = `color-mix(in oklab, ${HUE[1]} 78%, ${HUE.obsDark})`;
|
|
24
|
+
function ChargeChip({ x, y, sign, r = 5.5 }) {
|
|
25
|
+
const d = r * .55;
|
|
26
|
+
return /* @__PURE__ */ jsxs("g", { children: [/* @__PURE__ */ jsx("circle", {
|
|
27
|
+
cx: x,
|
|
28
|
+
cy: y,
|
|
29
|
+
r,
|
|
30
|
+
fill: sign === "+" ? CHIP_POS : CHIP_NEG
|
|
31
|
+
}), /* @__PURE__ */ jsx("path", {
|
|
32
|
+
d: sign === "+" ? `M${x - d} ${y} H${x + d} M${x} ${y - d} V${y + d}` : `M${x - d} ${y} H${x + d}`,
|
|
33
|
+
stroke: HUE.obsLit,
|
|
34
|
+
strokeWidth: STROKE.line,
|
|
35
|
+
strokeLinecap: "round"
|
|
36
|
+
})] });
|
|
37
|
+
}
|
|
38
|
+
/** A small filled arrowhead at `at`, pointing along `dir` (a page vector). */
|
|
39
|
+
function Head({ at, dir, color, size = 6 }) {
|
|
40
|
+
const len = Math.hypot(dir.x, dir.y) || 1;
|
|
41
|
+
const ux = dir.x / len;
|
|
42
|
+
const uy = dir.y / len;
|
|
43
|
+
const back = {
|
|
44
|
+
x: at.x - ux * size,
|
|
45
|
+
y: at.y - uy * size
|
|
46
|
+
};
|
|
47
|
+
const px = -uy * size * .55;
|
|
48
|
+
const py = ux * size * .55;
|
|
49
|
+
return /* @__PURE__ */ jsx("path", {
|
|
50
|
+
d: `M${at.x} ${at.y} L${back.x + px} ${back.y + py} L${back.x - px} ${back.y - py} Z`,
|
|
51
|
+
fill: color
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
/** ⊙ or ⊗: a vector seen end-on. */
|
|
55
|
+
function EndOn({ x, y, r, sense, color }) {
|
|
56
|
+
const d = r * .55;
|
|
57
|
+
return /* @__PURE__ */ jsxs("g", { children: [/* @__PURE__ */ jsx("circle", {
|
|
58
|
+
cx: x,
|
|
59
|
+
cy: y,
|
|
60
|
+
r,
|
|
61
|
+
fill: HUE.paper,
|
|
62
|
+
stroke: color,
|
|
63
|
+
strokeWidth: STROKE.line
|
|
64
|
+
}), sense === "out" ? /* @__PURE__ */ jsx("circle", {
|
|
65
|
+
cx: x,
|
|
66
|
+
cy: y,
|
|
67
|
+
r: r * .28,
|
|
68
|
+
fill: color
|
|
69
|
+
}) : /* @__PURE__ */ jsx("path", {
|
|
70
|
+
d: `M${x - d} ${y - d} L${x + d} ${y + d} M${x + d} ${y - d} L${x - d} ${y + d}`,
|
|
71
|
+
stroke: color,
|
|
72
|
+
strokeWidth: STROKE.line
|
|
73
|
+
})] });
|
|
74
|
+
}
|
|
75
|
+
/** A vector drawn from a point: an arrow when in the page, a ⊙/⊗ marker when not. */
|
|
76
|
+
function VectorFrom({ at, f, length, color, label }) {
|
|
77
|
+
if (f.kind === "zero") return null;
|
|
78
|
+
if (f.kind === "in" || f.kind === "out") return /* @__PURE__ */ jsxs("g", { children: [/* @__PURE__ */ jsx(EndOn, {
|
|
79
|
+
x: at.x + 16,
|
|
80
|
+
y: at.y - 16,
|
|
81
|
+
r: 7,
|
|
82
|
+
sense: f.kind,
|
|
83
|
+
color
|
|
84
|
+
}), label ? /* @__PURE__ */ jsx(FigText, {
|
|
85
|
+
x: at.x + 28,
|
|
86
|
+
y: at.y - 12,
|
|
87
|
+
size: "label",
|
|
88
|
+
tone: "ink",
|
|
89
|
+
children: label
|
|
90
|
+
}) : null] });
|
|
91
|
+
return /* @__PURE__ */ jsx(Arrow, {
|
|
92
|
+
x1: at.x,
|
|
93
|
+
y1: at.y,
|
|
94
|
+
x2: at.x + f.dir.x * length,
|
|
95
|
+
y2: at.y + f.dir.y * length,
|
|
96
|
+
color,
|
|
97
|
+
weight: "edge",
|
|
98
|
+
label
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
function FieldRegion({ item, obstacles }) {
|
|
102
|
+
const gap = 26;
|
|
103
|
+
const cols = Math.max(1, Math.floor((item.w - 8) / gap));
|
|
104
|
+
const rows = Math.max(1, Math.floor((item.h - 8) / gap));
|
|
105
|
+
const ox = item.x + (item.w - (cols - 1) * gap) / 2;
|
|
106
|
+
const oy = item.y + (item.h - (rows - 1) * gap) / 2;
|
|
107
|
+
const marks = [];
|
|
108
|
+
if (item.dir === "in" || item.dir === "out") for (let i = 0; i < cols; i += 1) for (let j = 0; j < rows; j += 1) {
|
|
109
|
+
const x = ox + i * gap;
|
|
110
|
+
const y = oy + j * gap;
|
|
111
|
+
if (blocked({
|
|
112
|
+
x,
|
|
113
|
+
y
|
|
114
|
+
}, obstacles)) continue;
|
|
115
|
+
marks.push(item.dir === "in" ? /* @__PURE__ */ jsx("path", {
|
|
116
|
+
d: `M${x - 3.6} ${y - 3.6} L${x + 3.6} ${y + 3.6} M${x + 3.6} ${y - 3.6} L${x - 3.6} ${y + 3.6}`,
|
|
117
|
+
stroke: alpha(FIELD, 70),
|
|
118
|
+
strokeWidth: STROKE.line
|
|
119
|
+
}, `${i}-${j}`) : /* @__PURE__ */ jsx("circle", {
|
|
120
|
+
cx: x,
|
|
121
|
+
cy: y,
|
|
122
|
+
r: 2.4,
|
|
123
|
+
fill: alpha(FIELD, 75)
|
|
124
|
+
}, `${i}-${j}`));
|
|
125
|
+
}
|
|
126
|
+
else {
|
|
127
|
+
const d = pageDir(dirVec(item.dir));
|
|
128
|
+
const horizontal = Math.abs(d.x) > .5;
|
|
129
|
+
const count = horizontal ? rows : cols;
|
|
130
|
+
for (let k = 0; k < count; k += 1) {
|
|
131
|
+
const a = horizontal ? {
|
|
132
|
+
x: item.x + 8,
|
|
133
|
+
y: oy + k * gap
|
|
134
|
+
} : {
|
|
135
|
+
x: ox + k * gap,
|
|
136
|
+
y: item.y + 8
|
|
137
|
+
};
|
|
138
|
+
const b = horizontal ? {
|
|
139
|
+
x: item.x + item.w - 8,
|
|
140
|
+
y: oy + k * gap
|
|
141
|
+
} : {
|
|
142
|
+
x: ox + k * gap,
|
|
143
|
+
y: item.y + item.h - 8
|
|
144
|
+
};
|
|
145
|
+
const [from, to] = (horizontal ? d.x > 0 : d.y > 0) ? [a, b] : [b, a];
|
|
146
|
+
const runs = [];
|
|
147
|
+
const steps = Math.max(2, Math.round(Math.hypot(to.x - from.x, to.y - from.y) / 2));
|
|
148
|
+
let start = null;
|
|
149
|
+
let last = null;
|
|
150
|
+
for (let t = 0; t <= steps; t += 1) {
|
|
151
|
+
const p = {
|
|
152
|
+
x: from.x + (to.x - from.x) * t / steps,
|
|
153
|
+
y: from.y + (to.y - from.y) * t / steps
|
|
154
|
+
};
|
|
155
|
+
if (blocked(p, obstacles, 3)) {
|
|
156
|
+
if (start && last) runs.push([start, last]);
|
|
157
|
+
start = null;
|
|
158
|
+
} else {
|
|
159
|
+
start ??= p;
|
|
160
|
+
last = p;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
if (start && last) runs.push([start, last]);
|
|
164
|
+
const kept = runs.filter(([p, q]) => Math.hypot(q.x - p.x, q.y - p.y) > 14);
|
|
165
|
+
const longest = kept.reduce((best, r) => !best || Math.hypot(r[1].x - r[0].x, r[1].y - r[0].y) > Math.hypot(best[1].x - best[0].x, best[1].y - best[0].y) ? r : best, null);
|
|
166
|
+
marks.push(/* @__PURE__ */ jsxs("g", { children: [kept.map(([p, q], n) => /* @__PURE__ */ jsx("line", {
|
|
167
|
+
x1: p.x,
|
|
168
|
+
y1: p.y,
|
|
169
|
+
x2: q.x,
|
|
170
|
+
y2: q.y,
|
|
171
|
+
stroke: alpha(FIELD, 60),
|
|
172
|
+
strokeWidth: STROKE.line
|
|
173
|
+
}, n)), longest ? /* @__PURE__ */ jsx(Head, {
|
|
174
|
+
at: {
|
|
175
|
+
x: (longest[0].x + longest[1].x) / 2 + d.x * 4,
|
|
176
|
+
y: (longest[0].y + longest[1].y) / 2 + d.y * 4
|
|
177
|
+
},
|
|
178
|
+
dir: d,
|
|
179
|
+
color: alpha(FIELD, 80)
|
|
180
|
+
}) : null] }, k));
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
return /* @__PURE__ */ jsxs("g", { children: [
|
|
184
|
+
/* @__PURE__ */ jsx("rect", {
|
|
185
|
+
x: item.x,
|
|
186
|
+
y: item.y,
|
|
187
|
+
width: item.w,
|
|
188
|
+
height: item.h,
|
|
189
|
+
rx: 6,
|
|
190
|
+
fill: alpha(FIELD, 6),
|
|
191
|
+
stroke: alpha(FIELD, 30),
|
|
192
|
+
strokeWidth: STROKE.hair,
|
|
193
|
+
strokeDasharray: "4 3"
|
|
194
|
+
}),
|
|
195
|
+
marks,
|
|
196
|
+
item.label ? /* @__PURE__ */ jsx(FigText, {
|
|
197
|
+
x: item.x + item.w - 6,
|
|
198
|
+
y: item.y + 14,
|
|
199
|
+
size: "label",
|
|
200
|
+
tone: "hue-1",
|
|
201
|
+
anchor: "end",
|
|
202
|
+
children: rich(item.label)
|
|
203
|
+
}) : null
|
|
204
|
+
] });
|
|
205
|
+
}
|
|
206
|
+
function Wire({ item }) {
|
|
207
|
+
const rings = Math.max(0, Math.min(3, item.rings ?? 0));
|
|
208
|
+
const topDir = wireRingTopDir(item.current);
|
|
209
|
+
return /* @__PURE__ */ jsxs("g", { children: [
|
|
210
|
+
Array.from({ length: rings }, (_, k) => {
|
|
211
|
+
const r = 22 + k * 15;
|
|
212
|
+
return /* @__PURE__ */ jsxs("g", { children: [/* @__PURE__ */ jsx("circle", {
|
|
213
|
+
cx: item.x,
|
|
214
|
+
cy: item.y,
|
|
215
|
+
r,
|
|
216
|
+
fill: "none",
|
|
217
|
+
stroke: alpha(FIELD, 65),
|
|
218
|
+
strokeWidth: STROKE.line
|
|
219
|
+
}), /* @__PURE__ */ jsx(Head, {
|
|
220
|
+
at: {
|
|
221
|
+
x: item.x + topDir.x * 3,
|
|
222
|
+
y: item.y - r
|
|
223
|
+
},
|
|
224
|
+
dir: topDir,
|
|
225
|
+
color: FIELD
|
|
226
|
+
})] }, k);
|
|
227
|
+
}),
|
|
228
|
+
/* @__PURE__ */ jsx("circle", {
|
|
229
|
+
cx: item.x,
|
|
230
|
+
cy: item.y,
|
|
231
|
+
r: 10,
|
|
232
|
+
fill: COPPER_LIT,
|
|
233
|
+
stroke: COPPER_DARK,
|
|
234
|
+
strokeWidth: STROKE.line
|
|
235
|
+
}),
|
|
236
|
+
item.current === "out" ? /* @__PURE__ */ jsx("circle", {
|
|
237
|
+
cx: item.x,
|
|
238
|
+
cy: item.y,
|
|
239
|
+
r: 3,
|
|
240
|
+
fill: COPPER_DARK
|
|
241
|
+
}) : /* @__PURE__ */ jsx("path", {
|
|
242
|
+
d: `M${item.x - 5} ${item.y - 5} L${item.x + 5} ${item.y + 5} M${item.x + 5} ${item.y - 5} L${item.x - 5} ${item.y + 5}`,
|
|
243
|
+
stroke: COPPER_DARK,
|
|
244
|
+
strokeWidth: STROKE.edge
|
|
245
|
+
}),
|
|
246
|
+
item.label ? /* @__PURE__ */ jsx(FigText, {
|
|
247
|
+
x: item.x,
|
|
248
|
+
y: item.y + 26 + (rings ? rings * 15 : 0),
|
|
249
|
+
size: "label",
|
|
250
|
+
anchor: "middle",
|
|
251
|
+
children: rich(item.label)
|
|
252
|
+
}) : null
|
|
253
|
+
] });
|
|
254
|
+
}
|
|
255
|
+
function Conductor({ item, items }) {
|
|
256
|
+
const mid = {
|
|
257
|
+
x: (item.x1 + item.x2) / 2,
|
|
258
|
+
y: (item.y1 + item.y2) / 2
|
|
259
|
+
};
|
|
260
|
+
const len = Math.hypot(item.x2 - item.x1, item.y2 - item.y1) || 1;
|
|
261
|
+
const along = {
|
|
262
|
+
x: (item.x2 - item.x1) / len,
|
|
263
|
+
y: (item.y2 - item.y1) / len
|
|
264
|
+
};
|
|
265
|
+
const f = item.force ? facing(conductorForce(item, items)) : null;
|
|
266
|
+
return /* @__PURE__ */ jsxs("g", { children: [
|
|
267
|
+
/* @__PURE__ */ jsx("line", {
|
|
268
|
+
x1: item.x1,
|
|
269
|
+
y1: item.y1,
|
|
270
|
+
x2: item.x2,
|
|
271
|
+
y2: item.y2,
|
|
272
|
+
stroke: COPPER_DARK,
|
|
273
|
+
strokeWidth: GAUGE.block,
|
|
274
|
+
strokeLinecap: "round"
|
|
275
|
+
}),
|
|
276
|
+
/* @__PURE__ */ jsx("line", {
|
|
277
|
+
x1: item.x1,
|
|
278
|
+
y1: item.y1,
|
|
279
|
+
x2: item.x2,
|
|
280
|
+
y2: item.y2,
|
|
281
|
+
stroke: COPPER_LIT,
|
|
282
|
+
strokeWidth: GAUGE.cable,
|
|
283
|
+
strokeLinecap: "round"
|
|
284
|
+
}),
|
|
285
|
+
item.currentArrow !== false ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Head, {
|
|
286
|
+
at: {
|
|
287
|
+
x: mid.x + along.x * 22,
|
|
288
|
+
y: mid.y + along.y * 22
|
|
289
|
+
},
|
|
290
|
+
dir: along,
|
|
291
|
+
color: CURRENT,
|
|
292
|
+
size: 9
|
|
293
|
+
}), /* @__PURE__ */ jsx(FigText, {
|
|
294
|
+
x: mid.x + along.x * 22 - along.y * 14,
|
|
295
|
+
y: mid.y + along.y * 22 + along.x * 14 + 4,
|
|
296
|
+
size: "label",
|
|
297
|
+
anchor: "middle",
|
|
298
|
+
children: "I"
|
|
299
|
+
})] }) : null,
|
|
300
|
+
f && f.kind === "zero" ? /* @__PURE__ */ jsx(FigText, {
|
|
301
|
+
x: mid.x,
|
|
302
|
+
y: mid.y - 14,
|
|
303
|
+
size: "label",
|
|
304
|
+
tone: "soft",
|
|
305
|
+
anchor: "middle",
|
|
306
|
+
children: "F = 0"
|
|
307
|
+
}) : f ? /* @__PURE__ */ jsx(VectorFrom, {
|
|
308
|
+
at: mid,
|
|
309
|
+
f,
|
|
310
|
+
length: 44,
|
|
311
|
+
color: FORCE,
|
|
312
|
+
label: "F"
|
|
313
|
+
}) : null,
|
|
314
|
+
item.label ? /* @__PURE__ */ jsx(FigText, {
|
|
315
|
+
x: item.x2 + along.x * 8,
|
|
316
|
+
y: item.y2 + along.y * 8 + 16,
|
|
317
|
+
size: "label",
|
|
318
|
+
anchor: "middle",
|
|
319
|
+
tone: "soft",
|
|
320
|
+
children: rich(item.label)
|
|
321
|
+
}) : null
|
|
322
|
+
] });
|
|
323
|
+
}
|
|
324
|
+
function Magnet({ item }) {
|
|
325
|
+
const g = magnetGeometry(item);
|
|
326
|
+
const horizontal = Math.abs(g.axis.x) > .5;
|
|
327
|
+
const half = g.half;
|
|
328
|
+
const box = (end, color, letter, key) => {
|
|
329
|
+
const cx = (end.x + item.x) / 2;
|
|
330
|
+
const cy = (end.y + item.y) / 2;
|
|
331
|
+
const w = horizontal ? g.length / 2 : half * 2;
|
|
332
|
+
const h = horizontal ? half * 2 : g.length / 2;
|
|
333
|
+
return /* @__PURE__ */ jsxs("g", { children: [/* @__PURE__ */ jsx("rect", {
|
|
334
|
+
x: cx - w / 2,
|
|
335
|
+
y: cy - h / 2,
|
|
336
|
+
width: w,
|
|
337
|
+
height: h,
|
|
338
|
+
fill: tint(color, 40),
|
|
339
|
+
stroke: shade(color, 60),
|
|
340
|
+
strokeWidth: STROKE.line
|
|
341
|
+
}), /* @__PURE__ */ jsx(FigText, {
|
|
342
|
+
x: end.x + (item.x - end.x) / (g.length / 2) * 12,
|
|
343
|
+
y: end.y + (item.y - end.y) / (g.length / 2) * 12,
|
|
344
|
+
size: "label",
|
|
345
|
+
anchor: "middle",
|
|
346
|
+
baseline: "middle",
|
|
347
|
+
halo: false,
|
|
348
|
+
children: letter
|
|
349
|
+
})] }, key);
|
|
350
|
+
};
|
|
351
|
+
return /* @__PURE__ */ jsxs("g", { children: [box(g.north, NORTH, "N", "n"), box(g.south, SOUTH, "S", "s")] });
|
|
352
|
+
}
|
|
353
|
+
function Coil({ item, items }) {
|
|
354
|
+
if (item.view === "face") {
|
|
355
|
+
const sense = item.current;
|
|
356
|
+
const top = sense === "ccw" ? {
|
|
357
|
+
x: -1,
|
|
358
|
+
y: 0
|
|
359
|
+
} : {
|
|
360
|
+
x: 1,
|
|
361
|
+
y: 0
|
|
362
|
+
};
|
|
363
|
+
return /* @__PURE__ */ jsxs("g", { children: [
|
|
364
|
+
/* @__PURE__ */ jsx("circle", {
|
|
365
|
+
cx: item.x,
|
|
366
|
+
cy: item.y,
|
|
367
|
+
r: item.r,
|
|
368
|
+
fill: "none",
|
|
369
|
+
stroke: COPPER_DARK,
|
|
370
|
+
strokeWidth: GAUGE.cable
|
|
371
|
+
}),
|
|
372
|
+
/* @__PURE__ */ jsx("circle", {
|
|
373
|
+
cx: item.x,
|
|
374
|
+
cy: item.y,
|
|
375
|
+
r: item.r,
|
|
376
|
+
fill: "none",
|
|
377
|
+
stroke: COPPER_LIT,
|
|
378
|
+
strokeWidth: GAUGE.lead
|
|
379
|
+
}),
|
|
380
|
+
sense ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Head, {
|
|
381
|
+
at: {
|
|
382
|
+
x: item.x + top.x * 5,
|
|
383
|
+
y: item.y - item.r
|
|
384
|
+
},
|
|
385
|
+
dir: top,
|
|
386
|
+
color: CURRENT,
|
|
387
|
+
size: 9
|
|
388
|
+
}), /* @__PURE__ */ jsx(Head, {
|
|
389
|
+
at: {
|
|
390
|
+
x: item.x - top.x * 5,
|
|
391
|
+
y: item.y + item.r
|
|
392
|
+
},
|
|
393
|
+
dir: {
|
|
394
|
+
x: -top.x,
|
|
395
|
+
y: 0
|
|
396
|
+
},
|
|
397
|
+
color: CURRENT,
|
|
398
|
+
size: 9
|
|
399
|
+
})] }) : null,
|
|
400
|
+
item.centreField && sense ? /* @__PURE__ */ jsx(EndOn, {
|
|
401
|
+
x: item.x,
|
|
402
|
+
y: item.y,
|
|
403
|
+
r: 8,
|
|
404
|
+
sense: coilCentreField(sense),
|
|
405
|
+
color: FIELD
|
|
406
|
+
}) : null,
|
|
407
|
+
item.label ? /* @__PURE__ */ jsx(FigText, {
|
|
408
|
+
x: item.x,
|
|
409
|
+
y: item.y + item.r + 18,
|
|
410
|
+
size: "label",
|
|
411
|
+
anchor: "middle",
|
|
412
|
+
children: item.label
|
|
413
|
+
}) : null
|
|
414
|
+
] });
|
|
415
|
+
}
|
|
416
|
+
const region = regionAt(items, item);
|
|
417
|
+
const fieldDir = region ? facing(dirVec(region.dir)) : null;
|
|
418
|
+
const base = fieldDir && fieldDir.kind === "plane" ? Math.atan2(-fieldDir.dir.y, fieldDir.dir.x) : 0;
|
|
419
|
+
const theta = (item.normalDeg ?? 30) * Math.PI / 180;
|
|
420
|
+
const nAngle = base + theta;
|
|
421
|
+
const n = {
|
|
422
|
+
x: Math.cos(nAngle),
|
|
423
|
+
y: -Math.sin(nAngle)
|
|
424
|
+
};
|
|
425
|
+
const plane = {
|
|
426
|
+
x: -n.y,
|
|
427
|
+
y: n.x
|
|
428
|
+
};
|
|
429
|
+
const nLen = item.r + 18;
|
|
430
|
+
const arcR = 26;
|
|
431
|
+
const b = {
|
|
432
|
+
x: Math.cos(base),
|
|
433
|
+
y: -Math.sin(base)
|
|
434
|
+
};
|
|
435
|
+
return /* @__PURE__ */ jsxs("g", { children: [
|
|
436
|
+
/* @__PURE__ */ jsx("line", {
|
|
437
|
+
x1: item.x - plane.x * item.r,
|
|
438
|
+
y1: item.y - plane.y * item.r,
|
|
439
|
+
x2: item.x + plane.x * item.r,
|
|
440
|
+
y2: item.y + plane.y * item.r,
|
|
441
|
+
stroke: COPPER_DARK,
|
|
442
|
+
strokeWidth: GAUGE.beam,
|
|
443
|
+
strokeLinecap: "round"
|
|
444
|
+
}),
|
|
445
|
+
/* @__PURE__ */ jsx("line", {
|
|
446
|
+
x1: item.x - plane.x * item.r,
|
|
447
|
+
y1: item.y - plane.y * item.r,
|
|
448
|
+
x2: item.x + plane.x * item.r,
|
|
449
|
+
y2: item.y + plane.y * item.r,
|
|
450
|
+
stroke: COPPER_LIT,
|
|
451
|
+
strokeWidth: GAUGE.rod,
|
|
452
|
+
strokeLinecap: "round"
|
|
453
|
+
}),
|
|
454
|
+
item.normal !== false ? /* @__PURE__ */ jsx(Arrow, {
|
|
455
|
+
x1: item.x,
|
|
456
|
+
y1: item.y,
|
|
457
|
+
x2: item.x + n.x * nLen,
|
|
458
|
+
y2: item.y + n.y * nLen,
|
|
459
|
+
color: HUE.ink,
|
|
460
|
+
dashed: true
|
|
461
|
+
}) : null,
|
|
462
|
+
item.normal !== false ? /* @__PURE__ */ jsx(FigText, {
|
|
463
|
+
x: item.x + n.x * (nLen + 10),
|
|
464
|
+
y: item.y + n.y * (nLen + 10) + 4,
|
|
465
|
+
size: "label",
|
|
466
|
+
anchor: n.x < -.2 ? "end" : n.x > .2 ? "start" : "middle",
|
|
467
|
+
children: "normal"
|
|
468
|
+
}) : null,
|
|
469
|
+
item.theta !== false && fieldDir?.kind === "plane" ? /* @__PURE__ */ jsxs("g", { children: [
|
|
470
|
+
/* @__PURE__ */ jsx("line", {
|
|
471
|
+
x1: item.x,
|
|
472
|
+
y1: item.y,
|
|
473
|
+
x2: item.x + b.x * 40,
|
|
474
|
+
y2: item.y + b.y * 40,
|
|
475
|
+
stroke: alpha(FIELD, 60),
|
|
476
|
+
strokeWidth: STROKE.hair,
|
|
477
|
+
strokeDasharray: "3 3"
|
|
478
|
+
}),
|
|
479
|
+
/* @__PURE__ */ jsx("path", {
|
|
480
|
+
d: `M${item.x + b.x * arcR} ${item.y + b.y * arcR} A${arcR} ${arcR} 0 0 ${theta > 0 ? 0 : 1} ${item.x + n.x * arcR} ${item.y + n.y * arcR}`,
|
|
481
|
+
fill: "none",
|
|
482
|
+
stroke: HUE.ink,
|
|
483
|
+
strokeWidth: STROKE.line
|
|
484
|
+
}),
|
|
485
|
+
/* @__PURE__ */ jsx(FigText, {
|
|
486
|
+
x: item.x + Math.cos(base + theta / 2) * 38,
|
|
487
|
+
y: item.y - Math.sin(base + theta / 2) * 38 + 4,
|
|
488
|
+
size: "label",
|
|
489
|
+
anchor: "middle",
|
|
490
|
+
children: "θ"
|
|
491
|
+
})
|
|
492
|
+
] }) : null,
|
|
493
|
+
item.label ? /* @__PURE__ */ jsx(FigText, {
|
|
494
|
+
x: item.x + plane.x * (item.r + 10),
|
|
495
|
+
y: item.y + plane.y * (item.r + 10) + 14,
|
|
496
|
+
size: "label",
|
|
497
|
+
anchor: "middle",
|
|
498
|
+
tone: "soft",
|
|
499
|
+
children: rich(item.label)
|
|
500
|
+
}) : null
|
|
501
|
+
] });
|
|
502
|
+
}
|
|
503
|
+
function Solenoid({ item }) {
|
|
504
|
+
const turns = Math.max(3, Math.min(12, item.turns ?? 8));
|
|
505
|
+
const r = item.radius ?? 18;
|
|
506
|
+
const pitch = item.length / turns;
|
|
507
|
+
const north = solenoidNorth(item);
|
|
508
|
+
const up = item.current === "up";
|
|
509
|
+
const front = [];
|
|
510
|
+
const back = [];
|
|
511
|
+
for (let k = 0; k < turns; k += 1) {
|
|
512
|
+
const x = item.x - item.length / 2 + pitch * (k + .5);
|
|
513
|
+
const lean = pitch * .35;
|
|
514
|
+
front.push(/* @__PURE__ */ jsx("line", {
|
|
515
|
+
x1: x - lean,
|
|
516
|
+
y1: item.y + r,
|
|
517
|
+
x2: x + lean,
|
|
518
|
+
y2: item.y - r,
|
|
519
|
+
stroke: COPPER_DARK,
|
|
520
|
+
strokeWidth: GAUGE.bar,
|
|
521
|
+
strokeLinecap: "round"
|
|
522
|
+
}, k));
|
|
523
|
+
back.push(/* @__PURE__ */ jsx("line", {
|
|
524
|
+
x1: x + lean,
|
|
525
|
+
y1: item.y - r,
|
|
526
|
+
x2: x + pitch - lean,
|
|
527
|
+
y2: item.y + r,
|
|
528
|
+
stroke: alpha(COPPER, 35),
|
|
529
|
+
strokeWidth: GAUGE.wire,
|
|
530
|
+
strokeLinecap: "round"
|
|
531
|
+
}, k));
|
|
532
|
+
}
|
|
533
|
+
const arrowX = item.x - item.length / 2 + pitch * .5;
|
|
534
|
+
const endX = (side) => side === "left" ? item.x - item.length / 2 - 4 : item.x + item.length / 2 + 4;
|
|
535
|
+
const coreFill = item.core === "steel" ? HUE.device : HUE.deviceSoft;
|
|
536
|
+
return /* @__PURE__ */ jsxs("g", { children: [
|
|
537
|
+
item.core && item.core !== "none" ? /* @__PURE__ */ jsx("g", { children: /* @__PURE__ */ jsx("rect", {
|
|
538
|
+
x: item.x - item.length / 2 - 6,
|
|
539
|
+
y: item.y - r * .55,
|
|
540
|
+
width: item.length + 12,
|
|
541
|
+
height: r * 1.1,
|
|
542
|
+
rx: 2,
|
|
543
|
+
fill: coreFill,
|
|
544
|
+
stroke: HUE.deviceEdge,
|
|
545
|
+
strokeWidth: STROKE.line
|
|
546
|
+
}) }) : null,
|
|
547
|
+
back,
|
|
548
|
+
front,
|
|
549
|
+
/* @__PURE__ */ jsx(Head, {
|
|
550
|
+
at: {
|
|
551
|
+
x: arrowX + (up ? 1 : -1) * pitch * .2,
|
|
552
|
+
y: item.y + (up ? -1 : 1) * r * .55
|
|
553
|
+
},
|
|
554
|
+
dir: {
|
|
555
|
+
x: 0,
|
|
556
|
+
y: up ? -1 : 1
|
|
557
|
+
},
|
|
558
|
+
color: CURRENT,
|
|
559
|
+
size: 9
|
|
560
|
+
}),
|
|
561
|
+
item.poles !== false ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(FigText, {
|
|
562
|
+
x: endX(north),
|
|
563
|
+
y: item.y - r - 8,
|
|
564
|
+
size: "title",
|
|
565
|
+
anchor: "middle",
|
|
566
|
+
tone: "hot",
|
|
567
|
+
children: "N"
|
|
568
|
+
}), /* @__PURE__ */ jsx(FigText, {
|
|
569
|
+
x: endX(north === "left" ? "right" : "left"),
|
|
570
|
+
y: item.y - r - 8,
|
|
571
|
+
size: "title",
|
|
572
|
+
anchor: "middle",
|
|
573
|
+
tone: "hue-1",
|
|
574
|
+
children: "S"
|
|
575
|
+
})] }) : null,
|
|
576
|
+
item.label ? /* @__PURE__ */ jsx(FigText, {
|
|
577
|
+
x: item.x,
|
|
578
|
+
y: item.y + r + 18,
|
|
579
|
+
size: "label",
|
|
580
|
+
anchor: "middle",
|
|
581
|
+
tone: "soft",
|
|
582
|
+
children: rich(item.label)
|
|
583
|
+
}) : null
|
|
584
|
+
] });
|
|
585
|
+
}
|
|
586
|
+
/** Material colours for a plain bar. Pinned where the material is a real, recognisable colour. */
|
|
587
|
+
const BAR_FILL = {
|
|
588
|
+
iron: {
|
|
589
|
+
fill: HUE.deviceSoft,
|
|
590
|
+
edge: HUE.deviceEdge
|
|
591
|
+
},
|
|
592
|
+
steel: {
|
|
593
|
+
fill: HUE.device,
|
|
594
|
+
edge: HUE.deviceEdge
|
|
595
|
+
},
|
|
596
|
+
copper: {
|
|
597
|
+
fill: COPPER_LIT,
|
|
598
|
+
edge: COPPER_DARK
|
|
599
|
+
},
|
|
600
|
+
aluminium: {
|
|
601
|
+
fill: HUE.solidWhite,
|
|
602
|
+
edge: HUE.deviceSoft
|
|
603
|
+
},
|
|
604
|
+
plastic: {
|
|
605
|
+
fill: HUE.solidCream,
|
|
606
|
+
edge: HUE.deviceSoft
|
|
607
|
+
},
|
|
608
|
+
wood: {
|
|
609
|
+
fill: HUE.wood,
|
|
610
|
+
edge: shade(HUE.wood, 60)
|
|
611
|
+
}
|
|
612
|
+
};
|
|
613
|
+
function Bar({ item, items }) {
|
|
614
|
+
const { axis, length } = barEnds(item);
|
|
615
|
+
const thick = 16;
|
|
616
|
+
const w = axis.x ? length : thick;
|
|
617
|
+
const h = axis.x ? thick : length;
|
|
618
|
+
const { fill, edge } = BAR_FILL[item.material];
|
|
619
|
+
const induced = item.poles ? inducedPoles(item, items) : null;
|
|
620
|
+
const letter = (at, text, tone) => /* @__PURE__ */ jsx(FigText, {
|
|
621
|
+
x: at.x + (item.x - at.x) * .22,
|
|
622
|
+
y: at.y + (item.y - at.y) * .22 + 4,
|
|
623
|
+
size: "label",
|
|
624
|
+
anchor: "middle",
|
|
625
|
+
tone,
|
|
626
|
+
children: text
|
|
627
|
+
});
|
|
628
|
+
return /* @__PURE__ */ jsxs("g", { children: [
|
|
629
|
+
/* @__PURE__ */ jsx("rect", {
|
|
630
|
+
x: item.x - w / 2,
|
|
631
|
+
y: item.y - h / 2,
|
|
632
|
+
width: w,
|
|
633
|
+
height: h,
|
|
634
|
+
rx: 3,
|
|
635
|
+
fill,
|
|
636
|
+
stroke: edge,
|
|
637
|
+
strokeWidth: STROKE.line
|
|
638
|
+
}),
|
|
639
|
+
induced ? /* @__PURE__ */ jsxs(Fragment, { children: [letter(induced.north, "N", "hot"), letter(induced.south, "S", "hue-1")] }) : null,
|
|
640
|
+
item.label ? /* @__PURE__ */ jsx(FigText, {
|
|
641
|
+
x: item.x,
|
|
642
|
+
y: axis.x ? item.y + thick / 2 + 16 : item.y + length / 2 + 16,
|
|
643
|
+
size: "label",
|
|
644
|
+
anchor: "middle",
|
|
645
|
+
tone: "soft",
|
|
646
|
+
children: rich(item.label)
|
|
647
|
+
}) : null
|
|
648
|
+
] });
|
|
649
|
+
}
|
|
650
|
+
/**
|
|
651
|
+
* Where a charge's name goes: behind it (where neither v nor its path can be), and on the side AWAY
|
|
652
|
+
* from its force, so "ion" and the "F" beside the force arrow never read as one word.
|
|
653
|
+
*/
|
|
654
|
+
function chargeLabelAt(item, items) {
|
|
655
|
+
const vel = pageDir(dirVec(item.v));
|
|
656
|
+
const f = item.force !== false ? facing(chargeForce(item, items)) : null;
|
|
657
|
+
const forceDown = f?.kind === "plane" ? f.dir.y > .3 : false;
|
|
658
|
+
const horizontal = Math.abs(vel.x) > .5;
|
|
659
|
+
return {
|
|
660
|
+
x: item.x - vel.x * 20,
|
|
661
|
+
y: item.y - vel.y * 20 + (horizontal ? forceDown ? -12 : 24 : 4),
|
|
662
|
+
anchor: vel.x > .5 ? "end" : vel.x < -.5 ? "start" : "middle"
|
|
663
|
+
};
|
|
664
|
+
}
|
|
665
|
+
/** Loops drawn for a winding: more turns, more loops, in proportion to the other winding. */
|
|
666
|
+
function loopsFor(turns, other) {
|
|
667
|
+
const ratio = turns / Math.max(turns, other);
|
|
668
|
+
return Math.max(3, Math.round(3 + ratio * 9));
|
|
669
|
+
}
|
|
670
|
+
function Winding({ x, top, bottom, loops, w }) {
|
|
671
|
+
const pitch = (bottom - top) / loops;
|
|
672
|
+
return /* @__PURE__ */ jsx("g", { children: Array.from({ length: loops }, (_, i) => {
|
|
673
|
+
const y = top + pitch * (i + .5);
|
|
674
|
+
return /* @__PURE__ */ jsxs("g", { children: [/* @__PURE__ */ jsx("ellipse", {
|
|
675
|
+
cx: x,
|
|
676
|
+
cy: y,
|
|
677
|
+
rx: w / 2,
|
|
678
|
+
ry: pitch * .42,
|
|
679
|
+
fill: "none",
|
|
680
|
+
stroke: COPPER_DARK,
|
|
681
|
+
strokeWidth: GAUGE.rod
|
|
682
|
+
}), /* @__PURE__ */ jsx("ellipse", {
|
|
683
|
+
cx: x,
|
|
684
|
+
cy: y,
|
|
685
|
+
rx: w / 2,
|
|
686
|
+
ry: pitch * .42,
|
|
687
|
+
fill: "none",
|
|
688
|
+
stroke: COPPER_LIT,
|
|
689
|
+
strokeWidth: GAUGE.fine
|
|
690
|
+
})] }, i);
|
|
691
|
+
}) });
|
|
692
|
+
}
|
|
693
|
+
function Transformer({ item }) {
|
|
694
|
+
const W = 150;
|
|
695
|
+
const H = 110;
|
|
696
|
+
const limb = 18;
|
|
697
|
+
const left = item.x - W / 2;
|
|
698
|
+
const top = item.y - H / 2;
|
|
699
|
+
const p = loopsFor(item.primaryTurns, item.secondaryTurns);
|
|
700
|
+
const s = loopsFor(item.secondaryTurns, item.primaryTurns);
|
|
701
|
+
const core = HUE.deviceSoft;
|
|
702
|
+
const lead = (x1, x2, y) => /* @__PURE__ */ jsx("line", {
|
|
703
|
+
x1,
|
|
704
|
+
y1: y,
|
|
705
|
+
x2,
|
|
706
|
+
y2: y,
|
|
707
|
+
stroke: COPPER_DARK,
|
|
708
|
+
strokeWidth: GAUGE.lead,
|
|
709
|
+
strokeLinecap: "round"
|
|
710
|
+
});
|
|
711
|
+
const tilde = (x, y) => /* @__PURE__ */ jsx("path", {
|
|
712
|
+
d: `M${x - 7} ${y} q3.5 -6 7 0 t7 0`,
|
|
713
|
+
fill: "none",
|
|
714
|
+
stroke: HUE.ink,
|
|
715
|
+
strokeWidth: STROKE.line
|
|
716
|
+
});
|
|
717
|
+
return /* @__PURE__ */ jsxs("g", { children: [
|
|
718
|
+
/* @__PURE__ */ jsx("rect", {
|
|
719
|
+
x: left,
|
|
720
|
+
y: top,
|
|
721
|
+
width: W,
|
|
722
|
+
height: H,
|
|
723
|
+
rx: 4,
|
|
724
|
+
fill: core,
|
|
725
|
+
stroke: HUE.deviceEdge,
|
|
726
|
+
strokeWidth: STROKE.line
|
|
727
|
+
}),
|
|
728
|
+
/* @__PURE__ */ jsx("rect", {
|
|
729
|
+
x: left + limb,
|
|
730
|
+
y: top + limb,
|
|
731
|
+
width: 114,
|
|
732
|
+
height: 74,
|
|
733
|
+
rx: 2,
|
|
734
|
+
fill: "var(--fig-paper)",
|
|
735
|
+
stroke: HUE.deviceEdge,
|
|
736
|
+
strokeWidth: STROKE.line
|
|
737
|
+
}),
|
|
738
|
+
/* @__PURE__ */ jsx(Winding, {
|
|
739
|
+
x: left + limb / 2,
|
|
740
|
+
top: top + 10,
|
|
741
|
+
bottom: top + H - 10,
|
|
742
|
+
loops: p,
|
|
743
|
+
w: 32
|
|
744
|
+
}),
|
|
745
|
+
/* @__PURE__ */ jsx(Winding, {
|
|
746
|
+
x: left + W - limb / 2,
|
|
747
|
+
top: top + 10,
|
|
748
|
+
bottom: top + H - 10,
|
|
749
|
+
loops: s,
|
|
750
|
+
w: 32
|
|
751
|
+
}),
|
|
752
|
+
lead(left - 34, left - 7, top + 18),
|
|
753
|
+
lead(left - 34, left - 7, top + H - 18),
|
|
754
|
+
lead(left + W + 7, left + W + 34, top + 18),
|
|
755
|
+
lead(left + W + 7, left + W + 34, top + H - 18),
|
|
756
|
+
item.ac !== false ? tilde(left - 26, item.y) : null,
|
|
757
|
+
/* @__PURE__ */ jsx(FigText, {
|
|
758
|
+
x: left + limb / 2,
|
|
759
|
+
y: top - 8,
|
|
760
|
+
size: "label",
|
|
761
|
+
anchor: "middle",
|
|
762
|
+
tone: "soft",
|
|
763
|
+
children: "primary"
|
|
764
|
+
}),
|
|
765
|
+
/* @__PURE__ */ jsx(FigText, {
|
|
766
|
+
x: left + W - limb / 2,
|
|
767
|
+
y: top - 8,
|
|
768
|
+
size: "label",
|
|
769
|
+
anchor: "middle",
|
|
770
|
+
tone: "soft",
|
|
771
|
+
children: "secondary"
|
|
772
|
+
}),
|
|
773
|
+
item.primaryLabel ? /* @__PURE__ */ jsx(FigText, {
|
|
774
|
+
x: left - 12,
|
|
775
|
+
y: top + H + 18,
|
|
776
|
+
size: "label",
|
|
777
|
+
anchor: "middle",
|
|
778
|
+
children: rich(item.primaryLabel)
|
|
779
|
+
}) : null,
|
|
780
|
+
item.secondaryLabel ? /* @__PURE__ */ jsx(FigText, {
|
|
781
|
+
x: left + W + 12,
|
|
782
|
+
y: top + H + 18,
|
|
783
|
+
size: "label",
|
|
784
|
+
anchor: "middle",
|
|
785
|
+
children: rich(item.secondaryLabel)
|
|
786
|
+
}) : null
|
|
787
|
+
] });
|
|
788
|
+
}
|
|
789
|
+
function Relay({ item }) {
|
|
790
|
+
const coreW = 110;
|
|
791
|
+
const cx = item.x - 18;
|
|
792
|
+
const cy = item.y + 26;
|
|
793
|
+
const pivot = {
|
|
794
|
+
x: cx - coreW / 2 - 10,
|
|
795
|
+
y: cy - 34
|
|
796
|
+
};
|
|
797
|
+
const armLen = 186;
|
|
798
|
+
const rad = (item.energised ? 0 : -13) * Math.PI / 180;
|
|
799
|
+
const along = (d) => ({
|
|
800
|
+
x: pivot.x + d * Math.cos(rad),
|
|
801
|
+
y: pivot.y + d * Math.sin(rad)
|
|
802
|
+
});
|
|
803
|
+
const tip = along(armLen);
|
|
804
|
+
const springFoot = along(coreW * .55);
|
|
805
|
+
const bracketY = pivot.y - 46;
|
|
806
|
+
const fixed = {
|
|
807
|
+
x: tip.x + 2,
|
|
808
|
+
y: pivot.y + 20
|
|
809
|
+
};
|
|
810
|
+
const zig = Array.from({ length: 18 }, (_, i) => {
|
|
811
|
+
const t = (i + 1) / 19;
|
|
812
|
+
const y = springFoot.y - 3 + (bracketY + 4 - (springFoot.y - 3)) * t;
|
|
813
|
+
return `L${springFoot.x + (i % 2 ? 6 : -6)} ${y.toFixed(1)}`;
|
|
814
|
+
}).join(" ");
|
|
815
|
+
return /* @__PURE__ */ jsxs("g", { children: [
|
|
816
|
+
/* @__PURE__ */ jsx("line", {
|
|
817
|
+
x1: springFoot.x - 22,
|
|
818
|
+
y1: bracketY,
|
|
819
|
+
x2: springFoot.x + 22,
|
|
820
|
+
y2: bracketY,
|
|
821
|
+
stroke: HUE.deviceEdge,
|
|
822
|
+
strokeWidth: GAUGE.strut,
|
|
823
|
+
strokeLinecap: "round"
|
|
824
|
+
}),
|
|
825
|
+
/* @__PURE__ */ jsx("path", {
|
|
826
|
+
d: `M${springFoot.x} ${springFoot.y - 3} ${zig} L${springFoot.x} ${bracketY}`,
|
|
827
|
+
fill: "none",
|
|
828
|
+
stroke: HUE.metal,
|
|
829
|
+
strokeWidth: GAUGE.wire,
|
|
830
|
+
strokeLinejoin: "round"
|
|
831
|
+
}),
|
|
832
|
+
/* @__PURE__ */ jsx("rect", {
|
|
833
|
+
x: cx - coreW / 2,
|
|
834
|
+
y: cy - 12,
|
|
835
|
+
width: coreW,
|
|
836
|
+
height: 24,
|
|
837
|
+
rx: 3,
|
|
838
|
+
fill: HUE.deviceSoft,
|
|
839
|
+
stroke: HUE.deviceEdge,
|
|
840
|
+
strokeWidth: STROKE.line
|
|
841
|
+
}),
|
|
842
|
+
Array.from({ length: 10 }, (_, i) => {
|
|
843
|
+
const x = cx - coreW / 2 + 10 + i * 10;
|
|
844
|
+
return /* @__PURE__ */ jsxs("g", { children: [/* @__PURE__ */ jsx("line", {
|
|
845
|
+
x1: x - 4,
|
|
846
|
+
y1: cy + 18,
|
|
847
|
+
x2: x + 4,
|
|
848
|
+
y2: cy - 18,
|
|
849
|
+
stroke: COPPER_DARK,
|
|
850
|
+
strokeWidth: GAUGE.strut,
|
|
851
|
+
strokeLinecap: "round"
|
|
852
|
+
}), /* @__PURE__ */ jsx("line", {
|
|
853
|
+
x1: x - 4,
|
|
854
|
+
y1: cy + 18,
|
|
855
|
+
x2: x + 4,
|
|
856
|
+
y2: cy - 18,
|
|
857
|
+
stroke: COPPER_LIT,
|
|
858
|
+
strokeWidth: GAUGE.fine,
|
|
859
|
+
strokeLinecap: "round"
|
|
860
|
+
})] }, i);
|
|
861
|
+
}),
|
|
862
|
+
/* @__PURE__ */ jsx("line", {
|
|
863
|
+
x1: pivot.x,
|
|
864
|
+
y1: pivot.y,
|
|
865
|
+
x2: pivot.x,
|
|
866
|
+
y2: cy + 18,
|
|
867
|
+
stroke: HUE.deviceEdge,
|
|
868
|
+
strokeWidth: GAUGE.strut,
|
|
869
|
+
strokeLinecap: "round"
|
|
870
|
+
}),
|
|
871
|
+
/* @__PURE__ */ jsx("line", {
|
|
872
|
+
x1: pivot.x,
|
|
873
|
+
y1: pivot.y,
|
|
874
|
+
x2: tip.x,
|
|
875
|
+
y2: tip.y,
|
|
876
|
+
stroke: HUE.device,
|
|
877
|
+
strokeWidth: GAUGE.core,
|
|
878
|
+
strokeLinecap: "round"
|
|
879
|
+
}),
|
|
880
|
+
/* @__PURE__ */ jsx("circle", {
|
|
881
|
+
cx: pivot.x,
|
|
882
|
+
cy: pivot.y,
|
|
883
|
+
r: 4.5,
|
|
884
|
+
fill: HUE.deviceEdge
|
|
885
|
+
}),
|
|
886
|
+
/* @__PURE__ */ jsx("circle", {
|
|
887
|
+
cx: tip.x,
|
|
888
|
+
cy: tip.y + 6,
|
|
889
|
+
r: 5,
|
|
890
|
+
fill: HUE.metal,
|
|
891
|
+
stroke: HUE.deviceEdge,
|
|
892
|
+
strokeWidth: STROKE.hair
|
|
893
|
+
}),
|
|
894
|
+
/* @__PURE__ */ jsx("line", {
|
|
895
|
+
x1: fixed.x,
|
|
896
|
+
y1: fixed.y + 6,
|
|
897
|
+
x2: fixed.x + 34,
|
|
898
|
+
y2: fixed.y + 6,
|
|
899
|
+
stroke: HUE.deviceEdge,
|
|
900
|
+
strokeWidth: GAUGE.strut,
|
|
901
|
+
strokeLinecap: "round"
|
|
902
|
+
}),
|
|
903
|
+
/* @__PURE__ */ jsx("circle", {
|
|
904
|
+
cx: fixed.x,
|
|
905
|
+
cy: fixed.y,
|
|
906
|
+
r: 5,
|
|
907
|
+
fill: HUE.metal,
|
|
908
|
+
stroke: HUE.deviceEdge,
|
|
909
|
+
strokeWidth: STROKE.hair
|
|
910
|
+
}),
|
|
911
|
+
/* @__PURE__ */ jsx(FigText, {
|
|
912
|
+
x: fixed.x + 36,
|
|
913
|
+
y: fixed.y + 26,
|
|
914
|
+
size: "label",
|
|
915
|
+
anchor: "end",
|
|
916
|
+
tone: item.energised ? "good" : "soft",
|
|
917
|
+
children: item.energised ? "contacts closed" : "contacts open"
|
|
918
|
+
}),
|
|
919
|
+
/* @__PURE__ */ jsx(FigText, {
|
|
920
|
+
x: springFoot.x - 12,
|
|
921
|
+
y: bracketY + 18,
|
|
922
|
+
size: "note",
|
|
923
|
+
tone: "soft",
|
|
924
|
+
anchor: "end",
|
|
925
|
+
children: "spring"
|
|
926
|
+
}),
|
|
927
|
+
/* @__PURE__ */ jsx(FigText, {
|
|
928
|
+
x: cx,
|
|
929
|
+
y: cy + 36,
|
|
930
|
+
size: "label",
|
|
931
|
+
anchor: "middle",
|
|
932
|
+
tone: "soft",
|
|
933
|
+
children: item.label ? rich(item.label) : "coil on an iron core"
|
|
934
|
+
})
|
|
935
|
+
] });
|
|
936
|
+
}
|
|
937
|
+
function Charge({ item, items }) {
|
|
938
|
+
const vel = pageDir(dirVec(item.v));
|
|
939
|
+
const path = item.path ?? "none";
|
|
940
|
+
const orbit = path === "none" ? null : chargeOrbit(item, items);
|
|
941
|
+
const points = path === "none" ? [] : orbitPolyline(item, items, path === "circle");
|
|
942
|
+
const color = item.sign === "+" ? HUE.danger : HUE[1];
|
|
943
|
+
const midIdx = Math.floor(points.length * .4);
|
|
944
|
+
return /* @__PURE__ */ jsxs("g", { children: [
|
|
945
|
+
points.length > 2 ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
946
|
+
/* @__PURE__ */ jsx("path", {
|
|
947
|
+
d: pathOf(points),
|
|
948
|
+
fill: "none",
|
|
949
|
+
stroke: alpha(HUE.ink, 55),
|
|
950
|
+
strokeWidth: STROKE.line,
|
|
951
|
+
strokeDasharray: "5 4"
|
|
952
|
+
}),
|
|
953
|
+
points[midIdx + 1] ? /* @__PURE__ */ jsx(Head, {
|
|
954
|
+
at: points[midIdx + 1],
|
|
955
|
+
dir: {
|
|
956
|
+
x: points[midIdx + 1].x - points[midIdx].x,
|
|
957
|
+
y: points[midIdx + 1].y - points[midIdx].y
|
|
958
|
+
},
|
|
959
|
+
color: alpha(HUE.ink, 70)
|
|
960
|
+
}) : null,
|
|
961
|
+
orbit && path === "circle" ? /* @__PURE__ */ jsx("circle", {
|
|
962
|
+
cx: orbit.centre.x,
|
|
963
|
+
cy: orbit.centre.y,
|
|
964
|
+
r: 2,
|
|
965
|
+
fill: alpha(HUE.ink, 50)
|
|
966
|
+
}) : null
|
|
967
|
+
] }) : null,
|
|
968
|
+
/* @__PURE__ */ jsx(Arrow, {
|
|
969
|
+
x1: item.x,
|
|
970
|
+
y1: item.y,
|
|
971
|
+
x2: item.x + vel.x * 38,
|
|
972
|
+
y2: item.y + vel.y * 38,
|
|
973
|
+
color: VELOCITY,
|
|
974
|
+
weight: "edge",
|
|
975
|
+
label: "v"
|
|
976
|
+
}),
|
|
977
|
+
item.force !== false ? /* @__PURE__ */ jsx(VectorFrom, {
|
|
978
|
+
at: item,
|
|
979
|
+
f: facing(chargeForce(item, items)),
|
|
980
|
+
length: 32,
|
|
981
|
+
color: FORCE,
|
|
982
|
+
label: "F"
|
|
983
|
+
}) : null,
|
|
984
|
+
/* @__PURE__ */ jsx("circle", {
|
|
985
|
+
cx: item.x,
|
|
986
|
+
cy: item.y,
|
|
987
|
+
r: 8,
|
|
988
|
+
fill: tint(color, 35),
|
|
989
|
+
stroke: shade(color, 60),
|
|
990
|
+
strokeWidth: STROKE.line
|
|
991
|
+
}),
|
|
992
|
+
/* @__PURE__ */ jsx(FigText, {
|
|
993
|
+
x: item.x,
|
|
994
|
+
y: item.y + .5,
|
|
995
|
+
size: "label",
|
|
996
|
+
anchor: "middle",
|
|
997
|
+
baseline: "middle",
|
|
998
|
+
halo: false,
|
|
999
|
+
children: item.sign === "+" ? "+" : "−"
|
|
1000
|
+
}),
|
|
1001
|
+
item.label ? /* @__PURE__ */ jsx(FigText, {
|
|
1002
|
+
...chargeLabelAt(item, items),
|
|
1003
|
+
size: "label",
|
|
1004
|
+
children: rich(item.label)
|
|
1005
|
+
}) : null
|
|
1006
|
+
] });
|
|
1007
|
+
}
|
|
1008
|
+
const SLAB_TOP = `color-mix(in oklab, ${HUE.deviceSoft} 38%, ${HUE.obsLit})`;
|
|
1009
|
+
const SLAB_FRONT = `color-mix(in oklab, ${HUE.deviceSoft} 58%, ${HUE.obsLit})`;
|
|
1010
|
+
const SLAB_SIDE = `color-mix(in oklab, ${HUE.deviceSoft} 88%, ${HUE.obsLit})`;
|
|
1011
|
+
const SLAB_EDGE = `color-mix(in oklab, ${HUE.deviceEdge} 80%, ${HUE.obsLit})`;
|
|
1012
|
+
function Slab({ item, items }) {
|
|
1013
|
+
const depth = 16;
|
|
1014
|
+
const face = item.show === "charged" ? hallFace(item, items) : null;
|
|
1015
|
+
const carrierSign = item.carriers === "electrons" ? "-" : "+";
|
|
1016
|
+
const otherSign = item.carriers === "electrons" ? "+" : "-";
|
|
1017
|
+
const signs = (y, sign, key) => {
|
|
1018
|
+
const n = Math.max(3, Math.floor(item.w / 22));
|
|
1019
|
+
return Array.from({ length: n }, (_, i) => /* @__PURE__ */ jsx(ChargeChip, {
|
|
1020
|
+
x: item.x + (i + .5) * item.w / n,
|
|
1021
|
+
y,
|
|
1022
|
+
sign
|
|
1023
|
+
}, `${key}${i}`));
|
|
1024
|
+
};
|
|
1025
|
+
const leadY = item.y + item.h / 2;
|
|
1026
|
+
const right = item.current === "right";
|
|
1027
|
+
return /* @__PURE__ */ jsxs("g", { children: [
|
|
1028
|
+
/* @__PURE__ */ jsx("path", {
|
|
1029
|
+
d: `M${item.x} ${item.y} L${item.x + depth} ${item.y - depth} L${item.x + item.w + depth} ${item.y - depth} L${item.x + item.w} ${item.y} Z`,
|
|
1030
|
+
fill: SLAB_TOP,
|
|
1031
|
+
stroke: SLAB_EDGE,
|
|
1032
|
+
strokeWidth: STROKE.line,
|
|
1033
|
+
strokeLinejoin: "round"
|
|
1034
|
+
}),
|
|
1035
|
+
/* @__PURE__ */ jsx("path", {
|
|
1036
|
+
d: `M${item.x + item.w} ${item.y} L${item.x + item.w + depth} ${item.y - depth} L${item.x + item.w + depth} ${item.y + item.h - depth} L${item.x + item.w} ${item.y + item.h} Z`,
|
|
1037
|
+
fill: SLAB_SIDE,
|
|
1038
|
+
stroke: SLAB_EDGE,
|
|
1039
|
+
strokeWidth: STROKE.line,
|
|
1040
|
+
strokeLinejoin: "round"
|
|
1041
|
+
}),
|
|
1042
|
+
/* @__PURE__ */ jsx("rect", {
|
|
1043
|
+
x: item.x,
|
|
1044
|
+
y: item.y,
|
|
1045
|
+
width: item.w,
|
|
1046
|
+
height: item.h,
|
|
1047
|
+
fill: SLAB_FRONT,
|
|
1048
|
+
stroke: SLAB_EDGE,
|
|
1049
|
+
strokeWidth: STROKE.line
|
|
1050
|
+
}),
|
|
1051
|
+
/* @__PURE__ */ jsx(Arrow, {
|
|
1052
|
+
x1: right ? item.x - 34 : item.x + item.w + depth + 34,
|
|
1053
|
+
y1: leadY,
|
|
1054
|
+
x2: right ? item.x - 4 : item.x + item.w + depth + 4,
|
|
1055
|
+
y2: leadY,
|
|
1056
|
+
color: CURRENT,
|
|
1057
|
+
weight: "edge",
|
|
1058
|
+
label: "I"
|
|
1059
|
+
}),
|
|
1060
|
+
face ? /* @__PURE__ */ jsxs(Fragment, { children: [signs(face === "top" ? item.y + 10 : item.y + item.h - 10, carrierSign, "c"), signs(face === "top" ? item.y + item.h - 10 : item.y + 10, otherSign, "o")] }) : null,
|
|
1061
|
+
item.voltage ? /* @__PURE__ */ jsxs("g", { children: [/* @__PURE__ */ jsx("line", {
|
|
1062
|
+
x1: right ? item.x + item.w + depth + 12 : item.x - 12,
|
|
1063
|
+
y1: item.y - depth + 4,
|
|
1064
|
+
x2: right ? item.x + item.w + depth + 12 : item.x - 12,
|
|
1065
|
+
y2: item.y + item.h - 4,
|
|
1066
|
+
stroke: HUE.ink,
|
|
1067
|
+
strokeWidth: STROKE.hair
|
|
1068
|
+
}), /* @__PURE__ */ jsxs(FigText, {
|
|
1069
|
+
x: right ? item.x + item.w + depth + 18 : item.x - 18,
|
|
1070
|
+
y: item.y + item.h / 2,
|
|
1071
|
+
size: "label",
|
|
1072
|
+
baseline: "middle",
|
|
1073
|
+
anchor: right ? "start" : "end",
|
|
1074
|
+
children: ["V", /* @__PURE__ */ jsx("tspan", {
|
|
1075
|
+
baselineShift: "sub",
|
|
1076
|
+
fontSize: "0.75em",
|
|
1077
|
+
children: "H"
|
|
1078
|
+
})]
|
|
1079
|
+
})] }) : null,
|
|
1080
|
+
item.label ? /* @__PURE__ */ jsx(FigText, {
|
|
1081
|
+
x: item.x + item.w / 2,
|
|
1082
|
+
y: item.y + item.h + 18,
|
|
1083
|
+
size: "label",
|
|
1084
|
+
anchor: "middle",
|
|
1085
|
+
tone: "soft",
|
|
1086
|
+
children: rich(item.label)
|
|
1087
|
+
}) : null
|
|
1088
|
+
] });
|
|
1089
|
+
}
|
|
1090
|
+
function Rails({ item, items }) {
|
|
1091
|
+
const rodX = item.x + item.length * (item.rodAt ?? .6);
|
|
1092
|
+
const top = item.y;
|
|
1093
|
+
const bottom = item.y + item.gap;
|
|
1094
|
+
const vel = pageDir(dirVec(item.v));
|
|
1095
|
+
const induced = item.induced ? railsCurrent(item, items) : null;
|
|
1096
|
+
return /* @__PURE__ */ jsxs("g", { children: [
|
|
1097
|
+
/* @__PURE__ */ jsx("line", {
|
|
1098
|
+
x1: item.x,
|
|
1099
|
+
y1: top,
|
|
1100
|
+
x2: item.x + item.length,
|
|
1101
|
+
y2: top,
|
|
1102
|
+
stroke: HUE.metal,
|
|
1103
|
+
strokeWidth: GAUGE.strut,
|
|
1104
|
+
strokeLinecap: "round"
|
|
1105
|
+
}),
|
|
1106
|
+
/* @__PURE__ */ jsx("line", {
|
|
1107
|
+
x1: item.x,
|
|
1108
|
+
y1: bottom,
|
|
1109
|
+
x2: item.x + item.length,
|
|
1110
|
+
y2: bottom,
|
|
1111
|
+
stroke: HUE.metal,
|
|
1112
|
+
strokeWidth: GAUGE.strut,
|
|
1113
|
+
strokeLinecap: "round"
|
|
1114
|
+
}),
|
|
1115
|
+
/* @__PURE__ */ jsx("line", {
|
|
1116
|
+
x1: item.x,
|
|
1117
|
+
y1: top,
|
|
1118
|
+
x2: item.x,
|
|
1119
|
+
y2: bottom,
|
|
1120
|
+
stroke: HUE.metal,
|
|
1121
|
+
strokeWidth: GAUGE.bar
|
|
1122
|
+
}),
|
|
1123
|
+
/* @__PURE__ */ jsx("line", {
|
|
1124
|
+
x1: rodX,
|
|
1125
|
+
y1: top - 8,
|
|
1126
|
+
x2: rodX,
|
|
1127
|
+
y2: bottom + 8,
|
|
1128
|
+
stroke: COPPER_DARK,
|
|
1129
|
+
strokeWidth: GAUGE.block,
|
|
1130
|
+
strokeLinecap: "round"
|
|
1131
|
+
}),
|
|
1132
|
+
/* @__PURE__ */ jsx("line", {
|
|
1133
|
+
x1: rodX,
|
|
1134
|
+
y1: top - 8,
|
|
1135
|
+
x2: rodX,
|
|
1136
|
+
y2: bottom + 8,
|
|
1137
|
+
stroke: COPPER_LIT,
|
|
1138
|
+
strokeWidth: GAUGE.strut,
|
|
1139
|
+
strokeLinecap: "round"
|
|
1140
|
+
}),
|
|
1141
|
+
/* @__PURE__ */ jsx(Arrow, {
|
|
1142
|
+
x1: rodX,
|
|
1143
|
+
y1: (top + bottom) / 2,
|
|
1144
|
+
x2: rodX + vel.x * 40,
|
|
1145
|
+
y2: (top + bottom) / 2 + vel.y * 40,
|
|
1146
|
+
color: VELOCITY,
|
|
1147
|
+
weight: "edge",
|
|
1148
|
+
label: "v"
|
|
1149
|
+
}),
|
|
1150
|
+
induced ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Head, {
|
|
1151
|
+
at: {
|
|
1152
|
+
x: rodX,
|
|
1153
|
+
y: (top + bottom) / 2 + (induced === "up" ? -18 : 18)
|
|
1154
|
+
},
|
|
1155
|
+
dir: {
|
|
1156
|
+
x: 0,
|
|
1157
|
+
y: induced === "up" ? -1 : 1
|
|
1158
|
+
},
|
|
1159
|
+
color: CURRENT,
|
|
1160
|
+
size: 10
|
|
1161
|
+
}), /* @__PURE__ */ jsx(FigText, {
|
|
1162
|
+
x: rodX - 12,
|
|
1163
|
+
y: (top + bottom) / 2 + (induced === "up" ? -16 : 24),
|
|
1164
|
+
size: "label",
|
|
1165
|
+
anchor: "end",
|
|
1166
|
+
children: "I"
|
|
1167
|
+
})] }) : null,
|
|
1168
|
+
item.label ? /* @__PURE__ */ jsx(FigText, {
|
|
1169
|
+
x: rodX,
|
|
1170
|
+
y: bottom + 24,
|
|
1171
|
+
size: "label",
|
|
1172
|
+
anchor: "middle",
|
|
1173
|
+
tone: "soft",
|
|
1174
|
+
children: rich(item.label)
|
|
1175
|
+
}) : null
|
|
1176
|
+
] });
|
|
1177
|
+
}
|
|
1178
|
+
function Vector({ item }) {
|
|
1179
|
+
const color = item.kind === "force" ? FORCE : item.kind === "field" ? FIELD : item.kind === "current" ? CURRENT : item.kind === "velocity" ? VELOCITY : HUE.ink;
|
|
1180
|
+
const f = facing(dirVec(item.dir));
|
|
1181
|
+
if (f.kind === "in" || f.kind === "out") return /* @__PURE__ */ jsxs("g", { children: [/* @__PURE__ */ jsx(EndOn, {
|
|
1182
|
+
x: item.x,
|
|
1183
|
+
y: item.y,
|
|
1184
|
+
r: 8,
|
|
1185
|
+
sense: f.kind,
|
|
1186
|
+
color
|
|
1187
|
+
}), item.label ? /* @__PURE__ */ jsx(FigText, {
|
|
1188
|
+
x: item.x + 14,
|
|
1189
|
+
y: item.y + 4,
|
|
1190
|
+
size: "label",
|
|
1191
|
+
children: item.label
|
|
1192
|
+
}) : null] });
|
|
1193
|
+
return /* @__PURE__ */ jsx(VectorFrom, {
|
|
1194
|
+
at: item,
|
|
1195
|
+
f,
|
|
1196
|
+
length: item.length ?? 44,
|
|
1197
|
+
color,
|
|
1198
|
+
label: item.label
|
|
1199
|
+
});
|
|
1200
|
+
}
|
|
1201
|
+
function Compass({ item, items, paths }) {
|
|
1202
|
+
const f = fieldDirAt(items, paths, item);
|
|
1203
|
+
const d = f.kind === "plane" ? f.dir : {
|
|
1204
|
+
x: 0,
|
|
1205
|
+
y: -1
|
|
1206
|
+
};
|
|
1207
|
+
const n = 9;
|
|
1208
|
+
const px = -d.y * 3;
|
|
1209
|
+
const py = d.x * 3;
|
|
1210
|
+
return /* @__PURE__ */ jsxs("g", { children: [
|
|
1211
|
+
/* @__PURE__ */ jsx("circle", {
|
|
1212
|
+
cx: item.x,
|
|
1213
|
+
cy: item.y,
|
|
1214
|
+
r: 12,
|
|
1215
|
+
fill: HUE.paper,
|
|
1216
|
+
stroke: HUE.ink,
|
|
1217
|
+
strokeWidth: STROKE.line
|
|
1218
|
+
}),
|
|
1219
|
+
/* @__PURE__ */ jsx("path", {
|
|
1220
|
+
d: `M${item.x + d.x * n} ${item.y + d.y * n} L${item.x + px} ${item.y + py} L${item.x - px} ${item.y - py} Z`,
|
|
1221
|
+
fill: NORTH
|
|
1222
|
+
}),
|
|
1223
|
+
/* @__PURE__ */ jsx("path", {
|
|
1224
|
+
d: `M${item.x - d.x * n} ${item.y - d.y * n} L${item.x + px} ${item.y + py} L${item.x - px} ${item.y - py} Z`,
|
|
1225
|
+
fill: alpha(HUE.ink, 35)
|
|
1226
|
+
})
|
|
1227
|
+
] });
|
|
1228
|
+
}
|
|
1229
|
+
function Dim({ item }) {
|
|
1230
|
+
const len = Math.hypot(item.x2 - item.x1, item.y2 - item.y1) || 1;
|
|
1231
|
+
const nx = -(item.y2 - item.y1) / len;
|
|
1232
|
+
const ny = (item.x2 - item.x1) / len;
|
|
1233
|
+
return /* @__PURE__ */ jsxs("g", { children: [
|
|
1234
|
+
/* @__PURE__ */ jsx("line", {
|
|
1235
|
+
x1: item.x1,
|
|
1236
|
+
y1: item.y1,
|
|
1237
|
+
x2: item.x2,
|
|
1238
|
+
y2: item.y2,
|
|
1239
|
+
stroke: HUE.soft,
|
|
1240
|
+
strokeWidth: STROKE.hair
|
|
1241
|
+
}),
|
|
1242
|
+
[[item.x1, item.y1], [item.x2, item.y2]].map(([x, y], i) => /* @__PURE__ */ jsx("line", {
|
|
1243
|
+
x1: x + nx * 5,
|
|
1244
|
+
y1: y + ny * 5,
|
|
1245
|
+
x2: x - nx * 5,
|
|
1246
|
+
y2: y - ny * 5,
|
|
1247
|
+
stroke: HUE.soft,
|
|
1248
|
+
strokeWidth: STROKE.hair
|
|
1249
|
+
}, i)),
|
|
1250
|
+
/* @__PURE__ */ jsx(FigText, {
|
|
1251
|
+
x: (item.x1 + item.x2) / 2 + nx * 10,
|
|
1252
|
+
y: (item.y1 + item.y2) / 2 + ny * 10 + 4,
|
|
1253
|
+
size: "label",
|
|
1254
|
+
anchor: "middle",
|
|
1255
|
+
tone: "soft",
|
|
1256
|
+
children: item.label
|
|
1257
|
+
})
|
|
1258
|
+
] });
|
|
1259
|
+
}
|
|
1260
|
+
function Angle({ item }) {
|
|
1261
|
+
const r = item.r ?? 26;
|
|
1262
|
+
const rad = (d) => d * Math.PI / 180;
|
|
1263
|
+
const at = (d) => ({
|
|
1264
|
+
x: item.x + r * Math.cos(rad(d)),
|
|
1265
|
+
y: item.y - r * Math.sin(rad(d))
|
|
1266
|
+
});
|
|
1267
|
+
const a = at(item.from);
|
|
1268
|
+
const b = at(item.to);
|
|
1269
|
+
const sweep = item.to - item.from;
|
|
1270
|
+
const large = Math.abs(sweep) > 180 ? 1 : 0;
|
|
1271
|
+
const mid = (item.from + item.to) / 2;
|
|
1272
|
+
return /* @__PURE__ */ jsxs("g", { children: [/* @__PURE__ */ jsx("path", {
|
|
1273
|
+
d: `M${a.x} ${a.y} A${r} ${r} 0 ${large} ${sweep > 0 ? 0 : 1} ${b.x} ${b.y}`,
|
|
1274
|
+
fill: "none",
|
|
1275
|
+
stroke: HUE.ink,
|
|
1276
|
+
strokeWidth: STROKE.line
|
|
1277
|
+
}), item.label ? /* @__PURE__ */ jsx(FigText, {
|
|
1278
|
+
x: item.x + (r + 12) * Math.cos(rad(mid)),
|
|
1279
|
+
y: item.y - (r + 12) * Math.sin(rad(mid)) + 4,
|
|
1280
|
+
size: "label",
|
|
1281
|
+
anchor: "middle",
|
|
1282
|
+
children: rich(item.label)
|
|
1283
|
+
}) : null] });
|
|
1284
|
+
}
|
|
1285
|
+
function PlainLine({ item }) {
|
|
1286
|
+
return /* @__PURE__ */ jsxs("g", { children: [/* @__PURE__ */ jsx("line", {
|
|
1287
|
+
x1: item.x1,
|
|
1288
|
+
y1: item.y1,
|
|
1289
|
+
x2: item.x2,
|
|
1290
|
+
y2: item.y2,
|
|
1291
|
+
stroke: item.dashed ? HUE.soft : HUE.ink,
|
|
1292
|
+
strokeWidth: STROKE.line,
|
|
1293
|
+
strokeDasharray: item.dashed ? "5 4" : void 0
|
|
1294
|
+
}), item.label ? /* @__PURE__ */ jsx(FigText, {
|
|
1295
|
+
x: item.x2 + 6,
|
|
1296
|
+
y: item.y2 + 4,
|
|
1297
|
+
size: "label",
|
|
1298
|
+
tone: "soft",
|
|
1299
|
+
children: rich(item.label)
|
|
1300
|
+
}) : null] });
|
|
1301
|
+
}
|
|
1302
|
+
/**
|
|
1303
|
+
* What each item occupies on the page, mirroring where the functions above draw it and its label,
|
|
1304
|
+
* so the field marks can keep clear. Approximate by design: the aim is a clean gap, not a mask.
|
|
1305
|
+
*/
|
|
1306
|
+
function occupied(items) {
|
|
1307
|
+
const out = [];
|
|
1308
|
+
const seg = (a, b, r) => {
|
|
1309
|
+
out.push({
|
|
1310
|
+
kind: "seg",
|
|
1311
|
+
a,
|
|
1312
|
+
b,
|
|
1313
|
+
r
|
|
1314
|
+
});
|
|
1315
|
+
};
|
|
1316
|
+
for (const item of items) switch (item.type) {
|
|
1317
|
+
case "field":
|
|
1318
|
+
if (item.label) out.push(textBox(item.x + item.w - 6, item.y + 14, item.label, "end"));
|
|
1319
|
+
break;
|
|
1320
|
+
case "wire":
|
|
1321
|
+
out.push({
|
|
1322
|
+
kind: "circle",
|
|
1323
|
+
x: item.x,
|
|
1324
|
+
y: item.y,
|
|
1325
|
+
r: 14
|
|
1326
|
+
});
|
|
1327
|
+
if (item.label) out.push(textBox(item.x, item.y + 26 + (item.rings ? item.rings * 15 : 0), item.label, "middle"));
|
|
1328
|
+
break;
|
|
1329
|
+
case "conductor": {
|
|
1330
|
+
seg({
|
|
1331
|
+
x: item.x1,
|
|
1332
|
+
y: item.y1
|
|
1333
|
+
}, {
|
|
1334
|
+
x: item.x2,
|
|
1335
|
+
y: item.y2
|
|
1336
|
+
}, 8);
|
|
1337
|
+
const len = Math.hypot(item.x2 - item.x1, item.y2 - item.y1) || 1;
|
|
1338
|
+
const mid = {
|
|
1339
|
+
x: (item.x1 + item.x2) / 2,
|
|
1340
|
+
y: (item.y1 + item.y2) / 2
|
|
1341
|
+
};
|
|
1342
|
+
const along = {
|
|
1343
|
+
x: (item.x2 - item.x1) / len,
|
|
1344
|
+
y: (item.y2 - item.y1) / len
|
|
1345
|
+
};
|
|
1346
|
+
if (item.currentArrow !== false) out.push(textBox(mid.x + along.x * 22 - along.y * 14, mid.y + along.y * 22 + along.x * 14 + 4, "I", "middle"));
|
|
1347
|
+
if (item.force) {
|
|
1348
|
+
const f = facing(conductorForce(item, items));
|
|
1349
|
+
if (f.kind === "plane") seg(mid, {
|
|
1350
|
+
x: mid.x + f.dir.x * 50,
|
|
1351
|
+
y: mid.y + f.dir.y * 50
|
|
1352
|
+
}, 8);
|
|
1353
|
+
else out.push({
|
|
1354
|
+
kind: "circle",
|
|
1355
|
+
x: mid.x + 16,
|
|
1356
|
+
y: mid.y - 16,
|
|
1357
|
+
r: 18
|
|
1358
|
+
});
|
|
1359
|
+
}
|
|
1360
|
+
if (item.label) out.push(textBox(item.x2 + along.x * 8, item.y2 + along.y * 8 + 16, item.label, "middle"));
|
|
1361
|
+
break;
|
|
1362
|
+
}
|
|
1363
|
+
case "magnet": {
|
|
1364
|
+
const g = magnetGeometry(item);
|
|
1365
|
+
seg(g.north, g.south, g.half + 2);
|
|
1366
|
+
break;
|
|
1367
|
+
}
|
|
1368
|
+
case "bar": {
|
|
1369
|
+
const { a, b, axis, length } = barEnds(item);
|
|
1370
|
+
seg(a, b, 10);
|
|
1371
|
+
if (item.label) out.push(textBox(item.x, axis.x ? item.y + 24 : item.y + length / 2 + 16, item.label, "middle"));
|
|
1372
|
+
break;
|
|
1373
|
+
}
|
|
1374
|
+
case "coil":
|
|
1375
|
+
if (item.view === "face") {
|
|
1376
|
+
out.push({
|
|
1377
|
+
kind: "circle",
|
|
1378
|
+
x: item.x,
|
|
1379
|
+
y: item.y,
|
|
1380
|
+
r: item.r + 6
|
|
1381
|
+
});
|
|
1382
|
+
if (item.label) out.push(textBox(item.x, item.y + item.r + 18, item.label, "middle"));
|
|
1383
|
+
} else out.push({
|
|
1384
|
+
kind: "circle",
|
|
1385
|
+
x: item.x,
|
|
1386
|
+
y: item.y,
|
|
1387
|
+
r: item.r + 10
|
|
1388
|
+
});
|
|
1389
|
+
break;
|
|
1390
|
+
case "solenoid": {
|
|
1391
|
+
const r = item.radius ?? 18;
|
|
1392
|
+
out.push({
|
|
1393
|
+
kind: "rect",
|
|
1394
|
+
x: item.x - item.length / 2 - 18,
|
|
1395
|
+
y: item.y - r - 26,
|
|
1396
|
+
w: item.length + 36,
|
|
1397
|
+
h: 2 * r + 30
|
|
1398
|
+
});
|
|
1399
|
+
if (item.label) out.push(textBox(item.x, item.y + r + 18, item.label, "middle"));
|
|
1400
|
+
break;
|
|
1401
|
+
}
|
|
1402
|
+
case "charge": {
|
|
1403
|
+
out.push({
|
|
1404
|
+
kind: "circle",
|
|
1405
|
+
x: item.x,
|
|
1406
|
+
y: item.y,
|
|
1407
|
+
r: 12
|
|
1408
|
+
});
|
|
1409
|
+
const v = pageDir(dirVec(item.v));
|
|
1410
|
+
seg(item, {
|
|
1411
|
+
x: item.x + v.x * 46,
|
|
1412
|
+
y: item.y + v.y * 46
|
|
1413
|
+
}, 15);
|
|
1414
|
+
if (item.force !== false) {
|
|
1415
|
+
const f = facing(chargeForce(item, items));
|
|
1416
|
+
if (f.kind === "plane") seg(item, {
|
|
1417
|
+
x: item.x + f.dir.x * 40,
|
|
1418
|
+
y: item.y + f.dir.y * 40
|
|
1419
|
+
}, 15);
|
|
1420
|
+
}
|
|
1421
|
+
if (item.label) {
|
|
1422
|
+
const at = chargeLabelAt(item, items);
|
|
1423
|
+
out.push(textBox(at.x, at.y, item.label, at.anchor));
|
|
1424
|
+
}
|
|
1425
|
+
break;
|
|
1426
|
+
}
|
|
1427
|
+
case "slab": {
|
|
1428
|
+
const depth = 16;
|
|
1429
|
+
const right = item.current === "right";
|
|
1430
|
+
out.push({
|
|
1431
|
+
kind: "rect",
|
|
1432
|
+
x: item.x - 2,
|
|
1433
|
+
y: item.y - depth - 2,
|
|
1434
|
+
w: item.w + depth + 4,
|
|
1435
|
+
h: item.h + depth + 4
|
|
1436
|
+
});
|
|
1437
|
+
seg({
|
|
1438
|
+
x: right ? item.x - 40 : item.x + item.w + depth + 40,
|
|
1439
|
+
y: item.y + item.h / 2
|
|
1440
|
+
}, {
|
|
1441
|
+
x: right ? item.x : item.x + item.w + depth,
|
|
1442
|
+
y: item.y + item.h / 2
|
|
1443
|
+
}, 10);
|
|
1444
|
+
if (item.voltage) out.push({
|
|
1445
|
+
kind: "rect",
|
|
1446
|
+
x: right ? item.x + item.w + depth + 6 : item.x - 40,
|
|
1447
|
+
y: item.y - depth,
|
|
1448
|
+
w: 34,
|
|
1449
|
+
h: item.h + depth
|
|
1450
|
+
});
|
|
1451
|
+
if (item.label) out.push(textBox(item.x + item.w / 2, item.y + item.h + 18, item.label, "middle"));
|
|
1452
|
+
break;
|
|
1453
|
+
}
|
|
1454
|
+
case "rails": {
|
|
1455
|
+
const rodX = item.x + item.length * (item.rodAt ?? .6);
|
|
1456
|
+
seg({
|
|
1457
|
+
x: item.x,
|
|
1458
|
+
y: item.y
|
|
1459
|
+
}, {
|
|
1460
|
+
x: item.x + item.length,
|
|
1461
|
+
y: item.y
|
|
1462
|
+
}, 6);
|
|
1463
|
+
seg({
|
|
1464
|
+
x: item.x,
|
|
1465
|
+
y: item.y + item.gap
|
|
1466
|
+
}, {
|
|
1467
|
+
x: item.x + item.length,
|
|
1468
|
+
y: item.y + item.gap
|
|
1469
|
+
}, 6);
|
|
1470
|
+
seg({
|
|
1471
|
+
x: item.x,
|
|
1472
|
+
y: item.y
|
|
1473
|
+
}, {
|
|
1474
|
+
x: item.x,
|
|
1475
|
+
y: item.y + item.gap
|
|
1476
|
+
}, 5);
|
|
1477
|
+
seg({
|
|
1478
|
+
x: rodX,
|
|
1479
|
+
y: item.y - 10
|
|
1480
|
+
}, {
|
|
1481
|
+
x: rodX,
|
|
1482
|
+
y: item.y + item.gap + 10
|
|
1483
|
+
}, 8);
|
|
1484
|
+
const v = pageDir(dirVec(item.v));
|
|
1485
|
+
const mid = {
|
|
1486
|
+
x: rodX,
|
|
1487
|
+
y: item.y + item.gap / 2
|
|
1488
|
+
};
|
|
1489
|
+
seg(mid, {
|
|
1490
|
+
x: mid.x + v.x * 48,
|
|
1491
|
+
y: mid.y + v.y * 48
|
|
1492
|
+
}, 15);
|
|
1493
|
+
if (item.label) out.push(textBox(rodX, item.y + item.gap + 24, item.label, "middle"));
|
|
1494
|
+
break;
|
|
1495
|
+
}
|
|
1496
|
+
case "vector": {
|
|
1497
|
+
const f = facing(dirVec(item.dir));
|
|
1498
|
+
if (f.kind === "plane") {
|
|
1499
|
+
const L = item.length ?? 44;
|
|
1500
|
+
seg(item, {
|
|
1501
|
+
x: item.x + f.dir.x * L,
|
|
1502
|
+
y: item.y + f.dir.y * L
|
|
1503
|
+
}, 15);
|
|
1504
|
+
} else out.push({
|
|
1505
|
+
kind: "circle",
|
|
1506
|
+
x: item.x,
|
|
1507
|
+
y: item.y,
|
|
1508
|
+
r: 12
|
|
1509
|
+
});
|
|
1510
|
+
if (item.label) out.push(textBox(item.x + 14, item.y + 4, item.label));
|
|
1511
|
+
break;
|
|
1512
|
+
}
|
|
1513
|
+
case "compass":
|
|
1514
|
+
out.push({
|
|
1515
|
+
kind: "circle",
|
|
1516
|
+
x: item.x,
|
|
1517
|
+
y: item.y,
|
|
1518
|
+
r: 15
|
|
1519
|
+
});
|
|
1520
|
+
break;
|
|
1521
|
+
case "transformer":
|
|
1522
|
+
out.push({
|
|
1523
|
+
kind: "rect",
|
|
1524
|
+
x: item.x - 115,
|
|
1525
|
+
y: item.y - 72,
|
|
1526
|
+
w: 230,
|
|
1527
|
+
h: 150
|
|
1528
|
+
});
|
|
1529
|
+
break;
|
|
1530
|
+
case "relay":
|
|
1531
|
+
out.push({
|
|
1532
|
+
kind: "rect",
|
|
1533
|
+
x: item.x - 110,
|
|
1534
|
+
y: item.y - 60,
|
|
1535
|
+
w: 220,
|
|
1536
|
+
h: 130
|
|
1537
|
+
});
|
|
1538
|
+
break;
|
|
1539
|
+
case "point":
|
|
1540
|
+
out.push({
|
|
1541
|
+
kind: "circle",
|
|
1542
|
+
x: item.x,
|
|
1543
|
+
y: item.y,
|
|
1544
|
+
r: 5
|
|
1545
|
+
});
|
|
1546
|
+
out.push(textBox(item.x + 7, item.y - 6, item.label));
|
|
1547
|
+
break;
|
|
1548
|
+
case "text":
|
|
1549
|
+
out.push(textBox(item.x, item.y, item.text, item.anchor ?? "start"));
|
|
1550
|
+
break;
|
|
1551
|
+
case "dim":
|
|
1552
|
+
seg({
|
|
1553
|
+
x: item.x1,
|
|
1554
|
+
y: item.y1
|
|
1555
|
+
}, {
|
|
1556
|
+
x: item.x2,
|
|
1557
|
+
y: item.y2
|
|
1558
|
+
}, 5);
|
|
1559
|
+
break;
|
|
1560
|
+
case "line":
|
|
1561
|
+
seg({
|
|
1562
|
+
x: item.x1,
|
|
1563
|
+
y: item.y1
|
|
1564
|
+
}, {
|
|
1565
|
+
x: item.x2,
|
|
1566
|
+
y: item.y2
|
|
1567
|
+
}, 4);
|
|
1568
|
+
if (item.label) out.push(textBox(item.x2 + 6, item.y2 + 4, item.label));
|
|
1569
|
+
break;
|
|
1570
|
+
case "angle": if (item.label) {
|
|
1571
|
+
const r = item.r ?? 26;
|
|
1572
|
+
const m = (item.from + item.to) / 2 * Math.PI / 180;
|
|
1573
|
+
out.push(textBox(item.x + (r + 12) * Math.cos(m), item.y - (r + 12) * Math.sin(m) + 4, item.label, "middle"));
|
|
1574
|
+
}
|
|
1575
|
+
}
|
|
1576
|
+
return out;
|
|
1577
|
+
}
|
|
1578
|
+
/** Screen-reader text generated from the items when the author gives none. */
|
|
1579
|
+
function describe(scene) {
|
|
1580
|
+
const parts = scene.items.flatMap((item) => {
|
|
1581
|
+
switch (item.type) {
|
|
1582
|
+
case "field": return [`a uniform magnetic field ${item.dir === "in" ? "into the page" : item.dir === "out" ? "out of the page" : `pointing ${item.dir}`}${item.label ? `, ${item.label}` : ""}`];
|
|
1583
|
+
case "wire": return [`a long wire with current ${item.current === "in" ? "into" : "out of"} the page${item.label ? `, ${item.label}` : ""}`];
|
|
1584
|
+
case "conductor": return [`a straight conductor${item.label ? `, ${item.label}` : ""}`];
|
|
1585
|
+
case "magnet": return [`a bar magnet with its north pole to the ${item.north}`];
|
|
1586
|
+
case "coil": return [item.view === "face" ? "a flat coil seen face on" : `a flat coil whose normal is at ${item.normalDeg ?? 30} degrees to the field`];
|
|
1587
|
+
case "solenoid": return ["a solenoid"];
|
|
1588
|
+
case "transformer": return [`a transformer with ${item.primaryTurns} primary turns and ${item.secondaryTurns} secondary turns`];
|
|
1589
|
+
case "relay": return [`a relay, ${item.energised ? "energised with its contacts closed" : "switched off with its contacts open"}`];
|
|
1590
|
+
case "charge": return [`a ${item.sign === "+" ? "positive" : "negative"} charge moving ${typeof item.v === "number" ? `at ${item.v} degrees` : item.v}`];
|
|
1591
|
+
case "slab": return [`a slab carrying a current, with ${item.carriers} as carriers`];
|
|
1592
|
+
case "rails": return [`a rod sliding ${item.v} along two rails`];
|
|
1593
|
+
case "point": return [`point ${item.label}`];
|
|
1594
|
+
default: return [];
|
|
1595
|
+
}
|
|
1596
|
+
});
|
|
1597
|
+
return parts.length ? `Diagram: ${parts.join("; ")}.` : "Magnetism diagram.";
|
|
1598
|
+
}
|
|
1599
|
+
function MagnetismDiagram({ scene }) {
|
|
1600
|
+
const [w, h] = scene.size ?? DEFAULT_SIZE;
|
|
1601
|
+
const items = scene.items;
|
|
1602
|
+
const paths = scene.fieldLines || items.some((i) => i.type === "compass") ? sceneCurrents(items) : [];
|
|
1603
|
+
const lines = scene.fieldLines ? traceSceneLines(scene) : [];
|
|
1604
|
+
const obstacles = occupied(items);
|
|
1605
|
+
const layer = (types) => items.filter((i) => types.includes(i.type));
|
|
1606
|
+
return /* @__PURE__ */ jsxs("figure", {
|
|
1607
|
+
className: "lab-diagram",
|
|
1608
|
+
"data-diagram": "magnetism",
|
|
1609
|
+
children: [/* @__PURE__ */ jsxs(Figure, {
|
|
1610
|
+
viewBox: [w, h],
|
|
1611
|
+
domain: "physics",
|
|
1612
|
+
label: scene.alt ?? describe(scene),
|
|
1613
|
+
children: [
|
|
1614
|
+
layer(["field"]).map((item, i) => /* @__PURE__ */ jsx(FieldRegion, {
|
|
1615
|
+
item,
|
|
1616
|
+
obstacles
|
|
1617
|
+
}, `f${i}`)),
|
|
1618
|
+
lines.map((line, i) => /* @__PURE__ */ jsxs("g", { children: [/* @__PURE__ */ jsx("path", {
|
|
1619
|
+
d: pathOf(line.points),
|
|
1620
|
+
fill: "none",
|
|
1621
|
+
stroke: alpha(FIELD, 70),
|
|
1622
|
+
strokeWidth: STROKE.line
|
|
1623
|
+
}), line.arrows.map((k) => /* @__PURE__ */ jsx(Head, {
|
|
1624
|
+
at: line.points[k],
|
|
1625
|
+
dir: {
|
|
1626
|
+
x: line.points[k + 1].x - line.points[k - 1].x,
|
|
1627
|
+
y: line.points[k + 1].y - line.points[k - 1].y
|
|
1628
|
+
},
|
|
1629
|
+
color: FIELD
|
|
1630
|
+
}, k))] }, `l${i}`)),
|
|
1631
|
+
items.map((item, i) => {
|
|
1632
|
+
switch (item.type) {
|
|
1633
|
+
case "wire": return /* @__PURE__ */ jsx(Wire, { item }, i);
|
|
1634
|
+
case "conductor": return /* @__PURE__ */ jsx(Conductor, {
|
|
1635
|
+
item,
|
|
1636
|
+
items
|
|
1637
|
+
}, i);
|
|
1638
|
+
case "magnet": return /* @__PURE__ */ jsx(Magnet, { item }, i);
|
|
1639
|
+
case "coil": return /* @__PURE__ */ jsx(Coil, {
|
|
1640
|
+
item,
|
|
1641
|
+
items
|
|
1642
|
+
}, i);
|
|
1643
|
+
case "solenoid": return /* @__PURE__ */ jsx(Solenoid, { item }, i);
|
|
1644
|
+
case "bar": return /* @__PURE__ */ jsx(Bar, {
|
|
1645
|
+
item,
|
|
1646
|
+
items
|
|
1647
|
+
}, i);
|
|
1648
|
+
case "transformer": return /* @__PURE__ */ jsx(Transformer, { item }, i);
|
|
1649
|
+
case "relay": return /* @__PURE__ */ jsx(Relay, { item }, i);
|
|
1650
|
+
case "charge": return /* @__PURE__ */ jsx(Charge, {
|
|
1651
|
+
item,
|
|
1652
|
+
items
|
|
1653
|
+
}, i);
|
|
1654
|
+
case "slab": return /* @__PURE__ */ jsx(Slab, {
|
|
1655
|
+
item,
|
|
1656
|
+
items
|
|
1657
|
+
}, i);
|
|
1658
|
+
case "rails": return /* @__PURE__ */ jsx(Rails, {
|
|
1659
|
+
item,
|
|
1660
|
+
items
|
|
1661
|
+
}, i);
|
|
1662
|
+
case "vector": return /* @__PURE__ */ jsx(Vector, { item }, i);
|
|
1663
|
+
case "compass": return /* @__PURE__ */ jsx(Compass, {
|
|
1664
|
+
item,
|
|
1665
|
+
items,
|
|
1666
|
+
paths
|
|
1667
|
+
}, i);
|
|
1668
|
+
case "dim": return /* @__PURE__ */ jsx(Dim, { item }, i);
|
|
1669
|
+
case "angle": return /* @__PURE__ */ jsx(Angle, { item }, i);
|
|
1670
|
+
case "line": return /* @__PURE__ */ jsx(PlainLine, { item }, i);
|
|
1671
|
+
case "point": return /* @__PURE__ */ jsxs("g", { children: [/* @__PURE__ */ jsx("circle", {
|
|
1672
|
+
cx: item.x,
|
|
1673
|
+
cy: item.y,
|
|
1674
|
+
r: 3,
|
|
1675
|
+
fill: HUE.ink
|
|
1676
|
+
}), /* @__PURE__ */ jsx(FigText, {
|
|
1677
|
+
x: item.x + 7,
|
|
1678
|
+
y: item.y - 6,
|
|
1679
|
+
size: "label",
|
|
1680
|
+
children: item.label
|
|
1681
|
+
})] }, i);
|
|
1682
|
+
case "text": return /* @__PURE__ */ jsx(FigText, {
|
|
1683
|
+
x: item.x,
|
|
1684
|
+
y: item.y,
|
|
1685
|
+
size: "label",
|
|
1686
|
+
anchor: item.anchor ?? "start",
|
|
1687
|
+
tone: item.tone ?? "ink",
|
|
1688
|
+
children: rich(item.text)
|
|
1689
|
+
}, i);
|
|
1690
|
+
default: return null;
|
|
1691
|
+
}
|
|
1692
|
+
})
|
|
1693
|
+
]
|
|
1694
|
+
}), scene.caption ? /* @__PURE__ */ jsx("figcaption", {
|
|
1695
|
+
className: "lab-diagram-caption",
|
|
1696
|
+
children: richHtml(scene.caption)
|
|
1697
|
+
}) : null]
|
|
1698
|
+
});
|
|
1699
|
+
}
|
|
1700
|
+
|
|
1701
|
+
//#endregion
|
|
1702
|
+
export { MagnetismDiagram };
|