[
  {
    "id": "codrops-790681aa8390-article-0",
    "source": "design-engineering/state-management/patterns/derived-state.md",
    "anchor": "state-model-and-ownership",
    "sourceSha256": "22192b2fbab970a71ec0237221dc2d35c578e59723bc0032c2347f8ef595cd6c",
    "title": "17 / Data-bound quantity calculator · projectBarModel",
    "principle": "Price and total mass are projections of grams, quantity and demonstration unit price; no independently writable total can drift.",
    "application": "A local data model owns grams per bar, quantity and demonstration units per gram. Total mass and total price are derived by multiplication; original SVG bar dimensions, count and labels update together. No market-data, financial-quote or provider API is involved. This binding describes the authored study and does not verify the original project.",
    "code": [
      {
        "file": "vendor/codrops-article-studies/records/codrops-790681aa8390/script.js",
        "symbol": "projectBarModel",
        "explanation": "The named local function implements this mechanism in the downloadable standalone page; its source hash is listed in codeFiles."
      }
    ],
    "checks": [
      {
        "id": "codrops-790681aa8390-projectBarModel",
        "action": "Set grams to 5, quantity to 6 and price to 72; then set price to 0.",
        "expected": "Mass is 30g, total is 2160.00, then total becomes 0.00 while mass and six visible bars remain unchanged."
      }
    ],
    "runtime_verified": false
  },
  {
    "id": "codrops-790681aa8390-article-1",
    "source": "design-engineering/component-contract.md",
    "anchor": "contract-template",
    "sourceSha256": "79e496160e28ab26397d2c5b68075fd14c732d13002ff6c6e41c031d86cac039",
    "title": "17 / Data-bound quantity calculator · renderBarCalculator",
    "principle": "The bar illustration, accessible description and numeric readout share the same bounded local model.",
    "application": "A local data model owns grams per bar, quantity and demonstration units per gram. Total mass and total price are derived by multiplication; original SVG bar dimensions, count and labels update together. No market-data, financial-quote or provider API is involved. This binding describes the authored study and does not verify the original project.",
    "code": [
      {
        "file": "vendor/codrops-article-studies/records/codrops-790681aa8390/script.js",
        "symbol": "renderBarCalculator",
        "explanation": "The named local function implements this mechanism in the downloadable standalone page; its source hash is listed in codeFiles."
      }
    ],
    "checks": [
      {
        "id": "codrops-790681aa8390-renderBarCalculator",
        "action": "Use the keyboard to switch between 5g and 10g and choose One bar/Six bars.",
        "expected": "Count, bar size, accessible image description, mass and total update together without a remote quote or purchase action."
      }
    ],
    "runtime_verified": false
  },
  {
    "id": "codrops-790681aa8390-article-2",
    "source": "motion/accessible-motion.md",
    "anchor": "preference-changes-during-work",
    "sourceSha256": "db0ad692d5bb3103a3cbe13ec08dbe5cf12552aed7ecf2c93b1d7cc0b8a34b8b",
    "title": "17 / Data-bound quantity calculator · applyMotionPreference",
    "principle": "One effective preference owns CSS and script playback. The initial view is stationary, and manual controls retain the study values.",
    "application": "A local data model owns grams per bar, quantity and demonstration units per gram. Total mass and total price are derived by multiplication; original SVG bar dimensions, count and labels update together. No market-data, financial-quote or provider API is involved. This binding describes the authored study and does not verify the original project.",
    "code": [
      {
        "file": "vendor/codrops-article-studies/records/codrops-790681aa8390/script.js",
        "symbol": "applyMotionPreference",
        "explanation": "The named local function implements this mechanism in the downloadable standalone page; its source hash is listed in codeFiles."
      }
    ],
    "checks": [
      {
        "id": "codrops-790681aa8390-applyMotionPreference",
        "action": "Enable Static view during playback, then adjust the visible native controls.",
        "expected": "Playback stops, its button is disabled while the preference applies, and the current values remain inspectable without continuous motion."
      }
    ],
    "runtime_verified": false
  }
]
