@maniclang/workbench 0.1.11
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/CONTRIBUTING.md +40 -0
- package/README.md +155 -0
- package/dist/client/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
- package/dist/client/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
- package/dist/client/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
- package/dist/client/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
- package/dist/client/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
- package/dist/client/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
- package/dist/client/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
- package/dist/client/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
- package/dist/client/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
- package/dist/client/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
- package/dist/client/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
- package/dist/client/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
- package/dist/client/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
- package/dist/client/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
- package/dist/client/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
- package/dist/client/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
- package/dist/client/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
- package/dist/client/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
- package/dist/client/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
- package/dist/client/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
- package/dist/client/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
- package/dist/client/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
- package/dist/client/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
- package/dist/client/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
- package/dist/client/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
- package/dist/client/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
- package/dist/client/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
- package/dist/client/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
- package/dist/client/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
- package/dist/client/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
- package/dist/client/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
- package/dist/client/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
- package/dist/client/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
- package/dist/client/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
- package/dist/client/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
- package/dist/client/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
- package/dist/client/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
- package/dist/client/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
- package/dist/client/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
- package/dist/client/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
- package/dist/client/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
- package/dist/client/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
- package/dist/client/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
- package/dist/client/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
- package/dist/client/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
- package/dist/client/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
- package/dist/client/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
- package/dist/client/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
- package/dist/client/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
- package/dist/client/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
- package/dist/client/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
- package/dist/client/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
- package/dist/client/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
- package/dist/client/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
- package/dist/client/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
- package/dist/client/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
- package/dist/client/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
- package/dist/client/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
- package/dist/client/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
- package/dist/client/assets/abap-CRCWOmpq.js +1 -0
- package/dist/client/assets/apex-DnsZk_dE.js +1 -0
- package/dist/client/assets/azcli-1IWB1ccx.js +1 -0
- package/dist/client/assets/bat-DPkNLes8.js +1 -0
- package/dist/client/assets/bicep-Corcdgou.js +2 -0
- package/dist/client/assets/cameligo-CGrWLZr3.js +1 -0
- package/dist/client/assets/clojure-D9WOWImG.js +1 -0
- package/dist/client/assets/codicon-CgENjH2v.ttf +0 -0
- package/dist/client/assets/coffee-B7EJu28W.js +1 -0
- package/dist/client/assets/cpp-SEyurbux.js +1 -0
- package/dist/client/assets/csharp-BoL64M5l.js +1 -0
- package/dist/client/assets/csp-C46ZqvIl.js +1 -0
- package/dist/client/assets/css-DQU6DXDx.js +3 -0
- package/dist/client/assets/cssMode-CtRONlr8.js +4 -0
- package/dist/client/assets/cypher-D84EuPTj.js +1 -0
- package/dist/client/assets/dart-D8lhlL1r.js +1 -0
- package/dist/client/assets/dockerfile-DLk6rpji.js +1 -0
- package/dist/client/assets/ecl-BO6FnfXk.js +1 -0
- package/dist/client/assets/editor.worker-CZyr7Ur9.js +26 -0
- package/dist/client/assets/elixir-BRjLKONM.js +1 -0
- package/dist/client/assets/flow9-Cac8vKd7.js +1 -0
- package/dist/client/assets/freemarker2-BTSNJUl8.js +3 -0
- package/dist/client/assets/fsharp-fd1GTHhf.js +1 -0
- package/dist/client/assets/go-O9LJTZXk.js +1 -0
- package/dist/client/assets/graphql-LQdxqEYJ.js +1 -0
- package/dist/client/assets/handlebars-qkUBjVg6.js +1 -0
- package/dist/client/assets/hcl-DxDQ3s82.js +1 -0
- package/dist/client/assets/html-pguqE00h.js +1 -0
- package/dist/client/assets/htmlMode-BCCLuk2F.js +4 -0
- package/dist/client/assets/index-BFrMLHHu.css +1 -0
- package/dist/client/assets/index-CdBC-xgi.js +1250 -0
- package/dist/client/assets/ini-BvajGCUy.js +1 -0
- package/dist/client/assets/java-SYsfObOQ.js +1 -0
- package/dist/client/assets/javascript-ciDUXdez.js +1 -0
- package/dist/client/assets/jsonMode-BmkXC0tI.js +10 -0
- package/dist/client/assets/julia-DQXNmw_w.js +1 -0
- package/dist/client/assets/kotlin-qQ0MG-9I.js +1 -0
- package/dist/client/assets/less-GGFNNJHn.js +2 -0
- package/dist/client/assets/lexon-Canl7DCW.js +1 -0
- package/dist/client/assets/liquid-CwE4UIwf.js +1 -0
- package/dist/client/assets/lua-D28Ae8-K.js +1 -0
- package/dist/client/assets/m3-DPitgjJI.js +1 -0
- package/dist/client/assets/markdown-B811l8j2.js +1 -0
- package/dist/client/assets/mdx-K_9Emnjy.js +1 -0
- package/dist/client/assets/mips-CdjsipkG.js +1 -0
- package/dist/client/assets/msdax-CYqgjx_P.js +1 -0
- package/dist/client/assets/mysql-BHd6q0vd.js +1 -0
- package/dist/client/assets/objective-c-B1aVtJYH.js +1 -0
- package/dist/client/assets/pascal-BhNW15KB.js +1 -0
- package/dist/client/assets/pascaligo-5jv8CcQD.js +1 -0
- package/dist/client/assets/perl-DlYyT36c.js +1 -0
- package/dist/client/assets/pgsql-Dy0bjov7.js +1 -0
- package/dist/client/assets/php-120yhfDK.js +1 -0
- package/dist/client/assets/pla-CjnFlu4u.js +1 -0
- package/dist/client/assets/postiats-CQpG440k.js +1 -0
- package/dist/client/assets/powerquery-DdJtto1Z.js +1 -0
- package/dist/client/assets/powershell-Bu_VLpJB.js +1 -0
- package/dist/client/assets/protobuf-IBS6jZEB.js +2 -0
- package/dist/client/assets/pug-kFxLfcjb.js +1 -0
- package/dist/client/assets/python-BzIc0EVe.js +1 -0
- package/dist/client/assets/qsharp-q7JyzKFN.js +1 -0
- package/dist/client/assets/r-BIFz-_sK.js +1 -0
- package/dist/client/assets/razor-lXZl6dtu.js +1 -0
- package/dist/client/assets/redis-CHOsPHWR.js +1 -0
- package/dist/client/assets/redshift-CBifECDb.js +1 -0
- package/dist/client/assets/restructuredtext-CghPJEOS.js +1 -0
- package/dist/client/assets/ruby-CYWGW-b1.js +1 -0
- package/dist/client/assets/rust-DMDD0SHb.js +1 -0
- package/dist/client/assets/sb-BYAiYHFx.js +1 -0
- package/dist/client/assets/scala-Bqvq8jcR.js +1 -0
- package/dist/client/assets/scheme-Dhb-2j9p.js +1 -0
- package/dist/client/assets/scss-CTwUZ5N7.js +3 -0
- package/dist/client/assets/shell-CsDZo4DB.js +1 -0
- package/dist/client/assets/solidity-CME5AdoB.js +1 -0
- package/dist/client/assets/sophia-RYC1BQQz.js +1 -0
- package/dist/client/assets/sparql-KEyrF7De.js +1 -0
- package/dist/client/assets/sql-BdTr02Mf.js +1 -0
- package/dist/client/assets/st-C7iG7M4S.js +1 -0
- package/dist/client/assets/swift-D7IUmUK8.js +1 -0
- package/dist/client/assets/systemverilog-DgMryOEJ.js +1 -0
- package/dist/client/assets/tcl-PloMZuKG.js +1 -0
- package/dist/client/assets/tsMode-BAXmgo_t.js +11 -0
- package/dist/client/assets/twig-BfRIq3la.js +1 -0
- package/dist/client/assets/typescript-Cdf8nS1n.js +1 -0
- package/dist/client/assets/typespec-CzxlYoT_.js +1 -0
- package/dist/client/assets/vb-BwAE3J76.js +1 -0
- package/dist/client/assets/wgsl-B_1kOXbF.js +298 -0
- package/dist/client/assets/xml-DGyPgYnj.js +1 -0
- package/dist/client/assets/yaml-Dqv3HtbL.js +1 -0
- package/dist/client/index.html +14 -0
- package/dist/client/manic-logo.png +0 -0
- package/dist/client/wasm/manic_lang.d.ts +74 -0
- package/dist/client/wasm/manic_lang.js +302 -0
- package/dist/client/wasm/manic_lang_bg.wasm +0 -0
- package/dist/client/wasm/manic_lang_bg.wasm.d.ts +13 -0
- package/dist/server/agentProtocol.d.ts +131 -0
- package/dist/server/agentProtocol.js +21 -0
- package/dist/server/agentProtocol.js.map +1 -0
- package/dist/server/agentRuns.d.ts +46 -0
- package/dist/server/agentRuns.js +138 -0
- package/dist/server/agentRuns.js.map +1 -0
- package/dist/server/agentThreads.d.ts +20 -0
- package/dist/server/agentThreads.js +205 -0
- package/dist/server/agentThreads.js.map +1 -0
- package/dist/server/aiSecrets.d.ts +21 -0
- package/dist/server/aiSecrets.js +68 -0
- package/dist/server/aiSecrets.js.map +1 -0
- package/dist/server/app.d.ts +34 -0
- package/dist/server/app.js +804 -0
- package/dist/server/app.js.map +1 -0
- package/dist/server/assets.d.ts +34 -0
- package/dist/server/assets.js +659 -0
- package/dist/server/assets.js.map +1 -0
- package/dist/server/candidateFix.d.ts +28 -0
- package/dist/server/candidateFix.js +111 -0
- package/dist/server/candidateFix.js.map +1 -0
- package/dist/server/cli.d.ts +2 -0
- package/dist/server/cli.js +118 -0
- package/dist/server/cli.js.map +1 -0
- package/dist/server/diagnostics.d.ts +13 -0
- package/dist/server/diagnostics.js +73 -0
- package/dist/server/diagnostics.js.map +1 -0
- package/dist/server/engineCheck.d.ts +7 -0
- package/dist/server/engineCheck.js +60 -0
- package/dist/server/engineCheck.js.map +1 -0
- package/dist/server/engineInstall.d.ts +34 -0
- package/dist/server/engineInstall.js +228 -0
- package/dist/server/engineInstall.js.map +1 -0
- package/dist/server/enginePaths.d.ts +3 -0
- package/dist/server/enginePaths.js +76 -0
- package/dist/server/enginePaths.js.map +1 -0
- package/dist/server/folderPicker.d.ts +1 -0
- package/dist/server/folderPicker.js +54 -0
- package/dist/server/folderPicker.js.map +1 -0
- package/dist/server/manicAgent.d.ts +75 -0
- package/dist/server/manicAgent.js +476 -0
- package/dist/server/manicAgent.js.map +1 -0
- package/dist/server/manicEnv.d.ts +18 -0
- package/dist/server/manicEnv.js +64 -0
- package/dist/server/manicEnv.js.map +1 -0
- package/dist/server/promptStore.d.ts +11 -0
- package/dist/server/promptStore.js +85 -0
- package/dist/server/promptStore.js.map +1 -0
- package/dist/server/renderJobs.d.ts +54 -0
- package/dist/server/renderJobs.js +290 -0
- package/dist/server/renderJobs.js.map +1 -0
- package/dist/server/settings.d.ts +40 -0
- package/dist/server/settings.js +262 -0
- package/dist/server/settings.js.map +1 -0
- package/dist/server/smartDraw.d.ts +7 -0
- package/dist/server/smartDraw.js +88 -0
- package/dist/server/smartDraw.js.map +1 -0
- package/dist/server/workspace.d.ts +27 -0
- package/dist/server/workspace.js +172 -0
- package/dist/server/workspace.js.map +1 -0
- package/examples/.manic-output/40b6f3b9-7638-4c0e-bb4f-570d45d1b225/job.json +26 -0
- package/examples/.manic-output/993f3788-f75e-445c-ba45-c401907b3c02/job.json +26 -0
- package/examples/.manic-output/993f3788-f75e-445c-ba45-c401907b3c02/markers.json +13 -0
- package/examples/.manic-output/993f3788-f75e-445c-ba45-c401907b3c02/out.mp4 +0 -0
- package/examples/.manic-workbench-threads/thread_3ce7448a13f64f9e887d1bc8106a97a8.json +45 -0
- package/examples/.manic-workbench-threads/thread_d494cda29249477591056234719e4a3a.json +21 -0
- package/examples/.manic-workbench-threads/thread_e98ebdc225184ea5b8ddda8b44541f63.json +29 -0
- package/examples/README.md +35 -0
- package/examples/a-story-1.manic +222 -0
- package/examples/a-story.manic +100 -0
- package/examples/achromat-cinematic.manic +105 -0
- package/examples/achromat.manic +32 -0
- package/examples/aes-decrypt.manic +359 -0
- package/examples/aes-encrypt.manic +359 -0
- package/examples/aes-round.manic +70 -0
- package/examples/aes-story.manic +622 -0
- package/examples/ai-story.manic +118 -0
- package/examples/analysis.manic +53 -0
- package/examples/archimedes_pi.manic +89 -0
- package/examples/area_under_curve.manic +131 -0
- package/examples/art-rakkan.manic +69 -0
- package/examples/aspheric-lens.manic +32 -0
- package/examples/astronomical-watch.manic +96 -0
- package/examples/asymptote-randomwalk3-reference.manic +58 -0
- package/examples/asymptote-tiling-reference.manic +65 -0
- package/examples/aws-clustered-web-services.manic +186 -0
- package/examples/aws-event-processing-clusters-poc.manic +97 -0
- package/examples/aws-three-tier-web-application.manic +134 -0
- package/examples/band.manic +43 -0
- package/examples/banner.manic +37 -0
- package/examples/bayes.manic +27 -0
- package/examples/bellcurve.manic +41 -0
- package/examples/bfs_dfs.manic +35 -0
- package/examples/block-tackle.manic +26 -0
- package/examples/bloom-scope.manic +172 -0
- package/examples/boolean.manic +46 -0
- package/examples/boxplot-wave.manic +93 -0
- package/examples/boxplot.manic +43 -0
- package/examples/brace.manic +46 -0
- package/examples/brachistochrone-annotated.manic +51 -0
- package/examples/brachistochrone.manic +27 -0
- package/examples/bubble_sort.manic +41 -0
- package/examples/bullet-block-annotated.manic +48 -0
- package/examples/bullet-block.manic +11 -0
- package/examples/bullet-impact.manic +65 -0
- package/examples/bungee.manic +9 -0
- package/examples/c4-internet-banking-components.manic +33 -0
- package/examples/c4-internet-banking-containers.manic +29 -0
- package/examples/c4-internet-banking.manic +26 -0
- package/examples/c4-story.manic +171 -0
- package/examples/c4-test.manic +52 -0
- package/examples/c4-zoom.manic +69 -0
- package/examples/calculus-demo.manic +129 -0
- package/examples/calculus-one.manic +288 -0
- package/examples/captions.manic +31 -0
- package/examples/car-suspension-annotated.manic +57 -0
- package/examples/car-suspension.manic +8 -0
- package/examples/cart-pendulum.manic +11 -0
- package/examples/charts-bar-line.manic +26 -0
- package/examples/charts-column-race.manic +19 -0
- package/examples/charts-gdp-race.manic +43 -0
- package/examples/charts-german-elections.manic +28 -0
- package/examples/charts-line-race.manic +21 -0
- package/examples/circle-in-three.manic +156 -0
- package/examples/circle-thirds-no-triangle.manic +161 -0
- package/examples/clip-window.manic +34 -0
- package/examples/cloud-feathers.manic +50 -0
- package/examples/cloud-jellyfish-v2.manic +87 -0
- package/examples/cloud-jellyfish.manic +48 -0
- package/examples/cloud-kaleidoscope.manic +48 -0
- package/examples/cloud-koi.manic +51 -0
- package/examples/cloud-lissajous.manic +23 -0
- package/examples/cloud-medusae.manic +46 -0
- package/examples/cloud-phoenix.manic +49 -0
- package/examples/cloud-plumes.manic +47 -0
- package/examples/cloud-pottery.manic +104 -0
- package/examples/cloud-shells.manic +50 -0
- package/examples/cloud-starfield.manic +23 -0
- package/examples/cloud-wave-lattice.manic +23 -0
- package/examples/cloud-word.manic +31 -0
- package/examples/cloud3-ripple.manic +53 -0
- package/examples/cloud3-sphere.manic +26 -0
- package/examples/clt.manic +35 -0
- package/examples/collide-blocks-annotated.manic +45 -0
- package/examples/collide-blocks.manic +11 -0
- package/examples/compare-pendulum.manic +11 -0
- package/examples/complex-flowchart.manic +196 -0
- package/examples/compound-pulley.manic +25 -0
- package/examples/conics.manic +46 -0
- package/examples/coordinates.manic +52 -0
- package/examples/correlation.manic +35 -0
- package/examples/covariance.manic +30 -0
- package/examples/creator-affine-fern-growth.manic +72 -0
- package/examples/creator-bowl-to-saddle.manic +86 -0
- package/examples/creator-branch-counting-tree3.manic +77 -0
- package/examples/creator-chaos-game-fern.manic +72 -0
- package/examples/creator-circle-inversion-chain.manic +61 -0
- package/examples/creator-convex-hull-depth.manic +59 -0
- package/examples/creator-coordinate-worlds.manic +182 -0
- package/examples/creator-ellipse-reflection-property.manic +59 -0
- package/examples/creator-free-kicks.manic +261 -0
- package/examples/creator-geometry-language-showcase.manic +259 -0
- package/examples/creator-geometry-morph-promo.manic +151 -0
- package/examples/creator-heightmap-world.manic +130 -0
- package/examples/creator-hilbert3-spatial-index.manic +203 -0
- package/examples/creator-how-rocket-launch-works.manic +192 -0
- package/examples/creator-implicit-surface-parameterized.manic +51 -0
- package/examples/creator-incenter-dissection.manic +56 -0
- package/examples/creator-lattice-paths.manic +118 -0
- package/examples/creator-line-inversion.manic +49 -0
- package/examples/creator-lsystem-fractal-curve.manic +121 -0
- package/examples/creator-mandelbrot-escape-test.manic +58 -0
- package/examples/creator-monty-hall.manic +104 -0
- package/examples/creator-noise-story.manic +123 -0
- package/examples/creator-one-tile-pattern-story.manic +169 -0
- package/examples/creator-pathfinding.manic +82 -0
- package/examples/creator-point-to-plane-distance.manic +167 -0
- package/examples/creator-race-quiz.manic +76 -0
- package/examples/creator-randomwalk3-diffusion.manic +72 -0
- package/examples/creator-reflected-ellipse.manic +48 -0
- package/examples/creator-rule90-sierpinski.manic +64 -0
- package/examples/creator-three-shadows-of-a-curve.manic +48 -0
- package/examples/creator-trigonometry-one-angle.manic +307 -0
- package/examples/creator-v2-latex-algebra.manic +29 -0
- package/examples/creator-v2-latex-calculus.manic +37 -0
- package/examples/creator-v2-latex-physics.manic +29 -0
- package/examples/creator-v2-olympiad-geometry.manic +92 -0
- package/examples/creator-v2-options-socials.manic +21 -0
- package/examples/creator-v2-timers.manic +25 -0
- package/examples/creator-v2-timing-square.manic +25 -0
- package/examples/creator-v2-timing.manic +34 -0
- package/examples/creator-v2.manic +36 -0
- package/examples/creator-why-rockets-use-stages.manic +198 -0
- package/examples/creator-wrap-real-line.manic +51 -0
- package/examples/cubic-graphs.manic +432 -0
- package/examples/curve-features.manic +41 -0
- package/examples/definedmotion-fourier-gallery.manic +171 -0
- package/examples/derivative-of-ln-x.manic +194 -0
- package/examples/diagonalise.manic +56 -0
- package/examples/dijkstra.manic +29 -0
- package/examples/dimensions-unfold.manic +211 -0
- package/examples/disc-integration.manic +172 -0
- package/examples/double-incline.manic +9 -0
- package/examples/double-integral3.manic +43 -0
- package/examples/double-pendulum.manic +35 -0
- package/examples/double-spring.manic +9 -0
- package/examples/drop-mass.manic +25 -0
- package/examples/eigen3.manic +34 -0
- package/examples/equal_cuts.manic +44 -0
- package/examples/equation.manic +16 -0
- package/examples/equilateral.manic +57 -0
- package/examples/euler_line.manic +51 -0
- package/examples/exponential-shells.manic +188 -0
- package/examples/extrude3.manic +37 -0
- package/examples/factorial-flowchart.manic +69 -0
- package/examples/fibonacci-sphere.manic +57 -0
- package/examples/flow-lorenz.manic +47 -0
- package/examples/fourier-series-live-wave.manic +114 -0
- package/examples/fourier-square-wave-live.manic +114 -0
- package/examples/fractal_tree.manic +39 -0
- package/examples/frame3-grid-policies.manic +48 -0
- package/examples/ftc.manic +54 -0
- package/examples/function_graph.manic +54 -0
- package/examples/galton-board-process.manic +150 -0
- package/examples/gcp-clustered-web-services.manic +186 -0
- package/examples/gcp-message-collecting.manic +139 -0
- package/examples/geo-pythagoras-short.manic +119 -0
- package/examples/glsl-boxgrid.manic +105 -0
- package/examples/glsl-parameter.manic +30 -0
- package/examples/glsl-raymarch.manic +59 -0
- package/examples/glsl-shapes.manic +122 -0
- package/examples/gradient-descent-field.manic +116 -0
- package/examples/gradient-fastest-descent-shorts.manic +153 -0
- package/examples/gradient-fastest-descent.manic +125 -0
- package/examples/gradient-pendulum-shorts.manic +117 -0
- package/examples/gradient.manic +74 -0
- package/examples/graph.manic +45 -0
- package/examples/graph_moving.manic +67 -0
- package/examples/grid-astar.manic +15 -0
- package/examples/grid-life-soup.manic +31 -0
- package/examples/grid-life-zoo.manic +46 -0
- package/examples/grid-life.manic +19 -0
- package/examples/grid-wfc.manic +13 -0
- package/examples/growing-fractal-tree3.manic +58 -0
- package/examples/gun-shot.manic +82 -0
- package/examples/hashmap.manic +38 -0
- package/examples/heightmap3-world.manic +64 -0
- package/examples/heightmap3.manic +23 -0
- package/examples/hilbert-curve3-space-filling.manic +117 -0
- package/examples/hill_run.manic +71 -0
- package/examples/histogram.manic +43 -0
- package/examples/hotdog-taco.manic +147 -0
- package/examples/hue_wave.manic +35 -0
- package/examples/hypothesis.manic +32 -0
- package/examples/image.manic +29 -0
- package/examples/incircle_tangents.manic +64 -0
- package/examples/incline-bumper.manic +11 -0
- package/examples/incline-pulley.manic +11 -0
- package/examples/incline-showcase.manic +55 -0
- package/examples/inline-math.manic +16 -0
- package/examples/inscribed-angle-short.manic +56 -0
- package/examples/integral-sqrt-tanx.manic +255 -0
- package/examples/integrals.manic +274 -0
- package/examples/inverse-derivatives.manic +94 -0
- package/examples/k8s-cluster-components.manic +82 -0
- package/examples/k8s-stateful-architecture.manic +134 -0
- package/examples/k8s-three-tier.manic +146 -0
- package/examples/kapitza.manic +11 -0
- package/examples/latex-disintegration.manic +123 -0
- package/examples/lens-paper.manic +36 -0
- package/examples/lens-prescription.manic +33 -0
- package/examples/lens-system.manic +34 -0
- package/examples/lens.manic +31 -0
- package/examples/limit-infinity.manic +30 -0
- package/examples/limit.manic +33 -0
- package/examples/linear-algebra-3d.manic +50 -0
- package/examples/linear-algebra.manic +115 -0
- package/examples/linear-map.manic +39 -0
- package/examples/linear-map3.manic +33 -0
- package/examples/linear-system.manic +99 -0
- package/examples/linear_transform.manic +43 -0
- package/examples/linked_list.manic +38 -0
- package/examples/lln.manic +31 -0
- package/examples/loop-cinematic.manic +41 -0
- package/examples/loop-track.manic +11 -0
- package/examples/lorenz-attractor.manic +55 -0
- package/examples/lorenz-shells.manic +43 -0
- package/examples/lost-in-patterns.manic +149 -0
- package/examples/lsystem-asymptote-curves.manic +81 -0
- package/examples/manic-ml-activation-focus.manic +133 -0
- package/examples/manic-ml-cnn-edge-story.manic +102 -0
- package/examples/manic-ml-forward-pass.manic +93 -0
- package/examples/manic-ml-learning-step.manic +116 -0
- package/examples/manic-ml-logits-sampling.manic +112 -0
- package/examples/manic-ml-scalar-to-tensor.manic +143 -0
- package/examples/manic-ml-token-embedding.manic +110 -0
- package/examples/manic-ml-transformer-attention.manic +102 -0
- package/examples/manic-ml-transformer-block.manic +116 -0
- package/examples/manic-promo.manic +64 -0
- package/examples/map-attractor.manic +45 -0
- package/examples/mask-lens.manic +33 -0
- package/examples/matrix.manic +37 -0
- package/examples/matrix3.manic +101 -0
- package/examples/matrix_addition.manic +66 -0
- package/examples/matrix_addition_plane.manic +91 -0
- package/examples/maxwell-boltzmann-effusion-v2.manic +142 -0
- package/examples/maxwell-boltzmann-process.manic +86 -0
- package/examples/microservices-platform.manic +140 -0
- package/examples/molecule.manic +8 -0
- package/examples/morph-icons.manic +29 -0
- package/examples/morph.manic +29 -0
- package/examples/morph3.manic +49 -0
- package/examples/motion-flow-foundation.manic +148 -0
- package/examples/motion-graphics-v2-story.manic +189 -0
- package/examples/motion-graphics-v2.manic +81 -0
- package/examples/motion-graphics.manic +81 -0
- package/examples/multivariable3.manic +26 -0
- package/examples/mystory.manic +9 -0
- package/examples/newton.manic +39 -0
- package/examples/newtons-cradle.manic +10 -0
- package/examples/nine_point.manic +59 -0
- package/examples/noise-terrain.manic +16 -0
- package/examples/off-axis.manic +32 -0
- package/examples/onprem-advanced-web-service-v2.manic +196 -0
- package/examples/onprem-advanced-web-service.manic +175 -0
- package/examples/orthocenter.manic +63 -0
- package/examples/param3.manic +43 -0
- package/examples/parameter-journeys.manic +154 -0
- package/examples/parameterized-field-advection.manic +57 -0
- package/examples/parameterized-generated-families3.manic +83 -0
- package/examples/particles-flow.manic +61 -0
- package/examples/pascal-triangle.manic +92 -0
- package/examples/pendulum-annotated.manic +72 -0
- package/examples/pendulum-damped.manic +35 -0
- package/examples/pendulum.manic +38 -0
- package/examples/perfect-reel.manic +43 -0
- package/examples/pie.manic +41 -0
- package/examples/pieday.manic +113 -0
- package/examples/piston.manic +7 -0
- package/examples/popkorn-field.manic +38 -0
- package/examples/prism-cinematic.manic +36 -0
- package/examples/prism.manic +32 -0
- package/examples/probability.manic +57 -0
- package/examples/process-branching-dispatch.manic +71 -0
- package/examples/process-stream-observe.manic +54 -0
- package/examples/projection.manic +57 -0
- package/examples/prompt-test-10.manic +257 -0
- package/examples/prompt-test-11.manic +168 -0
- package/examples/prompt-test-12.manic +177 -0
- package/examples/prompt-test-13.manic +228 -0
- package/examples/prompt-test-14.manic +319 -0
- package/examples/prompt-test-15.manic +325 -0
- package/examples/prompt-test-16.manic +252 -0
- package/examples/prompt-test-2.manic +239 -0
- package/examples/prompt-test-3.manic +336 -0
- package/examples/prompt-test-4.manic +195 -0
- package/examples/prompt-test-5.manic +223 -0
- package/examples/prompt-test-6.manic +222 -0
- package/examples/prompt-test-7.manic +156 -0
- package/examples/prompt-test-8.manic +266 -0
- package/examples/prompt-test-9.manic +171 -0
- package/examples/prompt-test.manic +158 -0
- package/examples/pulley-annotated.manic +54 -0
- package/examples/pulley-paper.manic +52 -0
- package/examples/pulley-scale.manic +23 -0
- package/examples/pulley.manic +24 -0
- package/examples/quadratic-formula-continuity.manic +110 -0
- package/examples/quiz-euler.manic +52 -0
- package/examples/quiz-geometry-2.manic +107 -0
- package/examples/quiz-geometry.manic +108 -0
- package/examples/quiz-skins.manic +22 -0
- package/examples/raft-cm.manic +24 -0
- package/examples/ramp.manic +25 -0
- package/examples/ray-fan.manic +27 -0
- package/examples/raymarch-alpha.manic +39 -0
- package/examples/raymarch-boxgrid.manic +47 -0
- package/examples/raymarch-docker-latency.manic +74 -0
- package/examples/raymarch-metaballs.manic +37 -0
- package/examples/raymarch-sculpture.manic +39 -0
- package/examples/raymarch-shapes3.manic +31 -0
- package/examples/reactive-integral.manic +172 -0
- package/examples/reactive-math-journey.manic +185 -0
- package/examples/reactive-math-notation.manic +150 -0
- package/examples/reactive-multiformat.manic +130 -0
- package/examples/reactive-world.manic +111 -0
- package/examples/refraction-paper.manic +40 -0
- package/examples/refraction.manic +32 -0
- package/examples/resonance.manic +10 -0
- package/examples/rewrite-exponential-cubic.manic +141 -0
- package/examples/rewrite-integration.manic +199 -0
- package/examples/riemann_rainbow.manic +61 -0
- package/examples/riemann_readout.manic +61 -0
- package/examples/robot-arm.manic +25 -0
- package/examples/rref.manic +48 -0
- package/examples/second-law-thermodynamics.manic +385 -0
- package/examples/series-parallel-springs.manic +8 -0
- package/examples/serverless-processing.manic +145 -0
- package/examples/shader-cellular.manic +35 -0
- package/examples/shader-fractal.manic +45 -0
- package/examples/shader-fx.manic +34 -0
- package/examples/shader-glitch-grid.manic +55 -0
- package/examples/shader-parameter.manic +25 -0
- package/examples/shader-patterns.manic +37 -0
- package/examples/shader-plasma.manic +43 -0
- package/examples/shader-shapes-dsl.manic +46 -0
- package/examples/shader-shapes.manic +37 -0
- package/examples/shader-warp.manic +22 -0
- package/examples/shapes-howto.manic +411 -0
- package/examples/sine_wave.manic +42 -0
- package/examples/skew.manic +40 -0
- package/examples/smoke.rs +57 -0
- package/examples/solids3.manic +22 -0
- package/examples/some-story.manic +299 -0
- package/examples/spinning-cylinder-flow.manic +87 -0
- package/examples/spline.manic +21 -0
- package/examples/spot-diagram.manic +32 -0
- package/examples/spring-annotated.manic +60 -0
- package/examples/spring-chain.manic +11 -0
- package/examples/spring-damped.manic +33 -0
- package/examples/spring-incline.manic +10 -0
- package/examples/spring-paper.manic +46 -0
- package/examples/spring-pendulum.manic +14 -0
- package/examples/spring.manic +33 -0
- package/examples/sqrt-tanx.manic +217 -0
- package/examples/ssl-handshake-sdf.manic +116 -0
- package/examples/stack_queue.manic +53 -0
- package/examples/statistics.manic +60 -0
- package/examples/story-addressable-asset-cues.manic +71 -0
- package/examples/story-dependent-chain-history.manic +56 -0
- package/examples/story-living-dependency-cloud.manic +50 -0
- package/examples/story-time-varying-field3.manic +57 -0
- package/examples/story.manic +4 -0
- package/examples/string-art-breath.manic +70 -0
- package/examples/string-wave.manic +10 -0
- package/examples/summary.manic +48 -0
- package/examples/svg-howto.manic +172 -0
- package/examples/svg-import.manic +18 -0
- package/examples/systems-architecture-poc.manic +92 -0
- package/examples/systems-arrow-patterns.manic +151 -0
- package/examples/systems-foundation.manic +71 -0
- package/examples/systems-rabbitmq-consumers.manic +118 -0
- package/examples/table.manic +39 -0
- package/examples/table_braces.manic +54 -0
- package/examples/tangent-length-short.manic +57 -0
- package/examples/tangent.manic +29 -0
- package/examples/tangents.manic +54 -0
- package/examples/taylor.manic +44 -0
- package/examples/terminal_boot.manic +40 -0
- package/examples/test.manic +61 -0
- package/examples/text-guide.manic +304 -0
- package/examples/textbook-coordinate-worlds.manic +129 -0
- package/examples/textbook-doubly-list.manic +33 -0
- package/examples/textbook-function-to-solid.manic +126 -0
- package/examples/textbook-geometry-dimension-reduction.manic +129 -0
- package/examples/textbook-incline-fbd.manic +43 -0
- package/examples/textbook-length-area-volume.manic +137 -0
- package/examples/textbook-matrix-inverses.manic +172 -0
- package/examples/textbook-pulley.manic +35 -0
- package/examples/textbook-statistical-dimensions.manic +151 -0
- package/examples/textbook-tension.manic +39 -0
- package/examples/textbook-watermelon-sections.manic +216 -0
- package/examples/thales-semicircle-short.manic +53 -0
- package/examples/three-d-v2-lab.manic +83 -0
- package/examples/three-d-v2-story.manic +106 -0
- package/examples/three-d-v2.manic +69 -0
- package/examples/three_d.manic +39 -0
- package/examples/timing-v2-scene.manic +47 -0
- package/examples/trajectory.manic +28 -0
- package/examples/transform_copy.manic +35 -0
- package/examples/transforms.manic +54 -0
- package/examples/trapped-light-dimensions.manic +226 -0
- package/examples/tree-of-leaves.manic +215 -0
- package/examples/triangle.manic +68 -0
- package/examples/two_person_walk.manic +296 -0
- package/examples/two_pointer.manic +32 -0
- package/examples/type-to-sdf.manic +139 -0
- package/examples/typewriter.manic +28 -0
- package/examples/vector_field.manic +32 -0
- package/examples/vertical-spring.manic +10 -0
- package/examples/volume3.manic +21 -0
- package/examples/volumes-solid-of-revolution.manic +111 -0
- package/examples/walk.manic +154 -0
- package/examples/wheel-duo.manic +91 -0
- package/examples/wheel-radial.manic +78 -0
- package/examples/wheel-square.manic +83 -0
- package/examples/wireframe-spheres.manic +37 -0
- package/examples/zeroth-law-thermodynamics.manic +269 -0
- package/package.json +59 -0
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
// motion-graphics.manic — persistent objects, paths, particles, and a clean settle
|
|
2
|
+
|
|
3
|
+
title("Motion Graphics Essentials");
|
|
4
|
+
canvas("9:16");
|
|
5
|
+
template("mono");
|
|
6
|
+
watermark(manicMark, (150, 145), "Made With Manic");
|
|
7
|
+
|
|
8
|
+
let accent = 194;
|
|
9
|
+
let warm = 38;
|
|
10
|
+
|
|
11
|
+
text(kicker, (540, 170), "MOTION GRAPHICS");
|
|
12
|
+
size(kicker, 24); color(kicker, dim);
|
|
13
|
+
text(headline, (540, 245), "Keep the object. Change its state.");
|
|
14
|
+
size(headline, 42);
|
|
15
|
+
|
|
16
|
+
rect(chamber, (540, 535), 700, 300);
|
|
17
|
+
outline(chamber, dim); outlined(chamber); stroke(chamber, 3);
|
|
18
|
+
rect(startCell, (350, 535), 290, 270); hidden(startCell);
|
|
19
|
+
particles(dots, startCell, 36, 6, 23);
|
|
20
|
+
hue(dots, accent, 0.58, 0.72); glow(dots, 0.7);
|
|
21
|
+
text(note, (540, 835), "random layout · organic deterministic routes");
|
|
22
|
+
size(note, 25); color(note, dim);
|
|
23
|
+
|
|
24
|
+
plot(path, (245, 1120), 145, 175, "1-exp(-1.4*x)", (0, 3.8));
|
|
25
|
+
hue(path, warm, 0.60, 0.70); stroke(path, 5); untraced(path);
|
|
26
|
+
dot(marker, (245, 1120), 9); color(marker, fg); glow(marker, 1.0);
|
|
27
|
+
text(pathNote, (540, 1215), "travel moves the real marker — then it stays");
|
|
28
|
+
size(pathNote, 25); color(pathNote, dim);
|
|
29
|
+
|
|
30
|
+
line(connector, (245, 1120), (835, 850)); hidden(connector);
|
|
31
|
+
plot(pathMorph, (245, 1120), 145, 175, "1-exp(-1.4*x)", (0, 3.8));
|
|
32
|
+
hue(pathMorph, warm, 0.60, 0.70); stroke(pathMorph, 5);
|
|
33
|
+
morph(pathMorph, connector); hidden(pathMorph);
|
|
34
|
+
|
|
35
|
+
circle(orbit, (540, 535), 245); hidden(orbit);
|
|
36
|
+
|
|
37
|
+
step("scatter") {
|
|
38
|
+
seq {
|
|
39
|
+
par {
|
|
40
|
+
seq { arrange(dots, chamber, "random", 1.25, out); wander(dots, 1.75); }
|
|
41
|
+
seq { wait(0.25); say(note, "same dots · natural motion · repeatable render", 0.45); }
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
step("follow-a-path") {
|
|
47
|
+
seq {
|
|
48
|
+
par {
|
|
49
|
+
draw(path, 2.4, smooth);
|
|
50
|
+
travel(marker, path, 2.4, smooth);
|
|
51
|
+
}
|
|
52
|
+
wait(0.45);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
step("preserve-the-path") {
|
|
57
|
+
seq {
|
|
58
|
+
par {
|
|
59
|
+
fade(path, 0.20);
|
|
60
|
+
show(pathMorph, 0.10);
|
|
61
|
+
to(pathMorph, morph, 1, 0.90, smooth);
|
|
62
|
+
say(pathNote, "morph keeps an open path open", 0.45);
|
|
63
|
+
}
|
|
64
|
+
wait(0.45);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
step("arrive-and-settle") {
|
|
69
|
+
seq {
|
|
70
|
+
par {
|
|
71
|
+
arrange(dots, orbit, "ring", 1.15, smooth);
|
|
72
|
+
fade(chamber, 0.35);
|
|
73
|
+
seq { wait(0.45); say(note, "ring arrival", 0.35); }
|
|
74
|
+
}
|
|
75
|
+
par {
|
|
76
|
+
transform(dots, (540,535), 0.9659, -0.2588, 0.2588, 0.9659, 0.50, out);
|
|
77
|
+
say(note, "brief motion → a deliberate stop", 0.35);
|
|
78
|
+
}
|
|
79
|
+
wait(1.20);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
title("Calculus on a surface — gradient, tangent plane, volume");
|
|
2
|
+
canvas("16:9");
|
|
3
|
+
|
|
4
|
+
camera3((8, -10, 7), (0, 0, 0.8), 42);
|
|
5
|
+
axes3(world, (0, 0, 0), 3);
|
|
6
|
+
color(world, dim);
|
|
7
|
+
|
|
8
|
+
// a smooth hill: z = 1.6 e^(-(x^2 + y^2)/3.6)
|
|
9
|
+
surface3(hill, "1.6*exp(-(x*x + y*y)*0.28)", (-3, 3), (-3, 3), 28);
|
|
10
|
+
color(hill, cyan); untraced(hill);
|
|
11
|
+
|
|
12
|
+
// the tangent plane at a point on the slope
|
|
13
|
+
tangentplane3(tp, hill, 1.1, -0.7);
|
|
14
|
+
color(tp, magenta); hidden(tp);
|
|
15
|
+
|
|
16
|
+
// the gradient there — an arrow pointing straight up the steepest slope
|
|
17
|
+
gradient3(grad, hill, 1.1, -0.7);
|
|
18
|
+
color(grad, gold); hidden(grad);
|
|
19
|
+
|
|
20
|
+
// ---- timeline ----
|
|
21
|
+
show(world, 0.6);
|
|
22
|
+
draw(hill, 1.8);
|
|
23
|
+
wait(0.4);
|
|
24
|
+
show(tp, 0.6);
|
|
25
|
+
show(grad, 0.6);
|
|
26
|
+
orbit3(70, 30, 15, 4.5);
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
title("Newton's method: chasing a root");
|
|
2
|
+
canvas("16:9");
|
|
3
|
+
|
|
4
|
+
text(hdr, (cx, 56), "Newton's method finds where x squared = 2");
|
|
5
|
+
size(hdr, 28); color(hdr, cyan); bold(hdr); display(hdr); hidden(hdr);
|
|
6
|
+
|
|
7
|
+
// a reference frame so the x-axis (where the tangents land) is visible
|
|
8
|
+
axes(ax, (cx - 250, cy + 170), 540, 360, 1);
|
|
9
|
+
color(ax, dim); untraced(ax);
|
|
10
|
+
|
|
11
|
+
// f(x) = x^2 - 2, whose positive root is sqrt(2)
|
|
12
|
+
plot(f, (cx - 250, cy + 170), 180, 70, "x*x - 2", (-0.4, 3));
|
|
13
|
+
color(f, cyan); stroke(f, 3); untraced(f);
|
|
14
|
+
|
|
15
|
+
// the true zero-crossing, marked
|
|
16
|
+
roots(zero, f);
|
|
17
|
+
color(zero, lime); hidden(zero);
|
|
18
|
+
|
|
19
|
+
// the Newton zig-zag from a first guess of x = 3
|
|
20
|
+
newton(walk, f, 3);
|
|
21
|
+
color(walk, gold); stroke(walk, 3); untraced(walk);
|
|
22
|
+
|
|
23
|
+
text(cap, (cx, h - 60), "each tangent slides the guess closer");
|
|
24
|
+
size(cap, 20); color(cap, dim); display(cap); hidden(cap);
|
|
25
|
+
|
|
26
|
+
// ---- timeline ----
|
|
27
|
+
show(hdr, 0.5);
|
|
28
|
+
draw(ax, 0.8);
|
|
29
|
+
draw(f, 1.4);
|
|
30
|
+
wait(0.3);
|
|
31
|
+
show(cap, 0.4);
|
|
32
|
+
|
|
33
|
+
// walk the iterates in to the root
|
|
34
|
+
draw(walk, 3.5);
|
|
35
|
+
wait(0.3);
|
|
36
|
+
|
|
37
|
+
// reveal the exact root it converged on
|
|
38
|
+
show(zero, 0.5);
|
|
39
|
+
pulse(zero, 0.6);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// newtons-cradle.manic — Newton's cradle: pull N balls, N swing out. An EVENT-
|
|
2
|
+
// DRIVEN sim — free-flight pendulums between elastic collisions resolved by the
|
|
3
|
+
// shared `collide_1d` impulse. `newtonscradle(id,[center],[balls],[pulled])`.
|
|
4
|
+
title("Newton's cradle — momentum passes through");
|
|
5
|
+
canvas("16:9");
|
|
6
|
+
text(hdr, (cx, 70), "Pull one, one swings out — momentum and energy pass straight through"); size(hdr, 22); color(hdr, cyan); bold(hdr); display(hdr);
|
|
7
|
+
newtonscradle(nc, (cx, 170), 5, 1);
|
|
8
|
+
energygraph(nc, (1040, 470), 90);
|
|
9
|
+
text(cap, (cx, h - 40), "five equal balls, elastic collisions (e = 1): the chain conserves momentum and energy"); size(cap, 15); color(cap, dim); display(cap);
|
|
10
|
+
run(nc, 8);
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
// The Nine-Point Circle — one circle through the three side-midpoints AND the
|
|
2
|
+
// three altitude feet. (It's the circumcircle of the medial triangle.)
|
|
3
|
+
// Dynamic: drag C and the circle still catches all six points.
|
|
4
|
+
//
|
|
5
|
+
// manic examples/nine_point.manic
|
|
6
|
+
// manic examples/nine_point.manic --record out --fps 60
|
|
7
|
+
|
|
8
|
+
title("The Nine-Point Circle");
|
|
9
|
+
canvas(1280, 720);
|
|
10
|
+
|
|
11
|
+
text(head, (640, 120), "three midpoints + three feet, one circle");
|
|
12
|
+
display(head); color(head, cyan); size(head, 26); hidden(head);
|
|
13
|
+
text(cap, (640, 668), ""); color(cap, dim); size(cap, 22);
|
|
14
|
+
|
|
15
|
+
point(A, (320, 560), "A");
|
|
16
|
+
point(B, (1000, 560), "B");
|
|
17
|
+
point(C, (620, 175), "C");
|
|
18
|
+
hidden(A); hidden(B); hidden(C);
|
|
19
|
+
|
|
20
|
+
segment(ab, A, B); segment(bc, B, C); segment(ca, C, A);
|
|
21
|
+
untraced(ab); untraced(bc); untraced(ca);
|
|
22
|
+
|
|
23
|
+
// side midpoints
|
|
24
|
+
midpoint(mAB, A, B); midpoint(mBC, B, C); midpoint(mCA, C, A);
|
|
25
|
+
color(mAB, lime); color(mBC, lime); color(mCA, lime);
|
|
26
|
+
hidden(mAB); hidden(mBC); hidden(mCA);
|
|
27
|
+
|
|
28
|
+
// altitude feet
|
|
29
|
+
foot(fA, A, B, C); foot(fB, B, C, A); foot(fC, C, A, B);
|
|
30
|
+
color(fA, magenta); color(fB, magenta); color(fC, magenta);
|
|
31
|
+
hidden(fA); hidden(fB); hidden(fC);
|
|
32
|
+
|
|
33
|
+
// the nine-point circle = circumcircle of the medial triangle
|
|
34
|
+
circumcircle(npc, mAB, mBC, mCA); outline(npc, cyan); untraced(npc);
|
|
35
|
+
|
|
36
|
+
show(head, 0.5);
|
|
37
|
+
say(cap, "start with a triangle");
|
|
38
|
+
par { show(A); show(B); show(C); }
|
|
39
|
+
par { draw(ab, 0.5); draw(bc, 0.5); draw(ca, 0.5); }
|
|
40
|
+
wait(0.3);
|
|
41
|
+
|
|
42
|
+
section("Six points");
|
|
43
|
+
say(cap, "the three side-midpoints (lime)");
|
|
44
|
+
stagger(0.2) { show(mAB); show(mBC); show(mCA); }
|
|
45
|
+
say(cap, "and the three altitude feet (magenta)");
|
|
46
|
+
stagger(0.2) { show(fA); show(fB); show(fC); }
|
|
47
|
+
wait(0.4);
|
|
48
|
+
|
|
49
|
+
section("One circle");
|
|
50
|
+
say(cap, "a single circle passes through all six");
|
|
51
|
+
draw(npc, 1.0);
|
|
52
|
+
wait(0.6);
|
|
53
|
+
|
|
54
|
+
section("Drag a vertex");
|
|
55
|
+
say(cap, "move C — the circle still catches all six");
|
|
56
|
+
move(C, (820, 220), 1.3, smooth);
|
|
57
|
+
move(C, (440, 240), 1.3, smooth);
|
|
58
|
+
move(C, (620, 175), 1.0, smooth);
|
|
59
|
+
wait(1.0);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Fractal Terrain — procedural generation from a single formula. `noise(x,y)` and
|
|
2
|
+
// `fbm(x,y)` (fractal Brownian motion — five octaves of smooth value noise) are now
|
|
3
|
+
// formula functions, right beside sin/cos, so any `surface3`/`heightmap3`/`plot`
|
|
4
|
+
// formula can be organic. Here fbm alone sculpts a whole landscape the camera tours.
|
|
5
|
+
title("Fractal Terrain — Noise in a Formula");
|
|
6
|
+
canvas("16:9");
|
|
7
|
+
template("neon");
|
|
8
|
+
|
|
9
|
+
camera3((0, -13, 6.5), (0, 0, 0.3), 28);
|
|
10
|
+
surface3(land, "fbm(x*0.9, y*0.9)*2.4", (-4, 4), (-4, 4), 72);
|
|
11
|
+
color(land, cyan);
|
|
12
|
+
|
|
13
|
+
// A slow turntable so the fractal relief reads in 3D.
|
|
14
|
+
orbit3(60, 30, 13, 4.5, smooth);
|
|
15
|
+
orbit3(190, 26, 13, 4.5, smooth);
|
|
16
|
+
orbit3(320, 32, 13, 4.5, smooth);
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// ============================================================================
|
|
2
|
+
// off-axis.manic — coma & astigmatism, off the axis (3-D ray-traced)
|
|
3
|
+
// ----------------------------------------------------------------------------
|
|
4
|
+
// On the axis a lens can be sharp — but light coming in at an ANGLE is a harder
|
|
5
|
+
// test. `fieldspot` traces a full 2-D pupil in 3-D at a field angle and plots
|
|
6
|
+
// where the rays land. A single lens flares into a COMA comet; a doublet holds
|
|
7
|
+
// the spot near the Airy disk (the diffraction limit). Same 8° field, side by
|
|
8
|
+
// side — real off-axis aberration only a 3-D trace reveals.
|
|
9
|
+
// ============================================================================
|
|
10
|
+
|
|
11
|
+
title("Off-Axis — Coma vs a Corrected Lens");
|
|
12
|
+
canvas("16:9");
|
|
13
|
+
|
|
14
|
+
fieldspot(bad, (350, 380), "singlet", 8); // one element → a coma comet
|
|
15
|
+
fieldspot(good, (930, 380), "doublet", 8); // doublet → tight, near diffraction
|
|
16
|
+
|
|
17
|
+
text(cap, (cx, h - 44), ""); color(cap, fg); size(cap, 24); bold(cap); display(cap); sticky(cap);
|
|
18
|
+
|
|
19
|
+
// ================= THE SCENE =================
|
|
20
|
+
say(cap, "now aim the light 8° OFF the axis — the hard test", 0.5);
|
|
21
|
+
wait(0.4);
|
|
22
|
+
|
|
23
|
+
say(cap, "a single lens smears into a COMA comet (RMS ~7 px)", 0.3);
|
|
24
|
+
draw(bad.dots, 1.6);
|
|
25
|
+
wait(0.6);
|
|
26
|
+
|
|
27
|
+
say(cap, "the doublet holds it near the Airy disk — the diffraction limit", 0.3);
|
|
28
|
+
draw(good.dots, 1.4);
|
|
29
|
+
wait(0.6);
|
|
30
|
+
|
|
31
|
+
say(cap, "the circle is Airy: shrink the blur to it and you're diffraction-limited", 0.3);
|
|
32
|
+
wait(1.2);
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
title("Advanced On-Premises Web Service — Runtime Paths (with icons)");
|
|
2
|
+
canvas("16:9");
|
|
3
|
+
template("neon");
|
|
4
|
+
|
|
5
|
+
let u = (w+h-abs(w-h))/1440;
|
|
6
|
+
watermark(mark, (w*0.14, h*0.03), "Made With Manic");
|
|
7
|
+
text(kicker, (cx, h*0.04), "SYSTEMS KIT · ON-PREMISES WEB SERVICE");
|
|
8
|
+
text(headline, (cx, h*0.125), "One platform. Three runtime stories.");
|
|
9
|
+
text(caption, (cx, h*0.945), "First reveal ownership; then distinguish requests, telemetry, and the analytics stream.");
|
|
10
|
+
size(kicker, 16*u); color(kicker, dim); bold(kicker);
|
|
11
|
+
size(headline, 30*u); bold(headline); wrap(headline, w*0.86);
|
|
12
|
+
size(caption, 18*u); color(caption, dim); wrap(caption, w*0.86);
|
|
13
|
+
|
|
14
|
+
if h > 1.25*w {
|
|
15
|
+
architecture(platform, (cx,h*0.52), w*0.84,h*0.72);
|
|
16
|
+
}
|
|
17
|
+
else {
|
|
18
|
+
architecture(platform, (cx,h*0.52), w*0.95,h*0.72);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
node(ingress, platform, "onprem:nginx", "Nginx Ingress");
|
|
22
|
+
|
|
23
|
+
cluster(services, platform, "SERVICE CLUSTER");
|
|
24
|
+
node(grpc1, services, "onprem:server", "gRPC 1");
|
|
25
|
+
node(grpc2, services, "onprem:server", "gRPC 2");
|
|
26
|
+
node(grpc3, services, "onprem:server", "gRPC 3");
|
|
27
|
+
|
|
28
|
+
cluster(state, platform, "");
|
|
29
|
+
cluster(sessions, state, "SESSIONS HA");
|
|
30
|
+
node(sessionPrimary, sessions, "onprem:redis", "Redis Session");
|
|
31
|
+
node(sessionReplica, sessions, "onprem:redis", "Redis Replica");
|
|
32
|
+
cluster(databases, state, "DATABASE HA");
|
|
33
|
+
node(dbPrimary, databases, "onprem:postgresql", "PostgreSQL Users");
|
|
34
|
+
node(dbReplica, databases, "onprem:postgresql", "PostgreSQL Replica");
|
|
35
|
+
|
|
36
|
+
cluster(pipeline, platform, "EVENT ANALYTICS");
|
|
37
|
+
node(logging, pipeline, "onprem:fluentd", "Fluentd Logging");
|
|
38
|
+
node(stream, pipeline, "onprem:kafka", "Kafka Stream");
|
|
39
|
+
node(analytics, pipeline, "onprem:spark", "Spark Analytics");
|
|
40
|
+
|
|
41
|
+
cluster(observability, platform, "OBSERVABILITY");
|
|
42
|
+
node(metrics, observability, "onprem:prometheus", "Prometheus");
|
|
43
|
+
node(monitoring, observability, "onprem:grafana", "Grafana");
|
|
44
|
+
|
|
45
|
+
// Main request and dependency possibilities.
|
|
46
|
+
connect(ingressToServices, ingress, services);
|
|
47
|
+
connect(servicesToSessions, services, sessionPrimary, orthogonal);
|
|
48
|
+
connect(servicesToDatabase, services, dbPrimary, orthogonal);
|
|
49
|
+
connect(servicesToLogging, services, logging, orthogonal);
|
|
50
|
+
|
|
51
|
+
// The log stream remains one explicit pipeline.
|
|
52
|
+
connect(loggingToStream, logging, stream, orthogonal);
|
|
53
|
+
connect(streamToAnalytics, stream, analytics, orthogonal);
|
|
54
|
+
|
|
55
|
+
// Grafana queries Prometheus; Prometheus explicitly scrapes both replicas.
|
|
56
|
+
connect(dashboardQuery, monitoring, metrics, orthogonal);
|
|
57
|
+
connect(sessionScrape, metrics, sessionReplica, orthogonal);
|
|
58
|
+
connect(databaseScrape, metrics, dbReplica, orthogonal);
|
|
59
|
+
|
|
60
|
+
// HA replication is a neutral relationship, not a directed runtime claim.
|
|
61
|
+
link(sessionReplication, sessionPrimary.card, sessionReplica.card);
|
|
62
|
+
link(databaseReplication, dbPrimary.card, dbReplica.card);
|
|
63
|
+
dashed(sessionReplication); dashed(databaseReplication);
|
|
64
|
+
color(sessionReplication, dim); color(databaseReplication, dim);
|
|
65
|
+
stroke(sessionReplication, 2.5*u); stroke(databaseReplication, 2.5*u);
|
|
66
|
+
|
|
67
|
+
// --- colour every path by its RELATIONSHIP (cold dashed line + hot overlay) ---
|
|
68
|
+
// request path = cyan · analytics pipeline = gold · telemetry/scrape = magenta.
|
|
69
|
+
color(ingressToServices, cyan); color(ingressToServices.hot, cyan);
|
|
70
|
+
color(servicesToSessions, cyan); color(servicesToSessions.hot, cyan);
|
|
71
|
+
color(servicesToDatabase, cyan); color(servicesToDatabase.hot, cyan);
|
|
72
|
+
color(servicesToLogging, gold); color(servicesToLogging.hot, gold);
|
|
73
|
+
color(loggingToStream, gold); color(loggingToStream.hot, gold);
|
|
74
|
+
color(streamToAnalytics, gold); color(streamToAnalytics.hot, gold);
|
|
75
|
+
color(dashboardQuery, magenta); color(dashboardQuery.hot, magenta);
|
|
76
|
+
color(sessionScrape, magenta); color(sessionScrape.hot, magenta);
|
|
77
|
+
color(databaseScrape, magenta); color(databaseScrape.hot, magenta);
|
|
78
|
+
// (replication links stay neutral dim — a relationship, not a runtime path)
|
|
79
|
+
|
|
80
|
+
// legend: relationship → colour
|
|
81
|
+
text(legReq, (w*0.30, h*0.175), "REQUEST"); size(legReq, 13*u); color(legReq, cyan); bold(legReq);
|
|
82
|
+
text(legAna, (w*0.44, h*0.175), "ANALYTICS"); size(legAna, 13*u); color(legAna, gold); bold(legAna);
|
|
83
|
+
text(legTel, (w*0.60, h*0.175), "TELEMETRY"); size(legTel, 13*u); color(legTel, magenta); bold(legTel);
|
|
84
|
+
text(legRep, (w*0.76, h*0.175), "REPLICATION"); size(legRep, 13*u); color(legRep, dim); bold(legRep);
|
|
85
|
+
hidden(legReq); hidden(legAna); hidden(legTel); hidden(legRep);
|
|
86
|
+
|
|
87
|
+
message(webRequest, ingress, "REQ");
|
|
88
|
+
message(sessionRead, grpc2, "S");
|
|
89
|
+
message(databaseRead, grpc3, "DB");
|
|
90
|
+
message(logEvent, grpc1, "LOG");
|
|
91
|
+
message(query, monitoring, "Q");
|
|
92
|
+
message(sessionProbe, metrics, "S");
|
|
93
|
+
message(databaseProbe, metrics, "D");
|
|
94
|
+
|
|
95
|
+
hidden(kicker); hidden(headline); hidden(caption);
|
|
96
|
+
hidden(platform.nodes);
|
|
97
|
+
hidden(services.parts); hidden(state.parts); hidden(sessions.parts); hidden(databases.parts);
|
|
98
|
+
hidden(pipeline.parts); hidden(observability.parts);
|
|
99
|
+
hidden(webRequest.parts); hidden(sessionRead.parts); hidden(databaseRead.parts);
|
|
100
|
+
hidden(logEvent.parts); hidden(query.parts); hidden(sessionProbe.parts); hidden(databaseProbe.parts);
|
|
101
|
+
untraced(platform.connections); untraced(sessionReplication); untraced(databaseReplication);
|
|
102
|
+
|
|
103
|
+
step("entry-and-services") {
|
|
104
|
+
par {
|
|
105
|
+
show(kicker, 0.30); show(headline, 0.45); show(caption, 0.40);
|
|
106
|
+
show(ingress, 0.35);
|
|
107
|
+
show(services.parts, 0.45);
|
|
108
|
+
stagger(0.08) { show(grpc1, 0.30); show(grpc2, 0.30); show(grpc3, 0.30); }
|
|
109
|
+
say(caption, "Nginx can reach three gRPC workers. The dashed fan-out is possibility, not a load-balancing simulation.", 0.40);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
wait(0.20);
|
|
113
|
+
|
|
114
|
+
step("state-pipeline-and-monitoring") {
|
|
115
|
+
par {
|
|
116
|
+
show(state.parts, 0.45); show(sessions.parts, 0.40); show(databases.parts, 0.40);
|
|
117
|
+
show(sessionPrimary, 0.30); show(sessionReplica, 0.30);
|
|
118
|
+
show(dbPrimary, 0.30); show(dbReplica, 0.30);
|
|
119
|
+
show(pipeline.parts, 0.45); show(logging, 0.30); show(stream, 0.30); show(analytics, 0.30);
|
|
120
|
+
show(observability.parts, 0.45); show(metrics, 0.30); show(monitoring, 0.30);
|
|
121
|
+
say(caption, "Sessions, users, analytics, and observability keep separate ownership boundaries.", 0.40);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
wait(0.20);
|
|
125
|
+
|
|
126
|
+
step("possible-topology") {
|
|
127
|
+
par {
|
|
128
|
+
draw(platform.connections, 1.10, smooth);
|
|
129
|
+
draw(sessionReplication, 0.55, smooth);
|
|
130
|
+
draw(databaseReplication, 0.55, smooth);
|
|
131
|
+
show(legReq, 0.3); show(legAna, 0.3); show(legTel, 0.3); show(legRep, 0.3);
|
|
132
|
+
say(caption, "Each path is coloured by relationship: request, analytics, telemetry, replication.", 0.40);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
wait(0.30);
|
|
136
|
+
|
|
137
|
+
step("one-ingress-request") {
|
|
138
|
+
par {
|
|
139
|
+
seq {
|
|
140
|
+
show(webRequest.parts, 0.18);
|
|
141
|
+
route(webRequest, ingressToServices, 1.00, linear);
|
|
142
|
+
}
|
|
143
|
+
say(caption, "One HTTP request selects one gRPC worker; the other possible ingress lanes remain cold.", 0.40);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
wait(0.25);
|
|
147
|
+
|
|
148
|
+
step("parallel-state-dependencies") {
|
|
149
|
+
par {
|
|
150
|
+
fade(webRequest.parts, 0.20);
|
|
151
|
+
seq { show(sessionRead.parts, 0.18); route(sessionRead, servicesToSessions, 1.45, linear); }
|
|
152
|
+
seq { show(databaseRead.parts, 0.18); route(databaseRead, servicesToDatabase, 1.45, linear); }
|
|
153
|
+
flow(sessionReplication, 1.45, both, continuous);
|
|
154
|
+
flow(databaseReplication, 1.45, both, continuous);
|
|
155
|
+
say(caption, "Two workers can contact independent state systems while replication stays a neutral HA relationship.", 0.40);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
wait(0.25);
|
|
159
|
+
|
|
160
|
+
step("logging-to-analytics") {
|
|
161
|
+
par {
|
|
162
|
+
fade(sessionRead.parts, 0.20); fade(databaseRead.parts, 0.20);
|
|
163
|
+
fade(servicesToSessions.hot, 0.25); fade(servicesToDatabase.hot, 0.25);
|
|
164
|
+
seq {
|
|
165
|
+
show(logEvent.parts, 0.18);
|
|
166
|
+
route(logEvent, servicesToLogging, 1.00, linear);
|
|
167
|
+
route(logEvent, loggingToStream, 0.85, linear);
|
|
168
|
+
route(logEvent, streamToAnalytics, 0.85, linear);
|
|
169
|
+
}
|
|
170
|
+
say(caption, "The same log event travels gRPC → Fluentd → Kafka → Spark without becoming a replacement dot.", 0.40);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
wait(0.25);
|
|
174
|
+
|
|
175
|
+
step("observability") {
|
|
176
|
+
par {
|
|
177
|
+
fade(logEvent.parts, 0.20);
|
|
178
|
+
fade(servicesToLogging.hot, 0.25);
|
|
179
|
+
fade(loggingToStream.hot, 0.25);
|
|
180
|
+
fade(streamToAnalytics.hot, 0.25);
|
|
181
|
+
seq { show(query.parts, 0.18); route(query, dashboardQuery, 0.80, linear); }
|
|
182
|
+
seq { show(sessionProbe.parts, 0.18); route(sessionProbe, sessionScrape, 1.25, linear); }
|
|
183
|
+
seq { show(databaseProbe.parts, 0.18); route(databaseProbe, databaseScrape, 1.25, linear); }
|
|
184
|
+
say(caption, "Grafana queries Prometheus while two explicit scrape messages select the replica targets.", 0.40);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
wait(0.35);
|
|
188
|
+
|
|
189
|
+
step("takeaway") {
|
|
190
|
+
par {
|
|
191
|
+
pulse(services.parts, 0.70); pulse(state.parts, 0.70);
|
|
192
|
+
pulse(pipeline.parts, 0.70); pulse(observability.parts, 0.70);
|
|
193
|
+
say(caption, "Ownership stays static. Persistent objects and authored paths explain what the platform does.", 0.45);
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
wait(1.30);
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
title("Advanced On-Premises Web Service — Runtime Paths");
|
|
2
|
+
canvas("16:9");
|
|
3
|
+
template("neon");
|
|
4
|
+
|
|
5
|
+
let u = (w+h-abs(w-h))/1440;
|
|
6
|
+
watermark(mark, (w*0.14, h*0.03), "Made With Manic");
|
|
7
|
+
text(kicker, (cx, h*0.04), "SYSTEMS KIT · ON-PREMISES WEB SERVICE");
|
|
8
|
+
text(headline, (cx, h*0.125), "One platform. Three runtime stories.");
|
|
9
|
+
text(caption, (cx, h*0.945), "First reveal ownership; then distinguish requests, telemetry, and the analytics stream.");
|
|
10
|
+
size(kicker, 16*u); color(kicker, dim); bold(kicker);
|
|
11
|
+
size(headline, 30*u); bold(headline); wrap(headline, w*0.86);
|
|
12
|
+
size(caption, 18*u); color(caption, dim); wrap(caption, w*0.86);
|
|
13
|
+
|
|
14
|
+
if h > 1.25*w {
|
|
15
|
+
architecture(platform, (cx,h*0.52), w*0.84,h*0.72);
|
|
16
|
+
}
|
|
17
|
+
else {
|
|
18
|
+
architecture(platform, (cx,h*0.52), w*0.95,h*0.72);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
node(ingress, platform, "gateway", "Nginx Ingress");
|
|
22
|
+
|
|
23
|
+
cluster(services, platform, "SERVICE CLUSTER");
|
|
24
|
+
node(grpc1, services, "service", "gRPC 1");
|
|
25
|
+
node(grpc2, services, "service", "gRPC 2");
|
|
26
|
+
node(grpc3, services, "service", "gRPC 3");
|
|
27
|
+
|
|
28
|
+
cluster(state, platform, "");
|
|
29
|
+
cluster(sessions, state, "SESSIONS HA");
|
|
30
|
+
node(sessionPrimary, sessions, "cache", "Redis Session");
|
|
31
|
+
node(sessionReplica, sessions, "cache", "Redis Replica");
|
|
32
|
+
cluster(databases, state, "DATABASE HA");
|
|
33
|
+
node(dbPrimary, databases, "database", "PostgreSQL Users");
|
|
34
|
+
node(dbReplica, databases, "database", "PostgreSQL Replica");
|
|
35
|
+
|
|
36
|
+
cluster(pipeline, platform, "EVENT ANALYTICS");
|
|
37
|
+
node(logging, pipeline, "service", "Fluentd Logging");
|
|
38
|
+
node(stream, pipeline, "queue", "Kafka Stream");
|
|
39
|
+
node(analytics, pipeline, "service", "Spark Analytics");
|
|
40
|
+
|
|
41
|
+
cluster(observability, platform, "OBSERVABILITY");
|
|
42
|
+
node(metrics, observability, "external", "Prometheus");
|
|
43
|
+
node(monitoring, observability, "external", "Grafana");
|
|
44
|
+
|
|
45
|
+
// Main request and dependency possibilities.
|
|
46
|
+
connect(ingressToServices, ingress, services);
|
|
47
|
+
connect(servicesToSessions, services, sessionPrimary, orthogonal);
|
|
48
|
+
connect(servicesToDatabase, services, dbPrimary, orthogonal);
|
|
49
|
+
connect(servicesToLogging, services, logging, orthogonal);
|
|
50
|
+
|
|
51
|
+
// The log stream remains one explicit pipeline.
|
|
52
|
+
connect(loggingToStream, logging, stream, orthogonal);
|
|
53
|
+
connect(streamToAnalytics, stream, analytics, orthogonal);
|
|
54
|
+
|
|
55
|
+
// Grafana queries Prometheus; Prometheus explicitly scrapes both replicas.
|
|
56
|
+
connect(dashboardQuery, monitoring, metrics, orthogonal);
|
|
57
|
+
connect(sessionScrape, metrics, sessionReplica, orthogonal);
|
|
58
|
+
connect(databaseScrape, metrics, dbReplica, orthogonal);
|
|
59
|
+
|
|
60
|
+
// HA replication is a neutral relationship, not a directed runtime claim.
|
|
61
|
+
link(sessionReplication, sessionPrimary.card, sessionReplica.card);
|
|
62
|
+
link(databaseReplication, dbPrimary.card, dbReplica.card);
|
|
63
|
+
dashed(sessionReplication); dashed(databaseReplication);
|
|
64
|
+
color(sessionReplication, dim); color(databaseReplication, dim);
|
|
65
|
+
stroke(sessionReplication, 2.5*u); stroke(databaseReplication, 2.5*u);
|
|
66
|
+
|
|
67
|
+
message(webRequest, ingress, "REQ");
|
|
68
|
+
message(sessionRead, grpc2, "S");
|
|
69
|
+
message(databaseRead, grpc3, "DB");
|
|
70
|
+
message(logEvent, grpc1, "LOG");
|
|
71
|
+
message(query, monitoring, "Q");
|
|
72
|
+
message(sessionProbe, metrics, "S");
|
|
73
|
+
message(databaseProbe, metrics, "D");
|
|
74
|
+
|
|
75
|
+
hidden(kicker); hidden(headline); hidden(caption);
|
|
76
|
+
hidden(platform.nodes);
|
|
77
|
+
hidden(services.parts); hidden(state.parts); hidden(sessions.parts); hidden(databases.parts);
|
|
78
|
+
hidden(pipeline.parts); hidden(observability.parts);
|
|
79
|
+
hidden(webRequest.parts); hidden(sessionRead.parts); hidden(databaseRead.parts);
|
|
80
|
+
hidden(logEvent.parts); hidden(query.parts); hidden(sessionProbe.parts); hidden(databaseProbe.parts);
|
|
81
|
+
untraced(platform.connections); untraced(sessionReplication); untraced(databaseReplication);
|
|
82
|
+
|
|
83
|
+
step("entry-and-services") {
|
|
84
|
+
par {
|
|
85
|
+
show(kicker, 0.30); show(headline, 0.45); show(caption, 0.40);
|
|
86
|
+
show(ingress, 0.35);
|
|
87
|
+
show(services.parts, 0.45);
|
|
88
|
+
stagger(0.08) { show(grpc1, 0.30); show(grpc2, 0.30); show(grpc3, 0.30); }
|
|
89
|
+
say(caption, "Nginx can reach three gRPC workers. The dashed fan-out is possibility, not a load-balancing simulation.", 0.40);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
wait(0.20);
|
|
93
|
+
|
|
94
|
+
step("state-pipeline-and-monitoring") {
|
|
95
|
+
par {
|
|
96
|
+
show(state.parts, 0.45); show(sessions.parts, 0.40); show(databases.parts, 0.40);
|
|
97
|
+
show(sessionPrimary, 0.30); show(sessionReplica, 0.30);
|
|
98
|
+
show(dbPrimary, 0.30); show(dbReplica, 0.30);
|
|
99
|
+
show(pipeline.parts, 0.45); show(logging, 0.30); show(stream, 0.30); show(analytics, 0.30);
|
|
100
|
+
show(observability.parts, 0.45); show(metrics, 0.30); show(monitoring, 0.30);
|
|
101
|
+
say(caption, "Sessions, users, analytics, and observability keep separate ownership boundaries.", 0.40);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
wait(0.20);
|
|
105
|
+
|
|
106
|
+
step("possible-topology") {
|
|
107
|
+
par {
|
|
108
|
+
draw(platform.connections, 1.10, smooth);
|
|
109
|
+
draw(sessionReplication, 0.55, smooth);
|
|
110
|
+
draw(databaseReplication, 0.55, smooth);
|
|
111
|
+
say(caption, "Straight, curved, and port-aware orthogonal paths still form one selectable topology.", 0.40);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
wait(0.30);
|
|
115
|
+
|
|
116
|
+
step("one-ingress-request") {
|
|
117
|
+
par {
|
|
118
|
+
seq {
|
|
119
|
+
show(webRequest.parts, 0.18);
|
|
120
|
+
route(webRequest, ingressToServices, 1.00, linear);
|
|
121
|
+
}
|
|
122
|
+
say(caption, "One HTTP request selects one gRPC worker; the other possible ingress lanes remain cold.", 0.40);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
wait(0.25);
|
|
126
|
+
|
|
127
|
+
step("parallel-state-dependencies") {
|
|
128
|
+
par {
|
|
129
|
+
fade(webRequest.parts, 0.20);
|
|
130
|
+
seq { show(sessionRead.parts, 0.18); route(sessionRead, servicesToSessions, 1.45, linear); }
|
|
131
|
+
seq { show(databaseRead.parts, 0.18); route(databaseRead, servicesToDatabase, 1.45, linear); }
|
|
132
|
+
flow(sessionReplication, 1.45, both, continuous);
|
|
133
|
+
flow(databaseReplication, 1.45, both, continuous);
|
|
134
|
+
say(caption, "Two workers can contact independent state systems while replication stays a neutral HA relationship.", 0.40);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
wait(0.25);
|
|
138
|
+
|
|
139
|
+
step("logging-to-analytics") {
|
|
140
|
+
par {
|
|
141
|
+
fade(sessionRead.parts, 0.20); fade(databaseRead.parts, 0.20);
|
|
142
|
+
fade(servicesToSessions.hot, 0.25); fade(servicesToDatabase.hot, 0.25);
|
|
143
|
+
seq {
|
|
144
|
+
show(logEvent.parts, 0.18);
|
|
145
|
+
route(logEvent, servicesToLogging, 1.00, linear);
|
|
146
|
+
route(logEvent, loggingToStream, 0.85, linear);
|
|
147
|
+
route(logEvent, streamToAnalytics, 0.85, linear);
|
|
148
|
+
}
|
|
149
|
+
say(caption, "The same log event travels gRPC → Fluentd → Kafka → Spark without becoming a replacement dot.", 0.40);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
wait(0.25);
|
|
153
|
+
|
|
154
|
+
step("observability") {
|
|
155
|
+
par {
|
|
156
|
+
fade(logEvent.parts, 0.20);
|
|
157
|
+
fade(servicesToLogging.hot, 0.25);
|
|
158
|
+
fade(loggingToStream.hot, 0.25);
|
|
159
|
+
fade(streamToAnalytics.hot, 0.25);
|
|
160
|
+
seq { show(query.parts, 0.18); route(query, dashboardQuery, 0.80, linear); }
|
|
161
|
+
seq { show(sessionProbe.parts, 0.18); route(sessionProbe, sessionScrape, 1.25, linear); }
|
|
162
|
+
seq { show(databaseProbe.parts, 0.18); route(databaseProbe, databaseScrape, 1.25, linear); }
|
|
163
|
+
say(caption, "Grafana queries Prometheus while two explicit scrape messages select the replica targets.", 0.40);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
wait(0.35);
|
|
167
|
+
|
|
168
|
+
step("takeaway") {
|
|
169
|
+
par {
|
|
170
|
+
pulse(services.parts, 0.70); pulse(state.parts, 0.70);
|
|
171
|
+
pulse(pipeline.parts, 0.70); pulse(observability.parts, 0.70);
|
|
172
|
+
say(caption, "Ownership stays static. Persistent objects and authored paths explain what the platform does.", 0.45);
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
wait(1.30);
|