/** * Spec-exact ECMA-376 / ISO-IEC-29500-1 preset geometry for `gear6` * (ISO/IEC 29500-1 section 20.1.10.55). * * Transcribed verbatim from Microsoft's authoritative * `presetShapeDefinitions.xml`, sourced from the Apache POI mirror * `poi/src/main/resources/org/apache/poi/sl/draw/geom/presetShapeDefinitions.xml` * (fetched 2026-09-05). This replaces the earlier hand-rolled `buildGearN` * trapezoid-tooth approximation in `preset-shape-definitions-tabs-decorations.ts`, * which computed tooth/valley vertices from a precomputed trig table and never * consumed `adj2` (COM-verified 2026-09-05: `Shape.Adjustments.Count` is 2, not * 1). The spec-exact path below routes every tooth root through an `arcTo` * whose radius is `(rw, rh)` (the shape's bounding ellipse shrunk by the tooth * depth `th`, itself derived from `adj1`); the fillet PowerPoint renders * between adjacent teeth is exactly this root-circle arc, and its span * (`swAng1`/`swAng2`) narrows as `adj2` (`lFD`, the flank offset) grows, which * is how real PowerPoint's `adj2` fillet radius reaches the silhouette: a * larger `adj2` widens the flat root land (`xE`/`xF` points) and shortens the * fillet arc's sweep, visually rounding the tooth-to-root transition. * * No deviations from the canonical token stream: every operator here * (`pin`, mul-div, `+-`, `+/`, `?:`, `at2`, `cos`, `sin`, `mod`) is evaluated * exactly as ISO/IEC 29500-1 section 20.1.9.11 specifies by * `guide-formula-eval.ts`; `at2`'s ECMA operand order (`at2 x y = atan2(y, x)`) * matches `preset-shape-definitions-curved-arrows-exact.ts`'s documented * convention. The guide name `a1`/`a2` is intentionally reused mid-list (once * as the pinned `adj1`/`adj2` value, later as an arm's polar angle): guides * evaluate in array order into a single mutable map, so the later definition * shadows the earlier one for every formula after it, matching * `evaluateGuides` in `guide-formula-api.ts`. * * `preset-shape-definitions-table.ts` imports `gear6` from here (and `gear9` * from the sibling `preset-shape-definitions-gear9.ts`) instead of the old * `buildGearN` export in `preset-shape-definitions-tabs-decorations.ts`. */ import type { PresetShapeGeometryDefinition } from './preset-shape-definitions-table.js'; export declare const gear6: PresetShapeGeometryDefinition; //# sourceMappingURL=preset-shape-definitions-gear6.d.ts.map