@seatmap-fyi/map-domain 0.1.0-alpha.2 → 0.1.0-alpha.29

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.
Files changed (62) hide show
  1. package/dist/catalog.d.ts +10 -3
  2. package/dist/catalog.js +66 -10
  3. package/dist/categories.d.ts +26 -0
  4. package/dist/categories.js +168 -0
  5. package/dist/editor-state.d.ts +49 -0
  6. package/dist/editor-state.js +266 -0
  7. package/dist/floors.d.ts +19 -0
  8. package/dist/floors.js +68 -0
  9. package/dist/geometry/boundary.d.ts +1 -1
  10. package/dist/geometry/boundary.js +10 -12
  11. package/dist/geometry/curve-warnings.d.ts +1 -1
  12. package/dist/geometry/curve-warnings.js +3 -5
  13. package/dist/geometry/decoration-bounds.d.ts +4 -0
  14. package/dist/geometry/decoration-bounds.js +42 -0
  15. package/dist/geometry/ellipse.js +4 -12
  16. package/dist/geometry/geometry.d.ts +12 -3
  17. package/dist/geometry/geometry.js +35 -26
  18. package/dist/geometry/polygon-curves.d.ts +12 -0
  19. package/dist/geometry/polygon-curves.js +132 -0
  20. package/dist/geometry/primitives.d.ts +1 -1
  21. package/dist/geometry/primitives.js +2 -3
  22. package/dist/geometry/seat-shape.d.ts +24 -0
  23. package/dist/geometry/seat-shape.js +101 -0
  24. package/dist/geometry/seating-layout.d.ts +14 -3
  25. package/dist/geometry/seating-layout.js +91 -19
  26. package/dist/geometry/units.d.ts +1 -0
  27. package/dist/geometry/units.js +2 -0
  28. package/dist/geometry/venue-outline.d.ts +2 -2
  29. package/dist/geometry/venue-outline.js +8 -21
  30. package/dist/identity.d.ts +4 -1
  31. package/dist/identity.js +36 -10
  32. package/dist/issues.d.ts +9 -2
  33. package/dist/issues.js +8 -6
  34. package/dist/labels.d.ts +12 -1
  35. package/dist/labels.js +76 -11
  36. package/dist/layers.d.ts +26 -0
  37. package/dist/layers.js +86 -0
  38. package/dist/media.d.ts +27 -0
  39. package/dist/media.js +89 -0
  40. package/dist/physical-document.interface.d.ts +518 -0
  41. package/dist/{types.js → physical-document.interface.js} +71 -0
  42. package/dist/preview.d.ts +1 -1
  43. package/dist/preview.js +65 -24
  44. package/dist/reference.js +1 -1
  45. package/dist/row-segments.d.ts +30 -0
  46. package/dist/row-segments.js +112 -0
  47. package/dist/schema.d.ts +1192 -68
  48. package/dist/schema.js +372 -96
  49. package/dist/seat-proximity.d.ts +4 -0
  50. package/dist/seat-proximity.js +119 -0
  51. package/dist/sections.d.ts +23 -0
  52. package/dist/sections.js +149 -0
  53. package/dist/selling.d.ts +34 -0
  54. package/dist/selling.js +148 -0
  55. package/dist/spacing-repairs.d.ts +31 -0
  56. package/dist/spacing-repairs.js +168 -0
  57. package/dist/table-layout.d.ts +29 -0
  58. package/dist/table-layout.js +134 -0
  59. package/dist/validation.d.ts +3 -1
  60. package/dist/validation.js +124 -74
  61. package/package.json +59 -3
  62. package/dist/types.d.ts +0 -313
@@ -1,10 +1,25 @@
1
- import { SeatingKind } from "./types.js";
2
- import { SectionOutlineRole, ShapeKind, DecorationKind, } from "./types.js";
3
- import { IssueCode, IssueSeverity, issue, issueKey, } from "./issues.js";
4
- import { labelKey, sequenceLabel } from "./labels.js";
5
- import { footprint, footprintInside, generateGroup, invalidPolygon, worldMatrices, } from "./geometry/geometry.js";
1
+ import { mediaReferences } from "./media.js";
2
+ import { seatProximityIssues } from "./seat-proximity.js";
3
+ import { sectionCatalog } from "./sections.js";
4
+ import { categoryIssues } from "./categories.js";
5
+ import { SeatingKind } from "./physical-document.interface.js";
6
+ import { ShapeKind, DecorationKind, } from "./physical-document.interface.js";
7
+ import { IssueCode, IssueSeverity, issue, issueKey } from "./issues.js";
8
+ import { documentCatalog, documentGroupSeats } from "./catalog.js";
9
+ import { rowSegments, changedSegmentGroups } from "./row-segments.js";
10
+ import { labelKey, rowBookingLabel, rowDisplayLabel } from "./labels.js";
11
+ import { footprint, footprintInside, invalidPolygon } from "./geometry/geometry.js";
6
12
  import { curveWarnings, CurveWarningKind } from "./geometry/curve-warnings.js";
7
13
  import { capacity } from "./schema.js";
14
+ var LabelScope;
15
+ (function (LabelScope) {
16
+ LabelScope["Row"] = "row";
17
+ LabelScope["Table"] = "table";
18
+ LabelScope["Seat"] = "seat";
19
+ LabelScope["Booking"] = "booking";
20
+ LabelScope["Section"] = "section";
21
+ LabelScope["Area"] = "area";
22
+ })(LabelScope || (LabelScope = {}));
8
23
  /** Label equality and collision ownership live here; consumers only project issues. */
9
24
  export class ValidationIndex {
10
25
  document;
@@ -25,12 +40,43 @@ export class ValidationIndex {
25
40
  return entry.scope + "\0" + labelKey(entry.label);
26
41
  }
27
42
  refresh(key) {
28
- const entries = Array.from(this.buckets.get(key)?.values() ?? []);
29
- if (entries.length > 1)
30
- this.collisions.set(key, issue(IssueCode.DuplicateLabel, "Labels must be unique within their inventory scope.", entries.map((e) => e.id), entries[0].scope));
43
+ const entries = [
44
+ ...new Map(Array.from(this.buckets.get(key)?.values() ?? [], (entry) => [entry.id, entry])).values(),
45
+ ];
46
+ if (entries.length > 1) {
47
+ const rowNames = entries[0].kind === LabelScope.Row;
48
+ this.collisions.set(key, {
49
+ ...issue(IssueCode.DuplicateLabel, rowNames
50
+ ? `${entries.length} rows share the name “${entries[0].label}”`
51
+ : "Labels must be unique within their inventory scope.", entries.map((entry) => entry.id), entries[0].scope),
52
+ ...(rowNames
53
+ ? {
54
+ description: `${entries.length} rows share the label “${entries[0].label}”, so buyers cannot tell which row a seat belongs to.`,
55
+ blocks: [],
56
+ }
57
+ : {}),
58
+ severity: rowNames ? IssueSeverity.Warning : IssueSeverity.Error,
59
+ });
60
+ }
31
61
  else
32
62
  this.collisions.delete(key);
33
63
  }
64
+ /** Booking collisions already explain the affected rows; do not also report their shared name. */
65
+ collisionIssues() {
66
+ const catalog = documentCatalog(this.document);
67
+ const segments = rowSegments(this.document);
68
+ const bookingRows = new Set();
69
+ for (const [key, collision] of this.collisions) {
70
+ if (!key.startsWith(`${LabelScope.Booking}:`))
71
+ continue;
72
+ for (const id of collision.entityIds) {
73
+ const rowId = catalog.seats.get(id).seat.rowId;
74
+ const segment = segments.get(rowId);
75
+ bookingRows.add(segment?.coherent ? segment.row.id : rowId);
76
+ }
77
+ }
78
+ return [...this.collisions.values()].filter((collision) => collision.severity !== IssueSeverity.Warning || !collision.entityIds.every((id) => bookingRows.has(id)));
79
+ }
34
80
  put(owner, entries) {
35
81
  this.owners.set(owner, entries);
36
82
  for (const entry of entries) {
@@ -40,7 +86,7 @@ export class ValidationIndex {
40
86
  bucket = new Map();
41
87
  this.buckets.set(key, bucket);
42
88
  }
43
- bucket.set(entry.id, entry);
89
+ bucket.set(entry.field, entry);
44
90
  this.refresh(key);
45
91
  }
46
92
  }
@@ -48,7 +94,7 @@ export class ValidationIndex {
48
94
  for (const entry of this.owners.get(owner) ?? []) {
49
95
  const key = this.key(entry);
50
96
  const bucket = this.buckets.get(key);
51
- bucket?.delete(entry.id);
97
+ bucket?.delete(entry.field);
52
98
  if (!bucket?.size)
53
99
  this.buckets.delete(key);
54
100
  this.refresh(key);
@@ -61,15 +107,22 @@ export class ValidationIndex {
61
107
  indexGroup(g) {
62
108
  const entries = [];
63
109
  const local = [];
64
- const section = g.sectionId ?? "unsectioned";
110
+ const owners = sectionCatalog(this.document).owners;
111
+ const bookingScopes = new Map();
65
112
  if (g.kind === SeatingKind.Straight || g.kind === SeatingKind.Curved)
66
113
  for (let i = 0; i < g.rows.length; i++) {
67
114
  const row = g.rows[i];
115
+ bookingScopes.set(row.id, `${LabelScope.Booking}:${JSON.stringify([
116
+ owners.get(row.id) ?? g.floorId ?? null,
117
+ labelKey(rowBookingLabel(g, i)),
118
+ ])}`);
119
+ const segment = rowSegments(this.document).get(row.id);
68
120
  entries.push({
69
- id: row.id,
121
+ id: segment?.coherent ? segment.row.id : row.id,
70
122
  ownerId: g.id,
71
- label: row.labelOverride ?? sequenceLabel(g.labels.rows, i, g.rows.length),
72
- scope: `rows:${section}`,
123
+ label: segment?.displayLabel ?? rowDisplayLabel(g, i),
124
+ kind: LabelScope.Row,
125
+ scope: `rows:${owners.get(row.id) ?? (g.floorId ? `floor:${g.floorId}` : "unsectioned")}`,
73
126
  field: `${row.id}.label`,
74
127
  });
75
128
  }
@@ -77,26 +130,22 @@ export class ValidationIndex {
77
130
  entries.push({
78
131
  id: g.id,
79
132
  ownerId: g.id,
80
- label: g.labels.table,
81
- scope: `tables:${section}`,
82
- field: `${g.id}.labels.table`,
133
+ label: g.labels.code,
134
+ kind: LabelScope.Table,
135
+ scope: "tables",
136
+ field: `${g.id}.labels.code`,
83
137
  });
84
- const assignedSection = this.document.sections.find((s) => s.id === g.sectionId);
85
- const sectionOutline = (assignedSection?.outlineRole ?? SectionOutlineRole.Boundary) ===
86
- SectionOutlineRole.Boundary
87
- ? assignedSection?.outline
88
- : undefined;
89
- const matrix = sectionOutline
90
- ? worldMatrices(this.document).get(g.id)
91
- : undefined;
92
138
  let outside = false;
93
- for (const s of generateGroup(g)) {
139
+ for (const s of documentGroupSeats(this.document, g)) {
140
+ if (s.slot.gap)
141
+ continue;
94
142
  entries.push({
95
143
  id: s.id,
96
144
  ownerId: g.id,
97
- label: s.label,
98
- scope: `chairs:${s.rowId ?? g.id}`,
99
- field: `${s.id}.label`,
145
+ label: s.bookingLabel,
146
+ kind: s.rowId ? LabelScope.Booking : LabelScope.Seat,
147
+ scope: s.rowId ? bookingScopes.get(s.rowId) : `chairs:${g.id}`,
148
+ field: `${s.id}.bookingLabel`,
100
149
  });
101
150
  this.seats.set(s.id, {
102
151
  groupId: g.id,
@@ -104,29 +153,27 @@ export class ValidationIndex {
104
153
  });
105
154
  if (s.slot.attributes?.companionForSeatId)
106
155
  this.companions.set(s.id, s.slot.attributes.companionForSeatId);
107
- if ((g.boundary && !footprintInside(footprint(s), g.boundary)) ||
108
- (sectionOutline &&
109
- !footprintInside(footprint(s, matrix), sectionOutline)))
156
+ if (g.boundary && !footprintInside(footprint(s), g.boundary))
110
157
  outside = true;
111
158
  }
112
- for (const e of entries)
113
- if (!labelKey(e.label) || Array.from(e.label).length > 80)
159
+ for (const e of entries) {
160
+ if (e.kind === LabelScope.Row) {
161
+ if (!labelKey(e.label))
162
+ local.push(issue(IssueCode.InvalidLabel, "Use a nonempty row label.", [e.id], e.field));
163
+ }
164
+ else if (!labelKey(e.label) || Array.from(e.label).length > 80) {
114
165
  local.push(issue(IssueCode.InvalidLabel, "Use a nonempty label of at most 80 characters.", [e.id], e.field));
166
+ }
167
+ }
115
168
  if (outside)
116
169
  local.push(issue(IssueCode.OutsideBoundary, "Inventory extends beyond its declared boundary. No seats have been removed.", [g.id], `${g.id}.boundary`));
117
170
  if (g.boundary && invalidPolygon(g.boundary))
118
171
  local.push(issue(IssueCode.InvalidBoundary, "Repair intersecting boundaries or invalid holes.", [g.id], `${g.id}.boundary`));
119
172
  if (g.kind === SeatingKind.Curved) {
120
173
  const warnings = curveWarnings(g.recipe, g.rows.map((r) => r.seats.length), g.seatSizeM, g.rows);
121
- const overrun = warnings.find((w) => w.kind === CurveWarningKind.Overrun), clearance = warnings.find((w) => w.kind === CurveWarningKind.Clearance);
174
+ const overrun = warnings.find((w) => w.kind === CurveWarningKind.Overrun);
122
175
  if (overrun)
123
176
  local.push(issue(IssueCode.CurveOverrun, overrun.message, [g.id], `${g.id}.recipe`));
124
- if (clearance)
125
- local.push({
126
- ...issue(IssueCode.SeatClearance, clearance.message, [g.id], `${g.id}.recipe`),
127
- severity: IssueSeverity.Warning,
128
- blocks: [],
129
- });
130
177
  }
131
178
  this.put(g.id, entries);
132
179
  this.groupIssues.set(g.id, local);
@@ -144,6 +191,7 @@ export class ValidationIndex {
144
191
  id: s.id,
145
192
  ownerId: document.mapId,
146
193
  label: s.label,
194
+ kind: LabelScope.Section,
147
195
  scope: "sections",
148
196
  field: `${s.id}.label`,
149
197
  })));
@@ -154,45 +202,47 @@ export class ValidationIndex {
154
202
  {
155
203
  id: a.id,
156
204
  ownerId: a.id,
157
- label: a.label,
158
- scope: `areas:${a.sectionId ?? "unsectioned"}`,
159
- field: `${a.id}.label`,
205
+ label: a.code,
206
+ kind: LabelScope.Area,
207
+ scope: `areas:${a.kind}`,
208
+ field: `${a.id}.code`,
160
209
  },
161
210
  ]);
162
211
  this.refreshBaseIssues(document);
163
212
  }
164
213
  refreshBaseIssues(document) {
165
214
  this.baseIssues = [];
215
+ for (const logical of documentCatalog(document).segmentedRows.values()) {
216
+ if (!logical.coherent) {
217
+ this.baseIssues.push(issue(IssueCode.InvalidSegmentedRow, "Invalid segmented row", [logical.row.parts[0].rowId]));
218
+ }
219
+ }
166
220
  for (const entity of [...document.sections, ...document.areas])
167
- if (!labelKey(entity.label))
168
- this.baseIssues.push(issue(IssueCode.InvalidLabel, "Use a nonempty inventory label.", [entity.id], `${entity.id}.label`));
221
+ if (!labelKey("code" in entity ? entity.code : entity.label))
222
+ this.baseIssues.push(issue(IssueCode.InvalidLabel, "Use a nonempty inventory label.", [entity.id], `${entity.id}.${"code" in entity ? "code" : "label"}`));
169
223
  for (const s of document.sections)
170
224
  if (s.outline && invalidPolygon(s.outline))
171
225
  this.baseIssues.push(issue(IssueCode.InvalidBoundary, "Section boundary needs repair.", [s.id], `${s.id}.outline`));
172
226
  for (const a of document.areas)
173
- if (a.shape.kind === ShapeKind.Polygon &&
174
- invalidPolygon(a.shape.boundary))
175
- this.baseIssues.push(issue(IssueCode.InvalidBoundary, "Area boundary needs repair.", [
176
- a.id,
177
- ]));
227
+ if (a.shape.kind === ShapeKind.Polygon && invalidPolygon(a.shape.boundary))
228
+ this.baseIssues.push(issue(IssueCode.InvalidBoundary, "Area boundary needs repair.", [a.id]));
178
229
  for (const d of document.decorations) {
179
230
  if (d.kind === DecorationKind.Polygon && invalidPolygon(d.boundary))
180
- this.baseIssues.push(issue(IssueCode.InvalidBoundary, "Artwork boundary needs repair.", [
181
- d.id,
182
- ]));
183
- if (d.kind === DecorationKind.Image &&
184
- (!document.assets.some((a) => a.id === d.assetId) ||
185
- !this.assetReadiness.has(d.assetId)))
186
- this.baseIssues.push(issue(IssueCode.MissingAsset, "Referenced artwork is unavailable. Retry or remove the reference.", [d.id], `${d.id}.assetId`));
231
+ this.baseIssues.push(issue(IssueCode.InvalidBoundary, "Artwork boundary needs repair.", [d.id]));
187
232
  }
188
233
  }
189
234
  update(document, changedGroupIds, refreshMetadata = false) {
190
235
  const before = this.document;
191
236
  this.document = document;
192
- for (const id of changedGroupIds)
237
+ const affected = new Set([...changedGroupIds, ...changedSegmentGroups(before, document)]);
238
+ if (before.sections !== document.sections || before.collections !== document.collections) {
239
+ for (const group of document.seatingGroups)
240
+ affected.add(group.id);
241
+ }
242
+ for (const id of affected)
193
243
  this.remove(id);
194
244
  for (const g of document.seatingGroups)
195
- if (changedGroupIds.has(g.id))
245
+ if (affected.has(g.id))
196
246
  this.indexGroup(g);
197
247
  if (refreshMetadata) {
198
248
  this.remove(document.mapId);
@@ -202,6 +252,7 @@ export class ValidationIndex {
202
252
  id: section.id,
203
253
  ownerId: document.mapId,
204
254
  label: section.label,
255
+ kind: LabelScope.Section,
205
256
  scope: "sections",
206
257
  field: `${section.id}.label`,
207
258
  })));
@@ -210,18 +261,25 @@ export class ValidationIndex {
210
261
  {
211
262
  id: area.id,
212
263
  ownerId: area.id,
213
- label: area.label,
214
- scope: `areas:${area.sectionId ?? "unsectioned"}`,
215
- field: `${area.id}.label`,
264
+ label: area.code,
265
+ kind: LabelScope.Area,
266
+ scope: `areas:${area.kind}`,
267
+ field: `${area.id}.code`,
216
268
  },
217
269
  ]);
218
270
  this.refreshBaseIssues(document);
219
271
  }
220
272
  }
221
273
  issues() {
274
+ const assetIds = new Set(this.document.assets.map((asset) => asset.id));
275
+ const missingAssets = mediaReferences(this.document)
276
+ .filter((reference) => !assetIds.has(reference.assetId) || !this.assetReadiness.has(reference.assetId))
277
+ .map((reference) => issue(IssueCode.MissingAsset, "Referenced artwork is unavailable. Retry or remove the reference.", [reference.ownerId], reference.fieldPath));
222
278
  const issues = [
223
279
  ...this.baseIssues,
224
- ...this.collisions.values(),
280
+ ...missingAssets,
281
+ ...categoryIssues(this.document),
282
+ ...this.collisionIssues(),
225
283
  ...Array.from(this.groupIssues.values()).flat(),
226
284
  ];
227
285
  const companionStatus = new Map();
@@ -246,20 +304,12 @@ export class ValidationIndex {
246
304
  if (invalid)
247
305
  issues.push(issue(IssueCode.InvalidCompanion, "Companion reference is missing, self-referential or cyclic.", [id], `${id}.attributes.companionForSeatId`));
248
306
  }
249
- if (capacity(this.document).physicalSeats +
250
- capacity(this.document).gaQuantity ===
251
- 0)
307
+ if (capacity(this.document).physicalSeats + capacity(this.document).gaQuantity === 0)
252
308
  issues.push(issue(IssueCode.EmptyInventory, "Add inventory before assignment or publication.", [this.document.mapId]));
253
- return issues.sort((a, b) => issueKey(a).localeCompare(issueKey(b)));
309
+ return [...issues.sort((a, b) => issueKey(a).localeCompare(issueKey(b))), ...seatProximityIssues(this.document)];
254
310
  }
255
311
  setAssetReadiness(assets) {
256
312
  this.assetReadiness = assets;
257
- this.baseIssues = this.baseIssues.filter((i) => i.code !== IssueCode.MissingAsset);
258
- for (const d of this.document.decorations)
259
- if (d.kind === DecorationKind.Image &&
260
- (!this.document.assets.some((a) => a.id === d.assetId) ||
261
- !assets.has(d.assetId)))
262
- this.baseIssues.push(issue(IssueCode.MissingAsset, "Referenced artwork is unavailable. Retry or remove the reference.", [d.id], `${d.id}.assetId`));
263
313
  }
264
314
  }
265
315
  export function validatePhysicalDocument(document, assets = new Set()) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seatmap-fyi/map-domain",
3
- "version": "0.1.0-alpha.2",
3
+ "version": "0.1.0-alpha.29",
4
4
  "license": "UNLICENSED",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -9,9 +9,17 @@
9
9
  "src/unicode-license.txt"
10
10
  ],
11
11
  "exports": {
12
+ "./layers": {
13
+ "types": "./dist/layers.d.ts",
14
+ "import": "./dist/layers.js"
15
+ },
16
+ "./editor-state": {
17
+ "types": "./dist/editor-state.d.ts",
18
+ "import": "./dist/editor-state.js"
19
+ },
12
20
  "./types": {
13
- "types": "./dist/types.d.ts",
14
- "import": "./dist/types.js"
21
+ "types": "./dist/physical-document.interface.d.ts",
22
+ "import": "./dist/physical-document.interface.js"
15
23
  },
16
24
  "./schema": {
17
25
  "types": "./dist/schema.d.ts",
@@ -37,6 +45,10 @@
37
45
  "types": "./dist/catalog.d.ts",
38
46
  "import": "./dist/catalog.js"
39
47
  },
48
+ "./geometry/units": {
49
+ "types": "./dist/geometry/units.d.ts",
50
+ "import": "./dist/geometry/units.js"
51
+ },
40
52
  "./geometry/geometry": {
41
53
  "types": "./dist/geometry/geometry.d.ts",
42
54
  "import": "./dist/geometry/geometry.js"
@@ -76,6 +88,50 @@
76
88
  "./preview": {
77
89
  "types": "./dist/preview.d.ts",
78
90
  "import": "./dist/preview.js"
91
+ },
92
+ "./categories": {
93
+ "types": "./dist/categories.d.ts",
94
+ "import": "./dist/categories.js"
95
+ },
96
+ "./geometry/seat-shape": {
97
+ "types": "./dist/geometry/seat-shape.d.ts",
98
+ "import": "./dist/geometry/seat-shape.js"
99
+ },
100
+ "./selling": {
101
+ "types": "./dist/selling.d.ts",
102
+ "import": "./dist/selling.js"
103
+ },
104
+ "./table-layout": {
105
+ "types": "./dist/table-layout.d.ts",
106
+ "import": "./dist/table-layout.js"
107
+ },
108
+ "./row-segments": {
109
+ "types": "./dist/row-segments.d.ts",
110
+ "import": "./dist/row-segments.js"
111
+ },
112
+ "./floors": {
113
+ "types": "./dist/floors.d.ts",
114
+ "import": "./dist/floors.js"
115
+ },
116
+ "./geometry/decoration-bounds": {
117
+ "types": "./dist/geometry/decoration-bounds.d.ts",
118
+ "import": "./dist/geometry/decoration-bounds.js"
119
+ },
120
+ "./sections": {
121
+ "types": "./dist/sections.d.ts",
122
+ "import": "./dist/sections.js"
123
+ },
124
+ "./spacing-repairs": {
125
+ "types": "./dist/spacing-repairs.d.ts",
126
+ "import": "./dist/spacing-repairs.js"
127
+ },
128
+ "./media": {
129
+ "types": "./dist/media.d.ts",
130
+ "import": "./dist/media.js"
131
+ },
132
+ "./geometry/polygon-curves": {
133
+ "types": "./dist/geometry/polygon-curves.d.ts",
134
+ "import": "./dist/geometry/polygon-curves.js"
79
135
  }
80
136
  },
81
137
  "scripts": {