{"product_id":"📐-adjustable-rafter-square-with-pivoting-angle-guide-pencil-scribe-notches-✏️","title":"📐 Adjustable Rafter Square with Pivoting Angle Guide \u0026 Pencil Scribe Notches ✏️🪵","description":"\u003cbody\u003e\n\u003cstyle\u003e\n  #rafter-layout-guide,\n  #rafter-layout-guide * { box-sizing: border-box; }\n\n  #rafter-layout-guide {\n    --rg-ink: #272a2b;\n    --rg-copy: #4e5355;\n    --rg-red: #a83222;\n    --rg-line: #dedbd5;\n    container: rafter-guide \/ inline-size;\n    width: 100%;\n    max-width: 100%;\n    min-width: 0;\n    margin: 0;\n    isolation: isolate;\n    contain: paint;\n    overflow: hidden;\n    background: #fcfbf8;\n    color: var(--rg-ink);\n    font: 16px\/1.65 Arial, Helvetica, sans-serif;\n    text-align: left;\n    overflow-wrap: break-word;\n  }\n\n  #rafter-layout-guide .rg-section {\n    width: 100%;\n    max-width: 100%;\n    min-width: 0;\n    margin: 0;\n    padding: 30px 16px;\n    background: #fcfbf8;\n    box-shadow: none;\n    clip-path: none;\n  }\n\n  #rafter-layout-guide .rg-white { background: #fff; }\n  #rafter-layout-guide .rg-warm { background: #eeeae2; }\n  #rafter-layout-guide .rg-dark { background: #292b2b; color: #fff7ea; }\n\n  #rafter-layout-guide .rg-inner {\n    width: 100%;\n    max-width: 1000px;\n    min-width: 0;\n    margin: 0 auto;\n  }\n\n  #rafter-layout-guide .rg-copy {\n    max-width: 720px;\n    margin: 0 auto 20px;\n  }\n\n  #rafter-layout-guide h2,\n  #rafter-layout-guide h3,\n  #rafter-layout-guide h4 {\n    margin: 0 0 12px;\n    color: inherit;\n    font-family: Arial, Helvetica, sans-serif;\n    font-weight: 700;\n    line-height: 1.2;\n    letter-spacing: -.025em;\n    text-transform: none;\n  }\n\n  #rafter-layout-guide h2 { font-size: 32px; }\n  #rafter-layout-guide h3 { font-size: 27px; }\n  #rafter-layout-guide h4 { font-size: 24px; }\n\n  #rafter-layout-guide p {\n    margin: 0;\n    color: var(--rg-copy);\n    font-size: 16px;\n    font-weight: 400;\n    line-height: 1.65;\n    letter-spacing: normal;\n  }\n\n  #rafter-layout-guide .rg-dark p { color: #e7e1d7; }\n\n  #rafter-layout-guide .rg-label {\n    margin-bottom: 10px;\n    color: var(--rg-red);\n    font-size: 12px;\n    font-weight: 700;\n    letter-spacing: .1em;\n    text-transform: uppercase;\n  }\n\n  #rafter-layout-guide .rg-dark .rg-label { color: #f1b39c; }\n\n  #rafter-layout-guide .rg-media {\n    display: block;\n    width: 100%;\n    max-width: 800px;\n    min-width: 0;\n    margin: 0 auto;\n  }\n\n  #rafter-layout-guide img.rg-photo {\n    display: block !important;\n    position: static !important;\n    float: none !important;\n    width: 100% !important;\n    max-width: 100% !important;\n    height: auto !important;\n    min-height: 0;\n    margin: 0 !important;\n    padding: 0;\n    border: 0;\n    border-radius: 6px;\n    box-shadow: none;\n  }\n\n  #rafter-layout-guide .rg-technique {\n    margin: 0;\n    padding: 24px 0 0;\n    border-top: 1px solid var(--rg-line);\n  }\n\n  #rafter-layout-guide .rg-technique + .rg-technique { margin-top: 30px; }\n\n  #rafter-layout-guide .rg-button,\n  #rafter-layout-guide .rg-button:visited {\n    display: inline-flex;\n    align-items: center;\n    justify-content: center;\n    min-height: 48px;\n    max-width: 100%;\n    margin-top: 20px;\n    padding: 13px 22px;\n    border: 1px solid #b83b29;\n    border-radius: 5px;\n    background: #b83b29;\n    color: #fff;\n    font: 700 16px\/1.4 Arial, Helvetica, sans-serif;\n    text-align: center;\n    text-decoration: none;\n  }\n\n  #rafter-layout-guide .rg-button:hover { background: #9f3021; }\n  #rafter-layout-guide .rg-button:focus-visible {\n    outline: 3px solid #fff7ea;\n    outline-offset: 4px;\n  }\n\n  #rafter-layout-guide .rg-closing { text-align: center; }\n  #rafter-layout-guide .rg-closing .rg-copy { margin-bottom: 0; }\n\n  @container rafter-guide (min-width: 680px) {\n    #rafter-layout-guide .rg-section { padding: 42px 32px; }\n    #rafter-layout-guide h2 { font-size: 42px; }\n    #rafter-layout-guide h3 { font-size: 33px; }\n    #rafter-layout-guide h4 { font-size: 28px; }\n    #rafter-layout-guide .rg-copy { margin-bottom: 24px; }\n    #rafter-layout-guide .rg-technique + .rg-technique { margin-top: 38px; }\n    #rafter-layout-guide .rg-closing .rg-copy { margin-bottom: 0; }\n  }\n\u003c\/style\u003e\n\n\u003carticle id=\"rafter-layout-guide\" lang=\"en\" aria-label=\"Adjustable rafter square\"\u003e\n  \u003csection class=\"rg-section rg-dark\"\u003e\n    \u003cdiv class=\"rg-inner\"\u003e\n      \u003cheader class=\"rg-copy\"\u003e\n        \u003cp class=\"rg-label\"\u003eAdjustable Rafter Square\u003c\/p\u003e\n        \u003ch2\u003eWhat can you mark from one board edge?\u003c\/h2\u003e\n        \u003cp\u003eA square crosscut, a line at an angle, or a pencil mark that runs parallel to the grain. Each starts with the lip of the square against the board.\u003c\/p\u003e\n      \u003c\/header\u003e\n      \u003cfigure class=\"rg-media\"\u003e\n        \u003cimg class=\"rg-photo\" width=\"1254\" height=\"1254\" loading=\"eager\" fetchpriority=\"high\" src=\"https:\/\/storage2.tianyierp.com\/public\/merc\/2026-11-26\/100655940348411905.webp\" alt=\"Red rafter square resting on a board with its silver angle guide extended\"\u003e\n      \u003c\/figure\u003e\n    \u003c\/div\u003e\n  \u003c\/section\u003e\n\n  \u003csection class=\"rg-section rg-white\" aria-labelledby=\"rg-layout-title\"\u003e\n    \u003cdiv class=\"rg-inner\"\u003e\n      \u003cdiv class=\"rg-copy\"\u003e\n        \u003cp class=\"rg-label\"\u003eLayout Guide\u003c\/p\u003e\n        \u003ch3 id=\"rg-layout-title\"\u003eChoose the line you need\u003c\/h3\u003e\n        \u003cp\u003eThree marking techniques, shown step by step.\u003c\/p\u003e\n      \u003c\/div\u003e\n\n      \u003csection class=\"rg-technique\" aria-labelledby=\"rg-square-title\"\u003e\n        \u003cdiv class=\"rg-copy\"\u003e\n          \u003cp class=\"rg-label\"\u003e01 \/ Square Lines\u003c\/p\u003e\n          \u003ch4 id=\"rg-square-title\"\u003eMark a 90° line.\u003c\/h4\u003e\n          \u003cp\u003eHook the lip over the board edge and draw along the perpendicular side to mark a 90° line.\u003c\/p\u003e\n        \u003c\/div\u003e\n        \u003cfigure class=\"rg-media\"\u003e\n          \u003cimg class=\"rg-photo\" width=\"1254\" height=\"1254\" loading=\"lazy\" src=\"https:\/\/storage2.tianyierp.com\/public\/merc\/2026-11-26\/100655970580955137.webp\" alt=\"Pencil marking a right angle with the lip of the square against the board\"\u003e\n        \u003c\/figure\u003e\n      \u003c\/section\u003e\n\n      \u003csection class=\"rg-technique\" aria-labelledby=\"rg-angle-title\"\u003e\n        \u003cdiv class=\"rg-copy\"\u003e\n          \u003cp class=\"rg-label\"\u003e02 \/ Angle Guide\u003c\/p\u003e\n          \u003ch4 id=\"rg-angle-title\"\u003eStart from the same corner.\u003c\/h4\u003e\n          \u003cp\u003eKeep the pivot at your starting point. Swing the guide to mark several angles from the same corner.\u003c\/p\u003e\n        \u003c\/div\u003e\n        \u003cfigure class=\"rg-media\"\u003e\n          \u003cimg class=\"rg-photo\" width=\"1254\" height=\"1254\" loading=\"lazy\" src=\"https:\/\/storage2.tianyierp.com\/public\/merc\/2026-11-26\/100655968651575297.webp\" alt=\"Pencil lines fanning out from one corner beside the pivoting guide\"\u003e\n        \u003c\/figure\u003e\n      \u003c\/section\u003e\n\n      \u003csection class=\"rg-technique\" aria-labelledby=\"rg-parallel-title\"\u003e\n        \u003cdiv class=\"rg-copy\"\u003e\n          \u003cp class=\"rg-label\"\u003e03 \/ Parallel Marks\u003c\/p\u003e\n          \u003ch4 id=\"rg-parallel-title\"\u003eKeep a consistent offset.\u003c\/h4\u003e\n          \u003cp\u003eSet the pencil in a scribe notch. Slide the square along the board edge to keep the same offset from end to end.\u003c\/p\u003e\n        \u003c\/div\u003e\n        \u003cfigure class=\"rg-media\"\u003e\n          \u003cimg class=\"rg-photo\" width=\"1254\" height=\"1254\" loading=\"lazy\" src=\"https:\/\/storage2.tianyierp.com\/public\/merc\/2026-11-26\/100655969859534849.webp\" alt=\"Pencil tip seated in a scribe notch above parallel lines on a board\"\u003e\n        \u003c\/figure\u003e\n      \u003c\/section\u003e\n    \u003c\/div\u003e\n  \u003c\/section\u003e\n\n  \u003csection class=\"rg-section rg-warm\"\u003e\n    \u003cdiv class=\"rg-inner\"\u003e\n      \u003cdiv class=\"rg-copy\"\u003e\n        \u003cp class=\"rg-label\"\u003eSee the Difference\u003c\/p\u003e\n        \u003ch3\u003eA small drift shows up across the board\u003c\/h3\u003e\n        \u003cp\u003eFollow the two marks from bottom to top. The freehand line leans as it crosses the board. The line drawn against the square stays perpendicular to the edge.\u003c\/p\u003e\n      \u003c\/div\u003e\n      \u003cfigure class=\"rg-media\"\u003e\n        \u003cimg class=\"rg-photo\" width=\"1254\" height=\"1254\" loading=\"lazy\" src=\"https:\/\/storage2.tianyierp.com\/public\/merc\/2026-11-26\/100655970245410817.webp\" alt=\"Side-by-side comparison of a slanted freehand mark and a line drawn with the square\"\u003e\n      \u003c\/figure\u003e\n    \u003c\/div\u003e\n  \u003c\/section\u003e\n\n  \u003csection class=\"rg-section rg-white\"\u003e\n    \u003cdiv class=\"rg-inner\"\u003e\n      \u003cdiv class=\"rg-copy\"\u003e\n        \u003cp class=\"rg-label\"\u003eSetting the Angle\u003c\/p\u003e\n        \u003ch3\u003eRead the angle at the silver guide\u003c\/h3\u003e\n        \u003cp\u003eFollow the guide to the curved scale. White graduations stand out against the red face so you can read the setting before you draw.\u003c\/p\u003e\n      \u003c\/div\u003e\n      \u003cfigure class=\"rg-media\"\u003e\n        \u003cimg class=\"rg-photo\" width=\"1254\" height=\"1254\" loading=\"lazy\" src=\"https:\/\/storage2.tianyierp.com\/public\/merc\/2026-11-26\/100655968618020865.webp\" alt=\"Close-up of the silver guide crossing the white angle graduations\"\u003e\n      \u003c\/figure\u003e\n    \u003c\/div\u003e\n  \u003c\/section\u003e\n\n  \u003csection class=\"rg-section rg-warm\"\u003e\n    \u003cdiv class=\"rg-inner\"\u003e\n      \u003cdiv class=\"rg-copy\"\u003e\n        \u003cp class=\"rg-label\"\u003eAt the Cut Line\u003c\/p\u003e\n        \u003ch3\u003eLine up the saw base\u003c\/h3\u003e\n        \u003cp\u003eThe straight side gives the saw base a reference edge. Position the square with the blade-to-base offset in mind so the blade lines up with your cut mark.\u003c\/p\u003e\n      \u003c\/div\u003e\n      \u003cfigure class=\"rg-media\"\u003e\n        \u003cimg class=\"rg-photo\" width=\"1254\" height=\"1254\" loading=\"lazy\" src=\"https:\/\/storage2.tianyierp.com\/public\/merc\/2026-11-26\/100655969322663937.webp\" alt=\"Circular saw base aligned alongside the rafter square on a wooden board\"\u003e\n      \u003c\/figure\u003e\n    \u003c\/div\u003e\n  \u003c\/section\u003e\n\n  \u003csection class=\"rg-section rg-dark rg-closing\"\u003e\n    \u003cdiv class=\"rg-inner\"\u003e\n      \u003cdiv class=\"rg-copy\"\u003e\n        \u003ch3\u003eStart at the board edge.\u003c\/h3\u003e\n        \u003cp\u003eSquare lines, angle layouts and parallel marks with one adjustable rafter square.\u003c\/p\u003e\n        \u003ca class=\"rg-button\" href=\"#\"\u003eBack to Product Options ↑\u003c\/a\u003e\n      \u003c\/div\u003e\n    \u003c\/div\u003e\n  \u003c\/section\u003e\n\u003c\/article\u003e\n\u003cscript\u003eglobalThis.__codexVisualizationInitialGlobals={\"statePersistence\":\"none\",\"stateModelContext\":\"none\",\"visualizationStyleVariables\":{\"--accent\":\"rgb(232, 243, 254)\",\"--accent-foreground\":\"rgb(44, 103, 197)\",\"--background\":\"rgb(252, 252, 252)\",\"--border\":\"rgba(0, 0, 0, 0.1)\",\"--border-strong\":\"rgba(0, 0, 0, 0.15)\",\"--card\":\"color-mix(in oklab, rgb(13, 13, 13) 5%, transparent)\",\"--card-foreground\":\"rgb(13, 13, 13)\",\"--corner-shape\":\"round\",\"--control-spacing\":\"12px\",\"--cursor-interaction\":\"pointer\",\"--destructive\":\"rgb(146, 59, 15)\",\"--font-mono\":\"ui-monospace, SFMono-Regular, \\\"SF Mono\\\", menlo, consolas, \\\"Liberation Mono\\\", monospace\",\"--font-sans\":\"-apple-system-body, ui-sans-serif, -apple-system, system-ui, \\\"Segoe UI\\\", Helvetica, \\\"Apple Color Emoji\\\", Arial, sans-serif, \\\"Segoe UI Emoji\\\", \\\"Segoe UI Symbol\\\"\",\"--font-size-base\":\"16px\",\"--font-weight-normal\":\"400\",\"--foreground\":\"rgb(13, 13, 13)\",\"--input\":\"rgba(0, 0, 0, 0.15)\",\"--muted\":\"color-mix(in srgb, rgb(13, 13, 13) 10%, transparent)\",\"--muted-foreground\":\"rgb(143, 143, 143)\",\"--popover\":\"rgb(255, 255, 255)\",\"--popover-foreground\":\"rgb(13, 13, 13)\",\"--primary\":\"rgb(44, 103, 197)\",\"--primary-foreground\":\"rgb(255, 255, 255)\",\"--radius\":\"8px\",\"--radius-2xl\":\"16px\",\"--radius-lg\":\"8px\",\"--radius-md\":\"6px\",\"--radius-sm\":\"4px\",\"--ring\":\"rgb(0, 0, 0)\",\"--secondary\":\"rgb(243, 243, 243)\",\"--secondary-foreground\":\"rgb(13, 13, 13)\",\"--blue\":\"rgb(2, 133, 255)\",\"--orange\":\"rgb(251, 106, 34)\",\"--green\":\"rgb(4, 184, 76)\",\"--red\":\"rgb(250, 66, 62)\",\"--purple\":\"rgb(146, 79, 247)\",\"--yellow\":\"rgb(255, 195, 0)\",\"--visualize-paint-gutter\":\"0px\",\"--viz-series-1\":\"rgb(44, 103, 197)\",\"--viz-series-2\":\"#f2893c\",\"--viz-series-3\":\"#5ec978\",\"--viz-series-4\":\"#ea77b0\",\"--viz-series-5\":\"#9a7aeb\",\"--viz-series-6\":\"#3db9b0\"},\"visualizationTheme\":\"light\"};\u003c\/script\u003e\n\u003cstyle id=\"codex-visualization-host-theme\"\u003e\n:root {}\n\u003c\/style\u003e\n\u003cscript\u003e\n(() =\u003e {\n  \/\/ Host colors are defaults; later authored styles can give the same names\n  \/\/ their own meaning (for example, --muted as a chart's label color).\n  const hostStyles = document.getElementById(\"codex-visualization-host-theme\");\n  const hostStyle = hostStyles.sheet.cssRules[0].style;\n  \/\/ Typography, geometry and interaction cursors still follow the host.\n  const styleForProperty = (property) =\u003e\n    \/^--(?:font-|radius|corner-shape$|control-spacing$|cursor-interaction$|icon-size$|page-content-inline-inset$|page-header-clearance$|visualize-paint-gutter$)\/.test(property)\n      ? document.documentElement.style\n      : hostStyle;\n  const initialGlobals =\n    globalThis.__codexVisualizationInitialGlobals ?? globalThis.openai;\n  delete globalThis.__codexVisualizationInitialGlobals;\n  if (initialGlobals?.statePersistence != null) {\n    globalThis.openai ??= {};\n    globalThis.openai.statePersistence = initialGlobals.statePersistence;\n    globalThis.openai.stateModelContext = initialGlobals.stateModelContext ?? \"none\";\n  }\n  if (!false) {\n    return;\n  }\n  let appliedProperties = [];\n  const applyHostStyleVariables = (styleVariables) =\u003e {\n    if (styleVariables == null || typeof styleVariables !== \"object\") {\n      return;\n    }\n    document.documentElement.toggleAttribute(\n      \"data-visualize-page-inline-inset\", typeof styleVariables[\"--page-content-inline-inset\"] === \"string\",\n    );\n    document.documentElement.toggleAttribute(\n      \"data-visualize-page-header\", typeof styleVariables[\"--page-header-clearance\"] === \"string\",\n    );\n    document.documentElement.toggleAttribute(\n      \"data-visualize-live\", typeof styleVariables[\"--font-line-height-base\"] === \"string\",\n    );\n    for (const property of appliedProperties) {\n      styleForProperty(property).removeProperty(property);\n    }\n    appliedProperties = [];\n    for (const [property, value] of Object.entries(styleVariables)) {\n      if (property.startsWith(\"--\") \u0026\u0026 typeof value === \"string\") {\n        styleForProperty(property).setProperty(property, value);\n        appliedProperties.push(property);\n      }\n    }\n  };\n\n  const syncHostStyles = (globals) =\u003e {\n    applyHostStyleVariables(globals?.visualizationStyleVariables);\n    if (globals?.visualizationTheme != null) {\n      hostStyles.dataset.visualizationTheme = globals.visualizationTheme;\n    }\n    const sandboxDocument = globalThis.frameElement?.ownerDocument;\n    if (sandboxDocument != null \u0026\u0026 globals?.visualizationTheme != null) {\n      let colorSchemeMeta = sandboxDocument.querySelector(\n        'meta[name=\"color-scheme\"]',\n      );\n      if (colorSchemeMeta == null) {\n        colorSchemeMeta = sandboxDocument.createElement(\"meta\");\n        colorSchemeMeta.name = \"color-scheme\";\n        sandboxDocument.head.appendChild(colorSchemeMeta);\n      }\n      colorSchemeMeta.content = globals.visualizationTheme;\n      sandboxDocument.documentElement.style.colorScheme =\n        globals.visualizationTheme;\n      \/\/ Paint the host surface behind transparent saved visualization documents.\n      sandboxDocument.documentElement.style.backgroundColor =\n        hostStyle.getPropertyValue(\"--background\");\n    }\n  };\n\n  syncHostStyles(initialGlobals);\n  globalThis.addEventListener(\"openai:set_globals\", (event) =\u003e {\n    syncHostStyles(event.detail?.globals);\n  });\n})();\n\u003c\/script\u003e\n\n\n\u003cscript\u003e\n(() =\u003e {\n  const reportEnvironmentError = (value) =\u003e {\n    const error = value instanceof Error ? value : new Error(String(value));\n    void globalThis.openai\n      .callTool(\n        \"__codex_inline_visualization_error__\",\n        {\n          message: error.message,\n          name: error.name,\n          stack: error.stack,\n        },\n      )\n      .catch(() =\u003e {});\n  };\n  const scriptSourceForRepair = (source) =\u003e {\n    if (!source) { return \"\"; }\n    try {\n      const base = new globalThis.URL(\"https:\/\/visualization.invalid\/\");\n      const url = new globalThis.URL(source, base);\n      if (url.protocol !== \"http:\" \u0026\u0026 url.protocol !== \"https:\") {\n        return url.protocol;\n      }\n      url.username = \"\";\n      url.password = \"\";\n      url.search = \"\";\n      url.hash = \"\";\n      if (url.origin === base.origin \u0026\u0026 !source.startsWith(\"\/\/\")) {\n        return url.pathname;\n      }\n      return url.href;\n    } catch {\n      return \"\";\n    }\n  };\n\n  globalThis.addEventListener(\"error\", (event) =\u003e {\n    if (event.target?.localName === \"script\") {\n      \/\/ A script's own onerror may render a fallback or load an alternative.\n      \/\/ Let that handler run; failures it throws still reach the global error path.\n      const handlesError = typeof event.target.onerror === \"function\";\n      globalThis.queueMicrotask(() =\u003e {\n        if (!handlesError \u0026\u0026 !event.defaultPrevented) {\n          const source = scriptSourceForRepair(\n            event.target.getAttribute(\"src\")?.trim().slice(0, 2048),\n          );\n          const error = new Error(source\n            ? \"Visualization script could not be loaded: \" + source\n            : \"Visualization script could not be loaded\");\n          error.name = \"VisualizationScriptLoadError\";\n          reportEnvironmentError(error);\n        }\n      });\n    } else if (event.target === globalThis) {\n      \/\/ The browser defers resize notifications to another frame; no script threw.\n      if (event.error == null \u0026\u0026 (\n        event.message === \"ResizeObserver loop completed with undelivered notifications.\" ||\n        event.message === \"ResizeObserver loop limit exceeded\"\n      )) {\n        return;\n      }\n      reportEnvironmentError(event.error ?? event.message);\n    }\n  }, true);\n  globalThis.addEventListener(\"unhandledrejection\", (event) =\u003e {\n    reportEnvironmentError(event.reason);\n  });\n})();\n\u003c\/script\u003e\n\u003cscript id=\"codex-visualization-variants\"\u003e\n(() =\u003e {\n  let previousSnapshot = \"[]\";\n  let roots = [];\n  const report = () =\u003e {\n    roots = Array.from(\n      document.querySelectorAll(\".viz-carousel[data-active-variant]\"),\n    ).slice(0, 32);\n    const selectedVariants = roots.flatMap((root, carousel) =\u003e {\n      const variant = root.dataset.activeVariant;\n      const label = root.getAttribute(\"aria-label\")?.slice(0, 256);\n      return variant ? [{\n        carousel,\n        ...(label == null ? {} : { label }),\n        variant: variant.slice(0, 256),\n      }] : [];\n    });\n    const snapshot = JSON.stringify(selectedVariants);\n    if (snapshot !== previousSnapshot) {\n      previousSnapshot = snapshot;\n      void globalThis.openai.callTool(\"__codex_visualization_annotations__\", {\n        type: \"variants\",\n        selectedVariants,\n      }).catch(() =\u003e {});\n    }\n  };\n  const observer = new MutationObserver((records) =\u003e {\n    if (records.some((record) =\u003e record.type === \"attributes\") || roots.some((root) =\u003e !root.isConnected)) {\n      report();\n    }\n  });\n  observer.observe(document, {\n    childList: true,\n    subtree: true,\n    attributes: true,\n    attributeFilter: [\"data-active-variant\"],\n  });\n  report();\n  globalThis.addEventListener(\"pagehide\", () =\u003e observer.disconnect(), { once: true });\n})();\n\u003c\/script\u003e\n\u003cscript\u003e\n(() =\u003e {\n  const selectorInRoot = (target, root) =\u003e {\n    const parts = [];\n    for (let element = target; element != null \u0026\u0026 parts.length \u003c 64; element = element.parentElement) {\n      const id = element.id \u0026\u0026 globalThis.CSS?.escape?.(element.id);\n      if (id \u0026\u0026 id.length \u003c= 256) {\n        const selector = [\"#\" + id, ...parts].join(\" \u003e \");\n        const matches = root.querySelectorAll(selector);\n        if (matches.length === 1 \u0026\u0026 matches[0] === target) {\n          return selector;\n        }\n      }\n      let index = 1;\n      for (let sibling = element.previousElementSibling; sibling != null; sibling = sibling.previousElementSibling) {\n        if (sibling.localName === element.localName) { index += 1; }\n      }\n      const tag = globalThis.CSS?.escape?.(element.localName) ?? element.localName;\n      parts.unshift(tag + \":nth-of-type(\" + index + \")\");\n      if (parts.join(\" \u003e \").length \u003e 1024) { return null; }\n      if (element.parentElement == null) {\n        const selector = parts.join(\" \u003e \");\n        const matches = root.querySelectorAll(selector);\n        return matches.length === 1 \u0026\u0026 matches[0] === target ? selector : null;\n      }\n    }\n    return null;\n  };\n  const describeTarget = (element) =\u003e {\n    if (element == null || !element.isConnected) { return undefined; }\n    const tagName = element.localName.toLowerCase();\n    if (!\/^[a-z][a-z0-9-]{0,63}$\/.test(tagName)) { return undefined; }\n    const parts = [];\n    let current = element;\n    for (let depth = 0; depth \u003c 16; depth += 1) {\n      const root = current.getRootNode();\n      const selector = selectorInRoot(current, root);\n      if (selector == null) { return undefined; }\n      parts.unshift(selector);\n      if (root === document) {\n        const selector = parts.length === 1 ? parts[0] : \"shadow:\" + parts.join(\"\u003e\u003e\u003e\");\n        if (selector.length \u003e 1024) { return undefined; }\n        const label = (element.getAttribute(\"aria-label\") || element.getAttribute(\"title\") || \"\")\n          .replace(\/[\\u0000-\\u001f\\u007f-\\u009f\\u061c\\u200e\\u200f\\u2028-\\u202e\\u2066-\\u2069]\/gu, \" \")\n          .replace(\/\\s+\/g, \" \").trim().slice(0, 160);\n        return { selector, tagName, ...(label ? { label } : {}) };\n      }\n      if (!(root instanceof ShadowRoot) || root.mode !== \"open\") { return undefined; }\n      current = root.host;\n    }\n    return undefined;\n  };\n  let previousSnapshot = JSON.stringify({ isHovering: false });\n  const reportHover = (event, isHovering, isTouch = false, target) =\u003e {\n    const report = isTouch\n      ? { isHovering: false, pointerType: \"touch\" }\n      : { isHovering, ...(isHovering \u0026\u0026 target != null ? { target } : {}) };\n    const snapshot = JSON.stringify(report);\n    if (snapshot === previousSnapshot) {\n      return;\n    }\n    previousSnapshot = snapshot;\n    void globalThis.openai\n      .callTool(\n        \"__codex_inline_visualization_hover__\",\n        { ...report, eventTime: globalThis.performance.timeOrigin + event.timeStamp },\n      )\n      .catch(() =\u003e {});\n  };\n\n  let hoveredElement;\n  let isTouchHover = false;\n  let latestHover = null;\n  let latestResetTime = 0;\n  const handlePointerHover = (event) =\u003e {\n    const isTouch = event.pointerType === \"touch\";\n    const element = isTouch ? undefined : event.composedPath().find((element) =\u003e element instanceof Element);\n    latestHover = { event, element, isTouch };\n    if (event.type === \"pointermove\" \u0026\u0026 element === hoveredElement \u0026\u0026 isTouch === isTouchHover) {\n      return;\n    }\n    hoveredElement = element;\n    isTouchHover = isTouch;\n    reportHover(event, !isTouch, isTouch, isTouch ? undefined : describeTarget(element));\n  };\n  const clearHover = (event) =\u003e {\n    hoveredElement = undefined;\n    isTouchHover = false;\n    latestHover = null;\n    reportHover(event, false);\n  };\n  globalThis.addEventListener(\"openai:set_globals\", (event) =\u003e {\n    const resetTime = event.detail?.globals?.visualizationHoverReset;\n    if (typeof resetTime !== \"number\" || !Number.isFinite(resetTime) || resetTime \u003c= latestResetTime) {\n      return;\n    }\n    latestResetTime = resetTime;\n    const latest = latestHover;\n    hoveredElement = undefined;\n    isTouchHover = false;\n    latestHover = null;\n    previousSnapshot = JSON.stringify({ isHovering: false });\n    \/\/ A host-observed exit can arrive after the pointer has already reentered.\n    if (latest != null \u0026\u0026 globalThis.performance.timeOrigin + latest.event.timeStamp \u003e resetTime) {\n      latestHover = latest;\n      hoveredElement = latest.element;\n      isTouchHover = latest.isTouch;\n      reportHover(latest.event, !latest.isTouch, latest.isTouch,\n        latest.isTouch ? undefined : describeTarget(latest.element));\n    }\n  });\n  globalThis.addEventListener(\"pointerover\", handlePointerHover, { capture: true });\n  \/\/ Moves between descendants in one shadow root do not emit pointerover outside\n  \/\/ that root. The identity guard avoids selector work while a target is unchanged.\n  globalThis.addEventListener(\"pointermove\", handlePointerHover, { capture: true });\n  globalThis.addEventListener(\n    \"pointerout\",\n    (event) =\u003e {\n      if (event.pointerType !== \"touch\" \u0026\u0026 event.relatedTarget == null) {\n        clearHover(event);\n      }\n    },\n    { capture: true },\n  );\n  globalThis.addEventListener(\"pagehide\", clearHover);\n})();\n\u003c\/script\u003e\n\u003cscript\u003e\n(() =\u003e {\n  const report = (method) =\u003e {\n    void globalThis.openai.callTool(\"__codex_inline_visualization_input__\", { method }).catch(() =\u003e {});\n  };\n  globalThis.addEventListener(\"pointerdown\", () =\u003e report(\"pointer\"), { capture: true });\n  globalThis.addEventListener(\"keydown\", (event) =\u003e {\n    if (!event.isComposing \u0026\u0026 event.key !== \"Shift\" \u0026\u0026 !event.altKey \u0026\u0026 !event.ctrlKey \u0026\u0026 !event.metaKey) {\n      report([\"Tab\",\"ArrowLeft\",\"ArrowRight\",\"ArrowUp\",\"ArrowDown\"].includes(event.key) ? \"keyboard-navigation\" : \"keyboard\");\n    }\n  }, { capture: true });\n})();\n\u003c\/script\u003e\n\u003cscript\u003e\n(() =\u003e {\n  const bubbledClicks = new WeakSet();\n  const interactiveSelector = [\n    \"button\", \"input\", \"select\", \"textarea\", \"label\", \"summary\", \"a[href]\",\n    \"audio[controls]\", \"video[controls]\", \"[onclick]\", \"[data-visualization-interactive]\",\n    '[contenteditable]:not([contenteditable=\"false\"])',\n    ...[\n      \"button\", \"checkbox\", \"combobox\", \"gridcell\", \"link\", \"listbox\",\n      \"menuitem\", \"menuitemcheckbox\", \"menuitemradio\", \"option\", \"radio\",\n      \"scrollbar\", \"searchbox\", \"slider\", \"spinbutton\", \"switch\", \"tab\",\n      \"textbox\", \"treeitem\",\n    ].map((role) =\u003e '[role~=\"' + role + '\"]'),\n  ].join(\",\");\n\n  globalThis.addEventListener(\"click\", (event) =\u003e bubbledClicks.add(event));\n  globalThis.addEventListener(\"click\", (event) =\u003e {\n    \/\/ Capture the path before a control can remove itself. Custom delegated\n    \/\/ controls can opt in with data-visualization-interactive.\n    const elements = event.composedPath().filter((target) =\u003e target instanceof Element);\n    const control = elements.find((element) =\u003e element.matches(interactiveSelector));\n    const widgetControl = event.isTrusted \u0026\u0026 control != null \u0026\u0026\n      !control.matches('img, [role~=\"img\"]') \u0026\u0026\n      !elements.some((element) =\u003e element.matches('a[href], [role~=\"link\"]'));\n    const isInteractiveTarget = control != null || elements.some((element) =\u003e\n      element.hasAttribute(\"tabindex\") \u0026\u0026 element.tabIndex \u003e= 0) ||\n      (elements[0] != null \u0026\u0026 getComputedStyle(elements[0]).cursor === \"pointer\");\n    \/\/ Use a task, not a microtask: native dispatch can run microtasks between\n    \/\/ listeners. Propagation flags are reset when dispatch finishes:\n    \/\/ https:\/\/dom.spec.whatwg.org\/#concept-event-dispatch\n    globalThis.setTimeout(() =\u003e {\n      void globalThis.openai.callTool(\"__codex_inline_visualization_click__\", {\n        ...(widgetControl ? {widgetControl: true} : {}),\n        isInteractive: isInteractiveTarget || event.defaultPrevented ||\n          (event.bubbles \u0026\u0026 !bubbledClicks.has(event)),\n      }).catch(() =\u003e {});\n    }, 0);\n  }, { capture: true });\n})();\n\u003c\/script\u003e\n\u003cscript\u003e\n(() =\u003e {\n  globalThis.addEventListener(\"keydown\", (event) =\u003e {\n    if (event.isComposing || event.altKey || event.ctrlKey || event.metaKey ||\n      event.shiftKey || ![\"ArrowLeft\", \"ArrowRight\", \"Escape\"].includes(event.key)) {\n      return;\n    }\n    const target = event.composedPath().find((element) =\u003e element instanceof HTMLElement);\n    const editable = target?.closest(\"[contenteditable]\");\n    const editing = target \u0026\u0026 (target.isContentEditable ||\n      (editable \u0026\u0026 editable.getAttribute(\"contenteditable\") !== \"false\") ||\n      target.closest('input, textarea, select, [role=\"slider\"], [role=\"spinbutton\"], [role=\"combobox\"], [role=\"listbox\"], [role=\"grid\"], [role=\"tree\"], [role=\"tablist\"], [role=\"menu\"]'));\n    if (event.key !== \"Escape\" \u0026\u0026 editing) { return; }\n    \/\/ Let the widget handle the key before forwarding it across the sandbox.\n    globalThis.setTimeout(() =\u003e {\n      if (!event.defaultPrevented \u0026\u0026 globalThis.openai?.displayMode === \"fullscreen\") {\n        void globalThis.openai.callTool(\"__codex_inline_visualization_preview_key__\", {\n          key: event.key,\n        }).catch(() =\u003e {});\n      }\n    }, 0);\n  });\n})();\n\u003c\/script\u003e\n\n\n\n\n\n\n\n\n\u003cscript\u003e\n(() =\u003e {\n  const contentRange = document.createRange();\n  let waitingForStreamRoot = false ? document.querySelector(\"main\") : null;\n  const markStreamReady = () =\u003e {\n    waitingForStreamRoot = null;\n    globalThis.removeEventListener(\"openai:set_globals\", onStreamGlobals);\n    void globalThis.openai.callTool(\"__codex_inline_visualization_ready__\", {}).catch(() =\u003e {});\n  };\n  const onStreamGlobals = (event) =\u003e {\n    const update = event.detail?.globals?.__appBlockStream;\n    if (update?.isFinal) {\n      markStreamReady();\n    } else if (update != null) {\n      scheduleHeightReport();\n    }\n  };\n  const measureChild = (child, bodyStyle) =\u003e {\n    const rect = child.getBoundingClientRect();\n    \/\/ Child margins can collapse above the root without adding to its height.\n    \/\/ The host adds body padding separately.\n    return Math.max(child.scrollHeight, rect.height) + Math.max(\n      0,\n      rect.top - document.body.getBoundingClientRect().top - parseFloat(bodyStyle.paddingTop),\n    );\n  };\n  let previousMeasurement = null;\n  let lastReportedHeight;\n  let heightReportTimer = null;\n  const reportHeight = () =\u003e {\n    const bodyChildren = Array.from(document.body.children).filter(\n      (element) =\u003e\n        element.tagName !== \"SCRIPT\" \u0026\u0026\n        element.tagName !== \"STYLE\" \u0026\u0026\n        element.getAttribute(\"role\") !== \"tooltip\",\n    );\n    const bodyStyle = globalThis.getComputedStyle(document.body);\n    const viewportWidth = globalThis.innerWidth;\n    const contentWidth = Math.max(\n      0,\n      Math.round(\n        viewportWidth -\n          parseFloat(bodyStyle.paddingLeft) -\n          parseFloat(bodyStyle.paddingRight),\n      ),\n    );\n    let contentHeight;\n    if (bodyChildren.length === 0) {\n      contentRange.selectNodeContents(document.body);\n      contentHeight = contentRange.getBoundingClientRect().height;\n    } else if (bodyChildren.length === 1) {\n      contentHeight = measureChild(bodyChildren[0], bodyStyle);\n    } else {\n      const bodyTop = document.body.getBoundingClientRect().top;\n      contentHeight = Math.max(\n        ...bodyChildren.map(\n          (bodyChild) =\u003e bodyChild.getBoundingClientRect().bottom - bodyTop,\n        ),\n      );\n    }\n    \/\/ A short first line is drawable before the chart is tall enough for a graphical preview.\n    \/\/ Check before deduplicating height: text can arrive inside a fixed-height empty box.\n    if (waitingForStreamRoot != null \u0026\u0026 contentWidth \u003e 0 \u0026\u0026 (\n      contentHeight \u003e= 32 ||\n      (contentHeight \u003e 0 \u0026\u0026 waitingForStreamRoot.innerText.trim() !== \"\")\n    )) {\n      markStreamReady();\n    }\n    const viewportHeight = globalThis.innerHeight;\n    const previous = previousMeasurement;\n    const sameWidth = viewportWidth === previous?.viewportWidth \u0026\u0026 contentWidth === previous.contentWidth;\n    \/\/ At fractional zoom, innerHeight and CSS heights can round a pixel apart.\n    const matchesViewport = (height) =\u003e Math.abs(height - viewportHeight) \u003c= 1;\n    const root = bodyChildren.length === 1 ? bodyChildren[0] : null;\n    const minimum = root \u0026\u0026 parseFloat(globalThis.getComputedStyle(root).minHeight);\n    let initialMinimum = matchesViewport(minimum) ? minimum : null;\n    let tracksViewportHeight = false;\n    if (\n      lastReportedHeight \u003e 0 \u0026\u0026\n      initialMinimum != null \u0026\u0026\n      root === previous?.root \u0026\u0026\n      previous.initialMinimum != null\n    ) {\n      const gutter = 2 * parseFloat(bodyStyle.getPropertyValue(\"--visualize-paint-gutter\"));\n      \/\/ Keep the same minimum while waiting for the host to resize the frame\n      \/\/ and when it acknowledges our height with the paint gutter added.\n      if (gutter \u003e 0 \u0026\u0026 (\n        viewportHeight === previous.viewportHeight ||\n        matchesViewport(Math.ceil(lastReportedHeight) + gutter)\n      )) {\n        initialMinimum = previous.initialMinimum;\n        \/\/ A width-based minimum can match the viewport during a drag. Wait\n        \/\/ for a height-only resize before treating the match as feedback.\n        tracksViewportHeight = previous.tracksViewportHeight ||\n          (sameWidth \u0026\u0026 !matchesViewport(previous.viewportHeight));\n      }\n    }\n    previousMeasurement = {\n      contentHeight, contentWidth, viewportHeight, viewportWidth, root, initialMinimum, tracksViewportHeight,\n    };\n\n    \/\/ Measure wrapped content at the original minimum. Also correct any\n    \/\/ growth reported before the first height-only resize.\n    if (tracksViewportHeight \u0026\u0026 !matchesViewport(initialMinimum) \u0026\u0026 matchesViewport(contentHeight)) {\n      if (sameWidth \u0026\u0026 (previous.tracksViewportHeight || previous.viewportHeight === initialMinimum)) {\n        return;\n      }\n      const authoredStyle = root.getAttribute(\"style\");\n      root.setAttribute(\"style\", root.style.cssText + \" min-height: \" + initialMinimum + \"px !important;\");\n      try {\n        contentHeight = measureChild(root, bodyStyle);\n      } finally {\n        if (authoredStyle == null) {\n          root.removeAttribute(\"style\");\n        } else {\n          root.setAttribute(\"style\", authoredStyle);\n        }\n      }\n      if (sameWidth \u0026\u0026 contentHeight === lastReportedHeight) {\n        return;\n      }\n    } else if (\n      sameWidth \u0026\u0026\n      contentHeight - previous.contentHeight === viewportHeight - previous.viewportHeight\n    ) {\n      return;\n    }\n    lastReportedHeight = contentHeight;\n    void globalThis.openai\n      .callTool(\n        \"__codex_inline_visualization_height__\",\n        { height: contentHeight, width: contentWidth },\n      )\n      .catch(() =\u003e {});\n  };\n  const scheduleHeightReport = () =\u003e {\n    if (heightReportTimer != null) {\n      return;\n    }\n    \/\/ Offscreen frames can suspend animation callbacks while their content loads.\n    heightReportTimer = globalThis.setTimeout(() =\u003e {\n      heightReportTimer = null;\n      reportHeight();\n    }, 0);\n  };\n\n  const resizeObserver = new ResizeObserver(scheduleHeightReport);\n  const observeBodyChildren = () =\u003e {\n    for (const element of document.body.children) {\n      resizeObserver.observe(element);\n    }\n  };\n  resizeObserver.observe(document.body);\n  observeBodyChildren();\n  new MutationObserver(() =\u003e {\n    observeBodyChildren();\n    scheduleHeightReport();\n  }).observe(document.body, {\n    childList: true,\n    subtree: true,\n    attributes: true,\n    attributeFilter: [\"style\", \"class\", \"height\", \"width\"],\n  });\n  globalThis.addEventListener(\"resize\", scheduleHeightReport);\n  if (waitingForStreamRoot != null) {\n    globalThis.addEventListener(\"openai:set_globals\", onStreamGlobals);\n    if (globalThis.openai?.__appBlockStream?.isFinal) {\n      markStreamReady();\n    }\n  }\n  reportHeight();\n})();\n\u003c\/script\u003e\n\u003cstyle\u003e\nhtml, body {\n  scrollbar-width: none !important;\n  \n}\nhtml::-webkit-scrollbar, body::-webkit-scrollbar { display: none !important; }\n\u003c\/style\u003e\n\u003c\/body\u003e","brand":"coolmicraft","offers":[{"title":"Default Title","offer_id":68295630061783,"sku":"T09526112605-小号新铝合金三角尺","price":44.99,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0855\/5347\/9895\/files\/100655940348411905.webp?v=1796028020","url":"https:\/\/coolmicraft.com\/products\/%f0%9f%93%90-adjustable-rafter-square-with-pivoting-angle-guide-pencil-scribe-notches-%e2%9c%8f%ef%b8%8f","provider":"coolmicraft","version":"1.0","type":"link"}