ooxml-core 1.40.0 → 1.42.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/dist/PptxHandler-73QIJ6SD.cjs +14 -0
- package/dist/{PptxHandler-2WYH66TS.mjs → PptxHandler-A2J4PCOB.mjs} +2 -2
- package/dist/PptxHandler-OGLVLX2T.mjs +5 -0
- package/dist/{PresentationBuilder-BUUVVMNI.cjs → PresentationBuilder-6S5PJXXF.cjs} +6 -6
- package/dist/{PresentationBuilder-VHDHLGIK.mjs → PresentationBuilder-APJKCMVS.mjs} +2 -2
- package/dist/{PresentationBuilder-RTHLLHLE.mjs → PresentationBuilder-F3BWDERK.mjs} +3 -3
- package/dist/automation/index.cjs +5322 -3452
- package/dist/automation/index.mjs +5322 -3452
- package/dist/chart/index.cjs +5 -5
- package/dist/chart/index.mjs +5 -5
- package/dist/{chunk-EXSPNK6W.cjs → chunk-3J6VIKLP.cjs} +3 -3
- package/dist/chunk-CODMW5KF.cjs +110 -0
- package/dist/{chunk-3E4GSBC7.mjs → chunk-CPSTCCRD.mjs} +4 -4
- package/dist/{chunk-6XAAJTA3.mjs → chunk-IPV3J3I5.mjs} +4925 -3049
- package/dist/{chunk-HLBIT5H4.mjs → chunk-MXA67O7R.mjs} +1 -1
- package/dist/{chunk-OGD5OQK2.mjs → chunk-N6X5CJZP.mjs} +6723 -4840
- package/dist/chunk-O3YGBYGZ.mjs +104 -0
- package/dist/{chunk-SEGPDD5W.cjs → chunk-QZPOPUI5.cjs} +4925 -3048
- package/dist/{chunk-5BVSDSJZ.mjs → chunk-VKFKEVHK.mjs} +1 -1
- package/dist/{chunk-AZNF3IOI.mjs → chunk-VV724DWE.mjs} +87 -11
- package/dist/{chunk-NHV47JOE.mjs → chunk-XVB3CBNM.mjs} +53 -9
- package/dist/{chunk-U6FMLGWH.cjs → chunk-YNQRXFTC.cjs} +1317 -1273
- package/dist/{chunk-725QJW4K.mjs → chunk-ZUEN4RQG.mjs} +1 -1
- package/dist/color/index.cjs +36 -0
- package/dist/color/index.d.ts +1 -0
- package/dist/color/index.d.ts.map +1 -1
- package/dist/color/index.mjs +35 -1
- package/dist/color/office-gradient-stops.d.ts +27 -0
- package/dist/color/office-gradient-stops.d.ts.map +1 -0
- package/dist/diagram/index.cjs +5223 -3170
- package/dist/diagram/index.d.ts +1 -0
- package/dist/diagram/index.d.ts.map +1 -1
- package/dist/diagram/index.mjs +5218 -3171
- package/dist/docx/embedded.cjs +4862 -3000
- package/dist/docx/embedded.mjs +4862 -3000
- package/dist/docx/index.cjs +4970 -3072
- package/dist/docx/index.mjs +4970 -3072
- package/dist/docx/layout/index.cjs +4952 -3054
- package/dist/docx/layout/index.mjs +4952 -3054
- package/dist/docx/load/index.cjs +4999 -3137
- package/dist/docx/load/index.mjs +4999 -3137
- package/dist/docx/shape-svg.d.ts.map +1 -1
- package/dist/docx/ui/index.cjs +4907 -3045
- package/dist/docx/ui/index.mjs +4907 -3045
- package/dist/drawingml/dash-pattern.d.ts +61 -0
- package/dist/drawingml/dash-pattern.d.ts.map +1 -0
- package/dist/drawingml/index.cjs +319 -53
- package/dist/drawingml/index.d.ts +3 -0
- package/dist/drawingml/index.d.ts.map +1 -1
- package/dist/drawingml/index.mjs +310 -54
- package/dist/drawingml/path-data.d.ts.map +1 -1
- package/dist/drawingml/rect-path-gradient.d.ts +17 -0
- package/dist/drawingml/rect-path-gradient.d.ts.map +1 -1
- package/dist/drawingml/shape-path-gradient.d.ts +57 -0
- package/dist/drawingml/shape-path-gradient.d.ts.map +1 -0
- package/dist/geometry/index.cjs +4117 -2254
- package/dist/geometry/index.mjs +4117 -2255
- package/dist/geometry/ooxml-arc.d.ts +10 -1
- package/dist/geometry/ooxml-arc.d.ts.map +1 -1
- package/dist/geometry/preset-shape-definitions-action-buttons.d.ts +7 -36
- package/dist/geometry/preset-shape-definitions-action-buttons.d.ts.map +1 -1
- package/dist/geometry/preset-shape-definitions-connectors-brackets.d.ts.map +1 -1
- package/dist/geometry/preset-shape-definitions-exact-action-buttons.d.ts +19 -0
- package/dist/geometry/preset-shape-definitions-exact-action-buttons.d.ts.map +1 -0
- package/dist/geometry/preset-shape-definitions-exact-arcs.d.ts +14 -0
- package/dist/geometry/preset-shape-definitions-exact-arcs.d.ts.map +1 -0
- package/dist/geometry/preset-shape-definitions-exact-arrows.d.ts +11 -0
- package/dist/geometry/preset-shape-definitions-exact-arrows.d.ts.map +1 -0
- package/dist/geometry/preset-shape-definitions-exact-basic.d.ts +12 -0
- package/dist/geometry/preset-shape-definitions-exact-basic.d.ts.map +1 -0
- package/dist/geometry/preset-shape-definitions-exact-circular.d.ts +18 -0
- package/dist/geometry/preset-shape-definitions-exact-circular.d.ts.map +1 -0
- package/dist/geometry/preset-shape-definitions-exact-ellipse-ribbons.d.ts +16 -0
- package/dist/geometry/preset-shape-definitions-exact-ellipse-ribbons.d.ts.map +1 -0
- package/dist/geometry/preset-shape-definitions-exact-funnel.d.ts +13 -0
- package/dist/geometry/preset-shape-definitions-exact-funnel.d.ts.map +1 -0
- package/dist/geometry/preset-shape-definitions-exact-left-right-ribbon.d.ts +13 -0
- package/dist/geometry/preset-shape-definitions-exact-left-right-ribbon.d.ts.map +1 -0
- package/dist/geometry/preset-shape-definitions-exact-math.d.ts +14 -0
- package/dist/geometry/preset-shape-definitions-exact-math.d.ts.map +1 -0
- package/dist/geometry/preset-shape-definitions-exact-misc.d.ts +11 -0
- package/dist/geometry/preset-shape-definitions-exact-misc.d.ts.map +1 -0
- package/dist/geometry/preset-shape-definitions-exact-ribbons.d.ts +12 -0
- package/dist/geometry/preset-shape-definitions-exact-ribbons.d.ts.map +1 -0
- package/dist/geometry/preset-shape-definitions-exact-scrolls.d.ts +13 -0
- package/dist/geometry/preset-shape-definitions-exact-scrolls.d.ts.map +1 -0
- package/dist/geometry/preset-shape-definitions-flowchart.d.ts.map +1 -1
- package/dist/geometry/preset-shape-definitions-misc.d.ts.map +1 -1
- package/dist/geometry/preset-shape-definitions-table.d.ts.map +1 -1
- package/dist/geometry/preset-shape-exact-dsl.d.ts +30 -0
- package/dist/geometry/preset-shape-exact-dsl.d.ts.map +1 -0
- package/dist/index.cjs +7637 -5216
- package/dist/index.mjs +7637 -5216
- package/dist/pptx/automation/index.cjs +5683 -3508
- package/dist/pptx/automation/index.d.ts +11 -17
- package/dist/pptx/automation/index.d.ts.map +1 -1
- package/dist/pptx/automation/index.mjs +156 -71
- package/dist/pptx/chunks/{elements-DheCTwi0.d.ts → elements-PBugbKtv.d.ts} +3 -848
- package/dist/pptx/chunks/elements-PBugbKtv.d.ts.map +1 -0
- package/dist/pptx/chunks/{index-Jcce8TlI.d.ts → index-BJuR8GLL.d.ts} +4 -4
- package/dist/pptx/chunks/{index-Jcce8TlI.d.ts.map → index-BJuR8GLL.d.ts.map} +1 -1
- package/dist/pptx/chunks/{index-CYukxWbl.d.ts → index-Rbvl2WaM.d.ts} +32 -13
- package/dist/pptx/chunks/index-Rbvl2WaM.d.ts.map +1 -0
- package/dist/pptx/chunks/{index-B4ofjG6_.d.ts → index-xoJGYTgQ.d.ts} +5 -3
- package/dist/pptx/chunks/index-xoJGYTgQ.d.ts.map +1 -0
- package/dist/pptx/chunks/table-C7ITXL3Y.d.ts +875 -0
- package/dist/pptx/chunks/table-C7ITXL3Y.d.ts.map +1 -0
- package/dist/pptx/chunks/{text-operations-CdgEnFuK.d.ts → text-operations-BNJr7aGa.d.ts} +3 -2
- package/dist/pptx/chunks/text-operations-BNJr7aGa.d.ts.map +1 -0
- package/dist/pptx/cli/index.cjs +5419 -3335
- package/dist/pptx/cli/index.d.ts +1 -1
- package/dist/pptx/cli/index.mjs +4 -4
- package/dist/pptx/converter/index.cjs +4936 -2978
- package/dist/pptx/converter/index.d.ts +1 -1
- package/dist/pptx/converter/index.mjs +2 -2
- package/dist/pptx/editor/render/custom-show-operations.cjs +2 -2
- package/dist/pptx/editor/render/custom-show-operations.mjs +1 -1
- package/dist/pptx/editor/render/find-replace.cjs +15 -15
- package/dist/pptx/editor/render/find-replace.d.ts +2 -2
- package/dist/pptx/editor/render/find-replace.mjs +2 -2
- package/dist/pptx/editor/render/slide-operations.cjs +9 -9
- package/dist/pptx/editor/render/slide-operations.mjs +3 -3
- package/dist/pptx/editor/render/table-data-grid-ops.cjs +5 -5
- package/dist/pptx/editor/render/table-data-grid-ops.mjs +1 -1
- package/dist/pptx/editor/render/table-layout.cjs +6 -6
- package/dist/pptx/editor/render/table-layout.d.ts +8 -37
- package/dist/pptx/editor/render/table-layout.d.ts.map +1 -1
- package/dist/pptx/editor/render/table-layout.mjs +1 -1
- package/dist/pptx/editor/render/text-runs-style-patch.d.ts +1 -1
- package/dist/pptx/editor/render/text-style-scope.d.ts +1 -1
- package/dist/pptx/index.cjs +7298 -5162
- package/dist/pptx/index.d.ts +7 -6
- package/dist/pptx/index.mjs +5 -5
- package/dist/pptx/node/index.d.ts +1 -1
- package/dist/teams/index.cjs +5332 -3307
- package/dist/teams/index.mjs +5332 -3307
- package/dist/text/font-metrics/design-advances.generated.d.ts +3 -1
- package/dist/text/font-metrics/design-advances.generated.d.ts.map +1 -1
- package/dist/text/font-metrics/office-font-metrics.generated.d.ts +23 -0
- package/dist/text/font-metrics/office-font-metrics.generated.d.ts.map +1 -0
- package/dist/text/font-metrics/vertical-metrics.d.ts +35 -0
- package/dist/text/font-metrics/vertical-metrics.d.ts.map +1 -0
- package/dist/text/index.cjs +268 -0
- package/dist/text/index.d.ts +1 -0
- package/dist/text/index.d.ts.map +1 -1
- package/dist/text/index.mjs +267 -1
- package/dist/visio/index.cjs +8 -0
- package/dist/visio/index.mjs +8 -0
- package/dist/visio/ui/index.cjs +8 -0
- package/dist/visio/ui/index.mjs +8 -0
- package/dist/xlsx/collab/index.cjs +5084 -3222
- package/dist/xlsx/collab/index.mjs +5084 -3222
- package/dist/xlsx/index.cjs +5298 -3404
- package/dist/xlsx/index.mjs +5298 -3404
- package/dist/xlsx/layout/shape-paint.d.ts.map +1 -1
- package/dist/xlsx/load/index.cjs +5103 -3241
- package/dist/xlsx/load/index.mjs +5103 -3241
- package/dist/xlsx/ui/index.cjs +5261 -3399
- package/dist/xlsx/ui/index.mjs +5261 -3399
- package/package.json +1 -1
- package/dist/PptxHandler-SD6VWF3I.mjs +0 -5
- package/dist/PptxHandler-ZHWWOO2X.cjs +0 -14
- package/dist/chunk-3IT6ZD7K.mjs +0 -213
- package/dist/chunk-FRUB573B.cjs +0 -219
- package/dist/pptx/chunks/elements-DheCTwi0.d.ts.map +0 -1
- package/dist/pptx/chunks/index-B4ofjG6_.d.ts.map +0 -1
- package/dist/pptx/chunks/index-CYukxWbl.d.ts.map +0 -1
- package/dist/pptx/chunks/text-operations-CdgEnFuK.d.ts.map +0 -1
|
@@ -13,6 +13,8 @@ export interface ArcToResult {
|
|
|
13
13
|
/** Y coordinate of the arc endpoint. */
|
|
14
14
|
endY: number;
|
|
15
15
|
}
|
|
16
|
+
/** Parametric angle of the ellipse point seen at visual angle `visual` (radians). */
|
|
17
|
+
export declare function visualToParametric(visual: number, wR: number, hR: number): number;
|
|
16
18
|
/**
|
|
17
19
|
* Convert an OOXML `a:arcTo` command to an SVG arc path segment.
|
|
18
20
|
*
|
|
@@ -26,6 +28,13 @@ export interface ArcToResult {
|
|
|
26
28
|
* @param swAng - Sweep angle in 60000ths of a degree.
|
|
27
29
|
* @param penX - Current pen X position.
|
|
28
30
|
* @param penY - Current pen Y position.
|
|
31
|
+
* @param scaleX - Horizontal scale from the radii's own space (a path's `w`
|
|
32
|
+
* space) to the output. The visual-to-parametric angle conversion has to run
|
|
33
|
+
* in the radii's own space (where a `cloud` lobe is a circle), then scale.
|
|
34
|
+
* @param scaleY - Vertical counterpart of `scaleX`.
|
|
35
|
+
* @param parametric - Treat `stAng` / `swAng` as parametric angles instead of
|
|
36
|
+
* visual ones. Only for approximate hand-written definitions that were tuned
|
|
37
|
+
* that way and have no spec-exact replacement yet.
|
|
29
38
|
*/
|
|
30
|
-
export declare function ooxmlArcToSvg(wR: number, hR: number, stAng: number, swAng: number, penX: number, penY: number): ArcToResult | null;
|
|
39
|
+
export declare function ooxmlArcToSvg(wR: number, hR: number, stAng: number, swAng: number, penX: number, penY: number, scaleX?: number, scaleY?: number, parametric?: boolean): ArcToResult | null;
|
|
31
40
|
//# sourceMappingURL=ooxml-arc.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ooxml-arc.d.ts","sourceRoot":"","sources":["../../geometry/ooxml-arc.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH;;GAEG;AACH,MAAM,WAAW,WAAW;IAC3B,mEAAmE;IACnE,GAAG,EAAE,MAAM,CAAC;IACZ,wCAAwC;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,wCAAwC;IACxC,IAAI,EAAE,MAAM,CAAC;CACb;AAED
|
|
1
|
+
{"version":3,"file":"ooxml-arc.d.ts","sourceRoot":"","sources":["../../geometry/ooxml-arc.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH;;GAEG;AACH,MAAM,WAAW,WAAW;IAC3B,mEAAmE;IACnE,GAAG,EAAE,MAAM,CAAC;IACZ,wCAAwC;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,wCAAwC;IACxC,IAAI,EAAE,MAAM,CAAC;CACb;AAED,qFAAqF;AACrF,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAEjF;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,aAAa,CAC5B,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,MAAM,SAAI,EACV,MAAM,SAAI,EACV,UAAU,UAAQ,GAChB,WAAW,GAAG,IAAI,CAiFpB"}
|
|
@@ -1,45 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* ECMA-376 ST_ShapeType preset geometry definitions
|
|
2
|
+
* ECMA-376 ST_ShapeType preset geometry definitions: action buttons.
|
|
3
3
|
*
|
|
4
|
-
* The 12 `actionButton*` shapes (
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* `
|
|
8
|
-
* `
|
|
9
|
-
* rectangle. The inner glyph (home / help / sound / etc.) is rendered
|
|
10
|
-
* separately by the React layer via `ActionButtonGlyphOverlay`, so we only
|
|
11
|
-
* need to express the button frame here.
|
|
12
|
-
*
|
|
13
|
-
* Geometry: outer rectangle covering the full bounds, plus an inner inset
|
|
14
|
-
* rectangle (the bevel "well"). The inset is `ss / 16` — i.e. one sixteenth
|
|
15
|
-
* of the shorter side, i.e. the fixed literal fraction `6250` in the
|
|
16
|
-
* canonical 100000-based OOXML scale. COM-verified 2026-09-05
|
|
17
|
-
* (`Shape.Adjustments.Count` reads 0 for every `actionButton*` AutoShape at
|
|
18
|
-
* any size): unlike `roundRect`/`octagon`/etc., this fraction is NOT an
|
|
19
|
-
* adjustable guide in real PowerPoint - the 12 `actionButton*` presets ship
|
|
20
|
-
* with an EMPTY `avLst`, so a saved file that carries an `<a:gd name="adj"
|
|
21
|
-
* .../>` for one of them is authoring a guide name PowerPoint's own preset
|
|
22
|
-
* geometry does not recognise (the same corruption class documented in
|
|
23
|
-
* `preset-adjustment-validation.ts`: an unrecognised guide name on a preset
|
|
24
|
-
* that HAS real guides makes PowerPoint refuse to open the file). Diagonal
|
|
25
|
-
* lines from each outer corner to the matching inner corner ensure a
|
|
26
|
-
* stroked outline reads as a true bevel.
|
|
27
|
-
*
|
|
28
|
-
* All twelve shapes use identical geometry: a single helper, `buildActionButton`,
|
|
29
|
-
* stamps each definition with the right `name` so the table stays a one-line
|
|
30
|
-
* declaration per shape.
|
|
31
|
-
*
|
|
32
|
-
* Aggregation into `PRESET_SHAPE_GEOMETRY_TABLE` is performed manually in
|
|
33
|
-
* `preset-shape-definitions-table.ts` after batch agents return.
|
|
4
|
+
* The 12 `actionButton*` shapes are a flat rectangle plus the glyph (home,
|
|
5
|
+
* help, sound, ...) drawn as shaded sub-paths, exactly as PowerPoint draws
|
|
6
|
+
* them; the geometry itself lives in `preset-shape-definitions-exact-action-buttons`.
|
|
7
|
+
* COM-verified: `Shape.Adjustments.Count` reads 0 for every `actionButton*`, so
|
|
8
|
+
* there is no `avLst` (an authored guide would make PowerPoint refuse the file).
|
|
34
9
|
*/
|
|
35
10
|
import type { PresetShapeGeometryDefinition } from './preset-shape-definitions-table.js';
|
|
36
11
|
/**
|
|
37
|
-
* Action-button preset definitions exported for
|
|
12
|
+
* Action-button preset definitions exported for aggregation into
|
|
38
13
|
* `PRESET_SHAPE_GEOMETRY_TABLE`. Keys are ECMA-376 ST_ShapeType names.
|
|
39
|
-
*
|
|
40
|
-
* NOTE: this constant name (`ACTION_BUTTON_PRESET_DEFINITIONS`) intentionally
|
|
41
|
-
* differs from the React package's `ACTION_BUTTON_PRESETS` (editor-side icon
|
|
42
|
-
* paths) so the two never collide.
|
|
43
14
|
*/
|
|
44
15
|
export declare const ACTION_BUTTON_PRESET_DEFINITIONS: Record<string, PresetShapeGeometryDefinition>;
|
|
45
16
|
//# sourceMappingURL=preset-shape-definitions-action-buttons.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preset-shape-definitions-action-buttons.d.ts","sourceRoot":"","sources":["../../geometry/preset-shape-definitions-action-buttons.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"preset-shape-definitions-action-buttons.d.ts","sourceRoot":"","sources":["../../geometry/preset-shape-definitions-action-buttons.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AAGtF;;;GAGG;AACH,eAAO,MAAM,gCAAgC,EAAE,MAAM,CAAC,MAAM,EAAE,6BAA6B,CACpD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preset-shape-definitions-connectors-brackets.d.ts","sourceRoot":"","sources":["../../geometry/preset-shape-definitions-connectors-brackets.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"preset-shape-definitions-connectors-brackets.d.ts","sourceRoot":"","sources":["../../geometry/preset-shape-definitions-connectors-brackets.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AAgdtF;;;GAGG;AACH,eAAO,MAAM,sCAAsC,EAAE,MAAM,CAAC,MAAM,EAAE,6BAA6B,CAY/F,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Geometry of the twelve `actionButton*` presets.
|
|
3
|
+
*
|
|
4
|
+
* Measured on PowerPoint 16 (150 x 90 pt, mid-grey fill, shaded): the button is
|
|
5
|
+
* a flat rectangle (no bevel), and the glyph is drawn on it as filled sub-paths,
|
|
6
|
+
* `darken` for the dark parts (arrows, house roof, speaker, camera, the circle of
|
|
7
|
+
* the information button), `darkenLess` for the house body and the page, and
|
|
8
|
+
* `lighten` for the white of the "i". Outlines of every sub-path are stroked
|
|
9
|
+
* with the shape's line.
|
|
10
|
+
*
|
|
11
|
+
* Every glyph is placed relative to the centre `(hc, vc)` and scaled by `ss`;
|
|
12
|
+
* the numbers below are points on a 90 pt `ss`, written once and turned into
|
|
13
|
+
* guides here. The ECMA glyphs are polygons built on `dx2 = ss * 3 / 8`
|
|
14
|
+
* (33.75); the question mark is a chain of elliptical arcs fitted to PowerPoint's
|
|
15
|
+
* raster of a large button.
|
|
16
|
+
*/
|
|
17
|
+
import type { PresetShapeGeometryDefinition } from './preset-shape-definitions-table.js';
|
|
18
|
+
export declare const EXACT_ACTION_BUTTON_PRESET_DEFINITIONS: Record<string, PresetShapeGeometryDefinition>;
|
|
19
|
+
//# sourceMappingURL=preset-shape-definitions-exact-action-buttons.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preset-shape-definitions-exact-action-buttons.d.ts","sourceRoot":"","sources":["../../geometry/preset-shape-definitions-exact-action-buttons.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,EAAc,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AA2SlG,eAAO,MAAM,sCAAsC,EAAE,MAAM,CAAC,MAAM,EAAE,6BAA6B,CACzF,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Spec-exact geometry for the arc family (`arc`, `pie`, `chord`, `blockArc`),
|
|
3
|
+
* `pieWedge`, `noSmoking` and `halfFrame`.
|
|
4
|
+
*
|
|
5
|
+
* ECMA-376 arc angles are VISUAL angles: the direction from the ellipse centre
|
|
6
|
+
* to the point. On a circle that equals the parametric angle; on any
|
|
7
|
+
* non-square preset it does not, so PowerPoint and the old hand-written
|
|
8
|
+
* entries parted ways as soon as `adj` was not a
|
|
9
|
+
* multiple of 90 degrees. The arc engine now honours visual angles, so these
|
|
10
|
+
* definitions use the specification's own end point formulas (`cat2`, `sat2`).
|
|
11
|
+
*/
|
|
12
|
+
import type { PresetShapeGeometryDefinition } from './preset-shape-definitions-table.js';
|
|
13
|
+
export declare const EXACT_ARC_PRESET_DEFINITIONS: Record<string, PresetShapeGeometryDefinition>;
|
|
14
|
+
//# sourceMappingURL=preset-shape-definitions-exact-arcs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preset-shape-definitions-exact-arcs.d.ts","sourceRoot":"","sources":["../../geometry/preset-shape-definitions-exact-arcs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AA0JtF,eAAO,MAAM,4BAA4B,EAAE,MAAM,CAAC,MAAM,EAAE,6BAA6B,CAQtF,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Spec-exact geometry for the multi-headed block arrows whose hand-written
|
|
3
|
+
* entries disagreed with PowerPoint 16: `leftRightArrow`, `upDownArrow`,
|
|
4
|
+
* `quadArrow`, `leftUpArrow` and `leftRightUpArrow`.
|
|
5
|
+
*
|
|
6
|
+
* Authored in the ECMA-376 `presetShapeDefinitions` layout and compared with
|
|
7
|
+
* PowerPoint's raster at a non-square aspect with default and adjusted values.
|
|
8
|
+
*/
|
|
9
|
+
import type { PresetShapeGeometryDefinition } from './preset-shape-definitions-table.js';
|
|
10
|
+
export declare const EXACT_ARROW_PRESET_DEFINITIONS: Record<string, PresetShapeGeometryDefinition>;
|
|
11
|
+
//# sourceMappingURL=preset-shape-definitions-exact-arrows.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preset-shape-definitions-exact-arrows.d.ts","sourceRoot":"","sources":["../../geometry/preset-shape-definitions-exact-arrows.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AAiLtF,eAAO,MAAM,8BAA8B,EAAE,MAAM,CAAC,MAAM,EAAE,6BAA6B,CAOxF,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Spec-exact geometry for presets whose hand-written entries disagreed with
|
|
3
|
+
* PowerPoint 16: the three tab corners, brackets and braces (single and
|
|
4
|
+
* paired), `moon`, `diagStripe` and `nonIsoscelesTrapezoid`.
|
|
5
|
+
*
|
|
6
|
+
* Each definition mirrors the ECMA-376 `presetShapeDefinitions` layout (an
|
|
7
|
+
* `avLst`, a `gdLst` of one-line formulas, a `pathLst`) and was compared with
|
|
8
|
+
* PowerPoint's own raster at a non-square aspect, default and adjusted.
|
|
9
|
+
*/
|
|
10
|
+
import type { PresetShapeGeometryDefinition } from './preset-shape-definitions-table.js';
|
|
11
|
+
export declare const EXACT_BASIC_PRESET_DEFINITIONS: Record<string, PresetShapeGeometryDefinition>;
|
|
12
|
+
//# sourceMappingURL=preset-shape-definitions-exact-basic.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preset-shape-definitions-exact-basic.d.ts","sourceRoot":"","sources":["../../geometry/preset-shape-definitions-exact-basic.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AAkUtF,eAAO,MAAM,8BAA8B,EAAE,MAAM,CAAC,MAAM,EAAE,6BAA6B,CAiBxF,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Geometry of `circularArrow`, `leftCircularArrow` and `leftRightCircularArrow`.
|
|
3
|
+
*
|
|
4
|
+
* The three presets share one construction (ECMA-376 `presetShapeDefinitions`):
|
|
5
|
+
* a band of thickness `th` centred on an ellipse of radii `rw3` x `rh3`, whose
|
|
6
|
+
* head is a triangle `thh` wide on each side of the band centre. The head base
|
|
7
|
+
* centre `H` lies on the centre line at the band's end angle `enAng`, the tip
|
|
8
|
+
* `A` at `enAng + aAng` and the base points `G` (outer) and `B` (inner) are
|
|
9
|
+
* `thh` either side of `H` along the tip's radial direction. The band's outer
|
|
10
|
+
* and inner arcs stop where the base line crosses the outer and inner ellipse.
|
|
11
|
+
*
|
|
12
|
+
* The head angle is limited to `maxAng`, the angle from `H` to the point where
|
|
13
|
+
* the tangent from `H` touches the inner circle, so the tip never turns back
|
|
14
|
+
* into the band.
|
|
15
|
+
*/
|
|
16
|
+
import type { PresetShapeGeometryDefinition } from './preset-shape-definitions-table.js';
|
|
17
|
+
export declare const EXACT_CIRCULAR_ARROW_PRESET_DEFINITIONS: Record<string, PresetShapeGeometryDefinition>;
|
|
18
|
+
//# sourceMappingURL=preset-shape-definitions-exact-circular.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preset-shape-definitions-exact-circular.d.ts","sourceRoot":"","sources":["../../geometry/preset-shape-definitions-exact-circular.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AA6LtF,eAAO,MAAM,uCAAuC,EAAE,MAAM,CAC3D,MAAM,EACN,6BAA6B,CAK7B,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Geometry of `ellipseRibbon` and `ellipseRibbon2` (the curved banners).
|
|
3
|
+
*
|
|
4
|
+
* Every curved edge is a piece of one parabola `P(x) = f1 * (x - x^2 / w)` that
|
|
5
|
+
* sags `dy1` at the centre, drawn as a quadratic Bezier (a quadratic Bezier with
|
|
6
|
+
* its control point halfway along x is exactly a parabola). The tails hang from
|
|
7
|
+
* the end of the top edge down to `b - dy2`; the centre banner spans from `dy2`
|
|
8
|
+
* at the middle to the bottom edge, and the two folds are the triangles joining
|
|
9
|
+
* a tail's top edge to the banner.
|
|
10
|
+
*
|
|
11
|
+
* `ellipseRibbon2` is `ellipseRibbon` turned over, so both are written once
|
|
12
|
+
* with each y given as an offset from the top that is flipped for the second.
|
|
13
|
+
*/
|
|
14
|
+
import type { PresetShapeGeometryDefinition } from './preset-shape-definitions-table.js';
|
|
15
|
+
export declare const EXACT_ELLIPSE_RIBBON_PRESET_DEFINITIONS: Record<string, PresetShapeGeometryDefinition>;
|
|
16
|
+
//# sourceMappingURL=preset-shape-definitions-exact-ellipse-ribbons.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preset-shape-definitions-exact-ellipse-ribbons.d.ts","sourceRoot":"","sources":["../../geometry/preset-shape-definitions-exact-ellipse-ribbons.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AA4FtF,eAAO,MAAM,uCAAuC,EAAE,MAAM,CAC3D,MAAM,EACN,6BAA6B,CAI7B,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Geometry of `funnel`: a rim ellipse `wd2` x `hd4`, an opening inset `ss / 20`
|
|
3
|
+
* (left empty), and a small bottom ellipse joined to the rim by two straight
|
|
4
|
+
* sides that are tangent to both ellipses (measured on PowerPoint 16 at five
|
|
5
|
+
* sizes; the shape has no adjustments).
|
|
6
|
+
*
|
|
7
|
+
* The common tangent of two axis-aligned ellipses has no closed form, so the
|
|
8
|
+
* side slope `m` (the run per unit of height) is found by six Newton steps on
|
|
9
|
+
* `m * (cy2 - cy1) = sqrt(a1^2 + m^2 b1^2) - sqrt(a2^2 + m^2 b2^2)`.
|
|
10
|
+
*/
|
|
11
|
+
import type { PresetShapeGeometryDefinition } from './preset-shape-definitions-table.js';
|
|
12
|
+
export declare const EXACT_FUNNEL_PRESET_DEFINITIONS: Record<string, PresetShapeGeometryDefinition>;
|
|
13
|
+
//# sourceMappingURL=preset-shape-definitions-exact-funnel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preset-shape-definitions-exact-funnel.d.ts","sourceRoot":"","sources":["../../geometry/preset-shape-definitions-exact-funnel.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AAqEtF,eAAO,MAAM,+BAA+B,EAAE,MAAM,CAAC,MAAM,EAAE,6BAA6B,CAEzF,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Geometry of `leftRightRibbon`: a left-pointing arrow in front of a
|
|
3
|
+
* right-pointing arrow, the left body rolled into the right one by a scroll
|
|
4
|
+
* curl `wd32` wide and `h * adj3 / 100000` tall at the middle.
|
|
5
|
+
*
|
|
6
|
+
* Measured on PowerPoint 16: the left arrow body is `a1` of the height thick and
|
|
7
|
+
* sits `adj3` above the right body; the curl is two half ellipses of radii
|
|
8
|
+
* `wd32` x `hR` (`hR` a quarter of the offset) that join the left body's top edge
|
|
9
|
+
* (at `hc`) to the right body's top edge, one bulging right, one left.
|
|
10
|
+
*/
|
|
11
|
+
import type { PresetShapeGeometryDefinition } from './preset-shape-definitions-table.js';
|
|
12
|
+
export declare const EXACT_LEFT_RIGHT_RIBBON_PRESET_DEFINITIONS: Record<string, PresetShapeGeometryDefinition>;
|
|
13
|
+
//# sourceMappingURL=preset-shape-definitions-exact-left-right-ribbon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preset-shape-definitions-exact-left-right-ribbon.d.ts","sourceRoot":"","sources":["../../geometry/preset-shape-definitions-exact-left-right-ribbon.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AA6CtF,eAAO,MAAM,0CAA0C,EAAE,MAAM,CAC9D,MAAM,EACN,6BAA6B,CACP,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Spec-exact geometry for the six math operator presets (`mathPlus`,
|
|
3
|
+
* `mathMinus`, `mathMultiply`, `mathDivide`, `mathEqual`, `mathNotEqual`).
|
|
4
|
+
*
|
|
5
|
+
* The earlier hand-written entries drew the operators the full width of the
|
|
6
|
+
* box; ECMA-376 insets every glyph to 73490/100000 of the box, and builds
|
|
7
|
+
* `mathMultiply` from two diagonal bars and `mathNotEqual` from two bars and a
|
|
8
|
+
* slanted slash. Every figure here was checked pixel for pixel against
|
|
9
|
+
* PowerPoint 16 at a non-square aspect with default and non-default
|
|
10
|
+
* adjustments.
|
|
11
|
+
*/
|
|
12
|
+
import type { PresetShapeGeometryDefinition } from './preset-shape-definitions-table.js';
|
|
13
|
+
export declare const EXACT_MATH_PRESET_DEFINITIONS: Record<string, PresetShapeGeometryDefinition>;
|
|
14
|
+
//# sourceMappingURL=preset-shape-definitions-exact-math.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preset-shape-definitions-exact-math.d.ts","sourceRoot":"","sources":["../../geometry/preset-shape-definitions-exact-math.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AAkMtF,eAAO,MAAM,6BAA6B,EAAE,MAAM,CAAC,MAAM,EAAE,6BAA6B,CAOvF,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Spec-exact geometry for presets that were wrong or missing their stroked
|
|
3
|
+
* detail paths in the hand-written table: `wave`, `doubleWave`, `dodecagon`,
|
|
4
|
+
* `can`, `cube`, `bevel`, `smileyFace`, `flowChartDocument`,
|
|
5
|
+
* `flowChartPunchedTape` and `flowChartOnlineStorage`.
|
|
6
|
+
*
|
|
7
|
+
* Compared with PowerPoint 16 at a non-square aspect (outline and fill).
|
|
8
|
+
*/
|
|
9
|
+
import type { PresetShapeGeometryDefinition } from './preset-shape-definitions-table.js';
|
|
10
|
+
export declare const EXACT_MISC_PRESET_DEFINITIONS: Record<string, PresetShapeGeometryDefinition>;
|
|
11
|
+
//# sourceMappingURL=preset-shape-definitions-exact-misc.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preset-shape-definitions-exact-misc.d.ts","sourceRoot":"","sources":["../../geometry/preset-shape-definitions-exact-misc.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AA2OtF,eAAO,MAAM,6BAA6B,EAAE,MAAM,CAAC,MAAM,EAAE,6BAA6B,CAWvF,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Geometry of `ribbon` and `ribbon2` (the straight banners).
|
|
3
|
+
*
|
|
4
|
+
* `ribbon2` has its tails at the bottom: the centre banner spans the top down to
|
|
5
|
+
* `y2`, each tail runs from `y2` to the bottom edge and folds up behind the
|
|
6
|
+
* banner, the fold being two half ellipses `wd32` wide and `hR` tall. `ribbon` is
|
|
7
|
+
* the same shape turned over. Each preset is a silhouette (`norm`) plus the two
|
|
8
|
+
* fold faces (`darkenLess`).
|
|
9
|
+
*/
|
|
10
|
+
import type { PresetShapeGeometryDefinition } from './preset-shape-definitions-table.js';
|
|
11
|
+
export declare const EXACT_RIBBON_PRESET_DEFINITIONS: Record<string, PresetShapeGeometryDefinition>;
|
|
12
|
+
//# sourceMappingURL=preset-shape-definitions-exact-ribbons.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preset-shape-definitions-exact-ribbons.d.ts","sourceRoot":"","sources":["../../geometry/preset-shape-definitions-exact-ribbons.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AAkFtF,eAAO,MAAM,+BAA+B,EAAE,MAAM,CAAC,MAAM,EAAE,6BAA6B,CAGzF,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Geometry of `verticalScroll` and `horizontalScroll`.
|
|
3
|
+
*
|
|
4
|
+
* Measured on PowerPoint 16. `ch = ss * adj / 100000` is the roll diameter.
|
|
5
|
+
* `verticalScroll` has a roll along the top (a circle `ch` across at the left
|
|
6
|
+
* end with a small spiral, a round cap at the right end) and a curl at the
|
|
7
|
+
* bottom left; the paper hangs between them from `x = ch` to `x = r - ch`, with
|
|
8
|
+
* a rounded bottom right corner. `horizontalScroll` is the same figure turned
|
|
9
|
+
* about its diagonal.
|
|
10
|
+
*/
|
|
11
|
+
import type { PresetShapeGeometryDefinition } from './preset-shape-definitions-table.js';
|
|
12
|
+
export declare const EXACT_SCROLL_PRESET_DEFINITIONS: Record<string, PresetShapeGeometryDefinition>;
|
|
13
|
+
//# sourceMappingURL=preset-shape-definitions-exact-scrolls.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preset-shape-definitions-exact-scrolls.d.ts","sourceRoot":"","sources":["../../geometry/preset-shape-definitions-exact-scrolls.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AAkEtF,eAAO,MAAM,+BAA+B,EAAE,MAAM,CAAC,MAAM,EAAE,6BAA6B,CAGzF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preset-shape-definitions-flowchart.d.ts","sourceRoot":"","sources":["../../geometry/preset-shape-definitions-flowchart.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"preset-shape-definitions-flowchart.d.ts","sourceRoot":"","sources":["../../geometry/preset-shape-definitions-flowchart.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AAk0BtF;;;;;;;;GAQG;AACH,eAAO,MAAM,4BAA4B,EAAE,MAAM,CAAC,MAAM,EAAE,6BAA6B,CA+BtF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preset-shape-definitions-misc.d.ts","sourceRoot":"","sources":["../../geometry/preset-shape-definitions-misc.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,OAAO,KAAK,EAGX,6BAA6B,EAC7B,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"preset-shape-definitions-misc.d.ts","sourceRoot":"","sources":["../../geometry/preset-shape-definitions-misc.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,OAAO,KAAK,EAGX,6BAA6B,EAC7B,MAAM,kCAAkC,CAAC;AA+zC1C;;;GAGG;AACH,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAAC,MAAM,EAAE,6BAA6B,CAkCjF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preset-shape-definitions-table.d.ts","sourceRoot":"","sources":["../../geometry/preset-shape-definitions-table.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;
|
|
1
|
+
{"version":3,"file":"preset-shape-definitions-table.d.ts","sourceRoot":"","sources":["../../geometry/preset-shape-definitions-table.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AAmCH;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAC1B;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,GACxC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,GACtC;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GACvE;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAA;CAAE,GACrE;IACA,IAAI,EAAE,YAAY,CAAC;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;CACV,GACD;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,CAAC;AAErB,wDAAwD;AACxD,MAAM,WAAW,UAAU;IAC1B,6EAA6E;IAC7E,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,+EAA+E;IAC/E,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,gEAAgE;IAChE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,4BAA4B;IAC5B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,iCAAiC;IACjC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,4BAA4B;IAC5B,QAAQ,EAAE,iBAAiB,EAAE,CAAC;CAC9B;AAED,sEAAsE;AACtE,MAAM,WAAW,6BAA6B;IAC7C,oEAAoE;IACpE,IAAI,EAAE,MAAM,CAAC;IACb,gDAAgD;IAChD,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/B,sCAAsC;IACtC,KAAK,CAAC,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC,CAAC;IACjE,+DAA+D;IAC/D,IAAI,CAAC,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACtD,qCAAqC;IACrC,OAAO,EAAE,UAAU,EAAE,CAAC;CACtB;AAqkCD;;;;;;;;GAQG;AACH,eAAO,MAAM,2BAA2B,EAAE,MAAM,CAAC,MAAM,EAAE,6BAA6B,CAiErF,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Compact authoring helpers for spec-exact preset geometry.
|
|
3
|
+
*
|
|
4
|
+
* ECMA-376 writes a preset as an `avLst`, a `gdLst` of one-line formulas and a
|
|
5
|
+
* `pathLst` of commands. These helpers let a definition be authored in nearly
|
|
6
|
+
* that shape (`'x1 +- hc 0 dx1'`, `'M x1 y1 L x2 y1 Z'`) so it can be compared
|
|
7
|
+
* line by line with the specification, then expand to the table's types.
|
|
8
|
+
*/
|
|
9
|
+
import type { PresetPath, PresetPathCommand, PresetShapeGeometryDefinition } from './preset-shape-definitions-table.js';
|
|
10
|
+
/** Split `'name op a b c'` into a `gdLst` entry. */
|
|
11
|
+
export declare function g(line: string): {
|
|
12
|
+
name: string;
|
|
13
|
+
formula: string;
|
|
14
|
+
args: string[];
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Parse a path mini-language: `M x y`, `L x y`, `A wR hR stAng swAng`,
|
|
18
|
+
* `Q x1 y1 x2 y2`, `C x1 y1 x2 y2 x3 y3` and `Z`, whitespace separated.
|
|
19
|
+
*/
|
|
20
|
+
export declare function cmds(src: string): PresetPathCommand[];
|
|
21
|
+
/** One `<a:path>`: commands plus the optional `fill` / `stroke` flags. */
|
|
22
|
+
export declare function p(src: string, flags?: {
|
|
23
|
+
fill?: string;
|
|
24
|
+
stroke?: boolean;
|
|
25
|
+
w?: number;
|
|
26
|
+
h?: number;
|
|
27
|
+
}): PresetPath;
|
|
28
|
+
/** Assemble a definition from the compact pieces. */
|
|
29
|
+
export declare function exactDef(name: string, avLst: Record<string, number> | undefined, gdLines: string[], rect: string, paths: PresetPath[]): PresetShapeGeometryDefinition;
|
|
30
|
+
//# sourceMappingURL=preset-shape-exact-dsl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preset-shape-exact-dsl.d.ts","sourceRoot":"","sources":["../../geometry/preset-shape-exact-dsl.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EACX,UAAU,EACV,iBAAiB,EACjB,6BAA6B,EAC7B,MAAM,kCAAkC,CAAC;AAE1C,oDAAoD;AACpD,wBAAgB,CAAC,CAAC,IAAI,EAAE,MAAM,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,EAAE,CAAA;CAAE,CAGjF;AAID;;;GAGG;AACH,wBAAgB,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,iBAAiB,EAAE,CAyCrD;AAED,0EAA0E;AAC1E,wBAAgB,CAAC,CAChB,GAAG,EAAE,MAAM,EACX,KAAK,GAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,OAAO,CAAC;IAAC,CAAC,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,CAAC,EAAE,MAAM,CAAA;CAAO,GACrE,UAAU,CAEZ;AAED,qDAAqD;AACrD,wBAAgB,QAAQ,CACvB,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,EACzC,OAAO,EAAE,MAAM,EAAE,EACjB,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,UAAU,EAAE,GACjB,6BAA6B,CAS/B"}
|