@classytic/labs 0.1.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 +21 -0
- package/README.md +105 -0
- package/dist/biology/enzyme-rate/index.d.mts +1 -0
- package/dist/biology/enzyme-rate/preset.d.mts +25 -0
- package/dist/biology/enzyme-rate/preset.mjs +256 -0
- package/dist/biology/genetic-cross/core.d.mts +64 -0
- package/dist/biology/genetic-cross/core.mjs +147 -0
- package/dist/biology/genetic-cross/grid.mjs +239 -0
- package/dist/biology/genetic-cross/index.d.mts +3 -0
- package/dist/biology/genetic-cross/preset.d.mts +26 -0
- package/dist/biology/genetic-cross/preset.mjs +184 -0
- package/dist/biology/genetic-cross/sex-linked.d.mts +27 -0
- package/dist/biology/genetic-cross/sex-linked.mjs +226 -0
- package/dist/biology/index.d.mts +11 -0
- package/dist/biology/index.mjs +12 -0
- package/dist/biology/photosynthesis-factors/index.d.mts +1 -0
- package/dist/biology/photosynthesis-factors/preset.d.mts +25 -0
- package/dist/biology/photosynthesis-factors/preset.mjs +270 -0
- package/dist/biology/punnett-cross/index.d.mts +1 -0
- package/dist/biology/punnett-cross/preset.d.mts +27 -0
- package/dist/biology/punnett-cross/preset.mjs +21 -0
- package/dist/biology/respiration/index.d.mts +1 -0
- package/dist/biology/respiration/preset.d.mts +17 -0
- package/dist/biology/respiration/preset.mjs +179 -0
- package/dist/biology/sequence/central-dogma.d.mts +17 -0
- package/dist/biology/sequence/central-dogma.mjs +339 -0
- package/dist/biology/sequence/core.d.mts +38 -0
- package/dist/biology/sequence/core.mjs +178 -0
- package/dist/biology/sequence/index.d.mts +3 -0
- package/dist/biology/sequence/preset.d.mts +20 -0
- package/dist/biology/sequence/preset.mjs +235 -0
- package/dist/blocks/accounting.d.mts +142 -0
- package/dist/blocks/accounting.mjs +446 -0
- package/dist/blocks/authoring.d.mts +12 -0
- package/dist/blocks/authoring.mjs +705 -0
- package/dist/blocks/biology.d.mts +197 -0
- package/dist/blocks/biology.mjs +513 -0
- package/dist/blocks/chem.d.mts +128 -0
- package/dist/blocks/chem.mjs +486 -0
- package/dist/blocks/circuits.d.mts +86 -0
- package/dist/blocks/circuits.mjs +348 -0
- package/dist/blocks/discrete.d.mts +62 -0
- package/dist/blocks/discrete.mjs +314 -0
- package/dist/blocks/economics.d.mts +56 -0
- package/dist/blocks/economics.mjs +203 -0
- package/dist/blocks/geography.d.mts +58 -0
- package/dist/blocks/geography.mjs +115 -0
- package/dist/blocks/geometry.d.mts +28 -0
- package/dist/blocks/geometry.mjs +160 -0
- package/dist/blocks/ict.d.mts +65 -0
- package/dist/blocks/ict.mjs +197 -0
- package/dist/blocks/index.d.mts +4555 -0
- package/dist/blocks/index.mjs +120 -0
- package/dist/blocks/lab-block.d.mts +16 -0
- package/dist/blocks/lab-block.mjs +74 -0
- package/dist/blocks/lab-config.d.mts +23 -0
- package/dist/blocks/lab-config.mjs +200 -0
- package/dist/blocks/lab-gallery.d.mts +30 -0
- package/dist/blocks/lab-gallery.mjs +208 -0
- package/dist/blocks/language.d.mts +349 -0
- package/dist/blocks/language.mjs +750 -0
- package/dist/blocks/lesson.d.mts +43 -0
- package/dist/blocks/lesson.mjs +140 -0
- package/dist/blocks/math.d.mts +411 -0
- package/dist/blocks/math.mjs +1536 -0
- package/dist/blocks/ml.d.mts +84 -0
- package/dist/blocks/ml.mjs +146 -0
- package/dist/blocks/physics.d.mts +259 -0
- package/dist/blocks/physics.mjs +868 -0
- package/dist/blocks/statistics.d.mts +29 -0
- package/dist/blocks/statistics.mjs +123 -0
- package/dist/catalog/index.d.mts +3 -0
- package/dist/catalog/index.mjs +8 -0
- package/dist/catalog/registry.d.mts +46 -0
- package/dist/catalog/registry.mjs +56 -0
- package/dist/catalog/templates.d.mts +11 -0
- package/dist/catalog/templates.mjs +141 -0
- package/dist/chem/battery.d.mts +16 -0
- package/dist/chem/battery.mjs +311 -0
- package/dist/chem/bohr-atom.d.mts +16 -0
- package/dist/chem/bohr-atom.mjs +212 -0
- package/dist/chem/diffusion/asset.mjs +76 -0
- package/dist/chem/diffusion/index.d.mts +1 -0
- package/dist/chem/diffusion/preset.d.mts +15 -0
- package/dist/chem/diffusion/preset.mjs +188 -0
- package/dist/chem/electrochem/index.d.mts +1 -0
- package/dist/chem/electrochem/preset.d.mts +23 -0
- package/dist/chem/electrochem/preset.mjs +402 -0
- package/dist/chem/equilibrium/index.d.mts +1 -0
- package/dist/chem/equilibrium/preset.d.mts +36 -0
- package/dist/chem/equilibrium/preset.mjs +416 -0
- package/dist/chem/gas-box/index.d.mts +1 -0
- package/dist/chem/gas-box/preset.d.mts +27 -0
- package/dist/chem/gas-box/preset.mjs +395 -0
- package/dist/chem/index.d.mts +16 -0
- package/dist/chem/index.mjs +17 -0
- package/dist/chem/kinetics/index.d.mts +1 -0
- package/dist/chem/kinetics/preset.d.mts +31 -0
- package/dist/chem/kinetics/preset.mjs +478 -0
- package/dist/chem/periodic-trends/index.d.mts +1 -0
- package/dist/chem/periodic-trends/preset.d.mts +21 -0
- package/dist/chem/periodic-trends/preset.mjs +831 -0
- package/dist/chem/reaction-lab.d.mts +18 -0
- package/dist/chem/reaction-lab.mjs +165 -0
- package/dist/chem/reaction-profile.d.mts +21 -0
- package/dist/chem/reaction-profile.mjs +287 -0
- package/dist/chem/solution/dilution.d.mts +27 -0
- package/dist/chem/solution/dilution.mjs +199 -0
- package/dist/chem/solution/field.d.mts +30 -0
- package/dist/chem/solution/field.mjs +145 -0
- package/dist/chem/solution/index.d.mts +3 -0
- package/dist/chem/solution/solution-box.d.mts +28 -0
- package/dist/chem/solution/solution-box.mjs +140 -0
- package/dist/chem/stoichiometry/index.d.mts +1 -0
- package/dist/chem/stoichiometry/preset.d.mts +29 -0
- package/dist/chem/stoichiometry/preset.mjs +392 -0
- package/dist/chem/titration/index.d.mts +1 -0
- package/dist/chem/titration/preset.d.mts +29 -0
- package/dist/chem/titration/preset.mjs +436 -0
- package/dist/circuits/ac-dc/asset.mjs +295 -0
- package/dist/circuits/ac-dc/index.d.mts +1 -0
- package/dist/circuits/ac-dc/preset.d.mts +16 -0
- package/dist/circuits/ac-dc/preset.mjs +134 -0
- package/dist/circuits/capacitor-leak/index.d.mts +1 -0
- package/dist/circuits/capacitor-leak/preset.d.mts +32 -0
- package/dist/circuits/capacitor-leak/preset.mjs +271 -0
- package/dist/circuits/circuit/asset.d.mts +6 -0
- package/dist/circuits/circuit/asset.mjs +367 -0
- package/dist/circuits/circuit/index.d.mts +2 -0
- package/dist/circuits/circuit/preset.d.mts +46 -0
- package/dist/circuits/circuit/preset.mjs +235 -0
- package/dist/circuits/circuit-builder.d.mts +30 -0
- package/dist/circuits/circuit-builder.mjs +412 -0
- package/dist/circuits/circuit-lab.d.mts +20 -0
- package/dist/circuits/circuit-lab.mjs +400 -0
- package/dist/circuits/index.d.mts +7 -0
- package/dist/circuits/index.mjs +8 -0
- package/dist/commerce/accounting/core.d.mts +48 -0
- package/dist/commerce/accounting/core.mjs +57 -0
- package/dist/commerce/accounting/equation-balance.d.mts +35 -0
- package/dist/commerce/accounting/equation-balance.mjs +292 -0
- package/dist/commerce/accounting/index.d.mts +4 -0
- package/dist/commerce/accounting/journal-poster.d.mts +29 -0
- package/dist/commerce/accounting/journal-poster.mjs +472 -0
- package/dist/commerce/accounting/statement-sorter.d.mts +25 -0
- package/dist/commerce/accounting/statement-sorter.mjs +304 -0
- package/dist/commerce/economics/core.d.mts +33 -0
- package/dist/commerce/economics/core.mjs +26 -0
- package/dist/commerce/economics/demand-shift-vs-move.d.mts +35 -0
- package/dist/commerce/economics/demand-shift-vs-move.mjs +324 -0
- package/dist/commerce/economics/elasticity-revenue.d.mts +31 -0
- package/dist/commerce/economics/elasticity-revenue.mjs +253 -0
- package/dist/commerce/economics/index.d.mts +4 -0
- package/dist/commerce/economics/market-equilibrium.d.mts +33 -0
- package/dist/commerce/economics/market-equilibrium.mjs +340 -0
- package/dist/commerce/index.d.mts +9 -0
- package/dist/commerce/index.mjs +10 -0
- package/dist/core/easing.d.mts +28 -0
- package/dist/core/easing.mjs +66 -0
- package/dist/core/index.d.mts +10 -0
- package/dist/core/index.mjs +11 -0
- package/dist/core/numeric.d.mts +37 -0
- package/dist/core/numeric.mjs +75 -0
- package/dist/core/reactive.d.mts +24 -0
- package/dist/core/reactive.mjs +51 -0
- package/dist/core/rng.d.mts +21 -0
- package/dist/core/rng.mjs +39 -0
- package/dist/core/tex.d.mts +14 -0
- package/dist/core/tex.mjs +44 -0
- package/dist/core/timeline.d.mts +34 -0
- package/dist/core/timeline.mjs +77 -0
- package/dist/core/util.d.mts +19 -0
- package/dist/core/util.mjs +31 -0
- package/dist/discrete/arrangements/preset.d.mts +28 -0
- package/dist/discrete/arrangements/preset.mjs +304 -0
- package/dist/discrete/bayes/preset.d.mts +33 -0
- package/dist/discrete/bayes/preset.mjs +476 -0
- package/dist/discrete/binomial/preset.d.mts +25 -0
- package/dist/discrete/binomial/preset.mjs +333 -0
- package/dist/discrete/core/combinatorics.d.mts +23 -0
- package/dist/discrete/core/combinatorics.mjs +57 -0
- package/dist/discrete/core/inclusionExclusion.d.mts +19 -0
- package/dist/discrete/core/inclusionExclusion.mjs +30 -0
- package/dist/discrete/core/pigeonhole.d.mts +15 -0
- package/dist/discrete/core/pigeonhole.mjs +24 -0
- package/dist/discrete/core/probability.d.mts +29 -0
- package/dist/discrete/core/probability.mjs +43 -0
- package/dist/discrete/core/sets.d.mts +21 -0
- package/dist/discrete/core/sets.mjs +45 -0
- package/dist/discrete/counting-slots/preset.d.mts +30 -0
- package/dist/discrete/counting-slots/preset.mjs +553 -0
- package/dist/discrete/counting-tree/index.d.mts +1 -0
- package/dist/discrete/counting-tree/preset.d.mts +44 -0
- package/dist/discrete/counting-tree/preset.mjs +364 -0
- package/dist/discrete/expected-value/preset.d.mts +28 -0
- package/dist/discrete/expected-value/preset.mjs +352 -0
- package/dist/discrete/hypergeometric/preset.d.mts +25 -0
- package/dist/discrete/hypergeometric/preset.mjs +330 -0
- package/dist/discrete/index.d.mts +26 -0
- package/dist/discrete/index.mjs +27 -0
- package/dist/discrete/karnaugh/index.d.mts +1 -0
- package/dist/discrete/karnaugh/preset.d.mts +30 -0
- package/dist/discrete/karnaugh/preset.mjs +452 -0
- package/dist/discrete/lln/asset.mjs +206 -0
- package/dist/discrete/lln/index.d.mts +1 -0
- package/dist/discrete/lln/preset.d.mts +17 -0
- package/dist/discrete/lln/preset.mjs +152 -0
- package/dist/discrete/logic-circuit/index.d.mts +1 -0
- package/dist/discrete/logic-circuit/preset.d.mts +47 -0
- package/dist/discrete/logic-circuit/preset.mjs +307 -0
- package/dist/discrete/monte-carlo/index.d.mts +1 -0
- package/dist/discrete/monte-carlo/preset.d.mts +64 -0
- package/dist/discrete/monte-carlo/preset.mjs +446 -0
- package/dist/discrete/monty-hall/index.d.mts +1 -0
- package/dist/discrete/monty-hall/preset.d.mts +23 -0
- package/dist/discrete/monty-hall/preset.mjs +491 -0
- package/dist/discrete/outcome-builder/preset.d.mts +24 -0
- package/dist/discrete/outcome-builder/preset.mjs +283 -0
- package/dist/discrete/pascal/preset.d.mts +24 -0
- package/dist/discrete/pascal/preset.mjs +372 -0
- package/dist/discrete/sample-space/index.d.mts +1 -0
- package/dist/discrete/sample-space/preset.d.mts +42 -0
- package/dist/discrete/sample-space/preset.mjs +395 -0
- package/dist/discrete/selection/preset.d.mts +33 -0
- package/dist/discrete/selection/preset.mjs +406 -0
- package/dist/discrete/truth-table/index.d.mts +1 -0
- package/dist/discrete/truth-table/preset.d.mts +30 -0
- package/dist/discrete/truth-table/preset.mjs +456 -0
- package/dist/discrete/venn/index.d.mts +1 -0
- package/dist/discrete/venn/preset.d.mts +32 -0
- package/dist/discrete/venn/preset.mjs +461 -0
- package/dist/geography/cycle-lab/index.d.mts +1 -0
- package/dist/geography/cycle-lab/preset.d.mts +25 -0
- package/dist/geography/cycle-lab/preset.mjs +254 -0
- package/dist/geography/cycles.d.mts +21 -0
- package/dist/geography/cycles.mjs +205 -0
- package/dist/geography/index.d.mts +4 -0
- package/dist/geography/index.mjs +5 -0
- package/dist/geometry/board/index.d.mts +1 -0
- package/dist/geometry/board/preset.d.mts +71 -0
- package/dist/geometry/board/preset.mjs +148 -0
- package/dist/geometry/builder.d.mts +18 -0
- package/dist/geometry/builder.mjs +332 -0
- package/dist/geometry/index.d.mts +4 -0
- package/dist/geometry/index.mjs +5 -0
- package/dist/geometry/intersecting-circles.d.mts +17 -0
- package/dist/geometry/intersecting-circles.mjs +104 -0
- package/dist/ict/index.d.mts +5 -0
- package/dist/ict/index.mjs +6 -0
- package/dist/ict/number-systems/base-odometer.d.mts +34 -0
- package/dist/ict/number-systems/base-odometer.mjs +160 -0
- package/dist/ict/number-systems/bit-grouper.d.mts +32 -0
- package/dist/ict/number-systems/bit-grouper.mjs +190 -0
- package/dist/ict/number-systems/index.d.mts +4 -0
- package/dist/ict/number-systems/place-value-dial.d.mts +29 -0
- package/dist/ict/number-systems/place-value-dial.mjs +153 -0
- package/dist/ict/number-systems/wheel.d.mts +73 -0
- package/dist/ict/number-systems/wheel.mjs +279 -0
- package/dist/index.d.mts +10 -0
- package/dist/index.mjs +11 -0
- package/dist/kit/anim.mjs +52 -0
- package/dist/kit/annotate.mjs +116 -0
- package/dist/kit/answer-check.d.mts +38 -0
- package/dist/kit/answer-check.mjs +65 -0
- package/dist/kit/asset-util.mjs +15 -0
- package/dist/kit/controls.mjs +77 -0
- package/dist/kit/cycle.d.mts +44 -0
- package/dist/kit/cycle.mjs +188 -0
- package/dist/kit/diagram.mjs +176 -0
- package/dist/kit/electronics.mjs +357 -0
- package/dist/kit/expr-analysis.d.mts +37 -0
- package/dist/kit/expr-analysis.mjs +111 -0
- package/dist/kit/frame.d.mts +70 -0
- package/dist/kit/frame.mjs +205 -0
- package/dist/kit/freq-tree.mjs +99 -0
- package/dist/kit/gameshow.mjs +315 -0
- package/dist/kit/index.d.mts +5 -0
- package/dist/kit/index.mjs +6 -0
- package/dist/kit/logic-gates.d.mts +6 -0
- package/dist/kit/logic-gates.mjs +210 -0
- package/dist/kit/molecules.mjs +178 -0
- package/dist/kit/pedagogy.d.mts +126 -0
- package/dist/kit/pedagogy.mjs +331 -0
- package/dist/kit/play.d.mts +21 -0
- package/dist/kit/play.mjs +52 -0
- package/dist/kit/probability.mjs +141 -0
- package/dist/kit/proportion.mjs +112 -0
- package/dist/kit/reaction.mjs +102 -0
- package/dist/kit/rich.d.mts +10 -0
- package/dist/kit/rich.mjs +21 -0
- package/dist/kit/scale.mjs +230 -0
- package/dist/kit/space.mjs +326 -0
- package/dist/kit/steps.d.mts +24 -0
- package/dist/kit/steps.mjs +57 -0
- package/dist/kit/thermal.mjs +289 -0
- package/dist/language/agreement/index.d.mts +1 -0
- package/dist/language/agreement/preset.d.mts +27 -0
- package/dist/language/agreement/preset.mjs +113 -0
- package/dist/language/article-lens/index.d.mts +1 -0
- package/dist/language/article-lens/preset.d.mts +31 -0
- package/dist/language/article-lens/preset.mjs +125 -0
- package/dist/language/deck.d.mts +45 -0
- package/dist/language/deck.mjs +61 -0
- package/dist/language/icon.d.mts +40 -0
- package/dist/language/icon.mjs +73 -0
- package/dist/language/index.d.mts +10 -0
- package/dist/language/index.mjs +11 -0
- package/dist/language/preposition-scene/index.d.mts +1 -0
- package/dist/language/preposition-scene/preset.d.mts +34 -0
- package/dist/language/preposition-scene/preset.mjs +234 -0
- package/dist/language/sentence-builder/index.d.mts +1 -0
- package/dist/language/sentence-builder/preset.d.mts +32 -0
- package/dist/language/sentence-builder/preset.mjs +122 -0
- package/dist/language/transform/index.d.mts +1 -0
- package/dist/language/transform/preset.d.mts +31 -0
- package/dist/language/transform/preset.mjs +137 -0
- package/dist/language/ui.d.mts +53 -0
- package/dist/language/ui.mjs +88 -0
- package/dist/language/word-match/index.d.mts +1 -0
- package/dist/language/word-match/preset.d.mts +22 -0
- package/dist/language/word-match/preset.mjs +148 -0
- package/dist/math/area-model/asset.d.mts +6 -0
- package/dist/math/area-model/asset.mjs +270 -0
- package/dist/math/area-model/index.d.mts +2 -0
- package/dist/math/area-model/preset.d.mts +29 -0
- package/dist/math/area-model/preset.mjs +243 -0
- package/dist/math/balance-algebra/asset.d.mts +6 -0
- package/dist/math/balance-algebra/asset.mjs +150 -0
- package/dist/math/balance-algebra/index.d.mts +2 -0
- package/dist/math/balance-algebra/preset.d.mts +30 -0
- package/dist/math/balance-algebra/preset.mjs +228 -0
- package/dist/math/derivation.d.mts +22 -0
- package/dist/math/derivation.mjs +113 -0
- package/dist/math/derivative-explorer/index.d.mts +1 -0
- package/dist/math/derivative-explorer/preset.d.mts +19 -0
- package/dist/math/derivative-explorer/preset.mjs +227 -0
- package/dist/math/function-machine/index.d.mts +1 -0
- package/dist/math/function-machine/preset.d.mts +21 -0
- package/dist/math/function-machine/preset.mjs +177 -0
- package/dist/math/gradient-descent.d.mts +23 -0
- package/dist/math/gradient-descent.mjs +473 -0
- package/dist/math/grapher/index.d.mts +1 -0
- package/dist/math/grapher/preset.d.mts +40 -0
- package/dist/math/grapher/preset.mjs +313 -0
- package/dist/math/harmonic-form/index.d.mts +1 -0
- package/dist/math/harmonic-form/preset.d.mts +21 -0
- package/dist/math/harmonic-form/preset.mjs +387 -0
- package/dist/math/index.d.mts +25 -0
- package/dist/math/index.mjs +26 -0
- package/dist/math/integral-explorer/index.d.mts +1 -0
- package/dist/math/integral-explorer/preset.d.mts +23 -0
- package/dist/math/integral-explorer/preset.mjs +217 -0
- package/dist/math/interactive/index.d.mts +1 -0
- package/dist/math/interactive/preset.d.mts +72 -0
- package/dist/math/interactive/preset.mjs +202 -0
- package/dist/math/limit-explorer/index.d.mts +1 -0
- package/dist/math/limit-explorer/preset.d.mts +19 -0
- package/dist/math/limit-explorer/preset.mjs +216 -0
- package/dist/math/linear-system/index.d.mts +1 -0
- package/dist/math/linear-system/preset.d.mts +28 -0
- package/dist/math/linear-system/preset.mjs +164 -0
- package/dist/math/mystery-bucket/asset.d.mts +6 -0
- package/dist/math/mystery-bucket/asset.mjs +145 -0
- package/dist/math/mystery-bucket/index.d.mts +2 -0
- package/dist/math/mystery-bucket/preset.d.mts +36 -0
- package/dist/math/mystery-bucket/preset.mjs +116 -0
- package/dist/math/number-line/index.d.mts +1 -0
- package/dist/math/number-line/preset.d.mts +24 -0
- package/dist/math/number-line/preset.mjs +142 -0
- package/dist/math/parabola/index.d.mts +1 -0
- package/dist/math/parabola/preset.d.mts +13 -0
- package/dist/math/parabola/preset.mjs +79 -0
- package/dist/math/pattern/asset.d.mts +6 -0
- package/dist/math/pattern/asset.mjs +102 -0
- package/dist/math/pattern/index.d.mts +2 -0
- package/dist/math/pattern/preset.d.mts +32 -0
- package/dist/math/pattern/preset.mjs +294 -0
- package/dist/math/triangle-trig/index.d.mts +1 -0
- package/dist/math/triangle-trig/preset.d.mts +47 -0
- package/dist/math/triangle-trig/preset.mjs +245 -0
- package/dist/math/trig-explorer.d.mts +18 -0
- package/dist/math/trig-explorer.mjs +209 -0
- package/dist/ml/boundary/index.d.mts +1 -0
- package/dist/ml/boundary/preset.d.mts +24 -0
- package/dist/ml/boundary/preset.mjs +385 -0
- package/dist/ml/classifier/index.d.mts +1 -0
- package/dist/ml/classifier/preset.d.mts +25 -0
- package/dist/ml/classifier/preset.mjs +315 -0
- package/dist/ml/index.d.mts +6 -0
- package/dist/ml/index.mjs +7 -0
- package/dist/ml/kmeans/index.d.mts +1 -0
- package/dist/ml/kmeans/preset.d.mts +33 -0
- package/dist/ml/kmeans/preset.mjs +236 -0
- package/dist/ml/knn/index.d.mts +1 -0
- package/dist/ml/knn/preset.d.mts +28 -0
- package/dist/ml/knn/preset.mjs +279 -0
- package/dist/ml/regression/index.d.mts +1 -0
- package/dist/ml/regression/preset.d.mts +32 -0
- package/dist/ml/regression/preset.mjs +394 -0
- package/dist/physics/atwood/index.d.mts +1 -0
- package/dist/physics/atwood/preset.d.mts +23 -0
- package/dist/physics/atwood/preset.mjs +312 -0
- package/dist/physics/bullet-walls/index.d.mts +1 -0
- package/dist/physics/bullet-walls/preset.d.mts +28 -0
- package/dist/physics/bullet-walls/preset.mjs +373 -0
- package/dist/physics/carnot/index.d.mts +1 -0
- package/dist/physics/carnot/preset.d.mts +27 -0
- package/dist/physics/carnot/preset.mjs +427 -0
- package/dist/physics/circular-motion/index.d.mts +1 -0
- package/dist/physics/circular-motion/preset.d.mts +25 -0
- package/dist/physics/circular-motion/preset.mjs +293 -0
- package/dist/physics/collision-track/index.d.mts +1 -0
- package/dist/physics/collision-track/preset.d.mts +27 -0
- package/dist/physics/collision-track/preset.mjs +352 -0
- package/dist/physics/efficiency/index.d.mts +1 -0
- package/dist/physics/efficiency/preset.d.mts +33 -0
- package/dist/physics/efficiency/preset.mjs +343 -0
- package/dist/physics/electric-field/index.d.mts +1 -0
- package/dist/physics/electric-field/preset.d.mts +15 -0
- package/dist/physics/electric-field/preset.mjs +306 -0
- package/dist/physics/energy-skate/index.d.mts +1 -0
- package/dist/physics/energy-skate/preset.d.mts +25 -0
- package/dist/physics/energy-skate/preset.mjs +254 -0
- package/dist/physics/entropy/index.d.mts +1 -0
- package/dist/physics/entropy/preset.d.mts +18 -0
- package/dist/physics/entropy/preset.mjs +416 -0
- package/dist/physics/expansion/index.d.mts +1 -0
- package/dist/physics/expansion/preset.d.mts +26 -0
- package/dist/physics/expansion/preset.mjs +609 -0
- package/dist/physics/exponential/asset.mjs +221 -0
- package/dist/physics/exponential/index.d.mts +1 -0
- package/dist/physics/exponential/preset.d.mts +17 -0
- package/dist/physics/exponential/preset.mjs +182 -0
- package/dist/physics/gas-process/index.d.mts +1 -0
- package/dist/physics/gas-process/preset.d.mts +30 -0
- package/dist/physics/gas-process/preset.mjs +384 -0
- package/dist/physics/gravitation/index.d.mts +1 -0
- package/dist/physics/gravitation/preset.d.mts +24 -0
- package/dist/physics/gravitation/preset.mjs +345 -0
- package/dist/physics/gravity-drop.d.mts +9 -0
- package/dist/physics/gravity-drop.mjs +187 -0
- package/dist/physics/heat-transfer/index.d.mts +1 -0
- package/dist/physics/heat-transfer/preset.d.mts +27 -0
- package/dist/physics/heat-transfer/preset.mjs +626 -0
- package/dist/physics/impulse/index.d.mts +1 -0
- package/dist/physics/impulse/preset.d.mts +29 -0
- package/dist/physics/impulse/preset.mjs +453 -0
- package/dist/physics/index.d.mts +43 -0
- package/dist/physics/index.mjs +44 -0
- package/dist/physics/kepler/index.d.mts +1 -0
- package/dist/physics/kepler/preset.d.mts +27 -0
- package/dist/physics/kepler/preset.mjs +257 -0
- package/dist/physics/lever/asset.d.mts +6 -0
- package/dist/physics/lever/asset.mjs +220 -0
- package/dist/physics/lever/index.d.mts +2 -0
- package/dist/physics/lever/preset.d.mts +31 -0
- package/dist/physics/lever/preset.mjs +261 -0
- package/dist/physics/lorentz/index.d.mts +1 -0
- package/dist/physics/lorentz/preset.d.mts +29 -0
- package/dist/physics/lorentz/preset.mjs +367 -0
- package/dist/physics/magnetism/index.d.mts +1 -0
- package/dist/physics/magnetism/preset.d.mts +15 -0
- package/dist/physics/magnetism/preset.mjs +334 -0
- package/dist/physics/optics/asset.d.mts +6 -0
- package/dist/physics/optics/asset.mjs +234 -0
- package/dist/physics/optics/index.d.mts +2 -0
- package/dist/physics/optics/preset.d.mts +14 -0
- package/dist/physics/optics/preset.mjs +202 -0
- package/dist/physics/orbit-lab.d.mts +6 -0
- package/dist/physics/orbit-lab.mjs +222 -0
- package/dist/physics/projectile-lab.d.mts +10 -0
- package/dist/physics/projectile-lab.mjs +354 -0
- package/dist/physics/rain-relative/index.d.mts +1 -0
- package/dist/physics/rain-relative/preset.d.mts +19 -0
- package/dist/physics/rain-relative/preset.mjs +358 -0
- package/dist/physics/ramp-forces/index.d.mts +1 -0
- package/dist/physics/ramp-forces/preset.d.mts +36 -0
- package/dist/physics/ramp-forces/preset.mjs +550 -0
- package/dist/physics/river-boat.d.mts +22 -0
- package/dist/physics/river-boat.mjs +498 -0
- package/dist/physics/shm/index.d.mts +1 -0
- package/dist/physics/shm/preset.d.mts +33 -0
- package/dist/physics/shm/preset.mjs +554 -0
- package/dist/physics/stopping-distance/index.d.mts +1 -0
- package/dist/physics/stopping-distance/preset.d.mts +29 -0
- package/dist/physics/stopping-distance/preset.mjs +662 -0
- package/dist/physics/temperature-scales/index.d.mts +1 -0
- package/dist/physics/temperature-scales/preset.d.mts +15 -0
- package/dist/physics/temperature-scales/preset.mjs +353 -0
- package/dist/physics/terminal-velocity/index.d.mts +1 -0
- package/dist/physics/terminal-velocity/preset.d.mts +26 -0
- package/dist/physics/terminal-velocity/preset.mjs +404 -0
- package/dist/physics/thermal/index.d.mts +1 -0
- package/dist/physics/thermal/preset.d.mts +44 -0
- package/dist/physics/thermal/preset.mjs +373 -0
- package/dist/physics/vector-board/index.d.mts +1 -0
- package/dist/physics/vector-board/preset.d.mts +65 -0
- package/dist/physics/vector-board/preset.mjs +273 -0
- package/dist/physics/vector-board/view.d.mts +49 -0
- package/dist/physics/vector-board/view.mjs +58 -0
- package/dist/physics/vector-scene.d.mts +41 -0
- package/dist/physics/vector-scene.mjs +211 -0
- package/dist/physics/vector-types/index.d.mts +1 -0
- package/dist/physics/vector-types/preset.d.mts +27 -0
- package/dist/physics/vector-types/preset.mjs +192 -0
- package/dist/physics/water-density/index.d.mts +1 -0
- package/dist/physics/water-density/preset.d.mts +18 -0
- package/dist/physics/water-density/preset.mjs +439 -0
- package/dist/physics/waves/core.mjs +33 -0
- package/dist/physics/waves/doppler.d.mts +23 -0
- package/dist/physics/waves/doppler.mjs +260 -0
- package/dist/physics/waves/index.d.mts +4 -0
- package/dist/physics/waves/preset.d.mts +30 -0
- package/dist/physics/waves/preset.mjs +488 -0
- package/dist/physics/waves/ripple.d.mts +26 -0
- package/dist/physics/waves/ripple.mjs +234 -0
- package/dist/physics/waves/string.d.mts +29 -0
- package/dist/physics/waves/string.mjs +289 -0
- package/dist/physics/work-energy/index.d.mts +1 -0
- package/dist/physics/work-energy/preset.d.mts +17 -0
- package/dist/physics/work-energy/preset.mjs +341 -0
- package/dist/schemas/index.d.mts +235 -0
- package/dist/schemas/index.mjs +145 -0
- package/dist/statistics/center-spread/preset.d.mts +34 -0
- package/dist/statistics/center-spread/preset.mjs +323 -0
- package/dist/statistics/core/descriptive.d.mts +35 -0
- package/dist/statistics/core/descriptive.mjs +64 -0
- package/dist/statistics/core/normal.d.mts +21 -0
- package/dist/statistics/core/normal.mjs +37 -0
- package/dist/statistics/core/sequences.d.mts +27 -0
- package/dist/statistics/core/sequences.mjs +35 -0
- package/dist/statistics/galton/preset.d.mts +27 -0
- package/dist/statistics/galton/preset.mjs +331 -0
- package/dist/statistics/histogram/preset.d.mts +27 -0
- package/dist/statistics/histogram/preset.mjs +385 -0
- package/dist/statistics/index.d.mts +11 -0
- package/dist/statistics/index.mjs +12 -0
- package/dist/statistics/normal/preset.d.mts +30 -0
- package/dist/statistics/normal/preset.mjs +400 -0
- package/dist/statistics/sampling/preset.d.mts +32 -0
- package/dist/statistics/sampling/preset.mjs +406 -0
- package/dist/statistics/sequence/preset.d.mts +28 -0
- package/dist/statistics/sequence/preset.mjs +302 -0
- package/dist/statistics/z-table/preset.d.mts +28 -0
- package/dist/statistics/z-table/preset.mjs +348 -0
- package/package.json +266 -0
- package/styles.css +267 -0
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { RegressionLab } from "../ml/regression/preset.mjs";
|
|
2
|
+
import { KMeansLab } from "../ml/kmeans/preset.mjs";
|
|
3
|
+
import { ClassifierThresholdLab } from "../ml/classifier/preset.mjs";
|
|
4
|
+
import { z } from "zod";
|
|
5
|
+
|
|
6
|
+
//#region src/blocks/ml.d.ts
|
|
7
|
+
declare const RegressionBlock: import("@classytic/cms-ui/contract").CmsBlock<z.ZodObject<{
|
|
8
|
+
data: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
9
|
+
x: z.ZodNumber;
|
|
10
|
+
y: z.ZodNumber;
|
|
11
|
+
}, z.core.$strip>>>;
|
|
12
|
+
showSquares: z.ZodDefault<z.ZodBoolean>;
|
|
13
|
+
learnRate: z.ZodDefault<z.ZodNumber>;
|
|
14
|
+
m0: z.ZodDefault<z.ZodNumber>;
|
|
15
|
+
b0: z.ZodDefault<z.ZodNumber>;
|
|
16
|
+
span: z.ZodDefault<z.ZodNumber>;
|
|
17
|
+
title: z.ZodOptional<z.ZodString>;
|
|
18
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
19
|
+
}, z.core.$strip>>;
|
|
20
|
+
declare const KMeansBlock: import("@classytic/cms-ui/contract").CmsBlock<z.ZodObject<{
|
|
21
|
+
points: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
22
|
+
x: z.ZodNumber;
|
|
23
|
+
y: z.ZodNumber;
|
|
24
|
+
}, z.core.$strip>>>;
|
|
25
|
+
k: z.ZodDefault<z.ZodNumber>;
|
|
26
|
+
seeds: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
27
|
+
x: z.ZodNumber;
|
|
28
|
+
y: z.ZodNumber;
|
|
29
|
+
}, z.core.$strip>>>;
|
|
30
|
+
span: z.ZodDefault<z.ZodNumber>;
|
|
31
|
+
showLines: z.ZodDefault<z.ZodBoolean>;
|
|
32
|
+
title: z.ZodOptional<z.ZodString>;
|
|
33
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
34
|
+
}, z.core.$strip>>;
|
|
35
|
+
declare const ClassifierThresholdBlock: import("@classytic/cms-ui/contract").CmsBlock<z.ZodObject<{
|
|
36
|
+
positives: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
37
|
+
negatives: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
38
|
+
threshold: z.ZodDefault<z.ZodNumber>;
|
|
39
|
+
span: z.ZodDefault<z.ZodNumber>;
|
|
40
|
+
title: z.ZodOptional<z.ZodString>;
|
|
41
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
42
|
+
}, z.core.$strip>>;
|
|
43
|
+
/** This domain's block specs + tag→component render map. */
|
|
44
|
+
declare const mlBlocks: readonly [import("@classytic/cms-ui/contract").CmsBlock<z.ZodObject<{
|
|
45
|
+
data: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
46
|
+
x: z.ZodNumber;
|
|
47
|
+
y: z.ZodNumber;
|
|
48
|
+
}, z.core.$strip>>>;
|
|
49
|
+
showSquares: z.ZodDefault<z.ZodBoolean>;
|
|
50
|
+
learnRate: z.ZodDefault<z.ZodNumber>;
|
|
51
|
+
m0: z.ZodDefault<z.ZodNumber>;
|
|
52
|
+
b0: z.ZodDefault<z.ZodNumber>;
|
|
53
|
+
span: z.ZodDefault<z.ZodNumber>;
|
|
54
|
+
title: z.ZodOptional<z.ZodString>;
|
|
55
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
56
|
+
}, z.core.$strip>>, import("@classytic/cms-ui/contract").CmsBlock<z.ZodObject<{
|
|
57
|
+
points: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
58
|
+
x: z.ZodNumber;
|
|
59
|
+
y: z.ZodNumber;
|
|
60
|
+
}, z.core.$strip>>>;
|
|
61
|
+
k: z.ZodDefault<z.ZodNumber>;
|
|
62
|
+
seeds: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
63
|
+
x: z.ZodNumber;
|
|
64
|
+
y: z.ZodNumber;
|
|
65
|
+
}, z.core.$strip>>>;
|
|
66
|
+
span: z.ZodDefault<z.ZodNumber>;
|
|
67
|
+
showLines: z.ZodDefault<z.ZodBoolean>;
|
|
68
|
+
title: z.ZodOptional<z.ZodString>;
|
|
69
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
70
|
+
}, z.core.$strip>>, import("@classytic/cms-ui/contract").CmsBlock<z.ZodObject<{
|
|
71
|
+
positives: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
72
|
+
negatives: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
73
|
+
threshold: z.ZodDefault<z.ZodNumber>;
|
|
74
|
+
span: z.ZodDefault<z.ZodNumber>;
|
|
75
|
+
title: z.ZodOptional<z.ZodString>;
|
|
76
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
77
|
+
}, z.core.$strip>>];
|
|
78
|
+
declare const mlComponents: {
|
|
79
|
+
readonly Regression: typeof RegressionLab;
|
|
80
|
+
readonly KMeans: typeof KMeansLab;
|
|
81
|
+
readonly ClassifierThreshold: typeof ClassifierThresholdLab;
|
|
82
|
+
};
|
|
83
|
+
//#endregion
|
|
84
|
+
export { ClassifierThresholdBlock, KMeansBlock, RegressionBlock, mlBlocks, mlComponents };
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { RegressionLab } from "../ml/regression/preset.mjs";
|
|
2
|
+
import { KMeansLab } from "../ml/kmeans/preset.mjs";
|
|
3
|
+
import { ClassifierThresholdLab } from "../ml/classifier/preset.mjs";
|
|
4
|
+
import { LabConfig } from "./lab-config.mjs";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { z } from "zod";
|
|
7
|
+
import { defineBlock } from "@classytic/cms-ui/contract";
|
|
8
|
+
|
|
9
|
+
//#region src/blocks/ml.tsx
|
|
10
|
+
/**
|
|
11
|
+
* @classytic/labs/blocks — machine-learning / data-analytics lab block specs.
|
|
12
|
+
*
|
|
13
|
+
* `defineBlock` editor adapters for the ML labs. REFERENCE for the schema-driven
|
|
14
|
+
* authoring panel: the editor config is just `<LabConfig schema={…}>` — one
|
|
15
|
+
* Zod-driven panel renders every prop, so there's no hand-built ConfigRow list to
|
|
16
|
+
* maintain. Hoist each block's schema to a const so it backs BOTH `defineBlock`
|
|
17
|
+
* and the panel. One domain per file; exported at `@classytic/labs/blocks/ml`.
|
|
18
|
+
*/
|
|
19
|
+
const regressionSchema = z.object({
|
|
20
|
+
data: z.array(z.object({
|
|
21
|
+
x: z.number(),
|
|
22
|
+
y: z.number()
|
|
23
|
+
})).optional(),
|
|
24
|
+
showSquares: z.boolean().default(true),
|
|
25
|
+
learnRate: z.number().default(.006),
|
|
26
|
+
m0: z.number().default(.3),
|
|
27
|
+
b0: z.number().default(3.2),
|
|
28
|
+
span: z.number().default(10),
|
|
29
|
+
title: z.string().optional(),
|
|
30
|
+
prompt: z.string().optional()
|
|
31
|
+
});
|
|
32
|
+
const RegressionBlock = defineBlock({
|
|
33
|
+
key: "regression",
|
|
34
|
+
tag: "Regression",
|
|
35
|
+
void: true,
|
|
36
|
+
label: "Linear regression / gradient descent",
|
|
37
|
+
description: "Least squares made tactile: drag the line’s ends and each point grows a square of its squared error while the MSE updates live; press Descend to watch gradient descent fit it automatically (a learning-rate slider can make it diverge). Author the dataset + starting line.",
|
|
38
|
+
category: "interactive",
|
|
39
|
+
schema: regressionSchema,
|
|
40
|
+
Component: ({ attributes, mode, updateAttributes }) => {
|
|
41
|
+
const widget = /* @__PURE__ */ jsx(RegressionLab, {
|
|
42
|
+
data: attributes.data,
|
|
43
|
+
showSquares: attributes.showSquares,
|
|
44
|
+
learnRate: attributes.learnRate,
|
|
45
|
+
m0: attributes.m0,
|
|
46
|
+
b0: attributes.b0,
|
|
47
|
+
span: attributes.span,
|
|
48
|
+
title: attributes.title,
|
|
49
|
+
prompt: attributes.prompt
|
|
50
|
+
});
|
|
51
|
+
if (mode !== "editing" || !updateAttributes) return widget;
|
|
52
|
+
return /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx(LabConfig, {
|
|
53
|
+
schema: regressionSchema,
|
|
54
|
+
value: attributes,
|
|
55
|
+
onChange: updateAttributes
|
|
56
|
+
}), widget] });
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
const kmeansSchema = z.object({
|
|
60
|
+
points: z.array(z.object({
|
|
61
|
+
x: z.number(),
|
|
62
|
+
y: z.number()
|
|
63
|
+
})).optional(),
|
|
64
|
+
k: z.number().int().min(1).max(5).default(3),
|
|
65
|
+
seeds: z.array(z.object({
|
|
66
|
+
x: z.number(),
|
|
67
|
+
y: z.number()
|
|
68
|
+
})).optional(),
|
|
69
|
+
span: z.number().default(10),
|
|
70
|
+
showLines: z.boolean().default(true),
|
|
71
|
+
title: z.string().optional(),
|
|
72
|
+
prompt: z.string().optional()
|
|
73
|
+
});
|
|
74
|
+
const KMeansBlock = defineBlock({
|
|
75
|
+
key: "kmeans",
|
|
76
|
+
tag: "KMeans",
|
|
77
|
+
void: true,
|
|
78
|
+
label: "k-means clustering",
|
|
79
|
+
description: "Unsupervised clustering you watch converge: drag the k centroids to seed them, Step or Run Lloyd’s algorithm (points recolour to nearest centroid, centroids jump to their cluster mean), and the inertia drops. Bad seeds → a worse local minimum. Author the points + k.",
|
|
80
|
+
category: "interactive",
|
|
81
|
+
schema: kmeansSchema,
|
|
82
|
+
Component: ({ attributes, mode, updateAttributes }) => {
|
|
83
|
+
const widget = /* @__PURE__ */ jsx(KMeansLab, {
|
|
84
|
+
points: attributes.points,
|
|
85
|
+
k: attributes.k,
|
|
86
|
+
seeds: attributes.seeds,
|
|
87
|
+
span: attributes.span,
|
|
88
|
+
showLines: attributes.showLines,
|
|
89
|
+
title: attributes.title,
|
|
90
|
+
prompt: attributes.prompt
|
|
91
|
+
});
|
|
92
|
+
if (mode !== "editing" || !updateAttributes) return widget;
|
|
93
|
+
return /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx(LabConfig, {
|
|
94
|
+
schema: kmeansSchema,
|
|
95
|
+
value: attributes,
|
|
96
|
+
onChange: updateAttributes
|
|
97
|
+
}), widget] });
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
const classifierSchema = z.object({
|
|
101
|
+
positives: z.array(z.number()).optional(),
|
|
102
|
+
negatives: z.array(z.number()).optional(),
|
|
103
|
+
threshold: z.number().default(5),
|
|
104
|
+
span: z.number().default(10),
|
|
105
|
+
title: z.string().optional(),
|
|
106
|
+
prompt: z.string().optional()
|
|
107
|
+
});
|
|
108
|
+
const ClassifierThresholdBlock = defineBlock({
|
|
109
|
+
key: "classifier-threshold",
|
|
110
|
+
tag: "ClassifierThreshold",
|
|
111
|
+
void: true,
|
|
112
|
+
label: "Classification threshold (precision/recall)",
|
|
113
|
+
description: "The precision–recall trade-off, draggable: positive and negative examples overlap on a score axis; slide the threshold and the 2×2 confusion matrix + precision/recall/accuracy/F1 update live — pushing precision up costs recall. Author the two score sets.",
|
|
114
|
+
category: "interactive",
|
|
115
|
+
schema: classifierSchema,
|
|
116
|
+
Component: ({ attributes, mode, updateAttributes }) => {
|
|
117
|
+
const widget = /* @__PURE__ */ jsx(ClassifierThresholdLab, {
|
|
118
|
+
positives: attributes.positives,
|
|
119
|
+
negatives: attributes.negatives,
|
|
120
|
+
threshold: attributes.threshold,
|
|
121
|
+
span: attributes.span,
|
|
122
|
+
title: attributes.title,
|
|
123
|
+
prompt: attributes.prompt
|
|
124
|
+
});
|
|
125
|
+
if (mode !== "editing" || !updateAttributes) return widget;
|
|
126
|
+
return /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx(LabConfig, {
|
|
127
|
+
schema: classifierSchema,
|
|
128
|
+
value: attributes,
|
|
129
|
+
onChange: updateAttributes
|
|
130
|
+
}), widget] });
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
/** This domain's block specs + tag→component render map. */
|
|
134
|
+
const mlBlocks = [
|
|
135
|
+
RegressionBlock,
|
|
136
|
+
KMeansBlock,
|
|
137
|
+
ClassifierThresholdBlock
|
|
138
|
+
];
|
|
139
|
+
const mlComponents = {
|
|
140
|
+
Regression: RegressionLab,
|
|
141
|
+
KMeans: KMeansLab,
|
|
142
|
+
ClassifierThreshold: ClassifierThresholdLab
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
//#endregion
|
|
146
|
+
export { ClassifierThresholdBlock, KMeansBlock, RegressionBlock, mlBlocks, mlComponents };
|
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
import { LabBlock } from "./lab-block.mjs";
|
|
2
|
+
import { VectorBoardView } from "../physics/vector-board/view.mjs";
|
|
3
|
+
import { OpticsLab } from "../physics/optics/preset.mjs";
|
|
4
|
+
import { ProjectileLab } from "../physics/projectile-lab.mjs";
|
|
5
|
+
import { GravityDrop } from "../physics/gravity-drop.mjs";
|
|
6
|
+
import { RiverBoat } from "../physics/river-boat.mjs";
|
|
7
|
+
import { VectorTypesLab } from "../physics/vector-types/preset.mjs";
|
|
8
|
+
import { RainRelativeLab } from "../physics/rain-relative/preset.mjs";
|
|
9
|
+
import { StoppingDistanceLab } from "../physics/stopping-distance/preset.mjs";
|
|
10
|
+
import { RampForcesLab } from "../physics/ramp-forces/preset.mjs";
|
|
11
|
+
import { CollisionTrackLab } from "../physics/collision-track/preset.mjs";
|
|
12
|
+
import { OrbitLab } from "../physics/orbit-lab.mjs";
|
|
13
|
+
import { ReactNode } from "react";
|
|
14
|
+
import { z } from "zod";
|
|
15
|
+
|
|
16
|
+
//#region src/blocks/physics.d.ts
|
|
17
|
+
declare const ProjectileLabBlock: import("@classytic/cms-ui/contract").CmsBlock<z.ZodObject<{
|
|
18
|
+
targetMeters: z.ZodOptional<z.ZodNumber>;
|
|
19
|
+
g: z.ZodOptional<z.ZodNumber>;
|
|
20
|
+
}, z.core.$strip>>;
|
|
21
|
+
declare const OrbitLabBlock: import("@classytic/cms-ui/contract").CmsBlock<z.ZodObject<{}, z.core.$strip>>;
|
|
22
|
+
declare const GravityDropBlock: import("@classytic/cms-ui/contract").CmsBlock<z.ZodObject<{
|
|
23
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
24
|
+
}, z.core.$strip>>;
|
|
25
|
+
declare const RiverBoatBlock: import("@classytic/cms-ui/contract").CmsBlock<z.ZodObject<{
|
|
26
|
+
boatSpeed: z.ZodOptional<z.ZodNumber>;
|
|
27
|
+
current: z.ZodOptional<z.ZodNumber>;
|
|
28
|
+
riverWidth: z.ZodOptional<z.ZodNumber>;
|
|
29
|
+
title: z.ZodOptional<z.ZodString>;
|
|
30
|
+
}, z.core.$strip>>;
|
|
31
|
+
/** Simple lever authoring → the labs component's items[] API. */
|
|
32
|
+
declare function LeverPuzzle({
|
|
33
|
+
knownWeight,
|
|
34
|
+
knownDist,
|
|
35
|
+
unknownDist,
|
|
36
|
+
maxWeight,
|
|
37
|
+
controlId
|
|
38
|
+
}: {
|
|
39
|
+
knownWeight?: number;
|
|
40
|
+
knownDist?: number;
|
|
41
|
+
unknownDist?: number;
|
|
42
|
+
maxWeight?: number;
|
|
43
|
+
controlId?: string;
|
|
44
|
+
}): ReactNode;
|
|
45
|
+
declare const OpticsBlock: import("@classytic/cms-ui/contract").CmsBlock<z.ZodObject<{}, z.core.$strip>>;
|
|
46
|
+
declare const LeverBlock: import("@classytic/cms-ui/contract").CmsBlock<z.ZodObject<{
|
|
47
|
+
knownWeight: z.ZodDefault<z.ZodNumber>;
|
|
48
|
+
knownDist: z.ZodDefault<z.ZodNumber>;
|
|
49
|
+
unknownDist: z.ZodDefault<z.ZodNumber>;
|
|
50
|
+
controlId: z.ZodOptional<z.ZodString>;
|
|
51
|
+
}, z.core.$strip>>;
|
|
52
|
+
declare const VectorBoardBlock: import("@classytic/cms-ui/contract").CmsBlock<z.ZodObject<{
|
|
53
|
+
vectors: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
54
|
+
label: z.ZodOptional<z.ZodString>;
|
|
55
|
+
dx: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
56
|
+
dy: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
57
|
+
color: z.ZodOptional<z.ZodString>;
|
|
58
|
+
drag: z.ZodOptional<z.ZodBoolean>;
|
|
59
|
+
}, z.core.$strip>>>;
|
|
60
|
+
combine: z.ZodDefault<z.ZodEnum<{
|
|
61
|
+
none: "none";
|
|
62
|
+
sum: "sum";
|
|
63
|
+
diff: "diff";
|
|
64
|
+
}>>;
|
|
65
|
+
goalX: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
66
|
+
goalY: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
67
|
+
components: z.ZodOptional<z.ZodBoolean>;
|
|
68
|
+
angle: z.ZodDefault<z.ZodBoolean>;
|
|
69
|
+
objectives: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
70
|
+
hints: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
71
|
+
title: z.ZodOptional<z.ZodString>;
|
|
72
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
73
|
+
}, z.core.$strip>>;
|
|
74
|
+
declare const VectorTypesBlock: import("@classytic/cms-ui/contract").CmsBlock<z.ZodObject<{
|
|
75
|
+
title: z.ZodOptional<z.ZodString>;
|
|
76
|
+
types: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
77
|
+
name: z.ZodString;
|
|
78
|
+
caption: z.ZodString;
|
|
79
|
+
vectors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
80
|
+
tail: z.ZodOptional<z.ZodObject<{
|
|
81
|
+
x: z.ZodNumber;
|
|
82
|
+
y: z.ZodNumber;
|
|
83
|
+
}, z.core.$strip>>;
|
|
84
|
+
comp: z.ZodObject<{
|
|
85
|
+
x: z.ZodNumber;
|
|
86
|
+
y: z.ZodNumber;
|
|
87
|
+
}, z.core.$strip>;
|
|
88
|
+
color: z.ZodOptional<z.ZodString>;
|
|
89
|
+
label: z.ZodOptional<z.ZodString>;
|
|
90
|
+
}, z.core.$strip>>>;
|
|
91
|
+
origin: z.ZodOptional<z.ZodBoolean>;
|
|
92
|
+
}, z.core.$strip>>>;
|
|
93
|
+
}, z.core.$strip>>;
|
|
94
|
+
declare const RainRelativeBlock: import("@classytic/cms-ui/contract").CmsBlock<z.ZodObject<{
|
|
95
|
+
maxSpeed: z.ZodDefault<z.ZodNumber>;
|
|
96
|
+
start: z.ZodDefault<z.ZodNumber>;
|
|
97
|
+
title: z.ZodOptional<z.ZodString>;
|
|
98
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
99
|
+
}, z.core.$strip>>;
|
|
100
|
+
declare const StoppingDistanceBlock: import("@classytic/cms-ui/contract").CmsBlock<z.ZodObject<{
|
|
101
|
+
speed: z.ZodDefault<z.ZodNumber>;
|
|
102
|
+
reactionTime: z.ZodDefault<z.ZodNumber>;
|
|
103
|
+
deceleration: z.ZodDefault<z.ZodNumber>;
|
|
104
|
+
predict: z.ZodDefault<z.ZodBoolean>;
|
|
105
|
+
showGraphs: z.ZodDefault<z.ZodBoolean>;
|
|
106
|
+
title: z.ZodOptional<z.ZodString>;
|
|
107
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
108
|
+
}, z.core.$strip>>;
|
|
109
|
+
declare const RampForcesBlock: import("@classytic/cms-ui/contract").CmsBlock<z.ZodObject<{
|
|
110
|
+
angleDeg: z.ZodDefault<z.ZodNumber>;
|
|
111
|
+
mass: z.ZodDefault<z.ZodNumber>;
|
|
112
|
+
friction: z.ZodDefault<z.ZodNumber>;
|
|
113
|
+
showComponents: z.ZodDefault<z.ZodBoolean>;
|
|
114
|
+
title: z.ZodOptional<z.ZodString>;
|
|
115
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
116
|
+
controls: z.ZodOptional<z.ZodObject<{
|
|
117
|
+
hide: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
118
|
+
lock: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
119
|
+
}, z.core.$strip>>;
|
|
120
|
+
}, z.core.$strip>>;
|
|
121
|
+
declare const CollisionTrackBlock: import("@classytic/cms-ui/contract").CmsBlock<z.ZodObject<{
|
|
122
|
+
m1: z.ZodDefault<z.ZodNumber>;
|
|
123
|
+
m2: z.ZodDefault<z.ZodNumber>;
|
|
124
|
+
u1: z.ZodDefault<z.ZodNumber>;
|
|
125
|
+
u2: z.ZodDefault<z.ZodNumber>;
|
|
126
|
+
elasticity: z.ZodDefault<z.ZodNumber>;
|
|
127
|
+
showCenterOfMass: z.ZodDefault<z.ZodBoolean>;
|
|
128
|
+
title: z.ZodOptional<z.ZodString>;
|
|
129
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
130
|
+
}, z.core.$strip>>;
|
|
131
|
+
declare const WaveBlock: LabBlock;
|
|
132
|
+
declare const RippleTankBlock: LabBlock;
|
|
133
|
+
declare const DopplerBlock: LabBlock;
|
|
134
|
+
declare const StringReflectionBlock: LabBlock;
|
|
135
|
+
declare const MagnetismBlock: LabBlock;
|
|
136
|
+
declare const LorentzBlock: LabBlock;
|
|
137
|
+
declare const ImpulseBlock: LabBlock;
|
|
138
|
+
declare const BulletWallsBlock: LabBlock;
|
|
139
|
+
declare const CircularMotionBlock: LabBlock;
|
|
140
|
+
declare const EnergySkateBlock: LabBlock;
|
|
141
|
+
declare const SimpleHarmonicBlock: LabBlock;
|
|
142
|
+
declare const AtwoodBlock: LabBlock;
|
|
143
|
+
declare const TerminalVelocityBlock: LabBlock;
|
|
144
|
+
declare const KeplerBlock: LabBlock;
|
|
145
|
+
declare const GravitationBlock: LabBlock;
|
|
146
|
+
declare const HeatTransferBlock: LabBlock;
|
|
147
|
+
declare const ThermalExpansionBlock: LabBlock;
|
|
148
|
+
declare const HeatingCurveBlock: LabBlock;
|
|
149
|
+
declare const GasProcessBlock: LabBlock;
|
|
150
|
+
declare const CarnotBlock: LabBlock;
|
|
151
|
+
declare const EntropyBlock: LabBlock;
|
|
152
|
+
declare const TemperatureScalesBlock: LabBlock;
|
|
153
|
+
declare const WaterDensityBlock: LabBlock;
|
|
154
|
+
declare const EfficiencyBlock: LabBlock;
|
|
155
|
+
declare const physicsBlocks: readonly [import("@classytic/cms-ui/contract").CmsBlock<z.ZodObject<{
|
|
156
|
+
targetMeters: z.ZodOptional<z.ZodNumber>;
|
|
157
|
+
g: z.ZodOptional<z.ZodNumber>;
|
|
158
|
+
}, z.core.$strip>>, import("@classytic/cms-ui/contract").CmsBlock<z.ZodObject<{}, z.core.$strip>>, import("@classytic/cms-ui/contract").CmsBlock<z.ZodObject<{
|
|
159
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
160
|
+
}, z.core.$strip>>, import("@classytic/cms-ui/contract").CmsBlock<z.ZodObject<{
|
|
161
|
+
boatSpeed: z.ZodOptional<z.ZodNumber>;
|
|
162
|
+
current: z.ZodOptional<z.ZodNumber>;
|
|
163
|
+
riverWidth: z.ZodOptional<z.ZodNumber>;
|
|
164
|
+
title: z.ZodOptional<z.ZodString>;
|
|
165
|
+
}, z.core.$strip>>, import("@classytic/cms-ui/contract").CmsBlock<z.ZodObject<{}, z.core.$strip>>, import("@classytic/cms-ui/contract").CmsBlock<z.ZodObject<{
|
|
166
|
+
knownWeight: z.ZodDefault<z.ZodNumber>;
|
|
167
|
+
knownDist: z.ZodDefault<z.ZodNumber>;
|
|
168
|
+
unknownDist: z.ZodDefault<z.ZodNumber>;
|
|
169
|
+
controlId: z.ZodOptional<z.ZodString>;
|
|
170
|
+
}, z.core.$strip>>, import("@classytic/cms-ui/contract").CmsBlock<z.ZodObject<{
|
|
171
|
+
vectors: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
172
|
+
label: z.ZodOptional<z.ZodString>;
|
|
173
|
+
dx: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
174
|
+
dy: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
175
|
+
color: z.ZodOptional<z.ZodString>;
|
|
176
|
+
drag: z.ZodOptional<z.ZodBoolean>;
|
|
177
|
+
}, z.core.$strip>>>;
|
|
178
|
+
combine: z.ZodDefault<z.ZodEnum<{
|
|
179
|
+
none: "none";
|
|
180
|
+
sum: "sum";
|
|
181
|
+
diff: "diff";
|
|
182
|
+
}>>;
|
|
183
|
+
goalX: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
184
|
+
goalY: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
185
|
+
components: z.ZodOptional<z.ZodBoolean>;
|
|
186
|
+
angle: z.ZodDefault<z.ZodBoolean>;
|
|
187
|
+
objectives: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
188
|
+
hints: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
189
|
+
title: z.ZodOptional<z.ZodString>;
|
|
190
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
191
|
+
}, z.core.$strip>>, import("@classytic/cms-ui/contract").CmsBlock<z.ZodObject<{
|
|
192
|
+
title: z.ZodOptional<z.ZodString>;
|
|
193
|
+
types: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
194
|
+
name: z.ZodString;
|
|
195
|
+
caption: z.ZodString;
|
|
196
|
+
vectors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
197
|
+
tail: z.ZodOptional<z.ZodObject<{
|
|
198
|
+
x: z.ZodNumber;
|
|
199
|
+
y: z.ZodNumber;
|
|
200
|
+
}, z.core.$strip>>;
|
|
201
|
+
comp: z.ZodObject<{
|
|
202
|
+
x: z.ZodNumber;
|
|
203
|
+
y: z.ZodNumber;
|
|
204
|
+
}, z.core.$strip>;
|
|
205
|
+
color: z.ZodOptional<z.ZodString>;
|
|
206
|
+
label: z.ZodOptional<z.ZodString>;
|
|
207
|
+
}, z.core.$strip>>>;
|
|
208
|
+
origin: z.ZodOptional<z.ZodBoolean>;
|
|
209
|
+
}, z.core.$strip>>>;
|
|
210
|
+
}, z.core.$strip>>, import("@classytic/cms-ui/contract").CmsBlock<z.ZodObject<{
|
|
211
|
+
maxSpeed: z.ZodDefault<z.ZodNumber>;
|
|
212
|
+
start: z.ZodDefault<z.ZodNumber>;
|
|
213
|
+
title: z.ZodOptional<z.ZodString>;
|
|
214
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
215
|
+
}, z.core.$strip>>, import("@classytic/cms-ui/contract").CmsBlock<z.ZodObject<{
|
|
216
|
+
speed: z.ZodDefault<z.ZodNumber>;
|
|
217
|
+
reactionTime: z.ZodDefault<z.ZodNumber>;
|
|
218
|
+
deceleration: z.ZodDefault<z.ZodNumber>;
|
|
219
|
+
predict: z.ZodDefault<z.ZodBoolean>;
|
|
220
|
+
showGraphs: z.ZodDefault<z.ZodBoolean>;
|
|
221
|
+
title: z.ZodOptional<z.ZodString>;
|
|
222
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
223
|
+
}, z.core.$strip>>, import("@classytic/cms-ui/contract").CmsBlock<z.ZodObject<{
|
|
224
|
+
angleDeg: z.ZodDefault<z.ZodNumber>;
|
|
225
|
+
mass: z.ZodDefault<z.ZodNumber>;
|
|
226
|
+
friction: z.ZodDefault<z.ZodNumber>;
|
|
227
|
+
showComponents: z.ZodDefault<z.ZodBoolean>;
|
|
228
|
+
title: z.ZodOptional<z.ZodString>;
|
|
229
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
230
|
+
controls: z.ZodOptional<z.ZodObject<{
|
|
231
|
+
hide: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
232
|
+
lock: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
233
|
+
}, z.core.$strip>>;
|
|
234
|
+
}, z.core.$strip>>, import("@classytic/cms-ui/contract").CmsBlock<z.ZodObject<{
|
|
235
|
+
m1: z.ZodDefault<z.ZodNumber>;
|
|
236
|
+
m2: z.ZodDefault<z.ZodNumber>;
|
|
237
|
+
u1: z.ZodDefault<z.ZodNumber>;
|
|
238
|
+
u2: z.ZodDefault<z.ZodNumber>;
|
|
239
|
+
elasticity: z.ZodDefault<z.ZodNumber>;
|
|
240
|
+
showCenterOfMass: z.ZodDefault<z.ZodBoolean>;
|
|
241
|
+
title: z.ZodOptional<z.ZodString>;
|
|
242
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
243
|
+
}, z.core.$strip>>, LabBlock, LabBlock, LabBlock, LabBlock, LabBlock, LabBlock, LabBlock, LabBlock, LabBlock, LabBlock, LabBlock, LabBlock, LabBlock, LabBlock, LabBlock, LabBlock, LabBlock, LabBlock, LabBlock, LabBlock, LabBlock, LabBlock, LabBlock, LabBlock];
|
|
244
|
+
declare const physicsComponents: {
|
|
245
|
+
VectorBoard: typeof VectorBoardView;
|
|
246
|
+
VectorTypes: typeof VectorTypesLab;
|
|
247
|
+
RainRelative: typeof RainRelativeLab;
|
|
248
|
+
StoppingDistance: typeof StoppingDistanceLab;
|
|
249
|
+
RampForces: typeof RampForcesLab;
|
|
250
|
+
CollisionTrack: typeof CollisionTrackLab;
|
|
251
|
+
Optics: typeof OpticsLab;
|
|
252
|
+
Lever: typeof LeverPuzzle;
|
|
253
|
+
ProjectileLab: typeof ProjectileLab;
|
|
254
|
+
RiverBoat: typeof RiverBoat;
|
|
255
|
+
OrbitLab: typeof OrbitLab;
|
|
256
|
+
GravityDrop: typeof GravityDrop;
|
|
257
|
+
};
|
|
258
|
+
//#endregion
|
|
259
|
+
export { AtwoodBlock, BulletWallsBlock, CarnotBlock, CircularMotionBlock, CollisionTrackBlock, DopplerBlock, EfficiencyBlock, EnergySkateBlock, EntropyBlock, GasProcessBlock, GravitationBlock, GravityDropBlock, HeatTransferBlock, HeatingCurveBlock, ImpulseBlock, KeplerBlock, LeverBlock, LeverPuzzle, LorentzBlock, MagnetismBlock, OpticsBlock, OrbitLabBlock, ProjectileLabBlock, RainRelativeBlock, RampForcesBlock, RippleTankBlock, RiverBoatBlock, SimpleHarmonicBlock, StoppingDistanceBlock, StringReflectionBlock, TemperatureScalesBlock, TerminalVelocityBlock, ThermalExpansionBlock, VectorBoardBlock, VectorTypesBlock, WaterDensityBlock, WaveBlock, physicsBlocks, physicsComponents };
|