@classytic/labs 0.2.0 → 0.3.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/LICENSE +1 -1
- package/README.md +196 -8
- package/dist/algorithms/GraphAlgorithmLab.d.mts +21 -0
- package/dist/algorithms/GraphAlgorithmLab.mjs +183 -0
- package/dist/algorithms/GraphView.d.mts +23 -0
- package/dist/algorithms/GraphView.mjs +86 -0
- package/dist/algorithms/GridPathLab.d.mts +15 -0
- package/dist/algorithms/GridPathLab.mjs +164 -0
- package/dist/algorithms/GrowthLab.d.mts +18 -0
- package/dist/algorithms/GrowthLab.mjs +191 -0
- package/dist/algorithms/HashLab.d.mts +21 -0
- package/dist/algorithms/HashLab.mjs +199 -0
- package/dist/algorithms/HeapDualView.d.mts +17 -0
- package/dist/algorithms/HeapDualView.mjs +115 -0
- package/dist/algorithms/HeapQuestLab.d.mts +23 -0
- package/dist/algorithms/HeapQuestLab.mjs +152 -0
- package/dist/algorithms/LearningChecks.mjs +36 -0
- package/dist/algorithms/ListLab.d.mts +22 -0
- package/dist/algorithms/ListLab.mjs +208 -0
- package/dist/algorithms/SearchLab.d.mts +17 -0
- package/dist/algorithms/SearchLab.mjs +201 -0
- package/dist/algorithms/SortingLab.d.mts +22 -0
- package/dist/algorithms/SortingLab.mjs +190 -0
- package/dist/algorithms/TraceTransport.d.mts +19 -0
- package/dist/algorithms/TraceTransport.mjs +192 -0
- package/dist/algorithms/TreeQuestLab.d.mts +28 -0
- package/dist/algorithms/TreeQuestLab.mjs +289 -0
- package/dist/algorithms/TreeScene.d.mts +17 -0
- package/dist/algorithms/TreeScene.mjs +199 -0
- package/dist/algorithms/contract.d.mts +75 -0
- package/dist/algorithms/core/index.d.mts +12 -0
- package/dist/algorithms/core/index.mjs +11 -0
- package/dist/algorithms/cost-derivation/core.d.mts +66 -0
- package/dist/algorithms/cost-derivation/core.mjs +93 -0
- package/dist/algorithms/cost-derivation/index.d.mts +2 -0
- package/dist/algorithms/cost-derivation/preset.d.mts +19 -0
- package/dist/algorithms/cost-derivation/preset.mjs +371 -0
- package/dist/algorithms/dp/index.d.mts +3 -0
- package/dist/algorithms/dp/index.mjs +3 -0
- package/dist/algorithms/dp.d.mts +7 -0
- package/dist/algorithms/dp.mjs +32 -0
- package/dist/algorithms/graph/index.d.mts +5 -0
- package/dist/algorithms/graph/index.mjs +5 -0
- package/dist/algorithms/graph.d.mts +9 -0
- package/dist/algorithms/graph.mjs +148 -0
- package/dist/algorithms/growth.d.mts +56 -0
- package/dist/algorithms/growth.mjs +99 -0
- package/dist/algorithms/hashing.d.mts +63 -0
- package/dist/algorithms/hashing.mjs +121 -0
- package/dist/algorithms/heap/index.d.mts +3 -0
- package/dist/algorithms/heap/index.mjs +4 -0
- package/dist/algorithms/heap.d.mts +38 -0
- package/dist/algorithms/heap.mjs +190 -0
- package/dist/algorithms/index.d.mts +33 -0
- package/dist/algorithms/index.mjs +32 -0
- package/dist/algorithms/lists.d.mts +53 -0
- package/dist/algorithms/lists.mjs +254 -0
- package/dist/algorithms/normalize.d.mts +6 -0
- package/dist/algorithms/normalize.mjs +27 -0
- package/dist/algorithms/presets.d.mts +6 -0
- package/dist/algorithms/presets.mjs +94 -0
- package/dist/algorithms/react/index.d.mts +9 -0
- package/dist/algorithms/react/index.mjs +12 -0
- package/dist/algorithms/search.d.mts +45 -0
- package/dist/algorithms/search.mjs +65 -0
- package/dist/algorithms/sequence-contract.d.mts +39 -0
- package/dist/algorithms/sequence-contract.mjs +5 -0
- package/dist/algorithms/sorting.d.mts +30 -0
- package/dist/algorithms/sorting.mjs +219 -0
- package/dist/algorithms/tree/index.d.mts +6 -0
- package/dist/algorithms/tree/index.mjs +6 -0
- package/dist/algorithms/tree-builder.d.mts +8 -0
- package/dist/algorithms/tree-builder.mjs +54 -0
- package/dist/algorithms/tree-contract.d.mts +95 -0
- package/dist/algorithms/tree-layout.d.mts +9 -0
- package/dist/algorithms/tree-layout.mjs +47 -0
- package/dist/algorithms/tree-presets.d.mts +7 -0
- package/dist/algorithms/tree-presets.mjs +92 -0
- package/dist/algorithms/tree.d.mts +10 -0
- package/dist/algorithms/tree.mjs +375 -0
- package/dist/authoring/index.d.mts +11 -0
- package/dist/authoring/index.mjs +20 -0
- package/dist/authoring/quality.d.mts +18 -0
- package/dist/authoring/quality.mjs +54 -0
- package/dist/authoring/report.d.mts +24 -0
- package/dist/authoring/report.mjs +27 -0
- package/dist/biology/cell-division/activity.d.mts +1 -0
- package/dist/biology/cell-division/activity.mjs +82 -0
- package/dist/biology/cell-division/core.d.mts +24 -0
- package/dist/biology/cell-division/core.mjs +87 -0
- package/dist/biology/cell-division/index.d.mts +5 -0
- package/dist/biology/cell-division/meiosis-activity.d.mts +1 -0
- package/dist/biology/cell-division/meiosis-activity.mjs +81 -0
- package/dist/biology/cell-division/meiosis-core.d.mts +19 -0
- package/dist/biology/cell-division/meiosis-core.mjs +89 -0
- package/dist/biology/cell-division/meiosis-preset.d.mts +35 -0
- package/dist/biology/cell-division/meiosis-preset.mjs +117 -0
- package/dist/biology/cell-division/meiosis-scene.d.mts +13 -0
- package/dist/biology/cell-division/meiosis-scene.mjs +149 -0
- package/dist/biology/cell-division/preset.d.mts +38 -0
- package/dist/biology/cell-division/preset.mjs +226 -0
- package/dist/biology/cell-energy/activity.d.mts +1 -0
- package/dist/biology/cell-energy/activity.mjs +74 -0
- package/dist/biology/cell-energy/core.d.mts +25 -0
- package/dist/biology/cell-energy/core.mjs +17 -0
- package/dist/biology/cell-energy/index.d.mts +2 -0
- package/dist/biology/cell-energy/preset.d.mts +40 -0
- package/dist/biology/cell-energy/preset.mjs +110 -0
- package/dist/biology/cell-system/activity.d.mts +1 -0
- package/dist/biology/cell-system/activity.mjs +74 -0
- package/dist/biology/cell-system/core.d.mts +18 -0
- package/dist/biology/cell-system/core.mjs +63 -0
- package/dist/biology/cell-system/index.d.mts +2 -0
- package/dist/biology/cell-system/preset.d.mts +33 -0
- package/dist/biology/cell-system/preset.mjs +82 -0
- package/dist/biology/enzyme-rate/preset.mjs +113 -45
- package/dist/biology/genetic-cross/grid.mjs +117 -105
- package/dist/biology/genetic-cross/preset.d.mts +3 -1
- package/dist/biology/genetic-cross/preset.mjs +17 -60
- package/dist/biology/genetic-cross/sex-linked.mjs +33 -74
- package/dist/biology/index.d.mts +12 -1
- package/dist/biology/index.mjs +12 -1
- package/dist/biology/membrane-transport/activity.d.mts +1 -0
- package/dist/biology/membrane-transport/activity.mjs +74 -0
- package/dist/biology/membrane-transport/core.d.mts +28 -0
- package/dist/biology/membrane-transport/core.mjs +49 -0
- package/dist/biology/membrane-transport/index.d.mts +2 -0
- package/dist/biology/membrane-transport/preset.d.mts +43 -0
- package/dist/biology/membrane-transport/preset.mjs +131 -0
- package/dist/biology/photosynthesis-factors/preset.mjs +129 -75
- package/dist/biology/punnett-cross/preset.mjs +2 -1
- package/dist/biology/respiration/preset.mjs +75 -64
- package/dist/biology/sequence/central-dogma.mjs +194 -187
- package/dist/biology/sequence/preset.mjs +172 -128
- package/dist/blocks/authoring.mjs +329 -171
- package/dist/blocks/catalog.d.mts +16 -0
- package/dist/blocks/catalog.mjs +9 -0
- package/dist/blocks/domains.d.mts +11 -0
- package/dist/blocks/domains.mjs +15 -0
- package/dist/blocks/gallery.d.mts +3 -0
- package/dist/blocks/gallery.mjs +6 -0
- package/dist/blocks/index.d.mts +7 -6950
- package/dist/blocks/index.mjs +9 -107
- package/dist/blocks/lab-block.mjs +1 -42
- package/dist/blocks/lab-config.mjs +108 -31
- package/dist/blocks/lazy-resolve.d.mts +20 -0
- package/dist/blocks/lazy-resolve.mjs +24 -0
- package/dist/blocks/lazy.d.mts +10 -0
- package/dist/blocks/lazy.mjs +13 -0
- package/dist/blocks/lesson.mjs +1 -1
- package/dist/build/CircuitEditor.mjs +377 -366
- package/dist/build/CircuitScene.d.mts +10 -2
- package/dist/build/CircuitScene.mjs +298 -209
- package/dist/build/editor/index.d.mts +4 -0
- package/dist/build/editor/index.mjs +6 -0
- package/dist/build/editor-ui.mjs +60 -83
- package/dist/build/index.d.mts +2 -2
- package/dist/build/parts/ammeter.mjs +1 -1
- package/dist/build/parts/bulb.mjs +1 -1
- package/dist/build/parts/capacitor.mjs +1 -1
- package/dist/build/parts/cell.mjs +1 -1
- package/dist/build/parts/diode.mjs +1 -1
- package/dist/build/parts/mosfet.mjs +1 -1
- package/dist/build/parts/node.mjs +1 -1
- package/dist/build/parts/resistor.mjs +1 -1
- package/dist/build/parts/shared.mjs +1 -1
- package/dist/build/parts/switch.mjs +1 -1
- package/dist/build/runtime/index.d.mts +8 -0
- package/dist/build/runtime/index.mjs +10 -0
- package/dist/build/viewport.mjs +231 -0
- package/dist/chem/battery.d.mts +4 -1
- package/dist/chem/battery.mjs +314 -190
- package/dist/chem/bohr-atom.d.mts +4 -1
- package/dist/chem/bohr-atom.mjs +78 -23
- package/dist/chem/crystal-lattice/activity.d.mts +6 -0
- package/dist/chem/crystal-lattice/activity.mjs +95 -0
- package/dist/chem/crystal-lattice/core.d.mts +19 -0
- package/dist/chem/crystal-lattice/core.mjs +101 -0
- package/dist/chem/crystal-lattice/index.d.mts +3 -0
- package/dist/chem/crystal-lattice/preset.d.mts +44 -0
- package/dist/chem/crystal-lattice/preset.mjs +244 -0
- package/dist/chem/diffusion/asset.mjs +76 -38
- package/dist/chem/diffusion/preset.d.mts +4 -1
- package/dist/chem/diffusion/preset.mjs +143 -90
- package/dist/chem/electrochem/preset.d.mts +4 -1
- package/dist/chem/electrochem/preset.mjs +362 -242
- package/dist/chem/equilibrium/preset.d.mts +4 -1
- package/dist/chem/equilibrium/preset.mjs +333 -280
- package/dist/chem/gas-box/preset.d.mts +4 -1
- package/dist/chem/gas-box/preset.mjs +186 -143
- package/dist/chem/index.d.mts +17 -2
- package/dist/chem/index.mjs +16 -1
- package/dist/chem/kinetics/preset.d.mts +4 -1
- package/dist/chem/kinetics/preset.mjs +311 -313
- package/dist/chem/molecular-geometry/activity.d.mts +6 -0
- package/dist/chem/molecular-geometry/activity.mjs +90 -0
- package/dist/chem/molecular-geometry/core.d.mts +30 -0
- package/dist/chem/molecular-geometry/core.mjs +156 -0
- package/dist/chem/molecular-geometry/index.d.mts +3 -0
- package/dist/chem/molecular-geometry/preset.d.mts +45 -0
- package/dist/chem/molecular-geometry/preset.mjs +291 -0
- package/dist/chem/orbital-overlap/activity.d.mts +6 -0
- package/dist/chem/orbital-overlap/activity.mjs +82 -0
- package/dist/chem/orbital-overlap/core.d.mts +12 -0
- package/dist/chem/orbital-overlap/core.mjs +27 -0
- package/dist/chem/orbital-overlap/index.d.mts +3 -0
- package/dist/chem/orbital-overlap/preset.d.mts +39 -0
- package/dist/chem/orbital-overlap/preset.mjs +200 -0
- package/dist/chem/orbitals/activity.d.mts +6 -0
- package/dist/chem/orbitals/activity.mjs +90 -0
- package/dist/chem/orbitals/core.d.mts +27 -0
- package/dist/chem/orbitals/core.mjs +100 -0
- package/dist/chem/orbitals/index.d.mts +3 -0
- package/dist/chem/orbitals/preset.d.mts +47 -0
- package/dist/chem/orbitals/preset.mjs +213 -0
- package/dist/chem/periodic-trends/preset.d.mts +5 -1
- package/dist/chem/periodic-trends/preset.mjs +274 -164
- package/dist/chem/reaction-lab.d.mts +4 -1
- package/dist/chem/reaction-lab.mjs +100 -50
- package/dist/chem/reaction-profile.d.mts +4 -1
- package/dist/chem/reaction-profile.mjs +202 -181
- package/dist/chem/solution/dilution.d.mts +5 -1
- package/dist/chem/solution/dilution.mjs +165 -131
- package/dist/chem/solution/field.d.mts +14 -5
- package/dist/chem/solution/field.mjs +122 -88
- package/dist/chem/solution/solution-box.d.mts +5 -1
- package/dist/chem/solution/solution-box.mjs +132 -84
- package/dist/chem/stereochemistry/activity.d.mts +6 -0
- package/dist/chem/stereochemistry/activity.mjs +88 -0
- package/dist/chem/stereochemistry/core.d.mts +25 -0
- package/dist/chem/stereochemistry/core.mjs +130 -0
- package/dist/chem/stereochemistry/index.d.mts +3 -0
- package/dist/chem/stereochemistry/preset.d.mts +43 -0
- package/dist/chem/stereochemistry/preset.mjs +245 -0
- package/dist/chem/stoichiometry/preset.d.mts +5 -1
- package/dist/chem/stoichiometry/preset.mjs +290 -196
- package/dist/chem/titration/index.d.mts +1 -1
- package/dist/chem/titration/preset.d.mts +10 -2
- package/dist/chem/titration/preset.mjs +465 -322
- package/dist/chem/visual/atom.mjs +41 -0
- package/dist/circuits/ac-dc/activity-plan.mjs +70 -0
- package/dist/circuits/ac-dc/asset.mjs +2 -2
- package/dist/circuits/ac-dc/preset.d.mts +8 -1
- package/dist/circuits/ac-dc/preset.mjs +76 -46
- package/dist/circuits/brownout/activity-plan.mjs +83 -0
- package/dist/circuits/brownout/preset.d.mts +2 -1
- package/dist/circuits/brownout/preset.mjs +211 -258
- package/dist/circuits/capacitor-leak/activity-plan.mjs +83 -0
- package/dist/circuits/capacitor-leak/preset.d.mts +4 -1
- package/dist/circuits/capacitor-leak/preset.mjs +267 -188
- package/dist/circuits/circuit/activity-plan.mjs +83 -0
- package/dist/circuits/circuit/asset.mjs +73 -184
- package/dist/circuits/circuit/preset.d.mts +3 -0
- package/dist/circuits/circuit/preset.mjs +54 -32
- package/dist/circuits/circuit-builder.d.mts +10 -14
- package/dist/circuits/circuit-builder.mjs +16 -320
- package/dist/circuits/circuit-divider-activity-plan.mjs +101 -0
- package/dist/circuits/circuit-lab.d.mts +7 -1
- package/dist/circuits/circuit-lab.mjs +113 -125
- package/dist/circuits/cmos-gate/activity-plans.mjs +309 -0
- package/dist/circuits/cmos-gate/index.d.mts +4 -1
- package/dist/circuits/cmos-gate/inverter.d.mts +25 -0
- package/dist/circuits/cmos-gate/inverter.mjs +274 -0
- package/dist/circuits/cmos-gate/model.mjs +186 -0
- package/dist/circuits/cmos-gate/nand.d.mts +23 -0
- package/dist/circuits/cmos-gate/nand.mjs +288 -0
- package/dist/circuits/cmos-gate/nor.d.mts +23 -0
- package/dist/circuits/cmos-gate/nor.mjs +323 -0
- package/dist/circuits/cmos-gate/preset.d.mts +4 -75
- package/dist/circuits/cmos-gate/rnmos-not.d.mts +26 -0
- package/dist/circuits/cmos-gate/rnmos-not.mjs +264 -0
- package/dist/circuits/cmos-gate/shared.mjs +6 -0
- package/dist/circuits/diode/activity-plan.mjs +97 -0
- package/dist/circuits/diode/preset.d.mts +2 -1
- package/dist/circuits/diode/preset.mjs +140 -99
- package/dist/circuits/index.d.mts +10 -2
- package/dist/circuits/index.mjs +10 -2
- package/dist/circuits/rc-charging/activity-plan.mjs +101 -0
- package/dist/circuits/rc-charging/preset.d.mts +2 -1
- package/dist/circuits/rc-charging/preset.mjs +159 -114
- package/dist/circuits/semiconductor/bjt-inside.d.mts +23 -0
- package/dist/circuits/semiconductor/bjt-inside.mjs +303 -0
- package/dist/circuits/semiconductor/conduction.d.mts +19 -0
- package/dist/circuits/semiconductor/conduction.mjs +203 -0
- package/dist/circuits/semiconductor/device-activity-plans.mjs +230 -0
- package/dist/circuits/semiconductor/hall-effect.d.mts +19 -0
- package/dist/circuits/semiconductor/hall-effect.mjs +250 -0
- package/dist/circuits/semiconductor/index.d.mts +6 -1
- package/dist/circuits/semiconductor/mosfet-inside.d.mts +26 -0
- package/dist/circuits/semiconductor/mosfet-inside.mjs +452 -0
- package/dist/circuits/semiconductor/pn-junction.d.mts +25 -0
- package/dist/circuits/semiconductor/pn-junction.mjs +333 -0
- package/dist/circuits/semiconductor/preset.d.mts +6 -102
- package/dist/circuits/semiconductor/shared.mjs +183 -0
- package/dist/circuits/semiconductor/silicon-lattice.d.mts +32 -0
- package/dist/circuits/semiconductor/silicon-lattice.mjs +266 -0
- package/dist/circuits/semiconductor/transport-activity-plans.mjs +251 -0
- package/dist/circuits/transistor/activity-plan.mjs +90 -0
- package/dist/circuits/transistor/preset.d.mts +2 -1
- package/dist/circuits/transistor/preset.mjs +168 -145
- package/dist/commerce/accounting/equation-balance.mjs +183 -75
- package/dist/commerce/accounting/journal-poster.mjs +290 -258
- package/dist/commerce/accounting/statement-sorter.mjs +230 -171
- package/dist/commerce/activity.d.mts +58 -0
- package/dist/commerce/activity.mjs +64 -0
- package/dist/commerce/economics/demand-shift-vs-move.mjs +210 -89
- package/dist/commerce/economics/elasticity-revenue.mjs +190 -64
- package/dist/commerce/economics/market-equilibrium.mjs +222 -68
- package/dist/commerce/finance/apportion.d.mts +35 -0
- package/dist/commerce/finance/apportion.mjs +231 -0
- package/dist/commerce/finance/break-even.d.mts +28 -0
- package/dist/commerce/finance/break-even.mjs +385 -0
- package/dist/commerce/finance/business-lesson.d.mts +49 -0
- package/dist/commerce/finance/business-lesson.mjs +388 -0
- package/dist/commerce/finance/compound-interest.d.mts +35 -0
- package/dist/commerce/finance/compound-interest.mjs +515 -0
- package/dist/commerce/finance/depreciation.d.mts +30 -0
- package/dist/commerce/finance/depreciation.mjs +324 -0
- package/dist/commerce/finance/eoq.d.mts +27 -0
- package/dist/commerce/finance/eoq.mjs +266 -0
- package/dist/commerce/finance/index.d.mts +12 -0
- package/dist/commerce/finance/inventory-policy.d.mts +35 -0
- package/dist/commerce/finance/inventory-policy.mjs +56 -0
- package/dist/commerce/finance/limited-company.d.mts +25 -0
- package/dist/commerce/finance/limited-company.mjs +423 -0
- package/dist/commerce/finance/ratio-lab.d.mts +37 -0
- package/dist/commerce/finance/ratio-lab.mjs +339 -0
- package/dist/commerce/finance/statement-builder.d.mts +37 -0
- package/dist/commerce/finance/statement-builder.mjs +303 -0
- package/dist/commerce/finance/supply-chain.d.mts +37 -0
- package/dist/commerce/finance/supply-chain.mjs +341 -0
- package/dist/commerce/finance/warehouse-allocation.d.mts +27 -0
- package/dist/commerce/finance/warehouse-allocation.mjs +49 -0
- package/dist/commerce/index.d.mts +14 -1
- package/dist/commerce/index.mjs +14 -1
- package/dist/core/index.d.mts +1 -1
- package/dist/core/util.d.mts +0 -4
- package/dist/core/util.mjs +6 -13
- package/dist/discrete/arrangements/preset.mjs +135 -119
- package/dist/discrete/bayes/preset.mjs +283 -249
- package/dist/discrete/binomial/preset.mjs +133 -107
- package/dist/discrete/combination-studio/figure.mjs +20 -53
- package/dist/discrete/combination-studio/preset.mjs +109 -168
- package/dist/discrete/core/combinatorics.d.mts +5 -2
- package/dist/discrete/core/combinatorics.mjs +7 -2
- package/dist/discrete/counting-slots/preset.mjs +185 -223
- package/dist/discrete/counting-tree/preset.mjs +146 -66
- package/dist/discrete/expected-value/preset.mjs +153 -235
- package/dist/discrete/hypergeometric/preset.mjs +142 -109
- package/dist/discrete/index.d.mts +12 -4
- package/dist/discrete/index.mjs +9 -3
- package/dist/discrete/induction/core.mjs +17 -0
- package/dist/discrete/induction/index.d.mts +1 -0
- package/dist/discrete/induction/preset.d.mts +17 -0
- package/dist/discrete/induction/preset.mjs +112 -0
- package/dist/discrete/invariant/core.d.mts +8 -0
- package/dist/discrete/invariant/core.mjs +17 -0
- package/dist/discrete/invariant/index.d.mts +2 -0
- package/dist/discrete/invariant/preset.d.mts +22 -0
- package/dist/discrete/invariant/preset.mjs +159 -0
- package/dist/discrete/karnaugh/preset.mjs +185 -139
- package/dist/discrete/lln/asset.mjs +2 -2
- package/dist/discrete/lln/preset.mjs +151 -55
- package/dist/discrete/modular-clock/core.mjs +14 -0
- package/dist/discrete/modular-clock/index.d.mts +1 -0
- package/dist/discrete/modular-clock/preset.d.mts +21 -0
- package/dist/discrete/modular-clock/preset.mjs +192 -0
- package/dist/discrete/monte-carlo/preset.mjs +178 -97
- package/dist/discrete/monty-hall/preset.mjs +199 -219
- package/dist/discrete/outcome-builder/preset.mjs +153 -128
- package/dist/discrete/pascal/preset.mjs +141 -136
- package/dist/discrete/pigeonhole/index.d.mts +1 -0
- package/dist/discrete/pigeonhole/preset.d.mts +19 -0
- package/dist/discrete/pigeonhole/preset.mjs +129 -0
- package/dist/discrete/proof/core.d.mts +74 -0
- package/dist/discrete/proof/core.mjs +44 -0
- package/dist/discrete/proof-builder/index.d.mts +1 -0
- package/dist/discrete/proof-builder/preset.d.mts +18 -0
- package/dist/discrete/proof-builder/preset.mjs +238 -0
- package/dist/discrete/recurrence/core.mjs +18 -0
- package/dist/discrete/recurrence/index.d.mts +1 -0
- package/dist/discrete/recurrence/preset.d.mts +19 -0
- package/dist/discrete/recurrence/preset.mjs +118 -0
- package/dist/discrete/rule-figures.mjs +114 -0
- package/dist/discrete/rules.mjs +100 -0
- package/dist/discrete/sample-space/preset.mjs +156 -125
- package/dist/discrete/selection/preset.mjs +153 -176
- package/dist/discrete/statement-logic/core.d.mts +41 -0
- package/dist/discrete/statement-logic/core.mjs +53 -0
- package/dist/discrete/statement-logic/index.d.mts +2 -0
- package/dist/discrete/statement-logic/preset.d.mts +42 -0
- package/dist/discrete/statement-logic/preset.mjs +245 -0
- package/dist/discrete/truth-table/preset.mjs +134 -138
- package/dist/discrete/venn/preset.mjs +153 -144
- package/dist/discrete/visuals/reasoning-scenes.mjs +236 -0
- package/dist/domains/accounting/apportion/manifest.mjs +56 -0
- package/dist/domains/accounting/apportion/runtime.mjs +5 -0
- package/dist/domains/accounting/break-even/manifest.mjs +55 -0
- package/dist/domains/accounting/break-even/runtime.mjs +5 -0
- package/dist/domains/accounting/business-lesson/manifest.mjs +54 -0
- package/dist/domains/accounting/business-lesson/runtime.mjs +5 -0
- package/dist/domains/accounting/business-lesson/schema.mjs +97 -0
- package/dist/domains/accounting/compound-interest/manifest.mjs +58 -0
- package/dist/domains/accounting/compound-interest/runtime.mjs +5 -0
- package/dist/domains/accounting/depreciation/manifest.mjs +60 -0
- package/dist/domains/accounting/depreciation/runtime.mjs +5 -0
- package/dist/domains/accounting/eoq/manifest.mjs +57 -0
- package/dist/domains/accounting/eoq/runtime.mjs +5 -0
- package/dist/domains/accounting/equation-balance/authoring.mjs +159 -0
- package/dist/domains/accounting/equation-balance/manifest.mjs +77 -0
- package/dist/domains/accounting/equation-balance/runtime.mjs +20 -0
- package/dist/domains/accounting/journal-poster/manifest.mjs +68 -0
- package/dist/domains/accounting/journal-poster/runtime.mjs +20 -0
- package/dist/domains/accounting/limited-company/manifest.mjs +55 -0
- package/dist/domains/accounting/limited-company/runtime.mjs +5 -0
- package/dist/domains/accounting/ratio-lab/manifest.mjs +73 -0
- package/dist/domains/accounting/ratio-lab/runtime.mjs +5 -0
- package/dist/domains/accounting/reorder-point/manifest.mjs +60 -0
- package/dist/domains/accounting/reorder-point/runtime.mjs +5 -0
- package/dist/domains/accounting/shared.mjs +65 -0
- package/dist/domains/accounting/statement-builder/manifest.mjs +57 -0
- package/dist/domains/accounting/statement-builder/runtime.mjs +5 -0
- package/dist/domains/accounting/statement-sorter/manifest.mjs +62 -0
- package/dist/domains/accounting/statement-sorter/runtime.mjs +20 -0
- package/dist/domains/accounting/warehouse-allocation/manifest.mjs +53 -0
- package/dist/domains/accounting/warehouse-allocation/runtime.mjs +5 -0
- package/dist/domains/activity-map.d.mts +9 -0
- package/dist/domains/activity-map.mjs +33 -0
- package/dist/domains/biology/cell-energy/activity.mjs +3 -0
- package/dist/domains/biology/cell-energy/manifest.mjs +65 -0
- package/dist/domains/biology/cell-energy/runtime.mjs +3 -0
- package/dist/domains/biology/cell-system/activity.mjs +3 -0
- package/dist/domains/biology/cell-system/manifest.mjs +81 -0
- package/dist/domains/biology/cell-system/runtime.mjs +3 -0
- package/dist/domains/biology/central-dogma/manifest.mjs +51 -0
- package/dist/domains/biology/central-dogma/runtime.mjs +5 -0
- package/dist/domains/biology/enzyme-rate/manifest.mjs +69 -0
- package/dist/domains/biology/enzyme-rate/runtime.mjs +5 -0
- package/dist/domains/biology/genetic-cross/manifest.mjs +132 -0
- package/dist/domains/biology/genetic-cross/runtime.mjs +24 -0
- package/dist/domains/biology/meiosis-explorer/activity.mjs +3 -0
- package/dist/domains/biology/meiosis-explorer/manifest.mjs +71 -0
- package/dist/domains/biology/meiosis-explorer/runtime.mjs +3 -0
- package/dist/domains/biology/membrane-transport/activity.mjs +3 -0
- package/dist/domains/biology/membrane-transport/manifest.mjs +73 -0
- package/dist/domains/biology/membrane-transport/runtime.mjs +3 -0
- package/dist/domains/biology/mitosis-explorer/activity.mjs +3 -0
- package/dist/domains/biology/mitosis-explorer/manifest.mjs +69 -0
- package/dist/domains/biology/mitosis-explorer/runtime.mjs +3 -0
- package/dist/domains/biology/photosynthesis-factors/manifest.mjs +58 -0
- package/dist/domains/biology/photosynthesis-factors/runtime.mjs +5 -0
- package/dist/domains/biology/punnett-cross/manifest.mjs +72 -0
- package/dist/domains/biology/punnett-cross/runtime.mjs +5 -0
- package/dist/domains/biology/respiration/manifest.mjs +55 -0
- package/dist/domains/biology/respiration/runtime.mjs +5 -0
- package/dist/domains/biology/sequence/manifest.mjs +64 -0
- package/dist/domains/biology/sequence/runtime.mjs +18 -0
- package/dist/domains/biology/sex-linked-cross/manifest.mjs +75 -0
- package/dist/domains/biology/sex-linked-cross/runtime.mjs +5 -0
- package/dist/domains/block-loaders.mjs +22 -0
- package/dist/domains/block-sets/accounting.mjs +37 -0
- package/dist/domains/block-sets/biology.mjs +35 -0
- package/dist/domains/block-sets/chem.mjs +45 -0
- package/dist/domains/block-sets/circuits.mjs +47 -0
- package/dist/domains/block-sets/discrete.mjs +61 -0
- package/dist/domains/block-sets/economics.mjs +15 -0
- package/dist/domains/block-sets/exam.mjs +9 -0
- package/dist/domains/block-sets/geography.mjs +9 -0
- package/dist/domains/block-sets/geometry.mjs +10 -0
- package/dist/domains/block-sets/ict.mjs +59 -0
- package/dist/domains/block-sets/language.mjs +31 -0
- package/dist/domains/block-sets/math.mjs +121 -0
- package/dist/domains/block-sets/ml.mjs +23 -0
- package/dist/domains/block-sets/networking.mjs +25 -0
- package/dist/domains/block-sets/physics.mjs +149 -0
- package/dist/domains/block-sets/statistics.mjs +27 -0
- package/dist/domains/blocks.mjs +11 -0
- package/dist/domains/catalog-map.mjs +6434 -0
- package/dist/domains/catalog.mjs +10 -0
- package/dist/domains/chem/atomic-orbital/activity.mjs +3 -0
- package/dist/domains/chem/atomic-orbital/manifest.mjs +71 -0
- package/dist/domains/chem/atomic-orbital/runtime.mjs +20 -0
- package/dist/domains/chem/battery/manifest.mjs +54 -0
- package/dist/domains/chem/battery/runtime.mjs +15 -0
- package/dist/domains/chem/bohr-atom/manifest.mjs +54 -0
- package/dist/domains/chem/bohr-atom/runtime.mjs +15 -0
- package/dist/domains/chem/crystal-lattice/activity.mjs +3 -0
- package/dist/domains/chem/crystal-lattice/manifest.mjs +68 -0
- package/dist/domains/chem/crystal-lattice/runtime.mjs +20 -0
- package/dist/domains/chem/dilution/manifest.mjs +57 -0
- package/dist/domains/chem/dilution/runtime.mjs +5 -0
- package/dist/domains/chem/electrochem/manifest.mjs +72 -0
- package/dist/domains/chem/electrochem/runtime.mjs +5 -0
- package/dist/domains/chem/gas-box/manifest.mjs +64 -0
- package/dist/domains/chem/gas-box/runtime.mjs +5 -0
- package/dist/domains/chem/kinetics/manifest.mjs +59 -0
- package/dist/domains/chem/kinetics/runtime.mjs +5 -0
- package/dist/domains/chem/le-chatelier/manifest.mjs +57 -0
- package/dist/domains/chem/le-chatelier/runtime.mjs +5 -0
- package/dist/domains/chem/molecular-geometry/activity.mjs +3 -0
- package/dist/domains/chem/molecular-geometry/manifest.mjs +74 -0
- package/dist/domains/chem/molecular-geometry/runtime.mjs +22 -0
- package/dist/domains/chem/orbital-overlap/activity.mjs +3 -0
- package/dist/domains/chem/orbital-overlap/manifest.mjs +60 -0
- package/dist/domains/chem/orbital-overlap/runtime.mjs +18 -0
- package/dist/domains/chem/periodic-trends/manifest.mjs +60 -0
- package/dist/domains/chem/periodic-trends/runtime.mjs +5 -0
- package/dist/domains/chem/reaction-lab/manifest.mjs +55 -0
- package/dist/domains/chem/reaction-lab/runtime.mjs +18 -0
- package/dist/domains/chem/reaction-profile/manifest.mjs +56 -0
- package/dist/domains/chem/reaction-profile/runtime.mjs +17 -0
- package/dist/domains/chem/solution-box/manifest.mjs +57 -0
- package/dist/domains/chem/solution-box/runtime.mjs +5 -0
- package/dist/domains/chem/stereochemistry/activity.mjs +3 -0
- package/dist/domains/chem/stereochemistry/manifest.mjs +65 -0
- package/dist/domains/chem/stereochemistry/runtime.mjs +21 -0
- package/dist/domains/chem/stoichiometry/manifest.mjs +61 -0
- package/dist/domains/chem/stoichiometry/runtime.mjs +5 -0
- package/dist/domains/chem/titration/manifest.mjs +60 -0
- package/dist/domains/chem/titration/runtime.mjs +5 -0
- package/dist/domains/circuits/bjt-inside/manifest.mjs +57 -0
- package/dist/domains/circuits/bjt-inside/runtime.mjs +5 -0
- package/dist/domains/circuits/brownout/manifest.mjs +59 -0
- package/dist/domains/circuits/brownout/runtime.mjs +5 -0
- package/dist/domains/circuits/capacitor-leak/manifest.mjs +61 -0
- package/dist/domains/circuits/capacitor-leak/runtime.mjs +5 -0
- package/dist/domains/circuits/circuit/manifest.mjs +64 -0
- package/dist/domains/circuits/circuit/runtime.mjs +32 -0
- package/dist/domains/circuits/circuit-builder/authoring.mjs +138 -0
- package/dist/domains/circuits/circuit-builder/manifest.mjs +78 -0
- package/dist/domains/circuits/circuit-builder/runtime.mjs +20 -0
- package/dist/domains/circuits/circuit-builder/shared.mjs +16 -0
- package/dist/domains/circuits/circuit-lab/manifest.mjs +64 -0
- package/dist/domains/circuits/circuit-lab/runtime.mjs +21 -0
- package/dist/domains/circuits/circuit-scene/authoring.mjs +33 -0
- package/dist/domains/circuits/circuit-scene/manifest.mjs +100 -0
- package/dist/domains/circuits/circuit-scene/runtime.mjs +25 -0
- package/dist/domains/circuits/cmos-inverter/manifest.mjs +69 -0
- package/dist/domains/circuits/cmos-inverter/runtime.mjs +5 -0
- package/dist/domains/circuits/cmos-nand/manifest.mjs +60 -0
- package/dist/domains/circuits/cmos-nand/runtime.mjs +5 -0
- package/dist/domains/circuits/cmos-nor/manifest.mjs +60 -0
- package/dist/domains/circuits/cmos-nor/runtime.mjs +5 -0
- package/dist/domains/circuits/conduction/manifest.mjs +57 -0
- package/dist/domains/circuits/conduction/runtime.mjs +5 -0
- package/dist/domains/circuits/diode/manifest.mjs +55 -0
- package/dist/domains/circuits/diode/runtime.mjs +5 -0
- package/dist/domains/circuits/hall-effect/manifest.mjs +51 -0
- package/dist/domains/circuits/hall-effect/runtime.mjs +5 -0
- package/dist/domains/circuits/mosfet-inside/manifest.mjs +58 -0
- package/dist/domains/circuits/mosfet-inside/runtime.mjs +5 -0
- package/dist/domains/circuits/pn-junction/manifest.mjs +57 -0
- package/dist/domains/circuits/pn-junction/runtime.mjs +5 -0
- package/dist/domains/circuits/rc-charging/manifest.mjs +59 -0
- package/dist/domains/circuits/rc-charging/runtime.mjs +5 -0
- package/dist/domains/circuits/rnmos-not/manifest.mjs +62 -0
- package/dist/domains/circuits/rnmos-not/runtime.mjs +5 -0
- package/dist/domains/circuits/silicon-lattice/manifest.mjs +63 -0
- package/dist/domains/circuits/silicon-lattice/runtime.mjs +5 -0
- package/dist/domains/circuits/transistor/manifest.mjs +60 -0
- package/dist/domains/circuits/transistor/runtime.mjs +5 -0
- package/dist/domains/discrete/arrangements/manifest.mjs +53 -0
- package/dist/domains/discrete/arrangements/runtime.mjs +5 -0
- package/dist/domains/discrete/bayes/manifest.mjs +58 -0
- package/dist/domains/discrete/bayes/runtime.mjs +5 -0
- package/dist/domains/discrete/binomial/manifest.mjs +50 -0
- package/dist/domains/discrete/binomial/runtime.mjs +5 -0
- package/dist/domains/discrete/combination-studio/manifest.mjs +72 -0
- package/dist/domains/discrete/combination-studio/runtime.mjs +5 -0
- package/dist/domains/discrete/counting-slots/manifest.mjs +74 -0
- package/dist/domains/discrete/counting-slots/runtime.mjs +5 -0
- package/dist/domains/discrete/counting-tree/manifest.mjs +60 -0
- package/dist/domains/discrete/counting-tree/runtime.mjs +5 -0
- package/dist/domains/discrete/expected-value/manifest.mjs +53 -0
- package/dist/domains/discrete/expected-value/runtime.mjs +5 -0
- package/dist/domains/discrete/hypergeometric/manifest.mjs +56 -0
- package/dist/domains/discrete/hypergeometric/runtime.mjs +5 -0
- package/dist/domains/discrete/induction-ladder/manifest.mjs +54 -0
- package/dist/domains/discrete/induction-ladder/runtime.mjs +5 -0
- package/dist/domains/discrete/invariant-detective/manifest.mjs +61 -0
- package/dist/domains/discrete/invariant-detective/runtime.mjs +5 -0
- package/dist/domains/discrete/karnaugh/manifest.mjs +69 -0
- package/dist/domains/discrete/karnaugh/runtime.mjs +5 -0
- package/dist/domains/discrete/lln/manifest.mjs +52 -0
- package/dist/domains/discrete/lln/runtime.mjs +5 -0
- package/dist/domains/discrete/modular-clock/manifest.mjs +58 -0
- package/dist/domains/discrete/modular-clock/runtime.mjs +5 -0
- package/dist/domains/discrete/monte-carlo/manifest.mjs +76 -0
- package/dist/domains/discrete/monte-carlo/runtime.mjs +5 -0
- package/dist/domains/discrete/monty-hall/manifest.mjs +53 -0
- package/dist/domains/discrete/monty-hall/runtime.mjs +5 -0
- package/dist/domains/discrete/outcome-builder/manifest.mjs +53 -0
- package/dist/domains/discrete/outcome-builder/runtime.mjs +5 -0
- package/dist/domains/discrete/pascal/manifest.mjs +57 -0
- package/dist/domains/discrete/pascal/runtime.mjs +5 -0
- package/dist/domains/discrete/pigeonhole-adversary/manifest.mjs +56 -0
- package/dist/domains/discrete/pigeonhole-adversary/runtime.mjs +5 -0
- package/dist/domains/discrete/proof-builder/manifest.mjs +117 -0
- package/dist/domains/discrete/proof-builder/runtime.mjs +5 -0
- package/dist/domains/discrete/recurrence-builder/manifest.mjs +55 -0
- package/dist/domains/discrete/recurrence-builder/runtime.mjs +5 -0
- package/dist/domains/discrete/rule-card/builtins.mjs +17 -0
- package/dist/domains/discrete/rule-card/manifest.mjs +81 -0
- package/dist/domains/discrete/rule-card/presets.mjs +23 -0
- package/dist/domains/discrete/rule-card/runtime.mjs +28 -0
- package/dist/domains/discrete/sample-space/manifest.mjs +77 -0
- package/dist/domains/discrete/sample-space/runtime.mjs +5 -0
- package/dist/domains/discrete/selection/manifest.mjs +55 -0
- package/dist/domains/discrete/selection/runtime.mjs +5 -0
- package/dist/domains/discrete/statement-logic/manifest.mjs +106 -0
- package/dist/domains/discrete/statement-logic/runtime.mjs +5 -0
- package/dist/domains/discrete/truth-table/manifest.mjs +57 -0
- package/dist/domains/discrete/truth-table/runtime.mjs +5 -0
- package/dist/domains/discrete/venn/manifest.mjs +73 -0
- package/dist/domains/discrete/venn/runtime.mjs +5 -0
- package/dist/domains/economics/demand-shift-vs-move/manifest.mjs +47 -0
- package/dist/domains/economics/demand-shift-vs-move/runtime.mjs +5 -0
- package/dist/domains/economics/elasticity-revenue/manifest.mjs +60 -0
- package/dist/domains/economics/elasticity-revenue/runtime.mjs +24 -0
- package/dist/domains/economics/market-equilibrium/manifest.mjs +53 -0
- package/dist/domains/economics/market-equilibrium/runtime.mjs +28 -0
- package/dist/domains/exam/exam-question/manifest.mjs +96 -0
- package/dist/domains/exam/exam-question/runtime.mjs +5 -0
- package/dist/domains/geography/cycle/manifest.mjs +135 -0
- package/dist/domains/geography/cycle/runtime.mjs +26 -0
- package/dist/domains/geometry/geometry-board/authoring.mjs +33 -0
- package/dist/domains/geometry/geometry-board/manifest.mjs +135 -0
- package/dist/domains/geometry/geometry-board/runtime.mjs +16 -0
- package/dist/domains/geometry/geometry-board/scene.mjs +62 -0
- package/dist/domains/geometry/intersecting-circles/manifest.mjs +55 -0
- package/dist/domains/geometry/intersecting-circles/runtime.mjs +16 -0
- package/dist/domains/ict/array-vs-list/manifest.mjs +75 -0
- package/dist/domains/ict/array-vs-list/runtime.mjs +5 -0
- package/dist/domains/ict/base-odometer/manifest.mjs +72 -0
- package/dist/domains/ict/base-odometer/runtime.mjs +5 -0
- package/dist/domains/ict/binary-counter/manifest.mjs +65 -0
- package/dist/domains/ict/binary-counter/runtime.mjs +235 -0
- package/dist/domains/ict/binary-display/manifest.mjs +59 -0
- package/dist/domains/ict/binary-display/runtime.mjs +5 -0
- package/dist/domains/ict/binary-search/manifest.mjs +70 -0
- package/dist/domains/ict/binary-search/runtime.mjs +5 -0
- package/dist/domains/ict/bit-grouper/manifest.mjs +59 -0
- package/dist/domains/ict/bit-grouper/runtime.mjs +5 -0
- package/dist/domains/ict/complexity-growth/manifest.mjs +69 -0
- package/dist/domains/ict/complexity-growth/runtime.mjs +5 -0
- package/dist/domains/ict/cost-derivation/manifest.mjs +56 -0
- package/dist/domains/ict/cost-derivation/runtime.mjs +12 -0
- package/dist/domains/ict/graph-algorithm/authoring.mjs +246 -0
- package/dist/domains/ict/graph-algorithm/manifest.mjs +87 -0
- package/dist/domains/ict/graph-algorithm/runtime.mjs +5 -0
- package/dist/domains/ict/grid-path-dp/authoring.mjs +75 -0
- package/dist/domains/ict/grid-path-dp/manifest.mjs +66 -0
- package/dist/domains/ict/grid-path-dp/runtime.mjs +5 -0
- package/dist/domains/ict/hash-table/manifest.mjs +68 -0
- package/dist/domains/ict/hash-table/runtime.mjs +5 -0
- package/dist/domains/ict/heap-quest/authoring.mjs +123 -0
- package/dist/domains/ict/heap-quest/manifest.mjs +76 -0
- package/dist/domains/ict/heap-quest/runtime.mjs +5 -0
- package/dist/domains/ict/jk-flip-flop/manifest.mjs +65 -0
- package/dist/domains/ict/jk-flip-flop/runtime.mjs +273 -0
- package/dist/domains/ict/latch-vs-flip-flop/manifest.mjs +61 -0
- package/dist/domains/ict/latch-vs-flip-flop/runtime.mjs +227 -0
- package/dist/domains/ict/logic-builder/manifest.mjs +67 -0
- package/dist/domains/ict/logic-builder/runtime.mjs +17 -0
- package/dist/domains/ict/logic-circuit/manifest.mjs +79 -0
- package/dist/domains/ict/logic-circuit/runtime.mjs +25 -0
- package/dist/domains/ict/logic-gate/manifest.mjs +71 -0
- package/dist/domains/ict/logic-gate/runtime.mjs +5 -0
- package/dist/domains/ict/place-value-dial/manifest.mjs +60 -0
- package/dist/domains/ict/place-value-dial/runtime.mjs +5 -0
- package/dist/domains/ict/sequence-detector/manifest.mjs +68 -0
- package/dist/domains/ict/sequence-detector/runtime.mjs +328 -0
- package/dist/domains/ict/shift-register/manifest.mjs +65 -0
- package/dist/domains/ict/shift-register/runtime.mjs +199 -0
- package/dist/domains/ict/sorting-quest/manifest.mjs +76 -0
- package/dist/domains/ict/sorting-quest/runtime.mjs +5 -0
- package/dist/domains/ict/sr-latch/manifest.mjs +65 -0
- package/dist/domains/ict/sr-latch/runtime.mjs +253 -0
- package/dist/domains/ict/tree-quest/authoring.mjs +265 -0
- package/dist/domains/ict/tree-quest/manifest.mjs +90 -0
- package/dist/domains/ict/tree-quest/runtime.mjs +5 -0
- package/dist/domains/ict/twos-complement/manifest.mjs +71 -0
- package/dist/domains/ict/twos-complement/runtime.mjs +276 -0
- package/dist/domains/ict/wire-a-chip/manifest.mjs +72 -0
- package/dist/domains/ict/wire-a-chip/runtime.mjs +287 -0
- package/dist/domains/language/agreement/authoring.mjs +75 -0
- package/dist/domains/language/agreement/manifest.mjs +61 -0
- package/dist/domains/language/agreement/runtime.mjs +20 -0
- package/dist/domains/language/article-lens/authoring.mjs +86 -0
- package/dist/domains/language/article-lens/manifest.mjs +61 -0
- package/dist/domains/language/article-lens/runtime.mjs +20 -0
- package/dist/domains/language/cloze/authoring.mjs +69 -0
- package/dist/domains/language/cloze/manifest.mjs +61 -0
- package/dist/domains/language/cloze/runtime.mjs +20 -0
- package/dist/domains/language/dictation/authoring.mjs +66 -0
- package/dist/domains/language/dictation/manifest.mjs +62 -0
- package/dist/domains/language/dictation/runtime.mjs +19 -0
- package/dist/domains/language/error-correct/authoring.mjs +45 -0
- package/dist/domains/language/error-correct/manifest.mjs +60 -0
- package/dist/domains/language/error-correct/runtime.mjs +19 -0
- package/dist/domains/language/listening/authoring.mjs +83 -0
- package/dist/domains/language/listening/manifest.mjs +67 -0
- package/dist/domains/language/listening/runtime.mjs +20 -0
- package/dist/domains/language/preposition/authoring.mjs +99 -0
- package/dist/domains/language/preposition/manifest.mjs +61 -0
- package/dist/domains/language/preposition/runtime.mjs +20 -0
- package/dist/domains/language/reading/authoring.mjs +87 -0
- package/dist/domains/language/reading/manifest.mjs +62 -0
- package/dist/domains/language/reading/runtime.mjs +22 -0
- package/dist/domains/language/sentence-builder/authoring.mjs +74 -0
- package/dist/domains/language/sentence-builder/manifest.mjs +63 -0
- package/dist/domains/language/sentence-builder/runtime.mjs +22 -0
- package/dist/domains/language/shared.mjs +311 -0
- package/dist/domains/language/transform/authoring.mjs +89 -0
- package/dist/domains/language/transform/manifest.mjs +65 -0
- package/dist/domains/language/transform/runtime.mjs +23 -0
- package/dist/domains/language/word-match/authoring.mjs +83 -0
- package/dist/domains/language/word-match/manifest.mjs +59 -0
- package/dist/domains/language/word-match/runtime.mjs +21 -0
- package/dist/domains/manifests.mjs +573 -0
- package/dist/domains/math/area-model/manifest.mjs +57 -0
- package/dist/domains/math/area-model/runtime.mjs +17 -0
- package/dist/domains/math/area-rearrange/manifest.mjs +65 -0
- package/dist/domains/math/area-rearrange/runtime.mjs +12 -0
- package/dist/domains/math/authoring-kit.mjs +340 -0
- package/dist/domains/math/balance-algebra/manifest.mjs +58 -0
- package/dist/domains/math/balance-algebra/runtime.mjs +18 -0
- package/dist/domains/math/bearings/manifest.mjs +65 -0
- package/dist/domains/math/bearings/runtime.mjs +12 -0
- package/dist/domains/math/broken-tree/manifest.mjs +59 -0
- package/dist/domains/math/broken-tree/runtime.mjs +12 -0
- package/dist/domains/math/calculus-authoring.mjs +127 -0
- package/dist/domains/math/circle-geometry/authoring.mjs +55 -0
- package/dist/domains/math/circle-geometry/manifest.mjs +65 -0
- package/dist/domains/math/circle-geometry/runtime.mjs +5 -0
- package/dist/domains/math/complex-plane/manifest.mjs +64 -0
- package/dist/domains/math/complex-plane/runtime.mjs +5 -0
- package/dist/domains/math/conic/authoring.mjs +84 -0
- package/dist/domains/math/conic/manifest.mjs +67 -0
- package/dist/domains/math/conic/runtime.mjs +5 -0
- package/dist/domains/math/custom-scene/authoring.mjs +34 -0
- package/dist/domains/math/custom-scene/manifest.mjs +72 -0
- package/dist/domains/math/custom-scene/runtime.mjs +29 -0
- package/dist/domains/math/custom-scene/shared.mjs +51 -0
- package/dist/domains/math/derivation/authoring.mjs +65 -0
- package/dist/domains/math/derivation/manifest.mjs +61 -0
- package/dist/domains/math/derivation/runtime.mjs +19 -0
- package/dist/domains/math/derivative-explorer/authoring.mjs +15 -0
- package/dist/domains/math/derivative-explorer/manifest.mjs +54 -0
- package/dist/domains/math/derivative-explorer/runtime.mjs +17 -0
- package/dist/domains/math/differential-equation/authoring.mjs +120 -0
- package/dist/domains/math/differential-equation/manifest.mjs +67 -0
- package/dist/domains/math/differential-equation/runtime.mjs +20 -0
- package/dist/domains/math/division-workbench/manifest.mjs +65 -0
- package/dist/domains/math/division-workbench/runtime.mjs +3 -0
- package/dist/domains/math/domain-range/authoring.mjs +87 -0
- package/dist/domains/math/domain-range/manifest.mjs +63 -0
- package/dist/domains/math/domain-range/runtime.mjs +5 -0
- package/dist/domains/math/expression-order/manifest.mjs +77 -0
- package/dist/domains/math/expression-order/runtime.mjs +5 -0
- package/dist/domains/math/fraction-bar/manifest.mjs +61 -0
- package/dist/domains/math/fraction-bar/runtime.mjs +5 -0
- package/dist/domains/math/function-machine/manifest.mjs +73 -0
- package/dist/domains/math/function-machine/runtime.mjs +5 -0
- package/dist/domains/math/fundamental-theorem/authoring.mjs +15 -0
- package/dist/domains/math/fundamental-theorem/manifest.mjs +61 -0
- package/dist/domains/math/fundamental-theorem/runtime.mjs +18 -0
- package/dist/domains/math/geometry-foundations/activity.mjs +3 -0
- package/dist/domains/math/geometry-foundations/manifest.mjs +75 -0
- package/dist/domains/math/geometry-foundations/runtime.mjs +3 -0
- package/dist/domains/math/geometry-transform/manifest.mjs +73 -0
- package/dist/domains/math/geometry-transform/runtime.mjs +41 -0
- package/dist/domains/math/gradient-descent/authoring.mjs +76 -0
- package/dist/domains/math/gradient-descent/manifest.mjs +55 -0
- package/dist/domains/math/gradient-descent/runtime.mjs +18 -0
- package/dist/domains/math/graph/authoring.mjs +156 -0
- package/dist/domains/math/graph/manifest.mjs +62 -0
- package/dist/domains/math/graph/runtime.mjs +20 -0
- package/dist/domains/math/growing-pattern/manifest.mjs +57 -0
- package/dist/domains/math/growing-pattern/runtime.mjs +17 -0
- package/dist/domains/math/harmonic-form/manifest.mjs +53 -0
- package/dist/domains/math/harmonic-form/runtime.mjs +12 -0
- package/dist/domains/math/identity-proof/manifest.mjs +71 -0
- package/dist/domains/math/identity-proof/runtime.mjs +12 -0
- package/dist/domains/math/integral-explorer/authoring.mjs +15 -0
- package/dist/domains/math/integral-explorer/manifest.mjs +56 -0
- package/dist/domains/math/integral-explorer/runtime.mjs +19 -0
- package/dist/domains/math/interactive-problem/authoring.mjs +295 -0
- package/dist/domains/math/interactive-problem/manifest.mjs +65 -0
- package/dist/domains/math/interactive-problem/runtime.mjs +26 -0
- package/dist/domains/math/iteration/manifest.mjs +60 -0
- package/dist/domains/math/iteration/runtime.mjs +12 -0
- package/dist/domains/math/limit-explorer/authoring.mjs +15 -0
- package/dist/domains/math/limit-explorer/manifest.mjs +54 -0
- package/dist/domains/math/limit-explorer/runtime.mjs +17 -0
- package/dist/domains/math/linear-model/manifest.mjs +81 -0
- package/dist/domains/math/linear-model/runtime.mjs +19 -0
- package/dist/domains/math/linear-system/manifest.mjs +57 -0
- package/dist/domains/math/linear-system/runtime.mjs +24 -0
- package/dist/domains/math/lines-in-space/manifest.mjs +74 -0
- package/dist/domains/math/lines-in-space/runtime.mjs +12 -0
- package/dist/domains/math/measurement/activity.mjs +3 -0
- package/dist/domains/math/measurement/manifest.mjs +81 -0
- package/dist/domains/math/measurement/runtime.mjs +3 -0
- package/dist/domains/math/mystery-bucket/manifest.mjs +57 -0
- package/dist/domains/math/mystery-bucket/runtime.mjs +17 -0
- package/dist/domains/math/newton-method/authoring.mjs +72 -0
- package/dist/domains/math/newton-method/manifest.mjs +61 -0
- package/dist/domains/math/newton-method/runtime.mjs +18 -0
- package/dist/domains/math/number-line/manifest.mjs +57 -0
- package/dist/domains/math/number-line/runtime.mjs +17 -0
- package/dist/domains/math/number-structure/manifest.mjs +71 -0
- package/dist/domains/math/number-structure/runtime.mjs +3 -0
- package/dist/domains/math/oblique-triangle/manifest.mjs +67 -0
- package/dist/domains/math/oblique-triangle/runtime.mjs +12 -0
- package/dist/domains/math/partial-fractions/manifest.mjs +71 -0
- package/dist/domains/math/partial-fractions/runtime.mjs +12 -0
- package/dist/domains/math/percent-bar/manifest.mjs +66 -0
- package/dist/domains/math/percent-bar/runtime.mjs +5 -0
- package/dist/domains/math/phase-portrait/authoring.mjs +132 -0
- package/dist/domains/math/phase-portrait/manifest.mjs +64 -0
- package/dist/domains/math/phase-portrait/runtime.mjs +21 -0
- package/dist/domains/math/polynomial-solver/manifest.mjs +57 -0
- package/dist/domains/math/polynomial-solver/runtime.mjs +5 -0
- package/dist/domains/math/radian-wrap/manifest.mjs +56 -0
- package/dist/domains/math/radian-wrap/runtime.mjs +12 -0
- package/dist/domains/math/rate-machine/manifest.mjs +73 -0
- package/dist/domains/math/rate-machine/runtime.mjs +5 -0
- package/dist/domains/math/ratio-share/manifest.mjs +61 -0
- package/dist/domains/math/ratio-share/runtime.mjs +5 -0
- package/dist/domains/math/receipt-totals/manifest.mjs +63 -0
- package/dist/domains/math/receipt-totals/runtime.mjs +24 -0
- package/dist/domains/math/schemas.mjs +79 -0
- package/dist/domains/math/sequence-predict/manifest.mjs +65 -0
- package/dist/domains/math/sequence-predict/runtime.mjs +5 -0
- package/dist/domains/math/shared.mjs +19 -0
- package/dist/domains/math/slide-rule/manifest.mjs +38 -0
- package/dist/domains/math/slide-rule/runtime.mjs +12 -0
- package/dist/domains/math/solid-net/manifest.mjs +65 -0
- package/dist/domains/math/solid-net/runtime.mjs +12 -0
- package/dist/domains/math/straight-line/authoring.mjs +86 -0
- package/dist/domains/math/straight-line/manifest.mjs +76 -0
- package/dist/domains/math/straight-line/runtime.mjs +5 -0
- package/dist/domains/math/system-solve/manifest.mjs +71 -0
- package/dist/domains/math/system-solve/runtime.mjs +36 -0
- package/dist/domains/math/taylor-series/authoring.mjs +81 -0
- package/dist/domains/math/taylor-series/manifest.mjs +62 -0
- package/dist/domains/math/taylor-series/runtime.mjs +19 -0
- package/dist/domains/math/triangle-trig/authoring.mjs +94 -0
- package/dist/domains/math/triangle-trig/manifest.mjs +75 -0
- package/dist/domains/math/triangle-trig/runtime.mjs +18 -0
- package/dist/domains/math/trig-explorer/manifest.mjs +54 -0
- package/dist/domains/math/trig-explorer/runtime.mjs +16 -0
- package/dist/domains/math/trig-signs/manifest.mjs +57 -0
- package/dist/domains/math/trig-signs/runtime.mjs +5 -0
- package/dist/domains/math/vertex-parabola/manifest.mjs +52 -0
- package/dist/domains/math/vertex-parabola/runtime.mjs +12 -0
- package/dist/domains/ml/activity.mjs +80 -0
- package/dist/domains/ml/classifier-threshold/manifest.mjs +68 -0
- package/dist/{ml/classifier/preset.d.mts → domains/ml/classifier-threshold/runtime.d.mts} +1 -1
- package/dist/{ml/classifier/preset.mjs → domains/ml/classifier-threshold/runtime.mjs} +124 -122
- package/dist/domains/ml/decision-boundary/manifest.mjs +56 -0
- package/dist/{ml/boundary/preset.d.mts → domains/ml/decision-boundary/runtime.d.mts} +1 -1
- package/dist/{ml/boundary/preset.mjs → domains/ml/decision-boundary/runtime.mjs} +137 -77
- package/dist/domains/ml/embedding-space/embedding.mjs +121 -0
- package/dist/domains/ml/embedding-space/manifest.mjs +75 -0
- package/dist/domains/ml/embedding-space/runtime.mjs +366 -0
- package/dist/domains/ml/kmeans/manifest.mjs +78 -0
- package/dist/{ml/kmeans/preset.d.mts → domains/ml/kmeans/runtime.d.mts} +1 -1
- package/dist/{ml/kmeans/preset.mjs → domains/ml/kmeans/runtime.mjs} +84 -49
- package/dist/domains/ml/knn/manifest.mjs +58 -0
- package/dist/{ml/knn/preset.d.mts → domains/ml/knn/runtime.d.mts} +1 -1
- package/dist/{ml/knn/preset.mjs → domains/ml/knn/runtime.mjs} +185 -97
- package/dist/domains/ml/next-token/manifest.mjs +64 -0
- package/dist/domains/ml/next-token/model.mjs +112 -0
- package/dist/domains/ml/next-token/runtime.mjs +271 -0
- package/dist/domains/ml/regression/manifest.mjs +73 -0
- package/dist/{ml/regression/preset.d.mts → domains/ml/regression/runtime.d.mts} +1 -1
- package/dist/{ml/regression/preset.mjs → domains/ml/regression/runtime.mjs} +97 -124
- package/dist/domains/networking/ethernet-pinout/manifest.mjs +66 -0
- package/dist/domains/networking/ethernet-pinout/runtime.mjs +254 -0
- package/dist/domains/networking/layer-encapsulation/manifest.mjs +66 -0
- package/dist/domains/networking/layer-encapsulation/runtime.mjs +281 -0
- package/dist/domains/networking/network-media/manifest.mjs +75 -0
- package/dist/domains/networking/network-media/runtime.mjs +213 -0
- package/dist/domains/networking/packet-journey/manifest.mjs +61 -0
- package/dist/domains/networking/packet-journey/runtime.d.mts +24 -0
- package/dist/domains/networking/packet-journey/runtime.mjs +238 -0
- package/dist/domains/networking/subnet-builder/manifest.mjs +68 -0
- package/dist/domains/networking/subnet-builder/runtime.mjs +249 -0
- package/dist/domains/networking/switch-learning/manifest.mjs +62 -0
- package/dist/domains/networking/switch-learning/runtime.mjs +250 -0
- package/dist/domains/networking/vlan-designer/manifest.mjs +66 -0
- package/dist/domains/networking/vlan-designer/runtime.mjs +276 -0
- package/dist/domains/networking/vpn-tunnel/manifest.mjs +68 -0
- package/dist/domains/networking/vpn-tunnel/runtime.mjs +256 -0
- package/dist/domains/physics/alternating-current/manifest.mjs +67 -0
- package/dist/domains/physics/alternating-current/runtime.mjs +5 -0
- package/dist/domains/physics/atwood/manifest.mjs +50 -0
- package/dist/domains/physics/atwood/runtime.mjs +5 -0
- package/dist/domains/physics/bloch-sphere/activity.mjs +3 -0
- package/dist/domains/physics/bloch-sphere/manifest.mjs +70 -0
- package/dist/domains/physics/bloch-sphere/runtime.mjs +3 -0
- package/dist/domains/physics/bullet-walls/manifest.mjs +52 -0
- package/dist/domains/physics/bullet-walls/runtime.mjs +5 -0
- package/dist/domains/physics/carnot/manifest.mjs +59 -0
- package/dist/domains/physics/carnot/runtime.mjs +5 -0
- package/dist/domains/physics/circular-motion/manifest.mjs +53 -0
- package/dist/domains/physics/circular-motion/runtime.mjs +5 -0
- package/dist/domains/physics/collision-track/manifest.mjs +54 -0
- package/dist/domains/physics/collision-track/runtime.mjs +5 -0
- package/dist/domains/physics/couple-torque/manifest.mjs +57 -0
- package/dist/domains/physics/couple-torque/runtime.mjs +5 -0
- package/dist/domains/physics/doppler/manifest.mjs +49 -0
- package/dist/domains/physics/doppler/runtime.mjs +5 -0
- package/dist/domains/physics/double-slit/activity.mjs +3 -0
- package/dist/domains/physics/double-slit/manifest.mjs +62 -0
- package/dist/domains/physics/double-slit/runtime.mjs +3 -0
- package/dist/domains/physics/efficiency/manifest.mjs +69 -0
- package/dist/domains/physics/efficiency/runtime.mjs +5 -0
- package/dist/domains/physics/electric-field/manifest.mjs +49 -0
- package/dist/domains/physics/electric-field/runtime.mjs +5 -0
- package/dist/domains/physics/electric-flux/manifest.mjs +53 -0
- package/dist/domains/physics/electric-flux/runtime.mjs +5 -0
- package/dist/domains/physics/energy-skate/manifest.mjs +57 -0
- package/dist/domains/physics/energy-skate/runtime.mjs +5 -0
- package/dist/domains/physics/entropy/manifest.mjs +53 -0
- package/dist/domains/physics/entropy/runtime.mjs +5 -0
- package/dist/domains/physics/falling-target/manifest.mjs +65 -0
- package/dist/domains/physics/falling-target/runtime.mjs +12 -0
- package/dist/domains/physics/fission-chain/activity.mjs +3 -0
- package/dist/domains/physics/fission-chain/manifest.mjs +61 -0
- package/dist/domains/physics/fission-chain/runtime.mjs +3 -0
- package/dist/domains/physics/fluid-pressure/manifest.mjs +61 -0
- package/dist/domains/physics/fluid-pressure/runtime.mjs +5 -0
- package/dist/domains/physics/force-pairs/manifest.mjs +60 -0
- package/dist/domains/physics/force-pairs/runtime.mjs +5 -0
- package/dist/domains/physics/gas-process/manifest.mjs +58 -0
- package/dist/domains/physics/gas-process/runtime.mjs +5 -0
- package/dist/domains/physics/gauss-law/manifest.mjs +51 -0
- package/dist/domains/physics/gauss-law/runtime.mjs +5 -0
- package/dist/domains/physics/gravitation/manifest.mjs +52 -0
- package/dist/domains/physics/gravitation/runtime.mjs +5 -0
- package/dist/domains/physics/gravity-drop/manifest.mjs +54 -0
- package/dist/domains/physics/gravity-drop/runtime.mjs +5 -0
- package/dist/domains/physics/heat-transfer/manifest.mjs +59 -0
- package/dist/domains/physics/heat-transfer/runtime.mjs +5 -0
- package/dist/domains/physics/heating-curve/manifest.mjs +61 -0
- package/dist/domains/physics/heating-curve/runtime.mjs +5 -0
- package/dist/domains/physics/impulse/manifest.mjs +52 -0
- package/dist/domains/physics/impulse/runtime.mjs +5 -0
- package/dist/domains/physics/intercept/manifest.mjs +68 -0
- package/dist/domains/physics/intercept/runtime.mjs +12 -0
- package/dist/domains/physics/kepler/manifest.mjs +53 -0
- package/dist/domains/physics/kepler/runtime.mjs +5 -0
- package/dist/domains/physics/length-contraction/activity.mjs +3 -0
- package/dist/domains/physics/length-contraction/manifest.mjs +59 -0
- package/dist/domains/physics/length-contraction/runtime.mjs +3 -0
- package/dist/domains/physics/lens-imaging/manifest.mjs +57 -0
- package/dist/domains/physics/lens-imaging/runtime.mjs +5 -0
- package/dist/domains/physics/lever/manifest.mjs +60 -0
- package/dist/domains/physics/lever/runtime.mjs +24 -0
- package/dist/domains/physics/linear-pursuit/manifest.mjs +74 -0
- package/dist/domains/physics/linear-pursuit/runtime.mjs +12 -0
- package/dist/domains/physics/lorentz/manifest.mjs +52 -0
- package/dist/domains/physics/lorentz/runtime.mjs +5 -0
- package/dist/domains/physics/lorentz-transformation/activity.mjs +3 -0
- package/dist/domains/physics/lorentz-transformation/manifest.mjs +65 -0
- package/dist/domains/physics/lorentz-transformation/runtime.mjs +3 -0
- package/dist/domains/physics/magnetism/manifest.mjs +52 -0
- package/dist/domains/physics/magnetism/runtime.mjs +5 -0
- package/dist/domains/physics/mirror-imaging/manifest.mjs +57 -0
- package/dist/domains/physics/mirror-imaging/runtime.mjs +5 -0
- package/dist/domains/physics/moving-launcher/manifest.mjs +66 -0
- package/dist/domains/physics/moving-launcher/runtime.mjs +12 -0
- package/dist/domains/physics/muon-survival/activity.mjs +3 -0
- package/dist/domains/physics/muon-survival/manifest.mjs +61 -0
- package/dist/domains/physics/muon-survival/runtime.mjs +3 -0
- package/dist/domains/physics/nuclear-binding-energy/activity.mjs +3 -0
- package/dist/domains/physics/nuclear-binding-energy/manifest.mjs +67 -0
- package/dist/domains/physics/nuclear-binding-energy/runtime.mjs +3 -0
- package/dist/domains/physics/optics/manifest.mjs +53 -0
- package/dist/domains/physics/optics/runtime.mjs +5 -0
- package/dist/domains/physics/orbit-lab/manifest.mjs +51 -0
- package/dist/domains/physics/orbit-lab/runtime.mjs +5 -0
- package/dist/domains/physics/photoelectric-effect/activity.mjs +3 -0
- package/dist/domains/physics/photoelectric-effect/manifest.mjs +67 -0
- package/dist/domains/physics/photoelectric-effect/runtime.mjs +3 -0
- package/dist/domains/physics/power/manifest.mjs +58 -0
- package/dist/domains/physics/power/runtime.mjs +5 -0
- package/dist/domains/physics/projectile-lab/core/formulas.mjs +26 -0
- package/dist/domains/physics/projectile-lab/core/model.mjs +43 -0
- package/dist/domains/physics/projectile-lab/manifest.mjs +53 -0
- package/dist/domains/physics/projectile-lab/runtime/index.mjs +239 -0
- package/dist/domains/physics/projectile-lab/runtime/svg.mjs +208 -0
- package/dist/domains/physics/quantum-gates/activity.mjs +3 -0
- package/dist/domains/physics/quantum-gates/manifest.mjs +68 -0
- package/dist/domains/physics/quantum-gates/runtime.mjs +3 -0
- package/dist/domains/physics/rain-relative/manifest.mjs +54 -0
- package/dist/domains/physics/rain-relative/runtime.mjs +5 -0
- package/dist/domains/physics/ramp-forces/manifest.mjs +65 -0
- package/dist/domains/physics/ramp-forces/runtime.mjs +25 -0
- package/dist/domains/physics/refraction/manifest.mjs +60 -0
- package/dist/domains/physics/refraction/runtime.mjs +5 -0
- package/dist/domains/physics/relativity-light-clock/activity.mjs +3 -0
- package/dist/domains/physics/relativity-light-clock/manifest.mjs +67 -0
- package/dist/domains/physics/relativity-light-clock/runtime.mjs +12 -0
- package/dist/domains/physics/relativity-simultaneity/activity.mjs +3 -0
- package/dist/domains/physics/relativity-simultaneity/manifest.mjs +59 -0
- package/dist/domains/physics/relativity-simultaneity/runtime.mjs +3 -0
- package/dist/domains/physics/ripple-tank/manifest.mjs +50 -0
- package/dist/domains/physics/ripple-tank/runtime.mjs +5 -0
- package/dist/domains/physics/river-boat/manifest.mjs +52 -0
- package/dist/domains/physics/river-boat/runtime.mjs +17 -0
- package/dist/domains/physics/shm/manifest.mjs +56 -0
- package/dist/domains/physics/shm/runtime.mjs +5 -0
- package/dist/domains/physics/spatial-lorentz/activity.mjs +3 -0
- package/dist/domains/physics/spatial-lorentz/manifest.mjs +61 -0
- package/dist/domains/physics/spatial-lorentz/runtime.mjs +20 -0
- package/dist/domains/physics/stopping-distance/manifest.mjs +61 -0
- package/dist/domains/physics/stopping-distance/runtime.mjs +5 -0
- package/dist/domains/physics/stress-strain/manifest.mjs +69 -0
- package/dist/domains/physics/stress-strain/runtime.mjs +5 -0
- package/dist/domains/physics/string-reflection/manifest.mjs +55 -0
- package/dist/domains/physics/string-reflection/runtime.mjs +5 -0
- package/dist/domains/physics/temperature-scales/manifest.mjs +57 -0
- package/dist/domains/physics/temperature-scales/runtime.mjs +5 -0
- package/dist/domains/physics/terminal-velocity/manifest.mjs +53 -0
- package/dist/domains/physics/terminal-velocity/runtime.mjs +5 -0
- package/dist/domains/physics/thermal-expansion/manifest.mjs +56 -0
- package/dist/domains/physics/thermal-expansion/runtime.mjs +5 -0
- package/dist/domains/physics/uncertainty-wave-packet/activity.mjs +3 -0
- package/dist/domains/physics/uncertainty-wave-packet/manifest.mjs +58 -0
- package/dist/domains/physics/uncertainty-wave-packet/runtime.mjs +3 -0
- package/dist/domains/physics/vector-board/manifest.mjs +62 -0
- package/dist/domains/physics/vector-board/runtime.mjs +27 -0
- package/dist/domains/physics/vector-types/manifest.mjs +51 -0
- package/dist/domains/physics/vector-types/runtime.mjs +5 -0
- package/dist/domains/physics/venturi/manifest.mjs +56 -0
- package/dist/domains/physics/venturi/runtime.mjs +12 -0
- package/dist/domains/physics/water-density/manifest.mjs +53 -0
- package/dist/domains/physics/water-density/runtime.mjs +5 -0
- package/dist/domains/physics/wave-lab/manifest.mjs +60 -0
- package/dist/domains/physics/wave-lab/runtime.mjs +5 -0
- package/dist/domains/physics/work-energy/manifest.mjs +54 -0
- package/dist/domains/physics/work-energy/runtime.mjs +5 -0
- package/dist/domains/physics/work-potential/manifest.mjs +63 -0
- package/dist/domains/physics/work-potential/runtime.mjs +5 -0
- package/dist/domains/physics/xray-attenuation/activity.mjs +3 -0
- package/dist/domains/physics/xray-attenuation/manifest.mjs +61 -0
- package/dist/domains/physics/xray-attenuation/runtime.mjs +3 -0
- package/dist/domains/physics/xray-tube-spectrum/activity.mjs +3 -0
- package/dist/domains/physics/xray-tube-spectrum/manifest.mjs +61 -0
- package/dist/domains/physics/xray-tube-spectrum/runtime.mjs +3 -0
- package/dist/domains/render-map.mjs +576 -0
- package/dist/domains/render.d.mts +9 -0
- package/dist/domains/render.mjs +23 -0
- package/dist/domains/statistics/center-spread/manifest.mjs +60 -0
- package/dist/domains/statistics/center-spread/runtime.mjs +5 -0
- package/dist/domains/statistics/frequency-density/manifest.mjs +64 -0
- package/dist/domains/statistics/frequency-density/runtime.mjs +12 -0
- package/dist/domains/statistics/galton/manifest.mjs +50 -0
- package/dist/domains/statistics/galton/runtime.mjs +5 -0
- package/dist/domains/statistics/histogram/manifest.mjs +58 -0
- package/dist/domains/statistics/histogram/runtime.mjs +5 -0
- package/dist/domains/statistics/normal/manifest.mjs +56 -0
- package/dist/domains/statistics/normal/runtime.mjs +5 -0
- package/dist/domains/statistics/ogive/manifest.mjs +62 -0
- package/dist/domains/statistics/ogive/runtime.mjs +12 -0
- package/dist/domains/statistics/sampling/manifest.mjs +61 -0
- package/dist/domains/statistics/sampling/runtime.mjs +5 -0
- package/dist/domains/statistics/series/manifest.mjs +55 -0
- package/dist/domains/statistics/series/runtime.mjs +5 -0
- package/dist/domains/statistics/z-table/manifest.mjs +51 -0
- package/dist/domains/statistics/z-table/runtime.mjs +5 -0
- package/dist/exam/exam-question/core.d.mts +90 -0
- package/dist/exam/exam-question/core.mjs +103 -0
- package/dist/exam/exam-question/default-question.d.mts +18 -0
- package/dist/exam/exam-question/default-question.mjs +41 -0
- package/dist/exam/exam-question/index.d.mts +3 -0
- package/dist/exam/exam-question/preset.d.mts +20 -0
- package/dist/exam/exam-question/preset.mjs +198 -0
- package/dist/exam/index.d.mts +4 -0
- package/dist/exam/index.mjs +5 -0
- package/dist/geography/cycle-lab/preset.mjs +216 -101
- package/dist/geometry/board/preset.d.mts +11 -0
- package/dist/geometry/board/preset.mjs +65 -21
- package/dist/geometry/builder.mjs +20 -10
- package/dist/ict/number-systems/base-odometer.d.mts +1 -2
- package/dist/ict/number-systems/base-odometer.mjs +55 -83
- package/dist/ict/number-systems/bit-grouper.d.mts +1 -2
- package/dist/ict/number-systems/bit-grouper.mjs +66 -97
- package/dist/ict/number-systems/place-value-dial.d.mts +1 -2
- package/dist/ict/number-systems/place-value-dial.mjs +67 -82
- package/dist/ict/number-systems/wheel.mjs +12 -38
- package/dist/index.d.mts +1 -1
- package/dist/kit/activity-authoring.d.mts +117 -0
- package/dist/kit/activity-authoring.mjs +56 -0
- package/dist/kit/activity.d.mts +147 -0
- package/dist/kit/activity.mjs +374 -0
- package/dist/kit/annotate.mjs +27 -6
- package/dist/kit/answer-check.mjs +3 -3
- package/dist/kit/authored-activity-runtime.d.mts +92 -0
- package/dist/kit/authored-activity-runtime.mjs +148 -0
- package/dist/kit/authored-response.d.mts +21 -0
- package/dist/kit/authored-response.mjs +200 -0
- package/dist/kit/carrier-engine.mjs +5 -1
- package/dist/kit/celebrate.d.mts +18 -0
- package/dist/kit/celebrate.mjs +79 -0
- package/dist/kit/clue-scene.d.mts +1 -1
- package/dist/kit/clue-scene.mjs +131 -207
- package/dist/kit/controls.mjs +192 -28
- package/dist/kit/coords.d.mts +30 -1
- package/dist/kit/coords.mjs +31 -4
- package/dist/kit/cycle.mjs +86 -5
- package/dist/kit/data-scene.mjs +75 -62
- package/dist/kit/{diagram.mjs → diagram/annotations.mjs} +8 -111
- package/dist/kit/diagram/circuit-box.mjs +75 -0
- package/dist/kit/electronics/_shared.mjs +82 -0
- package/dist/kit/electronics/basics.mjs +323 -0
- package/dist/kit/electronics/icons.mjs +140 -0
- package/dist/kit/electronics/meter.mjs +58 -0
- package/dist/kit/electronics/semiconductor.mjs +195 -0
- package/dist/kit/electronics/signals.mjs +155 -0
- package/dist/kit/electronics/wire.mjs +94 -0
- package/dist/kit/embed.mjs +38 -0
- package/dist/kit/expr-analysis.mjs +3 -2
- package/dist/kit/figure/beam.d.mts +89 -0
- package/dist/kit/figure/beam.mjs +138 -0
- package/dist/kit/figure/body.d.mts +74 -0
- package/dist/kit/figure/body.mjs +102 -0
- package/dist/kit/figure/container.d.mts +88 -0
- package/dist/kit/figure/container.mjs +193 -0
- package/dist/kit/figure/figure.d.mts +62 -0
- package/dist/kit/figure/figure.mjs +99 -0
- package/dist/kit/figure/illustration.d.mts +28 -0
- package/dist/kit/figure/illustration.mjs +31 -0
- package/dist/kit/figure/index.d.mts +7 -0
- package/dist/kit/figure/plot.d.mts +109 -0
- package/dist/kit/figure/plot.mjs +207 -0
- package/dist/kit/figure/text.d.mts +50 -0
- package/dist/kit/figure/text.mjs +44 -0
- package/dist/kit/finance-viz/apportion-bar.d.mts +33 -0
- package/dist/kit/finance-viz/apportion-bar.mjs +99 -0
- package/dist/kit/finance-viz/index.d.mts +4 -0
- package/dist/kit/finance-viz/plot-chart.d.mts +52 -0
- package/dist/kit/finance-viz/plot-chart.mjs +148 -0
- package/dist/kit/finance-viz/stock-timeline.d.mts +33 -0
- package/dist/kit/finance-viz/stock-timeline.mjs +102 -0
- package/dist/kit/finance-viz/tradeoff-curve.d.mts +45 -0
- package/dist/kit/finance-viz/tradeoff-curve.mjs +221 -0
- package/dist/kit/frame.d.mts +38 -40
- package/dist/kit/frame.mjs +138 -120
- package/dist/kit/guide.d.mts +44 -0
- package/dist/kit/guide.mjs +53 -0
- package/dist/kit/index.d.mts +25 -5
- package/dist/kit/index.mjs +23 -3
- package/dist/kit/learning-sequence.d.mts +51 -0
- package/dist/kit/learning-sequence.mjs +101 -0
- package/dist/kit/logic-gates/_shared.mjs +11 -0
- package/dist/kit/{logic-gates.mjs → logic-gates/display.mjs} +5 -133
- package/dist/kit/{logic-gates.d.mts → logic-gates/gate.d.mts} +1 -1
- package/dist/kit/logic-gates/gate.mjs +132 -0
- package/dist/kit/networking/glyphs.mjs +157 -0
- package/dist/kit/palette.mjs +3 -5
- package/dist/kit/pedagogy.d.mts +9 -1
- package/dist/kit/pedagogy.mjs +120 -97
- package/dist/kit/play.mjs +4 -1
- package/dist/kit/predict-gate.d.mts +25 -0
- package/dist/kit/predict-gate.mjs +42 -0
- package/dist/kit/predict.mjs +10 -10
- package/dist/kit/probability.d.mts +55 -0
- package/dist/kit/probability.mjs +115 -1
- package/dist/kit/proportion.mjs +52 -27
- package/dist/kit/receipt.d.mts +2 -2
- package/dist/kit/receipt.mjs +13 -53
- package/dist/kit/rule.d.mts +37 -5
- package/dist/kit/rule.mjs +110 -155
- package/dist/kit/scale.mjs +6 -3
- package/dist/kit/scene-library.mjs +51 -89
- package/dist/kit/scene-studio.mjs +116 -177
- package/dist/kit/scenes.mjs +305 -113
- package/dist/kit/slot-fill.d.mts +6 -1
- package/dist/kit/slot-fill.mjs +86 -71
- package/dist/kit/steps.d.mts +3 -0
- package/dist/kit/steps.mjs +6 -6
- package/dist/kit/thermal.mjs +22 -4
- package/dist/kit/ticks.mjs +19 -0
- package/dist/kit/vessel.mjs +30 -11
- package/dist/lab-def/attrs.d.mts +31 -0
- package/dist/lab-def/attrs.mjs +65 -0
- package/dist/lab-def/define-lab.d.mts +107 -0
- package/dist/lab-def/define-lab.mjs +15 -0
- package/dist/lab-def/lab-authoring.mjs +39 -0
- package/dist/lab-def/lab-runtime.mjs +134 -0
- package/dist/lab-def/to-block.mjs +55 -0
- package/dist/language/activity.d.mts +28 -0
- package/dist/language/activity.mjs +60 -0
- package/dist/language/agreement/preset.d.mts +11 -0
- package/dist/language/agreement/preset.mjs +59 -30
- package/dist/language/article-lens/preset.d.mts +7 -0
- package/dist/language/article-lens/preset.mjs +53 -28
- package/dist/language/cloze/index.d.mts +1 -0
- package/dist/language/cloze/preset.d.mts +36 -0
- package/dist/language/cloze/preset.mjs +128 -0
- package/dist/language/dictation/index.d.mts +1 -0
- package/dist/language/dictation/preset.d.mts +21 -0
- package/dist/language/dictation/preset.mjs +171 -0
- package/dist/language/error-correct/index.d.mts +1 -0
- package/dist/language/error-correct/preset.d.mts +29 -0
- package/dist/language/error-correct/preset.mjs +134 -0
- package/dist/language/icon.mjs +4 -10
- package/dist/language/index.d.mts +8 -2
- package/dist/language/index.mjs +8 -2
- package/dist/language/listening/index.d.mts +1 -0
- package/dist/language/listening/preset.d.mts +25 -0
- package/dist/language/listening/preset.mjs +152 -0
- package/dist/language/preposition-scene/preset.d.mts +11 -0
- package/dist/language/preposition-scene/preset.mjs +79 -69
- package/dist/language/reading/index.d.mts +1 -0
- package/dist/language/reading/preset.d.mts +39 -0
- package/dist/language/reading/preset.mjs +62 -0
- package/dist/language/sentence-builder/preset.d.mts +9 -1
- package/dist/language/sentence-builder/preset.mjs +34 -21
- package/dist/language/transform/preset.d.mts +9 -1
- package/dist/language/transform/preset.mjs +41 -22
- package/dist/language/ui.d.mts +27 -1
- package/dist/language/ui.mjs +48 -8
- package/dist/language/word-match/preset.d.mts +5 -1
- package/dist/language/word-match/preset.mjs +38 -20
- package/dist/logic/ChipScene.d.mts +30 -0
- package/dist/logic/ChipScene.mjs +313 -0
- package/dist/logic/CounterScene.d.mts +19 -0
- package/dist/logic/CounterScene.mjs +228 -0
- package/dist/logic/DetectorScene.d.mts +22 -0
- package/dist/logic/DetectorScene.mjs +233 -0
- package/dist/logic/LatchScene.d.mts +21 -0
- package/dist/logic/LatchScene.mjs +309 -0
- package/dist/logic/LogicBuildLab.mjs +18 -63
- package/dist/logic/LogicEditScene.d.mts +7 -1
- package/dist/logic/LogicEditScene.mjs +26 -18
- package/dist/logic/LogicEditor.d.mts +7 -1
- package/dist/logic/LogicEditor.mjs +165 -227
- package/dist/logic/LogicScene.mjs +74 -18
- package/dist/logic/SequentialLogicLab.d.mts +23 -0
- package/dist/logic/SequentialLogicLab.mjs +179 -0
- package/dist/logic/ShiftScene.d.mts +17 -0
- package/dist/logic/ShiftScene.mjs +170 -0
- package/dist/logic/TimingScene.d.mts +29 -0
- package/dist/logic/TimingScene.mjs +167 -0
- package/dist/logic/TwosScene.d.mts +33 -0
- package/dist/logic/TwosScene.mjs +269 -0
- package/dist/logic/WaveScene.d.mts +43 -0
- package/dist/logic/WaveScene.mjs +124 -0
- package/dist/logic/contract.d.mts +22 -2
- package/dist/logic/counter.d.mts +27 -0
- package/dist/logic/counter.mjs +90 -0
- package/dist/logic/detector.d.mts +72 -0
- package/dist/logic/detector.mjs +93 -0
- package/dist/logic/display.mjs +72 -45
- package/dist/logic/editor/index.d.mts +6 -0
- package/dist/logic/editor/index.mjs +8 -0
- package/dist/logic/evaluate.d.mts +8 -1
- package/dist/logic/evaluate.mjs +108 -31
- package/dist/logic/ic.d.mts +62 -0
- package/dist/logic/ic.mjs +245 -0
- package/dist/logic/index.d.mts +26 -7
- package/dist/logic/index.mjs +20 -1
- package/dist/logic/lab.mjs +62 -84
- package/dist/logic/latch.d.mts +70 -0
- package/dist/logic/latch.mjs +68 -0
- package/dist/logic/netlist.d.mts +27 -0
- package/dist/logic/netlist.mjs +29 -0
- package/dist/logic/runtime/index.d.mts +14 -0
- package/dist/logic/runtime/index.mjs +15 -0
- package/dist/logic/sequential-presets.d.mts +147 -0
- package/dist/logic/sequential-presets.mjs +179 -0
- package/dist/logic/sequential.d.mts +124 -0
- package/dist/logic/sequential.mjs +186 -0
- package/dist/logic/shift.d.mts +33 -0
- package/dist/logic/shift.mjs +76 -0
- package/dist/logic/timing.d.mts +57 -0
- package/dist/logic/timing.mjs +147 -0
- package/dist/logic/twos.d.mts +65 -0
- package/dist/logic/twos.mjs +95 -0
- package/dist/math/activity.mjs +90 -0
- package/dist/math/area-model/asset.mjs +24 -14
- package/dist/math/area-model/preset.mjs +128 -74
- package/dist/math/area-rearrange/core.d.mts +42 -0
- package/dist/math/area-rearrange/core.mjs +188 -0
- package/dist/math/area-rearrange/index.d.mts +2 -0
- package/dist/math/area-rearrange/preset.d.mts +28 -0
- package/dist/math/area-rearrange/preset.mjs +227 -0
- package/dist/math/balance-algebra/preset.mjs +39 -11
- package/dist/math/bearings/core.d.mts +76 -0
- package/dist/math/bearings/core.mjs +85 -0
- package/dist/math/bearings/index.d.mts +2 -0
- package/dist/math/bearings/preset.d.mts +29 -0
- package/dist/math/bearings/preset.mjs +336 -0
- package/dist/math/broken-tree/preset.mjs +87 -52
- package/dist/math/calculus/core.d.mts +30 -0
- package/dist/math/calculus/core.mjs +101 -0
- package/dist/math/calculus/index.d.mts +2 -0
- package/dist/math/calculus/index.mjs +3 -0
- package/dist/math/circle/preset.mjs +46 -28
- package/dist/math/complex/index.d.mts +2 -2
- package/dist/math/complex/preset.mjs +45 -31
- package/dist/math/complex/rule-figures.mjs +328 -0
- package/dist/math/complex/rules.d.mts +11 -1
- package/dist/math/complex/rules.mjs +161 -4
- package/dist/math/conic/preset.mjs +77 -27
- package/dist/math/derivation.d.mts +16 -1
- package/dist/math/derivation.mjs +117 -52
- package/dist/math/derivative-explorer/index.d.mts +2 -1
- package/dist/math/derivative-explorer/index.mjs +3 -0
- package/dist/math/derivative-explorer/preset.mjs +109 -121
- package/dist/math/differential-equation/index.d.mts +2 -0
- package/dist/math/differential-equation/index.mjs +3 -0
- package/dist/math/differential-equation/preset.d.mts +25 -0
- package/dist/math/differential-equation/preset.mjs +274 -0
- package/dist/math/division-workbench/core.d.mts +26 -0
- package/dist/math/division-workbench/core.mjs +53 -0
- package/dist/math/division-workbench/index.d.mts +2 -0
- package/dist/math/division-workbench/preset.d.mts +24 -0
- package/dist/math/division-workbench/preset.mjs +186 -0
- package/dist/math/division-workbench/visuals.mjs +357 -0
- package/dist/math/domain-range/preset.mjs +83 -57
- package/dist/math/expression-order/core.d.mts +23 -0
- package/dist/math/expression-order/core.mjs +130 -0
- package/dist/math/expression-order/index.d.mts +2 -0
- package/dist/math/expression-order/preset.d.mts +35 -0
- package/dist/math/expression-order/preset.mjs +140 -0
- package/dist/math/fraction-bar/preset.mjs +108 -74
- package/dist/math/function-machine/preset.mjs +34 -15
- package/dist/math/fundamental-theorem/index.d.mts +2 -0
- package/dist/math/fundamental-theorem/index.mjs +3 -0
- package/dist/math/fundamental-theorem/preset.d.mts +21 -0
- package/dist/math/fundamental-theorem/preset.mjs +206 -0
- package/dist/math/geometry-foundations/activity.d.mts +1 -0
- package/dist/math/geometry-foundations/activity.mjs +74 -0
- package/dist/math/geometry-foundations/core.d.mts +22 -0
- package/dist/math/geometry-foundations/core.mjs +62 -0
- package/dist/math/geometry-foundations/index.d.mts +2 -0
- package/dist/math/geometry-foundations/preset.d.mts +29 -0
- package/dist/math/geometry-foundations/preset.mjs +310 -0
- package/dist/math/gradient-descent.mjs +94 -113
- package/dist/math/grapher/preset.d.mts +2 -0
- package/dist/math/grapher/preset.mjs +204 -190
- package/dist/math/harmonic-form/preset.mjs +101 -95
- package/dist/math/identity-proof/core.d.mts +86 -0
- package/dist/math/identity-proof/core.mjs +70 -0
- package/dist/math/identity-proof/default-proof.d.mts +14 -0
- package/dist/math/identity-proof/default-proof.mjs +56 -0
- package/dist/math/identity-proof/index.d.mts +3 -0
- package/dist/math/identity-proof/preset.d.mts +20 -0
- package/dist/math/identity-proof/preset.mjs +147 -0
- package/dist/math/index.d.mts +47 -5
- package/dist/math/index.mjs +47 -5
- package/dist/math/integral-explorer/index.d.mts +2 -1
- package/dist/math/integral-explorer/index.mjs +3 -0
- package/dist/math/integral-explorer/preset.mjs +122 -127
- package/dist/math/interactive/preset.mjs +67 -32
- package/dist/math/iteration/core.d.mts +87 -0
- package/dist/math/iteration/core.mjs +135 -0
- package/dist/math/iteration/index.d.mts +2 -0
- package/dist/math/iteration/preset.d.mts +38 -0
- package/dist/math/iteration/preset.mjs +242 -0
- package/dist/math/limit-explorer/index.d.mts +2 -1
- package/dist/math/limit-explorer/index.mjs +3 -0
- package/dist/math/limit-explorer/preset.mjs +69 -91
- package/dist/math/linear-model/preset.mjs +124 -78
- package/dist/math/linear-system/preset.mjs +45 -15
- package/dist/math/lines-in-space/core.d.mts +71 -0
- package/dist/math/lines-in-space/core.mjs +185 -0
- package/dist/math/lines-in-space/index.d.mts +2 -0
- package/dist/math/lines-in-space/preset.d.mts +49 -0
- package/dist/math/lines-in-space/preset.mjs +862 -0
- package/dist/math/measurement/activity.d.mts +1 -0
- package/dist/math/measurement/activity.mjs +74 -0
- package/dist/math/measurement/core.d.mts +27 -0
- package/dist/math/measurement/core.mjs +62 -0
- package/dist/math/measurement/index.d.mts +2 -0
- package/dist/math/measurement/preset.d.mts +39 -0
- package/dist/math/measurement/preset.mjs +666 -0
- package/dist/math/mystery-bucket/preset.mjs +32 -9
- package/dist/math/newton-method/index.d.mts +2 -0
- package/dist/math/newton-method/index.mjs +3 -0
- package/dist/math/newton-method/preset.d.mts +21 -0
- package/dist/math/newton-method/preset.mjs +277 -0
- package/dist/math/number-line/preset.mjs +48 -18
- package/dist/math/number-structure/core.d.mts +42 -0
- package/dist/math/number-structure/core.mjs +130 -0
- package/dist/math/number-structure/index.d.mts +2 -0
- package/dist/math/number-structure/preset.d.mts +28 -0
- package/dist/math/number-structure/preset.mjs +237 -0
- package/dist/math/number-structure/visuals.mjs +485 -0
- package/dist/math/oblique-triangle/core.d.mts +99 -0
- package/dist/math/oblique-triangle/core.mjs +194 -0
- package/dist/math/oblique-triangle/index.d.mts +2 -0
- package/dist/math/oblique-triangle/preset.d.mts +22 -0
- package/dist/math/oblique-triangle/preset.mjs +423 -0
- package/dist/math/ode/core.d.mts +15 -0
- package/dist/math/ode/core.mjs +73 -0
- package/dist/math/ode/index.d.mts +3 -0
- package/dist/math/ode/index.mjs +4 -0
- package/dist/math/ode/system.d.mts +23 -0
- package/dist/math/ode/system.mjs +73 -0
- package/dist/math/optimization/core.d.mts +21 -0
- package/dist/math/optimization/core.mjs +46 -0
- package/dist/math/optimization/index.d.mts +2 -0
- package/dist/math/optimization/index.mjs +3 -0
- package/dist/math/parabola/preset.mjs +54 -15
- package/dist/math/partial-fractions/core.d.mts +69 -0
- package/dist/math/partial-fractions/core.mjs +221 -0
- package/dist/math/partial-fractions/index.d.mts +2 -0
- package/dist/math/partial-fractions/preset.d.mts +44 -0
- package/dist/math/partial-fractions/preset.mjs +267 -0
- package/dist/math/pattern/preset.mjs +69 -86
- package/dist/math/percent-bar/preset.mjs +75 -39
- package/dist/math/phase-portrait/index.d.mts +2 -0
- package/dist/math/phase-portrait/index.mjs +3 -0
- package/dist/math/phase-portrait/preset.d.mts +27 -0
- package/dist/math/phase-portrait/preset.mjs +265 -0
- package/dist/math/poly/core.mjs +1 -1
- package/dist/math/poly/preset.mjs +45 -63
- package/dist/math/poly/steps.mjs +1 -1
- package/dist/math/radian-wrap/core.d.mts +38 -0
- package/dist/math/radian-wrap/core.mjs +58 -0
- package/dist/math/radian-wrap/index.d.mts +2 -0
- package/dist/math/radian-wrap/preset.d.mts +19 -0
- package/dist/math/radian-wrap/preset.mjs +228 -0
- package/dist/math/rate-machine/preset.mjs +160 -109
- package/dist/math/ratio-share/preset.mjs +95 -40
- package/dist/math/receipt/preset.mjs +59 -55
- package/dist/math/root-finding/core.d.mts +18 -0
- package/dist/math/root-finding/core.mjs +75 -0
- package/dist/math/root-finding/index.d.mts +2 -0
- package/dist/math/root-finding/index.mjs +3 -0
- package/dist/math/sequence-predict/preset.mjs +44 -42
- package/dist/math/slide-rule/core.d.mts +39 -0
- package/dist/math/slide-rule/core.mjs +104 -0
- package/dist/math/slide-rule/index.d.mts +2 -0
- package/dist/math/slide-rule/preset.d.mts +24 -0
- package/dist/math/slide-rule/preset.mjs +330 -0
- package/dist/math/solid-net/core.d.mts +48 -0
- package/dist/math/solid-net/core.mjs +177 -0
- package/dist/math/solid-net/index.d.mts +2 -0
- package/dist/math/solid-net/preset.d.mts +28 -0
- package/dist/math/solid-net/preset.mjs +433 -0
- package/dist/math/straight-line/preset.mjs +77 -31
- package/dist/math/system-solve/preset.mjs +86 -104
- package/dist/math/taylor/core.d.mts +8 -0
- package/dist/math/taylor/core.mjs +31 -0
- package/dist/math/taylor/index.d.mts +2 -0
- package/dist/math/taylor/index.mjs +3 -0
- package/dist/math/taylor-series/index.d.mts +2 -0
- package/dist/math/taylor-series/index.mjs +3 -0
- package/dist/math/taylor-series/preset.d.mts +23 -0
- package/dist/math/taylor-series/preset.mjs +243 -0
- package/dist/math/transform/preset.mjs +81 -81
- package/dist/math/triangle-trig/preset.d.mts +10 -0
- package/dist/math/triangle-trig/preset.mjs +97 -55
- package/dist/math/trig/diagrams.mjs +43 -17
- package/dist/math/trig/preset.mjs +55 -25
- package/dist/math/trig/rules.mjs +69 -8
- package/dist/math/trig-explorer.mjs +43 -18
- package/dist/ml/index.d.mts +5 -5
- package/dist/ml/index.mjs +5 -5
- package/dist/networking/EncapScene.mjs +227 -0
- package/dist/networking/MediaScene.mjs +217 -0
- package/dist/networking/NetworkScene.d.mts +22 -0
- package/dist/networking/NetworkScene.mjs +54 -0
- package/dist/networking/PacketInspector.d.mts +11 -0
- package/dist/networking/PacketInspector.mjs +32 -0
- package/dist/networking/PlugScene.mjs +192 -0
- package/dist/networking/SubnetScene.mjs +124 -0
- package/dist/networking/SwitchScene.mjs +339 -0
- package/dist/networking/VlanScene.mjs +203 -0
- package/dist/networking/VpnScene.mjs +193 -0
- package/dist/networking/contract.d.mts +136 -0
- package/dist/networking/encapsulation.mjs +130 -0
- package/dist/networking/index.d.mts +8 -0
- package/dist/networking/index.mjs +8 -0
- package/dist/networking/ip.d.mts +12 -0
- package/dist/networking/ip.mjs +30 -0
- package/dist/networking/media.mjs +183 -0
- package/dist/networking/presets.d.mts +7 -0
- package/dist/networking/presets.mjs +302 -0
- package/dist/networking/simulation.d.mts +8 -0
- package/dist/networking/simulation.mjs +148 -0
- package/dist/networking/subnet.mjs +84 -0
- package/dist/networking/switch.mjs +155 -0
- package/dist/networking/vlan.mjs +100 -0
- package/dist/networking/vpn.mjs +118 -0
- package/dist/pathways/biology.d.mts +6 -0
- package/dist/pathways/biology.mjs +60 -0
- package/dist/pathways/calculus.d.mts +6 -0
- package/dist/pathways/calculus.mjs +123 -0
- package/dist/pathways/chemistry.d.mts +8 -0
- package/dist/pathways/chemistry.mjs +87 -0
- package/dist/pathways/digital-logic.d.mts +21 -0
- package/dist/pathways/digital-logic.mjs +408 -0
- package/dist/pathways/electronic-circuits.d.mts +15 -0
- package/dist/pathways/electronic-circuits.mjs +136 -0
- package/dist/pathways/electronic-devices.d.mts +18 -0
- package/dist/pathways/electronic-devices.mjs +152 -0
- package/dist/pathways/index.d.mts +10 -0
- package/dist/pathways/index.mjs +11 -0
- package/dist/pathways/quantum.d.mts +9 -0
- package/dist/pathways/quantum.mjs +56 -0
- package/dist/pathways/relativity.d.mts +6 -0
- package/dist/pathways/relativity.mjs +63 -0
- package/dist/pathways/types.d.mts +58 -0
- package/dist/pathways/types.mjs +21 -0
- package/dist/physics/alternating-current/core.d.mts +162 -0
- package/dist/physics/alternating-current/core.mjs +155 -0
- package/dist/physics/alternating-current/index.d.mts +2 -0
- package/dist/physics/alternating-current/preset.d.mts +38 -0
- package/dist/physics/alternating-current/preset.mjs +1068 -0
- package/dist/physics/atwood/preset.d.mts +4 -1
- package/dist/physics/atwood/preset.mjs +383 -156
- package/dist/physics/bullet-walls/preset.d.mts +4 -1
- package/dist/physics/bullet-walls/preset.mjs +206 -246
- package/dist/physics/carnot/preset.d.mts +4 -1
- package/dist/physics/carnot/preset.mjs +340 -331
- package/dist/physics/circular-motion/preset.d.mts +4 -1
- package/dist/physics/circular-motion/preset.mjs +185 -148
- package/dist/physics/collision-track/preset.d.mts +4 -1
- package/dist/physics/collision-track/preset.mjs +292 -201
- package/dist/physics/couple-torque/index.d.mts +1 -0
- package/dist/physics/couple-torque/preset.d.mts +30 -0
- package/dist/physics/couple-torque/preset.mjs +614 -0
- package/dist/physics/efficiency/preset.d.mts +7 -1
- package/dist/physics/efficiency/preset.mjs +220 -157
- package/dist/physics/electric-field/preset.d.mts +4 -1
- package/dist/physics/electric-field/preset.mjs +153 -139
- package/dist/physics/electric-flux/preset.d.mts +5 -2
- package/dist/physics/electric-flux/preset.mjs +214 -165
- package/dist/physics/energy-skate/preset.d.mts +4 -1
- package/dist/physics/energy-skate/preset.mjs +168 -106
- package/dist/physics/entropy/preset.d.mts +4 -1
- package/dist/physics/entropy/preset.mjs +139 -148
- package/dist/physics/expansion/preset.d.mts +4 -1
- package/dist/physics/expansion/preset.mjs +187 -155
- package/dist/physics/exponential/asset.mjs +3 -2
- package/dist/physics/exponential/preset.mjs +104 -38
- package/dist/physics/fields/activity.d.mts +1 -0
- package/dist/physics/fields/activity.mjs +86 -0
- package/dist/physics/fields/index.d.mts +3 -0
- package/dist/physics/fields/spatial-activity.d.mts +6 -0
- package/dist/physics/fields/spatial-activity.mjs +89 -0
- package/dist/physics/fields/spatial-core.d.mts +16 -0
- package/dist/physics/fields/spatial-core.mjs +72 -0
- package/dist/physics/fields/spatial-preset.d.mts +42 -0
- package/dist/physics/fields/spatial-preset.mjs +234 -0
- package/dist/physics/fluid-pressure/index.d.mts +1 -0
- package/dist/physics/fluid-pressure/preset.d.mts +56 -0
- package/dist/physics/fluid-pressure/preset.mjs +727 -0
- package/dist/physics/force-pairs/index.d.mts +1 -0
- package/dist/physics/force-pairs/preset.d.mts +31 -0
- package/dist/physics/force-pairs/preset.mjs +833 -0
- package/dist/physics/gas-process/preset.d.mts +4 -1
- package/dist/physics/gas-process/preset.mjs +130 -144
- package/dist/physics/gauss-law/preset.d.mts +5 -2
- package/dist/physics/gauss-law/preset.mjs +159 -115
- package/dist/physics/gravitation/preset.d.mts +4 -1
- package/dist/physics/gravitation/preset.mjs +323 -231
- package/dist/physics/gravity-drop.d.mts +12 -1
- package/dist/physics/gravity-drop.mjs +192 -29
- package/dist/physics/heat-transfer/preset.d.mts +4 -1
- package/dist/physics/heat-transfer/preset.mjs +464 -401
- package/dist/physics/impulse/preset.d.mts +4 -1
- package/dist/physics/impulse/preset.mjs +492 -335
- package/dist/physics/index.d.mts +40 -4
- package/dist/physics/index.mjs +38 -2
- package/dist/physics/intercept/animals.mjs +194 -0
- package/dist/physics/intercept/core.d.mts +22 -0
- package/dist/physics/intercept/core.mjs +147 -0
- package/dist/physics/intercept/index.d.mts +1 -0
- package/dist/physics/intercept/preset.d.mts +41 -0
- package/dist/physics/intercept/preset.mjs +450 -0
- package/dist/physics/kepler/preset.d.mts +4 -1
- package/dist/physics/kepler/preset.mjs +296 -132
- package/dist/physics/lever/preset.d.mts +10 -1
- package/dist/physics/lever/preset.mjs +46 -27
- package/dist/physics/linear-pursuit/core.d.mts +16 -0
- package/dist/physics/linear-pursuit/core.mjs +34 -0
- package/dist/physics/linear-pursuit/index.d.mts +3 -0
- package/dist/physics/linear-pursuit/index.mjs +4 -0
- package/dist/physics/linear-pursuit/preset.d.mts +28 -0
- package/dist/physics/linear-pursuit/preset.mjs +276 -0
- package/dist/physics/linear-pursuit/vehicle.mjs +67 -0
- package/dist/physics/lorentz/core.d.mts +12 -0
- package/dist/physics/lorentz/core.mjs +31 -0
- package/dist/physics/lorentz/index.d.mts +2 -1
- package/dist/physics/lorentz/preset.d.mts +4 -1
- package/dist/physics/lorentz/preset.mjs +145 -194
- package/dist/physics/magnetism/preset.d.mts +4 -1
- package/dist/physics/magnetism/preset.mjs +136 -105
- package/dist/physics/mechanics/activity-plan.mjs +53 -0
- package/dist/physics/mechanics/activity.mjs +32 -0
- package/dist/physics/mechanics/core.d.mts +82 -0
- package/dist/physics/mechanics/core.mjs +155 -0
- package/dist/physics/mechanics/glyphs.mjs +250 -0
- package/dist/physics/mechanics/presentation.mjs +277 -0
- package/dist/physics/modern/constants.d.mts +5 -0
- package/dist/physics/modern/constants.mjs +6 -0
- package/dist/physics/modern/imaging/activity.d.mts +6 -0
- package/dist/physics/modern/imaging/activity.mjs +79 -0
- package/dist/physics/modern/imaging/index.d.mts +7 -0
- package/dist/physics/modern/imaging/preset.d.mts +24 -0
- package/dist/physics/modern/imaging/preset.mjs +126 -0
- package/dist/physics/modern/imaging/spectrum-activity.d.mts +6 -0
- package/dist/physics/modern/imaging/spectrum-activity.mjs +79 -0
- package/dist/physics/modern/imaging/spectrum-preset.d.mts +25 -0
- package/dist/physics/modern/imaging/spectrum-preset.mjs +132 -0
- package/dist/physics/modern/imaging/spectrum-scene.d.mts +13 -0
- package/dist/physics/modern/imaging/spectrum-scene.mjs +277 -0
- package/dist/physics/modern/imaging/xray-core.d.mts +55 -0
- package/dist/physics/modern/imaging/xray-core.mjs +90 -0
- package/dist/physics/modern/imaging/xray-scene.mjs +224 -0
- package/dist/physics/modern/imaging/xray-spectrum-core.d.mts +51 -0
- package/dist/physics/modern/imaging/xray-spectrum-core.mjs +94 -0
- package/dist/physics/modern/index.d.mts +49 -0
- package/dist/physics/modern/index.mjs +50 -0
- package/dist/physics/modern/nuclear/activity.d.mts +6 -0
- package/dist/physics/modern/nuclear/activity.mjs +74 -0
- package/dist/physics/modern/nuclear/core.d.mts +75 -0
- package/dist/physics/modern/nuclear/core.mjs +69 -0
- package/dist/physics/modern/nuclear/fission-activity.d.mts +6 -0
- package/dist/physics/modern/nuclear/fission-activity.mjs +96 -0
- package/dist/physics/modern/nuclear/fission-core.d.mts +49 -0
- package/dist/physics/modern/nuclear/fission-core.mjs +67 -0
- package/dist/physics/modern/nuclear/fission-preset.d.mts +24 -0
- package/dist/physics/modern/nuclear/fission-preset.mjs +132 -0
- package/dist/physics/modern/nuclear/fission-scene.mjs +295 -0
- package/dist/physics/modern/nuclear/index.d.mts +6 -0
- package/dist/physics/modern/nuclear/preset.d.mts +21 -0
- package/dist/physics/modern/nuclear/preset.mjs +176 -0
- package/dist/physics/modern/quantum/activity.d.mts +6 -0
- package/dist/physics/modern/quantum/activity.mjs +74 -0
- package/dist/physics/modern/quantum/bloch-activity.d.mts +6 -0
- package/dist/physics/modern/quantum/bloch-activity.mjs +74 -0
- package/dist/physics/modern/quantum/bloch-preset.d.mts +31 -0
- package/dist/physics/modern/quantum/bloch-preset.mjs +232 -0
- package/dist/physics/modern/quantum/double-slit-activity.d.mts +6 -0
- package/dist/physics/modern/quantum/double-slit-activity.mjs +74 -0
- package/dist/physics/modern/quantum/double-slit-core.d.mts +17 -0
- package/dist/physics/modern/quantum/double-slit-core.mjs +26 -0
- package/dist/physics/modern/quantum/double-slit-preset.d.mts +24 -0
- package/dist/physics/modern/quantum/double-slit-preset.mjs +266 -0
- package/dist/physics/modern/quantum/gates-activity.d.mts +6 -0
- package/dist/physics/modern/quantum/gates-activity.mjs +74 -0
- package/dist/physics/modern/quantum/gates-core.d.mts +19 -0
- package/dist/physics/modern/quantum/gates-core.mjs +51 -0
- package/dist/physics/modern/quantum/gates-preset.d.mts +22 -0
- package/dist/physics/modern/quantum/gates-preset.mjs +102 -0
- package/dist/physics/modern/quantum/index.d.mts +15 -0
- package/dist/physics/modern/quantum/photoelectric-core.d.mts +43 -0
- package/dist/physics/modern/quantum/photoelectric-core.mjs +48 -0
- package/dist/physics/modern/quantum/preset.d.mts +25 -0
- package/dist/physics/modern/quantum/preset.mjs +229 -0
- package/dist/physics/modern/quantum/qubit-core.d.mts +49 -0
- package/dist/physics/modern/quantum/qubit-core.mjs +52 -0
- package/dist/physics/modern/quantum/uncertainty-activity.d.mts +6 -0
- package/dist/physics/modern/quantum/uncertainty-activity.mjs +74 -0
- package/dist/physics/modern/quantum/uncertainty-core.d.mts +11 -0
- package/dist/physics/modern/quantum/uncertainty-core.mjs +19 -0
- package/dist/physics/modern/quantum/uncertainty-preset.d.mts +20 -0
- package/dist/physics/modern/quantum/uncertainty-preset.mjs +157 -0
- package/dist/physics/modern/relativity/activity.d.mts +6 -0
- package/dist/physics/modern/relativity/activity.mjs +80 -0
- package/dist/physics/modern/relativity/core.d.mts +29 -0
- package/dist/physics/modern/relativity/core.mjs +60 -0
- package/dist/physics/modern/relativity/explorer-activity.d.mts +6 -0
- package/dist/physics/modern/relativity/explorer-activity.mjs +74 -0
- package/dist/physics/modern/relativity/explorer-core.d.mts +16 -0
- package/dist/physics/modern/relativity/explorer-core.mjs +21 -0
- package/dist/physics/modern/relativity/explorer-preset.d.mts +21 -0
- package/dist/physics/modern/relativity/explorer-preset.mjs +341 -0
- package/dist/physics/modern/relativity/index.d.mts +18 -0
- package/dist/physics/modern/relativity/length-activity.d.mts +6 -0
- package/dist/physics/modern/relativity/length-activity.mjs +79 -0
- package/dist/physics/modern/relativity/length-core.d.mts +21 -0
- package/dist/physics/modern/relativity/length-core.mjs +33 -0
- package/dist/physics/modern/relativity/length-preset.d.mts +20 -0
- package/dist/physics/modern/relativity/length-preset.mjs +185 -0
- package/dist/physics/modern/relativity/light-clock.d.mts +11 -0
- package/dist/physics/modern/relativity/light-clock.mjs +237 -0
- package/dist/physics/modern/relativity/muon-activity.d.mts +6 -0
- package/dist/physics/modern/relativity/muon-activity.mjs +79 -0
- package/dist/physics/modern/relativity/muon-core.d.mts +39 -0
- package/dist/physics/modern/relativity/muon-core.mjs +66 -0
- package/dist/physics/modern/relativity/muon-preset.d.mts +24 -0
- package/dist/physics/modern/relativity/muon-preset.mjs +120 -0
- package/dist/physics/modern/relativity/muon-scene.d.mts +15 -0
- package/dist/physics/modern/relativity/muon-scene.mjs +144 -0
- package/dist/physics/modern/relativity/preset.d.mts +28 -0
- package/dist/physics/modern/relativity/preset.mjs +132 -0
- package/dist/physics/modern/relativity/scene-primitives.mjs +244 -0
- package/dist/physics/modern/relativity/simultaneity-activity.d.mts +6 -0
- package/dist/physics/modern/relativity/simultaneity-activity.mjs +80 -0
- package/dist/physics/modern/relativity/simultaneity-core.d.mts +21 -0
- package/dist/physics/modern/relativity/simultaneity-core.mjs +33 -0
- package/dist/physics/modern/relativity/simultaneity-preset.d.mts +20 -0
- package/dist/physics/modern/relativity/simultaneity-preset.mjs +319 -0
- package/dist/physics/modern/relativity/spacetime.d.mts +11 -0
- package/dist/physics/modern/relativity/spacetime.mjs +168 -0
- package/dist/physics/modern/shared/experiment-transport.d.mts +38 -0
- package/dist/physics/modern/shared/experiment-transport.mjs +82 -0
- package/dist/physics/modern/shared/index.d.mts +1 -0
- package/dist/physics/optics/activity-plan.mjs +53 -0
- package/dist/physics/optics/activity.mjs +36 -0
- package/dist/physics/optics/asset.mjs +1 -1
- package/dist/physics/optics/core.d.mts +37 -0
- package/dist/physics/optics/core.mjs +67 -0
- package/dist/physics/optics/imaging-activity.mjs +64 -0
- package/dist/physics/optics/index.d.mts +5 -1
- package/dist/physics/optics/lens.d.mts +29 -0
- package/dist/physics/optics/lens.mjs +393 -0
- package/dist/physics/optics/mirror.d.mts +29 -0
- package/dist/physics/optics/mirror.mjs +384 -0
- package/dist/physics/optics/preset.d.mts +10 -1
- package/dist/physics/optics/preset.mjs +47 -26
- package/dist/physics/optics/refraction.d.mts +36 -0
- package/dist/physics/optics/refraction.mjs +422 -0
- package/dist/physics/orbit-lab.d.mts +19 -2
- package/dist/physics/orbit-lab.mjs +314 -172
- package/dist/physics/orbital/core.d.mts +26 -0
- package/dist/physics/orbital/core.mjs +71 -0
- package/dist/physics/power/index.d.mts +1 -0
- package/dist/physics/power/preset.d.mts +37 -0
- package/dist/physics/power/preset.mjs +555 -0
- package/dist/physics/projectiles/core.d.mts +7 -0
- package/dist/physics/projectiles/core.mjs +166 -0
- package/dist/physics/projectiles/falling-target.d.mts +34 -0
- package/dist/physics/projectiles/falling-target.mjs +337 -0
- package/dist/physics/projectiles/glyphs.mjs +269 -0
- package/dist/physics/projectiles/index.d.mts +2 -0
- package/dist/physics/projectiles/moving-launcher.d.mts +44 -0
- package/dist/physics/projectiles/moving-launcher.mjs +481 -0
- package/dist/physics/rain-relative/preset.d.mts +6 -1
- package/dist/physics/rain-relative/preset.mjs +237 -122
- package/dist/physics/ramp-forces/preset.d.mts +4 -1
- package/dist/physics/ramp-forces/preset.mjs +374 -317
- package/dist/physics/river-boat.d.mts +8 -1
- package/dist/physics/river-boat.mjs +194 -76
- package/dist/physics/river-crossing.mjs +101 -0
- package/dist/physics/shm/core.mjs +24 -0
- package/dist/physics/shm/preset.d.mts +4 -1
- package/dist/physics/shm/preset.mjs +491 -246
- package/dist/physics/stopping-distance/preset.d.mts +4 -1
- package/dist/physics/stopping-distance/preset.mjs +276 -175
- package/dist/physics/stress-strain/core.d.mts +132 -0
- package/dist/physics/stress-strain/core.mjs +161 -0
- package/dist/physics/stress-strain/index.d.mts +2 -0
- package/dist/physics/stress-strain/preset.d.mts +41 -0
- package/dist/physics/stress-strain/preset.mjs +683 -0
- package/dist/physics/temperature-scales/index.d.mts +1 -1
- package/dist/physics/temperature-scales/preset.d.mts +15 -2
- package/dist/physics/temperature-scales/preset.mjs +155 -176
- package/dist/physics/terminal-velocity/preset.d.mts +4 -1
- package/dist/physics/terminal-velocity/preset.mjs +314 -248
- package/dist/physics/thermal/activity-plan.mjs +53 -0
- package/dist/physics/thermal/activity.d.mts +44 -0
- package/dist/physics/thermal/activity.mjs +32 -0
- package/dist/physics/thermal/index.d.mts +2 -1
- package/dist/physics/thermal/preset.mjs +461 -272
- package/dist/physics/vector-board/preset.d.mts +24 -3
- package/dist/physics/vector-board/preset.mjs +340 -179
- package/dist/physics/vector-board/view.mjs +3 -16
- package/dist/physics/vector-scene.mjs +52 -28
- package/dist/physics/vector-types/preset.d.mts +8 -1
- package/dist/physics/vector-types/preset.mjs +104 -33
- package/dist/physics/venturi/core.mjs +67 -0
- package/dist/physics/venturi/index.d.mts +1 -0
- package/dist/physics/venturi/preset.d.mts +27 -0
- package/dist/physics/venturi/preset.mjs +339 -0
- package/dist/physics/water-density/preset.d.mts +4 -1
- package/dist/physics/water-density/preset.mjs +163 -175
- package/dist/physics/waves/activity-plan.mjs +62 -0
- package/dist/physics/waves/doppler.d.mts +4 -1
- package/dist/physics/waves/doppler.mjs +83 -88
- package/dist/physics/waves/preset.d.mts +4 -1
- package/dist/physics/waves/preset.mjs +220 -226
- package/dist/physics/waves/ripple.d.mts +4 -1
- package/dist/physics/waves/ripple.mjs +122 -108
- package/dist/physics/waves/string.d.mts +4 -1
- package/dist/physics/waves/string.mjs +100 -125
- package/dist/physics/waves/wave-activity.mjs +58 -0
- package/dist/physics/work-energy/preset.d.mts +4 -1
- package/dist/physics/work-energy/preset.mjs +298 -168
- package/dist/physics/work-potential/preset.d.mts +24 -1
- package/dist/physics/work-potential/preset.mjs +219 -196
- package/dist/schemas/activity-authoring.d.mts +233 -0
- package/dist/schemas/activity-authoring.mjs +316 -0
- package/dist/schemas/index.d.mts +35 -1
- package/dist/schemas/index.mjs +107 -20
- package/dist/shared/fields.mjs +39 -0
- package/dist/statistics/center-spread/preset.mjs +126 -84
- package/dist/statistics/frequency-density/core.d.mts +73 -0
- package/dist/statistics/frequency-density/core.mjs +72 -0
- package/dist/statistics/frequency-density/index.d.mts +2 -0
- package/dist/statistics/frequency-density/preset.d.mts +31 -0
- package/dist/statistics/frequency-density/preset.mjs +181 -0
- package/dist/statistics/galton/preset.mjs +122 -68
- package/dist/statistics/histogram/preset.mjs +178 -76
- package/dist/statistics/index.d.mts +5 -1
- package/dist/statistics/index.mjs +5 -1
- package/dist/statistics/normal/preset.mjs +152 -73
- package/dist/statistics/ogive/core.d.mts +54 -0
- package/dist/statistics/ogive/core.mjs +73 -0
- package/dist/statistics/ogive/index.d.mts +2 -0
- package/dist/statistics/ogive/preset.d.mts +21 -0
- package/dist/statistics/ogive/preset.mjs +242 -0
- package/dist/statistics/sampling/preset.mjs +162 -96
- package/dist/statistics/sequence/preset.mjs +92 -81
- package/dist/statistics/z-table/preset.mjs +169 -131
- package/dist/three/biology/cell-energy.d.mts +15 -0
- package/dist/three/biology/cell-energy.mjs +151 -0
- package/dist/three/biology/cell-system.d.mts +21 -0
- package/dist/three/biology/cell-system.mjs +139 -0
- package/dist/three/biology/cell-world.d.mts +65 -0
- package/dist/three/biology/cell-world.mjs +344 -0
- package/dist/three/biology/index.d.mts +8 -0
- package/dist/three/biology/index.mjs +9 -0
- package/dist/three/biology/meiosis-explorer.d.mts +14 -0
- package/dist/three/biology/meiosis-explorer.mjs +292 -0
- package/dist/three/biology/membrane-transport.d.mts +14 -0
- package/dist/three/biology/membrane-transport.mjs +163 -0
- package/dist/three/biology/mitosis-explorer.d.mts +15 -0
- package/dist/three/biology/mitosis-explorer.mjs +721 -0
- package/dist/three/biology/organelles.d.mts +29 -0
- package/dist/three/biology/organelles.mjs +192 -0
- package/dist/three/chemistry/atomic-orbital.d.mts +9 -0
- package/dist/three/chemistry/atomic-orbital.mjs +120 -0
- package/dist/three/chemistry/crystal-lattice.d.mts +9 -0
- package/dist/three/chemistry/crystal-lattice.mjs +172 -0
- package/dist/three/chemistry/index.d.mts +6 -0
- package/dist/three/chemistry/index.mjs +7 -0
- package/dist/three/chemistry/molecular-geometry.d.mts +9 -0
- package/dist/three/chemistry/molecular-geometry.mjs +205 -0
- package/dist/three/chemistry/orbital-overlap.d.mts +9 -0
- package/dist/three/chemistry/orbital-overlap.mjs +144 -0
- package/dist/three/chemistry/stereochemistry.d.mts +9 -0
- package/dist/three/chemistry/stereochemistry.mjs +150 -0
- package/dist/three/index.d.mts +11 -0
- package/dist/three/index.mjs +12 -0
- package/dist/three/model-asset.d.mts +27 -0
- package/dist/three/model-asset.mjs +63 -0
- package/dist/three/palette.d.mts +12 -0
- package/dist/three/palette.mjs +75 -0
- package/dist/three/physics/bloch-sphere.d.mts +12 -0
- package/dist/three/physics/bloch-sphere.mjs +209 -0
- package/dist/three/physics/index.d.mts +3 -0
- package/dist/three/physics/index.mjs +4 -0
- package/dist/three/physics/spatial-lorentz.d.mts +9 -0
- package/dist/three/physics/spatial-lorentz.mjs +162 -0
- package/dist/three/primitives.d.mts +127 -0
- package/dist/three/primitives.mjs +347 -0
- package/dist/three/surface.d.mts +36 -0
- package/dist/three/surface.mjs +178 -0
- package/package.json +236 -96
- package/styles/commerce.css +826 -0
- package/styles/core.css +3991 -0
- package/styles/domains/algorithms.css +7 -0
- package/styles/domains/biology.css +5 -0
- package/styles/domains/chemistry.css +5 -0
- package/styles/domains/circuits.css +5 -0
- package/styles/domains/discrete.css +10 -0
- package/styles/domains/editor.css +5 -0
- package/styles/domains/ict.css +5 -0
- package/styles/domains/logic.css +6 -0
- package/styles/domains/math.css +10 -0
- package/styles/domains/ml.css +5 -0
- package/styles/domains/parts/algorithms-1.css +521 -0
- package/styles/domains/parts/algorithms-2.css +122 -0
- package/styles/domains/parts/algorithms-3.css +91 -0
- package/styles/domains/parts/biology.css +345 -0
- package/styles/domains/parts/chemistry.css +274 -0
- package/styles/domains/parts/circuits.css +349 -0
- package/styles/domains/parts/discrete-1.css +142 -0
- package/styles/domains/parts/discrete-2.css +172 -0
- package/styles/domains/parts/discrete-3.css +116 -0
- package/styles/domains/parts/discrete-4.css +194 -0
- package/styles/domains/parts/discrete-5.css +111 -0
- package/styles/domains/parts/discrete-6.css +81 -0
- package/styles/domains/parts/editor.css +267 -0
- package/styles/domains/parts/ict.css +242 -0
- package/styles/domains/parts/logic-1.css +286 -0
- package/styles/domains/parts/logic-2.css +208 -0
- package/styles/domains/parts/math-1.css +299 -0
- package/styles/domains/parts/math-2.css +275 -0
- package/styles/domains/parts/math-3.css +299 -0
- package/styles/domains/parts/math-4.css +75 -0
- package/styles/domains/parts/math-5.css +305 -0
- package/styles/domains/parts/math-6.css +115 -0
- package/styles/domains/parts/ml.css +243 -0
- package/styles/domains/parts/physics-1.css +401 -0
- package/styles/domains/parts/physics-2.css +642 -0
- package/styles/domains/parts/physics-3.css +392 -0
- package/styles/domains/parts/probability-1.css +54 -0
- package/styles/domains/parts/probability-2.css +392 -0
- package/styles/domains/parts/probability-3.css +111 -0
- package/styles/domains/parts/shared-1.css +142 -0
- package/styles/domains/parts/shared-2.css +60 -0
- package/styles/domains/parts/statistics.css +250 -0
- package/styles/domains/physics.css +7 -0
- package/styles/domains/probability.css +7 -0
- package/styles/domains/shared.css +3 -0
- package/styles/domains/statistics.css +5 -0
- package/styles/domains.css +47 -0
- package/styles/exam.css +206 -0
- package/styles/figure.css +247 -0
- package/styles/modern-physics.css +155 -0
- package/styles/three.css +299 -0
- package/styles.css +22 -263
- package/dist/blocks/accounting.d.mts +0 -142
- package/dist/blocks/accounting.mjs +0 -446
- package/dist/blocks/biology.d.mts +0 -197
- package/dist/blocks/biology.mjs +0 -513
- package/dist/blocks/chem.d.mts +0 -128
- package/dist/blocks/chem.mjs +0 -486
- package/dist/blocks/circuits.d.mts +0 -375
- package/dist/blocks/circuits.mjs +0 -1213
- package/dist/blocks/discrete.d.mts +0 -90
- package/dist/blocks/discrete.mjs +0 -384
- package/dist/blocks/economics.d.mts +0 -56
- package/dist/blocks/economics.mjs +0 -203
- package/dist/blocks/geography.d.mts +0 -58
- package/dist/blocks/geography.mjs +0 -115
- package/dist/blocks/geometry.d.mts +0 -28
- package/dist/blocks/geometry.mjs +0 -160
- package/dist/blocks/ict.d.mts +0 -154
- package/dist/blocks/ict.mjs +0 -407
- package/dist/blocks/lab-block.d.mts +0 -16
- package/dist/blocks/lab-gallery.d.mts +0 -30
- package/dist/blocks/lab-gallery.mjs +0 -208
- package/dist/blocks/language.d.mts +0 -349
- package/dist/blocks/language.mjs +0 -750
- package/dist/blocks/math.d.mts +0 -977
- package/dist/blocks/math.mjs +0 -3170
- package/dist/blocks/ml.d.mts +0 -128
- package/dist/blocks/ml.mjs +0 -220
- package/dist/blocks/physics.d.mts +0 -264
- package/dist/blocks/physics.mjs +0 -915
- package/dist/blocks/statistics.d.mts +0 -29
- package/dist/blocks/statistics.mjs +0 -123
- package/dist/build/parts.d.mts +0 -1
- package/dist/circuits/cmos-gate/preset.mjs +0 -1491
- package/dist/circuits/semiconductor/preset.mjs +0 -1855
- package/dist/discrete/logic-circuit/index.d.mts +0 -1
- package/dist/discrete/logic-circuit/preset.d.mts +0 -47
- package/dist/discrete/logic-circuit/preset.mjs +0 -307
- package/dist/kit/electronics.mjs +0 -849
- package/dist/ml/boundary/index.d.mts +0 -1
- package/dist/ml/classifier/index.d.mts +0 -1
- package/dist/ml/kmeans/index.d.mts +0 -1
- package/dist/ml/knn/index.d.mts +0 -1
- package/dist/ml/regression/index.d.mts +0 -1
- package/dist/physics/projectile-lab.d.mts +0 -10
- package/dist/physics/projectile-lab.mjs +0 -354
- package/dist/physics/vector-board/view.d.mts +0 -49
package/dist/physics/index.d.mts
CHANGED
|
@@ -2,8 +2,17 @@ import { BALANCE_LEVER_ASSET } from "./lever/asset.mjs";
|
|
|
2
2
|
import { LeverBalanceLab, LeverBalanceProps, LeverItemSpec, leverBalanceDoc } from "./lever/preset.mjs";
|
|
3
3
|
import { OPTICS_RAY_ASSET } from "./optics/asset.mjs";
|
|
4
4
|
import { OpticsLab, OpticsProps, opticsDoc } from "./optics/preset.mjs";
|
|
5
|
-
import {
|
|
5
|
+
import { MEDIA, OpticImage, criticalAngle, refract, thinOptic } from "./optics/core.mjs";
|
|
6
|
+
import { Medium, RefractionLab, RefractionProps } from "./optics/refraction.mjs";
|
|
7
|
+
import { LensImagingLab, LensImagingProps, LensType } from "./optics/lens.mjs";
|
|
8
|
+
import { MirrorImagingLab, MirrorImagingProps, MirrorType } from "./optics/mirror.mjs";
|
|
6
9
|
import { GravityDrop, GravityDropProps } from "./gravity-drop.mjs";
|
|
10
|
+
import { LauncherMode, MovingLauncherLab, MovingLauncherProps } from "./projectiles/moving-launcher.mjs";
|
|
11
|
+
import { FallingTargetLab, FallingTargetProps } from "./projectiles/falling-target.mjs";
|
|
12
|
+
import { InterceptLab, InterceptProps } from "./intercept/preset.mjs";
|
|
13
|
+
import { LinearPursuitLab, LinearPursuitProps, LinearPursuitScenario } from "./linear-pursuit/preset.mjs";
|
|
14
|
+
import { LinearBody, LinearPursuitState, firstLinearMeeting, linearPositionAt } from "./linear-pursuit/core.mjs";
|
|
15
|
+
import { VenturiLab, VenturiProps } from "./venturi/preset.mjs";
|
|
7
16
|
import { RiverBoat, RiverBoatProps } from "./river-boat.mjs";
|
|
8
17
|
import { SceneVector, VectorScene, VectorSceneProps } from "./vector-scene.mjs";
|
|
9
18
|
import { BoardVector, VectorBoardLab, VectorBoardProps } from "./vector-board/preset.mjs";
|
|
@@ -16,12 +25,14 @@ import { ImpulseLab, ImpulseProps } from "./impulse/preset.mjs";
|
|
|
16
25
|
import { BulletWallsLab, BulletWallsProps } from "./bullet-walls/preset.mjs";
|
|
17
26
|
import { CircularMotionLab, CircularMotionProps } from "./circular-motion/preset.mjs";
|
|
18
27
|
import { EnergySkateLab, EnergySkateProps } from "./energy-skate/preset.mjs";
|
|
28
|
+
import { AtwoodState, CircularMotionState, CollisionResult, EnergySnapshot, ForceTimePoint, PenetrationResult, RampForceState, StoppingMetrics, TerminalVelocityState, atwoodState, circularMotionState, collisionResult, energySnapshot, halfSinePeakForce, halfSinePulse, parabolicTrackHeight, penetrationResult, rampForceState, stoppingMetrics, stoppingPositionAt, stoppingSpeedAt, terminalVelocityState } from "./mechanics/core.mjs";
|
|
19
29
|
import { SHMMode, SimpleHarmonicLab, SimpleHarmonicProps } from "./shm/preset.mjs";
|
|
20
30
|
import { AtwoodLab, AtwoodProps } from "./atwood/preset.mjs";
|
|
21
31
|
import { TerminalVelocityLab, TerminalVelocityProps } from "./terminal-velocity/preset.mjs";
|
|
22
32
|
import { KeplerLab, KeplerProps } from "./kepler/preset.mjs";
|
|
23
33
|
import { GravitationLab, GravitationProps } from "./gravitation/preset.mjs";
|
|
24
|
-
import {
|
|
34
|
+
import { EllipseState, TwoBodyState, circularOrbitSpeed, ellipseStateAtMeanAnomaly, gravitationalAcceleration, inverseSquareForce, keplerPeriod, launchState, solveEccentricAnomaly, specificOrbitalEnergy, stepTwoBody } from "./orbital/core.mjs";
|
|
35
|
+
import { OrbitLab, OrbitLabProps } from "./orbit-lab.mjs";
|
|
25
36
|
import { WaveLab, WaveLabProps, WaveMode } from "./waves/preset.mjs";
|
|
26
37
|
import { RippleTankLab, RippleTankProps, RippleView } from "./waves/ripple.mjs";
|
|
27
38
|
import { DopplerLab, DopplerProps } from "./waves/doppler.mjs";
|
|
@@ -32,15 +43,40 @@ import { ElectricFluxLab, ElectricFluxProps } from "./electric-flux/preset.mjs";
|
|
|
32
43
|
import { GaussLab, GaussProps } from "./gauss-law/preset.mjs";
|
|
33
44
|
import { WorkPotentialLab, WorkPotentialProps } from "./work-potential/preset.mjs";
|
|
34
45
|
import { LorentzForceLab, LorentzProps } from "./lorentz/preset.mjs";
|
|
46
|
+
import { Vec2Value, cyclotronRadius, cyclotronSense, lorentzForce2D } from "./lorentz/core.mjs";
|
|
47
|
+
import { SpatialFieldMode, Vec3Value, fieldsFor, lorentzForce3D, traceLorentz } from "./fields/spatial-core.mjs";
|
|
48
|
+
import { spatialLorentzActivity } from "./fields/spatial-activity.mjs";
|
|
49
|
+
import { SpatialLorentzLab, SpatialLorentzProjectedScene, SpatialLorentzProps, SpatialLorentzSceneProps, SpatialLorentzSceneRenderer } from "./fields/spatial-preset.mjs";
|
|
35
50
|
import { DecayCoolingLab, DecayCoolingProps } from "./exponential/preset.mjs";
|
|
36
51
|
import { WorkEnergyLab, WorkEnergyProps } from "./work-energy/preset.mjs";
|
|
52
|
+
import { PowerLab, PowerMode, PowerProps } from "./power/preset.mjs";
|
|
53
|
+
import { MATERIALS, Material, MaterialId, WireState, areaOf, energyDensity, limitStrain, material, strainAt, stressAt, stressStrainCurve, wireState } from "./stress-strain/core.mjs";
|
|
54
|
+
import { StressStrainGraph, StressStrainLab, StressStrainProps } from "./stress-strain/preset.mjs";
|
|
55
|
+
import { AcState, AcSupply, RectifiedTrace, RectifierMode, WavePoint, acCurrentAt, acPeriodS, acRectifiedTrace, acState, acVoltageAt, acWaveTrace, integrateSquareOverPeriod, meanAcPowerW, meanRectifiedVoltage, meanSquareByIntegration, meanSquareFromPeak, rectify, rippleFrequencyHz, rmsFromPeak } from "./alternating-current/core.mjs";
|
|
56
|
+
import { AcView, AlternatingCurrentLab, AlternatingCurrentProps } from "./alternating-current/preset.mjs";
|
|
57
|
+
import { FluidId, FluidPressureLab, FluidPressureProps } from "./fluid-pressure/preset.mjs";
|
|
58
|
+
import { ForcePairsLab, ForcePairsProps, ForcePairsScenario } from "./force-pairs/preset.mjs";
|
|
59
|
+
import { CoupleTorqueLab, CoupleTorqueProps } from "./couple-torque/preset.mjs";
|
|
37
60
|
import { HeatingCurveLab, HeatingCurveProps } from "./thermal/preset.mjs";
|
|
61
|
+
import { ThermalActivity, ThermalActivityProps } from "./thermal/activity.mjs";
|
|
38
62
|
import { HeatTransferLab, HeatTransferProps } from "./heat-transfer/preset.mjs";
|
|
39
63
|
import { ThermalExpansionLab, ThermalExpansionProps } from "./expansion/preset.mjs";
|
|
40
|
-
import { TemperatureScalesLab, TemperatureScalesProps } from "./temperature-scales/preset.mjs";
|
|
64
|
+
import { TemperaturePreset, TemperatureScalesLab, TemperatureScalesProps } from "./temperature-scales/preset.mjs";
|
|
41
65
|
import { WaterDensityLab, WaterDensityProps } from "./water-density/preset.mjs";
|
|
42
66
|
import { GasProcessLab, GasProcessProps } from "./gas-process/preset.mjs";
|
|
43
67
|
import { CarnotCycleLab, CarnotProps } from "./carnot/preset.mjs";
|
|
44
68
|
import { EntropyLab, EntropyProps } from "./entropy/preset.mjs";
|
|
45
69
|
import { EffStream, EfficiencyLab, EfficiencyProps } from "./efficiency/preset.mjs";
|
|
46
|
-
|
|
70
|
+
import { LightClockState, SpacetimeEvent, inverseLorentzTransform, lightClockEvents, lightClockState, lorentzGamma, lorentzTransform, spacetimeInterval } from "./modern/relativity/core.mjs";
|
|
71
|
+
import { lightClockActivity } from "./modern/relativity/activity.mjs";
|
|
72
|
+
import { LightClockScene } from "./modern/relativity/light-clock.mjs";
|
|
73
|
+
import { SpacetimeDiagram } from "./modern/relativity/spacetime.mjs";
|
|
74
|
+
import { RelativityLightClockLab, RelativityLightClockProps } from "./modern/relativity/preset.mjs";
|
|
75
|
+
import { MUON_MEAN_LIFETIME, MuonSurvivalState, exponentialSurvival, muonSurvivalState } from "./modern/relativity/muon-core.mjs";
|
|
76
|
+
import { muonSurvivalActivity } from "./modern/relativity/muon-activity.mjs";
|
|
77
|
+
import { MuonAtmosphereScene } from "./modern/relativity/muon-scene.mjs";
|
|
78
|
+
import { MuonSurvivalLab, MuonSurvivalLabProps } from "./modern/relativity/muon-preset.mjs";
|
|
79
|
+
import { BindingState, NUCLIDES, Nuclide, NuclideId, bindingState } from "./modern/nuclear/core.mjs";
|
|
80
|
+
import { bindingEnergyActivity } from "./modern/nuclear/activity.mjs";
|
|
81
|
+
import { NuclearBindingEnergyLab, NuclearBindingEnergyLabProps } from "./modern/nuclear/preset.mjs";
|
|
82
|
+
export { type AcState, type AcSupply, type AcView, AlternatingCurrentLab, type AlternatingCurrentProps, AtwoodLab, type AtwoodProps, type AtwoodState, BALANCE_LEVER_ASSET, type BindingState, type BoardVector, BulletWallsLab, type BulletWallsProps, CarnotCycleLab, type CarnotProps, CircularMotionLab, type CircularMotionProps, type CircularMotionState, type CollisionResult, CollisionTrackLab, type CollisionTrackProps, CoupleTorqueLab, type CoupleTorqueProps, MATERIALS as DEFORMATION_MATERIALS, DecayCoolingLab, type DecayCoolingProps, type Material as DeformationMaterial, type MaterialId as DeformationMaterialId, DopplerLab, type DopplerProps, type EffStream, EfficiencyLab, type EfficiencyProps, ElectricFieldLab, type ElectricFieldProps, ElectricFluxLab, type ElectricFluxProps, type EllipseState, type EndType, EnergySkateLab, type EnergySkateProps, type EnergySnapshot, EntropyLab, type EntropyProps, FallingTargetLab, type FallingTargetProps, type FluidId, FluidPressureLab, type FluidPressureProps, ForcePairsLab, type ForcePairsProps, type ForcePairsScenario, type ForceTimePoint, GasProcessLab, type GasProcessProps, GaussLab, type GaussProps, GravitationLab, type GravitationProps, GravityDrop, type GravityDropProps, HeatTransferLab, type HeatTransferProps, HeatingCurveLab, type HeatingCurveProps, ImpulseLab, type ImpulseProps, InterceptLab, type InterceptProps, KeplerLab, type KeplerProps, type LauncherMode, LensImagingLab, type LensImagingProps, type LensType, LeverBalanceLab, type LeverBalanceProps, type LeverItemSpec, LightClockScene, type LightClockState, type LinearBody, LinearPursuitLab, type LinearPursuitProps, type LinearPursuitScenario, type LinearPursuitState, LorentzForceLab, type LorentzProps, MEDIA, MUON_MEAN_LIFETIME, MagnetismLab, type MagnetismProps, type Medium, MirrorImagingLab, type MirrorImagingProps, type MirrorType, MovingLauncherLab, type MovingLauncherProps, MuonAtmosphereScene, MuonSurvivalLab, type MuonSurvivalLabProps, type MuonSurvivalState, NUCLIDES, NuclearBindingEnergyLab, type NuclearBindingEnergyLabProps, type Nuclide, type NuclideId, OPTICS_RAY_ASSET, type OpticImage, OpticsLab, type OpticsProps, OrbitLab, type OrbitLabProps, type PenetrationResult, PowerLab, type PowerMode, type PowerProps, RainRelativeLab, type RainRelativeProps, type RampForceState, RampForcesLab, type RampForcesProps, type RectifiedTrace, type RectifierMode, RefractionLab, type RefractionProps, RelativityLightClockLab, type RelativityLightClockProps, RippleTankLab, type RippleTankProps, type RippleView, RiverBoat, type RiverBoatProps, type SHMMode, type SceneVector, SimpleHarmonicLab, type SimpleHarmonicProps, SpacetimeDiagram, type SpacetimeEvent, type SpatialFieldMode, SpatialLorentzLab, SpatialLorentzProjectedScene, type SpatialLorentzProps, type SpatialLorentzSceneProps, type SpatialLorentzSceneRenderer, StoppingDistanceLab, type StoppingDistanceProps, type StoppingMetrics, type StressStrainGraph, StressStrainLab, type StressStrainProps, type StringMode, StringReflectionLab, type StringReflectionProps, type TemperaturePreset, TemperatureScalesLab, type TemperatureScalesProps, TerminalVelocityLab, type TerminalVelocityProps, type TerminalVelocityState, ThermalActivity, type ThermalActivityProps, ThermalExpansionLab, type ThermalExpansionProps, type TwoBodyState, type TypePanel, type Vec2Value, type Vec3Value, VectorBoardLab, type VectorBoardProps, VectorScene, type VectorSceneProps, VectorTypesLab, type VectorTypesProps, VenturiLab, type VenturiProps, WaterDensityLab, type WaterDensityProps, WaveLab, type WaveLabProps, type WaveMode, type WavePoint, type WireState, WorkEnergyLab, type WorkEnergyProps, WorkPotentialLab, type WorkPotentialProps, acCurrentAt, acPeriodS, acRectifiedTrace, acState, acVoltageAt, acWaveTrace, areaOf, atwoodState, bindingEnergyActivity, bindingState, circularMotionState, circularOrbitSpeed, collisionResult, criticalAngle, cyclotronRadius, cyclotronSense, material as deformationMaterial, ellipseStateAtMeanAnomaly, energyDensity, energySnapshot, exponentialSurvival, fieldsFor, firstLinearMeeting, gravitationalAcceleration, halfSinePeakForce, halfSinePulse, integrateSquareOverPeriod, inverseLorentzTransform, inverseSquareForce, keplerPeriod, launchState, leverBalanceDoc, lightClockActivity, lightClockEvents, lightClockState, limitStrain, linearPositionAt, lorentzForce2D, lorentzForce3D, lorentzGamma, lorentzTransform, meanAcPowerW, meanRectifiedVoltage, meanSquareByIntegration, meanSquareFromPeak, muonSurvivalActivity, muonSurvivalState, opticsDoc, parabolicTrackHeight, penetrationResult, rampForceState, rectify, refract, rippleFrequencyHz, rmsFromPeak, solveEccentricAnomaly, spacetimeInterval, spatialLorentzActivity, specificOrbitalEnergy, stepTwoBody, stoppingMetrics, stoppingPositionAt, stoppingSpeedAt, strainAt, stressAt, stressStrainCurve, terminalVelocityState, thinOptic, traceLorentz, wireState };
|
package/dist/physics/index.mjs
CHANGED
|
@@ -2,13 +2,23 @@ import { BALANCE_LEVER_ASSET } from "./lever/asset.mjs";
|
|
|
2
2
|
import { LeverBalanceLab, leverBalanceDoc } from "./lever/preset.mjs";
|
|
3
3
|
import { OPTICS_RAY_ASSET } from "./optics/asset.mjs";
|
|
4
4
|
import { OpticsLab, opticsDoc } from "./optics/preset.mjs";
|
|
5
|
-
import {
|
|
5
|
+
import { MEDIA, criticalAngle, refract, thinOptic } from "./optics/core.mjs";
|
|
6
|
+
import { RefractionLab } from "./optics/refraction.mjs";
|
|
7
|
+
import { LensImagingLab } from "./optics/lens.mjs";
|
|
8
|
+
import { MirrorImagingLab } from "./optics/mirror.mjs";
|
|
6
9
|
import { GravityDrop } from "./gravity-drop.mjs";
|
|
10
|
+
import { MovingLauncherLab } from "./projectiles/moving-launcher.mjs";
|
|
11
|
+
import { FallingTargetLab } from "./projectiles/falling-target.mjs";
|
|
12
|
+
import { InterceptLab } from "./intercept/preset.mjs";
|
|
13
|
+
import { firstLinearMeeting, linearPositionAt } from "./linear-pursuit/core.mjs";
|
|
14
|
+
import { LinearPursuitLab } from "./linear-pursuit/preset.mjs";
|
|
15
|
+
import { VenturiLab } from "./venturi/preset.mjs";
|
|
7
16
|
import { RiverBoat } from "./river-boat.mjs";
|
|
8
17
|
import { VectorScene } from "./vector-scene.mjs";
|
|
9
18
|
import { VectorBoardLab } from "./vector-board/preset.mjs";
|
|
10
19
|
import { VectorTypesLab } from "./vector-types/preset.mjs";
|
|
11
20
|
import { RainRelativeLab } from "./rain-relative/preset.mjs";
|
|
21
|
+
import { atwoodState, circularMotionState, collisionResult, energySnapshot, halfSinePeakForce, halfSinePulse, parabolicTrackHeight, penetrationResult, rampForceState, stoppingMetrics, stoppingPositionAt, stoppingSpeedAt, terminalVelocityState } from "./mechanics/core.mjs";
|
|
12
22
|
import { StoppingDistanceLab } from "./stopping-distance/preset.mjs";
|
|
13
23
|
import { RampForcesLab } from "./ramp-forces/preset.mjs";
|
|
14
24
|
import { CollisionTrackLab } from "./collision-track/preset.mjs";
|
|
@@ -19,6 +29,7 @@ import { EnergySkateLab } from "./energy-skate/preset.mjs";
|
|
|
19
29
|
import { SimpleHarmonicLab } from "./shm/preset.mjs";
|
|
20
30
|
import { AtwoodLab } from "./atwood/preset.mjs";
|
|
21
31
|
import { TerminalVelocityLab } from "./terminal-velocity/preset.mjs";
|
|
32
|
+
import { circularOrbitSpeed, ellipseStateAtMeanAnomaly, gravitationalAcceleration, inverseSquareForce, keplerPeriod, launchState, solveEccentricAnomaly, specificOrbitalEnergy, stepTwoBody } from "./orbital/core.mjs";
|
|
22
33
|
import { KeplerLab } from "./kepler/preset.mjs";
|
|
23
34
|
import { GravitationLab } from "./gravitation/preset.mjs";
|
|
24
35
|
import { OrbitLab } from "./orbit-lab.mjs";
|
|
@@ -31,10 +42,23 @@ import { ElectricFieldLab } from "./electric-field/preset.mjs";
|
|
|
31
42
|
import { ElectricFluxLab } from "./electric-flux/preset.mjs";
|
|
32
43
|
import { GaussLab } from "./gauss-law/preset.mjs";
|
|
33
44
|
import { WorkPotentialLab } from "./work-potential/preset.mjs";
|
|
45
|
+
import { cyclotronRadius, cyclotronSense, lorentzForce2D } from "./lorentz/core.mjs";
|
|
34
46
|
import { LorentzForceLab } from "./lorentz/preset.mjs";
|
|
47
|
+
import { fieldsFor, lorentzForce3D, traceLorentz } from "./fields/spatial-core.mjs";
|
|
48
|
+
import { spatialLorentzActivity } from "./fields/spatial-activity.mjs";
|
|
49
|
+
import { SpatialLorentzLab, SpatialLorentzProjectedScene } from "./fields/spatial-preset.mjs";
|
|
35
50
|
import { DecayCoolingLab } from "./exponential/preset.mjs";
|
|
36
51
|
import { WorkEnergyLab } from "./work-energy/preset.mjs";
|
|
52
|
+
import { PowerLab } from "./power/preset.mjs";
|
|
53
|
+
import { MATERIALS, areaOf, energyDensity, limitStrain, material, strainAt, stressAt, stressStrainCurve, wireState } from "./stress-strain/core.mjs";
|
|
54
|
+
import { StressStrainLab } from "./stress-strain/preset.mjs";
|
|
55
|
+
import { acCurrentAt, acPeriodS, acRectifiedTrace, acState, acVoltageAt, acWaveTrace, integrateSquareOverPeriod, meanAcPowerW, meanRectifiedVoltage, meanSquareByIntegration, meanSquareFromPeak, rectify, rippleFrequencyHz, rmsFromPeak } from "./alternating-current/core.mjs";
|
|
56
|
+
import { AlternatingCurrentLab } from "./alternating-current/preset.mjs";
|
|
57
|
+
import { FluidPressureLab } from "./fluid-pressure/preset.mjs";
|
|
58
|
+
import { ForcePairsLab } from "./force-pairs/preset.mjs";
|
|
59
|
+
import { CoupleTorqueLab } from "./couple-torque/preset.mjs";
|
|
37
60
|
import { HeatingCurveLab } from "./thermal/preset.mjs";
|
|
61
|
+
import { ThermalActivity } from "./thermal/activity.mjs";
|
|
38
62
|
import { HeatTransferLab } from "./heat-transfer/preset.mjs";
|
|
39
63
|
import { ThermalExpansionLab } from "./expansion/preset.mjs";
|
|
40
64
|
import { TemperatureScalesLab } from "./temperature-scales/preset.mjs";
|
|
@@ -43,5 +67,17 @@ import { GasProcessLab } from "./gas-process/preset.mjs";
|
|
|
43
67
|
import { CarnotCycleLab } from "./carnot/preset.mjs";
|
|
44
68
|
import { EntropyLab } from "./entropy/preset.mjs";
|
|
45
69
|
import { EfficiencyLab } from "./efficiency/preset.mjs";
|
|
70
|
+
import { inverseLorentzTransform, lightClockEvents, lightClockState, lorentzGamma, lorentzTransform, spacetimeInterval } from "./modern/relativity/core.mjs";
|
|
71
|
+
import { lightClockActivity } from "./modern/relativity/activity.mjs";
|
|
72
|
+
import { LightClockScene } from "./modern/relativity/light-clock.mjs";
|
|
73
|
+
import { SpacetimeDiagram } from "./modern/relativity/spacetime.mjs";
|
|
74
|
+
import { RelativityLightClockLab } from "./modern/relativity/preset.mjs";
|
|
75
|
+
import { MUON_MEAN_LIFETIME, exponentialSurvival, muonSurvivalState } from "./modern/relativity/muon-core.mjs";
|
|
76
|
+
import { muonSurvivalActivity } from "./modern/relativity/muon-activity.mjs";
|
|
77
|
+
import { MuonAtmosphereScene } from "./modern/relativity/muon-scene.mjs";
|
|
78
|
+
import { MuonSurvivalLab } from "./modern/relativity/muon-preset.mjs";
|
|
79
|
+
import { NUCLIDES, bindingState } from "./modern/nuclear/core.mjs";
|
|
80
|
+
import { bindingEnergyActivity } from "./modern/nuclear/activity.mjs";
|
|
81
|
+
import { NuclearBindingEnergyLab } from "./modern/nuclear/preset.mjs";
|
|
46
82
|
|
|
47
|
-
export { AtwoodLab, BALANCE_LEVER_ASSET, BulletWallsLab, CarnotCycleLab, CircularMotionLab, CollisionTrackLab, DecayCoolingLab, DopplerLab, EfficiencyLab, ElectricFieldLab, ElectricFluxLab, EnergySkateLab, EntropyLab, GasProcessLab, GaussLab, GravitationLab, GravityDrop, HeatTransferLab, HeatingCurveLab, ImpulseLab, KeplerLab, LeverBalanceLab, LorentzForceLab, MagnetismLab, OPTICS_RAY_ASSET, OpticsLab, OrbitLab,
|
|
83
|
+
export { AlternatingCurrentLab, AtwoodLab, BALANCE_LEVER_ASSET, BulletWallsLab, CarnotCycleLab, CircularMotionLab, CollisionTrackLab, CoupleTorqueLab, MATERIALS as DEFORMATION_MATERIALS, DecayCoolingLab, DopplerLab, EfficiencyLab, ElectricFieldLab, ElectricFluxLab, EnergySkateLab, EntropyLab, FallingTargetLab, FluidPressureLab, ForcePairsLab, GasProcessLab, GaussLab, GravitationLab, GravityDrop, HeatTransferLab, HeatingCurveLab, ImpulseLab, InterceptLab, KeplerLab, LensImagingLab, LeverBalanceLab, LightClockScene, LinearPursuitLab, LorentzForceLab, MEDIA, MUON_MEAN_LIFETIME, MagnetismLab, MirrorImagingLab, MovingLauncherLab, MuonAtmosphereScene, MuonSurvivalLab, NUCLIDES, NuclearBindingEnergyLab, OPTICS_RAY_ASSET, OpticsLab, OrbitLab, PowerLab, RainRelativeLab, RampForcesLab, RefractionLab, RelativityLightClockLab, RippleTankLab, RiverBoat, SimpleHarmonicLab, SpacetimeDiagram, SpatialLorentzLab, SpatialLorentzProjectedScene, StoppingDistanceLab, StressStrainLab, StringReflectionLab, TemperatureScalesLab, TerminalVelocityLab, ThermalActivity, ThermalExpansionLab, VectorBoardLab, VectorScene, VectorTypesLab, VenturiLab, WaterDensityLab, WaveLab, WorkEnergyLab, WorkPotentialLab, acCurrentAt, acPeriodS, acRectifiedTrace, acState, acVoltageAt, acWaveTrace, areaOf, atwoodState, bindingEnergyActivity, bindingState, circularMotionState, circularOrbitSpeed, collisionResult, criticalAngle, cyclotronRadius, cyclotronSense, material as deformationMaterial, ellipseStateAtMeanAnomaly, energyDensity, energySnapshot, exponentialSurvival, fieldsFor, firstLinearMeeting, gravitationalAcceleration, halfSinePeakForce, halfSinePulse, integrateSquareOverPeriod, inverseLorentzTransform, inverseSquareForce, keplerPeriod, launchState, leverBalanceDoc, lightClockActivity, lightClockEvents, lightClockState, limitStrain, linearPositionAt, lorentzForce2D, lorentzForce3D, lorentzGamma, lorentzTransform, meanAcPowerW, meanRectifiedVoltage, meanSquareByIntegration, meanSquareFromPeak, muonSurvivalActivity, muonSurvivalState, opticsDoc, parabolicTrackHeight, penetrationResult, rampForceState, rectify, refract, rippleFrequencyHz, rmsFromPeak, solveEccentricAnomaly, spacetimeInterval, spatialLorentzActivity, specificOrbitalEnergy, stepTwoBody, stoppingMetrics, stoppingPositionAt, stoppingSpeedAt, strainAt, stressAt, stressStrainCurve, terminalVelocityState, thinOptic, traceLorentz, wireState };
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { HUE, STROKE, shade, tint } from "../../kit/figure/figure.mjs";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/physics/intercept/animals.tsx
|
|
7
|
+
/** Face the direction of travel and lean towards it, within ±35°. */
|
|
8
|
+
function pose(x, y, heading, size) {
|
|
9
|
+
const a = (heading % 360 + 540) % 360 - 180;
|
|
10
|
+
const right = Math.abs(a) <= 90;
|
|
11
|
+
const lean = right ? a : a > 0 ? 180 - a : -180 - a;
|
|
12
|
+
return `translate(${x} ${y}) rotate(${-Math.max(-35, Math.min(35, lean))}) scale(${right ? size : -size} ${size}) translate(-0.5 -0.34)`;
|
|
13
|
+
}
|
|
14
|
+
function TigerGlyph({ x, y, heading, size = 58 }) {
|
|
15
|
+
const fur = HUE.warn;
|
|
16
|
+
const dark = shade(HUE.warn, 28);
|
|
17
|
+
const pale = tint(HUE.warn, 30);
|
|
18
|
+
const hair = STROKE.hair / size;
|
|
19
|
+
return /* @__PURE__ */ jsxs("g", {
|
|
20
|
+
transform: pose(x, y, heading, size),
|
|
21
|
+
children: [
|
|
22
|
+
/* @__PURE__ */ jsx("ellipse", {
|
|
23
|
+
cx: .5,
|
|
24
|
+
cy: .62,
|
|
25
|
+
rx: .42,
|
|
26
|
+
ry: .035,
|
|
27
|
+
fill: "var(--fig-shadow)"
|
|
28
|
+
}),
|
|
29
|
+
/* @__PURE__ */ jsx("path", {
|
|
30
|
+
d: "M 0.2 0.27 Q 0.06 0.24 0.03 0.08",
|
|
31
|
+
fill: "none",
|
|
32
|
+
stroke: fur,
|
|
33
|
+
strokeWidth: .05,
|
|
34
|
+
strokeLinecap: "round"
|
|
35
|
+
}),
|
|
36
|
+
/* @__PURE__ */ jsx("path", {
|
|
37
|
+
d: "M 0.2 0.27 Q 0.06 0.24 0.03 0.08",
|
|
38
|
+
fill: "none",
|
|
39
|
+
stroke: dark,
|
|
40
|
+
strokeWidth: .05,
|
|
41
|
+
strokeLinecap: "round",
|
|
42
|
+
strokeDasharray: "0.035 0.045"
|
|
43
|
+
}),
|
|
44
|
+
/* @__PURE__ */ jsx("path", {
|
|
45
|
+
d: "M 0.27 0.36 L 0.14 0.55 M 0.33 0.37 L 0.24 0.57 M 0.66 0.36 L 0.8 0.54 M 0.71 0.35 L 0.88 0.5",
|
|
46
|
+
fill: "none",
|
|
47
|
+
stroke: fur,
|
|
48
|
+
strokeWidth: .055,
|
|
49
|
+
strokeLinecap: "round"
|
|
50
|
+
}),
|
|
51
|
+
/* @__PURE__ */ jsx("ellipse", {
|
|
52
|
+
cx: .49,
|
|
53
|
+
cy: .3,
|
|
54
|
+
rx: .3,
|
|
55
|
+
ry: .12,
|
|
56
|
+
fill: fur,
|
|
57
|
+
stroke: dark,
|
|
58
|
+
strokeWidth: hair
|
|
59
|
+
}),
|
|
60
|
+
/* @__PURE__ */ jsx("ellipse", {
|
|
61
|
+
cx: .5,
|
|
62
|
+
cy: .37,
|
|
63
|
+
rx: .22,
|
|
64
|
+
ry: .045,
|
|
65
|
+
fill: pale
|
|
66
|
+
}),
|
|
67
|
+
[
|
|
68
|
+
.3,
|
|
69
|
+
.39,
|
|
70
|
+
.48,
|
|
71
|
+
.57,
|
|
72
|
+
.66
|
|
73
|
+
].map((sx) => /* @__PURE__ */ jsx("path", {
|
|
74
|
+
d: `M ${sx} 0.19 Q ${sx + .03} 0.26 ${sx - .01} 0.33`,
|
|
75
|
+
fill: "none",
|
|
76
|
+
stroke: dark,
|
|
77
|
+
strokeWidth: .025,
|
|
78
|
+
strokeLinecap: "round"
|
|
79
|
+
}, sx)),
|
|
80
|
+
/* @__PURE__ */ jsx("path", {
|
|
81
|
+
d: "M 0.8 0.13 L 0.83 0.07 L 0.86 0.13 Z",
|
|
82
|
+
fill: fur,
|
|
83
|
+
stroke: dark,
|
|
84
|
+
strokeWidth: hair
|
|
85
|
+
}),
|
|
86
|
+
/* @__PURE__ */ jsx("circle", {
|
|
87
|
+
cx: .86,
|
|
88
|
+
cy: .2,
|
|
89
|
+
r: .085,
|
|
90
|
+
fill: fur,
|
|
91
|
+
stroke: dark,
|
|
92
|
+
strokeWidth: hair
|
|
93
|
+
}),
|
|
94
|
+
/* @__PURE__ */ jsx("ellipse", {
|
|
95
|
+
cx: .93,
|
|
96
|
+
cy: .24,
|
|
97
|
+
rx: .045,
|
|
98
|
+
ry: .035,
|
|
99
|
+
fill: pale
|
|
100
|
+
}),
|
|
101
|
+
/* @__PURE__ */ jsx("circle", {
|
|
102
|
+
cx: .885,
|
|
103
|
+
cy: .18,
|
|
104
|
+
r: .012,
|
|
105
|
+
fill: dark
|
|
106
|
+
})
|
|
107
|
+
]
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
function DeerGlyph({ x, y, heading, size = 50 }) {
|
|
111
|
+
const coat = shade(HUE.warn, 62);
|
|
112
|
+
const dark = shade(HUE.warn, 36);
|
|
113
|
+
const pale = tint(HUE.warn, 22);
|
|
114
|
+
const hair = STROKE.hair / size;
|
|
115
|
+
return /* @__PURE__ */ jsxs("g", {
|
|
116
|
+
transform: pose(x, y, heading, size),
|
|
117
|
+
children: [
|
|
118
|
+
/* @__PURE__ */ jsx("ellipse", {
|
|
119
|
+
cx: .5,
|
|
120
|
+
cy: .72,
|
|
121
|
+
rx: .36,
|
|
122
|
+
ry: .035,
|
|
123
|
+
fill: "var(--fig-shadow)"
|
|
124
|
+
}),
|
|
125
|
+
/* @__PURE__ */ jsx("path", {
|
|
126
|
+
d: "M 0.28 0.42 L 0.12 0.62 M 0.33 0.43 L 0.22 0.68 M 0.62 0.42 L 0.76 0.66 M 0.67 0.4 L 0.86 0.58",
|
|
127
|
+
fill: "none",
|
|
128
|
+
stroke: coat,
|
|
129
|
+
strokeWidth: .035,
|
|
130
|
+
strokeLinecap: "round"
|
|
131
|
+
}),
|
|
132
|
+
/* @__PURE__ */ jsx("ellipse", {
|
|
133
|
+
cx: .2,
|
|
134
|
+
cy: .26,
|
|
135
|
+
rx: .04,
|
|
136
|
+
ry: .06,
|
|
137
|
+
fill: pale,
|
|
138
|
+
stroke: dark,
|
|
139
|
+
strokeWidth: hair
|
|
140
|
+
}),
|
|
141
|
+
/* @__PURE__ */ jsx("ellipse", {
|
|
142
|
+
cx: .46,
|
|
143
|
+
cy: .34,
|
|
144
|
+
rx: .26,
|
|
145
|
+
ry: .1,
|
|
146
|
+
fill: coat,
|
|
147
|
+
stroke: dark,
|
|
148
|
+
strokeWidth: hair
|
|
149
|
+
}),
|
|
150
|
+
[
|
|
151
|
+
.34,
|
|
152
|
+
.44,
|
|
153
|
+
.54
|
|
154
|
+
].map((sx) => /* @__PURE__ */ jsx("circle", {
|
|
155
|
+
cx: sx,
|
|
156
|
+
cy: .3,
|
|
157
|
+
r: .016,
|
|
158
|
+
fill: pale
|
|
159
|
+
}, sx)),
|
|
160
|
+
/* @__PURE__ */ jsx("path", {
|
|
161
|
+
d: "M 0.62 0.3 L 0.72 0.1 L 0.8 0.13 L 0.72 0.36 Z",
|
|
162
|
+
fill: coat,
|
|
163
|
+
stroke: dark,
|
|
164
|
+
strokeWidth: hair
|
|
165
|
+
}),
|
|
166
|
+
/* @__PURE__ */ jsx("ellipse", {
|
|
167
|
+
cx: .81,
|
|
168
|
+
cy: .1,
|
|
169
|
+
rx: .08,
|
|
170
|
+
ry: .045,
|
|
171
|
+
fill: coat,
|
|
172
|
+
stroke: dark,
|
|
173
|
+
strokeWidth: hair,
|
|
174
|
+
transform: "rotate(18 0.81 0.1)"
|
|
175
|
+
}),
|
|
176
|
+
/* @__PURE__ */ jsx("circle", {
|
|
177
|
+
cx: .8,
|
|
178
|
+
cy: .085,
|
|
179
|
+
r: .01,
|
|
180
|
+
fill: dark
|
|
181
|
+
}),
|
|
182
|
+
/* @__PURE__ */ jsx("path", {
|
|
183
|
+
d: "M 0.75 0.06 L 0.7 -0.06 M 0.72 -0.01 L 0.64 -0.04 M 0.71 -0.04 L 0.74 -0.11 M 0.78 0.06 L 0.8 -0.06 M 0.795 -0.01 L 0.86 -0.05",
|
|
184
|
+
fill: "none",
|
|
185
|
+
stroke: dark,
|
|
186
|
+
strokeWidth: .02,
|
|
187
|
+
strokeLinecap: "round"
|
|
188
|
+
})
|
|
189
|
+
]
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
//#endregion
|
|
194
|
+
export { DeerGlyph, TigerGlyph };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
//#region src/physics/intercept/core.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Interception: where a chaser must run to catch something that is moving.
|
|
4
|
+
*
|
|
5
|
+
* A tiger that runs at a deer runs at where the deer WAS. By the time it arrives the deer has
|
|
6
|
+
* gone. The catch comes from running to where the deer WILL be, and relative velocity is the
|
|
7
|
+
* idea that finds that point: in the deer's own frame the deer stands still, and the tiger moves
|
|
8
|
+
* with velocity v_tiger − v_deer. For a catch, that relative velocity must point straight at the
|
|
9
|
+
* deer. Everything else follows from one quadratic.
|
|
10
|
+
*
|
|
11
|
+
* The other strategy, chasing (always turning to face the deer), also catches a slower deer, but
|
|
12
|
+
* along a curve that is longer and slower. With a limited sprint, that difference decides it.
|
|
13
|
+
*
|
|
14
|
+
* Pure functions, so every claim a lesson makes can be tested. Metres and seconds, headings in
|
|
15
|
+
* degrees anticlockwise from east.
|
|
16
|
+
*/
|
|
17
|
+
interface Vec {
|
|
18
|
+
x: number;
|
|
19
|
+
y: number;
|
|
20
|
+
}
|
|
21
|
+
//#endregion
|
|
22
|
+
export { Vec };
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
//#region src/physics/intercept/core.ts
|
|
2
|
+
const add = (a, b) => ({
|
|
3
|
+
x: a.x + b.x,
|
|
4
|
+
y: a.y + b.y
|
|
5
|
+
});
|
|
6
|
+
const sub = (a, b) => ({
|
|
7
|
+
x: a.x - b.x,
|
|
8
|
+
y: a.y - b.y
|
|
9
|
+
});
|
|
10
|
+
const scale = (a, k) => ({
|
|
11
|
+
x: a.x * k,
|
|
12
|
+
y: a.y * k
|
|
13
|
+
});
|
|
14
|
+
const dot = (a, b) => a.x * b.x + a.y * b.y;
|
|
15
|
+
const len = (a) => Math.hypot(a.x, a.y);
|
|
16
|
+
/** A unit vector along a heading in degrees. */
|
|
17
|
+
const headingVector = (deg) => ({
|
|
18
|
+
x: Math.cos(deg * Math.PI / 180),
|
|
19
|
+
y: Math.sin(deg * Math.PI / 180)
|
|
20
|
+
});
|
|
21
|
+
const headingOf = (v) => Math.atan2(v.y, v.x) * 180 / Math.PI;
|
|
22
|
+
/**
|
|
23
|
+
* The straight run that meets the quarry, if one exists.
|
|
24
|
+
*
|
|
25
|
+
* Meeting at time t needs |r₀ + v_q t| = s t, where r₀ is the quarry's start relative to the
|
|
26
|
+
* chaser. Squaring gives (v_q·v_q − s²) t² + 2 (r₀·v_q) t + r₀·r₀ = 0. The earliest positive root
|
|
27
|
+
* is the catch; the heading points from the chaser to the quarry's position at that time.
|
|
28
|
+
*/
|
|
29
|
+
function intercept(c) {
|
|
30
|
+
const r0 = sub(c.quarry, c.chaser);
|
|
31
|
+
const a = dot(c.quarryVelocity, c.quarryVelocity) - c.chaserSpeed * c.chaserSpeed;
|
|
32
|
+
const b = 2 * dot(r0, c.quarryVelocity);
|
|
33
|
+
const k = dot(r0, r0);
|
|
34
|
+
let time = null;
|
|
35
|
+
if (Math.abs(a) < 1e-12) {
|
|
36
|
+
if (b < 0) time = -k / b;
|
|
37
|
+
} else {
|
|
38
|
+
const disc = b * b - 4 * a * k;
|
|
39
|
+
if (disc >= 0) {
|
|
40
|
+
const roots = [(-b - Math.sqrt(disc)) / (2 * a), (-b + Math.sqrt(disc)) / (2 * a)].filter((t) => t > 0);
|
|
41
|
+
if (roots.length) time = Math.min(...roots);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
if (time === null) return null;
|
|
45
|
+
const point = add(c.quarry, scale(c.quarryVelocity, time));
|
|
46
|
+
return {
|
|
47
|
+
time,
|
|
48
|
+
point,
|
|
49
|
+
heading: headingOf(sub(point, c.chaser))
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* A straight run on a fixed heading. In the quarry's frame both move in straight lines, so the
|
|
54
|
+
* relative motion is a straight line too and its nearest point has a formula: no search needed.
|
|
55
|
+
*/
|
|
56
|
+
function straightRun(c, heading, samples = 60) {
|
|
57
|
+
const vChaser = scale(headingVector(heading), c.chaserSpeed);
|
|
58
|
+
const r0 = sub(c.quarry, c.chaser);
|
|
59
|
+
const w = sub(c.quarryVelocity, vChaser);
|
|
60
|
+
const ww = dot(w, w);
|
|
61
|
+
const tStar = ww === 0 ? 0 : Math.max(0, Math.min(c.stamina, -dot(r0, w) / ww));
|
|
62
|
+
const closest = len(add(r0, scale(w, tStar)));
|
|
63
|
+
let time = tStar;
|
|
64
|
+
let caught = closest <= c.catchRadius;
|
|
65
|
+
if (caught) {
|
|
66
|
+
const b = 2 * dot(r0, w), k = dot(r0, r0) - c.catchRadius * c.catchRadius;
|
|
67
|
+
const disc = b * b - 4 * ww * k;
|
|
68
|
+
time = disc >= 0 && ww > 0 ? Math.max(0, (-b - Math.sqrt(disc)) / (2 * ww)) : tStar;
|
|
69
|
+
caught = time <= c.stamina;
|
|
70
|
+
}
|
|
71
|
+
const end = caught ? time : c.stamina;
|
|
72
|
+
const path = [], quarryPath = [];
|
|
73
|
+
for (let i = 0; i <= samples; i++) {
|
|
74
|
+
const t = end * i / samples;
|
|
75
|
+
path.push(add(c.chaser, scale(vChaser, t)));
|
|
76
|
+
quarryPath.push(add(c.quarry, scale(c.quarryVelocity, t)));
|
|
77
|
+
}
|
|
78
|
+
return {
|
|
79
|
+
caught,
|
|
80
|
+
time: end,
|
|
81
|
+
closest,
|
|
82
|
+
path,
|
|
83
|
+
quarryPath,
|
|
84
|
+
reason: caught ? void 0 : tStar < c.stamina ? "passed" : "stamina"
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Pure pursuit: the chaser always runs straight at where the quarry is now. Integrated in small
|
|
89
|
+
* steps, because the path is a curve with no simple formula in general.
|
|
90
|
+
*/
|
|
91
|
+
function chaseRun(c, dt = .01) {
|
|
92
|
+
let p = { ...c.chaser };
|
|
93
|
+
const path = [p], quarryPath = [c.quarry];
|
|
94
|
+
let closest = len(sub(c.quarry, p));
|
|
95
|
+
const stride = Math.max(1, Math.round(.1 / dt));
|
|
96
|
+
let steps = 0;
|
|
97
|
+
for (let t = dt; t <= c.stamina + 1e-9; t += dt) {
|
|
98
|
+
const q = add(c.quarry, scale(c.quarryVelocity, t - dt));
|
|
99
|
+
const gap = sub(q, p);
|
|
100
|
+
const d = len(gap);
|
|
101
|
+
if (d <= c.catchRadius) {
|
|
102
|
+
path.push(p);
|
|
103
|
+
quarryPath.push(q);
|
|
104
|
+
return {
|
|
105
|
+
caught: true,
|
|
106
|
+
time: t - dt,
|
|
107
|
+
closest: d,
|
|
108
|
+
path,
|
|
109
|
+
quarryPath
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
p = add(p, scale(gap, c.chaserSpeed * dt / d));
|
|
113
|
+
closest = Math.min(closest, d);
|
|
114
|
+
if (++steps % stride === 0) {
|
|
115
|
+
path.push(p);
|
|
116
|
+
quarryPath.push(add(c.quarry, scale(c.quarryVelocity, t)));
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
const qEnd = add(c.quarry, scale(c.quarryVelocity, c.stamina));
|
|
120
|
+
path.push(p);
|
|
121
|
+
quarryPath.push(qEnd);
|
|
122
|
+
return {
|
|
123
|
+
caught: false,
|
|
124
|
+
time: c.stamina,
|
|
125
|
+
closest: Math.min(closest, len(sub(qEnd, p))),
|
|
126
|
+
path,
|
|
127
|
+
quarryPath,
|
|
128
|
+
reason: "stamina"
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
/** The chaser's velocity relative to the quarry: what the quarry sees coming at it. */
|
|
132
|
+
const relativeVelocity = (c, heading) => sub(scale(headingVector(heading), c.chaserSpeed), c.quarryVelocity);
|
|
133
|
+
/**
|
|
134
|
+
* How far, in degrees, the relative velocity points away from the line of sight to the quarry.
|
|
135
|
+
* Zero is a collision course: seen from the quarry, the chaser is coming straight at it.
|
|
136
|
+
*/
|
|
137
|
+
function offCourse(c, heading) {
|
|
138
|
+
const rel = relativeVelocity(c, heading);
|
|
139
|
+
const sight = sub(c.quarry, c.chaser);
|
|
140
|
+
let d = headingOf(rel) - headingOf(sight);
|
|
141
|
+
while (d > 180) d -= 360;
|
|
142
|
+
while (d < -180) d += 360;
|
|
143
|
+
return d;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
//#endregion
|
|
147
|
+
export { chaseRun, headingOf, headingVector, intercept, offCourse, relativeVelocity, straightRun };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { InterceptLab, InterceptProps } from "./preset.mjs";
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Vec } from "./core.mjs";
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/physics/intercept/preset.d.ts
|
|
5
|
+
type Strategy = 'straight' | 'chase';
|
|
6
|
+
interface InterceptProps {
|
|
7
|
+
/** Where the tiger starts, m. */
|
|
8
|
+
chaser?: Vec;
|
|
9
|
+
/** Where the deer starts, m. */
|
|
10
|
+
quarry?: Vec;
|
|
11
|
+
/** The tiger's running speed, m/s. */
|
|
12
|
+
chaserSpeed?: number;
|
|
13
|
+
/** The deer's velocity, m/s. */
|
|
14
|
+
quarryVelocity?: Vec;
|
|
15
|
+
/** How long the tiger can sprint, s. */
|
|
16
|
+
stamina?: number;
|
|
17
|
+
/** The tiger's starting heading, degrees from east. */
|
|
18
|
+
heading?: number;
|
|
19
|
+
/** straight: run on a fixed heading. chase: always turn towards the deer. */
|
|
20
|
+
strategy?: Strategy;
|
|
21
|
+
/** Open frozen this many seconds after the start. */
|
|
22
|
+
at?: number;
|
|
23
|
+
title?: string;
|
|
24
|
+
prompt?: string;
|
|
25
|
+
activity?: string;
|
|
26
|
+
}
|
|
27
|
+
declare function InterceptLab({
|
|
28
|
+
chaser,
|
|
29
|
+
quarry,
|
|
30
|
+
chaserSpeed: initialSpeed,
|
|
31
|
+
quarryVelocity,
|
|
32
|
+
stamina,
|
|
33
|
+
heading: initialHeading,
|
|
34
|
+
strategy: initialStrategy,
|
|
35
|
+
at,
|
|
36
|
+
title,
|
|
37
|
+
prompt,
|
|
38
|
+
activity
|
|
39
|
+
}?: InterceptProps): ReactNode;
|
|
40
|
+
//#endregion
|
|
41
|
+
export { InterceptLab, InterceptProps };
|