@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,11 @@
|
|
|
1
|
+
import { EnzymeRateLab, EnzymeRateProps } from "./enzyme-rate/preset.mjs";
|
|
2
|
+
import { PhotosynthesisFactorsLab, PhotosynthesisFactorsProps } from "./photosynthesis-factors/preset.mjs";
|
|
3
|
+
import { PunnettCrossLab, PunnettCrossProps } from "./punnett-cross/preset.mjs";
|
|
4
|
+
import { RespirationLab, RespirationProps } from "./respiration/preset.mjs";
|
|
5
|
+
import { AlleleSpec, BLOOD_TYPE_SPEC, BlendSpec, CROSS_PRESETS, CrossModelSpec, CrossPresetKey, DIHYBRID_LOCI, INCOMPLETE_SPEC, Phenotype, ResolvedModel, monohybridSpec, resolveModel } from "./genetic-cross/core.mjs";
|
|
6
|
+
import { GeneticCrossLab, GeneticCrossProps } from "./genetic-cross/preset.mjs";
|
|
7
|
+
import { SexLinkedCrossLab, SexLinkedCrossProps } from "./genetic-cross/sex-linked.mjs";
|
|
8
|
+
import { BASE_COLOR, CODON_TABLE, DNA_BASES, DNA_COMPLEMENT, RNA_BASES, SEQUENCE_PRESETS, SequenceKind, SequenceModel, TRANSCRIBE, buildSequenceModel } from "./sequence/core.mjs";
|
|
9
|
+
import { SequenceLab, SequenceLabProps } from "./sequence/preset.mjs";
|
|
10
|
+
import { CentralDogmaLab, CentralDogmaProps } from "./sequence/central-dogma.mjs";
|
|
11
|
+
export { type AlleleSpec, BASE_COLOR, BLOOD_TYPE_SPEC, type BlendSpec, CODON_TABLE, CROSS_PRESETS, CentralDogmaLab, type CentralDogmaProps, type CrossModelSpec, type CrossPresetKey, DIHYBRID_LOCI, DNA_BASES, DNA_COMPLEMENT, EnzymeRateLab, type EnzymeRateProps, GeneticCrossLab, type GeneticCrossProps, INCOMPLETE_SPEC, type Phenotype, PhotosynthesisFactorsLab, type PhotosynthesisFactorsProps, PunnettCrossLab, type PunnettCrossProps, RNA_BASES, type ResolvedModel, RespirationLab, type RespirationProps, SEQUENCE_PRESETS, type SequenceKind, SequenceLab, type SequenceLabProps, type SequenceModel, SexLinkedCrossLab, type SexLinkedCrossProps, TRANSCRIBE, buildSequenceModel, monohybridSpec, resolveModel };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { EnzymeRateLab } from "./enzyme-rate/preset.mjs";
|
|
2
|
+
import { PhotosynthesisFactorsLab } from "./photosynthesis-factors/preset.mjs";
|
|
3
|
+
import { BLOOD_TYPE_SPEC, CROSS_PRESETS, DIHYBRID_LOCI, INCOMPLETE_SPEC, monohybridSpec, resolveModel } from "./genetic-cross/core.mjs";
|
|
4
|
+
import { GeneticCrossLab } from "./genetic-cross/preset.mjs";
|
|
5
|
+
import { SexLinkedCrossLab } from "./genetic-cross/sex-linked.mjs";
|
|
6
|
+
import { PunnettCrossLab } from "./punnett-cross/preset.mjs";
|
|
7
|
+
import { RespirationLab } from "./respiration/preset.mjs";
|
|
8
|
+
import { BASE_COLOR, CODON_TABLE, DNA_BASES, DNA_COMPLEMENT, RNA_BASES, SEQUENCE_PRESETS, TRANSCRIBE, buildSequenceModel } from "./sequence/core.mjs";
|
|
9
|
+
import { SequenceLab } from "./sequence/preset.mjs";
|
|
10
|
+
import { CentralDogmaLab } from "./sequence/central-dogma.mjs";
|
|
11
|
+
|
|
12
|
+
export { BASE_COLOR, BLOOD_TYPE_SPEC, CODON_TABLE, CROSS_PRESETS, CentralDogmaLab, DIHYBRID_LOCI, DNA_BASES, DNA_COMPLEMENT, EnzymeRateLab, GeneticCrossLab, INCOMPLETE_SPEC, PhotosynthesisFactorsLab, PunnettCrossLab, RNA_BASES, RespirationLab, SEQUENCE_PRESETS, SequenceLab, SexLinkedCrossLab, TRANSCRIBE, buildSequenceModel, monohybridSpec, resolveModel };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { PhotosynthesisFactorsLab, PhotosynthesisFactorsProps } from "./preset.mjs";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/biology/photosynthesis-factors/preset.d.ts
|
|
4
|
+
interface PhotosynthesisFactorsProps {
|
|
5
|
+
light?: number;
|
|
6
|
+
co2?: number;
|
|
7
|
+
temperature?: number;
|
|
8
|
+
tempOptimum?: number;
|
|
9
|
+
title?: string;
|
|
10
|
+
prompt?: string;
|
|
11
|
+
height?: number;
|
|
12
|
+
objectives?: string[];
|
|
13
|
+
}
|
|
14
|
+
declare function PhotosynthesisFactorsLab({
|
|
15
|
+
light,
|
|
16
|
+
co2,
|
|
17
|
+
temperature,
|
|
18
|
+
tempOptimum,
|
|
19
|
+
title,
|
|
20
|
+
prompt,
|
|
21
|
+
height,
|
|
22
|
+
objectives
|
|
23
|
+
}: PhotosynthesisFactorsProps): ReactNode;
|
|
24
|
+
//#endregion
|
|
25
|
+
export { PhotosynthesisFactorsLab, PhotosynthesisFactorsProps };
|
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { clamp } from "../../core/util.mjs";
|
|
4
|
+
import { Slider, StatusPill } from "../../kit/controls.mjs";
|
|
5
|
+
import { Callout, ControlBar, Field, LabFrame, LiveRegion } from "../../kit/frame.mjs";
|
|
6
|
+
import { ChallengeCard, useChallenge, useCheckpoint } from "../../kit/pedagogy.mjs";
|
|
7
|
+
import { ReactionFlow } from "../../kit/reaction.mjs";
|
|
8
|
+
import { useState } from "react";
|
|
9
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
import { Axes, Dot, Label, Polyline, Segment, Stage } from "@classytic/stage";
|
|
11
|
+
|
|
12
|
+
//#region src/biology/photosynthesis-factors/preset.tsx
|
|
13
|
+
/**
|
|
14
|
+
* PhotosynthesisFactorsLab — limiting factors: the slowest worker sets the pace.
|
|
15
|
+
*
|
|
16
|
+
* Sliders for light, CO₂ and temperature. The rate climbs with light then
|
|
17
|
+
* PLATEAUS at whichever factor is in shortest supply — raise CO₂ and the SAME
|
|
18
|
+
* light curve climbs to a higher plateau, proving light was no longer limiting.
|
|
19
|
+
* Temperature is different: it gives a PEAK (optimum) not a plateau, because past
|
|
20
|
+
* the optimum enzymes denature. "Freeze curve" overlays a faint copy so two CO₂
|
|
21
|
+
* settings compare side by side.
|
|
22
|
+
*
|
|
23
|
+
* Reuses Stage/Polyline + core/util + kit/controls; tokenized; reduced-motion safe.
|
|
24
|
+
* The mirror photosynthesis ⇌ respiration equation belongs in a paired MathDerivation.
|
|
25
|
+
*/
|
|
26
|
+
const CLIFF = 14;
|
|
27
|
+
const FACTORS_CHALLENGE = [{
|
|
28
|
+
id: "plateau",
|
|
29
|
+
prompt: "Raising light further does nothing — the rate-vs-light curve has flattened. What sets the height of that plateau?",
|
|
30
|
+
choices: [
|
|
31
|
+
{
|
|
32
|
+
value: "factor",
|
|
33
|
+
label: "another factor (CO₂ or temperature)"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
value: "colour",
|
|
37
|
+
label: "the colour of the light"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
value: "random",
|
|
41
|
+
label: "nothing — it’s random"
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
answer: "factor",
|
|
45
|
+
explain: "Where the curve flattens, some OTHER factor (CO₂ supply or temperature) is now the bottleneck — the slowest worker sets the pace."
|
|
46
|
+
}, {
|
|
47
|
+
id: "cliff",
|
|
48
|
+
prompt: "Push temperature well ABOVE the optimum and the rate CRASHES — not just plateaus. Why?",
|
|
49
|
+
choices: [
|
|
50
|
+
{
|
|
51
|
+
value: "denature",
|
|
52
|
+
label: "enzymes denature"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
value: "co2",
|
|
56
|
+
label: "more CO₂ dissolves"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
value: "light",
|
|
60
|
+
label: "the light weakens"
|
|
61
|
+
}
|
|
62
|
+
],
|
|
63
|
+
answer: "denature",
|
|
64
|
+
explain: "Past the optimum the enzymes lose their shape (denature) — that destroys capacity, unlike a mere limiting factor."
|
|
65
|
+
}];
|
|
66
|
+
function PhotosynthesisFactorsLab({ light = 70, co2 = 50, temperature = 25, tempOptimum = 28, title = "Limiting factors — the slowest worker sets the pace", prompt = "Raise light: the rate plateaus where another factor (CO₂ or temperature) takes over.", height = 240, objectives }) {
|
|
67
|
+
const [l, setL] = useState(light);
|
|
68
|
+
const [c, setC] = useState(co2);
|
|
69
|
+
const [t, setT] = useState(temperature);
|
|
70
|
+
const [frozen, setFrozen] = useState([]);
|
|
71
|
+
const challenge = useChallenge(FACTORS_CHALLENGE);
|
|
72
|
+
useCheckpoint({
|
|
73
|
+
solved: challenge.allCorrect,
|
|
74
|
+
activity: "photosynthesis-factors"
|
|
75
|
+
});
|
|
76
|
+
const tempFactor = (temp) => temp <= tempOptimum ? clamp(temp / tempOptimum, 0, 1) : clamp(1 - (temp - tempOptimum) / CLIFF, 0, 1);
|
|
77
|
+
const rateAt = (lightV, co2V, tempV) => Math.min(lightV / 100, co2V / 100) * tempFactor(tempV);
|
|
78
|
+
const rate = rateAt(l, c, t);
|
|
79
|
+
const tooHot = t > tempOptimum && tempFactor(t) < .95;
|
|
80
|
+
const limiting = tooHot ? "temperature (too hot)" : l / 100 <= c / 100 + 1e-9 ? "light" : "CO₂";
|
|
81
|
+
const curve = (co2V, tempV) => {
|
|
82
|
+
const out = [];
|
|
83
|
+
for (let x = 0; x <= 100; x += 4) out.push({
|
|
84
|
+
x,
|
|
85
|
+
y: rateAt(x, co2V, tempV)
|
|
86
|
+
});
|
|
87
|
+
return out;
|
|
88
|
+
};
|
|
89
|
+
const pts = curve(c, t);
|
|
90
|
+
const view = {
|
|
91
|
+
xMin: -6,
|
|
92
|
+
xMax: 104,
|
|
93
|
+
yMin: -.1,
|
|
94
|
+
yMax: 1.1
|
|
95
|
+
};
|
|
96
|
+
const freeze = () => {
|
|
97
|
+
setFrozen((f) => [...f.slice(-2), {
|
|
98
|
+
co2: c,
|
|
99
|
+
temp: t,
|
|
100
|
+
pts
|
|
101
|
+
}]);
|
|
102
|
+
};
|
|
103
|
+
const bubbles = Math.round(rate * 7);
|
|
104
|
+
const figure = /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
105
|
+
/* @__PURE__ */ jsx(ReactionFlow, {
|
|
106
|
+
reactants: [
|
|
107
|
+
{
|
|
108
|
+
kind: "co2",
|
|
109
|
+
coef: 6
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
kind: "h2o",
|
|
113
|
+
coef: 6
|
|
114
|
+
},
|
|
115
|
+
{ kind: "light" }
|
|
116
|
+
],
|
|
117
|
+
products: [{ kind: "glucose" }, {
|
|
118
|
+
kind: "o2",
|
|
119
|
+
coef: 6
|
|
120
|
+
}],
|
|
121
|
+
height: 76,
|
|
122
|
+
molSize: 26,
|
|
123
|
+
ariaLabel: "6 CO2 + 6 H2O + light gives glucose + 6 O2"
|
|
124
|
+
}),
|
|
125
|
+
/* @__PURE__ */ jsxs("p", {
|
|
126
|
+
style: {
|
|
127
|
+
textAlign: "center",
|
|
128
|
+
margin: "0 0 8px",
|
|
129
|
+
color: "var(--stage-good)",
|
|
130
|
+
fontSize: 12
|
|
131
|
+
},
|
|
132
|
+
children: ["•".repeat(bubbles), /* @__PURE__ */ jsx("span", {
|
|
133
|
+
style: { color: "var(--stage-muted)" },
|
|
134
|
+
children: " O₂ rate"
|
|
135
|
+
})]
|
|
136
|
+
}),
|
|
137
|
+
/* @__PURE__ */ jsx("div", {
|
|
138
|
+
style: {
|
|
139
|
+
borderRadius: 14,
|
|
140
|
+
overflow: "hidden",
|
|
141
|
+
background: "var(--stage-bg)",
|
|
142
|
+
border: "1px solid var(--stage-grid)"
|
|
143
|
+
},
|
|
144
|
+
children: /* @__PURE__ */ jsxs(Stage, {
|
|
145
|
+
view,
|
|
146
|
+
height,
|
|
147
|
+
preserveAspect: false,
|
|
148
|
+
ariaLabel: `Photosynthesis rate vs light; limiting factor ${limiting}`,
|
|
149
|
+
children: [
|
|
150
|
+
/* @__PURE__ */ jsx(Axes, { ticks: false }),
|
|
151
|
+
/* @__PURE__ */ jsx(Label, {
|
|
152
|
+
x: 50,
|
|
153
|
+
y: -.06,
|
|
154
|
+
text: "light intensity →",
|
|
155
|
+
color: "var(--stage-muted)",
|
|
156
|
+
size: 11
|
|
157
|
+
}),
|
|
158
|
+
/* @__PURE__ */ jsx(Label, {
|
|
159
|
+
x: 0,
|
|
160
|
+
y: .55,
|
|
161
|
+
text: "rate",
|
|
162
|
+
color: "var(--stage-muted)",
|
|
163
|
+
size: 11,
|
|
164
|
+
dx: -6
|
|
165
|
+
}),
|
|
166
|
+
frozen.map((fr, i) => /* @__PURE__ */ jsx(Polyline, {
|
|
167
|
+
points: fr.pts,
|
|
168
|
+
color: "var(--stage-muted)",
|
|
169
|
+
weight: 1.5,
|
|
170
|
+
opacity: .45,
|
|
171
|
+
dashed: true
|
|
172
|
+
}, i)),
|
|
173
|
+
/* @__PURE__ */ jsx(Polyline, {
|
|
174
|
+
points: pts,
|
|
175
|
+
color: "var(--stage-good)",
|
|
176
|
+
weight: 2.5
|
|
177
|
+
}),
|
|
178
|
+
/* @__PURE__ */ jsx(Dot, {
|
|
179
|
+
x: l,
|
|
180
|
+
y: rate,
|
|
181
|
+
r: 6,
|
|
182
|
+
color: tooHot ? "var(--stage-danger)" : "var(--stage-good)"
|
|
183
|
+
}),
|
|
184
|
+
/* @__PURE__ */ jsx(Segment, {
|
|
185
|
+
from: {
|
|
186
|
+
x: l,
|
|
187
|
+
y: 0
|
|
188
|
+
},
|
|
189
|
+
to: {
|
|
190
|
+
x: l,
|
|
191
|
+
y: rate
|
|
192
|
+
},
|
|
193
|
+
color: "var(--stage-fg)",
|
|
194
|
+
weight: 1,
|
|
195
|
+
dashed: true,
|
|
196
|
+
opacity: .35
|
|
197
|
+
})
|
|
198
|
+
]
|
|
199
|
+
})
|
|
200
|
+
})
|
|
201
|
+
] });
|
|
202
|
+
return /* @__PURE__ */ jsx(LabFrame, {
|
|
203
|
+
title,
|
|
204
|
+
prompt,
|
|
205
|
+
objectives,
|
|
206
|
+
aside: /* @__PURE__ */ jsxs(Callout, { children: [/* @__PURE__ */ jsxs("div", {
|
|
207
|
+
style: {
|
|
208
|
+
fontVariantNumeric: "tabular-nums",
|
|
209
|
+
fontWeight: 600
|
|
210
|
+
},
|
|
211
|
+
children: ["rate ", (rate * 100).toFixed(0)]
|
|
212
|
+
}), /* @__PURE__ */ jsxs(StatusPill, {
|
|
213
|
+
ok: false,
|
|
214
|
+
children: ["limiting: ", limiting]
|
|
215
|
+
})] }),
|
|
216
|
+
controls: /* @__PURE__ */ jsxs(ControlBar, { children: [
|
|
217
|
+
/* @__PURE__ */ jsx(Field, {
|
|
218
|
+
label: "light",
|
|
219
|
+
value: l,
|
|
220
|
+
children: /* @__PURE__ */ jsx(Slider, {
|
|
221
|
+
value: l,
|
|
222
|
+
min: 0,
|
|
223
|
+
max: 100,
|
|
224
|
+
step: 2,
|
|
225
|
+
onChange: setL,
|
|
226
|
+
ariaLabel: "light intensity"
|
|
227
|
+
})
|
|
228
|
+
}),
|
|
229
|
+
/* @__PURE__ */ jsx(Field, {
|
|
230
|
+
label: "CO₂",
|
|
231
|
+
value: c,
|
|
232
|
+
children: /* @__PURE__ */ jsx(Slider, {
|
|
233
|
+
value: c,
|
|
234
|
+
min: 0,
|
|
235
|
+
max: 100,
|
|
236
|
+
step: 2,
|
|
237
|
+
onChange: setC,
|
|
238
|
+
ariaLabel: "carbon dioxide concentration"
|
|
239
|
+
})
|
|
240
|
+
}),
|
|
241
|
+
/* @__PURE__ */ jsx(Field, {
|
|
242
|
+
label: "temp",
|
|
243
|
+
value: `${t}°C`,
|
|
244
|
+
children: /* @__PURE__ */ jsx(Slider, {
|
|
245
|
+
value: t,
|
|
246
|
+
min: 0,
|
|
247
|
+
max: 50,
|
|
248
|
+
step: 1,
|
|
249
|
+
onChange: setT,
|
|
250
|
+
ariaLabel: "temperature"
|
|
251
|
+
})
|
|
252
|
+
}),
|
|
253
|
+
/* @__PURE__ */ jsx("button", {
|
|
254
|
+
type: "button",
|
|
255
|
+
className: "lab-chip",
|
|
256
|
+
onClick: freeze,
|
|
257
|
+
children: "📌 freeze this curve"
|
|
258
|
+
})
|
|
259
|
+
] }),
|
|
260
|
+
footer: /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(ChallengeCard, {
|
|
261
|
+
questions: FACTORS_CHALLENGE,
|
|
262
|
+
state: challenge,
|
|
263
|
+
title: "Explain the curve"
|
|
264
|
+
}), /* @__PURE__ */ jsx(LiveRegion, { children: `Light ${l}, CO₂ ${c}, temperature ${t}. Rate ${(rate * 100).toFixed(0)}. Limiting factor: ${limiting}.` })] }),
|
|
265
|
+
children: figure
|
|
266
|
+
});
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
//#endregion
|
|
270
|
+
export { PhotosynthesisFactorsLab };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { PunnettCrossLab, PunnettCrossProps } from "./preset.mjs";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/biology/punnett-cross/preset.d.ts
|
|
4
|
+
interface PunnettCrossProps {
|
|
5
|
+
parent1?: string;
|
|
6
|
+
parent2?: string;
|
|
7
|
+
dominantLabel?: string;
|
|
8
|
+
recessiveLabel?: string;
|
|
9
|
+
alleleLetter?: string;
|
|
10
|
+
predictFirst?: boolean;
|
|
11
|
+
title?: string;
|
|
12
|
+
prompt?: string;
|
|
13
|
+
objectives?: string[];
|
|
14
|
+
}
|
|
15
|
+
declare function PunnettCrossLab({
|
|
16
|
+
parent1,
|
|
17
|
+
parent2,
|
|
18
|
+
dominantLabel,
|
|
19
|
+
recessiveLabel,
|
|
20
|
+
alleleLetter,
|
|
21
|
+
predictFirst,
|
|
22
|
+
title,
|
|
23
|
+
prompt,
|
|
24
|
+
objectives
|
|
25
|
+
}: PunnettCrossProps): ReactNode;
|
|
26
|
+
//#endregion
|
|
27
|
+
export { PunnettCrossLab, PunnettCrossProps };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { monohybridSpec } from "../genetic-cross/core.mjs";
|
|
4
|
+
import { GeneticCrossLab } from "../genetic-cross/preset.mjs";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
|
|
7
|
+
//#region src/biology/punnett-cross/preset.tsx
|
|
8
|
+
function PunnettCrossLab({ parent1 = "Aa", parent2 = "Aa", dominantLabel = "tall", recessiveLabel = "short", alleleLetter = "A", predictFirst = true, title = "The 3:1 you can count", prompt = "Cross two parents: alleles segregate into gametes, recombine, and the ratio falls out.", objectives }) {
|
|
9
|
+
return /* @__PURE__ */ jsx(GeneticCrossLab, {
|
|
10
|
+
spec: monohybridSpec(alleleLetter, dominantLabel, recessiveLabel),
|
|
11
|
+
parent1: parent1.split(""),
|
|
12
|
+
parent2: parent2.split(""),
|
|
13
|
+
predictFirst,
|
|
14
|
+
title,
|
|
15
|
+
prompt,
|
|
16
|
+
objectives
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
//#endregion
|
|
21
|
+
export { PunnettCrossLab };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { RespirationLab, RespirationProps } from "./preset.mjs";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/biology/respiration/preset.d.ts
|
|
4
|
+
interface RespirationProps {
|
|
5
|
+
mode?: 'day' | 'night';
|
|
6
|
+
title?: string;
|
|
7
|
+
prompt?: string;
|
|
8
|
+
objectives?: string[];
|
|
9
|
+
}
|
|
10
|
+
declare function RespirationLab({
|
|
11
|
+
mode,
|
|
12
|
+
title,
|
|
13
|
+
prompt,
|
|
14
|
+
objectives
|
|
15
|
+
}: RespirationProps): ReactNode;
|
|
16
|
+
//#endregion
|
|
17
|
+
export { RespirationLab, RespirationProps };
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { Chip } from "../../kit/controls.mjs";
|
|
4
|
+
import { ControlBar, LabFrame, LiveRegion } from "../../kit/frame.mjs";
|
|
5
|
+
import { ChallengeCard, useChallenge, useCheckpoint } from "../../kit/pedagogy.mjs";
|
|
6
|
+
import { ReactionFlow } from "../../kit/reaction.mjs";
|
|
7
|
+
import { useState } from "react";
|
|
8
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
|
|
10
|
+
//#region src/biology/respiration/preset.tsx
|
|
11
|
+
/**
|
|
12
|
+
* RespirationLab — photosynthesis ⇌ respiration: one runs the other backwards.
|
|
13
|
+
*
|
|
14
|
+
* Two reaction flows, stacked, drawn with the SHARED MoleculeGlyph + ReactionFlow
|
|
15
|
+
* engine: photosynthesis (6CO₂ + 6H₂O + light → glucose + 6O₂) and respiration
|
|
16
|
+
* (glucose + 6O₂ → 6CO₂ + 6H₂O + ATP). The products of one are literally the
|
|
17
|
+
* reactants of the other — the closed loop is impossible to forget. A day/night
|
|
18
|
+
* toggle shows the NET gas exchange: by day photosynthesis outpaces respiration
|
|
19
|
+
* (net O₂ out); at night only respiration runs (net CO₂ out).
|
|
20
|
+
*
|
|
21
|
+
* Reuses kit/reaction (single source of truth shared with chemistry). Tokenized.
|
|
22
|
+
*/
|
|
23
|
+
const PHOTO = {
|
|
24
|
+
reactants: [
|
|
25
|
+
{
|
|
26
|
+
kind: "co2",
|
|
27
|
+
coef: 6
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
kind: "h2o",
|
|
31
|
+
coef: 6
|
|
32
|
+
},
|
|
33
|
+
{ kind: "light" }
|
|
34
|
+
],
|
|
35
|
+
products: [{ kind: "glucose" }, {
|
|
36
|
+
kind: "o2",
|
|
37
|
+
coef: 6
|
|
38
|
+
}]
|
|
39
|
+
};
|
|
40
|
+
const RESP = {
|
|
41
|
+
reactants: [{ kind: "glucose" }, {
|
|
42
|
+
kind: "o2",
|
|
43
|
+
coef: 6
|
|
44
|
+
}],
|
|
45
|
+
products: [
|
|
46
|
+
{
|
|
47
|
+
kind: "co2",
|
|
48
|
+
coef: 6
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
kind: "h2o",
|
|
52
|
+
coef: 6
|
|
53
|
+
},
|
|
54
|
+
{ kind: "atp" }
|
|
55
|
+
]
|
|
56
|
+
};
|
|
57
|
+
const RESP_CHALLENGE = [{
|
|
58
|
+
id: "night",
|
|
59
|
+
prompt: "At NIGHT, only respiration runs. Which gas does the plant net RELEASE?",
|
|
60
|
+
choices: [{
|
|
61
|
+
value: "co2",
|
|
62
|
+
label: "CO₂"
|
|
63
|
+
}, {
|
|
64
|
+
value: "o2",
|
|
65
|
+
label: "O₂"
|
|
66
|
+
}],
|
|
67
|
+
answer: "co2",
|
|
68
|
+
explain: "No photosynthesis in the dark, so respiration’s CO₂ output is not reabsorbed."
|
|
69
|
+
}, {
|
|
70
|
+
id: "day",
|
|
71
|
+
prompt: "By DAY, photosynthesis outpaces respiration. The net gas LEAVING the leaf is…",
|
|
72
|
+
choices: [{
|
|
73
|
+
value: "o2",
|
|
74
|
+
label: "O₂"
|
|
75
|
+
}, {
|
|
76
|
+
value: "co2",
|
|
77
|
+
label: "CO₂"
|
|
78
|
+
}],
|
|
79
|
+
answer: "o2",
|
|
80
|
+
explain: "Photosynthesis fixes more CO₂ than respiration makes, and releases more O₂ than it uses."
|
|
81
|
+
}];
|
|
82
|
+
function RespirationLab({ mode = "day", title = "Photosynthesis ⇌ Respiration — one runs the other backwards", prompt = "The products of one are the reactants of the other. Flip day/night to see the net gas exchange.", objectives }) {
|
|
83
|
+
const [when, setWhen] = useState(mode);
|
|
84
|
+
const day = when === "day";
|
|
85
|
+
const challenge = useChallenge(RESP_CHALLENGE);
|
|
86
|
+
useCheckpoint({
|
|
87
|
+
solved: challenge.allCorrect,
|
|
88
|
+
activity: "respiration"
|
|
89
|
+
});
|
|
90
|
+
const photoActive = day;
|
|
91
|
+
const net = day ? "Net exchange: O₂ OUT, CO₂ IN (photosynthesis outpaces respiration)" : "Net exchange: CO₂ OUT, O₂ IN (only respiration runs in the dark)";
|
|
92
|
+
const flowCard = (label, organelle, flow, active, accent) => /* @__PURE__ */ jsxs("div", {
|
|
93
|
+
style: {
|
|
94
|
+
borderRadius: 12,
|
|
95
|
+
border: `1px solid ${active ? accent : "var(--stage-grid)"}`,
|
|
96
|
+
background: active ? `color-mix(in oklab, ${accent} 8%, var(--stage-bg))` : "var(--stage-bg)",
|
|
97
|
+
opacity: active ? 1 : .5,
|
|
98
|
+
padding: "8px 10px",
|
|
99
|
+
transition: "opacity 0.2s"
|
|
100
|
+
},
|
|
101
|
+
children: [/* @__PURE__ */ jsxs("p", {
|
|
102
|
+
style: {
|
|
103
|
+
margin: "0 0 2px",
|
|
104
|
+
fontSize: 12,
|
|
105
|
+
fontWeight: 700,
|
|
106
|
+
color: accent
|
|
107
|
+
},
|
|
108
|
+
children: [
|
|
109
|
+
label,
|
|
110
|
+
" ",
|
|
111
|
+
/* @__PURE__ */ jsxs("span", {
|
|
112
|
+
style: {
|
|
113
|
+
color: "var(--stage-muted)",
|
|
114
|
+
fontWeight: 400
|
|
115
|
+
},
|
|
116
|
+
children: ["· ", organelle]
|
|
117
|
+
})
|
|
118
|
+
]
|
|
119
|
+
}), /* @__PURE__ */ jsx(ReactionFlow, {
|
|
120
|
+
reactants: flow.reactants,
|
|
121
|
+
products: flow.products,
|
|
122
|
+
ariaLabel: label
|
|
123
|
+
})]
|
|
124
|
+
});
|
|
125
|
+
const figure = /* @__PURE__ */ jsxs("div", {
|
|
126
|
+
style: {
|
|
127
|
+
display: "flex",
|
|
128
|
+
flexDirection: "column",
|
|
129
|
+
gap: 10
|
|
130
|
+
},
|
|
131
|
+
children: [
|
|
132
|
+
flowCard("Photosynthesis", "chloroplast (day)", PHOTO, photoActive, "var(--stage-good)"),
|
|
133
|
+
/* @__PURE__ */ jsx("p", {
|
|
134
|
+
style: {
|
|
135
|
+
textAlign: "center",
|
|
136
|
+
margin: 0,
|
|
137
|
+
fontSize: 11,
|
|
138
|
+
color: "var(--stage-muted)",
|
|
139
|
+
fontWeight: 600
|
|
140
|
+
},
|
|
141
|
+
children: "↑ products feed ↓ reactants — the same six molecules loop ↑"
|
|
142
|
+
}),
|
|
143
|
+
flowCard("Respiration", "mitochondrion (always)", RESP, true, "var(--stage-accent-2)")
|
|
144
|
+
]
|
|
145
|
+
});
|
|
146
|
+
return /* @__PURE__ */ jsx(LabFrame, {
|
|
147
|
+
title,
|
|
148
|
+
prompt,
|
|
149
|
+
objectives,
|
|
150
|
+
controls: /* @__PURE__ */ jsxs(ControlBar, { children: [
|
|
151
|
+
/* @__PURE__ */ jsx(Chip, {
|
|
152
|
+
selected: day,
|
|
153
|
+
onClick: () => setWhen("day"),
|
|
154
|
+
children: "☀ Day"
|
|
155
|
+
}),
|
|
156
|
+
/* @__PURE__ */ jsx(Chip, {
|
|
157
|
+
selected: !day,
|
|
158
|
+
onClick: () => setWhen("night"),
|
|
159
|
+
children: "🌙 Night"
|
|
160
|
+
}),
|
|
161
|
+
/* @__PURE__ */ jsx("span", {
|
|
162
|
+
style: {
|
|
163
|
+
fontWeight: 600,
|
|
164
|
+
color: day ? "var(--stage-good)" : "var(--stage-accent-2)"
|
|
165
|
+
},
|
|
166
|
+
children: net
|
|
167
|
+
})
|
|
168
|
+
] }),
|
|
169
|
+
footer: /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(ChallengeCard, {
|
|
170
|
+
questions: RESP_CHALLENGE,
|
|
171
|
+
state: challenge,
|
|
172
|
+
title: "Predict the net gas exchange"
|
|
173
|
+
}), /* @__PURE__ */ jsx(LiveRegion, { children: `${day ? "Day" : "Night"}. ${net}.` })] }),
|
|
174
|
+
children: figure
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
//#endregion
|
|
179
|
+
export { RespirationLab };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/biology/sequence/central-dogma.d.ts
|
|
4
|
+
interface CentralDogmaProps {
|
|
5
|
+
dna?: string[];
|
|
6
|
+
title?: string;
|
|
7
|
+
prompt?: string;
|
|
8
|
+
objectives?: string[];
|
|
9
|
+
}
|
|
10
|
+
declare function CentralDogmaLab({
|
|
11
|
+
dna,
|
|
12
|
+
title,
|
|
13
|
+
prompt,
|
|
14
|
+
objectives
|
|
15
|
+
}: CentralDogmaProps): ReactNode;
|
|
16
|
+
//#endregion
|
|
17
|
+
export { CentralDogmaLab, CentralDogmaProps };
|