@pacem/pacem 1.0.3 → 1.0.5-archimedes
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 +16 -22
- package/dist/browser/pacem-2d.js +4 -4
- package/dist/browser/pacem-2d.js.map +1 -1
- package/dist/browser/pacem-2d.min.js +2 -2
- package/dist/browser/pacem-3d.js +508 -508
- package/dist/browser/pacem-3d.js.map +1 -1
- package/dist/browser/pacem-3d.min.js +2 -2
- package/dist/browser/pacem-charts.js +1 -1
- package/dist/browser/pacem-charts.min.js +1 -1
- package/dist/browser/pacem-cms.js +1 -1
- package/dist/browser/pacem-cms.min.js +1 -1
- package/dist/browser/pacem-core.js +4098 -4098
- package/dist/browser/pacem-core.js.map +1 -1
- package/dist/browser/pacem-core.min.js +2 -2
- package/dist/browser/pacem-foundation.js +1 -4
- package/dist/browser/pacem-foundation.js.map +1 -1
- package/dist/browser/pacem-foundation.min.js +1 -1
- package/dist/browser/pacem-fx.js +1 -1
- package/dist/browser/pacem-fx.min.js +1 -1
- package/dist/browser/pacem-logging.js +1 -1
- package/dist/browser/pacem-logging.min.js +1 -1
- package/dist/browser/pacem-maps.js +1 -1
- package/dist/browser/pacem-maps.min.js +1 -1
- package/dist/browser/pacem-media.js +1 -1
- package/dist/browser/pacem-media.min.js +1 -1
- package/dist/browser/pacem-networking.js +1 -1
- package/dist/browser/pacem-networking.min.js +1 -1
- package/dist/browser/pacem-numerical.js +1 -1
- package/dist/browser/pacem-numerical.min.js +1 -1
- package/dist/browser/pacem-plus.js +1 -1
- package/dist/browser/pacem-plus.min.js +1 -1
- package/dist/browser/pacem-scaffolding.js +1 -1
- package/dist/browser/pacem-scaffolding.min.js +1 -1
- package/dist/browser/pacem-ui.js +33 -24
- package/dist/browser/pacem-ui.js.map +1 -1
- package/dist/browser/pacem-ui.min.js +2 -2
- package/dist/bundle/pacem.min.mjs +680 -680
- package/dist/bundle/pacem.mjs +40076 -40200
- package/dist/bundle/pacem.mjs.map +4 -4
- package/dist/docs/pacem-core.json +5 -5
- package/dist/docs/pacem-foundation.json +1 -1
- package/dist/docs/pacem-numerical.json +2 -2
- package/dist/typings/index.d.ts +868 -549
- package/package.json +5 -3
package/dist/typings/index.d.ts
CHANGED
|
@@ -1,43 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @pacem/pacem v1.0.
|
|
2
|
+
* @pacem/pacem v1.0.5-archimedes (https://js.pacem.it)
|
|
3
3
|
* Pacem (https://pacem.it)
|
|
4
4
|
* Licensed under Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import { Animations } from '@pacem/pacem-core';
|
|
7
|
-
import { Behaviors } from '@pacem/pacem-core';
|
|
8
|
-
import { Blobs as Blobs_2 } from '@pacem/pacem-foundation';
|
|
9
|
-
import { Components as Components_2 } from '@pacem/pacem-core';
|
|
10
|
-
import { Components as Components_3 } from '@pacem/pacem-ui';
|
|
11
|
-
import { Components as Components_4 } from '@pacem/pacem-maps';
|
|
12
|
-
import { Components as Components_5 } from '@pacem/pacem-scaffolding';
|
|
13
|
-
import { CustomTypedEvent as CustomTypedEvent_2 } from '@pacem/pacem-core';
|
|
14
|
-
import { CustomUIEvent as CustomUIEvent_2 } from '@pacem/pacem-core';
|
|
15
|
-
import { Dates as Dates_2 } from '@pacem/pacem-foundation';
|
|
16
|
-
import { detect as detect_2 } from '@pacem/pacem-foundation';
|
|
17
|
-
import { EventKeyModifier as EventKeyModifier_2 } from '@pacem/pacem-core';
|
|
18
|
-
import { Geometry as Geometry_2 } from '@pacem/pacem-numerical';
|
|
19
|
-
import { HistoryService as HistoryService_2 } from '@pacem/pacem-foundation';
|
|
20
6
|
import { HubConnection } from '@microsoft/signalr';
|
|
21
|
-
import { Imaging as Imaging_2 } from '@pacem/pacem-foundation';
|
|
22
|
-
import { ItemsContainer as ItemsContainer_2 } from '@pacem/pacem-core';
|
|
23
|
-
import { Logging as Logging_2 } from '@pacem/pacem-core';
|
|
24
|
-
import { Maps as Maps_2 } from '@pacem/pacem-maps';
|
|
25
|
-
import { Matrix2D as Matrix2D_2 } from '@pacem/pacem-foundation';
|
|
26
|
-
import { Net } from '@pacem/pacem-core';
|
|
27
|
-
import { OnConnected as OnConnected_2 } from '@pacem/pacem-core';
|
|
28
|
-
import { OnDisconnected as OnDisconnected_2 } from '@pacem/pacem-core';
|
|
29
|
-
import { OnPropertyChanged as OnPropertyChanged_2 } from '@pacem/pacem-core';
|
|
30
|
-
import { OnViewActivated as OnViewActivated_2 } from '@pacem/pacem-core';
|
|
31
|
-
import { PacemEventTarget as PacemEventTarget_2 } from '@pacem/pacem-core';
|
|
32
|
-
import { Point as Point_2 } from '@pacem/pacem-foundation';
|
|
33
|
-
import { PropertyConverter as PropertyConverter_2 } from '@pacem/pacem-core';
|
|
34
|
-
import { Rect as Rect_2 } from '@pacem/pacem-foundation';
|
|
35
|
-
import { Rgba as Rgba_2 } from '@pacem/pacem-foundation';
|
|
36
|
-
import { Scaffolding as Scaffolding_3 } from '@pacem/pacem-scaffolding';
|
|
37
|
-
import { Size as Size_2 } from '@pacem/pacem-foundation';
|
|
38
|
-
import { Strings as Strings_2 } from '@pacem/pacem-foundation';
|
|
39
|
-
import { Type as Type_2 } from '@pacem/pacem-core';
|
|
40
|
-
import { UI as UI_2 } from '@pacem/pacem-core';
|
|
41
7
|
|
|
42
8
|
/** Orientation used by a {@link PacemAdapterElement} to interpret arrow-key navigation. */
|
|
43
9
|
declare enum AdapterOrientation {
|
|
@@ -70,7 +36,7 @@ declare class AdapterUtils {
|
|
|
70
36
|
*/
|
|
71
37
|
static stageDispatch(stage: Stage, type: 'down' | 'up' | 'click' | 'over' | 'out' | 'move', evt: MouseEvent | TouchEvent): void;
|
|
72
38
|
/** Type guard telling whether `viewbox` is a well-formed, finite `Rect` usable as a stage viewbox. */
|
|
73
|
-
static isValidViewbox(viewbox: any): viewbox is
|
|
39
|
+
static isValidViewbox(viewbox: any): viewbox is Rect;
|
|
74
40
|
/**
|
|
75
41
|
* Dispatches a UI event related to a `Drawable` and returns a boolean that tells if the event was prevented (true) or not (false).
|
|
76
42
|
* @param target The `Drawable` instance.
|
|
@@ -84,7 +50,7 @@ declare class AdapterUtils {
|
|
|
84
50
|
* @param evt The `DragDropEvent` instance.
|
|
85
51
|
* @param offset The tracked offset.
|
|
86
52
|
*/
|
|
87
|
-
static itemDispatch(target: Drawable, evt:
|
|
53
|
+
static itemDispatch(target: Drawable, evt: UI.DragDropEvent, offset: Point): boolean;
|
|
88
54
|
}
|
|
89
55
|
|
|
90
56
|
/** Shared helpers used by the concrete `pacem-3d` rendering-backend adapters (Three.js, WebGPU): type guards, buffer flattening, camera lookup and pointer-to-clip-space conversion. */
|
|
@@ -94,34 +60,34 @@ declare class AdapterUtils_2 {
|
|
|
94
60
|
/** Returns whether the given object is a {@link Vector3D} (has numeric `x`/`y`/`z`). */
|
|
95
61
|
static isVector3D(obj: any): obj is Vector3D;
|
|
96
62
|
/** Returns whether the given object is an {@link Rgba} color (has numeric `r`/`g`/`b`). */
|
|
97
|
-
static isRgba(obj: any): obj is
|
|
63
|
+
static isRgba(obj: any): obj is Rgba;
|
|
98
64
|
/**
|
|
99
65
|
* Flattens an array of 3D vectors, UV coordinates, or RGBA colors into a single flat number array (interleaved components), ready for a GPU buffer.
|
|
100
66
|
* @param array Array of {@link Vector3D}, {@link UVMap} entries, or {@link Rgba} values to flatten
|
|
101
67
|
*/
|
|
102
|
-
static flattenVectorArray(array: Vector3D[] | UVMap |
|
|
68
|
+
static flattenVectorArray(array: Vector3D[] | UVMap | Rgba[]): number[];
|
|
103
69
|
/**
|
|
104
70
|
* Returns the first non-hidden {@link Camera} among the given renderables, if any.
|
|
105
71
|
* @param items Renderable items to search
|
|
106
72
|
*/
|
|
107
73
|
static findCamera(items: Renderable[]): Camera;
|
|
108
74
|
/** Converts a viewport-relative point into WebGL/WebGPU clip space (-1..1 on both axes). */
|
|
109
|
-
clipPixel(viewportPoint:
|
|
75
|
+
clipPixel(viewportPoint: Point): Point;
|
|
110
76
|
/** Converts a pointer event's page coordinates into clip space, relative to the given canvas. */
|
|
111
|
-
clipPixel(evt: PointerEventLike, canvas: HTMLCanvasElement):
|
|
77
|
+
clipPixel(evt: PointerEventLike, canvas: HTMLCanvasElement): Point;
|
|
112
78
|
/** Converts a pointer event's page coordinates into clip space, relative to the given viewport rectangle. */
|
|
113
|
-
clipPixel(evt: PointerEventLike, viewport:
|
|
79
|
+
clipPixel(evt: PointerEventLike, viewport: Rect): Point;
|
|
114
80
|
}
|
|
115
81
|
|
|
116
|
-
declare type Address = Maps_2.Address;
|
|
117
|
-
|
|
118
82
|
/** A geocoded (or reverse-geocoded) address: its display string, resolved {@link Position}, and optional {@link StructuredAddress} breakdown. */
|
|
119
|
-
declare type
|
|
83
|
+
declare type Address = {
|
|
120
84
|
fullAddress: string;
|
|
121
85
|
position: Position;
|
|
122
86
|
address?: StructuredAddress;
|
|
123
87
|
};
|
|
124
88
|
|
|
89
|
+
declare type Address_2 = Maps.Address;
|
|
90
|
+
|
|
125
91
|
/** Represents an angle defined by a vertex and two points laying on its sides. */
|
|
126
92
|
export declare interface Angle {
|
|
127
93
|
vertex: Point;
|
|
@@ -181,6 +147,50 @@ declare abstract class AnimationElement extends PacemItemElement implements Time
|
|
|
181
147
|
abstract cancelAnimation(): void;
|
|
182
148
|
}
|
|
183
149
|
|
|
150
|
+
/**
|
|
151
|
+
* `end` event dispatched once a tween/animation completes.
|
|
152
|
+
*/
|
|
153
|
+
declare class AnimationEndEvent extends CustomEvent<{}> {
|
|
154
|
+
constructor();
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* `step` event dispatched on every animation frame of a running tween, carrying the current progress and value.
|
|
159
|
+
*/
|
|
160
|
+
declare class AnimationEvent_2 extends CustomTypedEvent<AnimationEventArgs> {
|
|
161
|
+
constructor(args: AnimationEventArgs);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* Plain data shape carried by {@link AnimationEvent}: the normalized progress and the current interpolated value.
|
|
166
|
+
*/
|
|
167
|
+
declare type AnimationEventArgs = {
|
|
168
|
+
time: number;
|
|
169
|
+
value: number;
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
declare namespace Animations {
|
|
173
|
+
export {
|
|
174
|
+
Easing,
|
|
175
|
+
Easings,
|
|
176
|
+
AnimationEventArgs,
|
|
177
|
+
AnimationEvent_2 as AnimationEvent,
|
|
178
|
+
AnimationEndEvent,
|
|
179
|
+
AnimationStartEvent,
|
|
180
|
+
TweenService,
|
|
181
|
+
Timer,
|
|
182
|
+
Timeline
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
export { Animations }
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* `start` event dispatched when a tween/animation begins.
|
|
189
|
+
*/
|
|
190
|
+
declare class AnimationStartEvent extends CustomEvent<{}> {
|
|
191
|
+
constructor();
|
|
192
|
+
}
|
|
193
|
+
|
|
184
194
|
/** An HTTP operation exposed by an API (method + path), together with its input parameters and expected response shape. */
|
|
185
195
|
declare type ApiEndpoint = {
|
|
186
196
|
method: Net.HttpMethod;
|
|
@@ -448,6 +458,13 @@ declare class BasicMaterialElement extends MaterialElement {
|
|
|
448
458
|
constructor();
|
|
449
459
|
}
|
|
450
460
|
|
|
461
|
+
declare namespace Behaviors {
|
|
462
|
+
export {
|
|
463
|
+
PacemBehavior
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
export { Behaviors }
|
|
467
|
+
|
|
451
468
|
/** How a binary/upload field lets the user pick file(s) or a directory. */
|
|
452
469
|
declare type BinarySelectMode = 'file' | 'multiple' | 'directory-picker' | 'directory' | 'file-picker' | 'multiple-picker';
|
|
453
470
|
|
|
@@ -480,7 +497,7 @@ declare enum BinderEnd {
|
|
|
480
497
|
}
|
|
481
498
|
|
|
482
499
|
/** Event dispatched by a {@link PacemBinderElement} wrapping the original user-interaction event on its path. */
|
|
483
|
-
declare class BinderInteractionEvent extends
|
|
500
|
+
declare class BinderInteractionEvent extends CustomUIEvent<null> {
|
|
484
501
|
constructor(orig: MouseEvent | KeyboardEvent | TouchEvent);
|
|
485
502
|
}
|
|
486
503
|
|
|
@@ -542,7 +559,7 @@ export declare class Blobs {
|
|
|
542
559
|
declare type BlobTextEncoding = 'utf-8' | 'utf-16' | 'utf-16be' | 'utf-16le' | 'iso-8859-1' | 'ascii';
|
|
543
560
|
|
|
544
561
|
/** Converts an attribute string to/from either a `boolean` (`"true"`/`"false"`) or a `number`. */
|
|
545
|
-
declare const BooleanOrNumberConverter:
|
|
562
|
+
declare const BooleanOrNumberConverter: PropertyConverter;
|
|
546
563
|
|
|
547
564
|
/** Axis-aligned bounding box in 3d world space. */
|
|
548
565
|
declare interface Box3D {
|
|
@@ -582,12 +599,12 @@ declare type CalendarEventEventArgs = {
|
|
|
582
599
|
};
|
|
583
600
|
|
|
584
601
|
/** Event dispatched when a {@link PacemCalendarEventElement} rendering gains focus/selection within its host calendar. */
|
|
585
|
-
declare class CalendarEventSelectEvent extends
|
|
602
|
+
declare class CalendarEventSelectEvent extends CustomTypedEvent<CalendarEventEventArgs> {
|
|
586
603
|
constructor(args: CalendarEventEventArgs);
|
|
587
604
|
}
|
|
588
605
|
|
|
589
606
|
/** Event dispatched when a {@link PacemCalendarEventElement} rendering loses focus/selection within its host calendar. */
|
|
590
|
-
declare class CalendarEventUnselectEvent extends
|
|
607
|
+
declare class CalendarEventUnselectEvent extends CustomTypedEvent<CalendarEventEventArgs> {
|
|
591
608
|
constructor(args: CalendarEventEventArgs);
|
|
592
609
|
}
|
|
593
610
|
|
|
@@ -682,7 +699,7 @@ declare type ChartDataSeriesItem = {
|
|
|
682
699
|
declare type ChartDatasource = ChartDataSeries[];
|
|
683
700
|
|
|
684
701
|
/** Custom UI event dispatched by chart elements when the user interacts with a rendered data point (e.g. `itemclick`, `itemmouseover`). */
|
|
685
|
-
declare class ChartEvent extends
|
|
702
|
+
declare class ChartEvent extends CustomUIEvent<ChartEventArgs> {
|
|
686
703
|
constructor(type: string, eventInit: CustomEventInit<ChartEventArgs>, originalEvent: MouseEvent | TouchEvent | KeyboardEvent);
|
|
687
704
|
}
|
|
688
705
|
|
|
@@ -691,10 +708,10 @@ declare interface ChartEventArgs {
|
|
|
691
708
|
/** Gets the data item (and owning series) the event refers to. */
|
|
692
709
|
readonly dataItem: ChartDataSeriesItem;
|
|
693
710
|
/** Gets the point (in page coordinates) to anchor tooltips or popups to. */
|
|
694
|
-
readonly anchorPoint:
|
|
711
|
+
readonly anchorPoint: Point;
|
|
695
712
|
}
|
|
696
713
|
|
|
697
|
-
|
|
714
|
+
declare namespace Charts {
|
|
698
715
|
export {
|
|
699
716
|
MANAGED_EVENTS,
|
|
700
717
|
ChartDataItem,
|
|
@@ -843,7 +860,7 @@ declare type CommandMetadata = {
|
|
|
843
860
|
/** Comparison operators supported by the `compare` validator (see {@link KnownValidatorMetadata} and `p-compare-validator`'s `operator` property in `validators.ts`). */
|
|
844
861
|
declare type CompareValidatorOperator = 'equal' | 'lessOrEqual' | 'less' | 'greater' | 'greaterOrEqual' | 'notEqual';
|
|
845
862
|
|
|
846
|
-
|
|
863
|
+
declare namespace Compile {
|
|
847
864
|
export {
|
|
848
865
|
Markdown,
|
|
849
866
|
Rule,
|
|
@@ -853,6 +870,7 @@ export declare namespace Compile {
|
|
|
853
870
|
Parser
|
|
854
871
|
}
|
|
855
872
|
}
|
|
873
|
+
export { Compile }
|
|
856
874
|
|
|
857
875
|
declare namespace Compile_2 {
|
|
858
876
|
export {
|
|
@@ -941,7 +959,7 @@ declare class Complex {
|
|
|
941
959
|
static get NaC(): Complex;
|
|
942
960
|
}
|
|
943
961
|
|
|
944
|
-
|
|
962
|
+
declare namespace Components {
|
|
945
963
|
export {
|
|
946
964
|
OnInitialize,
|
|
947
965
|
OnDestroy,
|
|
@@ -1027,16 +1045,16 @@ export declare namespace Components {
|
|
|
1027
1045
|
PacemNumberAnimationElement,
|
|
1028
1046
|
PacemPointAnimationElement,
|
|
1029
1047
|
PacemStoryboardElement,
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
Scaffolding_2 as Scaffolding,
|
|
1048
|
+
Drawing_2 as Drawing,
|
|
1049
|
+
Drawing3D_2 as Drawing3D,
|
|
1033
1050
|
Charts,
|
|
1034
|
-
Maps_3 as Maps,
|
|
1035
1051
|
Fx,
|
|
1036
|
-
|
|
1052
|
+
Logging_2 as Logging,
|
|
1053
|
+
Maps_2 as Maps,
|
|
1037
1054
|
Media,
|
|
1038
|
-
|
|
1039
|
-
|
|
1055
|
+
Networking,
|
|
1056
|
+
Scaffolding_2 as Scaffolding,
|
|
1057
|
+
UI_2 as UI,
|
|
1040
1058
|
CarouselDataItem,
|
|
1041
1059
|
PacemCarouselElement,
|
|
1042
1060
|
PacemContextMenuItemElement,
|
|
@@ -1080,6 +1098,114 @@ export declare namespace Components {
|
|
|
1080
1098
|
PacemDataGridElement
|
|
1081
1099
|
}
|
|
1082
1100
|
}
|
|
1101
|
+
export { Components }
|
|
1102
|
+
|
|
1103
|
+
declare namespace Components_2 {
|
|
1104
|
+
export {
|
|
1105
|
+
OnInitialize,
|
|
1106
|
+
OnDestroy,
|
|
1107
|
+
PacemAdapter,
|
|
1108
|
+
PacemAnnihilatorElement,
|
|
1109
|
+
PacemBeforeunloadElement,
|
|
1110
|
+
PacemBroadcastChannelProxyElement,
|
|
1111
|
+
PacemBrowserDetectElement,
|
|
1112
|
+
PacemDataElement,
|
|
1113
|
+
DockMode,
|
|
1114
|
+
PacemDockElement,
|
|
1115
|
+
PacemTransferProxyElement,
|
|
1116
|
+
PacemBodyProxyElement,
|
|
1117
|
+
PacemShellProxyElement,
|
|
1118
|
+
PacemElementProxyElement,
|
|
1119
|
+
PacemEventProxyElement,
|
|
1120
|
+
PacemFetchElement,
|
|
1121
|
+
StateEventArgs,
|
|
1122
|
+
StateEvent,
|
|
1123
|
+
PacemHistoryElement,
|
|
1124
|
+
PacemHtmlProxyElement,
|
|
1125
|
+
PacemIfElement,
|
|
1126
|
+
isItemsContainer,
|
|
1127
|
+
PacemItemElement,
|
|
1128
|
+
ItemRegisterEventName,
|
|
1129
|
+
ItemUnregisterEventName,
|
|
1130
|
+
ItemRegisterEvent,
|
|
1131
|
+
ItemUnregisterEvent,
|
|
1132
|
+
PacemCrossItemsContainerElement,
|
|
1133
|
+
PacemItemsContainerElement,
|
|
1134
|
+
PacemIterableElement,
|
|
1135
|
+
PacemIterativeElement,
|
|
1136
|
+
PacemLayoutProxyElement,
|
|
1137
|
+
PacemMetaProxyElement,
|
|
1138
|
+
PacemOnlineStatusElement,
|
|
1139
|
+
PacemPanelElement,
|
|
1140
|
+
ItemCommandEvent,
|
|
1141
|
+
CustomItemCommandEvent,
|
|
1142
|
+
PacemRepeaterElement,
|
|
1143
|
+
RepeaterItem_2 as RepeaterItem,
|
|
1144
|
+
ResizeEventName,
|
|
1145
|
+
ResizeEventArgs,
|
|
1146
|
+
ResizeEvent,
|
|
1147
|
+
PacemResizeElement,
|
|
1148
|
+
PacemRouterElement,
|
|
1149
|
+
ScrollEventName,
|
|
1150
|
+
ScrollEventArgs,
|
|
1151
|
+
ScrollEvent,
|
|
1152
|
+
PacemScrollAwareElement,
|
|
1153
|
+
PacemServiceWorkerProxyElement,
|
|
1154
|
+
KeyboardShortcutExecuteEventName,
|
|
1155
|
+
PacemShortcutElement,
|
|
1156
|
+
PacemSpanElement,
|
|
1157
|
+
PacemStyleProxyElement,
|
|
1158
|
+
PacemTemplateProxyElement,
|
|
1159
|
+
PacemTextElement,
|
|
1160
|
+
PacemTimerElement,
|
|
1161
|
+
PacemTitleProxyElement,
|
|
1162
|
+
PacemTweenElement,
|
|
1163
|
+
RepeaterItemEventArgs,
|
|
1164
|
+
RepeaterItemCreateEventName,
|
|
1165
|
+
RepeaterItemRemoveEventName,
|
|
1166
|
+
RepeaterItemEvent,
|
|
1167
|
+
RepeaterItemCreateEvent,
|
|
1168
|
+
RepeaterItemRemoveEvent,
|
|
1169
|
+
AriaAttributes,
|
|
1170
|
+
Aria,
|
|
1171
|
+
Wai,
|
|
1172
|
+
PacemElement,
|
|
1173
|
+
PacemContentElement,
|
|
1174
|
+
PacemUnsafeContentElement,
|
|
1175
|
+
PacemSafeContentElement,
|
|
1176
|
+
PacemViewportAwareElement,
|
|
1177
|
+
PacemWebWorkerProxyElement,
|
|
1178
|
+
PacemDragDropElement,
|
|
1179
|
+
PacemRescaleElement,
|
|
1180
|
+
PacemRotateElement,
|
|
1181
|
+
SwipeOptions,
|
|
1182
|
+
PacemSwipeElement,
|
|
1183
|
+
AnimationElement,
|
|
1184
|
+
TweenAnimationElement,
|
|
1185
|
+
PacemColorAnimationElement,
|
|
1186
|
+
PacemNumberAnimationElement,
|
|
1187
|
+
PacemPointAnimationElement,
|
|
1188
|
+
PacemStoryboardElement
|
|
1189
|
+
}
|
|
1190
|
+
}
|
|
1191
|
+
|
|
1192
|
+
declare namespace Components_3 {
|
|
1193
|
+
export {
|
|
1194
|
+
UI_2 as UI
|
|
1195
|
+
}
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1198
|
+
declare namespace Components_4 {
|
|
1199
|
+
export {
|
|
1200
|
+
Maps_2 as Maps
|
|
1201
|
+
}
|
|
1202
|
+
}
|
|
1203
|
+
|
|
1204
|
+
declare namespace Components_5 {
|
|
1205
|
+
export {
|
|
1206
|
+
Scaffolding_2 as Scaffolding
|
|
1207
|
+
}
|
|
1208
|
+
}
|
|
1083
1209
|
|
|
1084
1210
|
/**
|
|
1085
1211
|
* Computes the unit vector orthogonal to the plane identified by 3 points.
|
|
@@ -1144,7 +1270,7 @@ declare class ContenteditableUtils {
|
|
|
1144
1270
|
static findSurroundingNode(range: Range, tagName: string): Element;
|
|
1145
1271
|
static findSurroundingNode(node: Node, tagName: string): Element;
|
|
1146
1272
|
static findSurroundingNode(range: Range, filter: (node: Node) => boolean): Element;
|
|
1147
|
-
static findSurroundingNode<TNode extends Node>(range: Range, type:
|
|
1273
|
+
static findSurroundingNode<TNode extends Node>(range: Range, type: Type<TNode>): TNode;
|
|
1148
1274
|
/**
|
|
1149
1275
|
* Seeks for the nearest surrounding block-level element of a given Selection's range.
|
|
1150
1276
|
* @param range
|
|
@@ -1597,7 +1723,7 @@ export declare abstract class CustomUIEvent<TDetail> extends CustomEvent<TDetail
|
|
|
1597
1723
|
get screenY(): number;
|
|
1598
1724
|
}
|
|
1599
1725
|
|
|
1600
|
-
|
|
1726
|
+
declare namespace DataAnalysis {
|
|
1601
1727
|
export {
|
|
1602
1728
|
Fourier,
|
|
1603
1729
|
Gaussian,
|
|
@@ -1639,7 +1765,7 @@ declare type DataCellMetadataCssFactory = (host: Element, metadata: DataColumnMe
|
|
|
1639
1765
|
* `click` becomes `datacellclick`) and enriched with the originating cell/item/row-index. An un-prevented
|
|
1640
1766
|
* `click` while in `'row'` select mode additionally toggles that row's selection.
|
|
1641
1767
|
*/
|
|
1642
|
-
declare class DataCellUIEvent extends
|
|
1768
|
+
declare class DataCellUIEvent extends CustomUIEvent<DataCellUIEventArgs> {
|
|
1643
1769
|
constructor(type: string, detail: DataCellUIEventArgs, orig?: MouseEvent | TouchEvent | KeyboardEvent);
|
|
1644
1770
|
}
|
|
1645
1771
|
|
|
@@ -1888,7 +2014,7 @@ export declare class Dates {
|
|
|
1888
2014
|
}
|
|
1889
2015
|
|
|
1890
2016
|
/** Event dispatched (and bubbling) when a day is selected on a {@link PacemCalendarElement}, carrying the selected date. */
|
|
1891
|
-
declare class DateSelectEvent extends
|
|
2017
|
+
declare class DateSelectEvent extends CustomTypedEvent<Date> {
|
|
1892
2018
|
constructor(date: Date);
|
|
1893
2019
|
}
|
|
1894
2020
|
|
|
@@ -2026,7 +2152,7 @@ declare enum DialogButtons {
|
|
|
2026
2152
|
}
|
|
2027
2153
|
|
|
2028
2154
|
/** Event dispatched by a {@link PacemDialogBase} when it is committed/closed via one of its buttons; also the resolution value of `open()`'s promise. */
|
|
2029
|
-
declare class DialogResultEvent extends
|
|
2155
|
+
declare class DialogResultEvent extends CustomTypedEvent<DialogResultEventArgs> {
|
|
2030
2156
|
constructor(args: DialogResultEventArgs);
|
|
2031
2157
|
}
|
|
2032
2158
|
|
|
@@ -2125,9 +2251,9 @@ declare class DragDropEvent extends CustomUIEvent<DragDropEventArgsClass | DragD
|
|
|
2125
2251
|
declare type DragDropEventArgs = {
|
|
2126
2252
|
element: HTMLElement | SVGElement;
|
|
2127
2253
|
placeholder: HTMLElement | SVGElement;
|
|
2128
|
-
origin:
|
|
2129
|
-
currentPosition:
|
|
2130
|
-
initialDelta:
|
|
2254
|
+
origin: Point;
|
|
2255
|
+
currentPosition: Point;
|
|
2256
|
+
initialDelta: Point;
|
|
2131
2257
|
startTime: number;
|
|
2132
2258
|
data: any;
|
|
2133
2259
|
floater: Element;
|
|
@@ -2143,13 +2269,13 @@ declare abstract class DragDropEventArgsBaseClass {
|
|
|
2143
2269
|
get element(): HTMLElement | SVGElement;
|
|
2144
2270
|
abstract readonly placeholder: HTMLElement | SVGElement;
|
|
2145
2271
|
abstract readonly data: any;
|
|
2146
|
-
get origin():
|
|
2147
|
-
get initialDelta():
|
|
2272
|
+
get origin(): Point;
|
|
2273
|
+
get initialDelta(): Point;
|
|
2148
2274
|
get startTime(): number;
|
|
2149
2275
|
get floater(): Element;
|
|
2150
2276
|
target: Element;
|
|
2151
|
-
currentPosition:
|
|
2152
|
-
get delta():
|
|
2277
|
+
currentPosition: Point;
|
|
2278
|
+
get delta(): Point;
|
|
2153
2279
|
}
|
|
2154
2280
|
|
|
2155
2281
|
/**
|
|
@@ -2234,14 +2360,14 @@ declare class DragEvent_3 extends UI2DEvent<DragEventArgs_2> {
|
|
|
2234
2360
|
/** Payload carried by a {@link DragEvent}: the dragged {@link Renderable} item and its drag offset. */
|
|
2235
2361
|
declare interface DragEventArgs {
|
|
2236
2362
|
/** Gets the drag displacement. */
|
|
2237
|
-
readonly offset:
|
|
2363
|
+
readonly offset: Point;
|
|
2238
2364
|
/** Gets the item being dragged. */
|
|
2239
2365
|
readonly item: Renderable;
|
|
2240
2366
|
}
|
|
2241
2367
|
|
|
2242
2368
|
/** Event args carried by a `DragEvent`: the dragged `item` and its current `offset`. */
|
|
2243
2369
|
declare interface DragEventArgs_2 {
|
|
2244
|
-
readonly offset:
|
|
2370
|
+
readonly offset: Point;
|
|
2245
2371
|
readonly item: Drawable;
|
|
2246
2372
|
}
|
|
2247
2373
|
|
|
@@ -2278,10 +2404,10 @@ declare abstract class DrawableElement extends Components_2.PacemCrossItemsConta
|
|
|
2278
2404
|
|
|
2279
2405
|
/** Event dispatched for pointer interactions (over/out/down/up/click) targeting a `Drawable`. */
|
|
2280
2406
|
declare class DrawableEvent extends UI2DEvent<Drawable> {
|
|
2281
|
-
constructor(type: string, args: Drawable, originalEvent: MouseEvent | TouchEvent | KeyboardEvent, m:
|
|
2407
|
+
constructor(type: string, args: Drawable, originalEvent: MouseEvent | TouchEvent | KeyboardEvent, m: Matrix2D);
|
|
2282
2408
|
}
|
|
2283
2409
|
|
|
2284
|
-
|
|
2410
|
+
declare namespace Drawing {
|
|
2285
2411
|
export {
|
|
2286
2412
|
isDrawable,
|
|
2287
2413
|
isUiObject,
|
|
@@ -2316,8 +2442,9 @@ export declare namespace Drawing {
|
|
|
2316
2442
|
StageEvent
|
|
2317
2443
|
}
|
|
2318
2444
|
}
|
|
2445
|
+
export { Drawing }
|
|
2319
2446
|
|
|
2320
|
-
|
|
2447
|
+
declare namespace Drawing3D {
|
|
2321
2448
|
export {
|
|
2322
2449
|
isStage,
|
|
2323
2450
|
isRenderable,
|
|
@@ -2334,8 +2461,8 @@ export declare namespace Drawing3D {
|
|
|
2334
2461
|
computePlaneNormal,
|
|
2335
2462
|
isInteraction,
|
|
2336
2463
|
Vector3D,
|
|
2337
|
-
Matrix3D,
|
|
2338
|
-
Quaternion,
|
|
2464
|
+
Matrix3D_2 as Matrix3D,
|
|
2465
|
+
Quaternion_2 as Quaternion,
|
|
2339
2466
|
UVMap,
|
|
2340
2467
|
Box3D,
|
|
2341
2468
|
Sphere3D,
|
|
@@ -2346,7 +2473,7 @@ export declare namespace Drawing3D {
|
|
|
2346
2473
|
OrthographicCamera,
|
|
2347
2474
|
PerspectiveCamera,
|
|
2348
2475
|
Light,
|
|
2349
|
-
Mesh,
|
|
2476
|
+
Mesh_2 as Mesh,
|
|
2350
2477
|
Group_2 as Group,
|
|
2351
2478
|
DragEventArgs,
|
|
2352
2479
|
UI3DEvent,
|
|
@@ -2393,8 +2520,9 @@ export declare namespace Drawing3D {
|
|
|
2393
2520
|
MaterialElement
|
|
2394
2521
|
}
|
|
2395
2522
|
}
|
|
2523
|
+
export { Drawing3D }
|
|
2396
2524
|
|
|
2397
|
-
|
|
2525
|
+
declare namespace Drawing3D_2 {
|
|
2398
2526
|
export {
|
|
2399
2527
|
isStage,
|
|
2400
2528
|
isRenderable,
|
|
@@ -2411,8 +2539,8 @@ export declare namespace Drawing3D_2 {
|
|
|
2411
2539
|
computePlaneNormal,
|
|
2412
2540
|
isInteraction,
|
|
2413
2541
|
Vector3D,
|
|
2414
|
-
Matrix3D,
|
|
2415
|
-
Quaternion,
|
|
2542
|
+
Matrix3D_2 as Matrix3D,
|
|
2543
|
+
Quaternion_2 as Quaternion,
|
|
2416
2544
|
UVMap,
|
|
2417
2545
|
Box3D,
|
|
2418
2546
|
Sphere3D,
|
|
@@ -2423,7 +2551,7 @@ export declare namespace Drawing3D_2 {
|
|
|
2423
2551
|
OrthographicCamera,
|
|
2424
2552
|
PerspectiveCamera,
|
|
2425
2553
|
Light,
|
|
2426
|
-
Mesh,
|
|
2554
|
+
Mesh_2 as Mesh,
|
|
2427
2555
|
Group_2 as Group,
|
|
2428
2556
|
DragEventArgs,
|
|
2429
2557
|
UI3DEvent,
|
|
@@ -2490,7 +2618,7 @@ export declare namespace Drawing3D_2 {
|
|
|
2490
2618
|
}
|
|
2491
2619
|
}
|
|
2492
2620
|
|
|
2493
|
-
|
|
2621
|
+
declare namespace Drawing_2 {
|
|
2494
2622
|
export {
|
|
2495
2623
|
DrawableElement,
|
|
2496
2624
|
Stage_2 as Stage,
|
|
@@ -2509,7 +2637,7 @@ export declare namespace Drawing_2 {
|
|
|
2509
2637
|
PacemPathElement,
|
|
2510
2638
|
PacemPolygonElement,
|
|
2511
2639
|
PacemPolylineElement,
|
|
2512
|
-
|
|
2640
|
+
PacemImageElement,
|
|
2513
2641
|
PacemTextElement_2 as PacemTextElement,
|
|
2514
2642
|
getStageOptions,
|
|
2515
2643
|
Pacem2DElement,
|
|
@@ -2542,6 +2670,11 @@ declare type Easing = (any: any) => any & {
|
|
|
2542
2670
|
css: string;
|
|
2543
2671
|
};
|
|
2544
2672
|
|
|
2673
|
+
/**
|
|
2674
|
+
* Collection of ready-made {@link Easing} functions, each paired with its CSS timing-function equivalent.
|
|
2675
|
+
*/
|
|
2676
|
+
declare const Easings: any;
|
|
2677
|
+
|
|
2545
2678
|
/** The kind of inline content a {@link PacemEditElement} edits, and the editor UI it swaps in accordingly. */
|
|
2546
2679
|
declare enum EditMode {
|
|
2547
2680
|
/** Plain text, edited via a `${P}-textarea`. */
|
|
@@ -2555,10 +2688,10 @@ declare enum EditMode {
|
|
|
2555
2688
|
}
|
|
2556
2689
|
|
|
2557
2690
|
/** Either a DOM `Element` or a plain `{x,y}` `Point`. */
|
|
2558
|
-
declare type ElementOrPoint = Element |
|
|
2691
|
+
declare type ElementOrPoint = Element | Point;
|
|
2559
2692
|
|
|
2560
2693
|
/** Converts an attribute value into an `Element` (resolved via `querySelector`) or, failing that, a parsed `Point`/JSON value. */
|
|
2561
|
-
declare const ElementOrPointPropertyConverter:
|
|
2694
|
+
declare const ElementOrPointPropertyConverter: PropertyConverter;
|
|
2562
2695
|
|
|
2563
2696
|
/** A pattern that can never match any string (`/a^/`); useful as a safe no-op default for optional matcher parameters. */
|
|
2564
2697
|
export declare const EMPTY_MATCHER: RegExp;
|
|
@@ -2566,11 +2699,11 @@ export declare const EMPTY_MATCHER: RegExp;
|
|
|
2566
2699
|
/** A pointer position expressed in the three coordinate systems normally exposed by mouse/touch events. */
|
|
2567
2700
|
export declare interface EventCoordinates {
|
|
2568
2701
|
/** Position relative to the whole document, including any scrolled-away area. */
|
|
2569
|
-
readonly page:
|
|
2702
|
+
readonly page: Point;
|
|
2570
2703
|
/** Position relative to the viewport. */
|
|
2571
|
-
readonly client:
|
|
2704
|
+
readonly client: Point;
|
|
2572
2705
|
/** Position relative to the physical screen. */
|
|
2573
|
-
readonly screen:
|
|
2706
|
+
readonly screen: Point;
|
|
2574
2707
|
}
|
|
2575
2708
|
|
|
2576
2709
|
/** String tokens accepted by {@link CustomEventUtils.matchModifiers} to describe a keyboard/mouse modifier. */
|
|
@@ -2686,6 +2819,9 @@ declare class Fetcher {
|
|
|
2686
2819
|
static isEmpty(r: GlobalResponse): boolean;
|
|
2687
2820
|
}
|
|
2688
2821
|
|
|
2822
|
+
/** Event name dispatched when a {@link Fetcher}'s request fails. */
|
|
2823
|
+
declare const FetchErrorEventName = "error";
|
|
2824
|
+
|
|
2689
2825
|
/** Payload of an {@link ImageFetchRequestEvent}: an optional search hint plus paging (`skip`/`take`). */
|
|
2690
2826
|
declare type FetchRequestEventArgs = {
|
|
2691
2827
|
hint?: string;
|
|
@@ -2693,8 +2829,14 @@ declare type FetchRequestEventArgs = {
|
|
|
2693
2829
|
take?: number;
|
|
2694
2830
|
};
|
|
2695
2831
|
|
|
2832
|
+
/** Event name dispatched with the raw fetch result payload; see {@link Fetcher.result}. */
|
|
2833
|
+
declare const FetchResultEventName = "fetchresult";
|
|
2834
|
+
|
|
2835
|
+
/** Event name dispatched when a {@link Fetcher}'s request completes successfully. */
|
|
2836
|
+
declare const FetchSuccessEventName = "success";
|
|
2837
|
+
|
|
2696
2838
|
/** Dispatched by a scaffolding field (see `PacemBaseElement.changeHandler` in `types-components.ts`) whenever its `value` actually changes as a result of user interaction; bubbles so an ancestor {@link PacemFormElement}/`PacemFormFieldElement` can react to it. */
|
|
2697
|
-
declare class FieldChangeEvent extends
|
|
2839
|
+
declare class FieldChangeEvent extends CustomTypedEvent<FieldChangeEventArgs> {
|
|
2698
2840
|
constructor(args: FieldChangeEventArgs);
|
|
2699
2841
|
}
|
|
2700
2842
|
|
|
@@ -2723,7 +2865,7 @@ declare type FieldManifest = {
|
|
|
2723
2865
|
};
|
|
2724
2866
|
|
|
2725
2867
|
/** Dispatched by {@link PacemUploadElement} whenever the user picks (or clears) file(s)/a directory. */
|
|
2726
|
-
declare class FileChangeEvent extends
|
|
2868
|
+
declare class FileChangeEvent extends CustomTypedEvent<FileChangeEventArgs> {
|
|
2727
2869
|
constructor(file: FileChangeEventArgs);
|
|
2728
2870
|
}
|
|
2729
2871
|
|
|
@@ -2739,7 +2881,7 @@ declare type FileChangeEventArgs = {
|
|
|
2739
2881
|
declare const FileChangeEventName = "filechange";
|
|
2740
2882
|
|
|
2741
2883
|
/** Dispatched by {@link PacemUploadElement} to report chunked-upload progress/completion. */
|
|
2742
|
-
declare class FileUploadEvent extends
|
|
2884
|
+
declare class FileUploadEvent extends CustomTypedEvent<FileUploadEventArgs> {
|
|
2743
2885
|
constructor(file: FileUploadEventArgs);
|
|
2744
2886
|
}
|
|
2745
2887
|
|
|
@@ -2764,7 +2906,7 @@ declare const FileUploadEventName = "fileupload";
|
|
|
2764
2906
|
*/
|
|
2765
2907
|
declare class FormEventEmitter {
|
|
2766
2908
|
private _element;
|
|
2767
|
-
constructor(_element:
|
|
2909
|
+
constructor(_element: PacemEventTarget);
|
|
2768
2910
|
/** Starts listening for {@link EMITTABLE_EVENT_TYPES} on the target element. */
|
|
2769
2911
|
start(): void;
|
|
2770
2912
|
private _itemEmitHandler;
|
|
@@ -2800,7 +2942,7 @@ declare class Forms {
|
|
|
2800
2942
|
* returning `false`) aborts the submission before any request is made - useful to inject/transform
|
|
2801
2943
|
* {@link FormSubmitEventArgs#parameters} or veto the submit outright.
|
|
2802
2944
|
*/
|
|
2803
|
-
declare class FormSubmitEvent extends
|
|
2945
|
+
declare class FormSubmitEvent extends CustomTypedEvent<FormSubmitEventArgs> {
|
|
2804
2946
|
constructor(args: FormSubmitEventArgs);
|
|
2805
2947
|
}
|
|
2806
2948
|
|
|
@@ -2854,7 +2996,7 @@ declare type FragmentModifierDelegate = (...args: FragmentModifierDelegateArgs)
|
|
|
2854
2996
|
/** Tuple of WGSL identifiers passed to a {@link FragmentModifierDelegate}: world position, instance index, time, cursor and viewport-size references, so custom snippets can reference them. */
|
|
2855
2997
|
declare type FragmentModifierDelegateArgs = [worldPositionRef: string, instanceIndexRef: string, timeRef: string, cursorRef: string, sizeRef: string];
|
|
2856
2998
|
|
|
2857
|
-
|
|
2999
|
+
declare namespace Fx {
|
|
2858
3000
|
export {
|
|
2859
3001
|
PacemFx,
|
|
2860
3002
|
PacemFxElement,
|
|
@@ -2912,7 +3054,7 @@ declare class Gaussian {
|
|
|
2912
3054
|
probability(x: number): number;
|
|
2913
3055
|
}
|
|
2914
3056
|
|
|
2915
|
-
|
|
3057
|
+
declare namespace Geometry {
|
|
2916
3058
|
export {
|
|
2917
3059
|
LinearAlgebra,
|
|
2918
3060
|
Segment,
|
|
@@ -2922,6 +3064,7 @@ export declare namespace Geometry {
|
|
|
2922
3064
|
Utils3D
|
|
2923
3065
|
}
|
|
2924
3066
|
}
|
|
3067
|
+
export { Geometry }
|
|
2925
3068
|
|
|
2926
3069
|
/**
|
|
2927
3070
|
* Resolves a `$ref` pointer (e.g. `#/definitions/Foo` or `#/components/schemas/Foo`) against an {@link ApiManifest}'s `definitions` map.
|
|
@@ -2967,7 +3110,7 @@ declare interface Group_2 extends Ui3DObject {
|
|
|
2967
3110
|
}
|
|
2968
3111
|
|
|
2969
3112
|
/** Head cell display metadata: label, description/tooltip, icon and styling. */
|
|
2970
|
-
declare type HeadCellDisplay = CellStyle &
|
|
3113
|
+
declare type HeadCellDisplay = CellStyle & Scaffolding.TooltipMetadata & {
|
|
2971
3114
|
name?: string;
|
|
2972
3115
|
description?: string;
|
|
2973
3116
|
icon?: string;
|
|
@@ -3022,6 +3165,39 @@ export declare interface Hsla {
|
|
|
3022
3165
|
a?: number;
|
|
3023
3166
|
}
|
|
3024
3167
|
|
|
3168
|
+
/**
|
|
3169
|
+
* Legacy `XMLHttpRequest`-based HTTP client, superseded by the standard `fetch` API and {@link Fetcher}.
|
|
3170
|
+
* Kept for backward compatibility.
|
|
3171
|
+
* @deprecated
|
|
3172
|
+
*/
|
|
3173
|
+
declare class Http {
|
|
3174
|
+
constructor();
|
|
3175
|
+
/** Gets or sets the Bearer authorization token. */
|
|
3176
|
+
accessToken: string;
|
|
3177
|
+
/**
|
|
3178
|
+
* Executes an asynchronous XMLHttpRequest over the net.
|
|
3179
|
+
* @param {String} url - Base url to be requested.
|
|
3180
|
+
* @param {Object} [options] - Options for the request.
|
|
3181
|
+
* @param {Object} [options.data] - Data to be sent along.
|
|
3182
|
+
* @param {String} [options.method=GET] - HTTP Verb to be used.
|
|
3183
|
+
* @param {Object} [options.headers] - Key-value pairs of strings.
|
|
3184
|
+
* @param {Function} [options.progress] - Callback on retrieval progress.
|
|
3185
|
+
*/
|
|
3186
|
+
request(url: any, options?: RequestOptions): DeferPromise<Response_2>;
|
|
3187
|
+
/**
|
|
3188
|
+
* Short-hand for 'GET' requests.
|
|
3189
|
+
*/
|
|
3190
|
+
get(url: any, data?: any, headers?: {
|
|
3191
|
+
[key: string]: string;
|
|
3192
|
+
}): DeferPromise<Response_2>;
|
|
3193
|
+
/**
|
|
3194
|
+
* Short-hand for 'POST' requests (content provided as json).
|
|
3195
|
+
*/
|
|
3196
|
+
post(url: any, data?: any, headers?: {
|
|
3197
|
+
[key: string]: string;
|
|
3198
|
+
}): DeferPromise<Response_2>;
|
|
3199
|
+
}
|
|
3200
|
+
|
|
3025
3201
|
/** HTTP verbs accepted by {@link Fetcher.method} / {@link Http}. */
|
|
3026
3202
|
declare enum HttpMethod {
|
|
3027
3203
|
Get = "GET",
|
|
@@ -3038,16 +3214,16 @@ declare enum HttpMethod {
|
|
|
3038
3214
|
/** Signature of a callback invoked when a hub method emits a value. */
|
|
3039
3215
|
declare type HubMethodCallback = (...args: any[]) => void;
|
|
3040
3216
|
|
|
3041
|
-
declare type Icon = Components_4.Maps.Icon;
|
|
3042
|
-
|
|
3043
3217
|
/** Marker icon descriptor: either a plain image `url`, or a structured icon with `anchor`/`size` and optional inline `html`. */
|
|
3044
|
-
declare type
|
|
3218
|
+
declare type Icon = {
|
|
3045
3219
|
url: string;
|
|
3046
|
-
anchor:
|
|
3047
|
-
size:
|
|
3220
|
+
anchor: Point;
|
|
3221
|
+
size: Size;
|
|
3048
3222
|
html: string | false;
|
|
3049
3223
|
};
|
|
3050
3224
|
|
|
3225
|
+
declare type Icon_2 = Components_4.Maps.Icon;
|
|
3226
|
+
|
|
3051
3227
|
/** A `UiObject` rendering a raster image. */
|
|
3052
3228
|
declare interface Image_2 extends UiObject {
|
|
3053
3229
|
src: string;
|
|
@@ -3058,7 +3234,7 @@ declare interface Image_2 extends UiObject {
|
|
|
3058
3234
|
}
|
|
3059
3235
|
|
|
3060
3236
|
/** Dispatched to request a page of {@link Picture}s (e.g. on scroll, or when the search hint changes); handlers are expected to respond by setting `imageSet`. */
|
|
3061
|
-
declare class ImageFetchRequestEvent extends
|
|
3237
|
+
declare class ImageFetchRequestEvent extends CustomTypedEvent<FetchRequestEventArgs> {
|
|
3062
3238
|
constructor(args: FetchRequestEventArgs);
|
|
3063
3239
|
}
|
|
3064
3240
|
|
|
@@ -3122,8 +3298,8 @@ export declare const INSTANCE_SCOPE_VAR = "pacem:custom-element:scope";
|
|
|
3122
3298
|
declare interface Interaction {
|
|
3123
3299
|
/** Timestamp (as returned by `performance.now()`) of the current frame. */
|
|
3124
3300
|
time: number;
|
|
3125
|
-
cursor:
|
|
3126
|
-
resolution:
|
|
3301
|
+
cursor: Point;
|
|
3302
|
+
resolution: Size;
|
|
3127
3303
|
}
|
|
3128
3304
|
|
|
3129
3305
|
/** Common contract for the interpolation strategies of this module: given an x, returns the estimated y. */
|
|
@@ -3184,7 +3360,7 @@ declare function isLineMaterial(obj: any): obj is LineMaterial;
|
|
|
3184
3360
|
declare function isMaterial(obj: any): obj is Material;
|
|
3185
3361
|
|
|
3186
3362
|
/** Type guard checking whether `object` implements the {@link Mesh} contract. */
|
|
3187
|
-
declare function isMesh(object: any): object is
|
|
3363
|
+
declare function isMesh(object: any): object is Mesh_2;
|
|
3188
3364
|
|
|
3189
3365
|
/** Type guard checking whether `object` implements the {@link MeshGeometry} contract (a {@link NodeGeometry} with triangle indices/normals/UVs). */
|
|
3190
3366
|
declare function isMeshGeometry(object: any): object is MeshGeometry;
|
|
@@ -3422,14 +3598,14 @@ declare type KnownValidatorMetadata = {
|
|
|
3422
3598
|
};
|
|
3423
3599
|
};
|
|
3424
3600
|
|
|
3425
|
-
|
|
3601
|
+
declare namespace L10n {
|
|
3426
3602
|
export {
|
|
3427
3603
|
LocalizationOptions,
|
|
3428
3604
|
Forms
|
|
3429
3605
|
}
|
|
3430
3606
|
}
|
|
3431
3607
|
|
|
3432
|
-
|
|
3608
|
+
declare namespace L10n_2 {
|
|
3433
3609
|
export {
|
|
3434
3610
|
LocalizationOptions_2 as LocalizationOptions,
|
|
3435
3611
|
DataGrids
|
|
@@ -3449,7 +3625,7 @@ declare type LabelManifest = {
|
|
|
3449
3625
|
declare class Lagrange implements Interpolator {
|
|
3450
3626
|
#private;
|
|
3451
3627
|
/** Use {@link Lagrange.create} to build an instance. */
|
|
3452
|
-
protected constructor(points:
|
|
3628
|
+
protected constructor(points: Point[]);
|
|
3453
3629
|
private _prepareBarycentric;
|
|
3454
3630
|
private _computeBarycentric;
|
|
3455
3631
|
/**
|
|
@@ -3467,12 +3643,12 @@ declare class Lagrange implements Interpolator {
|
|
|
3467
3643
|
* Builds a {@link Lagrange} interpolator from a set of points.
|
|
3468
3644
|
* @param points Points to interpolate through.
|
|
3469
3645
|
*/
|
|
3470
|
-
static create(...points:
|
|
3646
|
+
static create(...points: Point[]): Lagrange;
|
|
3471
3647
|
/**
|
|
3472
3648
|
* Builds a {@link Lagrange} interpolator from a set of points.
|
|
3473
3649
|
* @param points Points to interpolate through.
|
|
3474
3650
|
*/
|
|
3475
|
-
static create(points:
|
|
3651
|
+
static create(points: Point[]): Lagrange;
|
|
3476
3652
|
/**
|
|
3477
3653
|
* Builds a {@link Lagrange} interpolator from a set of y values, using their array index as x.
|
|
3478
3654
|
* @param values y values, implicitly located at x = 0, 1, 2, ...
|
|
@@ -3556,10 +3732,10 @@ declare class LatLngBounds {
|
|
|
3556
3732
|
}
|
|
3557
3733
|
|
|
3558
3734
|
/** {@link PropertyConverter} that parses a `"neLat,neLng,swLat,swLng"` (or JSON) attribute into a {@link LatLngBounds}, and serializes it back to JSON. */
|
|
3559
|
-
declare const LatLngBoundsConverter:
|
|
3735
|
+
declare const LatLngBoundsConverter: PropertyConverter;
|
|
3560
3736
|
|
|
3561
3737
|
/** {@link PropertyConverter} that parses a `"lat,lng"` (or JSON) attribute into a {@link LatLng}, and serializes it back to JSON. */
|
|
3562
|
-
declare const LatLngConverter:
|
|
3738
|
+
declare const LatLngConverter: PropertyConverter;
|
|
3563
3739
|
|
|
3564
3740
|
/** Map-provider configuration consumed by {@link PacemLatLngElement}'s `options` property. */
|
|
3565
3741
|
declare interface LatLngOptions {
|
|
@@ -3627,27 +3803,27 @@ declare enum LightboxBehavior {
|
|
|
3627
3803
|
ExplicitClose = "explicitClose"
|
|
3628
3804
|
}
|
|
3629
3805
|
|
|
3630
|
-
|
|
3806
|
+
declare namespace LinearAlgebra {
|
|
3631
3807
|
export {
|
|
3632
3808
|
Vector,
|
|
3633
3809
|
Point3D,
|
|
3634
|
-
|
|
3810
|
+
Vector3D_2 as Vector3D,
|
|
3635
3811
|
Spherical,
|
|
3636
|
-
|
|
3637
|
-
|
|
3812
|
+
Matrix3D,
|
|
3813
|
+
Quaternion
|
|
3638
3814
|
}
|
|
3639
3815
|
}
|
|
3640
3816
|
|
|
3641
3817
|
/** A gradient that varies linearly from `start` to `end`. */
|
|
3642
3818
|
declare interface LinearGradient extends Gradient {
|
|
3643
|
-
start:
|
|
3644
|
-
end:
|
|
3819
|
+
start: Point;
|
|
3820
|
+
end: Point;
|
|
3645
3821
|
}
|
|
3646
3822
|
|
|
3647
3823
|
/** A {@link NodeGeometry} rendered as a polyline through its {@link positions} (no faces/triangles). */
|
|
3648
3824
|
declare class LineGeometry extends NodeGeometry {
|
|
3649
3825
|
/** Gets or sets the vertex positions, in local space; reassigning this array flags the geometry as dirty. */
|
|
3650
|
-
positions:
|
|
3826
|
+
positions: Vector3D_3[];
|
|
3651
3827
|
}
|
|
3652
3828
|
|
|
3653
3829
|
/** A {@link Material} for rendering {@link PacemLineElement} polylines: stroke width, joins, caps and dash pattern. */
|
|
@@ -3746,7 +3922,15 @@ declare interface Logger {
|
|
|
3746
3922
|
log(level: LogLevel, message: string, category?: string): any;
|
|
3747
3923
|
}
|
|
3748
3924
|
|
|
3749
|
-
|
|
3925
|
+
declare namespace Logging {
|
|
3926
|
+
export {
|
|
3927
|
+
LogLevel,
|
|
3928
|
+
Logger
|
|
3929
|
+
}
|
|
3930
|
+
}
|
|
3931
|
+
export { Logging }
|
|
3932
|
+
|
|
3933
|
+
declare namespace Logging_2 {
|
|
3750
3934
|
export {
|
|
3751
3935
|
TrackingData,
|
|
3752
3936
|
Tracker,
|
|
@@ -3794,7 +3978,7 @@ declare const MapConsts: {
|
|
|
3794
3978
|
};
|
|
3795
3979
|
|
|
3796
3980
|
/** Typed `CustomEvent` dispatched by map-relevant elements/adapters, carrying a {@link MapEventArgs} payload (e.g. a click/drag position). */
|
|
3797
|
-
declare class MapEvent extends
|
|
3981
|
+
declare class MapEvent extends CustomTypedEvent<MapEventArgs> {
|
|
3798
3982
|
constructor(type: string, args?: MapEventArgs);
|
|
3799
3983
|
}
|
|
3800
3984
|
|
|
@@ -3806,9 +3990,9 @@ declare type MapEventArgs = {
|
|
|
3806
3990
|
/** Contract for forward/reverse geocoding, implemented by every {@link PacemMapAdapterElement} and consumed by {@link PacemMapGeocodeElement}. */
|
|
3807
3991
|
declare interface MapGeocoder {
|
|
3808
3992
|
/** Resolves the address(es) matching the given geographic position. */
|
|
3809
|
-
reverseGeocode(latLng: LatLng, maxResults?: number): Promise<
|
|
3993
|
+
reverseGeocode(latLng: LatLng, maxResults?: number): Promise<Address[]>;
|
|
3810
3994
|
/** Resolves the geographic position(s) matching the given free-text address. */
|
|
3811
|
-
geocode(address: string, maxResults?: number): Promise<
|
|
3995
|
+
geocode(address: string, maxResults?: number): Promise<Address[]>;
|
|
3812
3996
|
}
|
|
3813
3997
|
|
|
3814
3998
|
/** Native map instance plus the DOM container it was mounted into, as returned by a {@link PacemMapAdapterElement}'s `init` method. */
|
|
@@ -3833,7 +4017,7 @@ declare class MapProjection {
|
|
|
3833
4017
|
private _pixelSize;
|
|
3834
4018
|
private _bounds;
|
|
3835
4019
|
private _normalizedSize;
|
|
3836
|
-
constructor(_pixelSize:
|
|
4020
|
+
constructor(_pixelSize: Size, _bounds: LatLngBounds, _normalizedSize?: number);
|
|
3837
4021
|
private _latLngToWorldNormalizedPoint;
|
|
3838
4022
|
private _worldNormalizedPointToLatLng;
|
|
3839
4023
|
private _latLngToPoint;
|
|
@@ -3869,18 +4053,18 @@ declare class MapProjection {
|
|
|
3869
4053
|
* @param bounds Viewport geographic bounds.
|
|
3870
4054
|
* @param size Viewport pixel size.
|
|
3871
4055
|
*/
|
|
3872
|
-
static latLngToPoint(latLng: LatLng, bounds: LatLngBounds, size:
|
|
4056
|
+
static latLngToPoint(latLng: LatLng, bounds: LatLngBounds, size: Size): Point;
|
|
3873
4057
|
/**
|
|
3874
4058
|
* Un-projects a pixel coordinate within a viewport of the given `size` and `bounds` back to a geographic position.
|
|
3875
4059
|
* @param point Pixel coordinate to un-project.
|
|
3876
4060
|
* @param size Viewport pixel size.
|
|
3877
4061
|
* @param bounds Viewport geographic bounds.
|
|
3878
4062
|
*/
|
|
3879
|
-
static pointToLatLng(point:
|
|
4063
|
+
static pointToLatLng(point: Point, size: Size, bounds: LatLngBounds): LatLng;
|
|
3880
4064
|
}
|
|
3881
4065
|
|
|
3882
4066
|
/** Abstract base for every map-relevant custom element (markers, shapes, layers, overlays) that registers itself with an ancestor {@link PacemMapElement} and is drawn/removed through its currently active {@link PacemMapAdapterElement}. */
|
|
3883
|
-
declare abstract class MapRelevantElement extends
|
|
4067
|
+
declare abstract class MapRelevantElement extends PacemEventTarget {
|
|
3884
4068
|
/** @readonly Gets the ancestor {@link PacemMapElement} this item belongs to. */
|
|
3885
4069
|
get map(): PacemMapElement;
|
|
3886
4070
|
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
@@ -3892,25 +4076,26 @@ declare abstract class MapRelevantElement extends PacemEventTarget_2 {
|
|
|
3892
4076
|
disconnectedCallback(): void;
|
|
3893
4077
|
}
|
|
3894
4078
|
|
|
3895
|
-
|
|
4079
|
+
declare namespace Maps {
|
|
3896
4080
|
export {
|
|
3897
4081
|
StructuredAddress,
|
|
3898
|
-
|
|
4082
|
+
Address,
|
|
3899
4083
|
LatLng,
|
|
3900
4084
|
Position,
|
|
3901
4085
|
LatLngBounds,
|
|
3902
4086
|
MapProjection
|
|
3903
4087
|
}
|
|
3904
4088
|
}
|
|
4089
|
+
export { Maps }
|
|
3905
4090
|
|
|
3906
|
-
|
|
4091
|
+
declare namespace Maps_2 {
|
|
3907
4092
|
export {
|
|
3908
4093
|
isLatLng,
|
|
3909
4094
|
isLatLngBounds,
|
|
3910
4095
|
MapType,
|
|
3911
4096
|
MapColorScheme,
|
|
3912
4097
|
MapConsts,
|
|
3913
|
-
|
|
4098
|
+
Icon,
|
|
3914
4099
|
LatLngConverter,
|
|
3915
4100
|
LatLngBoundsConverter,
|
|
3916
4101
|
MapUtils,
|
|
@@ -3987,7 +4172,7 @@ declare type MapViewOptions = {
|
|
|
3987
4172
|
heading: number;
|
|
3988
4173
|
};
|
|
3989
4174
|
|
|
3990
|
-
|
|
4175
|
+
declare namespace Markdown {
|
|
3991
4176
|
export {
|
|
3992
4177
|
ExtraRule,
|
|
3993
4178
|
Parser_2 as Parser
|
|
@@ -4010,8 +4195,8 @@ declare type Marker = {
|
|
|
4010
4195
|
pathData: string;
|
|
4011
4196
|
stroke?: string;
|
|
4012
4197
|
fill?: string;
|
|
4013
|
-
viewbox?:
|
|
4014
|
-
ref?:
|
|
4198
|
+
viewbox?: Rect;
|
|
4199
|
+
ref?: Point;
|
|
4015
4200
|
width?: number;
|
|
4016
4201
|
height?: number;
|
|
4017
4202
|
};
|
|
@@ -4035,7 +4220,7 @@ declare interface Material {
|
|
|
4035
4220
|
/** Renders the faces as a wireframe (edges only) instead of solid, shaded surfaces. */
|
|
4036
4221
|
wireframe?: boolean;
|
|
4037
4222
|
/** Object color. */
|
|
4038
|
-
color?: string |
|
|
4223
|
+
color?: string | Rgba;
|
|
4039
4224
|
/** Whether the object is rendered at all. */
|
|
4040
4225
|
visible?: boolean;
|
|
4041
4226
|
/** Texture map. */
|
|
@@ -4056,7 +4241,7 @@ declare interface Material {
|
|
|
4056
4241
|
* {@link Material} (with its `shader`-specific extra properties) out of shared and shader-specific watched attributes,
|
|
4057
4242
|
* ready to be assigned to a `Pacem3DMeshElement`'s `material`/`backMaterial` property.
|
|
4058
4243
|
*/
|
|
4059
|
-
declare abstract class MaterialElement extends
|
|
4244
|
+
declare abstract class MaterialElement extends PacemEventTarget {
|
|
4060
4245
|
#private;
|
|
4061
4246
|
/** @param shader The {@link KnownShader} this element's {@link createMaterial} produces. */
|
|
4062
4247
|
constructor(shader: KnownShader);
|
|
@@ -4083,13 +4268,14 @@ declare abstract class MaterialElement extends PacemEventTarget_2 {
|
|
|
4083
4268
|
protected createMaterial(): Promise<Material>;
|
|
4084
4269
|
}
|
|
4085
4270
|
|
|
4086
|
-
|
|
4271
|
+
declare namespace Mathematics {
|
|
4087
4272
|
export {
|
|
4088
4273
|
DataAnalysis,
|
|
4089
4274
|
NumberTheory,
|
|
4090
4275
|
Complex
|
|
4091
4276
|
}
|
|
4092
4277
|
}
|
|
4278
|
+
export { Mathematics }
|
|
4093
4279
|
|
|
4094
4280
|
/** Represents the typical matrix for 2D graphics (css, svg, ...) */
|
|
4095
4281
|
export declare interface Matrix2D {
|
|
@@ -4181,14 +4367,11 @@ export declare class Matrix2D {
|
|
|
4181
4367
|
static areClose(m1: Matrix2D, m2: Matrix2D, precision?: number): boolean;
|
|
4182
4368
|
}
|
|
4183
4369
|
|
|
4184
|
-
/** A 4x4 3d transform matrix (rotation, scale, translation). */
|
|
4185
|
-
declare type Matrix3D = Geometry_2.LinearAlgebra.Matrix3D;
|
|
4186
|
-
|
|
4187
4370
|
/**
|
|
4188
4371
|
* Represents a 4x4 transformation matrix in 3D space, in row-major layout (`m{row}{col}`, with the
|
|
4189
4372
|
* 4th column split out as `offsetX`/`offsetY`/`offsetZ`/`m44` for the translation and perspective terms).
|
|
4190
4373
|
*/
|
|
4191
|
-
declare interface
|
|
4374
|
+
declare interface Matrix3D {
|
|
4192
4375
|
m11: number;
|
|
4193
4376
|
m12: number;
|
|
4194
4377
|
m13: number;
|
|
@@ -4208,51 +4391,51 @@ declare interface Matrix3D_2 {
|
|
|
4208
4391
|
}
|
|
4209
4392
|
|
|
4210
4393
|
/** Utilities to build, combine and invert 4x4 transformation matrices ({@link Matrix3D}) in 3D space. */
|
|
4211
|
-
declare class
|
|
4394
|
+
declare class Matrix3D {
|
|
4212
4395
|
/**
|
|
4213
4396
|
* Identity 4x4 matrix.
|
|
4214
4397
|
* @returns
|
|
4215
4398
|
*/
|
|
4216
|
-
static identity():
|
|
4399
|
+
static identity(): Matrix3D;
|
|
4217
4400
|
/**
|
|
4218
4401
|
* Builds a {@link Matrix3D} from its 16 components, in row-major order.
|
|
4219
4402
|
* @param args Exactly 16 numbers.
|
|
4220
4403
|
* @throws If the number of arguments is not exactly 16.
|
|
4221
4404
|
*/
|
|
4222
|
-
static from(...args: number[]):
|
|
4405
|
+
static from(...args: number[]): Matrix3D;
|
|
4223
4406
|
/**
|
|
4224
4407
|
* Returns the transpose of the given matrix (rows and columns swapped).
|
|
4225
4408
|
* @param m
|
|
4226
4409
|
*/
|
|
4227
|
-
static transpose(m:
|
|
4410
|
+
static transpose(m: Matrix3D): Matrix3D;
|
|
4228
4411
|
/**
|
|
4229
4412
|
* Flattens the matrix into a 16-number array, in row-major order (the same order accepted by {@link from}).
|
|
4230
4413
|
* @param m
|
|
4231
4414
|
*/
|
|
4232
|
-
static toArray(m:
|
|
4415
|
+
static toArray(m: Matrix3D): number[];
|
|
4233
4416
|
/**
|
|
4234
4417
|
* Returns a copy of the given matrix.
|
|
4235
4418
|
* @param m
|
|
4236
4419
|
*/
|
|
4237
|
-
static clone(m:
|
|
4420
|
+
static clone(m: Matrix3D): Matrix3D;
|
|
4238
4421
|
/**
|
|
4239
4422
|
* Returns a copy of the given matrix, after applying an in-place modification callback to it.
|
|
4240
4423
|
* @param m
|
|
4241
4424
|
* @param modifier Callback invoked on the cloned matrix to alter its content.
|
|
4242
4425
|
*/
|
|
4243
|
-
static clone(m:
|
|
4426
|
+
static clone(m: Matrix3D, modifier: (m: Matrix3D) => void): Matrix3D;
|
|
4244
4427
|
/**
|
|
4245
4428
|
* Returns a copy of the matrix scaled by the components of a vector.
|
|
4246
4429
|
* @param m
|
|
4247
4430
|
* @param v Per-axis scale factors.
|
|
4248
4431
|
*/
|
|
4249
|
-
static scale(m:
|
|
4432
|
+
static scale(m: Matrix3D, v: Vector3D_2): Matrix3D;
|
|
4250
4433
|
/**
|
|
4251
4434
|
* Returns a copy of the matrix uniformly scaled by a single factor.
|
|
4252
4435
|
* @param m
|
|
4253
4436
|
* @param scale
|
|
4254
4437
|
*/
|
|
4255
|
-
static scale(m:
|
|
4438
|
+
static scale(m: Matrix3D, scale: number): Matrix3D;
|
|
4256
4439
|
/**
|
|
4257
4440
|
* Returns a copy of the matrix scaled by independent per-axis factors.
|
|
4258
4441
|
* @param m
|
|
@@ -4260,57 +4443,60 @@ declare class Matrix3D_2 {
|
|
|
4260
4443
|
* @param sy
|
|
4261
4444
|
* @param sz
|
|
4262
4445
|
*/
|
|
4263
|
-
static scale(m:
|
|
4446
|
+
static scale(m: Matrix3D, sx: number, sy: number, sz: number): Matrix3D;
|
|
4264
4447
|
/**
|
|
4265
4448
|
* Returns a copy of the matrix translated (offset) by the given vector.
|
|
4266
4449
|
* @param m
|
|
4267
4450
|
* @param offset
|
|
4268
4451
|
*/
|
|
4269
|
-
static translate(m:
|
|
4452
|
+
static translate(m: Matrix3D, offset: Vector3D_2): Matrix3D;
|
|
4270
4453
|
/**
|
|
4271
4454
|
* Parses a string representation of a matrix (16 numbers) into a {@link Matrix3D}.
|
|
4272
4455
|
* @param input String to parse.
|
|
4273
4456
|
* @throws If the input cannot be parsed as exactly 16 numbers.
|
|
4274
4457
|
*/
|
|
4275
|
-
static parse(input: string):
|
|
4458
|
+
static parse(input: string): Matrix3D;
|
|
4276
4459
|
/**
|
|
4277
4460
|
* Checks whether the matrix is the identity matrix.
|
|
4278
4461
|
* @param m
|
|
4279
4462
|
*/
|
|
4280
|
-
static isIdentity(m:
|
|
4463
|
+
static isIdentity(m: Matrix3D): boolean;
|
|
4281
4464
|
/**
|
|
4282
4465
|
* Checks whether the matrix represents a pure affine transform, i.e. it has no perspective
|
|
4283
4466
|
* component (its 4th column is `(0, 0, 0, 1)`).
|
|
4284
4467
|
* @param m
|
|
4285
4468
|
*/
|
|
4286
|
-
static isAffine(m:
|
|
4469
|
+
static isAffine(m: Matrix3D): boolean;
|
|
4287
4470
|
/**
|
|
4288
4471
|
* Computes the determinant of the matrix.
|
|
4289
4472
|
* @param m
|
|
4290
4473
|
*/
|
|
4291
|
-
static determinant(m:
|
|
4474
|
+
static determinant(m: Matrix3D): number;
|
|
4292
4475
|
/**
|
|
4293
4476
|
* Multiplies two matrices in the provided order (i.e.: applies {@link m2} to {@link m1}).
|
|
4294
4477
|
* @param matrices Matrices to apply one to the other, sequentially.
|
|
4295
4478
|
* @returns Combination matrix.
|
|
4296
4479
|
*/
|
|
4297
|
-
static multiply(...matrices:
|
|
4480
|
+
static multiply(...matrices: Matrix3D[]): Matrix3D;
|
|
4298
4481
|
/**
|
|
4299
4482
|
* Computes the inverse of the matrix, using the cofactor/adjugate method (with a specialized,
|
|
4300
4483
|
* cheaper path for affine matrices).
|
|
4301
4484
|
* @param m
|
|
4302
4485
|
* @returns The inverse matrix, or `null` if the matrix is singular (determinant is 0).
|
|
4303
4486
|
*/
|
|
4304
|
-
static invert(m:
|
|
4487
|
+
static invert(m: Matrix3D): Matrix3D;
|
|
4305
4488
|
/**
|
|
4306
4489
|
* Moves a given point in 3D space given the transformation matrix.
|
|
4307
4490
|
* @param point
|
|
4308
4491
|
* @param matrix
|
|
4309
4492
|
*/
|
|
4310
|
-
static transform(point: Point3D, matrix:
|
|
4493
|
+
static transform(point: Point3D, matrix: Matrix3D): Point3D;
|
|
4311
4494
|
}
|
|
4312
4495
|
|
|
4313
|
-
|
|
4496
|
+
/** A 4x4 3d transform matrix (rotation, scale, translation). */
|
|
4497
|
+
declare type Matrix3D_2 = Geometry.LinearAlgebra.Matrix3D;
|
|
4498
|
+
|
|
4499
|
+
declare namespace Media {
|
|
4314
4500
|
export {
|
|
4315
4501
|
PacemAudioElement,
|
|
4316
4502
|
PacemMediaRecorderElement
|
|
@@ -4341,8 +4527,12 @@ declare const MEDIAQUERY_XL = "(min-width: 1824px)";
|
|
|
4341
4527
|
|
|
4342
4528
|
declare const MEDIAQUERY_XS = "(max-width: 767px)";
|
|
4343
4529
|
|
|
4530
|
+
declare interface Mesh extends Polygon {
|
|
4531
|
+
triangleIndices: number[];
|
|
4532
|
+
}
|
|
4533
|
+
|
|
4344
4534
|
/** A {@link Ui3DObject} with a {@link NodeGeometry} (vertex data) and up to two {@link Material}s (front/back face), as produced by {@link Pacem3DMeshElement}. */
|
|
4345
|
-
declare interface
|
|
4535
|
+
declare interface Mesh_2 extends Ui3DObject {
|
|
4346
4536
|
/** Gets or sets the vertex/index data defining the mesh's shape. */
|
|
4347
4537
|
geometry: NodeGeometry;
|
|
4348
4538
|
/** Gets or sets the material applied to front-facing faces. */
|
|
@@ -4351,10 +4541,6 @@ declare interface Mesh extends Ui3DObject {
|
|
|
4351
4541
|
backMaterial?: Material;
|
|
4352
4542
|
}
|
|
4353
4543
|
|
|
4354
|
-
declare interface Mesh_2 extends Polygon {
|
|
4355
|
-
triangleIndices: number[];
|
|
4356
|
-
}
|
|
4357
|
-
|
|
4358
4544
|
/** A {@link NodeGeometry} for triangulated surfaces: adds triangle vertex indices, per-vertex UV texture coordinates and normals. */
|
|
4359
4545
|
declare interface MeshGeometry extends NodeGeometry {
|
|
4360
4546
|
/** Gets or sets the vertex indices forming the mesh's triangles (each consecutive triplet is one face). */
|
|
@@ -4362,33 +4548,49 @@ declare interface MeshGeometry extends NodeGeometry {
|
|
|
4362
4548
|
/** Gets or sets the per-vertex texture (u, v) coordinates. */
|
|
4363
4549
|
textureCoordinates: UVMap;
|
|
4364
4550
|
/** Gets or sets the per-vertex normals, used for lighting. */
|
|
4365
|
-
normals:
|
|
4551
|
+
normals: Vector3D_3[];
|
|
4366
4552
|
}
|
|
4367
4553
|
|
|
4368
4554
|
/** A {@link MeshGeometry} implementation with lazily-computed {@link barycenter}/{@link boundingBox} and settable {@link boundingSphere}, used as the `geometry` of a {@link Pacem3DMeshElement}. */
|
|
4369
4555
|
declare class MeshGeometry extends NodeGeometry {
|
|
4370
4556
|
#private;
|
|
4371
4557
|
/** Gets or sets the centroid of {@link positions}; computed on first access if not explicitly set. */
|
|
4372
|
-
get barycenter():
|
|
4373
|
-
set barycenter(point:
|
|
4558
|
+
get barycenter(): Vector3D_3;
|
|
4559
|
+
set barycenter(point: Vector3D_3);
|
|
4374
4560
|
/** Gets or sets the axis-aligned bounding box; computed from {@link positions} on first access if not explicitly set. */
|
|
4375
4561
|
get boundingBox(): Box3D;
|
|
4376
4562
|
set boundingBox(bbox: Box3D);
|
|
4377
4563
|
/** Gets or sets the bounding sphere. */
|
|
4378
4564
|
get boundingSphere(): Sphere3D;
|
|
4379
4565
|
set boundingSphere(sphere: Sphere3D);
|
|
4380
|
-
constructor(positions:
|
|
4566
|
+
constructor(positions: Vector3D_3[], triangleIndices: number[], textureCoordinates?: UVMap, normals?: Vector3D_3[]);
|
|
4381
4567
|
/** Gets or sets the vertex positions, in local space; reassigning this array flags the geometry as dirty. */
|
|
4382
|
-
positions:
|
|
4568
|
+
positions: Vector3D_3[];
|
|
4383
4569
|
/** Gets or sets the vertex indices forming the mesh's triangles; reassigning this array flags the geometry as dirty. */
|
|
4384
4570
|
triangleIndices: number[];
|
|
4385
4571
|
/** Gets or sets the per-vertex texture (u, v) coordinates; reassigning this array flags the geometry as dirty. */
|
|
4386
4572
|
textureCoordinates: UVMap;
|
|
4387
4573
|
/** Gets or sets the per-vertex normals; reassigning this array flags the geometry as dirty. */
|
|
4388
|
-
normals:
|
|
4574
|
+
normals: Vector3D_3[];
|
|
4575
|
+
}
|
|
4576
|
+
|
|
4577
|
+
declare namespace Net {
|
|
4578
|
+
export {
|
|
4579
|
+
HttpMethod,
|
|
4580
|
+
Fetcher,
|
|
4581
|
+
OAuthFetchable,
|
|
4582
|
+
FetchResultEventName,
|
|
4583
|
+
FetchErrorEventName,
|
|
4584
|
+
FetchSuccessEventName,
|
|
4585
|
+
StatusCodeError,
|
|
4586
|
+
Response_2 as Response,
|
|
4587
|
+
RequestOptions,
|
|
4588
|
+
Http
|
|
4589
|
+
}
|
|
4389
4590
|
}
|
|
4591
|
+
export { Net }
|
|
4390
4592
|
|
|
4391
|
-
|
|
4593
|
+
declare namespace Networking {
|
|
4392
4594
|
export {
|
|
4393
4595
|
PacemHubListenerElement,
|
|
4394
4596
|
HubMethodCallback,
|
|
@@ -4424,12 +4626,12 @@ declare class Newton implements Interpolator {
|
|
|
4424
4626
|
* Builds a {@link Newton} interpolator from a set of points.
|
|
4425
4627
|
* @param points Points to interpolate through.
|
|
4426
4628
|
*/
|
|
4427
|
-
static create(...points:
|
|
4629
|
+
static create(...points: Point[]): Newton;
|
|
4428
4630
|
/**
|
|
4429
4631
|
* Builds a {@link Newton} interpolator from a set of points.
|
|
4430
4632
|
* @param points Points to interpolate through.
|
|
4431
4633
|
*/
|
|
4432
|
-
static create(points:
|
|
4634
|
+
static create(points: Point[]): Newton;
|
|
4433
4635
|
/**
|
|
4434
4636
|
* Builds a {@link Newton} interpolator from a set of y values, using their array index as x.
|
|
4435
4637
|
* @param values y values, implicitly located at x = 0, 1, 2, ...
|
|
@@ -4440,11 +4642,11 @@ declare class Newton implements Interpolator {
|
|
|
4440
4642
|
/** Vertex data contract shared by all geometry kinds ({@link LineGeometry}, {@link MeshGeometry}): a set of positions plus their derived bounding volumes. */
|
|
4441
4643
|
declare interface NodeGeometry {
|
|
4442
4644
|
/** Gets or sets the vertex positions, in local space. */
|
|
4443
|
-
positions:
|
|
4645
|
+
positions: Vector3D_3[];
|
|
4444
4646
|
/** Gets or sets the axis-aligned bounding box, computed from {@link positions} when unset. */
|
|
4445
4647
|
boundingBox?: Box3D;
|
|
4446
4648
|
/** Gets or sets the centroid of {@link positions}, computed on demand when unset. */
|
|
4447
|
-
barycenter?:
|
|
4649
|
+
barycenter?: Vector3D_3;
|
|
4448
4650
|
/** Gets or sets the bounding sphere. */
|
|
4449
4651
|
boundingSphere?: Sphere3D;
|
|
4450
4652
|
/** Gets the list of {@link StalePropertyFlag}s accumulated since the geometry was last consumed by the adapter/renderer. */
|
|
@@ -4458,11 +4660,11 @@ declare interface NodeGeometry {
|
|
|
4458
4660
|
* {@link Pacem3DMeshElement}'s `geometry` property, providing shared bounding-volume computation helpers.
|
|
4459
4661
|
*/
|
|
4460
4662
|
declare abstract class NodeGeometry {
|
|
4461
|
-
constructor(positions?:
|
|
4663
|
+
constructor(positions?: Vector3D_3[]);
|
|
4462
4664
|
/** Computes the centroid (average) of the given positions. */
|
|
4463
|
-
static barycenter(positions:
|
|
4665
|
+
static barycenter(positions: Vector3D_3[]): Vector3D_3;
|
|
4464
4666
|
/** Computes the axis-aligned {@link Box3D} enclosing the given positions. */
|
|
4465
|
-
static boundingBox(positions:
|
|
4667
|
+
static boundingBox(positions: Vector3D_3[]): Box3D;
|
|
4466
4668
|
/** Marks the geometry as stale, flagging it with {@link StalePropertyFlag.Geometry} for the next render. */
|
|
4467
4669
|
protected setAsDirty(): void;
|
|
4468
4670
|
}
|
|
@@ -4526,7 +4728,7 @@ export declare class Numbers {
|
|
|
4526
4728
|
static rebase(v: number | string, from: number, to: number): string;
|
|
4527
4729
|
}
|
|
4528
4730
|
|
|
4529
|
-
|
|
4731
|
+
declare namespace NumberTheory {
|
|
4530
4732
|
export {
|
|
4531
4733
|
Utils_4 as Utils
|
|
4532
4734
|
}
|
|
@@ -4534,6 +4736,18 @@ export declare namespace NumberTheory {
|
|
|
4534
4736
|
|
|
4535
4737
|
declare type NumericKeySelector<T> = (item: T, index?: number) => number;
|
|
4536
4738
|
|
|
4739
|
+
/** Implemented by an element that augments a {@link Fetcher} with OAuth-flavored credentials/headers to attach to its requests. */
|
|
4740
|
+
declare interface OAuthFetchable {
|
|
4741
|
+
/** The {@link Fetcher} this OAuth configuration applies to, if resolved. */
|
|
4742
|
+
readonly fetcher?: Fetcher;
|
|
4743
|
+
/** `RequestInit.credentials` mode to use for the fetch (e.g. `'include'`). */
|
|
4744
|
+
fetchCredentials: RequestCredentials;
|
|
4745
|
+
/** Extra headers (typically an `Authorization` bearer token) to merge into the request. */
|
|
4746
|
+
fetchHeaders: {
|
|
4747
|
+
[key: string]: string;
|
|
4748
|
+
};
|
|
4749
|
+
}
|
|
4750
|
+
|
|
4537
4751
|
/** Implemented by elements that need to react to the standard Custom Elements `adoptedCallback` lifecycle hook. */
|
|
4538
4752
|
export declare interface OnAdopted {
|
|
4539
4753
|
adoptedCallback(): void;
|
|
@@ -4572,7 +4786,7 @@ export declare interface OnViewActivated {
|
|
|
4572
4786
|
viewActivatedCallback(): void;
|
|
4573
4787
|
}
|
|
4574
4788
|
|
|
4575
|
-
|
|
4789
|
+
declare namespace OpenApi {
|
|
4576
4790
|
export {
|
|
4577
4791
|
OpenApiParser,
|
|
4578
4792
|
OpenApi3Schema,
|
|
@@ -4766,7 +4980,7 @@ declare type OrbitCameraConfiguration = {
|
|
|
4766
4980
|
declare type OrbitCameraControl = {
|
|
4767
4981
|
enabled: boolean;
|
|
4768
4982
|
button?: number;
|
|
4769
|
-
modifiers?:
|
|
4983
|
+
modifiers?: EventKeyModifier[];
|
|
4770
4984
|
};
|
|
4771
4985
|
|
|
4772
4986
|
/** A {@link Camera} that projects the scene with a fixed, non-diminishing frustum (parallel projection), as produced by {@link Pacem3DOrthographicCameraElement}. */
|
|
@@ -4798,7 +5012,7 @@ export declare const P: any;
|
|
|
4798
5012
|
* adapters are responsible for initializing/disposing the underlying DOM surface, sizing it, drawing the
|
|
4799
5013
|
* scene graph, hit-testing and producing snapshot images.
|
|
4800
5014
|
*/
|
|
4801
|
-
declare abstract class Pacem2DAdapterElement extends
|
|
5015
|
+
declare abstract class Pacem2DAdapterElement extends PacemEventTarget {
|
|
4802
5016
|
/** Fallback stroke/fill/lineWidth values used when a shape doesn't provide its own. */
|
|
4803
5017
|
protected DefaultShapeValues: {
|
|
4804
5018
|
stroke: string;
|
|
@@ -4809,13 +5023,13 @@ declare abstract class Pacem2DAdapterElement extends PacemEventTarget_2 {
|
|
|
4809
5023
|
* Returns the transform matrix that projects page coords into stage coords.
|
|
4810
5024
|
* @param scene {Pacem2DElement} Container for the stage/scene
|
|
4811
5025
|
*/
|
|
4812
|
-
abstract getTransformMatrix(scene: Pacem2DElement):
|
|
5026
|
+
abstract getTransformMatrix(scene: Pacem2DElement): Matrix2D;
|
|
4813
5027
|
/**
|
|
4814
5028
|
* Updates the stage with the new size.
|
|
4815
5029
|
* @param scene {Pacem2DElement} Container for the stage/scene
|
|
4816
5030
|
* @param size {Size} New size
|
|
4817
5031
|
*/
|
|
4818
|
-
abstract invalidateSize(scene: Pacem2DElement, size:
|
|
5032
|
+
abstract invalidateSize(scene: Pacem2DElement, size: Size): any;
|
|
4819
5033
|
/**
|
|
4820
5034
|
* Initializes the 2d scene and returns its corresponding DOM element.
|
|
4821
5035
|
* @param scene {Pacem2DElement} Container for the stage/scene
|
|
@@ -4865,13 +5079,13 @@ declare class Pacem2DElement extends Components_2.PacemItemsContainerElement<Dra
|
|
|
4865
5079
|
/** Processes the stage content and returns a snapshot image (delegates to the current `adapter`). */
|
|
4866
5080
|
snapshot(bgColor?: string, type?: string, quality?: number): Promise<any> | PromiseLike<Blob>;
|
|
4867
5081
|
/** @readonly Gets the matrix that projects stage coords into screen coords. */
|
|
4868
|
-
get transformMatrix():
|
|
5082
|
+
get transformMatrix(): Matrix2D;
|
|
4869
5083
|
private _transformMatrixScale;
|
|
4870
5084
|
validate(item: DrawableElement): boolean;
|
|
4871
5085
|
/** Gets or sets the rendering adapter (e.g. `pacem-2d-svg-adapter`) in charge of drawing the stage content. */
|
|
4872
5086
|
adapter: Pacem2DAdapterElement;
|
|
4873
5087
|
/** Gets or sets the visible portion of the stage, in stage coordinates. */
|
|
4874
|
-
viewbox:
|
|
5088
|
+
viewbox: Rect;
|
|
4875
5089
|
/** Gets or sets how the viewbox is mapped onto the stage's viewport (mirrors SVG's `preserveAspectRatio`). */
|
|
4876
5090
|
aspectRatio: ViewBoxAspectRatio;
|
|
4877
5091
|
/** Gets or sets the drawable items to render, alternative to declaring them as child elements. */
|
|
@@ -4910,11 +5124,11 @@ declare class Pacem2DElement extends Components_2.PacemItemsContainerElement<Dra
|
|
|
4910
5124
|
* responsible for initializing/disposing the underlying native scene and DOM surface, sizing it, translating the
|
|
4911
5125
|
* {@link RenderableElement} scene graph into native objects, hit-testing (raycasting) and producing snapshot images.
|
|
4912
5126
|
*/
|
|
4913
|
-
declare abstract class Pacem3DAdapterElement extends
|
|
5127
|
+
declare abstract class Pacem3DAdapterElement extends PacemEventTarget {
|
|
4914
5128
|
/**
|
|
4915
5129
|
* When implemented in a derived class, resizes the stage.
|
|
4916
5130
|
*/
|
|
4917
|
-
abstract invalidateSize(scene: Pacem3DElement, size:
|
|
5131
|
+
abstract invalidateSize(scene: Pacem3DElement, size: Size): void;
|
|
4918
5132
|
/**
|
|
4919
5133
|
* Initializes the 3d scene and returns its corresponding DOM element.
|
|
4920
5134
|
* @param scene {Pacem3DElement} Container for the stage/scene
|
|
@@ -4932,7 +5146,7 @@ declare abstract class Pacem3DAdapterElement extends PacemEventTarget_2 {
|
|
|
4932
5146
|
* When implemented in a derived class, retrieves the element casting the ray through the provided point (if any).
|
|
4933
5147
|
* @param point {Object} 2D to check.
|
|
4934
5148
|
*/
|
|
4935
|
-
abstract raycast(scene: Pacem3DElement, point:
|
|
5149
|
+
abstract raycast(scene: Pacem3DElement, point: Point, size: Size, callback: (result: RaycastResult) => void): void;
|
|
4936
5150
|
/**
|
|
4937
5151
|
* When implemented in a derived class, adds a 3d element.
|
|
4938
5152
|
* @param item {Pacem3DObject} item to be added
|
|
@@ -4958,7 +5172,7 @@ declare abstract class Pacem3DAdapterElement extends PacemEventTarget_2 {
|
|
|
4958
5172
|
* When implemented in a derived class, projects a 3d world-space point onto the 2d viewport (screen) coordinates.
|
|
4959
5173
|
* @param point3D Point in 3d world space.
|
|
4960
5174
|
*/
|
|
4961
|
-
abstract project(scene: Pacem3DElement, point3D: Vector3D):
|
|
5175
|
+
abstract project(scene: Pacem3DElement, point3D: Vector3D): Point;
|
|
4962
5176
|
/** Gets the native scene instance */
|
|
4963
5177
|
abstract getScene(scene: Pacem3DElement): any;
|
|
4964
5178
|
/**
|
|
@@ -5050,7 +5264,7 @@ declare class Pacem3DElement extends Components_2.PacemItemsContainerElement<Ren
|
|
|
5050
5264
|
private _moveHandler;
|
|
5051
5265
|
disconnectedCallback(): void;
|
|
5052
5266
|
/** @readonly Gets the current viewport size, as last reported by the internal resize observer. */
|
|
5053
|
-
get size():
|
|
5267
|
+
get size(): Size;
|
|
5054
5268
|
private _resizeHandler;
|
|
5055
5269
|
/** Renders the whole scene through the active {@link adapter}, or just updates the given `item` if provided. */
|
|
5056
5270
|
render(item?: Renderable, deepUpdate?: boolean, now?: number): void;
|
|
@@ -5082,7 +5296,7 @@ declare class Pacem3DLightElement extends RenderableElement implements Light {
|
|
|
5082
5296
|
}
|
|
5083
5297
|
|
|
5084
5298
|
/** `<pacem-3d-mesh>`: a {@link Ui3DElement} that renders a {@link NodeGeometry} (mesh or line) with a front/back {@link Material}. */
|
|
5085
|
-
declare class Pacem3DMeshElement extends Ui3DElement implements
|
|
5299
|
+
declare class Pacem3DMeshElement extends Ui3DElement implements Mesh_2 {
|
|
5086
5300
|
/** Gets or sets the vertex/index data defining the mesh's shape. */
|
|
5087
5301
|
geometry: NodeGeometry;
|
|
5088
5302
|
/** Gets or sets the material applied to front-facing faces. */
|
|
@@ -5135,7 +5349,7 @@ declare class Pacem3DPerspectiveCameraElement extends Pacem3DCameraElement imple
|
|
|
5135
5349
|
* {@link PacemTorusElement} and the {@link PolyhedronElement} family — that compute a {@link NodeGeometry} out of their
|
|
5136
5350
|
* own shape parameters, ready to be assigned to a `Pacem3DMeshElement`'s `geometry` property.
|
|
5137
5351
|
*/
|
|
5138
|
-
declare abstract class Pacem3DPrimitiveElement extends
|
|
5352
|
+
declare abstract class Pacem3DPrimitiveElement extends PacemEventTarget {
|
|
5139
5353
|
/** Gets or sets the computed vertex/index data describing the primitive's shape. */
|
|
5140
5354
|
geometry: NodeGeometry;
|
|
5141
5355
|
viewActivatedCallback(): void;
|
|
@@ -5153,7 +5367,7 @@ declare class Pacem3DThreeAdapterElement extends Pacem3DAdapterElement {
|
|
|
5153
5367
|
private _assertMonoStage;
|
|
5154
5368
|
dispose(scene: Pacem3DElement): void;
|
|
5155
5369
|
snapshot(scene: Pacem3DElement, background?: string, type?: string, quality?: number): PromiseLike<Blob>;
|
|
5156
|
-
project(scene: Pacem3DElement, point3D: Vector3D):
|
|
5370
|
+
project(scene: Pacem3DElement, point3D: Vector3D): Point;
|
|
5157
5371
|
zoomFit(scene: Pacem3DElement, ...items: Ui3DObject[]): Promise<void>;
|
|
5158
5372
|
private _3d;
|
|
5159
5373
|
private _stage;
|
|
@@ -5166,7 +5380,7 @@ declare class Pacem3DThreeAdapterElement extends Pacem3DAdapterElement {
|
|
|
5166
5380
|
/** Gets or sets whether mouse-driven orbit controls (`THREE.OrbitControls`) are attached to the active camera. */
|
|
5167
5381
|
orbit: boolean;
|
|
5168
5382
|
getScene(scene: Pacem3DElement): any;
|
|
5169
|
-
raycast(scene: Pacem3DElement, point:
|
|
5383
|
+
raycast(scene: Pacem3DElement, point: Point, size: Size, callback: (result: RaycastResult) => void): void;
|
|
5170
5384
|
initialize(container: Pacem3DElement): Promise<HTMLCanvasElement>;
|
|
5171
5385
|
private _setCamera;
|
|
5172
5386
|
private _orbitControlsDelegate;
|
|
@@ -5174,7 +5388,7 @@ declare class Pacem3DThreeAdapterElement extends Pacem3DAdapterElement {
|
|
|
5174
5388
|
private _initOrbitControls;
|
|
5175
5389
|
private _disposeOrbitControls;
|
|
5176
5390
|
private _updateRenderer;
|
|
5177
|
-
invalidateSize(scene: Pacem3DElement, size?:
|
|
5391
|
+
invalidateSize(scene: Pacem3DElement, size?: Size): void;
|
|
5178
5392
|
removeItem(scene: Pacem3DElement, item: RenderableElement): void;
|
|
5179
5393
|
updateItem(scene: Pacem3DElement, item: RenderableElement): void;
|
|
5180
5394
|
addItem(scene: Pacem3DElement, item: RenderableElement): void;
|
|
@@ -5189,9 +5403,9 @@ declare class Pacem3DThreeAdapterElement extends Pacem3DAdapterElement {
|
|
|
5189
5403
|
* shader customizations (via {@link modifiers}), and falls back gracefully (see {@link supported}/{@link active})
|
|
5190
5404
|
* when WebGPU isn't available.
|
|
5191
5405
|
*/
|
|
5192
|
-
declare class Pacem3DWebgpuAdapterElement extends Pacem3DAdapterElement implements
|
|
5406
|
+
declare class Pacem3DWebgpuAdapterElement extends Pacem3DAdapterElement implements ItemsContainer<Pacem3DWgslScriptElement> {
|
|
5193
5407
|
#private;
|
|
5194
|
-
invalidateSize(stage: Pacem3DElement, size?:
|
|
5408
|
+
invalidateSize(stage: Pacem3DElement, size?: Size): void;
|
|
5195
5409
|
/** @readonly Gets the child {@link Pacem3DWgslScriptElement} shader-customization items currently registered. */
|
|
5196
5410
|
get items(): Pacem3DWgslScriptElement[];
|
|
5197
5411
|
/** Registers a child {@link Pacem3DWgslScriptElement}, re-parsing the WGSL {@link modifiers} it contributes. */
|
|
@@ -5222,21 +5436,21 @@ declare class Pacem3DWebgpuAdapterElement extends Pacem3DAdapterElement implemen
|
|
|
5222
5436
|
*/
|
|
5223
5437
|
render(scene: Pacem3DElement): void;
|
|
5224
5438
|
snapshot(scene: Pacem3DElement, background?: string, type?: string, quality?: number): PromiseLike<Blob>;
|
|
5225
|
-
raycast(stage: Pacem3DElement, point:
|
|
5439
|
+
raycast(stage: Pacem3DElement, point: Point, size: Size, callback: (result: RaycastResult) => void): void;
|
|
5226
5440
|
private _itemsChangedExec;
|
|
5227
5441
|
private _itemsChanged;
|
|
5228
5442
|
addItem(stage: Pacem3DElement, item: Renderable): void;
|
|
5229
5443
|
removeItem(stage: Pacem3DElement, item: Renderable): void;
|
|
5230
5444
|
updateItem(stage: Pacem3DElement, item?: Renderable): void;
|
|
5231
5445
|
zoomFit(stage: Pacem3DElement, ...items: Ui3DObject[]): Promise<void>;
|
|
5232
|
-
project(stage: Pacem3DElement, point3D:
|
|
5446
|
+
project(stage: Pacem3DElement, point3D: Geometry.LinearAlgebra.Vector3D): Point;
|
|
5233
5447
|
getScene(stage: Pacem3DElement): any;
|
|
5234
5448
|
}
|
|
5235
5449
|
|
|
5236
5450
|
/** `<pacem-3d-wgsl-script>`: declares a WGSL snippet (vertex input/output or fragment stage) that a parent {@link Pacem3DWebgpuAdapterElement} splices into its render pipeline shaders, tracked via a content {@link version} hash. */
|
|
5237
5451
|
declare class Pacem3DWgslScriptElement extends Components_2.PacemItemElement {
|
|
5238
5452
|
#private;
|
|
5239
|
-
protected findContainer():
|
|
5453
|
+
protected findContainer(): ItemsContainer<Pacem3DWgslScriptElement>;
|
|
5240
5454
|
/** @readonly Gets a hash of the current {@link wgsl} content, changing whenever it does. */
|
|
5241
5455
|
get version(): string;
|
|
5242
5456
|
/** Gets or sets which pipeline stage this WGSL snippet modifies (e.g. `"vertex-input"`, `"vertex-output"`, `"fragment"`). */
|
|
@@ -5467,7 +5681,7 @@ declare class PacemAsyncValidatorElement extends PacemBaseValidatorElement imple
|
|
|
5467
5681
|
}
|
|
5468
5682
|
|
|
5469
5683
|
/** Wraps a native `HTMLAudioElement`, exposing playback control and its readiness/lifecycle as reactive properties and events. */
|
|
5470
|
-
declare class PacemAudioElement extends
|
|
5684
|
+
declare class PacemAudioElement extends PacemEventTarget {
|
|
5471
5685
|
#private;
|
|
5472
5686
|
/** Gets or sets the media source URL for the underlying `<audio>` element. */
|
|
5473
5687
|
src: string;
|
|
@@ -5499,8 +5713,8 @@ declare class PacemAudioElement extends PacemEventTarget_2 {
|
|
|
5499
5713
|
/** `<pacem-map-adapter-azure>`: {@link PacemMapAdapterElement} backed by Azure Maps (`atlas`), dynamically loading the Azure Maps SDK/CSS and translating the abstract map/marker/shape/layer/overlay lifecycle onto it. */
|
|
5500
5714
|
declare class PacemAzureMapAdapterElement extends PacemMapAdapterElement {
|
|
5501
5715
|
#private;
|
|
5502
|
-
geocode(address: string, maxResults?: number): Promise<
|
|
5503
|
-
reverseGeocode(latLng: LatLng | [number, number], maxResults?: number): Promise<
|
|
5716
|
+
geocode(address: string, maxResults?: number): Promise<Address[]>;
|
|
5717
|
+
reverseGeocode(latLng: LatLng | [number, number], maxResults?: number): Promise<Address[]>;
|
|
5504
5718
|
protected getBounds(ctrl: PacemMapElement): LatLngBounds;
|
|
5505
5719
|
protected isActive(): boolean;
|
|
5506
5720
|
protected buildOverlayAdapterFor(map: PacemMapElement): OverlayAdapter;
|
|
@@ -6147,10 +6361,10 @@ declare class PacemCanvasAdapterElement extends Pacem2DAdapterElement {
|
|
|
6147
6361
|
snapshot(stage: Pacem2DElement, backgroundColor?: string, type?: string, quality?: number): PromiseLike<Blob>;
|
|
6148
6362
|
getCanvas(stage: Pacem2DElement): HTMLCanvasElement;
|
|
6149
6363
|
private _getScreenInverseMatrix;
|
|
6150
|
-
getTransformMatrix(scene: Pacem2DElement):
|
|
6364
|
+
getTransformMatrix(scene: Pacem2DElement): Matrix2D;
|
|
6151
6365
|
viewActivatedCallback(): void;
|
|
6152
6366
|
disconnectedCallback(): void;
|
|
6153
|
-
invalidateSize(scene: Pacem2DElement, size:
|
|
6367
|
+
invalidateSize(scene: Pacem2DElement, size: Size): void;
|
|
6154
6368
|
getHitTarget(stage: Pacem2DElement): Drawable;
|
|
6155
6369
|
initialize(scene: Pacem2DElement): HTMLElement | SVGElement;
|
|
6156
6370
|
dispose(scene: Pacem2DElement): void;
|
|
@@ -6357,7 +6571,7 @@ declare class PacemChildFormElement extends PacemBaseElement implements Net.OAut
|
|
|
6357
6571
|
}
|
|
6358
6572
|
|
|
6359
6573
|
/** For internal use ONLY! */
|
|
6360
|
-
declare class PacemChildFormPropagatorElement extends
|
|
6574
|
+
declare class PacemChildFormPropagatorElement extends PacemEventTarget {
|
|
6361
6575
|
model: any;
|
|
6362
6576
|
/** Entity property replicated on @see model. */
|
|
6363
6577
|
property: string;
|
|
@@ -6370,7 +6584,7 @@ declare class PacemChildFormPropagatorElement extends PacemEventTarget_2 {
|
|
|
6370
6584
|
/** `<pacem-2d-circle>`: renders a full circle, or a pie-slice sector when `start`/`end` are set. */
|
|
6371
6585
|
declare class PacemCircleElement extends ShapeElement {
|
|
6372
6586
|
/** Gets or sets the center point. */
|
|
6373
|
-
center:
|
|
6587
|
+
center: Point;
|
|
6374
6588
|
/** Gets or sets the radius. */
|
|
6375
6589
|
radius: number;
|
|
6376
6590
|
/** Gets or sets the sector start angle, in degrees (full circle when `start`/`end` describe a full turn). */
|
|
@@ -6388,7 +6602,7 @@ declare class PacemCircleElement extends ShapeElement {
|
|
|
6388
6602
|
* @param start Sector start angle, in degrees.
|
|
6389
6603
|
* @param end Sector end angle, in degrees.
|
|
6390
6604
|
*/
|
|
6391
|
-
static getPathData(c?:
|
|
6605
|
+
static getPathData(c?: Point, r?: number, start?: number, end?: number): string;
|
|
6392
6606
|
}
|
|
6393
6607
|
|
|
6394
6608
|
/** Displays (and CSS-classes itself by) the current hour/minute; typically overlaid on a {@link PacemAgendaElement} to mark the current-time line. */
|
|
@@ -6398,7 +6612,7 @@ declare class PacemClockElement extends Components_2.PacemElement {
|
|
|
6398
6612
|
}
|
|
6399
6613
|
|
|
6400
6614
|
/** Animates its content's height (or width, if `horizontal`) between 0 and its natural size, toggled via the `collapse` property. */
|
|
6401
|
-
declare class PacemCollapseElement extends
|
|
6615
|
+
declare class PacemCollapseElement extends PacemEventTarget {
|
|
6402
6616
|
#private;
|
|
6403
6617
|
/** Gets or sets whether the content is collapsed (hidden, size 0) or expanded. */
|
|
6404
6618
|
collapse: boolean;
|
|
@@ -6491,7 +6705,7 @@ declare class PacemConeElement extends Pacem3DPrimitiveElement {
|
|
|
6491
6705
|
}
|
|
6492
6706
|
|
|
6493
6707
|
/** A {@link Logging.Logger} implementation that forwards enabled log levels to the browser's `console`. */
|
|
6494
|
-
declare class PacemConsoleElement extends
|
|
6708
|
+
declare class PacemConsoleElement extends PacemEventTarget implements Logging.Logger {
|
|
6495
6709
|
private _category;
|
|
6496
6710
|
private _config;
|
|
6497
6711
|
/** Gets or sets which log levels are forwarded to the console (`error`, `info` and `warn` are enabled by default). */
|
|
@@ -6503,7 +6717,7 @@ declare class PacemConsoleElement extends PacemEventTarget_2 implements Logging_
|
|
|
6503
6717
|
* @param message Content to log.
|
|
6504
6718
|
* @param category Optional grouping category (rendered as a `console.group`).
|
|
6505
6719
|
*/
|
|
6506
|
-
log(level:
|
|
6720
|
+
log(level: Logging.LogLevel, message: string, category?: string): void;
|
|
6507
6721
|
private _log;
|
|
6508
6722
|
}
|
|
6509
6723
|
|
|
@@ -6557,7 +6771,7 @@ declare class PacemContenteditableElement extends PacemItemsContainerBaseElement
|
|
|
6557
6771
|
#private;
|
|
6558
6772
|
constructor();
|
|
6559
6773
|
/** @readonly Gets the undo/redo history service tracking this editor's HTML content. */
|
|
6560
|
-
get history():
|
|
6774
|
+
get history(): HistoryService<string>;
|
|
6561
6775
|
reset(): void;
|
|
6562
6776
|
private _fireHistoryChange;
|
|
6563
6777
|
protected convertValueAttributeToProperty(attr: string): string;
|
|
@@ -7234,7 +7448,7 @@ declare class PacemDragDropElement extends PacemBehavior implements DragDropper
|
|
|
7234
7448
|
* once confirmed. The dialog and its editors (textarea/contenteditable/edit-image) are created once, lazily,
|
|
7235
7449
|
* on connect, and shown/hidden according to `type` rather than being recreated on every edit.
|
|
7236
7450
|
*/
|
|
7237
|
-
declare class PacemEditElement extends Components_2.PacemElement implements
|
|
7451
|
+
declare class PacemEditElement extends Components_2.PacemElement implements OnPropertyChanged, OnConnected, OnViewActivated, OnDisconnected {
|
|
7238
7452
|
private _markdown;
|
|
7239
7453
|
constructor(_markdown?: Components_3.UI.MarkdownService);
|
|
7240
7454
|
private _button;
|
|
@@ -7383,7 +7597,7 @@ declare class PacemElementProxyElement extends PacemTransferProxyElement {
|
|
|
7383
7597
|
/** `<pacem-2d-ellipse>`: renders a full ellipse, or a pie-slice sector when `start`/`end` are set. */
|
|
7384
7598
|
declare class PacemEllipseElement extends ShapeElement {
|
|
7385
7599
|
/** Gets or sets the center point. */
|
|
7386
|
-
center:
|
|
7600
|
+
center: Point;
|
|
7387
7601
|
/** Gets or sets the horizontal radius. */
|
|
7388
7602
|
rx: number;
|
|
7389
7603
|
/** Gets or sets the vertical radius. */
|
|
@@ -7404,7 +7618,7 @@ declare class PacemEllipseElement extends ShapeElement {
|
|
|
7404
7618
|
* @param start Sector start angle, in degrees.
|
|
7405
7619
|
* @param end Sector end angle, in degrees.
|
|
7406
7620
|
*/
|
|
7407
|
-
static getPathData(c?:
|
|
7621
|
+
static getPathData(c?: Point, rx?: number, ry?: number, start?: number, end?: number): string;
|
|
7408
7622
|
}
|
|
7409
7623
|
|
|
7410
7624
|
/** {@link PacemTextualInputElement} for an `<input type="email">`, whose read-only view renders as a `mailto:` link. */
|
|
@@ -7769,7 +7983,7 @@ declare interface PacemFx {
|
|
|
7769
7983
|
}
|
|
7770
7984
|
|
|
7771
7985
|
/** Base class for `fx` (visual-effect) custom elements: provides the `target` element the effect operates on. */
|
|
7772
|
-
declare abstract class PacemFxElement extends
|
|
7986
|
+
declare abstract class PacemFxElement extends PacemEventTarget implements PacemFx {
|
|
7773
7987
|
/** Gets or sets the element the visual effect is applied to. */
|
|
7774
7988
|
target: HTMLElement;
|
|
7775
7989
|
}
|
|
@@ -7852,9 +8066,9 @@ declare class PacemFxHeroElement extends PacemFxElement {
|
|
|
7852
8066
|
/** Gets or sets whether the hero transition is active; toggling it on starts the effect, off reverts it. */
|
|
7853
8067
|
hero: boolean;
|
|
7854
8068
|
/** Gets or sets the target state (a `Rect`, or an `Element` whose bounds are used) the `target` element transitions to. */
|
|
7855
|
-
to:
|
|
8069
|
+
to: Rect | Element;
|
|
7856
8070
|
/** Gets or sets the starting state (a `Rect`, or an `Element` whose bounds are used); defaults to the `target` element's current bounds. */
|
|
7857
|
-
from:
|
|
8071
|
+
from: Rect | Element;
|
|
7858
8072
|
/** Gets or sets the transition duration, in milliseconds. */
|
|
7859
8073
|
duration: number;
|
|
7860
8074
|
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
@@ -7912,9 +8126,9 @@ declare class PacemFxRadialGradientElement extends PacemFxGradientItemElement {
|
|
|
7912
8126
|
/** Either 'circle' or 'ellipse' (default). */
|
|
7913
8127
|
shape: 'circle' | 'ellipse';
|
|
7914
8128
|
/** Gradient's origin in normalized coordinates. */
|
|
7915
|
-
center:
|
|
8129
|
+
center: Point;
|
|
7916
8130
|
/** Gradient's diametral size in normalized lengths, or absolute pixels (circular gradients only). */
|
|
7917
|
-
size:
|
|
8131
|
+
size: Size | number;
|
|
7918
8132
|
protected doesPropertyTriggerGradientChange(prop: string): boolean;
|
|
7919
8133
|
buildGradient(): string;
|
|
7920
8134
|
}
|
|
@@ -7983,18 +8197,18 @@ declare class PacemGeolocateElement extends PacemBaseElement {
|
|
|
7983
8197
|
#private;
|
|
7984
8198
|
protected get inputFields(): HTMLElement[];
|
|
7985
8199
|
protected toggleReadonlyView(readonly: boolean): void;
|
|
7986
|
-
protected onChange(evt?: CustomEvent<
|
|
7987
|
-
fetch(search:
|
|
7988
|
-
protected compareValuePropertyValues(old:
|
|
7989
|
-
protected acceptValue(val:
|
|
7990
|
-
protected getViewValue(value:
|
|
8200
|
+
protected onChange(evt?: CustomEvent<Address_2[]>): PromiseLike<any>;
|
|
8201
|
+
fetch(search: Maps.LatLng): void;
|
|
8202
|
+
protected compareValuePropertyValues(old: Address_2, any: Address_2): boolean;
|
|
8203
|
+
protected acceptValue(val: Address_2): void;
|
|
8204
|
+
protected getViewValue(value: Address_2): string;
|
|
7991
8205
|
protected convertValueAttributeToProperty(attr: string): any;
|
|
7992
8206
|
/** Gets or sets the map adapter used by the internal geocoders (forwarded to `pacem-map-geocode`). */
|
|
7993
8207
|
adapter: Components_4.Maps.PacemMapAdapterElement;
|
|
7994
8208
|
/** Gets or sets the map onto which the draggable position marker is attached. */
|
|
7995
8209
|
map: Components_4.Maps.PacemMapElement;
|
|
7996
8210
|
/** Gets or sets the icon used for the position marker. */
|
|
7997
|
-
icon: string |
|
|
8211
|
+
icon: string | Icon_2;
|
|
7998
8212
|
private _datasource;
|
|
7999
8213
|
private _suggest;
|
|
8000
8214
|
private _geocoder;
|
|
@@ -8015,8 +8229,8 @@ declare class PacemGeolocateElement extends PacemBaseElement {
|
|
|
8015
8229
|
/** `<pacem-map-adapter-google>`: {@link PacemMapAdapterElement} backed by the Google Maps JavaScript API, bootstrapping/loading the SDK and translating the abstract map/marker/shape/layer/overlay lifecycle onto it. */
|
|
8016
8230
|
declare class PacemGoogleMapAdapterElement extends PacemMapAdapterElement {
|
|
8017
8231
|
#private;
|
|
8018
|
-
geocode(address: string, maxResults?: number): Promise<
|
|
8019
|
-
reverseGeocode(latLng: LatLng | [number, number], maxResults?: number): Promise<
|
|
8232
|
+
geocode(address: string, maxResults?: number): Promise<Address[]>;
|
|
8233
|
+
reverseGeocode(latLng: LatLng | [number, number], maxResults?: number): Promise<Address[]>;
|
|
8020
8234
|
protected getBounds(map: PacemMapElement): LatLngBounds;
|
|
8021
8235
|
protected isActive(): boolean;
|
|
8022
8236
|
protected buildMarkerAdapterFor(map: PacemMapElement): MarkerAdapter;
|
|
@@ -8317,8 +8531,23 @@ declare class PacemIfElement extends HTMLElement {
|
|
|
8317
8531
|
match: boolean;
|
|
8318
8532
|
}
|
|
8319
8533
|
|
|
8534
|
+
/** `<pacem-2d-image>`: renders a raster image at a given position and size within the stage. */
|
|
8535
|
+
declare class PacemImageElement extends UiElement implements Image_2 {
|
|
8536
|
+
/** Gets or sets the image source URL. */
|
|
8537
|
+
src: string;
|
|
8538
|
+
/** Gets or sets the horizontal position. */
|
|
8539
|
+
x: number;
|
|
8540
|
+
/** Gets or sets the vertical position. */
|
|
8541
|
+
y: number;
|
|
8542
|
+
/** Gets or sets the rendered width (defaults to the natural width, scaled if only `height` is set). */
|
|
8543
|
+
width: number;
|
|
8544
|
+
/** Gets or sets the rendered height (defaults to the natural height, scaled if only `width` is set). */
|
|
8545
|
+
height: number;
|
|
8546
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
8547
|
+
}
|
|
8548
|
+
|
|
8320
8549
|
/** Renders an image as a CSS background (rather than an `<img>` src), enabling `cover`/`contain`/`auto` fitting and reporting its natural/decoded size. */
|
|
8321
|
-
declare class
|
|
8550
|
+
declare class PacemImageElement_2 extends Components_2.PacemElement {
|
|
8322
8551
|
#private;
|
|
8323
8552
|
constructor();
|
|
8324
8553
|
/** Gets or sets how the image is fit within its box (`cover`, `contain`, or `auto` for natural size). */
|
|
@@ -8339,21 +8568,6 @@ declare class PacemImageElement extends Components_2.PacemElement {
|
|
|
8339
8568
|
private _setSource;
|
|
8340
8569
|
}
|
|
8341
8570
|
|
|
8342
|
-
/** `<pacem-2d-image>`: renders a raster image at a given position and size within the stage. */
|
|
8343
|
-
declare class PacemImageElement_2 extends UiElement implements Image_2 {
|
|
8344
|
-
/** Gets or sets the image source URL. */
|
|
8345
|
-
src: string;
|
|
8346
|
-
/** Gets or sets the horizontal position. */
|
|
8347
|
-
x: number;
|
|
8348
|
-
/** Gets or sets the vertical position. */
|
|
8349
|
-
y: number;
|
|
8350
|
-
/** Gets or sets the rendered width (defaults to the natural width, scaled if only `height` is set). */
|
|
8351
|
-
width: number;
|
|
8352
|
-
/** Gets or sets the rendered height (defaults to the natural height, scaled if only `width` is set). */
|
|
8353
|
-
height: number;
|
|
8354
|
-
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
8355
|
-
}
|
|
8356
|
-
|
|
8357
8571
|
/**
|
|
8358
8572
|
* {@link PacemBaseElement}-based field showing an image preview with edit/clear buttons; editing opens a dialog hosting a
|
|
8359
8573
|
* {@link PacemEditImageElement} to pick/upload/snapshot a new picture, while `value` also accepts a directly-typed URL.
|
|
@@ -8401,7 +8615,7 @@ declare class PacemImageInputElement extends PacemBaseElement {
|
|
|
8401
8615
|
}
|
|
8402
8616
|
|
|
8403
8617
|
/** Watches a scrollable `container` and dispatches a `fetchmore` event whenever the user scrolls within `threshold` pixels of the bottom. */
|
|
8404
|
-
declare class PacemInfiniteScrollerElement extends
|
|
8618
|
+
declare class PacemInfiniteScrollerElement extends PacemEventTarget {
|
|
8405
8619
|
constructor();
|
|
8406
8620
|
/** Gets or sets the scrollable element (or a selector for it) to watch; `'$document'` (the default) watches the whole page. */
|
|
8407
8621
|
container: string | HTMLElement;
|
|
@@ -8457,7 +8671,7 @@ declare abstract class PacemItemElement_2<TContainer extends PacemItemsContainer
|
|
|
8457
8671
|
* {@link PacemBaseElement}'s field behavior with `ItemsContainer<TItem>`'s registration API.
|
|
8458
8672
|
* See {@link PacemDataSourceElement} for the concrete specialization holding {@link PacemDataItemElement}s.
|
|
8459
8673
|
*/
|
|
8460
|
-
declare abstract class PacemItemsContainerBaseElement<TItem extends HTMLElement> extends PacemBaseElement implements
|
|
8674
|
+
declare abstract class PacemItemsContainerBaseElement<TItem extends HTMLElement> extends PacemBaseElement implements ItemsContainer<TItem> {
|
|
8461
8675
|
/** Gets the currently registered items. Read-only in practice: only ever set by {@link register}/{@link unregister} or two-way databinding. */
|
|
8462
8676
|
items: TItem[];
|
|
8463
8677
|
/**
|
|
@@ -8577,8 +8791,8 @@ declare class PacemLayoutProxyElement extends PacemEventTarget {
|
|
|
8577
8791
|
declare class PacemLeafletMapAdapterElement extends PacemMapAdapterElement {
|
|
8578
8792
|
#private;
|
|
8579
8793
|
protected buildOverlayAdapterFor(map: PacemMapElement): OverlayAdapter;
|
|
8580
|
-
geocode(address: string, maxResults?: number): Promise<
|
|
8581
|
-
reverseGeocode(latLng: LatLng | [number, number], _?: number): Promise<
|
|
8794
|
+
geocode(address: string, maxResults?: number): Promise<Address[]>;
|
|
8795
|
+
reverseGeocode(latLng: LatLng | [number, number], _?: number): Promise<Address[]>;
|
|
8582
8796
|
protected getBounds(ctrl: PacemMapElement): LatLngBounds;
|
|
8583
8797
|
protected isActive(): boolean;
|
|
8584
8798
|
protected setViewNative(ctrl: PacemMapElement, options: Partial<MapViewOptions>): void;
|
|
@@ -8651,15 +8865,15 @@ declare class PacemLightboxElement extends Components_2.PacemElement implements
|
|
|
8651
8865
|
/** `<pacem-2d-line>`: renders a straight segment between two points. */
|
|
8652
8866
|
declare class PacemLineElement extends ShapeElement {
|
|
8653
8867
|
/** Gets or sets the starting point. */
|
|
8654
|
-
from:
|
|
8868
|
+
from: Point;
|
|
8655
8869
|
/** Gets or sets the ending point. */
|
|
8656
|
-
to:
|
|
8870
|
+
to: Point;
|
|
8657
8871
|
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
8658
8872
|
protected getShapeGeometry(): ShapeGeometry;
|
|
8659
8873
|
/** Computes the SVG path data of the line out of its own `from`/`to` points. */
|
|
8660
8874
|
protected getPathData(): string;
|
|
8661
8875
|
/** Computes the SVG path data of a straight segment between `from` and `to`. */
|
|
8662
|
-
static getPathData(from?:
|
|
8876
|
+
static getPathData(from?: Point, to?: Point): string;
|
|
8663
8877
|
}
|
|
8664
8878
|
|
|
8665
8879
|
/** `<pacem-3d-primitive-line>`: computes the {@link LineGeometry} of a polyline connecting a sequence of points. */
|
|
@@ -8689,10 +8903,10 @@ declare class PacemLoaderElement extends Components_2.PacemElement {
|
|
|
8689
8903
|
/**
|
|
8690
8904
|
* Abstract base for every map-provider adapter (Azure Maps, Google Maps, Leaflet, ...). Bridges one or more {@link PacemMapElement} instances to a concrete native map implementation, owning the geocoding, and the per-map marker/shape/layer/overlay adapter registries, the viewport (`setView`/`fitBounds`) logic and the `initialize`/`destroy` lifecycle shared by every provider-specific subclass (e.g. `PacemAzureMapAdapterElement`, `PacemGoogleMapAdapterElement`, `PacemLeafletMapAdapterElement`).
|
|
8691
8905
|
*/
|
|
8692
|
-
declare abstract class PacemMapAdapterElement extends
|
|
8906
|
+
declare abstract class PacemMapAdapterElement extends PacemEventTarget implements MapGeocoder {
|
|
8693
8907
|
#private;
|
|
8694
|
-
abstract geocode(address: string, maxResults?: number): Promise<
|
|
8695
|
-
abstract reverseGeocode(latLng: LatLng | [number, number], maxResults?: number): Promise<
|
|
8908
|
+
abstract geocode(address: string, maxResults?: number): Promise<Address[]>;
|
|
8909
|
+
abstract reverseGeocode(latLng: LatLng | [number, number], maxResults?: number): Promise<Address[]>;
|
|
8696
8910
|
/**
|
|
8697
8911
|
* Forces the map redraw.
|
|
8698
8912
|
*/
|
|
@@ -8789,7 +9003,7 @@ declare class PacemMapCircleElement extends PacemMapShapeElement {
|
|
|
8789
9003
|
}
|
|
8790
9004
|
|
|
8791
9005
|
/** `<pacem-map>`: root map element hosting an active {@link PacemMapAdapterElement} (Azure Maps/Google Maps/Leaflet), rendering into its `target` (or an auto-generated container), and coordinating the registration/drawing of all descendant {@link MapRelevantElement} items. */
|
|
8792
|
-
declare class PacemMapElement extends
|
|
9006
|
+
declare class PacemMapElement extends PacemEventTarget {
|
|
8793
9007
|
#private;
|
|
8794
9008
|
/** Gets or sets the map zoom level. */
|
|
8795
9009
|
zoom: number;
|
|
@@ -8861,7 +9075,7 @@ declare class PacemMapElement extends PacemEventTarget_2 {
|
|
|
8861
9075
|
}
|
|
8862
9076
|
|
|
8863
9077
|
/** `<pacem-map-geocode>`: debounced geocoding/reverse-geocoding helper element that delegates to its {@link adapter}'s {@link MapGeocoder} implementation, exposing `search`/`position` as inputs and `results` as output. */
|
|
8864
|
-
declare class PacemMapGeocodeElement extends
|
|
9078
|
+
declare class PacemMapGeocodeElement extends PacemEventTarget {
|
|
8865
9079
|
#private;
|
|
8866
9080
|
/** Gets or sets the {@link PacemMapAdapterElement} used to actually perform the geocode/reverse-geocode calls. */
|
|
8867
9081
|
adapter: PacemMapAdapterElement;
|
|
@@ -8870,7 +9084,7 @@ declare class PacemMapGeocodeElement extends PacemEventTarget_2 {
|
|
|
8870
9084
|
/** Gets or sets the debounce (in milliseconds) applied before a `search`/`position` change triggers a new request. */
|
|
8871
9085
|
debounce: number;
|
|
8872
9086
|
/** Gets or sets the (reverse-)geocoding results. */
|
|
8873
|
-
results:
|
|
9087
|
+
results: Address[];
|
|
8874
9088
|
/** Gets or sets the free-text address to geocode. */
|
|
8875
9089
|
search: string;
|
|
8876
9090
|
/** Gets or sets the position to reverse-geocode. */
|
|
@@ -8889,7 +9103,7 @@ declare class PacemMapGeocodeElement extends PacemEventTarget_2 {
|
|
|
8889
9103
|
}
|
|
8890
9104
|
|
|
8891
9105
|
/** `<pacem-map-geolocate>`: wraps the browser's Geolocation API, exposing the permission state and resolved {@link position} (with altitude/heading/speed/timestamp), meant to be used together with a `<pacem-map>`/`<pacem-map-marker>` pair. */
|
|
8892
|
-
declare class PacemMapGeolocateElement extends
|
|
9106
|
+
declare class PacemMapGeolocateElement extends PacemEventTarget {
|
|
8893
9107
|
#private;
|
|
8894
9108
|
private _checkPermission;
|
|
8895
9109
|
/** Gets or sets the last resolved geographic position (including `timestamp` and, when available, `heading`/`speed`). */
|
|
@@ -8930,7 +9144,7 @@ declare class PacemMapMarkerElement extends MapRelevantElement {
|
|
|
8930
9144
|
/** Gets or sets the marker's geographic position. */
|
|
8931
9145
|
position: LatLng;
|
|
8932
9146
|
/** Gets or sets the marker icon: either an image URL or a structured {@link Icon} descriptor. */
|
|
8933
|
-
icon:
|
|
9147
|
+
icon: Icon | string;
|
|
8934
9148
|
/** Gets or sets the marker's label/info-window content (superseded by any element content, see {@link MapUtils.isContentEmpty}). */
|
|
8935
9149
|
caption: string;
|
|
8936
9150
|
/** Gets or sets whether the marker can be dragged by the user. */
|
|
@@ -9030,7 +9244,7 @@ declare abstract class PacemMarkerAdapter<TAdapter extends PacemMapAdapterElemen
|
|
|
9030
9244
|
protected abstract addDragEndEventListener(marker: TMarker, map: TMap, callback: (e: any) => void): any;
|
|
9031
9245
|
protected ensureMarker(item: PacemMapMarkerElement, map: TMap): TMarker;
|
|
9032
9246
|
protected abstract setPosition(marker: TMarker, position: LatLng): void;
|
|
9033
|
-
protected abstract setIcon(marker: TMarker, icon: string |
|
|
9247
|
+
protected abstract setIcon(marker: TMarker, icon: string | Icon): void;
|
|
9034
9248
|
protected abstract setLabel(marker: TMarker, label: string): void;
|
|
9035
9249
|
protected abstract setDraggable(marker: TMarker, draggable: boolean): void;
|
|
9036
9250
|
protected abstract deleteMarker(marker: TMarker, map: TMap): void;
|
|
@@ -9066,7 +9280,7 @@ declare class PacemMarqueeElement extends Components_2.PacemElement {
|
|
|
9066
9280
|
}
|
|
9067
9281
|
|
|
9068
9282
|
/** Evaluates a CSS media query and reflects its match state, dispatching `change`/`match`/`unmatch` events as it changes. */
|
|
9069
|
-
declare class PacemMediaQueryElement extends
|
|
9283
|
+
declare class PacemMediaQueryElement extends PacemEventTarget {
|
|
9070
9284
|
#private;
|
|
9071
9285
|
/** Gets or sets the CSS media query to evaluate. */
|
|
9072
9286
|
query: string;
|
|
@@ -9081,7 +9295,7 @@ declare class PacemMediaQueryElement extends PacemEventTarget_2 {
|
|
|
9081
9295
|
}
|
|
9082
9296
|
|
|
9083
9297
|
/** Wraps the native `MediaRecorder` API, capturing audio/video from a canvas, media element or media stream into a `Blob`. */
|
|
9084
|
-
declare class PacemMediaRecorderElement extends
|
|
9298
|
+
declare class PacemMediaRecorderElement extends PacemEventTarget {
|
|
9085
9299
|
#private;
|
|
9086
9300
|
/** Gets or sets the source to record: a `HTMLCanvasElement` (captured via `captureStream`), a `HTMLMediaElement`, or a `MediaStream`. */
|
|
9087
9301
|
source: HTMLCanvasElement | HTMLMediaElement | MediaStream;
|
|
@@ -9181,7 +9395,7 @@ declare class PacemModalFormElement extends UI_6.PacemDialogBase implements Net.
|
|
|
9181
9395
|
/** Gets or sets the HTTP method used to submit the form to `action`. Default: `Net.HttpMethod.Post`. */
|
|
9182
9396
|
method: Net.HttpMethod;
|
|
9183
9397
|
/** Gets or sets the metadata driving the autogenerated form's fields. */
|
|
9184
|
-
metadata:
|
|
9398
|
+
metadata: Scaffolding.TypeMetadata | Scaffolding.PropertyMetadata[];
|
|
9185
9399
|
/** Gets or sets the URL the form is submitted to on confirm. Leave empty to commit without any network call. */
|
|
9186
9400
|
action: string;
|
|
9187
9401
|
/** Gets or sets the loader animation type shown while the submit request is in flight. */
|
|
@@ -9542,7 +9756,7 @@ declare class PacemPieSliceElement extends Components_2.PacemItemElement impleme
|
|
|
9542
9756
|
angle: number;
|
|
9543
9757
|
};
|
|
9544
9758
|
/** Returns the center of mass (point) of this pie/doughnut slice, in absolute coords (pixels). */
|
|
9545
|
-
getCenterOfMass():
|
|
9759
|
+
getCenterOfMass(): Point;
|
|
9546
9760
|
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
9547
9761
|
private _ui;
|
|
9548
9762
|
/** @internal */
|
|
@@ -9570,13 +9784,13 @@ declare class PacemPlaneElement extends Pacem3DPrimitiveElement {
|
|
|
9570
9784
|
}
|
|
9571
9785
|
|
|
9572
9786
|
/** Animates a {@link Point} `target[property]` from `from` to `to` over `duration`. */
|
|
9573
|
-
declare class PacemPointAnimationElement extends TweenAnimationElement<
|
|
9787
|
+
declare class PacemPointAnimationElement extends TweenAnimationElement<Point> {
|
|
9574
9788
|
/** Gets or sets the starting point. */
|
|
9575
|
-
from:
|
|
9789
|
+
from: Point;
|
|
9576
9790
|
/** Gets or sets the ending point. */
|
|
9577
|
-
to:
|
|
9791
|
+
to: Point;
|
|
9578
9792
|
/** @inheritdoc */
|
|
9579
|
-
protected tweenInterpolationCallback(time: number, progress: number):
|
|
9793
|
+
protected tweenInterpolationCallback(time: number, progress: number): Point;
|
|
9580
9794
|
}
|
|
9581
9795
|
|
|
9582
9796
|
/** `<pacem-2d-polygon>`: renders a regular polygon (or, with `starIndent` set, a star) centered on `center`. */
|
|
@@ -9586,7 +9800,7 @@ declare class PacemPolygonElement extends ShapeElement {
|
|
|
9586
9800
|
/** The circumradius of the polygon. */
|
|
9587
9801
|
radius: number;
|
|
9588
9802
|
/** Gets or sets the center point of the polygon. */
|
|
9589
|
-
center:
|
|
9803
|
+
center: Point;
|
|
9590
9804
|
/** Gets or sets the star indentation factor (0 = regular polygon, up to 1 = fully indented star). */
|
|
9591
9805
|
starIndent: number;
|
|
9592
9806
|
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
@@ -9600,15 +9814,15 @@ declare class PacemPolygonElement extends ShapeElement {
|
|
|
9600
9814
|
* @param sides Number of sides (or points, for a star).
|
|
9601
9815
|
* @param starIndent Star indentation factor (0 = regular polygon).
|
|
9602
9816
|
*/
|
|
9603
|
-
static getShapeGeometry(center:
|
|
9817
|
+
static getShapeGeometry(center: Point, radius: number, sides: number, starIndent?: number): ShapeGeometry;
|
|
9604
9818
|
/** Computes the SVG path data of a regular polygon or star. See `getShapeGeometry` for the parameters. */
|
|
9605
|
-
static getPathData(center:
|
|
9819
|
+
static getPathData(center: Point, radius: number, sides: number, starIndent?: number): string;
|
|
9606
9820
|
}
|
|
9607
9821
|
|
|
9608
9822
|
/** `<pacem-2d-polyline>`: renders a series of connected segments through `points`, optionally `closed` into a polygon. */
|
|
9609
9823
|
declare class PacemPolylineElement extends ShapeElement {
|
|
9610
9824
|
/** Gets or sets the vertices of the polyline, in order. */
|
|
9611
|
-
points:
|
|
9825
|
+
points: Point[];
|
|
9612
9826
|
/** Gets or sets whether the polyline is closed back onto its first point. */
|
|
9613
9827
|
closed: boolean;
|
|
9614
9828
|
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
@@ -9617,12 +9831,12 @@ declare class PacemPolylineElement extends ShapeElement {
|
|
|
9617
9831
|
* @param points Vertices, in order.
|
|
9618
9832
|
* @param closed Whether the polyline is closed back onto its first point.
|
|
9619
9833
|
*/
|
|
9620
|
-
static getShapeGeometry(points:
|
|
9834
|
+
static getShapeGeometry(points: Point[], closed: boolean): ShapeGeometry;
|
|
9621
9835
|
protected getShapeGeometry(): ShapeGeometry;
|
|
9622
9836
|
/** Computes the SVG path data of the polyline out of its own `points`/`closed`. */
|
|
9623
9837
|
protected getPathData(): string;
|
|
9624
9838
|
/** Computes the SVG path data of a polyline. See `getShapeGeometry` for the parameters. */
|
|
9625
|
-
static getPathData(points:
|
|
9839
|
+
static getPathData(points: Point[], closed: boolean): string;
|
|
9626
9840
|
}
|
|
9627
9841
|
|
|
9628
9842
|
/** Horizontal progress bar with an optional textual caption. */
|
|
@@ -9853,7 +10067,7 @@ declare class PacemRotateElement extends PacemBehavior implements Rotator {
|
|
|
9853
10067
|
/** Gets or sets the maximum allowed rotation, in radians. */
|
|
9854
10068
|
maxRotation: number;
|
|
9855
10069
|
/** Gets or sets the pivot point the element rotates around; defaults to the element's own center. */
|
|
9856
|
-
center:
|
|
10070
|
+
center: Point;
|
|
9857
10071
|
private _startHandler;
|
|
9858
10072
|
}
|
|
9859
10073
|
|
|
@@ -9909,7 +10123,7 @@ declare class PacemRouterElement extends PacemEventTarget {
|
|
|
9909
10123
|
* Navigation events lock the element (`#locked`) to avoid feedback loops between the router-driven read and
|
|
9910
10124
|
* the state-driven write while a navigation is in flight.
|
|
9911
10125
|
*/
|
|
9912
|
-
declare class PacemRouterHashStateElement extends
|
|
10126
|
+
declare class PacemRouterHashStateElement extends PacemEventTarget {
|
|
9913
10127
|
#private;
|
|
9914
10128
|
/** Gets or sets the {@link Components.PacemRouterElement} instance whose URL hash is read from/written to. */
|
|
9915
10129
|
router: Components_2.PacemRouterElement;
|
|
@@ -9962,7 +10176,7 @@ declare class PacemRouterHashStateElement extends PacemEventTarget_2 {
|
|
|
9962
10176
|
* eliminate - restoring to a scrollTop the page isn't tall enough to reach yet (e.g. images or async
|
|
9963
10177
|
* content still loading in): content changes that don't affect the view's own box size won't retrigger it.
|
|
9964
10178
|
*/
|
|
9965
|
-
declare class PacemRouterViewScrollElement extends
|
|
10179
|
+
declare class PacemRouterViewScrollElement extends PacemEventTarget {
|
|
9966
10180
|
/** The {@link Pacem.Components.PacemRouterElement} instance orchestrating the app's navigation; its `state.$scrollY` is what gets restored. */
|
|
9967
10181
|
router: Components_2.PacemRouterElement;
|
|
9968
10182
|
/** The {@link Pacem.Components.UI.PacemViewElement} whose `prerender`/`render` events drive when the scroll position gets reset/restored. */
|
|
@@ -10026,7 +10240,7 @@ declare class PacemScrollAwareElement extends PacemEventTarget {
|
|
|
10026
10240
|
* the `hintParameter` query-string parameter, and the results are rendered through a `${P}-repeater`
|
|
10027
10241
|
* (customize the row markup via the element's default `${P}-content` slot).
|
|
10028
10242
|
*/
|
|
10029
|
-
declare class PacemSearchElement extends Components_2.PacemElement implements
|
|
10243
|
+
declare class PacemSearchElement extends Components_2.PacemElement implements OnPropertyChanged {
|
|
10030
10244
|
private _fetcher;
|
|
10031
10245
|
/** @readonly Gets the search results (bound to the underlying `${P}-fetch`'s `result`). */
|
|
10032
10246
|
datasource: any[];
|
|
@@ -10117,7 +10331,7 @@ declare abstract class PacemSeriesChartElement extends Components_2.PacemItemsCo
|
|
|
10117
10331
|
viewActivatedCallback(): void;
|
|
10118
10332
|
private _ensureResizer;
|
|
10119
10333
|
private _resizeHandler;
|
|
10120
|
-
protected get chartSize():
|
|
10334
|
+
protected get chartSize(): Size;
|
|
10121
10335
|
protected get chartSeries(): SVGSVGElement[];
|
|
10122
10336
|
protected get chartBody(): SVGSVGElement;
|
|
10123
10337
|
protected get chartGrid(): SVGSVGElement;
|
|
@@ -10129,7 +10343,7 @@ declare abstract class PacemSeriesChartElement extends Components_2.PacemItemsCo
|
|
|
10129
10343
|
protected disposeUiBehaviors(ui: Element): void;
|
|
10130
10344
|
protected ensureChartContainer(): HTMLElement;
|
|
10131
10345
|
protected ensureChartBody(type: string, w?: number, h?: number): SVGSVGElement;
|
|
10132
|
-
protected chartDataItemToPoint(input: ChartDataItem, source: ChartDataItem[]):
|
|
10346
|
+
protected chartDataItemToPoint(input: ChartDataItem, source: ChartDataItem[]): Point;
|
|
10133
10347
|
protected getVirtualGrid(items: ChartDataItem[], minX: number, maxX: number, minY: number, maxY: number, xAxisType?: "date" | "number" | "string", steps?: number, labels?: number): {
|
|
10134
10348
|
x: string[];
|
|
10135
10349
|
y: number[];
|
|
@@ -10148,7 +10362,7 @@ declare abstract class PacemSeriesChartElement extends Components_2.PacemItemsCo
|
|
|
10148
10362
|
* Default implementation.
|
|
10149
10363
|
* @param element
|
|
10150
10364
|
*/
|
|
10151
|
-
getAnchorPoint(element: Element):
|
|
10365
|
+
getAnchorPoint(element: Element): Point;
|
|
10152
10366
|
}
|
|
10153
10367
|
|
|
10154
10368
|
/** Subscribes to a named event exposed by the ancestor {@link PacemServerSentEventsProxyElement}'s `EventSource`, dispatching a `receive` event for every incoming message. */
|
|
@@ -10406,7 +10620,7 @@ declare class PacemSphereElement extends Pacem3DPrimitiveElement {
|
|
|
10406
10620
|
}
|
|
10407
10621
|
|
|
10408
10622
|
/** Header that reacts to page scroll, either staying pinned to the top of the shell or hiding/showing on scroll direction. */
|
|
10409
|
-
declare class PacemStickyHeaderElement extends
|
|
10623
|
+
declare class PacemStickyHeaderElement extends PacemEventTarget {
|
|
10410
10624
|
#private;
|
|
10411
10625
|
/** Gets or sets the scroll offset, in pixels, beyond which the sticky behavior activates. */
|
|
10412
10626
|
threshold: number;
|
|
@@ -10537,10 +10751,10 @@ declare class PacemSuggestElement extends PacemDataSourceElement {
|
|
|
10537
10751
|
declare class PacemSvgAdapterElement extends Pacem2DAdapterElement {
|
|
10538
10752
|
#private;
|
|
10539
10753
|
snapshot(stage: Stage, background?: string, type?: string, quality?: number): PromiseLike<Blob>;
|
|
10540
|
-
getTransformMatrix(scene: Pacem2DElement):
|
|
10754
|
+
getTransformMatrix(scene: Pacem2DElement): Matrix2D;
|
|
10541
10755
|
viewActivatedCallback(): void;
|
|
10542
10756
|
disconnectedCallback(): void;
|
|
10543
|
-
invalidateSize(scene: Pacem2DElement, size:
|
|
10757
|
+
invalidateSize(scene: Pacem2DElement, size: Size): void;
|
|
10544
10758
|
initialize(scene: Pacem2DElement): HTMLElement | SVGElement;
|
|
10545
10759
|
dispose(scene: Pacem2DElement): void;
|
|
10546
10760
|
private _hitTarget;
|
|
@@ -10728,7 +10942,7 @@ declare class PacemTextElement_2 extends UiElement implements Text_2 {
|
|
|
10728
10942
|
/** Gets or sets the font style (e.g. `italic`). */
|
|
10729
10943
|
fontStyle: string;
|
|
10730
10944
|
/** Gets or sets the point the text is anchored to. */
|
|
10731
|
-
anchor:
|
|
10945
|
+
anchor: Point;
|
|
10732
10946
|
/** Gets or sets the horizontal text alignment relative to `anchor`. */
|
|
10733
10947
|
textAnchor: 'start' | 'middle' | 'end';
|
|
10734
10948
|
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
@@ -10892,7 +11106,7 @@ declare class PacemTorusElement extends Pacem3DPrimitiveElement {
|
|
|
10892
11106
|
* Base class for tracker elements (e.g. {@link PacemFpsElement}) that feed successive numeric samples
|
|
10893
11107
|
* through `entry` and expose running statistics through `data`.
|
|
10894
11108
|
*/
|
|
10895
|
-
declare abstract class PacemTrackerElement extends
|
|
11109
|
+
declare abstract class PacemTrackerElement extends PacemEventTarget implements Tracker, OnPropertyChanged {
|
|
10896
11110
|
constructor();
|
|
10897
11111
|
/** @readonly Gets the aggregate statistics (count, average, min, max, current) computed so far. */
|
|
10898
11112
|
data: TrackingData;
|
|
@@ -11096,7 +11310,7 @@ declare class PacemUrlInputElement extends PacemTextualInputElement {
|
|
|
11096
11310
|
}
|
|
11097
11311
|
|
|
11098
11312
|
/** Triggers the device's vibration hardware (via the Vibration API) with a configurable pattern. */
|
|
11099
|
-
declare class PacemVibrateElement extends
|
|
11313
|
+
declare class PacemVibrateElement extends PacemEventTarget {
|
|
11100
11314
|
/** Gets or sets the vibration pattern: alternating vibration/pause durations, in milliseconds. */
|
|
11101
11315
|
pattern: number[];
|
|
11102
11316
|
/** Triggers a vibration using the current `pattern`, if supported by the browser and not disabled. */
|
|
@@ -11104,7 +11318,7 @@ declare class PacemVibrateElement extends PacemEventTarget_2 {
|
|
|
11104
11318
|
}
|
|
11105
11319
|
|
|
11106
11320
|
/** Fetches and renders remote HTML (or a local `<template>`'s content) as its own inner content, dispatching `prerender`/`render` lifecycle events. */
|
|
11107
|
-
declare class PacemViewElement extends
|
|
11321
|
+
declare class PacemViewElement extends PacemEventTarget {
|
|
11108
11322
|
#private;
|
|
11109
11323
|
/** Gets or sets the content source: a URL to fetch, a CSS selector pointing to a `<template>`, or the template element itself. */
|
|
11110
11324
|
url: string | HTMLTemplateElement | Components_2.PacemTemplateProxyElement;
|
|
@@ -11301,12 +11515,12 @@ declare class Pchip implements Interpolator {
|
|
|
11301
11515
|
* Builds a {@link Pchip} interpolator from a set of points (at least 2).
|
|
11302
11516
|
* @param points Points to interpolate through.
|
|
11303
11517
|
*/
|
|
11304
|
-
static create(...points:
|
|
11518
|
+
static create(...points: Point[]): Pchip;
|
|
11305
11519
|
/**
|
|
11306
11520
|
* Builds a {@link Pchip} interpolator from a set of points (at least 2).
|
|
11307
11521
|
* @param points Points to interpolate through.
|
|
11308
11522
|
*/
|
|
11309
|
-
static create(points:
|
|
11523
|
+
static create(points: Point[]): Pchip;
|
|
11310
11524
|
/**
|
|
11311
11525
|
* Builds a {@link Pchip} interpolator from a set of y values, using their array index as x.
|
|
11312
11526
|
* @param values y values, implicitly located at x = 0, 1, 2, ...
|
|
@@ -11368,7 +11582,7 @@ declare type PictureSet = {
|
|
|
11368
11582
|
|
|
11369
11583
|
declare type PlainObject = Record<string, unknown>;
|
|
11370
11584
|
|
|
11371
|
-
|
|
11585
|
+
declare namespace Plus {
|
|
11372
11586
|
export {
|
|
11373
11587
|
L10n_2 as L10n,
|
|
11374
11588
|
DataCellMetadataContentFactory,
|
|
@@ -11382,6 +11596,7 @@ export declare namespace Plus {
|
|
|
11382
11596
|
PacemBaseCellElement
|
|
11383
11597
|
}
|
|
11384
11598
|
}
|
|
11599
|
+
export { Plus }
|
|
11385
11600
|
|
|
11386
11601
|
/** Represents a 2D point/vector. */
|
|
11387
11602
|
export declare interface Point {
|
|
@@ -11437,16 +11652,16 @@ declare interface Point3D {
|
|
|
11437
11652
|
}
|
|
11438
11653
|
|
|
11439
11654
|
/** Converts a `"x y z"` attribute string to/from a {@link Vector3D}. */
|
|
11440
|
-
declare const Point3DConverter:
|
|
11655
|
+
declare const Point3DConverter: PropertyConverter;
|
|
11441
11656
|
|
|
11442
11657
|
/** Converts a `"x y z"` (3 components) or `"n"` (single uniform component, broadcast to all 3 axes) attribute string to/from a {@link Vector3D}. Used e.g. for `scale`/`offset`. */
|
|
11443
|
-
declare const Point3DOrNumberConverter:
|
|
11658
|
+
declare const Point3DOrNumberConverter: PropertyConverter;
|
|
11444
11659
|
|
|
11445
11660
|
declare type PointerEventLike = MouseEvent | PointerEvent | TouchEvent;
|
|
11446
11661
|
|
|
11447
11662
|
/** A (2D) polygon, represented as its ordered list of vertices. */
|
|
11448
11663
|
declare interface Polygon {
|
|
11449
|
-
vertices:
|
|
11664
|
+
vertices: Point[];
|
|
11450
11665
|
}
|
|
11451
11666
|
|
|
11452
11667
|
/** Utility tools to build and inspect {@link Polygon}s. */
|
|
@@ -11461,24 +11676,24 @@ declare class Polygon {
|
|
|
11461
11676
|
* Builds a polygon from the provided vertices, in order.
|
|
11462
11677
|
* @param points Vertices of the polygon.
|
|
11463
11678
|
*/
|
|
11464
|
-
static from(...points:
|
|
11679
|
+
static from(...points: Point[]): Polygon;
|
|
11465
11680
|
/**
|
|
11466
11681
|
* Checks whether a point lies inside the polygon.
|
|
11467
11682
|
* @param polygon
|
|
11468
11683
|
* @param p Point to test.
|
|
11469
11684
|
*/
|
|
11470
|
-
static contains(polygon: Polygon, p:
|
|
11685
|
+
static contains(polygon: Polygon, p: Point): any;
|
|
11471
11686
|
/**
|
|
11472
11687
|
* Returns the center of the polygon's bounding box.
|
|
11473
11688
|
* Note: this is not the geometric centroid (center of mass) for non-symmetric polygons.
|
|
11474
11689
|
* @param polygon
|
|
11475
11690
|
*/
|
|
11476
|
-
static centroid(polygon: Polygon):
|
|
11691
|
+
static centroid(polygon: Polygon): Point;
|
|
11477
11692
|
/**
|
|
11478
11693
|
* Computes the axis-aligned bounding box of the polygon.
|
|
11479
11694
|
* @param polygon
|
|
11480
11695
|
*/
|
|
11481
|
-
static boundingBox(polygon: Polygon):
|
|
11696
|
+
static boundingBox(polygon: Polygon): Rect;
|
|
11482
11697
|
/**
|
|
11483
11698
|
* Returns the polygon's edges as an ordered list of segments, each joining a vertex to the next
|
|
11484
11699
|
* (the last one wrapping back to the first).
|
|
@@ -11587,7 +11802,7 @@ declare interface PresentationState {
|
|
|
11587
11802
|
dashArray?: number[];
|
|
11588
11803
|
lineJoin?: CanvasLineJoin;
|
|
11589
11804
|
lineCap?: CanvasLineCap;
|
|
11590
|
-
readonly transformMatrix?:
|
|
11805
|
+
readonly transformMatrix?: Matrix2D;
|
|
11591
11806
|
opacity?: number;
|
|
11592
11807
|
}
|
|
11593
11808
|
|
|
@@ -11600,7 +11815,7 @@ declare class PresentationState {
|
|
|
11600
11815
|
* @param rhs Inherited/fallback presentation state.
|
|
11601
11816
|
* @param precomputedMatrix If provided, used as-is instead of multiplying `lhs`'s and `rhs`'s transform matrices.
|
|
11602
11817
|
*/
|
|
11603
|
-
static combine(lhs: PresentationState, rhs: PresentationState, precomputedMatrix?:
|
|
11818
|
+
static combine(lhs: PresentationState, rhs: PresentationState, precomputedMatrix?: Matrix2D): PresentationState;
|
|
11604
11819
|
}
|
|
11605
11820
|
|
|
11606
11821
|
/** Ready-to-use event listener that only calls `evt.preventDefault()`; handy as an `addEventListener` callback without allocating a closure. */
|
|
@@ -11799,14 +12014,11 @@ declare type PropertyMetadataLabelFactory = (host: Element, hostRef?: string, en
|
|
|
11799
12014
|
/** Factory invoked at scaffolding time to compute the attributes of a custom validator element, given the `host` element and (optionally) the databinding references to the host and entity. */
|
|
11800
12015
|
declare type PropertyMetadataValidatorFactory = (host: Element, hostRef?: string, entityRef?: string) => ValidatorManifest;
|
|
11801
12016
|
|
|
11802
|
-
/** A rotation expressed as a unit quaternion. */
|
|
11803
|
-
declare type Quaternion = Geometry_2.LinearAlgebra.Quaternion;
|
|
11804
|
-
|
|
11805
12017
|
/**
|
|
11806
12018
|
* Represents a rotation in 3D space as a unit quaternion `x·i + y·j + z·k + w`, avoiding the gimbal-lock
|
|
11807
12019
|
* issues of Euler angles and allowing smooth interpolation between orientations.
|
|
11808
12020
|
*/
|
|
11809
|
-
declare interface
|
|
12021
|
+
declare interface Quaternion {
|
|
11810
12022
|
x: number;
|
|
11811
12023
|
y: number;
|
|
11812
12024
|
z: number;
|
|
@@ -11814,112 +12026,115 @@ declare interface Quaternion_2 {
|
|
|
11814
12026
|
}
|
|
11815
12027
|
|
|
11816
12028
|
/** Utilities to build, combine and convert {@link Quaternion} rotations. */
|
|
11817
|
-
declare class
|
|
12029
|
+
declare class Quaternion {
|
|
11818
12030
|
/** Returns the identity quaternion (no rotation). */
|
|
11819
|
-
static identity():
|
|
12031
|
+
static identity(): Quaternion;
|
|
11820
12032
|
/**
|
|
11821
12033
|
* Builds a {@link Quaternion} from its x, y, z, w components, in that order.
|
|
11822
12034
|
* @param args Exactly 4 numbers: x, y, z, w.
|
|
11823
12035
|
* @throws If the number of arguments is not exactly 4.
|
|
11824
12036
|
*/
|
|
11825
|
-
static from(...args: number[]):
|
|
12037
|
+
static from(...args: number[]): Quaternion;
|
|
11826
12038
|
/**
|
|
11827
12039
|
* Parses a string representation of a quaternion (4 numbers) into a {@link Quaternion}.
|
|
11828
12040
|
* @param input String to parse.
|
|
11829
12041
|
* @throws If the input cannot be parsed as exactly 4 numbers.
|
|
11830
12042
|
*/
|
|
11831
|
-
static parse(input: string):
|
|
12043
|
+
static parse(input: string): Quaternion;
|
|
11832
12044
|
/**
|
|
11833
12045
|
* Builds the (shortest-arc) quaternion representing the rotation that takes one unit vector onto another.
|
|
11834
12046
|
* Normalizes both input vectors in place as a side effect.
|
|
11835
12047
|
* @param from Source direction.
|
|
11836
12048
|
* @param to Target direction.
|
|
11837
12049
|
*/
|
|
11838
|
-
static fromVectors(from:
|
|
12050
|
+
static fromVectors(from: Vector3D_2, to: Vector3D_2): Quaternion;
|
|
11839
12051
|
/**
|
|
11840
12052
|
* In-place normalizarion of the provided quaternion
|
|
11841
12053
|
* @param q {Quaternion}
|
|
11842
12054
|
*/
|
|
11843
|
-
static normalize(q:
|
|
12055
|
+
static normalize(q: Quaternion): void;
|
|
11844
12056
|
/**
|
|
11845
12057
|
* Returns a normalized copy of the source quaternion.
|
|
11846
12058
|
* @param q {Quaternion}
|
|
11847
12059
|
*/
|
|
11848
|
-
static unit(q:
|
|
12060
|
+
static unit(q: Quaternion): Quaternion;
|
|
11849
12061
|
/**
|
|
11850
12062
|
* Creates a quaternion instance given the rotation axis and an angle (in degrees).
|
|
11851
12063
|
* @param axis
|
|
11852
12064
|
* @param angleDeg
|
|
11853
12065
|
*/
|
|
11854
|
-
static fromAxisAngle(axis:
|
|
12066
|
+
static fromAxisAngle(axis: Vector3D_2, angleDeg: number): Quaternion;
|
|
11855
12067
|
/**
|
|
11856
12068
|
* Creates a quaternion instance given the rotation matrix.
|
|
11857
12069
|
* @param rotationMatrix
|
|
11858
12070
|
*/
|
|
11859
|
-
static fromRotationMatrix(rotationMatrix:
|
|
12071
|
+
static fromRotationMatrix(rotationMatrix: Matrix3D): Quaternion;
|
|
11860
12072
|
/**
|
|
11861
12073
|
* Returns the conjugate of the quaternion (vector part negated). For a unit quaternion, this
|
|
11862
12074
|
* represents the inverse rotation.
|
|
11863
12075
|
* @param q
|
|
11864
12076
|
*/
|
|
11865
|
-
static conjugate(q:
|
|
12077
|
+
static conjugate(q: Quaternion): Quaternion;
|
|
11866
12078
|
/**
|
|
11867
12079
|
* Returns the magnitude/length of the provided quaternion.
|
|
11868
12080
|
* @param q {Quaternion}
|
|
11869
12081
|
*/
|
|
11870
|
-
static mag(q:
|
|
12082
|
+
static mag(q: Quaternion): number;
|
|
11871
12083
|
/**
|
|
11872
12084
|
* Returns the squared magnitude of the vector (imaginary) part of the quaternion.
|
|
11873
12085
|
* @param q
|
|
11874
12086
|
*/
|
|
11875
|
-
static norm(q:
|
|
12087
|
+
static norm(q: Quaternion): number;
|
|
11876
12088
|
/**
|
|
11877
12089
|
* Returns the (unit) rotation axis represented by the quaternion, defaulting to the y axis
|
|
11878
12090
|
* when the quaternion has no vector part (i.e. represents no rotation).
|
|
11879
12091
|
* @param q
|
|
11880
12092
|
*/
|
|
11881
|
-
static axis(q:
|
|
12093
|
+
static axis(q: Quaternion): Vector3D_2;
|
|
11882
12094
|
/**
|
|
11883
12095
|
* Rotates a vector by the given quaternion (normalizes the quaternion in place as a side effect).
|
|
11884
12096
|
* @param v Vector to rotate.
|
|
11885
12097
|
* @param q Rotation quaternion.
|
|
11886
12098
|
*/
|
|
11887
|
-
static transform(v:
|
|
12099
|
+
static transform(v: Vector3D_2, q: Quaternion): Vector3D_2;
|
|
11888
12100
|
/**
|
|
11889
12101
|
* Returns the rotation angle (in degrees) of the provided quaternion.
|
|
11890
12102
|
* @param q
|
|
11891
12103
|
*/
|
|
11892
|
-
static angle(q:
|
|
12104
|
+
static angle(q: Quaternion): number;
|
|
11893
12105
|
/**
|
|
11894
12106
|
* Builds the rotation matrix equivalent to the given quaternion.
|
|
11895
12107
|
* @param q
|
|
11896
12108
|
*/
|
|
11897
|
-
static toRotationMatrix(q:
|
|
12109
|
+
static toRotationMatrix(q: Quaternion): Matrix3D;
|
|
11898
12110
|
/**
|
|
11899
12111
|
* Returns the inverse rotation of the given quaternion (the conjugate of its normalized form).
|
|
11900
12112
|
* @param q
|
|
11901
12113
|
*/
|
|
11902
|
-
static invert(q:
|
|
12114
|
+
static invert(q: Quaternion): Quaternion;
|
|
11903
12115
|
/**
|
|
11904
12116
|
* Combines two quaternions.
|
|
11905
12117
|
* @param q1
|
|
11906
12118
|
* @param q2
|
|
11907
12119
|
*/
|
|
11908
|
-
static multiply(q1:
|
|
12120
|
+
static multiply(q1: Quaternion, q2: Quaternion): Quaternion;
|
|
11909
12121
|
/**
|
|
11910
12122
|
* Returns the dot product of two quaternions.
|
|
11911
12123
|
* @param q1
|
|
11912
12124
|
* @param q2
|
|
11913
12125
|
*/
|
|
11914
|
-
static dot(q1:
|
|
12126
|
+
static dot(q1: Quaternion, q2: Quaternion): number;
|
|
11915
12127
|
}
|
|
11916
12128
|
|
|
12129
|
+
/** A rotation expressed as a unit quaternion. */
|
|
12130
|
+
declare type Quaternion_2 = Geometry.LinearAlgebra.Quaternion;
|
|
12131
|
+
|
|
11917
12132
|
/** Converts a `"x y z w"` attribute string to/from a {@link Quaternion}. Used e.g. for `rotate`. */
|
|
11918
|
-
declare const QuaternionConverter:
|
|
12133
|
+
declare const QuaternionConverter: PropertyConverter;
|
|
11919
12134
|
|
|
11920
12135
|
/** A gradient that radiates from `center` outwards up to `radius`. */
|
|
11921
12136
|
declare interface RadialGradient extends Gradient {
|
|
11922
|
-
center:
|
|
12137
|
+
center: Point;
|
|
11923
12138
|
radius: number;
|
|
11924
12139
|
}
|
|
11925
12140
|
|
|
@@ -12155,6 +12370,19 @@ declare class RepeaterItemRemoveEvent extends RepeaterItemEvent {
|
|
|
12155
12370
|
|
|
12156
12371
|
declare const RepeaterItemRemoveEventName = "repeateritemremove";
|
|
12157
12372
|
|
|
12373
|
+
/** Options accepted by {@link Http.request}.
|
|
12374
|
+
* @deprecated */
|
|
12375
|
+
declare type RequestOptions = {
|
|
12376
|
+
data?: 'string' | {
|
|
12377
|
+
[key: string]: string;
|
|
12378
|
+
};
|
|
12379
|
+
headers?: {
|
|
12380
|
+
[key: string]: string;
|
|
12381
|
+
};
|
|
12382
|
+
method: HttpMethod;
|
|
12383
|
+
progress?: (pct: number) => void;
|
|
12384
|
+
};
|
|
12385
|
+
|
|
12158
12386
|
/**
|
|
12159
12387
|
* Custom UI event dispatched throughout the rescale gesture lifecycle (see {@link RescaleEventType}).
|
|
12160
12388
|
*/
|
|
@@ -12167,11 +12395,11 @@ declare class RescaleEvent extends CustomUIEvent<RescaleEventArgsClass> {
|
|
|
12167
12395
|
*/
|
|
12168
12396
|
declare type RescaleEventArgs = {
|
|
12169
12397
|
element: HTMLElement | SVGElement;
|
|
12170
|
-
origin:
|
|
12171
|
-
currentPosition:
|
|
12398
|
+
origin: Point;
|
|
12399
|
+
currentPosition: Point;
|
|
12172
12400
|
startTime: number;
|
|
12173
12401
|
handle: string;
|
|
12174
|
-
targetRect?:
|
|
12402
|
+
targetRect?: Rect;
|
|
12175
12403
|
};
|
|
12176
12404
|
|
|
12177
12405
|
/**
|
|
@@ -12181,9 +12409,9 @@ declare class RescaleEventArgsClass {
|
|
|
12181
12409
|
private _builder;
|
|
12182
12410
|
private constructor();
|
|
12183
12411
|
/** @readonly Gets the current pointer position. */
|
|
12184
|
-
get currentPosition():
|
|
12412
|
+
get currentPosition(): Point;
|
|
12185
12413
|
/** @readonly Gets the rectangle the element is being resized to. */
|
|
12186
|
-
get targetRect():
|
|
12414
|
+
get targetRect(): Rect;
|
|
12187
12415
|
/** @readonly Gets the element being resized. */
|
|
12188
12416
|
get element(): HTMLElement | SVGElement;
|
|
12189
12417
|
/** @readonly Gets the handle being dragged (see {@link RescaleHandle}). */
|
|
@@ -12257,6 +12485,45 @@ declare type ResizeEventArgs = {
|
|
|
12257
12485
|
|
|
12258
12486
|
declare const ResizeEventName = "resize";
|
|
12259
12487
|
|
|
12488
|
+
/** Wraps a completed `XMLHttpRequest` produced by {@link Http.request}, exposing its status, headers and body in convenient forms.
|
|
12489
|
+
* @deprecated */
|
|
12490
|
+
declare class Response_2 {
|
|
12491
|
+
/** @param req The completed `XMLHttpRequest`. @param processTime Elapsed request time, in milliseconds. */
|
|
12492
|
+
constructor(req: XMLHttpRequest, processTime: number);
|
|
12493
|
+
private _processTime;
|
|
12494
|
+
private _status;
|
|
12495
|
+
private _text;
|
|
12496
|
+
private _body;
|
|
12497
|
+
private _type;
|
|
12498
|
+
private _allHeadersRaw;
|
|
12499
|
+
private _headers;
|
|
12500
|
+
/** Elapsed request time, in milliseconds. */
|
|
12501
|
+
get processTime(): number;
|
|
12502
|
+
/** Response headers, parsed into a name/value map (lazily, on first access). */
|
|
12503
|
+
get headers(): {
|
|
12504
|
+
[key: string]: string;
|
|
12505
|
+
};
|
|
12506
|
+
/** The `Content-Length` response header, parsed as a number. */
|
|
12507
|
+
get size(): number;
|
|
12508
|
+
/** The `Content-Type` response header. */
|
|
12509
|
+
get mime(): string;
|
|
12510
|
+
/** The `Date` response header, parsed into a `Date`. */
|
|
12511
|
+
get date(): Date;
|
|
12512
|
+
private _parseHeaders;
|
|
12513
|
+
/** HTTP status code. */
|
|
12514
|
+
get status(): number;
|
|
12515
|
+
/** Raw response body as text. */
|
|
12516
|
+
get text(): string;
|
|
12517
|
+
/** Response body, typed per `XMLHttpRequest.responseType` (see {@link type}). */
|
|
12518
|
+
get content(): any;
|
|
12519
|
+
/** The `XMLHttpRequest.responseType` used for this request. */
|
|
12520
|
+
get type(): string;
|
|
12521
|
+
/**
|
|
12522
|
+
* Short-hand utility for getting or parsing json content (if any).
|
|
12523
|
+
*/
|
|
12524
|
+
get json(): any;
|
|
12525
|
+
}
|
|
12526
|
+
|
|
12260
12527
|
/** Represents a color in the RGB color space; `r`, `g`, `b` and `a` channels are normalized to the [0,1] range. */
|
|
12261
12528
|
export declare interface Rgba {
|
|
12262
12529
|
readonly r: number;
|
|
@@ -12277,9 +12544,9 @@ declare class RotateEvent extends CustomUIEvent<RotateEventArgsClass> {
|
|
|
12277
12544
|
*/
|
|
12278
12545
|
declare type RotateEventArgs = {
|
|
12279
12546
|
element: HTMLElement | SVGElement;
|
|
12280
|
-
origin:
|
|
12281
|
-
currentPosition:
|
|
12282
|
-
center:
|
|
12547
|
+
origin: Point;
|
|
12548
|
+
currentPosition: Point;
|
|
12549
|
+
center: Point;
|
|
12283
12550
|
startTime: number;
|
|
12284
12551
|
/**
|
|
12285
12552
|
* In radians, includes loops offset.
|
|
@@ -12294,13 +12561,13 @@ declare class RotateEventArgsClass {
|
|
|
12294
12561
|
private _builder;
|
|
12295
12562
|
private constructor();
|
|
12296
12563
|
/** @readonly Gets the current pointer position. */
|
|
12297
|
-
get currentPosition():
|
|
12564
|
+
get currentPosition(): Point;
|
|
12298
12565
|
/** @readonly Gets the current rotation, in radians. */
|
|
12299
12566
|
get rotation(): number;
|
|
12300
12567
|
/** @readonly Gets the element being rotated. */
|
|
12301
12568
|
get element(): HTMLElement | SVGElement;
|
|
12302
12569
|
/** @readonly Gets the pivot point the element is rotating around. */
|
|
12303
|
-
get center():
|
|
12570
|
+
get center(): Point;
|
|
12304
12571
|
/** Builds a new {@link RotateEventArgsClass} out of a plain {@link RotateEventArgs} builder. */
|
|
12305
12572
|
static fromArgs(builder: RotateEventArgs): RotateEventArgsClass;
|
|
12306
12573
|
}
|
|
@@ -12322,7 +12589,7 @@ declare enum RotateEventType {
|
|
|
12322
12589
|
*/
|
|
12323
12590
|
declare interface Rotator {
|
|
12324
12591
|
/** Gets or sets the pivot point the element rotates around; defaults to the element's own center. */
|
|
12325
|
-
center?:
|
|
12592
|
+
center?: Point;
|
|
12326
12593
|
/** Gets or sets the minimum allowed rotation in radians */
|
|
12327
12594
|
minRotation?: number;
|
|
12328
12595
|
/** Gets or sets the maximum allowed rotation in radians */
|
|
@@ -12394,7 +12661,7 @@ declare interface Rule {
|
|
|
12394
12661
|
exec: (input: string, lexer?: Lexer) => Token[];
|
|
12395
12662
|
}
|
|
12396
12663
|
|
|
12397
|
-
|
|
12664
|
+
declare namespace Scaffolding {
|
|
12398
12665
|
export {
|
|
12399
12666
|
OpenApi,
|
|
12400
12667
|
L10n,
|
|
@@ -12427,8 +12694,9 @@ export declare namespace Scaffolding {
|
|
|
12427
12694
|
TypeMetadata
|
|
12428
12695
|
}
|
|
12429
12696
|
}
|
|
12697
|
+
export { Scaffolding }
|
|
12430
12698
|
|
|
12431
|
-
|
|
12699
|
+
declare namespace Scaffolding_2 {
|
|
12432
12700
|
export {
|
|
12433
12701
|
PacemContenteditableAlignCommandElement,
|
|
12434
12702
|
KnownExecCommand,
|
|
@@ -12580,7 +12848,7 @@ declare const SearchFunctions: {
|
|
|
12580
12848
|
};
|
|
12581
12849
|
|
|
12582
12850
|
/** A line segment, represented as its two endpoints. */
|
|
12583
|
-
declare type Segment = [
|
|
12851
|
+
declare type Segment = [Point, Point];
|
|
12584
12852
|
|
|
12585
12853
|
/** A {@link Material} rendered by a user-supplied GLSL vertex/fragment shader pair, bypassing the built-in shading models. */
|
|
12586
12854
|
declare interface ShaderMaterial extends Material {
|
|
@@ -12597,8 +12865,8 @@ declare interface Shape extends PresentationObject {
|
|
|
12597
12865
|
markerStart?: Marker;
|
|
12598
12866
|
markerEnd?: Marker;
|
|
12599
12867
|
markerMid?: Marker;
|
|
12600
|
-
readonly vertices?:
|
|
12601
|
-
readonly boundingRect?:
|
|
12868
|
+
readonly vertices?: Point[];
|
|
12869
|
+
readonly boundingRect?: Rect;
|
|
12602
12870
|
}
|
|
12603
12871
|
|
|
12604
12872
|
/** Static helper to build an empty `ShapeGeometry`. */
|
|
@@ -12632,9 +12900,9 @@ declare abstract class ShapeElement extends PresentationElement implements Shape
|
|
|
12632
12900
|
/** @readonly Gets the SVG path data backing the shape. */
|
|
12633
12901
|
get pathData(): string;
|
|
12634
12902
|
/** @readonly Gets the bounding rectangle of the shape. */
|
|
12635
|
-
get boundingRect():
|
|
12903
|
+
get boundingRect(): Rect;
|
|
12636
12904
|
/** @readonly Gets the vertices making up the shape. */
|
|
12637
|
-
get vertices():
|
|
12905
|
+
get vertices(): Point[];
|
|
12638
12906
|
/** Computes the path data, vertices and bounding rect out of the shape's own geometry properties. */
|
|
12639
12907
|
protected abstract getShapeGeometry(): ShapeGeometry;
|
|
12640
12908
|
}
|
|
@@ -12648,8 +12916,8 @@ declare type ShapeFill = {
|
|
|
12648
12916
|
/** Computed geometry of a shape: its SVG path data, its vertices and its bounding rectangle. */
|
|
12649
12917
|
declare type ShapeGeometry = {
|
|
12650
12918
|
pathData: string;
|
|
12651
|
-
vertices:
|
|
12652
|
-
boundingRect:
|
|
12919
|
+
vertices: Point[];
|
|
12920
|
+
boundingRect: Rect;
|
|
12653
12921
|
};
|
|
12654
12922
|
|
|
12655
12923
|
/** Stroke styling for a {@link PacemMapShapeElement} (color, opacity, thickness). */
|
|
@@ -12736,17 +13004,17 @@ declare class Spherical {
|
|
|
12736
13004
|
* Computes the {@link Spherical} coordinates equivalent to the given 3D vector.
|
|
12737
13005
|
* @param v
|
|
12738
13006
|
*/
|
|
12739
|
-
static fromVector(v:
|
|
13007
|
+
static fromVector(v: Vector3D_2): Spherical;
|
|
12740
13008
|
/**
|
|
12741
13009
|
* Converts {@link Spherical} coordinates back into cartesian {@link Vector3D} coordinates.
|
|
12742
13010
|
* @param coords
|
|
12743
13011
|
*/
|
|
12744
|
-
static toVector(coords: Spherical):
|
|
13012
|
+
static toVector(coords: Spherical): Vector3D_2;
|
|
12745
13013
|
/**
|
|
12746
13014
|
* Builds the rotation matrix corresponding to the given azimuth (`theta`) and polar (`phi`) angles.
|
|
12747
13015
|
* @param coords
|
|
12748
13016
|
*/
|
|
12749
|
-
static toRotationMatrix(coords: Spherical):
|
|
13017
|
+
static toRotationMatrix(coords: Spherical): Matrix3D;
|
|
12750
13018
|
/**
|
|
12751
13019
|
* Builds the rotation matrix corresponding to the given azimuth (`theta`) and polar (`phi`) angles.
|
|
12752
13020
|
* @param coords
|
|
@@ -12754,7 +13022,7 @@ declare class Spherical {
|
|
|
12754
13022
|
static toRotationMatrix(coords: {
|
|
12755
13023
|
theta: number;
|
|
12756
13024
|
phi: number;
|
|
12757
|
-
}):
|
|
13025
|
+
}): Matrix3D;
|
|
12758
13026
|
}
|
|
12759
13027
|
|
|
12760
13028
|
/** Abstraction of a 2D drawing surface capable of (re)drawing `Drawable` items and exposing its viewbox and screen transform. */
|
|
@@ -12762,11 +13030,11 @@ declare interface Stage extends EventTarget {
|
|
|
12762
13030
|
/** Draws (or redraws) the whole stage, or just the provided item. */
|
|
12763
13031
|
draw(item?: Drawable): any;
|
|
12764
13032
|
/** Gets or sets the visible portion of the stage, in stage coordinates. */
|
|
12765
|
-
viewbox:
|
|
13033
|
+
viewbox: Rect;
|
|
12766
13034
|
/** Gets or sets how the viewbox is mapped onto the stage's viewport. */
|
|
12767
13035
|
aspectRatio?: ViewBoxAspectRatio;
|
|
12768
13036
|
/** @readonly Gets the matrix that projects stage coords into screen coords. */
|
|
12769
|
-
readonly transformMatrix:
|
|
13037
|
+
readonly transformMatrix: Matrix2D;
|
|
12770
13038
|
/** @readonly Gets the DOM element hosting the stage content. */
|
|
12771
13039
|
readonly stage: HTMLElement;
|
|
12772
13040
|
}
|
|
@@ -12786,25 +13054,25 @@ declare interface Stage_3 extends EventTarget {
|
|
|
12786
13054
|
/** Gets the technology-dependent native scene instance (e.g. a `THREE.Scene`), as returned by the active {@link Pacem3DAdapterElement}. */
|
|
12787
13055
|
readonly scene: any;
|
|
12788
13056
|
/** Gets the current viewport size. */
|
|
12789
|
-
readonly size:
|
|
13057
|
+
readonly size: Size;
|
|
12790
13058
|
/** Gets or sets whether the stage background should be transparent. */
|
|
12791
13059
|
transparent?: boolean;
|
|
12792
13060
|
/** Gets or sets the stage background color. */
|
|
12793
|
-
background?: string |
|
|
13061
|
+
background?: string | Rgba;
|
|
12794
13062
|
}
|
|
12795
13063
|
|
|
12796
13064
|
/** Event dispatched for pointer interactions (move/down/up/click) targeting a `Stage` at large (i.e. no specific hit `Drawable`). */
|
|
12797
13065
|
declare class StageEvent extends UI2DEvent<Stage> {
|
|
12798
|
-
constructor(type: string, args: Stage, originalEvent: MouseEvent | TouchEvent | KeyboardEvent, m?:
|
|
13066
|
+
constructor(type: string, args: Stage, originalEvent: MouseEvent | TouchEvent | KeyboardEvent, m?: Matrix2D);
|
|
12799
13067
|
}
|
|
12800
13068
|
|
|
12801
13069
|
/** User-interaction options (pan/zoom/click) of a `Stage`, including the key modifiers required to trigger them. */
|
|
12802
13070
|
declare type StageOptions = {
|
|
12803
13071
|
panControl: boolean;
|
|
12804
13072
|
zoomControl: boolean;
|
|
12805
|
-
panModifiers:
|
|
12806
|
-
zoomModifiers:
|
|
12807
|
-
clickModifiers:
|
|
13073
|
+
panModifiers: EventKeyModifier[];
|
|
13074
|
+
zoomModifiers: EventKeyModifier[];
|
|
13075
|
+
clickModifiers: EventKeyModifier[];
|
|
12808
13076
|
};
|
|
12809
13077
|
|
|
12810
13078
|
/** Identifies which aspect of a {@link Renderable} changed since the last render, so the adapter can update only the stale part of the underlying native object. */
|
|
@@ -12868,6 +13136,15 @@ declare interface StateEventArgs<T> {
|
|
|
12868
13136
|
|
|
12869
13137
|
declare type StateEventType = 'push' | 'undo' | 'reset' | 'redo';
|
|
12870
13138
|
|
|
13139
|
+
/** Error thrown by {@link Http.request} when a request fails outright or completes with a non-2xx status. */
|
|
13140
|
+
declare class StatusCodeError extends Error {
|
|
13141
|
+
private statusCode;
|
|
13142
|
+
/** @param statusCode HTTP status code (`500` for network-level failures). @param statusText Status text / error message. */
|
|
13143
|
+
constructor(statusCode: number, statusText: string);
|
|
13144
|
+
/** The HTTP status code that caused this error. */
|
|
13145
|
+
get status(): number;
|
|
13146
|
+
}
|
|
13147
|
+
|
|
12871
13148
|
/** Determines how a `PacemStickyHeaderElement` behaves once the scroll offset passes its `threshold`. */
|
|
12872
13149
|
declare enum StickyHeaderVisibility {
|
|
12873
13150
|
/** Stays pinned/visible once past the threshold. */
|
|
@@ -12990,13 +13267,13 @@ declare type SwipeEventArgs = {
|
|
|
12990
13267
|
horizontalspeed?: number;
|
|
12991
13268
|
verticalspeed?: number;
|
|
12992
13269
|
timestamp: number;
|
|
12993
|
-
position:
|
|
13270
|
+
position: Point;
|
|
12994
13271
|
element: HTMLElement | SVGElement;
|
|
12995
13272
|
inertia?: number;
|
|
12996
13273
|
fling?: number;
|
|
12997
13274
|
t0: {
|
|
12998
13275
|
timestamp: number;
|
|
12999
|
-
position:
|
|
13276
|
+
position: Point;
|
|
13000
13277
|
};
|
|
13001
13278
|
vertical?: boolean;
|
|
13002
13279
|
};
|
|
@@ -13102,7 +13379,7 @@ declare interface Text_2 extends UiObject {
|
|
|
13102
13379
|
fontStyle?: string;
|
|
13103
13380
|
fontSize?: number;
|
|
13104
13381
|
color?: string;
|
|
13105
|
-
anchor?:
|
|
13382
|
+
anchor?: Point;
|
|
13106
13383
|
textAnchor?: 'start' | 'middle' | 'end';
|
|
13107
13384
|
}
|
|
13108
13385
|
|
|
@@ -13142,8 +13419,26 @@ declare interface Timeline {
|
|
|
13142
13419
|
cancelAnimation(): any;
|
|
13143
13420
|
}
|
|
13144
13421
|
|
|
13422
|
+
/**
|
|
13423
|
+
* `requestAnimationFrame`-driven timer that invokes a callback at (approximately) a given frame rate.
|
|
13424
|
+
* Instances are created via the static {@link Timer.run} factory rather than `new`.
|
|
13425
|
+
*/
|
|
13426
|
+
declare class Timer {
|
|
13427
|
+
#private;
|
|
13428
|
+
private constructor();
|
|
13429
|
+
private _run;
|
|
13430
|
+
/**
|
|
13431
|
+
* Creates and starts a new {@link Timer}.
|
|
13432
|
+
* @param callback Invoked on every tick with the current frame timestamp.
|
|
13433
|
+
* @param fps Target frame rate, in frames per second (default `60`).
|
|
13434
|
+
*/
|
|
13435
|
+
static run(callback: (time?: number) => void, fps?: number): Timer;
|
|
13436
|
+
/** Stops the timer, cancelling any pending animation frame. */
|
|
13437
|
+
stop(): void;
|
|
13438
|
+
}
|
|
13439
|
+
|
|
13145
13440
|
/** Event dispatched (and bubbling) when a time slot is selected on a {@link PacemAgendaElement}, carrying the selected date/time. */
|
|
13146
|
-
declare class TimeSelectEvent extends
|
|
13441
|
+
declare class TimeSelectEvent extends CustomTypedEvent<Date> {
|
|
13147
13442
|
constructor(date: Date);
|
|
13148
13443
|
}
|
|
13149
13444
|
|
|
@@ -13263,7 +13558,105 @@ declare type TypeMetadata = {
|
|
|
13263
13558
|
type?: 'object' | 'array';
|
|
13264
13559
|
};
|
|
13265
13560
|
|
|
13266
|
-
|
|
13561
|
+
declare namespace UI {
|
|
13562
|
+
export {
|
|
13563
|
+
DragDataMode,
|
|
13564
|
+
DropBehavior,
|
|
13565
|
+
DropTargetMissedBehavior,
|
|
13566
|
+
DragDropEventType,
|
|
13567
|
+
DragDropInitEventArgsClass,
|
|
13568
|
+
DragDropEventArgsClass,
|
|
13569
|
+
DragDropEventArgs,
|
|
13570
|
+
DragDropEvent,
|
|
13571
|
+
DragDropper,
|
|
13572
|
+
RescaleHandle,
|
|
13573
|
+
RescaleEventArgs,
|
|
13574
|
+
RescaleEventType,
|
|
13575
|
+
RescaleEventArgsClass,
|
|
13576
|
+
RescaleEvent,
|
|
13577
|
+
Rescaler,
|
|
13578
|
+
RotateEventArgs,
|
|
13579
|
+
RotateEventType,
|
|
13580
|
+
RotateEventArgsClass,
|
|
13581
|
+
RotateEvent,
|
|
13582
|
+
Rotator,
|
|
13583
|
+
SwipeEventArgs,
|
|
13584
|
+
SwipeEventType,
|
|
13585
|
+
SwipeEventArgsClass,
|
|
13586
|
+
SwipeEvent,
|
|
13587
|
+
Swiper
|
|
13588
|
+
}
|
|
13589
|
+
}
|
|
13590
|
+
export { UI }
|
|
13591
|
+
|
|
13592
|
+
/**
|
|
13593
|
+
* Base class for the custom UI events dispatched by the 2D stage/adapters, carrying the screen transform
|
|
13594
|
+
* matrix in effect at dispatch time so consumers can project screen coordinates into stage coordinates.
|
|
13595
|
+
*/
|
|
13596
|
+
declare abstract class UI2DEvent<T> extends CustomUIEvent<T> {
|
|
13597
|
+
#private;
|
|
13598
|
+
constructor(type: string, eventInit: CustomEventInit<T>, originalEvent: MouseEvent | TouchEvent | KeyboardEvent, transformMatrix: Matrix2D);
|
|
13599
|
+
/** Gets the screen transform matrix. */
|
|
13600
|
+
get transformMatrix(): Matrix2D;
|
|
13601
|
+
/** Projects a point (defaults to the event's screen coordinates) through the event's transform matrix. */
|
|
13602
|
+
project(pt?: Point): Point;
|
|
13603
|
+
}
|
|
13604
|
+
|
|
13605
|
+
/**
|
|
13606
|
+
* Abstract base of every {@link RenderableElement} that also carries an affine 3d transform (rotate/scale/offset,
|
|
13607
|
+
* combined into {@link transformMatrix}). Extended by {@link Pacem3DGroupElement}, {@link Pacem3DMeshElement} and
|
|
13608
|
+
* {@link Pacem3DObjectElement}.
|
|
13609
|
+
*/
|
|
13610
|
+
declare abstract class Ui3DElement extends RenderableElement implements Ui3DObject {
|
|
13611
|
+
/** Gets or sets the element's rotation, as a quaternion. */
|
|
13612
|
+
rotate: Geometry.LinearAlgebra.Quaternion;
|
|
13613
|
+
/** Gets or sets the element's scale, per axis (or a single number for uniform scaling). */
|
|
13614
|
+
scale: Geometry.LinearAlgebra.Point3D;
|
|
13615
|
+
/** Gets or sets the element's translation offset, applied on top of {@link RenderableElement.position}. */
|
|
13616
|
+
offset: Geometry.LinearAlgebra.Point3D;
|
|
13617
|
+
/** Gets the local transform 3D matrix (4x4). */
|
|
13618
|
+
transformMatrix: Geometry.LinearAlgebra.Matrix3D;
|
|
13619
|
+
/** @deprecated*/
|
|
13620
|
+
scaleX: number;
|
|
13621
|
+
/** @deprecated*/
|
|
13622
|
+
scaleY: number;
|
|
13623
|
+
/** @deprecated*/
|
|
13624
|
+
scaleZ: number;
|
|
13625
|
+
/** @deprecated*/
|
|
13626
|
+
translateX: number;
|
|
13627
|
+
/** @deprecated*/
|
|
13628
|
+
translateY: number;
|
|
13629
|
+
/** @deprecated*/
|
|
13630
|
+
translateZ: number;
|
|
13631
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
13632
|
+
private _computeTransformMatrix;
|
|
13633
|
+
}
|
|
13634
|
+
|
|
13635
|
+
/** Base class for the custom UI events dispatched by 3d elements/the stage, carrying the source pointer's projected {@link point} in 3d world space alongside the original DOM event. */
|
|
13636
|
+
declare abstract class UI3DEvent<T> extends CustomUIEvent<T> {
|
|
13637
|
+
#private;
|
|
13638
|
+
constructor(type: string, eventInit: CustomEventInit<T>, originalEvent: MouseEvent | TouchEvent | KeyboardEvent, point: Vector3D);
|
|
13639
|
+
/** Gets the event's source position in 3d coordinates. */
|
|
13640
|
+
get point(): Vector3D;
|
|
13641
|
+
}
|
|
13642
|
+
|
|
13643
|
+
/** A {@link Renderable} that also has an affine 3d transform (rotation, scale, translation) and a bounding volume. */
|
|
13644
|
+
declare interface Ui3DObject extends Renderable {
|
|
13645
|
+
/** Gets or sets the object's rotation. */
|
|
13646
|
+
rotate?: Quaternion_2;
|
|
13647
|
+
/** Gets or sets the object's scale, per axis. */
|
|
13648
|
+
scale?: Vector3D;
|
|
13649
|
+
/** Gets or sets the object's translation offset, applied on top of {@link Renderable.position}. */
|
|
13650
|
+
offset?: Vector3D;
|
|
13651
|
+
/** Gets or sets the composed local transform (scale, rotation, offset) matrix. */
|
|
13652
|
+
transformMatrix: Matrix3D_2;
|
|
13653
|
+
/** Gets the plain (untransformed via {@link transformMatrix}) bounding sphere. */
|
|
13654
|
+
readonly boundingSphere?: Sphere3D;
|
|
13655
|
+
/** Gets the plain (untransformed via {@link transformMatrix}) bounding box. */
|
|
13656
|
+
readonly boundingBox?: Box3D;
|
|
13657
|
+
}
|
|
13658
|
+
|
|
13659
|
+
declare namespace UI_2 {
|
|
13267
13660
|
export {
|
|
13268
13661
|
AdapterOrientation,
|
|
13269
13662
|
AdapterPageButtonRefreshEventArgs,
|
|
@@ -13317,7 +13710,7 @@ export declare namespace UI {
|
|
|
13317
13710
|
PacemDialogElement,
|
|
13318
13711
|
PacemDividerElement,
|
|
13319
13712
|
PacemIconElement,
|
|
13320
|
-
PacemImageElement,
|
|
13713
|
+
PacemImageElement_2 as PacemImageElement,
|
|
13321
13714
|
PacemInfiniteScrollerElement,
|
|
13322
13715
|
PacemAdaptedIterativeElement,
|
|
13323
13716
|
LightboxBehavior,
|
|
@@ -13368,73 +13761,6 @@ export declare namespace UI {
|
|
|
13368
13761
|
}
|
|
13369
13762
|
}
|
|
13370
13763
|
|
|
13371
|
-
/**
|
|
13372
|
-
* Base class for the custom UI events dispatched by the 2D stage/adapters, carrying the screen transform
|
|
13373
|
-
* matrix in effect at dispatch time so consumers can project screen coordinates into stage coordinates.
|
|
13374
|
-
*/
|
|
13375
|
-
declare abstract class UI2DEvent<T> extends CustomUIEvent_2<T> {
|
|
13376
|
-
#private;
|
|
13377
|
-
constructor(type: string, eventInit: CustomEventInit<T>, originalEvent: MouseEvent | TouchEvent | KeyboardEvent, transformMatrix: Matrix2D_2);
|
|
13378
|
-
/** Gets the screen transform matrix. */
|
|
13379
|
-
get transformMatrix(): Matrix2D_2;
|
|
13380
|
-
/** Projects a point (defaults to the event's screen coordinates) through the event's transform matrix. */
|
|
13381
|
-
project(pt?: Point_2): Point_2;
|
|
13382
|
-
}
|
|
13383
|
-
|
|
13384
|
-
/**
|
|
13385
|
-
* Abstract base of every {@link RenderableElement} that also carries an affine 3d transform (rotate/scale/offset,
|
|
13386
|
-
* combined into {@link transformMatrix}). Extended by {@link Pacem3DGroupElement}, {@link Pacem3DMeshElement} and
|
|
13387
|
-
* {@link Pacem3DObjectElement}.
|
|
13388
|
-
*/
|
|
13389
|
-
declare abstract class Ui3DElement extends RenderableElement implements Ui3DObject {
|
|
13390
|
-
/** Gets or sets the element's rotation, as a quaternion. */
|
|
13391
|
-
rotate: Geometry_2.LinearAlgebra.Quaternion;
|
|
13392
|
-
/** Gets or sets the element's scale, per axis (or a single number for uniform scaling). */
|
|
13393
|
-
scale: Geometry_2.LinearAlgebra.Point3D;
|
|
13394
|
-
/** Gets or sets the element's translation offset, applied on top of {@link RenderableElement.position}. */
|
|
13395
|
-
offset: Geometry_2.LinearAlgebra.Point3D;
|
|
13396
|
-
/** Gets the local transform 3D matrix (4x4). */
|
|
13397
|
-
transformMatrix: Geometry_2.LinearAlgebra.Matrix3D;
|
|
13398
|
-
/** @deprecated*/
|
|
13399
|
-
scaleX: number;
|
|
13400
|
-
/** @deprecated*/
|
|
13401
|
-
scaleY: number;
|
|
13402
|
-
/** @deprecated*/
|
|
13403
|
-
scaleZ: number;
|
|
13404
|
-
/** @deprecated*/
|
|
13405
|
-
translateX: number;
|
|
13406
|
-
/** @deprecated*/
|
|
13407
|
-
translateY: number;
|
|
13408
|
-
/** @deprecated*/
|
|
13409
|
-
translateZ: number;
|
|
13410
|
-
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
13411
|
-
private _computeTransformMatrix;
|
|
13412
|
-
}
|
|
13413
|
-
|
|
13414
|
-
/** Base class for the custom UI events dispatched by 3d elements/the stage, carrying the source pointer's projected {@link point} in 3d world space alongside the original DOM event. */
|
|
13415
|
-
declare abstract class UI3DEvent<T> extends CustomUIEvent_2<T> {
|
|
13416
|
-
#private;
|
|
13417
|
-
constructor(type: string, eventInit: CustomEventInit<T>, originalEvent: MouseEvent | TouchEvent | KeyboardEvent, point: Vector3D);
|
|
13418
|
-
/** Gets the event's source position in 3d coordinates. */
|
|
13419
|
-
get point(): Vector3D;
|
|
13420
|
-
}
|
|
13421
|
-
|
|
13422
|
-
/** A {@link Renderable} that also has an affine 3d transform (rotation, scale, translation) and a bounding volume. */
|
|
13423
|
-
declare interface Ui3DObject extends Renderable {
|
|
13424
|
-
/** Gets or sets the object's rotation. */
|
|
13425
|
-
rotate?: Quaternion;
|
|
13426
|
-
/** Gets or sets the object's scale, per axis. */
|
|
13427
|
-
scale?: Vector3D;
|
|
13428
|
-
/** Gets or sets the object's translation offset, applied on top of {@link Renderable.position}. */
|
|
13429
|
-
offset?: Vector3D;
|
|
13430
|
-
/** Gets or sets the composed local transform (scale, rotation, offset) matrix. */
|
|
13431
|
-
transformMatrix: Matrix3D;
|
|
13432
|
-
/** Gets the plain (untransformed via {@link transformMatrix}) bounding sphere. */
|
|
13433
|
-
readonly boundingSphere?: Sphere3D;
|
|
13434
|
-
/** Gets the plain (untransformed via {@link transformMatrix}) bounding box. */
|
|
13435
|
-
readonly boundingBox?: Box3D;
|
|
13436
|
-
}
|
|
13437
|
-
|
|
13438
13764
|
declare const UI_3: typeof Components_3.UI;
|
|
13439
13765
|
|
|
13440
13766
|
declare const UI_4: typeof Components_3.UI;
|
|
@@ -13488,7 +13814,7 @@ export declare interface UIEventLike extends KeyEventLike {
|
|
|
13488
13814
|
/** A `Drawable` participating in the 2D transform pipeline (opacity and transform matrix). */
|
|
13489
13815
|
declare interface UiObject extends Drawable {
|
|
13490
13816
|
opacity?: number;
|
|
13491
|
-
readonly transformMatrix?:
|
|
13817
|
+
readonly transformMatrix?: Matrix2D;
|
|
13492
13818
|
}
|
|
13493
13819
|
|
|
13494
13820
|
/**
|
|
@@ -13519,17 +13845,17 @@ export declare class Utils {
|
|
|
13519
13845
|
static Dates: {
|
|
13520
13846
|
now: () => Date;
|
|
13521
13847
|
parse: typeof Utils.parseDate;
|
|
13522
|
-
isLeapYear: typeof
|
|
13523
|
-
daysInMonth: typeof
|
|
13848
|
+
isLeapYear: typeof Dates.isLeapYear;
|
|
13849
|
+
daysInMonth: typeof Dates.daysInMonth;
|
|
13524
13850
|
/**
|
|
13525
13851
|
* Gets whether a date is an `Invalid Date` or not.
|
|
13526
13852
|
* @param date
|
|
13527
13853
|
*/
|
|
13528
|
-
isDate: typeof
|
|
13529
|
-
dateOnly: typeof
|
|
13530
|
-
addMonths: typeof
|
|
13531
|
-
addDays: typeof
|
|
13532
|
-
daysBetween: typeof
|
|
13854
|
+
isDate: typeof Dates.isDate;
|
|
13855
|
+
dateOnly: typeof Dates.dateOnly;
|
|
13856
|
+
addMonths: typeof Dates.addMonths;
|
|
13857
|
+
addDays: typeof Dates.addDays;
|
|
13858
|
+
daysBetween: typeof Dates.daysBetween;
|
|
13533
13859
|
};
|
|
13534
13860
|
/**
|
|
13535
13861
|
* Computes a CSS `filter` value that tints black/grayscale content towards the given color (via a
|
|
@@ -13555,27 +13881,27 @@ export declare class Utils {
|
|
|
13555
13881
|
*/
|
|
13556
13882
|
isClassDefined(name: string): boolean;
|
|
13557
13883
|
/** Parses an element's (or style declaration's) computed `transform: matrix(...)` CSS value into its 2D affine matrix components; identity if unset. */
|
|
13558
|
-
deserializeTransform(element: Element | CSSStyleDeclaration):
|
|
13884
|
+
deserializeTransform(element: Element | CSSStyleDeclaration): Matrix2D;
|
|
13559
13885
|
};
|
|
13560
|
-
static leftPad: typeof
|
|
13561
|
-
static formatString: typeof
|
|
13562
|
-
static diff: typeof
|
|
13886
|
+
static leftPad: typeof Strings.leftPad;
|
|
13887
|
+
static formatString: typeof Strings.format;
|
|
13888
|
+
static diff: typeof Strings.diff;
|
|
13563
13889
|
static Strings: {
|
|
13564
|
-
leftPad: typeof
|
|
13565
|
-
format: typeof
|
|
13566
|
-
diff: typeof
|
|
13890
|
+
leftPad: typeof Strings.leftPad;
|
|
13891
|
+
format: typeof Strings.format;
|
|
13892
|
+
diff: typeof Strings.diff;
|
|
13567
13893
|
/** Strips HTML markup from `html`, returning its plain-text content. */
|
|
13568
13894
|
stripHTML: (html: string) => string;
|
|
13569
13895
|
};
|
|
13570
13896
|
static Blobs: {
|
|
13571
|
-
toDataURL: typeof
|
|
13572
|
-
fromDataURL: typeof
|
|
13573
|
-
toText: typeof
|
|
13574
|
-
fromText: typeof
|
|
13897
|
+
toDataURL: typeof Blobs.blobToDataURL;
|
|
13898
|
+
fromDataURL: typeof Blobs.dataURLToBlob;
|
|
13899
|
+
toText: typeof Blobs.blobToText;
|
|
13900
|
+
fromText: typeof Blobs.textToBlob;
|
|
13575
13901
|
};
|
|
13576
13902
|
static Images: {
|
|
13577
|
-
load: typeof
|
|
13578
|
-
resize: typeof
|
|
13903
|
+
load: typeof Imaging.loadImage;
|
|
13904
|
+
resize: typeof Imaging.resizeImage;
|
|
13579
13905
|
};
|
|
13580
13906
|
/** Loads an image from `src` and resolves with the `HTMLImageElement` once ready (or rejects on error). */
|
|
13581
13907
|
static loadImage(src: string): Promise<HTMLImageElement>;
|
|
@@ -13657,7 +13983,7 @@ export declare class Utils {
|
|
|
13657
13983
|
/** JSON-stringifies `obj` (via {@link Json}), or passes through `null`/`undefined` unchanged. */
|
|
13658
13984
|
static jsonSortStringify(obj: {}): string;
|
|
13659
13985
|
static Browsers: {
|
|
13660
|
-
detect: typeof
|
|
13986
|
+
detect: typeof detect;
|
|
13661
13987
|
};
|
|
13662
13988
|
/** Parses a `document.cookie`-style string (or `document.cookie` itself, by default) into a name/value map. */
|
|
13663
13989
|
static cookies(cookie?: string): Record<string, string>;
|
|
@@ -13700,7 +14026,7 @@ export declare class Utils {
|
|
|
13700
14026
|
* Retrieve the bounding box of the provided element as of its rendered appearance on the stage (takes transformations into account).
|
|
13701
14027
|
* @param el The element.
|
|
13702
14028
|
*/
|
|
13703
|
-
static offsetRect(el: Element):
|
|
14029
|
+
static offsetRect(el: Element): Rect;
|
|
13704
14030
|
/** Sums `offsetTop` up the `offsetParent` chain, giving `el`'s vertical position relative to the document rather than just its nearest positioned ancestor. */
|
|
13705
14031
|
static naturalOffsetTop(el: HTMLElement): number;
|
|
13706
14032
|
/** Sums `offsetTop` up the `offsetParent` chain (note: mirrors {@link naturalOffsetTop}'s calculation, not `offsetLeft`), giving `el`'s horizontal position relative to the document. */
|
|
@@ -13719,9 +14045,9 @@ export declare class Utils {
|
|
|
13719
14045
|
* Retrieve the natural bounding box of the provided element (does not takes transformations into account).
|
|
13720
14046
|
* @param el {HTMLElement} The element.
|
|
13721
14047
|
*/
|
|
13722
|
-
static naturalOffsetRect(el: HTMLElement):
|
|
13723
|
-
static deserializeTransform(element: Element):
|
|
13724
|
-
static deserializeTransform(style: CSSStyleDeclaration):
|
|
14048
|
+
static naturalOffsetRect(el: HTMLElement): Rect;
|
|
14049
|
+
static deserializeTransform(element: Element): Matrix2D;
|
|
14050
|
+
static deserializeTransform(style: CSSStyleDeclaration): Matrix2D;
|
|
13725
14051
|
/** Sets the window's vertical scroll position, keeping the current horizontal position. */
|
|
13726
14052
|
static set scrollTop(y: number);
|
|
13727
14053
|
/** Sets the window's horizontal scroll position, keeping the current vertical position. */
|
|
@@ -13887,30 +14213,30 @@ declare class Utils_2 {
|
|
|
13887
14213
|
* @param p1 Point 1
|
|
13888
14214
|
* @param p2 Point 2
|
|
13889
14215
|
*/
|
|
13890
|
-
static slopeRad(p1:
|
|
14216
|
+
static slopeRad(p1: Point, p2: Point): number;
|
|
13891
14217
|
/**
|
|
13892
14218
|
* Computes the slope (in radians) of the segment joining two points and returns a strictly positive value (0 to 2*pi).
|
|
13893
14219
|
* @param p1 Point 1
|
|
13894
14220
|
* @param p2 Point 2
|
|
13895
14221
|
*/
|
|
13896
|
-
static slopeRad2(p1:
|
|
14222
|
+
static slopeRad2(p1: Point, p2: Point): number;
|
|
13897
14223
|
/**
|
|
13898
14224
|
* Computes the slope (in degrees) of the segment joining two points.
|
|
13899
14225
|
* @param p1 Point 1
|
|
13900
14226
|
* @param p2 Point 2
|
|
13901
14227
|
*/
|
|
13902
|
-
static slopeDeg(p1:
|
|
14228
|
+
static slopeDeg(p1: Point, p2: Point): number;
|
|
13903
14229
|
/**
|
|
13904
14230
|
* Computes the slope (in degrees) of the segment joining two points and returns a strictly positive value (0 to 360).
|
|
13905
14231
|
* @param p1 Point 1
|
|
13906
14232
|
* @param p2 Point 2
|
|
13907
14233
|
*/
|
|
13908
|
-
static slopeDeg2(p1:
|
|
14234
|
+
static slopeDeg2(p1: Point, p2: Point): number;
|
|
13909
14235
|
/**
|
|
13910
14236
|
* Computes the intersection rect among a set of provided rects.
|
|
13911
14237
|
* @param rects Rects to intersect
|
|
13912
14238
|
*/
|
|
13913
|
-
static intersect(...rects:
|
|
14239
|
+
static intersect(...rects: Rect[]): Rect;
|
|
13914
14240
|
/**
|
|
13915
14241
|
* Computes the intersection polygon(s) between two polygons.
|
|
13916
14242
|
* @param polygon1 First polygon.
|
|
@@ -13923,13 +14249,13 @@ declare class Utils_2 {
|
|
|
13923
14249
|
* @param segment1
|
|
13924
14250
|
* @param segment2
|
|
13925
14251
|
*/
|
|
13926
|
-
static intersect(segment1: Segment, segment2: Segment):
|
|
14252
|
+
static intersect(segment1: Segment, segment2: Segment): Point;
|
|
13927
14253
|
/**
|
|
13928
14254
|
* Computes the axis-aligned bounding box of a set of points.
|
|
13929
14255
|
* @param vertices Points to enclose.
|
|
13930
14256
|
* @returns The smallest rect containing all provided points.
|
|
13931
14257
|
*/
|
|
13932
|
-
static boundingBox(vertices:
|
|
14258
|
+
static boundingBox(vertices: Point[]): Rect;
|
|
13933
14259
|
/**
|
|
13934
14260
|
* Combines two polygons using a boolean set operator (union, intersection or difference).
|
|
13935
14261
|
* Internally triangulates the merged vertex set (via {@link mesh}) and filters the resulting
|
|
@@ -13941,7 +14267,7 @@ declare class Utils_2 {
|
|
|
13941
14267
|
*/
|
|
13942
14268
|
static combinePolygons(polygon1: Polygon, polygon2: Polygon, operator: PolygonCompound): {
|
|
13943
14269
|
polygons: Polygon[];
|
|
13944
|
-
mesh?:
|
|
14270
|
+
mesh?: Mesh;
|
|
13945
14271
|
triangles?: Polygon[];
|
|
13946
14272
|
} | null;
|
|
13947
14273
|
private static _mergePolygons;
|
|
@@ -13949,14 +14275,14 @@ declare class Utils_2 {
|
|
|
13949
14275
|
* Returns the 2D mesh (vertices and triangle indices) of the Delaunay triangulation for the provided points.
|
|
13950
14276
|
* @param points
|
|
13951
14277
|
*/
|
|
13952
|
-
static mesh(...points:
|
|
13953
|
-
static mesh(points:
|
|
14278
|
+
static mesh(...points: Point[]): any;
|
|
14279
|
+
static mesh(points: Point[]): any;
|
|
13954
14280
|
/**
|
|
13955
14281
|
* Computes the intersection point between the lines whose two provided segments belong to, if any.
|
|
13956
14282
|
* @param segment1 First segment
|
|
13957
14283
|
* @param segment2 Second segment
|
|
13958
14284
|
*/
|
|
13959
|
-
static intersectLines(segment1: Segment, segment2: Segment):
|
|
14285
|
+
static intersectLines(segment1: Segment, segment2: Segment): Point;
|
|
13960
14286
|
/**
|
|
13961
14287
|
* Computes the intersection point between the lines having the respective 'm' and 'q'.
|
|
13962
14288
|
* @param m1 First line's 'm'
|
|
@@ -13964,19 +14290,19 @@ declare class Utils_2 {
|
|
|
13964
14290
|
* @param m2 Second line's 'm'
|
|
13965
14291
|
* @param q2 Second line's 'q'
|
|
13966
14292
|
*/
|
|
13967
|
-
static intersectLines(m1: number, q1: number, m2: number, q2: number):
|
|
14293
|
+
static intersectLines(m1: number, q1: number, m2: number, q2: number): Point;
|
|
13968
14294
|
/**
|
|
13969
14295
|
* Computes the intersection point between the lines having the respective 'm' and 'q'.
|
|
13970
14296
|
* @param mq1 'm' and 'q' pair for line 1
|
|
13971
14297
|
* @param mq2 'm' and 'q' pair for line 2
|
|
13972
14298
|
*/
|
|
13973
|
-
static intersectLines(mq1: [number, number], mq2: [number, number]):
|
|
14299
|
+
static intersectLines(mq1: [number, number], mq2: [number, number]): Point;
|
|
13974
14300
|
/**
|
|
13975
14301
|
* Returns the eigenvalue for two given linear equations of the form ax + by + c = 0.
|
|
13976
14302
|
* @param l1
|
|
13977
14303
|
* @param l2
|
|
13978
14304
|
*/
|
|
13979
|
-
static cramer(l1: [number, number, number], l2: [number, number, number]):
|
|
14305
|
+
static cramer(l1: [number, number, number], l2: [number, number, number]): Point;
|
|
13980
14306
|
/**
|
|
13981
14307
|
* Returns the eigenvalue for two given linear equations of the form ax + by + c = 0.
|
|
13982
14308
|
* @param l1
|
|
@@ -13990,13 +14316,13 @@ declare class Utils_2 {
|
|
|
13990
14316
|
a: number;
|
|
13991
14317
|
b: number;
|
|
13992
14318
|
c: number;
|
|
13993
|
-
}):
|
|
14319
|
+
}): Point;
|
|
13994
14320
|
/**
|
|
13995
14321
|
* Returns the slope (m) and the y-axis intersection (q) of the line joining two given points.
|
|
13996
14322
|
* @param p1
|
|
13997
14323
|
* @param p2
|
|
13998
14324
|
*/
|
|
13999
|
-
static mq(p1:
|
|
14325
|
+
static mq(p1: Point, p2: Point): [number, number];
|
|
14000
14326
|
/**
|
|
14001
14327
|
* Returns the slope (m) and the y-axis intersection (q) of the line containing the provided segment.
|
|
14002
14328
|
* @param segment
|
|
@@ -14012,32 +14338,32 @@ declare class Utils_2 {
|
|
|
14012
14338
|
* @param precision Optional precision roundoff for the proximity check.
|
|
14013
14339
|
* @returns True if the points are considered coincident within tolerance; otherwise, false.
|
|
14014
14340
|
*/
|
|
14015
|
-
static areClose(p1:
|
|
14016
|
-
static areClose(p1:
|
|
14341
|
+
static areClose(p1: Point, p2: Point): boolean;
|
|
14342
|
+
static areClose(p1: Point, p2: Point, precision: number): boolean;
|
|
14017
14343
|
/**
|
|
14018
14344
|
* Returns the dot product between two vectors/points.
|
|
14019
14345
|
* @param v1
|
|
14020
14346
|
* @param v2
|
|
14021
14347
|
*/
|
|
14022
|
-
static dot(v1:
|
|
14348
|
+
static dot(v1: Point, v2: Point): number;
|
|
14023
14349
|
/**
|
|
14024
14350
|
* Returns the cross product between two vectors/points (magnitude along the z axis).
|
|
14025
14351
|
* @param v1
|
|
14026
14352
|
* @param v2
|
|
14027
14353
|
*/
|
|
14028
|
-
static cross(v1:
|
|
14354
|
+
static cross(v1: Point, v2: Point): number;
|
|
14029
14355
|
/**
|
|
14030
14356
|
* Returns the distance between two given points.
|
|
14031
14357
|
* @param p1
|
|
14032
14358
|
* @param p2
|
|
14033
14359
|
*/
|
|
14034
|
-
static distance(p1:
|
|
14360
|
+
static distance(p1: Point, p2: Point): number;
|
|
14035
14361
|
/**
|
|
14036
14362
|
* Returns the distance between a point and a line.
|
|
14037
14363
|
* @param p
|
|
14038
14364
|
* @param mq Line identified by a two-number array (slope and y-intercept).
|
|
14039
14365
|
*/
|
|
14040
|
-
static distance(p:
|
|
14366
|
+
static distance(p: Point, mq: [number, number]): number;
|
|
14041
14367
|
/**
|
|
14042
14368
|
* Returns the length of a segment.
|
|
14043
14369
|
* @param segment
|
|
@@ -14052,8 +14378,8 @@ declare class Utils_2 {
|
|
|
14052
14378
|
* @param clockwise Side to test for: `true` for the clockwise side, `false` for counter-clockwise.
|
|
14053
14379
|
* @param precision Optional precision roundoff used to consider the point "on the line" (and thus not "within" either side).
|
|
14054
14380
|
*/
|
|
14055
|
-
static isWithin(p:
|
|
14056
|
-
static isWithin(p:
|
|
14381
|
+
static isWithin(p: Point, segment: Segment, clockwise: boolean): boolean;
|
|
14382
|
+
static isWithin(p: Point, segment: Segment, clockwise: boolean, precision: number): boolean;
|
|
14057
14383
|
/**
|
|
14058
14384
|
* Checks whether a point lies on the opposite side (clockwise or counter-clockwise) of the line
|
|
14059
14385
|
* through a segment, strictly off the line. Complementary to {@link isWithin}.
|
|
@@ -14062,57 +14388,57 @@ declare class Utils_2 {
|
|
|
14062
14388
|
* @param clockwise Side to test *against*: `true` tests for the counter-clockwise side, `false` for clockwise.
|
|
14063
14389
|
* @param precision Optional precision roundoff used to consider the point "on the line".
|
|
14064
14390
|
*/
|
|
14065
|
-
static isBeyond(p:
|
|
14066
|
-
static isBeyond(p:
|
|
14391
|
+
static isBeyond(p: Point, segment: Segment, clockwise: boolean): boolean;
|
|
14392
|
+
static isBeyond(p: Point, segment: Segment, clockwise: boolean, precision: number): boolean;
|
|
14067
14393
|
/**
|
|
14068
14394
|
* Checks whether a point lies on the (infinite) line through a segment.
|
|
14069
14395
|
* @param p Point to test.
|
|
14070
14396
|
* @param segment Segment identifying the reference line.
|
|
14071
14397
|
* @param precision Optional precision roundoff for the proximity check.
|
|
14072
14398
|
*/
|
|
14073
|
-
static inLine(p:
|
|
14074
|
-
static inLine(p:
|
|
14399
|
+
static inLine(p: Point, segment: Segment): boolean;
|
|
14400
|
+
static inLine(p: Point, segment: Segment, precision: number): boolean;
|
|
14075
14401
|
/**
|
|
14076
14402
|
* Checks whether a point lies on the segment itself (on its line, and within its bounding box).
|
|
14077
14403
|
* @param p Point to test.
|
|
14078
14404
|
* @param segment Segment to test against.
|
|
14079
14405
|
* @param precision Optional precision roundoff for the proximity check.
|
|
14080
14406
|
*/
|
|
14081
|
-
static inSegment(p:
|
|
14082
|
-
static inSegment(p:
|
|
14407
|
+
static inSegment(p: Point, segment: Segment): boolean;
|
|
14408
|
+
static inSegment(p: Point, segment: Segment, precision: number): boolean;
|
|
14083
14409
|
/**
|
|
14084
14410
|
* Checks whether a point lies inside (or on the boundary of) a triangle, by verifying that it
|
|
14085
14411
|
* is on the same rotational side of all three edges.
|
|
14086
14412
|
* @param p Point to test.
|
|
14087
14413
|
* @param triangle Triangle vertices.
|
|
14088
14414
|
*/
|
|
14089
|
-
static inTriangle(p:
|
|
14415
|
+
static inTriangle(p: Point, triangle: [Point, Point, Point]): boolean;
|
|
14090
14416
|
/**
|
|
14091
14417
|
* Checks whether a given point lies inside a polygon in the 2d plane.
|
|
14092
14418
|
* @param p
|
|
14093
14419
|
* @param vertices Ordered polygon vertices
|
|
14094
14420
|
*/
|
|
14095
|
-
static inPolygon(p:
|
|
14421
|
+
static inPolygon(p: Point, vertices: Point[]): any;
|
|
14096
14422
|
/**
|
|
14097
14423
|
* Checks whether a given point lies inside a polygon in the 2d plane.
|
|
14098
14424
|
* @param p
|
|
14099
14425
|
* @param vertices Ordered polygon vertices
|
|
14100
14426
|
* @param precision Precision roundoff, strongly recommended in case of quasi-aligned geometries. Default value: 12)
|
|
14101
14427
|
*/
|
|
14102
|
-
static inPolygon(p:
|
|
14428
|
+
static inPolygon(p: Point, vertices: Point[], precision: number): any;
|
|
14103
14429
|
/**
|
|
14104
14430
|
* Returns the area of the polygon defined by the provided points.
|
|
14105
14431
|
* @param points Vertices of the polygon
|
|
14106
14432
|
*/
|
|
14107
|
-
static area(...points:
|
|
14108
|
-
static area(points:
|
|
14433
|
+
static area(...points: Point[]): number;
|
|
14434
|
+
static area(points: Point[]): number;
|
|
14109
14435
|
/**
|
|
14110
14436
|
* Convex hull of a set of points using the Andrew's monotone chain algorithm. O(n log n) time complexity.
|
|
14111
14437
|
* @param points Points to hull
|
|
14112
14438
|
* @returns Convex hull vertices in counter-clockwise order, starting from the leftmost one.
|
|
14113
14439
|
*/
|
|
14114
|
-
static convexHull(...points:
|
|
14115
|
-
static convexHull(points:
|
|
14440
|
+
static convexHull(...points: Point[]): Point[];
|
|
14441
|
+
static convexHull(points: Point[]): Point[];
|
|
14116
14442
|
}
|
|
14117
14443
|
|
|
14118
14444
|
/** Utility tools about statistics, probability, data analysis... */
|
|
@@ -14176,7 +14502,7 @@ declare class Utils_3 {
|
|
|
14176
14502
|
*/
|
|
14177
14503
|
static linearRegression(setX: number[], setY: number[]): [number, number];
|
|
14178
14504
|
static linearRegression<X, Y>(setX: X[], setY: Y[], selectorX: NumericKeySelector<X>, selectorY: NumericKeySelector<Y>): [number, number];
|
|
14179
|
-
static linearRegression(set:
|
|
14505
|
+
static linearRegression(set: Point[]): [number, number];
|
|
14180
14506
|
static linearRegression<T>(set: T[], selectorX: NumericKeySelector<T>, selectorY: NumericKeySelector<T>): [number, number];
|
|
14181
14507
|
/**
|
|
14182
14508
|
* Returns a set of utilities for gaussian distribution computations.
|
|
@@ -14251,7 +14577,7 @@ declare class Utils_4 {
|
|
|
14251
14577
|
}
|
|
14252
14578
|
|
|
14253
14579
|
/** Per-vertex texture (u, v) coordinates, one {@link Point} per vertex. */
|
|
14254
|
-
declare type UVMap =
|
|
14580
|
+
declare type UVMap = Point[];
|
|
14255
14581
|
|
|
14256
14582
|
/** Minimal contract for anything that can validate a value and be registered against a {@link PacemFormElement} field: a `validate` function and the `invalid` outcome of the last run. */
|
|
14257
14583
|
declare interface Validator {
|
|
@@ -14280,7 +14606,7 @@ declare type ValidatorMetadata = KnownValidatorMetadata | {
|
|
|
14280
14606
|
declare type ValidatorType = Omit<string, 'required' | 'email' | 'length' | 'range' | 'regex' | 'binary' | 'compare' | 'async'>;
|
|
14281
14607
|
|
|
14282
14608
|
/** Represents a vector in the 2D space */
|
|
14283
|
-
declare interface Vector extends
|
|
14609
|
+
declare interface Vector extends Point {
|
|
14284
14610
|
}
|
|
14285
14611
|
|
|
14286
14612
|
/** 2D vector utils. */
|
|
@@ -14310,59 +14636,57 @@ declare class Vector {
|
|
|
14310
14636
|
* @param p1 Start point
|
|
14311
14637
|
* @param p2 End point
|
|
14312
14638
|
*/
|
|
14313
|
-
static from(p1:
|
|
14639
|
+
static from(p1: Point, p2: Point): Vector;
|
|
14314
14640
|
/**
|
|
14315
14641
|
* Returns the dot product between two vectors/points.
|
|
14316
14642
|
* @param v1
|
|
14317
14643
|
* @param v2
|
|
14318
14644
|
*/
|
|
14319
|
-
static dot(v1:
|
|
14645
|
+
static dot(v1: Point, v2: Point): number;
|
|
14320
14646
|
/**
|
|
14321
14647
|
* Returns the cross product between two vectors/points (magnitude along the z axis).
|
|
14322
14648
|
* @param v1
|
|
14323
14649
|
* @param v2
|
|
14324
14650
|
*/
|
|
14325
|
-
static cross(v1:
|
|
14651
|
+
static cross(v1: Point, v2: Point): number;
|
|
14326
14652
|
/**
|
|
14327
14653
|
* Checks if the two points are effectively the same location.
|
|
14328
14654
|
* @param v1 The first point.
|
|
14329
14655
|
* @param v2 The second point.
|
|
14330
14656
|
* @returns True if the points are considered coincident within tolerance; otherwise, false.
|
|
14331
14657
|
*/
|
|
14332
|
-
static areClose(v1:
|
|
14658
|
+
static areClose(v1: Point, v2: Point): boolean;
|
|
14333
14659
|
}
|
|
14334
14660
|
|
|
14335
14661
|
/** A point/displacement in 3d world space, as `{x, y, z}`. */
|
|
14336
|
-
declare type Vector3D =
|
|
14337
|
-
|
|
14338
|
-
declare type Vector3D_2 = Geometry_2.LinearAlgebra.Vector3D;
|
|
14662
|
+
declare type Vector3D = Geometry.LinearAlgebra.Vector3D;
|
|
14339
14663
|
|
|
14340
14664
|
/** Represents a vector in the 3D space */
|
|
14341
|
-
declare interface
|
|
14665
|
+
declare interface Vector3D_2 extends Point3D {
|
|
14342
14666
|
}
|
|
14343
14667
|
|
|
14344
14668
|
/** 3D vector utils. */
|
|
14345
|
-
declare class
|
|
14669
|
+
declare class Vector3D_2 {
|
|
14346
14670
|
/**
|
|
14347
14671
|
* Builds a {@link Vector3D} from its x, y, z components, in that order.
|
|
14348
14672
|
* @param args Exactly 3 numbers: x, y, z.
|
|
14349
14673
|
* @throws If the number of arguments is not exactly 3.
|
|
14350
14674
|
*/
|
|
14351
|
-
static from(...args: number[]):
|
|
14675
|
+
static from(...args: number[]): Vector3D_2;
|
|
14352
14676
|
/**
|
|
14353
14677
|
* Parses a string representation (e.g. `"1 2 3"` or `"1,2,3"`) into a {@link Vector3D}.
|
|
14354
14678
|
* @param input String to parse.
|
|
14355
14679
|
* @throws If the input cannot be parsed as exactly 3 numbers.
|
|
14356
14680
|
*/
|
|
14357
|
-
static parse(input: string):
|
|
14681
|
+
static parse(input: string): Vector3D_2;
|
|
14358
14682
|
/** Returns the unit vector along the x axis: `(1, 0, 0)`. */
|
|
14359
|
-
static i():
|
|
14683
|
+
static i(): Vector3D_2;
|
|
14360
14684
|
/** Returns the unit vector along the y axis: `(0, 1, 0)`. */
|
|
14361
|
-
static j():
|
|
14685
|
+
static j(): Vector3D_2;
|
|
14362
14686
|
/** Returns the unit vector along the z axis: `(0, 0, 1)`. */
|
|
14363
|
-
static k():
|
|
14687
|
+
static k(): Vector3D_2;
|
|
14364
14688
|
/** Returns the zero vector: `(0, 0, 0)`. */
|
|
14365
|
-
static zero():
|
|
14689
|
+
static zero(): Vector3D_2;
|
|
14366
14690
|
/**
|
|
14367
14691
|
* Subtracts a point p from another and returns the resulting vector.
|
|
14368
14692
|
* @param p Point to subtract
|
|
@@ -14385,13 +14709,13 @@ declare class Vector3D_3 {
|
|
|
14385
14709
|
* @param v1
|
|
14386
14710
|
* @param v2
|
|
14387
14711
|
*/
|
|
14388
|
-
static cross(v1: Point3D, v2: Point3D):
|
|
14712
|
+
static cross(v1: Point3D, v2: Point3D): Vector3D_2;
|
|
14389
14713
|
/**
|
|
14390
14714
|
* Scales a vector by a single factor applied uniformly to all axes.
|
|
14391
14715
|
* @param v Vector to scale.
|
|
14392
14716
|
* @param f Scale factor for x, y and z.
|
|
14393
14717
|
*/
|
|
14394
|
-
static scale(v:
|
|
14718
|
+
static scale(v: Vector3D_2, f: number): Vector3D_2;
|
|
14395
14719
|
/**
|
|
14396
14720
|
* Scales a vector by independent per-axis factors.
|
|
14397
14721
|
* @param v Vector to scale.
|
|
@@ -14399,7 +14723,7 @@ declare class Vector3D_3 {
|
|
|
14399
14723
|
* @param fy Scale factor for y.
|
|
14400
14724
|
* @param fz Scale factor for z.
|
|
14401
14725
|
*/
|
|
14402
|
-
static scale(v:
|
|
14726
|
+
static scale(v: Vector3D_2, fx: number, fy: number, fz: number): Vector3D_2;
|
|
14403
14727
|
/**
|
|
14404
14728
|
* Returns the squared magnitude (length) of the vector. Cheaper than {@link mag} since it avoids the square root.
|
|
14405
14729
|
* @param v
|
|
@@ -14421,25 +14745,27 @@ declare class Vector3D_3 {
|
|
|
14421
14745
|
* Returns the opposite vector (each component negated).
|
|
14422
14746
|
* @param v
|
|
14423
14747
|
*/
|
|
14424
|
-
static negate(v:
|
|
14748
|
+
static negate(v: Vector3D_2): Vector3D_2;
|
|
14425
14749
|
/**
|
|
14426
14750
|
* Returns the unit (normalized) vector having the same direction and sense of the provided one.
|
|
14427
14751
|
* @param v
|
|
14428
14752
|
*/
|
|
14429
|
-
static unit(v:
|
|
14753
|
+
static unit(v: Vector3D_2): Vector3D_2;
|
|
14430
14754
|
/**
|
|
14431
14755
|
* Normalizes the provided vector in place.
|
|
14432
14756
|
* @param v
|
|
14433
14757
|
*/
|
|
14434
|
-
static normalize(v:
|
|
14758
|
+
static normalize(v: Vector3D_2): void;
|
|
14435
14759
|
/**
|
|
14436
14760
|
* Returns the angle (in degrees) between two vectors.
|
|
14437
14761
|
* @param vector1
|
|
14438
14762
|
* @param vector2
|
|
14439
14763
|
*/
|
|
14440
|
-
static angleBetween(vector1:
|
|
14764
|
+
static angleBetween(vector1: Vector3D_2, vector2: Vector3D_2): number;
|
|
14441
14765
|
}
|
|
14442
14766
|
|
|
14767
|
+
declare type Vector3D_3 = Geometry.LinearAlgebra.Vector3D;
|
|
14768
|
+
|
|
14443
14769
|
/** User-supplied callback (see {@link WGSLModifierDelegates.vertexInput}) that returns extra WGSL statements to splice into the vertex-input stage. */
|
|
14444
14770
|
declare type VertexInputModifierDelegate = (...args: VertexInputModifierDelegateArgs) => string;
|
|
14445
14771
|
|
|
@@ -14476,7 +14802,7 @@ declare type ViewBoxAspectRatio = 'none' | {
|
|
|
14476
14802
|
export declare function ViewChild(selector: string): (target: any, prop: string, descriptor?: PropertyDescriptor) => void;
|
|
14477
14803
|
|
|
14478
14804
|
/** Event dispatched by a {@link PacemCalendarBaseElement} whenever its `viewDate` changes, carrying the new date. */
|
|
14479
|
-
declare class ViewDateChangeEvent extends
|
|
14805
|
+
declare class ViewDateChangeEvent extends CustomTypedEvent<Date> {
|
|
14480
14806
|
constructor(date: Date);
|
|
14481
14807
|
}
|
|
14482
14808
|
|
|
@@ -14549,14 +14875,11 @@ declare global {
|
|
|
14549
14875
|
AttributeChangeEventName,
|
|
14550
14876
|
avoidHandler,
|
|
14551
14877
|
Blobs,
|
|
14552
|
-
Charts,
|
|
14553
14878
|
CieXYZ,
|
|
14554
14879
|
Colors,
|
|
14555
14880
|
CommandEvent,
|
|
14556
14881
|
CommandEventArgs,
|
|
14557
14882
|
CommandEventName,
|
|
14558
|
-
Compile,
|
|
14559
|
-
Components,
|
|
14560
14883
|
Concurrent,
|
|
14561
14884
|
CookieData,
|
|
14562
14885
|
CookieStoreLike,
|
|
@@ -14567,7 +14890,6 @@ declare global {
|
|
|
14567
14890
|
CustomEventUtils,
|
|
14568
14891
|
CustomTypedEvent,
|
|
14569
14892
|
CustomUIEvent,
|
|
14570
|
-
DataAnalysis,
|
|
14571
14893
|
Dates,
|
|
14572
14894
|
Debounce,
|
|
14573
14895
|
DeepCloner,
|
|
@@ -14579,15 +14901,11 @@ declare global {
|
|
|
14579
14901
|
DiffMode,
|
|
14580
14902
|
DiffToken,
|
|
14581
14903
|
DiffTokenType,
|
|
14582
|
-
Drawing,
|
|
14583
|
-
Drawing3D,
|
|
14584
14904
|
EMPTY_MATCHER,
|
|
14585
14905
|
EventCoordinates,
|
|
14586
14906
|
EventKeyModifier,
|
|
14587
14907
|
EventKeyModifiers,
|
|
14588
14908
|
Expression,
|
|
14589
|
-
Fx,
|
|
14590
|
-
Geometry,
|
|
14591
14909
|
HistoryService,
|
|
14592
14910
|
Hsla,
|
|
14593
14911
|
Imaging,
|
|
@@ -14603,31 +14921,20 @@ declare global {
|
|
|
14603
14921
|
JsonSerializationOptions,
|
|
14604
14922
|
KeyEventLike,
|
|
14605
14923
|
Keys,
|
|
14606
|
-
L10n,
|
|
14607
|
-
LinearAlgebra,
|
|
14608
|
-
Logging,
|
|
14609
|
-
Maps,
|
|
14610
|
-
Markdown,
|
|
14611
|
-
Mathematics,
|
|
14612
14924
|
Matrix2D,
|
|
14613
|
-
Media,
|
|
14614
|
-
Networking,
|
|
14615
14925
|
NotifyPropertyChange,
|
|
14616
14926
|
NullChecker,
|
|
14617
14927
|
Numbers,
|
|
14618
|
-
NumberTheory,
|
|
14619
14928
|
OnAdopted,
|
|
14620
14929
|
OnAttributeChanged,
|
|
14621
14930
|
OnConnected,
|
|
14622
14931
|
OnDisconnected,
|
|
14623
14932
|
OnPropertyChanged,
|
|
14624
14933
|
OnViewActivated,
|
|
14625
|
-
OpenApi,
|
|
14626
14934
|
P,
|
|
14627
14935
|
PacemEventTarget,
|
|
14628
14936
|
parseAsNumericalArray,
|
|
14629
14937
|
PCSS,
|
|
14630
|
-
Plus,
|
|
14631
14938
|
Point,
|
|
14632
14939
|
preventDefaultHandler,
|
|
14633
14940
|
PropertyChangeEvent,
|
|
@@ -14650,7 +14957,6 @@ declare global {
|
|
|
14650
14957
|
RouterNavigatingEvent,
|
|
14651
14958
|
RouterNavigatingEventName,
|
|
14652
14959
|
RouterState,
|
|
14653
|
-
Scaffolding,
|
|
14654
14960
|
Size,
|
|
14655
14961
|
stopPropagationHandler,
|
|
14656
14962
|
Strings,
|
|
@@ -14658,16 +14964,29 @@ declare global {
|
|
|
14658
14964
|
Throttle,
|
|
14659
14965
|
TransformFunction,
|
|
14660
14966
|
Type,
|
|
14661
|
-
UI,
|
|
14662
14967
|
UIEventLike,
|
|
14663
14968
|
Utils,
|
|
14664
14969
|
ViewChild,
|
|
14665
14970
|
Watch,
|
|
14666
14971
|
WATCH_PROPS_VAR,
|
|
14667
14972
|
WatchConfig,
|
|
14668
|
-
|
|
14669
|
-
|
|
14670
|
-
|
|
14973
|
+
Animations,
|
|
14974
|
+
Behaviors,
|
|
14975
|
+
Compile,
|
|
14976
|
+
Components,
|
|
14977
|
+
CustomElementRegistry_2 as CustomElementRegistry,
|
|
14978
|
+
Drawing,
|
|
14979
|
+
Drawing3D,
|
|
14980
|
+
Geometry,
|
|
14981
|
+
Logging,
|
|
14982
|
+
Maps,
|
|
14983
|
+
Mathematics,
|
|
14984
|
+
Net,
|
|
14985
|
+
Plus,
|
|
14986
|
+
Scaffolding,
|
|
14987
|
+
Storage_2 as Storage,
|
|
14988
|
+
Transformer_2 as Transformer,
|
|
14989
|
+
UI
|
|
14671
14990
|
};
|
|
14672
14991
|
}
|
|
14673
14992
|
}
|