@elaraai/east-ui 1.0.12 → 1.0.14
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/dist/src/collections/schematic/index.d.ts +335 -2
- package/dist/src/collections/schematic/index.d.ts.map +1 -1
- package/dist/src/collections/schematic/index.js +158 -2
- package/dist/src/collections/schematic/index.js.map +1 -1
- package/dist/src/collections/schematic/types.d.ts +338 -0
- package/dist/src/collections/schematic/types.d.ts.map +1 -1
- package/dist/src/collections/schematic/types.js +104 -0
- package/dist/src/collections/schematic/types.js.map +1 -1
- package/dist/src/component.d.ts +67 -0
- package/dist/src/component.d.ts.map +1 -1
- package/dist/src/runtime/collections/schematic.d.ts +4 -0
- package/dist/src/runtime/collections/schematic.d.ts.map +1 -1
- package/dist/src/runtime/collections/schematic.js +4 -0
- package/dist/src/runtime/collections/schematic.js.map +1 -1
- package/dist/test/collections/schematic.examples.d.ts +2 -0
- package/dist/test/collections/schematic.examples.d.ts.map +1 -1
- package/dist/test/collections/schematic.examples.js +100 -6
- package/dist/test/collections/schematic.examples.js.map +1 -1
- package/package.json +3 -3
|
@@ -16,8 +16,8 @@ import { type ExprType, type SubtypeExprOrValue, type TypeOf, variant, ArrayType
|
|
|
16
16
|
import { UIComponentType } from "../../component.js";
|
|
17
17
|
import { StatusTokenType } from "../../style/interaction.js";
|
|
18
18
|
import { type IconName } from "../../display/icon/types.js";
|
|
19
|
-
import { SchematicPointType, SchematicZonePatternType, SchematicLinkStyleType, SchematicRouteType } from "./types.js";
|
|
20
|
-
export { SchematicRootType, SchematicItemType, SchematicZoneType, SchematicLinkType, SchematicPointType, SchematicZonePatternType, SchematicLinkStyleType, SchematicRouteType, SchematicToneType, } from "./types.js";
|
|
19
|
+
import { SchematicPointType, SchematicVertexType, SchematicGeometryType, SchematicZonePatternType, SchematicLinkStyleType, SchematicRouteType, SchematicToneType } from "./types.js";
|
|
20
|
+
export { SchematicRootType, SchematicItemType, SchematicZoneType, SchematicLinkType, SchematicPointType, SchematicVertexType, SchematicGeometryType, SchematicZonePatternType, SchematicLinkStyleType, SchematicRouteType, SchematicToneType, } from "./types.js";
|
|
21
21
|
/** String literal form of {@link SchematicToneType} tags. */
|
|
22
22
|
export type SchematicToneLiteral = "brand" | "ink" | "muted" | "success" | "warning" | "danger";
|
|
23
23
|
/** Style configuration accepted by {@link outline} / {@link hatch} / {@link solid} / {@link dashed}. */
|
|
@@ -73,6 +73,67 @@ declare function dashed(config?: SchematicPatternConfig): variant<"dashed", {
|
|
|
73
73
|
tone: variant<"none", null> | variant<"some", variant<SchematicToneLiteral, null>>;
|
|
74
74
|
weight: variant<"none", null> | variant<"some", number>;
|
|
75
75
|
}>;
|
|
76
|
+
/**
|
|
77
|
+
* A polyline / polygon vertex for {@link polyline} / {@link polygon} — a world
|
|
78
|
+
* point plus an optional DXF `bulge`.
|
|
79
|
+
*
|
|
80
|
+
* @property x - World x
|
|
81
|
+
* @property y - World y
|
|
82
|
+
* @property bulge - DXF bulge for the edge to the next vertex; `0` (default) is straight, nonzero is a circular arc (`tan(includedAngle / 4)`, sign = turn direction)
|
|
83
|
+
*/
|
|
84
|
+
export interface SchematicVertexInput {
|
|
85
|
+
/** World x. */
|
|
86
|
+
x: SubtypeExprOrValue<FloatType>;
|
|
87
|
+
/** World y. */
|
|
88
|
+
y: SubtypeExprOrValue<FloatType>;
|
|
89
|
+
/** DXF bulge for the edge to the next vertex; `0` (default) = straight, nonzero = arc. */
|
|
90
|
+
bulge?: SubtypeExprOrValue<FloatType>;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Vertices accepted by {@link polyline} / {@link polygon}: either a plain array
|
|
94
|
+
* of `{ x, y, bulge? }` (bulge defaults to `0`) or a resolved East array of
|
|
95
|
+
* {@link SchematicVertexType} values.
|
|
96
|
+
*/
|
|
97
|
+
export type SchematicVertices = readonly SchematicVertexInput[] | SubtypeExprOrValue<ArrayType<SchematicVertexType>>;
|
|
98
|
+
/** Optional configuration for {@link polyline}. */
|
|
99
|
+
export interface SchematicPolylineConfig {
|
|
100
|
+
/** Band width in world units — the stroke widens into a road / aisle. */
|
|
101
|
+
width?: number;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Builds a `rect` geometry value — the axis-aligned box. For zones this is
|
|
105
|
+
* the `x/y/width/height` bounding box; for items, the point / marker form.
|
|
106
|
+
* Equivalent to omitting `geometry` / `footprint`.
|
|
107
|
+
*
|
|
108
|
+
* @returns A `SchematicGeometryType` value
|
|
109
|
+
*/
|
|
110
|
+
declare function rect(): ExprType<SchematicGeometryType>;
|
|
111
|
+
/**
|
|
112
|
+
* Builds a `circle` geometry value — a circle centred on the entity anchor
|
|
113
|
+
* (an item's `x/y`, or a zone's bounding-box centre). Models tanks, silos,
|
|
114
|
+
* and round equipment without flattening to a polygon.
|
|
115
|
+
*
|
|
116
|
+
* @param radius - Circle radius in world units
|
|
117
|
+
* @returns A `SchematicGeometryType` value
|
|
118
|
+
*/
|
|
119
|
+
declare function circle(radius: SubtypeExprOrValue<FloatType>): ExprType<SchematicGeometryType>;
|
|
120
|
+
/**
|
|
121
|
+
* Builds a `polyline` geometry value — an open, arc-aware polyline in world
|
|
122
|
+
* coordinates, optionally widened into a band (a road / aisle / walkway).
|
|
123
|
+
*
|
|
124
|
+
* @param vertices - Vertices in world coords, in order (each `{ x, y, bulge? }`; `bulge` defaults to `0`)
|
|
125
|
+
* @param config - Optional `width` band in world units
|
|
126
|
+
* @returns A `SchematicGeometryType` value
|
|
127
|
+
*/
|
|
128
|
+
declare function polyline(vertices: SchematicVertices, config?: SchematicPolylineConfig): ExprType<SchematicGeometryType>;
|
|
129
|
+
/**
|
|
130
|
+
* Builds a `polygon` geometry value — a closed, arc-aware polygon in world
|
|
131
|
+
* coordinates (a rotated / L-shaped zone, or an equipment footprint).
|
|
132
|
+
*
|
|
133
|
+
* @param vertices - Boundary vertices in world coords, in order (auto-closed; each `{ x, y, bulge? }`)
|
|
134
|
+
* @returns A `SchematicGeometryType` value
|
|
135
|
+
*/
|
|
136
|
+
declare function polygon(vertices: SchematicVertices): ExprType<SchematicGeometryType>;
|
|
76
137
|
/**
|
|
77
138
|
* The struct element type of a `SubtypeExprOrValue<ArrayType<StructType>>`.
|
|
78
139
|
*/
|
|
@@ -95,6 +156,12 @@ export type RowElement<T extends SubtypeExprOrValue<ArrayType<StructType>>> = Ty
|
|
|
95
156
|
* @property meter - Optional mini utilisation bar (value / max)
|
|
96
157
|
* @property metric - Optional live metric text
|
|
97
158
|
* @property width - Optional world width — renders the wide bar form
|
|
159
|
+
* @property footprint - Optional shape footprint (`Schematic.polygon()` / `polyline()` / `rect()`)
|
|
160
|
+
* @property tone - Optional colour override (semantic tone); absent ⇒ `status` drives the colour
|
|
161
|
+
* @property color - Optional raw CSS stroke / marker tint; wins over `tone`
|
|
162
|
+
* @property bg - Optional raw CSS fill for a polygon / circle footprint
|
|
163
|
+
* @property fillOpacity - Optional fill alpha (0–1) for a polygon / circle footprint
|
|
164
|
+
* @property weight - Optional stroke width in px
|
|
98
165
|
*/
|
|
99
166
|
export interface SchematicItemFields {
|
|
100
167
|
/** Item identity — links reference it; `onSelect` returns it. */
|
|
@@ -122,6 +189,18 @@ export interface SchematicItemFields {
|
|
|
122
189
|
metric?: SubtypeExprOrValue<StringType>;
|
|
123
190
|
/** Optional world width — renders the wide bar form. */
|
|
124
191
|
width?: SubtypeExprOrValue<FloatType>;
|
|
192
|
+
/** Optional shape footprint (`Schematic.polygon()` / `polyline()` / `rect()`); absent ⇒ point + icon. */
|
|
193
|
+
footprint?: SubtypeExprOrValue<SchematicGeometryType>;
|
|
194
|
+
/** Optional colour override (semantic tone); absent ⇒ `status` drives the colour. */
|
|
195
|
+
tone?: SubtypeExprOrValue<SchematicToneType> | SchematicToneLiteral;
|
|
196
|
+
/** Optional raw CSS stroke / marker tint (e.g. `"#2D7FF9"`, `"teal"`); wins over `tone`. */
|
|
197
|
+
color?: SubtypeExprOrValue<StringType>;
|
|
198
|
+
/** Optional raw CSS fill for a polygon / circle footprint. */
|
|
199
|
+
bg?: SubtypeExprOrValue<StringType>;
|
|
200
|
+
/** Optional fill alpha (0–1) for a polygon / circle footprint. */
|
|
201
|
+
fillOpacity?: SubtypeExprOrValue<FloatType>;
|
|
202
|
+
/** Optional stroke width in px. */
|
|
203
|
+
weight?: SubtypeExprOrValue<FloatType>;
|
|
125
204
|
}
|
|
126
205
|
/**
|
|
127
206
|
* Fields the `zone` mapper returns — one annotation zone, before defaults.
|
|
@@ -133,6 +212,12 @@ export interface SchematicItemFields {
|
|
|
133
212
|
* @property width - World width
|
|
134
213
|
* @property height - World height
|
|
135
214
|
* @property pattern - Optional pattern (default `Schematic.outline()`)
|
|
215
|
+
* @property geometry - Optional shape geometry (`Schematic.polyline()` / `polygon()` / `rect()`)
|
|
216
|
+
* @property tone - Optional colour override (semantic tone); absent ⇒ the `pattern`'s tone drives the colour
|
|
217
|
+
* @property color - Optional raw CSS stroke tint; wins over `tone`
|
|
218
|
+
* @property bg - Optional raw CSS area fill (opt-in; zones are unfilled by default)
|
|
219
|
+
* @property fillOpacity - Optional fill alpha (0–1) for the area fill
|
|
220
|
+
* @property weight - Optional stroke width in px
|
|
136
221
|
*/
|
|
137
222
|
export interface SchematicZoneFields {
|
|
138
223
|
/** Zone identity. */
|
|
@@ -149,6 +234,18 @@ export interface SchematicZoneFields {
|
|
|
149
234
|
height: SubtypeExprOrValue<FloatType>;
|
|
150
235
|
/** Optional pattern (default `Schematic.outline()`). */
|
|
151
236
|
pattern?: SubtypeExprOrValue<SchematicZonePatternType>;
|
|
237
|
+
/** Optional shape geometry (`Schematic.polyline()` / `polygon()` / `rect()`); absent ⇒ rect. */
|
|
238
|
+
geometry?: SubtypeExprOrValue<SchematicGeometryType>;
|
|
239
|
+
/** Optional colour override (semantic tone); absent ⇒ the `pattern`'s tone drives the colour. */
|
|
240
|
+
tone?: SubtypeExprOrValue<SchematicToneType> | SchematicToneLiteral;
|
|
241
|
+
/** Optional raw CSS stroke tint (e.g. `"#2D7FF9"`, `"teal"`); wins over `tone`. */
|
|
242
|
+
color?: SubtypeExprOrValue<StringType>;
|
|
243
|
+
/** Optional raw CSS area fill (opt-in; zones are unfilled by default). */
|
|
244
|
+
bg?: SubtypeExprOrValue<StringType>;
|
|
245
|
+
/** Optional fill alpha (0–1) for the area fill. */
|
|
246
|
+
fillOpacity?: SubtypeExprOrValue<FloatType>;
|
|
247
|
+
/** Optional stroke width in px. */
|
|
248
|
+
weight?: SubtypeExprOrValue<FloatType>;
|
|
152
249
|
}
|
|
153
250
|
/**
|
|
154
251
|
* Fields the `link` mapper returns — one connection, before defaults.
|
|
@@ -190,6 +287,7 @@ export interface SchematicLinkFields {
|
|
|
190
287
|
* @property grid - Metric grid aligned to the scale legend
|
|
191
288
|
* @property navigator - Navigator rail (zones → items TOC)
|
|
192
289
|
* @property minimap - Minimap with the viewport rectangle
|
|
290
|
+
* @property height - Optional fixed panel height (any CSS length)
|
|
193
291
|
* @property onSelect - Optional item-click callback (receives the item key)
|
|
194
292
|
*/
|
|
195
293
|
export interface SchematicConfig<I extends StructType, Z extends StructType, L extends StructType> {
|
|
@@ -216,6 +314,8 @@ export interface SchematicConfig<I extends StructType, Z extends StructType, L e
|
|
|
216
314
|
navigator?: SubtypeExprOrValue<BooleanType> | boolean;
|
|
217
315
|
/** Minimap with the viewport rectangle; default: shown for 25+ items. */
|
|
218
316
|
minimap?: SubtypeExprOrValue<BooleanType> | boolean;
|
|
317
|
+
/** Optional fixed panel height (any CSS length, e.g. `"400px"`); default: aspect-driven, capped at 75vh. */
|
|
318
|
+
height?: SubtypeExprOrValue<StringType> | string;
|
|
219
319
|
/** Optional item-click callback (receives the item key). */
|
|
220
320
|
onSelect?: SubtypeExprOrValue<FunctionType<[StringType], NullType>>;
|
|
221
321
|
}
|
|
@@ -343,6 +443,62 @@ export declare const Schematic: {
|
|
|
343
443
|
* ```
|
|
344
444
|
*/
|
|
345
445
|
readonly dashed: typeof dashed;
|
|
446
|
+
/**
|
|
447
|
+
* Builds a `rect` geometry value — the axis-aligned box (a zone's
|
|
448
|
+
* `x/y/width/height`, or an item's point / marker form). Equals omitting
|
|
449
|
+
* `geometry` / `footprint`.
|
|
450
|
+
*
|
|
451
|
+
* @returns A `SchematicGeometryType` value
|
|
452
|
+
*
|
|
453
|
+
* @example
|
|
454
|
+
* ```ts
|
|
455
|
+
* Schematic.rect()
|
|
456
|
+
* ```
|
|
457
|
+
*/
|
|
458
|
+
readonly rect: typeof rect;
|
|
459
|
+
/**
|
|
460
|
+
* Builds a `circle` geometry value — a circle centred on the entity
|
|
461
|
+
* anchor (an item's `x/y`, or a zone's bbox centre). Models tanks, silos,
|
|
462
|
+
* and round equipment.
|
|
463
|
+
*
|
|
464
|
+
* @param radius - Circle radius in world units
|
|
465
|
+
* @returns A `SchematicGeometryType` value
|
|
466
|
+
*
|
|
467
|
+
* @example
|
|
468
|
+
* ```ts
|
|
469
|
+
* Schematic.circle(2.5)
|
|
470
|
+
* ```
|
|
471
|
+
*/
|
|
472
|
+
readonly circle: typeof circle;
|
|
473
|
+
/**
|
|
474
|
+
* Builds a `polyline` geometry value — an open, arc-aware polyline in
|
|
475
|
+
* world coordinates, optionally widened into a band (a road / aisle).
|
|
476
|
+
* Each vertex's `bulge` curves the edge to the next vertex (0 = straight).
|
|
477
|
+
*
|
|
478
|
+
* @param vertices - Vertices in world coords, in order (`{ x, y, bulge? }`)
|
|
479
|
+
* @param config - Optional `width` band in world units
|
|
480
|
+
* @returns A `SchematicGeometryType` value
|
|
481
|
+
*
|
|
482
|
+
* @example
|
|
483
|
+
* ```ts
|
|
484
|
+
* Schematic.polyline([{ x: 0, y: 4 }, { x: 12, y: 4, bulge: 0.42 }, { x: 12, y: 9 }], { width: 1.6 })
|
|
485
|
+
* ```
|
|
486
|
+
*/
|
|
487
|
+
readonly polyline: typeof polyline;
|
|
488
|
+
/**
|
|
489
|
+
* Builds a `polygon` geometry value — a closed, arc-aware polygon in
|
|
490
|
+
* world coordinates (a rotated / L-shaped zone, or an equipment
|
|
491
|
+
* footprint). The last vertex's `bulge` curves the closing edge.
|
|
492
|
+
*
|
|
493
|
+
* @param vertices - Boundary vertices in world coords, in order (auto-closed; `{ x, y, bulge? }`)
|
|
494
|
+
* @returns A `SchematicGeometryType` value
|
|
495
|
+
*
|
|
496
|
+
* @example
|
|
497
|
+
* ```ts
|
|
498
|
+
* Schematic.polygon([{ x: 2, y: 2 }, { x: 7, y: 3 }, { x: 6, y: 8 }, { x: 1, y: 6 }])
|
|
499
|
+
* ```
|
|
500
|
+
*/
|
|
501
|
+
readonly polygon: typeof polygon;
|
|
346
502
|
readonly Types: {
|
|
347
503
|
/**
|
|
348
504
|
* East StructType for the Schematic component.
|
|
@@ -382,6 +538,39 @@ export declare const Schematic: {
|
|
|
382
538
|
}>>;
|
|
383
539
|
readonly metric: OptionType<StringType>;
|
|
384
540
|
readonly width: OptionType<FloatType>;
|
|
541
|
+
readonly footprint: OptionType<import("@elaraai/east").VariantType<{
|
|
542
|
+
readonly rect: NullType;
|
|
543
|
+
readonly circle: StructType<{
|
|
544
|
+
readonly radius: FloatType;
|
|
545
|
+
}>;
|
|
546
|
+
readonly polyline: StructType<{
|
|
547
|
+
readonly vertices: ArrayType<StructType<{
|
|
548
|
+
readonly x: FloatType;
|
|
549
|
+
readonly y: FloatType;
|
|
550
|
+
readonly bulge: FloatType;
|
|
551
|
+
}>>;
|
|
552
|
+
readonly width: OptionType<FloatType>;
|
|
553
|
+
}>;
|
|
554
|
+
readonly polygon: StructType<{
|
|
555
|
+
readonly vertices: ArrayType<StructType<{
|
|
556
|
+
readonly x: FloatType;
|
|
557
|
+
readonly y: FloatType;
|
|
558
|
+
readonly bulge: FloatType;
|
|
559
|
+
}>>;
|
|
560
|
+
}>;
|
|
561
|
+
}>>;
|
|
562
|
+
readonly tone: OptionType<import("@elaraai/east").VariantType<{
|
|
563
|
+
readonly brand: NullType;
|
|
564
|
+
readonly ink: NullType;
|
|
565
|
+
readonly muted: NullType;
|
|
566
|
+
readonly success: NullType;
|
|
567
|
+
readonly warning: NullType;
|
|
568
|
+
readonly danger: NullType;
|
|
569
|
+
}>>;
|
|
570
|
+
readonly color: OptionType<StringType>;
|
|
571
|
+
readonly bg: OptionType<StringType>;
|
|
572
|
+
readonly fillOpacity: OptionType<FloatType>;
|
|
573
|
+
readonly weight: OptionType<FloatType>;
|
|
385
574
|
}>>;
|
|
386
575
|
readonly zones: ArrayType<StructType<{
|
|
387
576
|
readonly key: StringType;
|
|
@@ -414,6 +603,39 @@ export declare const Schematic: {
|
|
|
414
603
|
readonly angle: OptionType<FloatType>;
|
|
415
604
|
}>;
|
|
416
605
|
}>;
|
|
606
|
+
readonly geometry: OptionType<import("@elaraai/east").VariantType<{
|
|
607
|
+
readonly rect: NullType;
|
|
608
|
+
readonly circle: StructType<{
|
|
609
|
+
readonly radius: FloatType;
|
|
610
|
+
}>;
|
|
611
|
+
readonly polyline: StructType<{
|
|
612
|
+
readonly vertices: ArrayType<StructType<{
|
|
613
|
+
readonly x: FloatType;
|
|
614
|
+
readonly y: FloatType;
|
|
615
|
+
readonly bulge: FloatType;
|
|
616
|
+
}>>;
|
|
617
|
+
readonly width: OptionType<FloatType>;
|
|
618
|
+
}>;
|
|
619
|
+
readonly polygon: StructType<{
|
|
620
|
+
readonly vertices: ArrayType<StructType<{
|
|
621
|
+
readonly x: FloatType;
|
|
622
|
+
readonly y: FloatType;
|
|
623
|
+
readonly bulge: FloatType;
|
|
624
|
+
}>>;
|
|
625
|
+
}>;
|
|
626
|
+
}>>;
|
|
627
|
+
readonly tone: OptionType<import("@elaraai/east").VariantType<{
|
|
628
|
+
readonly brand: NullType;
|
|
629
|
+
readonly ink: NullType;
|
|
630
|
+
readonly muted: NullType;
|
|
631
|
+
readonly success: NullType;
|
|
632
|
+
readonly warning: NullType;
|
|
633
|
+
readonly danger: NullType;
|
|
634
|
+
}>>;
|
|
635
|
+
readonly color: OptionType<StringType>;
|
|
636
|
+
readonly bg: OptionType<StringType>;
|
|
637
|
+
readonly fillOpacity: OptionType<FloatType>;
|
|
638
|
+
readonly weight: OptionType<FloatType>;
|
|
417
639
|
}>>;
|
|
418
640
|
readonly links: ArrayType<StructType<{
|
|
419
641
|
readonly key: StringType;
|
|
@@ -458,6 +680,7 @@ export declare const Schematic: {
|
|
|
458
680
|
readonly grid: OptionType<BooleanType>;
|
|
459
681
|
readonly navigator: OptionType<BooleanType>;
|
|
460
682
|
readonly minimap: OptionType<BooleanType>;
|
|
683
|
+
readonly height: OptionType<StringType>;
|
|
461
684
|
readonly onSelect: OptionType<FunctionType<[StringType], NullType>>;
|
|
462
685
|
}>;
|
|
463
686
|
/**
|
|
@@ -473,6 +696,7 @@ export declare const Schematic: {
|
|
|
473
696
|
* @property meter - Optional mini utilisation bar
|
|
474
697
|
* @property metric - Optional live metric text
|
|
475
698
|
* @property width - Optional world width (wide bar form)
|
|
699
|
+
* @property footprint - Optional shape footprint (point + icon when absent)
|
|
476
700
|
*/
|
|
477
701
|
readonly Item: StructType<{
|
|
478
702
|
readonly key: StringType;
|
|
@@ -494,6 +718,39 @@ export declare const Schematic: {
|
|
|
494
718
|
}>>;
|
|
495
719
|
readonly metric: OptionType<StringType>;
|
|
496
720
|
readonly width: OptionType<FloatType>;
|
|
721
|
+
readonly footprint: OptionType<import("@elaraai/east").VariantType<{
|
|
722
|
+
readonly rect: NullType;
|
|
723
|
+
readonly circle: StructType<{
|
|
724
|
+
readonly radius: FloatType;
|
|
725
|
+
}>;
|
|
726
|
+
readonly polyline: StructType<{
|
|
727
|
+
readonly vertices: ArrayType<StructType<{
|
|
728
|
+
readonly x: FloatType;
|
|
729
|
+
readonly y: FloatType;
|
|
730
|
+
readonly bulge: FloatType;
|
|
731
|
+
}>>;
|
|
732
|
+
readonly width: OptionType<FloatType>;
|
|
733
|
+
}>;
|
|
734
|
+
readonly polygon: StructType<{
|
|
735
|
+
readonly vertices: ArrayType<StructType<{
|
|
736
|
+
readonly x: FloatType;
|
|
737
|
+
readonly y: FloatType;
|
|
738
|
+
readonly bulge: FloatType;
|
|
739
|
+
}>>;
|
|
740
|
+
}>;
|
|
741
|
+
}>>;
|
|
742
|
+
readonly tone: OptionType<import("@elaraai/east").VariantType<{
|
|
743
|
+
readonly brand: NullType;
|
|
744
|
+
readonly ink: NullType;
|
|
745
|
+
readonly muted: NullType;
|
|
746
|
+
readonly success: NullType;
|
|
747
|
+
readonly warning: NullType;
|
|
748
|
+
readonly danger: NullType;
|
|
749
|
+
}>>;
|
|
750
|
+
readonly color: OptionType<StringType>;
|
|
751
|
+
readonly bg: OptionType<StringType>;
|
|
752
|
+
readonly fillOpacity: OptionType<FloatType>;
|
|
753
|
+
readonly weight: OptionType<FloatType>;
|
|
497
754
|
}>;
|
|
498
755
|
/**
|
|
499
756
|
* A resolved annotation zone.
|
|
@@ -505,6 +762,7 @@ export declare const Schematic: {
|
|
|
505
762
|
* @property width - World width
|
|
506
763
|
* @property height - World height
|
|
507
764
|
* @property pattern - Render pattern
|
|
765
|
+
* @property geometry - Optional shape geometry (rect when absent)
|
|
508
766
|
*/
|
|
509
767
|
readonly Zone: StructType<{
|
|
510
768
|
readonly key: StringType;
|
|
@@ -537,6 +795,39 @@ export declare const Schematic: {
|
|
|
537
795
|
readonly angle: OptionType<FloatType>;
|
|
538
796
|
}>;
|
|
539
797
|
}>;
|
|
798
|
+
readonly geometry: OptionType<import("@elaraai/east").VariantType<{
|
|
799
|
+
readonly rect: NullType;
|
|
800
|
+
readonly circle: StructType<{
|
|
801
|
+
readonly radius: FloatType;
|
|
802
|
+
}>;
|
|
803
|
+
readonly polyline: StructType<{
|
|
804
|
+
readonly vertices: ArrayType<StructType<{
|
|
805
|
+
readonly x: FloatType;
|
|
806
|
+
readonly y: FloatType;
|
|
807
|
+
readonly bulge: FloatType;
|
|
808
|
+
}>>;
|
|
809
|
+
readonly width: OptionType<FloatType>;
|
|
810
|
+
}>;
|
|
811
|
+
readonly polygon: StructType<{
|
|
812
|
+
readonly vertices: ArrayType<StructType<{
|
|
813
|
+
readonly x: FloatType;
|
|
814
|
+
readonly y: FloatType;
|
|
815
|
+
readonly bulge: FloatType;
|
|
816
|
+
}>>;
|
|
817
|
+
}>;
|
|
818
|
+
}>>;
|
|
819
|
+
readonly tone: OptionType<import("@elaraai/east").VariantType<{
|
|
820
|
+
readonly brand: NullType;
|
|
821
|
+
readonly ink: NullType;
|
|
822
|
+
readonly muted: NullType;
|
|
823
|
+
readonly success: NullType;
|
|
824
|
+
readonly warning: NullType;
|
|
825
|
+
readonly danger: NullType;
|
|
826
|
+
}>>;
|
|
827
|
+
readonly color: OptionType<StringType>;
|
|
828
|
+
readonly bg: OptionType<StringType>;
|
|
829
|
+
readonly fillOpacity: OptionType<FloatType>;
|
|
830
|
+
readonly weight: OptionType<FloatType>;
|
|
540
831
|
}>;
|
|
541
832
|
/**
|
|
542
833
|
* A resolved link between items.
|
|
@@ -676,6 +967,48 @@ export declare const Schematic: {
|
|
|
676
967
|
readonly warning: NullType;
|
|
677
968
|
readonly danger: NullType;
|
|
678
969
|
}>;
|
|
970
|
+
/**
|
|
971
|
+
* Shared shape geometry for zones (`geometry`) and item footprints
|
|
972
|
+
* (`footprint`).
|
|
973
|
+
*
|
|
974
|
+
* @property rect - Axis-aligned box
|
|
975
|
+
* @property circle - Circle centred on the entity anchor (`radius` in world units)
|
|
976
|
+
* @property polyline - Open, arc-aware polyline; optional world-space band width
|
|
977
|
+
* @property polygon - Closed, arc-aware polygon (>= 3 vertices)
|
|
978
|
+
*/
|
|
979
|
+
readonly Geometry: import("@elaraai/east").VariantType<{
|
|
980
|
+
readonly rect: NullType;
|
|
981
|
+
readonly circle: StructType<{
|
|
982
|
+
readonly radius: FloatType;
|
|
983
|
+
}>;
|
|
984
|
+
readonly polyline: StructType<{
|
|
985
|
+
readonly vertices: ArrayType<StructType<{
|
|
986
|
+
readonly x: FloatType;
|
|
987
|
+
readonly y: FloatType;
|
|
988
|
+
readonly bulge: FloatType;
|
|
989
|
+
}>>;
|
|
990
|
+
readonly width: OptionType<FloatType>;
|
|
991
|
+
}>;
|
|
992
|
+
readonly polygon: StructType<{
|
|
993
|
+
readonly vertices: ArrayType<StructType<{
|
|
994
|
+
readonly x: FloatType;
|
|
995
|
+
readonly y: FloatType;
|
|
996
|
+
readonly bulge: FloatType;
|
|
997
|
+
}>>;
|
|
998
|
+
}>;
|
|
999
|
+
}>;
|
|
1000
|
+
/**
|
|
1001
|
+
* A polyline / polygon vertex — a world point plus DXF `bulge`.
|
|
1002
|
+
*
|
|
1003
|
+
* @property x - World x
|
|
1004
|
+
* @property y - World y
|
|
1005
|
+
* @property bulge - DXF bulge for the edge to the next vertex (0 = straight)
|
|
1006
|
+
*/
|
|
1007
|
+
readonly Vertex: StructType<{
|
|
1008
|
+
readonly x: FloatType;
|
|
1009
|
+
readonly y: FloatType;
|
|
1010
|
+
readonly bulge: FloatType;
|
|
1011
|
+
}>;
|
|
679
1012
|
};
|
|
680
1013
|
};
|
|
681
1014
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/collections/schematic/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;GASG;AAEH,OAAO,EACH,KAAK,QAAQ,EACb,KAAK,kBAAkB,EACvB,KAAK,MAAM,EAGX,OAAO,EAGP,SAAS,EACT,KAAK,WAAW,EAChB,SAAS,EACT,KAAK,YAAY,EACjB,KAAK,QAAQ,EACb,KAAK,UAAU,EACf,UAAU,EACV,UAAU,EACb,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAKH,kBAAkB,EAClB,wBAAwB,EACxB,sBAAsB,EACtB,kBAAkB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/collections/schematic/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;GASG;AAEH,OAAO,EACH,KAAK,QAAQ,EACb,KAAK,kBAAkB,EACvB,KAAK,MAAM,EAGX,OAAO,EAGP,SAAS,EACT,KAAK,WAAW,EAChB,SAAS,EACT,KAAK,YAAY,EACjB,KAAK,QAAQ,EACb,KAAK,UAAU,EACf,UAAU,EACV,UAAU,EACb,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAKH,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,EACrB,wBAAwB,EACxB,sBAAsB,EACtB,kBAAkB,EAClB,iBAAiB,EACpB,MAAM,YAAY,CAAC;AAGpB,OAAO,EACH,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,EACrB,wBAAwB,EACxB,sBAAsB,EACtB,kBAAkB,EAClB,iBAAiB,GACpB,MAAM,YAAY,CAAC;AAEpB,6DAA6D;AAC7D,MAAM,MAAM,oBAAoB,GAAG,OAAO,GAAG,KAAK,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;AAEhG,wGAAwG;AACxG,MAAM,WAAW,sBAAsB;IACnC,+CAA+C;IAC/C,IAAI,CAAC,EAAE,oBAAoB,CAAC;IAC5B,iDAAiD;IACjD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gDAAgD;IAChD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,2CAA2C;IAC3C,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAaD;;;;;;GAMG;AACH,iBAAS,OAAO,CA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