@pacem/pacem 1.0.4 → 1.0.5-bartels
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 +4097 -4097
- 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 +7 -2
- package/dist/browser/pacem-plus.js.map +1 -1
- package/dist/browser/pacem-plus.min.js +2 -2
- package/dist/browser/pacem-scaffolding.js +1 -1
- package/dist/browser/pacem-scaffolding.min.js +1 -1
- package/dist/browser/pacem-ui.js +7 -1
- package/dist/browser/pacem-ui.js.map +1 -1
- package/dist/browser/pacem-ui.min.js +1 -1
- package/dist/bundle/pacem.min.mjs +680 -680
- package/dist/bundle/pacem.mjs +40226 -40348
- 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/docs/pacem-plus.json +6363 -6351
- package/dist/typings/index.d.ts +915 -590
- 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-bartels (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,57 +1045,125 @@ 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
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1055
|
+
Networking,
|
|
1056
|
+
Scaffolding_2 as Scaffolding,
|
|
1057
|
+
UI_2 as UI,
|
|
1058
|
+
Plus_2 as Plus
|
|
1059
|
+
}
|
|
1060
|
+
}
|
|
1061
|
+
export { Components }
|
|
1062
|
+
|
|
1063
|
+
declare namespace Components_2 {
|
|
1064
|
+
export {
|
|
1065
|
+
OnInitialize,
|
|
1066
|
+
OnDestroy,
|
|
1067
|
+
PacemAdapter,
|
|
1068
|
+
PacemAnnihilatorElement,
|
|
1069
|
+
PacemBeforeunloadElement,
|
|
1070
|
+
PacemBroadcastChannelProxyElement,
|
|
1071
|
+
PacemBrowserDetectElement,
|
|
1072
|
+
PacemDataElement,
|
|
1073
|
+
DockMode,
|
|
1074
|
+
PacemDockElement,
|
|
1075
|
+
PacemTransferProxyElement,
|
|
1076
|
+
PacemBodyProxyElement,
|
|
1077
|
+
PacemShellProxyElement,
|
|
1078
|
+
PacemElementProxyElement,
|
|
1079
|
+
PacemEventProxyElement,
|
|
1080
|
+
PacemFetchElement,
|
|
1081
|
+
StateEventArgs,
|
|
1082
|
+
StateEvent,
|
|
1083
|
+
PacemHistoryElement,
|
|
1084
|
+
PacemHtmlProxyElement,
|
|
1085
|
+
PacemIfElement,
|
|
1086
|
+
isItemsContainer,
|
|
1087
|
+
PacemItemElement,
|
|
1088
|
+
ItemRegisterEventName,
|
|
1089
|
+
ItemUnregisterEventName,
|
|
1090
|
+
ItemRegisterEvent,
|
|
1091
|
+
ItemUnregisterEvent,
|
|
1092
|
+
PacemCrossItemsContainerElement,
|
|
1093
|
+
PacemItemsContainerElement,
|
|
1094
|
+
PacemIterableElement,
|
|
1095
|
+
PacemIterativeElement,
|
|
1096
|
+
PacemLayoutProxyElement,
|
|
1097
|
+
PacemMetaProxyElement,
|
|
1098
|
+
PacemOnlineStatusElement,
|
|
1099
|
+
PacemPanelElement,
|
|
1100
|
+
ItemCommandEvent,
|
|
1101
|
+
CustomItemCommandEvent,
|
|
1102
|
+
PacemRepeaterElement,
|
|
1103
|
+
RepeaterItem_2 as RepeaterItem,
|
|
1104
|
+
ResizeEventName,
|
|
1105
|
+
ResizeEventArgs,
|
|
1106
|
+
ResizeEvent,
|
|
1107
|
+
PacemResizeElement,
|
|
1108
|
+
PacemRouterElement,
|
|
1109
|
+
ScrollEventName,
|
|
1110
|
+
ScrollEventArgs,
|
|
1111
|
+
ScrollEvent,
|
|
1112
|
+
PacemScrollAwareElement,
|
|
1113
|
+
PacemServiceWorkerProxyElement,
|
|
1114
|
+
KeyboardShortcutExecuteEventName,
|
|
1115
|
+
PacemShortcutElement,
|
|
1116
|
+
PacemSpanElement,
|
|
1117
|
+
PacemStyleProxyElement,
|
|
1118
|
+
PacemTemplateProxyElement,
|
|
1119
|
+
PacemTextElement,
|
|
1120
|
+
PacemTimerElement,
|
|
1121
|
+
PacemTitleProxyElement,
|
|
1122
|
+
PacemTweenElement,
|
|
1123
|
+
RepeaterItemEventArgs,
|
|
1124
|
+
RepeaterItemCreateEventName,
|
|
1125
|
+
RepeaterItemRemoveEventName,
|
|
1126
|
+
RepeaterItemEvent,
|
|
1127
|
+
RepeaterItemCreateEvent,
|
|
1128
|
+
RepeaterItemRemoveEvent,
|
|
1129
|
+
AriaAttributes,
|
|
1130
|
+
Aria,
|
|
1131
|
+
Wai,
|
|
1132
|
+
PacemElement,
|
|
1133
|
+
PacemContentElement,
|
|
1134
|
+
PacemUnsafeContentElement,
|
|
1135
|
+
PacemSafeContentElement,
|
|
1136
|
+
PacemViewportAwareElement,
|
|
1137
|
+
PacemWebWorkerProxyElement,
|
|
1138
|
+
PacemDragDropElement,
|
|
1139
|
+
PacemRescaleElement,
|
|
1140
|
+
PacemRotateElement,
|
|
1141
|
+
SwipeOptions,
|
|
1142
|
+
PacemSwipeElement,
|
|
1143
|
+
AnimationElement,
|
|
1144
|
+
TweenAnimationElement,
|
|
1145
|
+
PacemColorAnimationElement,
|
|
1146
|
+
PacemNumberAnimationElement,
|
|
1147
|
+
PacemPointAnimationElement,
|
|
1148
|
+
PacemStoryboardElement
|
|
1149
|
+
}
|
|
1150
|
+
}
|
|
1151
|
+
|
|
1152
|
+
declare namespace Components_3 {
|
|
1153
|
+
export {
|
|
1154
|
+
UI_2 as UI
|
|
1155
|
+
}
|
|
1156
|
+
}
|
|
1157
|
+
|
|
1158
|
+
declare namespace Components_4 {
|
|
1159
|
+
export {
|
|
1160
|
+
Maps_2 as Maps
|
|
1161
|
+
}
|
|
1162
|
+
}
|
|
1163
|
+
|
|
1164
|
+
declare namespace Components_5 {
|
|
1165
|
+
export {
|
|
1166
|
+
Scaffolding_2 as Scaffolding
|
|
1081
1167
|
}
|
|
1082
1168
|
}
|
|
1083
1169
|
|
|
@@ -1144,7 +1230,7 @@ declare class ContenteditableUtils {
|
|
|
1144
1230
|
static findSurroundingNode(range: Range, tagName: string): Element;
|
|
1145
1231
|
static findSurroundingNode(node: Node, tagName: string): Element;
|
|
1146
1232
|
static findSurroundingNode(range: Range, filter: (node: Node) => boolean): Element;
|
|
1147
|
-
static findSurroundingNode<TNode extends Node>(range: Range, type:
|
|
1233
|
+
static findSurroundingNode<TNode extends Node>(range: Range, type: Type<TNode>): TNode;
|
|
1148
1234
|
/**
|
|
1149
1235
|
* Seeks for the nearest surrounding block-level element of a given Selection's range.
|
|
1150
1236
|
* @param range
|
|
@@ -1597,7 +1683,7 @@ export declare abstract class CustomUIEvent<TDetail> extends CustomEvent<TDetail
|
|
|
1597
1683
|
get screenY(): number;
|
|
1598
1684
|
}
|
|
1599
1685
|
|
|
1600
|
-
|
|
1686
|
+
declare namespace DataAnalysis {
|
|
1601
1687
|
export {
|
|
1602
1688
|
Fourier,
|
|
1603
1689
|
Gaussian,
|
|
@@ -1639,7 +1725,7 @@ declare type DataCellMetadataCssFactory = (host: Element, metadata: DataColumnMe
|
|
|
1639
1725
|
* `click` becomes `datacellclick`) and enriched with the originating cell/item/row-index. An un-prevented
|
|
1640
1726
|
* `click` while in `'row'` select mode additionally toggles that row's selection.
|
|
1641
1727
|
*/
|
|
1642
|
-
declare class DataCellUIEvent extends
|
|
1728
|
+
declare class DataCellUIEvent extends CustomUIEvent<DataCellUIEventArgs> {
|
|
1643
1729
|
constructor(type: string, detail: DataCellUIEventArgs, orig?: MouseEvent | TouchEvent | KeyboardEvent);
|
|
1644
1730
|
}
|
|
1645
1731
|
|
|
@@ -1888,7 +1974,7 @@ export declare class Dates {
|
|
|
1888
1974
|
}
|
|
1889
1975
|
|
|
1890
1976
|
/** Event dispatched (and bubbling) when a day is selected on a {@link PacemCalendarElement}, carrying the selected date. */
|
|
1891
|
-
declare class DateSelectEvent extends
|
|
1977
|
+
declare class DateSelectEvent extends CustomTypedEvent<Date> {
|
|
1892
1978
|
constructor(date: Date);
|
|
1893
1979
|
}
|
|
1894
1980
|
|
|
@@ -2026,7 +2112,7 @@ declare enum DialogButtons {
|
|
|
2026
2112
|
}
|
|
2027
2113
|
|
|
2028
2114
|
/** 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
|
|
2115
|
+
declare class DialogResultEvent extends CustomTypedEvent<DialogResultEventArgs> {
|
|
2030
2116
|
constructor(args: DialogResultEventArgs);
|
|
2031
2117
|
}
|
|
2032
2118
|
|
|
@@ -2125,9 +2211,9 @@ declare class DragDropEvent extends CustomUIEvent<DragDropEventArgsClass | DragD
|
|
|
2125
2211
|
declare type DragDropEventArgs = {
|
|
2126
2212
|
element: HTMLElement | SVGElement;
|
|
2127
2213
|
placeholder: HTMLElement | SVGElement;
|
|
2128
|
-
origin:
|
|
2129
|
-
currentPosition:
|
|
2130
|
-
initialDelta:
|
|
2214
|
+
origin: Point;
|
|
2215
|
+
currentPosition: Point;
|
|
2216
|
+
initialDelta: Point;
|
|
2131
2217
|
startTime: number;
|
|
2132
2218
|
data: any;
|
|
2133
2219
|
floater: Element;
|
|
@@ -2143,13 +2229,13 @@ declare abstract class DragDropEventArgsBaseClass {
|
|
|
2143
2229
|
get element(): HTMLElement | SVGElement;
|
|
2144
2230
|
abstract readonly placeholder: HTMLElement | SVGElement;
|
|
2145
2231
|
abstract readonly data: any;
|
|
2146
|
-
get origin():
|
|
2147
|
-
get initialDelta():
|
|
2232
|
+
get origin(): Point;
|
|
2233
|
+
get initialDelta(): Point;
|
|
2148
2234
|
get startTime(): number;
|
|
2149
2235
|
get floater(): Element;
|
|
2150
2236
|
target: Element;
|
|
2151
|
-
currentPosition:
|
|
2152
|
-
get delta():
|
|
2237
|
+
currentPosition: Point;
|
|
2238
|
+
get delta(): Point;
|
|
2153
2239
|
}
|
|
2154
2240
|
|
|
2155
2241
|
/**
|
|
@@ -2234,14 +2320,14 @@ declare class DragEvent_3 extends UI2DEvent<DragEventArgs_2> {
|
|
|
2234
2320
|
/** Payload carried by a {@link DragEvent}: the dragged {@link Renderable} item and its drag offset. */
|
|
2235
2321
|
declare interface DragEventArgs {
|
|
2236
2322
|
/** Gets the drag displacement. */
|
|
2237
|
-
readonly offset:
|
|
2323
|
+
readonly offset: Point;
|
|
2238
2324
|
/** Gets the item being dragged. */
|
|
2239
2325
|
readonly item: Renderable;
|
|
2240
2326
|
}
|
|
2241
2327
|
|
|
2242
2328
|
/** Event args carried by a `DragEvent`: the dragged `item` and its current `offset`. */
|
|
2243
2329
|
declare interface DragEventArgs_2 {
|
|
2244
|
-
readonly offset:
|
|
2330
|
+
readonly offset: Point;
|
|
2245
2331
|
readonly item: Drawable;
|
|
2246
2332
|
}
|
|
2247
2333
|
|
|
@@ -2278,10 +2364,10 @@ declare abstract class DrawableElement extends Components_2.PacemCrossItemsConta
|
|
|
2278
2364
|
|
|
2279
2365
|
/** Event dispatched for pointer interactions (over/out/down/up/click) targeting a `Drawable`. */
|
|
2280
2366
|
declare class DrawableEvent extends UI2DEvent<Drawable> {
|
|
2281
|
-
constructor(type: string, args: Drawable, originalEvent: MouseEvent | TouchEvent | KeyboardEvent, m:
|
|
2367
|
+
constructor(type: string, args: Drawable, originalEvent: MouseEvent | TouchEvent | KeyboardEvent, m: Matrix2D);
|
|
2282
2368
|
}
|
|
2283
2369
|
|
|
2284
|
-
|
|
2370
|
+
declare namespace Drawing {
|
|
2285
2371
|
export {
|
|
2286
2372
|
isDrawable,
|
|
2287
2373
|
isUiObject,
|
|
@@ -2316,8 +2402,9 @@ export declare namespace Drawing {
|
|
|
2316
2402
|
StageEvent
|
|
2317
2403
|
}
|
|
2318
2404
|
}
|
|
2405
|
+
export { Drawing }
|
|
2319
2406
|
|
|
2320
|
-
|
|
2407
|
+
declare namespace Drawing3D {
|
|
2321
2408
|
export {
|
|
2322
2409
|
isStage,
|
|
2323
2410
|
isRenderable,
|
|
@@ -2334,8 +2421,8 @@ export declare namespace Drawing3D {
|
|
|
2334
2421
|
computePlaneNormal,
|
|
2335
2422
|
isInteraction,
|
|
2336
2423
|
Vector3D,
|
|
2337
|
-
Matrix3D,
|
|
2338
|
-
Quaternion,
|
|
2424
|
+
Matrix3D_2 as Matrix3D,
|
|
2425
|
+
Quaternion_2 as Quaternion,
|
|
2339
2426
|
UVMap,
|
|
2340
2427
|
Box3D,
|
|
2341
2428
|
Sphere3D,
|
|
@@ -2346,7 +2433,7 @@ export declare namespace Drawing3D {
|
|
|
2346
2433
|
OrthographicCamera,
|
|
2347
2434
|
PerspectiveCamera,
|
|
2348
2435
|
Light,
|
|
2349
|
-
Mesh,
|
|
2436
|
+
Mesh_2 as Mesh,
|
|
2350
2437
|
Group_2 as Group,
|
|
2351
2438
|
DragEventArgs,
|
|
2352
2439
|
UI3DEvent,
|
|
@@ -2393,8 +2480,9 @@ export declare namespace Drawing3D {
|
|
|
2393
2480
|
MaterialElement
|
|
2394
2481
|
}
|
|
2395
2482
|
}
|
|
2483
|
+
export { Drawing3D }
|
|
2396
2484
|
|
|
2397
|
-
|
|
2485
|
+
declare namespace Drawing3D_2 {
|
|
2398
2486
|
export {
|
|
2399
2487
|
isStage,
|
|
2400
2488
|
isRenderable,
|
|
@@ -2411,8 +2499,8 @@ export declare namespace Drawing3D_2 {
|
|
|
2411
2499
|
computePlaneNormal,
|
|
2412
2500
|
isInteraction,
|
|
2413
2501
|
Vector3D,
|
|
2414
|
-
Matrix3D,
|
|
2415
|
-
Quaternion,
|
|
2502
|
+
Matrix3D_2 as Matrix3D,
|
|
2503
|
+
Quaternion_2 as Quaternion,
|
|
2416
2504
|
UVMap,
|
|
2417
2505
|
Box3D,
|
|
2418
2506
|
Sphere3D,
|
|
@@ -2423,7 +2511,7 @@ export declare namespace Drawing3D_2 {
|
|
|
2423
2511
|
OrthographicCamera,
|
|
2424
2512
|
PerspectiveCamera,
|
|
2425
2513
|
Light,
|
|
2426
|
-
Mesh,
|
|
2514
|
+
Mesh_2 as Mesh,
|
|
2427
2515
|
Group_2 as Group,
|
|
2428
2516
|
DragEventArgs,
|
|
2429
2517
|
UI3DEvent,
|
|
@@ -2490,7 +2578,7 @@ export declare namespace Drawing3D_2 {
|
|
|
2490
2578
|
}
|
|
2491
2579
|
}
|
|
2492
2580
|
|
|
2493
|
-
|
|
2581
|
+
declare namespace Drawing_2 {
|
|
2494
2582
|
export {
|
|
2495
2583
|
DrawableElement,
|
|
2496
2584
|
Stage_2 as Stage,
|
|
@@ -2509,7 +2597,7 @@ export declare namespace Drawing_2 {
|
|
|
2509
2597
|
PacemPathElement,
|
|
2510
2598
|
PacemPolygonElement,
|
|
2511
2599
|
PacemPolylineElement,
|
|
2512
|
-
|
|
2600
|
+
PacemImageElement,
|
|
2513
2601
|
PacemTextElement_2 as PacemTextElement,
|
|
2514
2602
|
getStageOptions,
|
|
2515
2603
|
Pacem2DElement,
|
|
@@ -2542,6 +2630,11 @@ declare type Easing = (any: any) => any & {
|
|
|
2542
2630
|
css: string;
|
|
2543
2631
|
};
|
|
2544
2632
|
|
|
2633
|
+
/**
|
|
2634
|
+
* Collection of ready-made {@link Easing} functions, each paired with its CSS timing-function equivalent.
|
|
2635
|
+
*/
|
|
2636
|
+
declare const Easings: any;
|
|
2637
|
+
|
|
2545
2638
|
/** The kind of inline content a {@link PacemEditElement} edits, and the editor UI it swaps in accordingly. */
|
|
2546
2639
|
declare enum EditMode {
|
|
2547
2640
|
/** Plain text, edited via a `${P}-textarea`. */
|
|
@@ -2555,10 +2648,10 @@ declare enum EditMode {
|
|
|
2555
2648
|
}
|
|
2556
2649
|
|
|
2557
2650
|
/** Either a DOM `Element` or a plain `{x,y}` `Point`. */
|
|
2558
|
-
declare type ElementOrPoint = Element |
|
|
2651
|
+
declare type ElementOrPoint = Element | Point;
|
|
2559
2652
|
|
|
2560
2653
|
/** Converts an attribute value into an `Element` (resolved via `querySelector`) or, failing that, a parsed `Point`/JSON value. */
|
|
2561
|
-
declare const ElementOrPointPropertyConverter:
|
|
2654
|
+
declare const ElementOrPointPropertyConverter: PropertyConverter;
|
|
2562
2655
|
|
|
2563
2656
|
/** A pattern that can never match any string (`/a^/`); useful as a safe no-op default for optional matcher parameters. */
|
|
2564
2657
|
export declare const EMPTY_MATCHER: RegExp;
|
|
@@ -2566,11 +2659,11 @@ export declare const EMPTY_MATCHER: RegExp;
|
|
|
2566
2659
|
/** A pointer position expressed in the three coordinate systems normally exposed by mouse/touch events. */
|
|
2567
2660
|
export declare interface EventCoordinates {
|
|
2568
2661
|
/** Position relative to the whole document, including any scrolled-away area. */
|
|
2569
|
-
readonly page:
|
|
2662
|
+
readonly page: Point;
|
|
2570
2663
|
/** Position relative to the viewport. */
|
|
2571
|
-
readonly client:
|
|
2664
|
+
readonly client: Point;
|
|
2572
2665
|
/** Position relative to the physical screen. */
|
|
2573
|
-
readonly screen:
|
|
2666
|
+
readonly screen: Point;
|
|
2574
2667
|
}
|
|
2575
2668
|
|
|
2576
2669
|
/** String tokens accepted by {@link CustomEventUtils.matchModifiers} to describe a keyboard/mouse modifier. */
|
|
@@ -2686,6 +2779,9 @@ declare class Fetcher {
|
|
|
2686
2779
|
static isEmpty(r: GlobalResponse): boolean;
|
|
2687
2780
|
}
|
|
2688
2781
|
|
|
2782
|
+
/** Event name dispatched when a {@link Fetcher}'s request fails. */
|
|
2783
|
+
declare const FetchErrorEventName = "error";
|
|
2784
|
+
|
|
2689
2785
|
/** Payload of an {@link ImageFetchRequestEvent}: an optional search hint plus paging (`skip`/`take`). */
|
|
2690
2786
|
declare type FetchRequestEventArgs = {
|
|
2691
2787
|
hint?: string;
|
|
@@ -2693,8 +2789,14 @@ declare type FetchRequestEventArgs = {
|
|
|
2693
2789
|
take?: number;
|
|
2694
2790
|
};
|
|
2695
2791
|
|
|
2792
|
+
/** Event name dispatched with the raw fetch result payload; see {@link Fetcher.result}. */
|
|
2793
|
+
declare const FetchResultEventName = "fetchresult";
|
|
2794
|
+
|
|
2795
|
+
/** Event name dispatched when a {@link Fetcher}'s request completes successfully. */
|
|
2796
|
+
declare const FetchSuccessEventName = "success";
|
|
2797
|
+
|
|
2696
2798
|
/** 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
|
|
2799
|
+
declare class FieldChangeEvent extends CustomTypedEvent<FieldChangeEventArgs> {
|
|
2698
2800
|
constructor(args: FieldChangeEventArgs);
|
|
2699
2801
|
}
|
|
2700
2802
|
|
|
@@ -2723,7 +2825,7 @@ declare type FieldManifest = {
|
|
|
2723
2825
|
};
|
|
2724
2826
|
|
|
2725
2827
|
/** Dispatched by {@link PacemUploadElement} whenever the user picks (or clears) file(s)/a directory. */
|
|
2726
|
-
declare class FileChangeEvent extends
|
|
2828
|
+
declare class FileChangeEvent extends CustomTypedEvent<FileChangeEventArgs> {
|
|
2727
2829
|
constructor(file: FileChangeEventArgs);
|
|
2728
2830
|
}
|
|
2729
2831
|
|
|
@@ -2739,7 +2841,7 @@ declare type FileChangeEventArgs = {
|
|
|
2739
2841
|
declare const FileChangeEventName = "filechange";
|
|
2740
2842
|
|
|
2741
2843
|
/** Dispatched by {@link PacemUploadElement} to report chunked-upload progress/completion. */
|
|
2742
|
-
declare class FileUploadEvent extends
|
|
2844
|
+
declare class FileUploadEvent extends CustomTypedEvent<FileUploadEventArgs> {
|
|
2743
2845
|
constructor(file: FileUploadEventArgs);
|
|
2744
2846
|
}
|
|
2745
2847
|
|
|
@@ -2764,7 +2866,7 @@ declare const FileUploadEventName = "fileupload";
|
|
|
2764
2866
|
*/
|
|
2765
2867
|
declare class FormEventEmitter {
|
|
2766
2868
|
private _element;
|
|
2767
|
-
constructor(_element:
|
|
2869
|
+
constructor(_element: PacemEventTarget);
|
|
2768
2870
|
/** Starts listening for {@link EMITTABLE_EVENT_TYPES} on the target element. */
|
|
2769
2871
|
start(): void;
|
|
2770
2872
|
private _itemEmitHandler;
|
|
@@ -2800,7 +2902,7 @@ declare class Forms {
|
|
|
2800
2902
|
* returning `false`) aborts the submission before any request is made - useful to inject/transform
|
|
2801
2903
|
* {@link FormSubmitEventArgs#parameters} or veto the submit outright.
|
|
2802
2904
|
*/
|
|
2803
|
-
declare class FormSubmitEvent extends
|
|
2905
|
+
declare class FormSubmitEvent extends CustomTypedEvent<FormSubmitEventArgs> {
|
|
2804
2906
|
constructor(args: FormSubmitEventArgs);
|
|
2805
2907
|
}
|
|
2806
2908
|
|
|
@@ -2854,7 +2956,7 @@ declare type FragmentModifierDelegate = (...args: FragmentModifierDelegateArgs)
|
|
|
2854
2956
|
/** 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
2957
|
declare type FragmentModifierDelegateArgs = [worldPositionRef: string, instanceIndexRef: string, timeRef: string, cursorRef: string, sizeRef: string];
|
|
2856
2958
|
|
|
2857
|
-
|
|
2959
|
+
declare namespace Fx {
|
|
2858
2960
|
export {
|
|
2859
2961
|
PacemFx,
|
|
2860
2962
|
PacemFxElement,
|
|
@@ -2912,7 +3014,7 @@ declare class Gaussian {
|
|
|
2912
3014
|
probability(x: number): number;
|
|
2913
3015
|
}
|
|
2914
3016
|
|
|
2915
|
-
|
|
3017
|
+
declare namespace Geometry {
|
|
2916
3018
|
export {
|
|
2917
3019
|
LinearAlgebra,
|
|
2918
3020
|
Segment,
|
|
@@ -2922,6 +3024,7 @@ export declare namespace Geometry {
|
|
|
2922
3024
|
Utils3D
|
|
2923
3025
|
}
|
|
2924
3026
|
}
|
|
3027
|
+
export { Geometry }
|
|
2925
3028
|
|
|
2926
3029
|
/**
|
|
2927
3030
|
* Resolves a `$ref` pointer (e.g. `#/definitions/Foo` or `#/components/schemas/Foo`) against an {@link ApiManifest}'s `definitions` map.
|
|
@@ -2967,7 +3070,7 @@ declare interface Group_2 extends Ui3DObject {
|
|
|
2967
3070
|
}
|
|
2968
3071
|
|
|
2969
3072
|
/** Head cell display metadata: label, description/tooltip, icon and styling. */
|
|
2970
|
-
declare type HeadCellDisplay = CellStyle &
|
|
3073
|
+
declare type HeadCellDisplay = CellStyle & Scaffolding.TooltipMetadata & {
|
|
2971
3074
|
name?: string;
|
|
2972
3075
|
description?: string;
|
|
2973
3076
|
icon?: string;
|
|
@@ -3022,6 +3125,39 @@ export declare interface Hsla {
|
|
|
3022
3125
|
a?: number;
|
|
3023
3126
|
}
|
|
3024
3127
|
|
|
3128
|
+
/**
|
|
3129
|
+
* Legacy `XMLHttpRequest`-based HTTP client, superseded by the standard `fetch` API and {@link Fetcher}.
|
|
3130
|
+
* Kept for backward compatibility.
|
|
3131
|
+
* @deprecated
|
|
3132
|
+
*/
|
|
3133
|
+
declare class Http {
|
|
3134
|
+
constructor();
|
|
3135
|
+
/** Gets or sets the Bearer authorization token. */
|
|
3136
|
+
accessToken: string;
|
|
3137
|
+
/**
|
|
3138
|
+
* Executes an asynchronous XMLHttpRequest over the net.
|
|
3139
|
+
* @param {String} url - Base url to be requested.
|
|
3140
|
+
* @param {Object} [options] - Options for the request.
|
|
3141
|
+
* @param {Object} [options.data] - Data to be sent along.
|
|
3142
|
+
* @param {String} [options.method=GET] - HTTP Verb to be used.
|
|
3143
|
+
* @param {Object} [options.headers] - Key-value pairs of strings.
|
|
3144
|
+
* @param {Function} [options.progress] - Callback on retrieval progress.
|
|
3145
|
+
*/
|
|
3146
|
+
request(url: any, options?: RequestOptions): DeferPromise<Response_2>;
|
|
3147
|
+
/**
|
|
3148
|
+
* Short-hand for 'GET' requests.
|
|
3149
|
+
*/
|
|
3150
|
+
get(url: any, data?: any, headers?: {
|
|
3151
|
+
[key: string]: string;
|
|
3152
|
+
}): DeferPromise<Response_2>;
|
|
3153
|
+
/**
|
|
3154
|
+
* Short-hand for 'POST' requests (content provided as json).
|
|
3155
|
+
*/
|
|
3156
|
+
post(url: any, data?: any, headers?: {
|
|
3157
|
+
[key: string]: string;
|
|
3158
|
+
}): DeferPromise<Response_2>;
|
|
3159
|
+
}
|
|
3160
|
+
|
|
3025
3161
|
/** HTTP verbs accepted by {@link Fetcher.method} / {@link Http}. */
|
|
3026
3162
|
declare enum HttpMethod {
|
|
3027
3163
|
Get = "GET",
|
|
@@ -3038,16 +3174,16 @@ declare enum HttpMethod {
|
|
|
3038
3174
|
/** Signature of a callback invoked when a hub method emits a value. */
|
|
3039
3175
|
declare type HubMethodCallback = (...args: any[]) => void;
|
|
3040
3176
|
|
|
3041
|
-
declare type Icon = Components_4.Maps.Icon;
|
|
3042
|
-
|
|
3043
3177
|
/** Marker icon descriptor: either a plain image `url`, or a structured icon with `anchor`/`size` and optional inline `html`. */
|
|
3044
|
-
declare type
|
|
3178
|
+
declare type Icon = {
|
|
3045
3179
|
url: string;
|
|
3046
|
-
anchor:
|
|
3047
|
-
size:
|
|
3180
|
+
anchor: Point;
|
|
3181
|
+
size: Size;
|
|
3048
3182
|
html: string | false;
|
|
3049
3183
|
};
|
|
3050
3184
|
|
|
3185
|
+
declare type Icon_2 = Components_4.Maps.Icon;
|
|
3186
|
+
|
|
3051
3187
|
/** A `UiObject` rendering a raster image. */
|
|
3052
3188
|
declare interface Image_2 extends UiObject {
|
|
3053
3189
|
src: string;
|
|
@@ -3058,7 +3194,7 @@ declare interface Image_2 extends UiObject {
|
|
|
3058
3194
|
}
|
|
3059
3195
|
|
|
3060
3196
|
/** 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
|
|
3197
|
+
declare class ImageFetchRequestEvent extends CustomTypedEvent<FetchRequestEventArgs> {
|
|
3062
3198
|
constructor(args: FetchRequestEventArgs);
|
|
3063
3199
|
}
|
|
3064
3200
|
|
|
@@ -3122,8 +3258,8 @@ export declare const INSTANCE_SCOPE_VAR = "pacem:custom-element:scope";
|
|
|
3122
3258
|
declare interface Interaction {
|
|
3123
3259
|
/** Timestamp (as returned by `performance.now()`) of the current frame. */
|
|
3124
3260
|
time: number;
|
|
3125
|
-
cursor:
|
|
3126
|
-
resolution:
|
|
3261
|
+
cursor: Point;
|
|
3262
|
+
resolution: Size;
|
|
3127
3263
|
}
|
|
3128
3264
|
|
|
3129
3265
|
/** Common contract for the interpolation strategies of this module: given an x, returns the estimated y. */
|
|
@@ -3184,7 +3320,7 @@ declare function isLineMaterial(obj: any): obj is LineMaterial;
|
|
|
3184
3320
|
declare function isMaterial(obj: any): obj is Material;
|
|
3185
3321
|
|
|
3186
3322
|
/** Type guard checking whether `object` implements the {@link Mesh} contract. */
|
|
3187
|
-
declare function isMesh(object: any): object is
|
|
3323
|
+
declare function isMesh(object: any): object is Mesh_2;
|
|
3188
3324
|
|
|
3189
3325
|
/** Type guard checking whether `object` implements the {@link MeshGeometry} contract (a {@link NodeGeometry} with triangle indices/normals/UVs). */
|
|
3190
3326
|
declare function isMeshGeometry(object: any): object is MeshGeometry;
|
|
@@ -3422,14 +3558,14 @@ declare type KnownValidatorMetadata = {
|
|
|
3422
3558
|
};
|
|
3423
3559
|
};
|
|
3424
3560
|
|
|
3425
|
-
|
|
3561
|
+
declare namespace L10n {
|
|
3426
3562
|
export {
|
|
3427
3563
|
LocalizationOptions,
|
|
3428
3564
|
Forms
|
|
3429
3565
|
}
|
|
3430
3566
|
}
|
|
3431
3567
|
|
|
3432
|
-
|
|
3568
|
+
declare namespace L10n_2 {
|
|
3433
3569
|
export {
|
|
3434
3570
|
LocalizationOptions_2 as LocalizationOptions,
|
|
3435
3571
|
DataGrids
|
|
@@ -3449,7 +3585,7 @@ declare type LabelManifest = {
|
|
|
3449
3585
|
declare class Lagrange implements Interpolator {
|
|
3450
3586
|
#private;
|
|
3451
3587
|
/** Use {@link Lagrange.create} to build an instance. */
|
|
3452
|
-
protected constructor(points:
|
|
3588
|
+
protected constructor(points: Point[]);
|
|
3453
3589
|
private _prepareBarycentric;
|
|
3454
3590
|
private _computeBarycentric;
|
|
3455
3591
|
/**
|
|
@@ -3467,12 +3603,12 @@ declare class Lagrange implements Interpolator {
|
|
|
3467
3603
|
* Builds a {@link Lagrange} interpolator from a set of points.
|
|
3468
3604
|
* @param points Points to interpolate through.
|
|
3469
3605
|
*/
|
|
3470
|
-
static create(...points:
|
|
3606
|
+
static create(...points: Point[]): Lagrange;
|
|
3471
3607
|
/**
|
|
3472
3608
|
* Builds a {@link Lagrange} interpolator from a set of points.
|
|
3473
3609
|
* @param points Points to interpolate through.
|
|
3474
3610
|
*/
|
|
3475
|
-
static create(points:
|
|
3611
|
+
static create(points: Point[]): Lagrange;
|
|
3476
3612
|
/**
|
|
3477
3613
|
* Builds a {@link Lagrange} interpolator from a set of y values, using their array index as x.
|
|
3478
3614
|
* @param values y values, implicitly located at x = 0, 1, 2, ...
|
|
@@ -3556,10 +3692,10 @@ declare class LatLngBounds {
|
|
|
3556
3692
|
}
|
|
3557
3693
|
|
|
3558
3694
|
/** {@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:
|
|
3695
|
+
declare const LatLngBoundsConverter: PropertyConverter;
|
|
3560
3696
|
|
|
3561
3697
|
/** {@link PropertyConverter} that parses a `"lat,lng"` (or JSON) attribute into a {@link LatLng}, and serializes it back to JSON. */
|
|
3562
|
-
declare const LatLngConverter:
|
|
3698
|
+
declare const LatLngConverter: PropertyConverter;
|
|
3563
3699
|
|
|
3564
3700
|
/** Map-provider configuration consumed by {@link PacemLatLngElement}'s `options` property. */
|
|
3565
3701
|
declare interface LatLngOptions {
|
|
@@ -3627,27 +3763,27 @@ declare enum LightboxBehavior {
|
|
|
3627
3763
|
ExplicitClose = "explicitClose"
|
|
3628
3764
|
}
|
|
3629
3765
|
|
|
3630
|
-
|
|
3766
|
+
declare namespace LinearAlgebra {
|
|
3631
3767
|
export {
|
|
3632
3768
|
Vector,
|
|
3633
3769
|
Point3D,
|
|
3634
|
-
|
|
3770
|
+
Vector3D_2 as Vector3D,
|
|
3635
3771
|
Spherical,
|
|
3636
|
-
|
|
3637
|
-
|
|
3772
|
+
Matrix3D,
|
|
3773
|
+
Quaternion
|
|
3638
3774
|
}
|
|
3639
3775
|
}
|
|
3640
3776
|
|
|
3641
3777
|
/** A gradient that varies linearly from `start` to `end`. */
|
|
3642
3778
|
declare interface LinearGradient extends Gradient {
|
|
3643
|
-
start:
|
|
3644
|
-
end:
|
|
3779
|
+
start: Point;
|
|
3780
|
+
end: Point;
|
|
3645
3781
|
}
|
|
3646
3782
|
|
|
3647
3783
|
/** A {@link NodeGeometry} rendered as a polyline through its {@link positions} (no faces/triangles). */
|
|
3648
3784
|
declare class LineGeometry extends NodeGeometry {
|
|
3649
3785
|
/** Gets or sets the vertex positions, in local space; reassigning this array flags the geometry as dirty. */
|
|
3650
|
-
positions:
|
|
3786
|
+
positions: Vector3D_3[];
|
|
3651
3787
|
}
|
|
3652
3788
|
|
|
3653
3789
|
/** A {@link Material} for rendering {@link PacemLineElement} polylines: stroke width, joins, caps and dash pattern. */
|
|
@@ -3746,7 +3882,15 @@ declare interface Logger {
|
|
|
3746
3882
|
log(level: LogLevel, message: string, category?: string): any;
|
|
3747
3883
|
}
|
|
3748
3884
|
|
|
3749
|
-
|
|
3885
|
+
declare namespace Logging {
|
|
3886
|
+
export {
|
|
3887
|
+
LogLevel,
|
|
3888
|
+
Logger
|
|
3889
|
+
}
|
|
3890
|
+
}
|
|
3891
|
+
export { Logging }
|
|
3892
|
+
|
|
3893
|
+
declare namespace Logging_2 {
|
|
3750
3894
|
export {
|
|
3751
3895
|
TrackingData,
|
|
3752
3896
|
Tracker,
|
|
@@ -3794,7 +3938,7 @@ declare const MapConsts: {
|
|
|
3794
3938
|
};
|
|
3795
3939
|
|
|
3796
3940
|
/** Typed `CustomEvent` dispatched by map-relevant elements/adapters, carrying a {@link MapEventArgs} payload (e.g. a click/drag position). */
|
|
3797
|
-
declare class MapEvent extends
|
|
3941
|
+
declare class MapEvent extends CustomTypedEvent<MapEventArgs> {
|
|
3798
3942
|
constructor(type: string, args?: MapEventArgs);
|
|
3799
3943
|
}
|
|
3800
3944
|
|
|
@@ -3806,9 +3950,9 @@ declare type MapEventArgs = {
|
|
|
3806
3950
|
/** Contract for forward/reverse geocoding, implemented by every {@link PacemMapAdapterElement} and consumed by {@link PacemMapGeocodeElement}. */
|
|
3807
3951
|
declare interface MapGeocoder {
|
|
3808
3952
|
/** Resolves the address(es) matching the given geographic position. */
|
|
3809
|
-
reverseGeocode(latLng: LatLng, maxResults?: number): Promise<
|
|
3953
|
+
reverseGeocode(latLng: LatLng, maxResults?: number): Promise<Address[]>;
|
|
3810
3954
|
/** Resolves the geographic position(s) matching the given free-text address. */
|
|
3811
|
-
geocode(address: string, maxResults?: number): Promise<
|
|
3955
|
+
geocode(address: string, maxResults?: number): Promise<Address[]>;
|
|
3812
3956
|
}
|
|
3813
3957
|
|
|
3814
3958
|
/** Native map instance plus the DOM container it was mounted into, as returned by a {@link PacemMapAdapterElement}'s `init` method. */
|
|
@@ -3833,7 +3977,7 @@ declare class MapProjection {
|
|
|
3833
3977
|
private _pixelSize;
|
|
3834
3978
|
private _bounds;
|
|
3835
3979
|
private _normalizedSize;
|
|
3836
|
-
constructor(_pixelSize:
|
|
3980
|
+
constructor(_pixelSize: Size, _bounds: LatLngBounds, _normalizedSize?: number);
|
|
3837
3981
|
private _latLngToWorldNormalizedPoint;
|
|
3838
3982
|
private _worldNormalizedPointToLatLng;
|
|
3839
3983
|
private _latLngToPoint;
|
|
@@ -3869,18 +4013,18 @@ declare class MapProjection {
|
|
|
3869
4013
|
* @param bounds Viewport geographic bounds.
|
|
3870
4014
|
* @param size Viewport pixel size.
|
|
3871
4015
|
*/
|
|
3872
|
-
static latLngToPoint(latLng: LatLng, bounds: LatLngBounds, size:
|
|
4016
|
+
static latLngToPoint(latLng: LatLng, bounds: LatLngBounds, size: Size): Point;
|
|
3873
4017
|
/**
|
|
3874
4018
|
* Un-projects a pixel coordinate within a viewport of the given `size` and `bounds` back to a geographic position.
|
|
3875
4019
|
* @param point Pixel coordinate to un-project.
|
|
3876
4020
|
* @param size Viewport pixel size.
|
|
3877
4021
|
* @param bounds Viewport geographic bounds.
|
|
3878
4022
|
*/
|
|
3879
|
-
static pointToLatLng(point:
|
|
4023
|
+
static pointToLatLng(point: Point, size: Size, bounds: LatLngBounds): LatLng;
|
|
3880
4024
|
}
|
|
3881
4025
|
|
|
3882
4026
|
/** 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
|
|
4027
|
+
declare abstract class MapRelevantElement extends PacemEventTarget {
|
|
3884
4028
|
/** @readonly Gets the ancestor {@link PacemMapElement} this item belongs to. */
|
|
3885
4029
|
get map(): PacemMapElement;
|
|
3886
4030
|
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
@@ -3892,25 +4036,26 @@ declare abstract class MapRelevantElement extends PacemEventTarget_2 {
|
|
|
3892
4036
|
disconnectedCallback(): void;
|
|
3893
4037
|
}
|
|
3894
4038
|
|
|
3895
|
-
|
|
4039
|
+
declare namespace Maps {
|
|
3896
4040
|
export {
|
|
3897
4041
|
StructuredAddress,
|
|
3898
|
-
|
|
4042
|
+
Address,
|
|
3899
4043
|
LatLng,
|
|
3900
4044
|
Position,
|
|
3901
4045
|
LatLngBounds,
|
|
3902
4046
|
MapProjection
|
|
3903
4047
|
}
|
|
3904
4048
|
}
|
|
4049
|
+
export { Maps }
|
|
3905
4050
|
|
|
3906
|
-
|
|
4051
|
+
declare namespace Maps_2 {
|
|
3907
4052
|
export {
|
|
3908
4053
|
isLatLng,
|
|
3909
4054
|
isLatLngBounds,
|
|
3910
4055
|
MapType,
|
|
3911
4056
|
MapColorScheme,
|
|
3912
4057
|
MapConsts,
|
|
3913
|
-
|
|
4058
|
+
Icon,
|
|
3914
4059
|
LatLngConverter,
|
|
3915
4060
|
LatLngBoundsConverter,
|
|
3916
4061
|
MapUtils,
|
|
@@ -3987,7 +4132,7 @@ declare type MapViewOptions = {
|
|
|
3987
4132
|
heading: number;
|
|
3988
4133
|
};
|
|
3989
4134
|
|
|
3990
|
-
|
|
4135
|
+
declare namespace Markdown {
|
|
3991
4136
|
export {
|
|
3992
4137
|
ExtraRule,
|
|
3993
4138
|
Parser_2 as Parser
|
|
@@ -4010,8 +4155,8 @@ declare type Marker = {
|
|
|
4010
4155
|
pathData: string;
|
|
4011
4156
|
stroke?: string;
|
|
4012
4157
|
fill?: string;
|
|
4013
|
-
viewbox?:
|
|
4014
|
-
ref?:
|
|
4158
|
+
viewbox?: Rect;
|
|
4159
|
+
ref?: Point;
|
|
4015
4160
|
width?: number;
|
|
4016
4161
|
height?: number;
|
|
4017
4162
|
};
|
|
@@ -4035,7 +4180,7 @@ declare interface Material {
|
|
|
4035
4180
|
/** Renders the faces as a wireframe (edges only) instead of solid, shaded surfaces. */
|
|
4036
4181
|
wireframe?: boolean;
|
|
4037
4182
|
/** Object color. */
|
|
4038
|
-
color?: string |
|
|
4183
|
+
color?: string | Rgba;
|
|
4039
4184
|
/** Whether the object is rendered at all. */
|
|
4040
4185
|
visible?: boolean;
|
|
4041
4186
|
/** Texture map. */
|
|
@@ -4056,7 +4201,7 @@ declare interface Material {
|
|
|
4056
4201
|
* {@link Material} (with its `shader`-specific extra properties) out of shared and shader-specific watched attributes,
|
|
4057
4202
|
* ready to be assigned to a `Pacem3DMeshElement`'s `material`/`backMaterial` property.
|
|
4058
4203
|
*/
|
|
4059
|
-
declare abstract class MaterialElement extends
|
|
4204
|
+
declare abstract class MaterialElement extends PacemEventTarget {
|
|
4060
4205
|
#private;
|
|
4061
4206
|
/** @param shader The {@link KnownShader} this element's {@link createMaterial} produces. */
|
|
4062
4207
|
constructor(shader: KnownShader);
|
|
@@ -4083,13 +4228,14 @@ declare abstract class MaterialElement extends PacemEventTarget_2 {
|
|
|
4083
4228
|
protected createMaterial(): Promise<Material>;
|
|
4084
4229
|
}
|
|
4085
4230
|
|
|
4086
|
-
|
|
4231
|
+
declare namespace Mathematics {
|
|
4087
4232
|
export {
|
|
4088
4233
|
DataAnalysis,
|
|
4089
4234
|
NumberTheory,
|
|
4090
4235
|
Complex
|
|
4091
4236
|
}
|
|
4092
4237
|
}
|
|
4238
|
+
export { Mathematics }
|
|
4093
4239
|
|
|
4094
4240
|
/** Represents the typical matrix for 2D graphics (css, svg, ...) */
|
|
4095
4241
|
export declare interface Matrix2D {
|
|
@@ -4181,14 +4327,11 @@ export declare class Matrix2D {
|
|
|
4181
4327
|
static areClose(m1: Matrix2D, m2: Matrix2D, precision?: number): boolean;
|
|
4182
4328
|
}
|
|
4183
4329
|
|
|
4184
|
-
/** A 4x4 3d transform matrix (rotation, scale, translation). */
|
|
4185
|
-
declare type Matrix3D = Geometry_2.LinearAlgebra.Matrix3D;
|
|
4186
|
-
|
|
4187
4330
|
/**
|
|
4188
4331
|
* Represents a 4x4 transformation matrix in 3D space, in row-major layout (`m{row}{col}`, with the
|
|
4189
4332
|
* 4th column split out as `offsetX`/`offsetY`/`offsetZ`/`m44` for the translation and perspective terms).
|
|
4190
4333
|
*/
|
|
4191
|
-
declare interface
|
|
4334
|
+
declare interface Matrix3D {
|
|
4192
4335
|
m11: number;
|
|
4193
4336
|
m12: number;
|
|
4194
4337
|
m13: number;
|
|
@@ -4208,51 +4351,51 @@ declare interface Matrix3D_2 {
|
|
|
4208
4351
|
}
|
|
4209
4352
|
|
|
4210
4353
|
/** Utilities to build, combine and invert 4x4 transformation matrices ({@link Matrix3D}) in 3D space. */
|
|
4211
|
-
declare class
|
|
4354
|
+
declare class Matrix3D {
|
|
4212
4355
|
/**
|
|
4213
4356
|
* Identity 4x4 matrix.
|
|
4214
4357
|
* @returns
|
|
4215
4358
|
*/
|
|
4216
|
-
static identity():
|
|
4359
|
+
static identity(): Matrix3D;
|
|
4217
4360
|
/**
|
|
4218
4361
|
* Builds a {@link Matrix3D} from its 16 components, in row-major order.
|
|
4219
4362
|
* @param args Exactly 16 numbers.
|
|
4220
4363
|
* @throws If the number of arguments is not exactly 16.
|
|
4221
4364
|
*/
|
|
4222
|
-
static from(...args: number[]):
|
|
4365
|
+
static from(...args: number[]): Matrix3D;
|
|
4223
4366
|
/**
|
|
4224
4367
|
* Returns the transpose of the given matrix (rows and columns swapped).
|
|
4225
4368
|
* @param m
|
|
4226
4369
|
*/
|
|
4227
|
-
static transpose(m:
|
|
4370
|
+
static transpose(m: Matrix3D): Matrix3D;
|
|
4228
4371
|
/**
|
|
4229
4372
|
* Flattens the matrix into a 16-number array, in row-major order (the same order accepted by {@link from}).
|
|
4230
4373
|
* @param m
|
|
4231
4374
|
*/
|
|
4232
|
-
static toArray(m:
|
|
4375
|
+
static toArray(m: Matrix3D): number[];
|
|
4233
4376
|
/**
|
|
4234
4377
|
* Returns a copy of the given matrix.
|
|
4235
4378
|
* @param m
|
|
4236
4379
|
*/
|
|
4237
|
-
static clone(m:
|
|
4380
|
+
static clone(m: Matrix3D): Matrix3D;
|
|
4238
4381
|
/**
|
|
4239
4382
|
* Returns a copy of the given matrix, after applying an in-place modification callback to it.
|
|
4240
4383
|
* @param m
|
|
4241
4384
|
* @param modifier Callback invoked on the cloned matrix to alter its content.
|
|
4242
4385
|
*/
|
|
4243
|
-
static clone(m:
|
|
4386
|
+
static clone(m: Matrix3D, modifier: (m: Matrix3D) => void): Matrix3D;
|
|
4244
4387
|
/**
|
|
4245
4388
|
* Returns a copy of the matrix scaled by the components of a vector.
|
|
4246
4389
|
* @param m
|
|
4247
4390
|
* @param v Per-axis scale factors.
|
|
4248
4391
|
*/
|
|
4249
|
-
static scale(m:
|
|
4392
|
+
static scale(m: Matrix3D, v: Vector3D_2): Matrix3D;
|
|
4250
4393
|
/**
|
|
4251
4394
|
* Returns a copy of the matrix uniformly scaled by a single factor.
|
|
4252
4395
|
* @param m
|
|
4253
4396
|
* @param scale
|
|
4254
4397
|
*/
|
|
4255
|
-
static scale(m:
|
|
4398
|
+
static scale(m: Matrix3D, scale: number): Matrix3D;
|
|
4256
4399
|
/**
|
|
4257
4400
|
* Returns a copy of the matrix scaled by independent per-axis factors.
|
|
4258
4401
|
* @param m
|
|
@@ -4260,57 +4403,60 @@ declare class Matrix3D_2 {
|
|
|
4260
4403
|
* @param sy
|
|
4261
4404
|
* @param sz
|
|
4262
4405
|
*/
|
|
4263
|
-
static scale(m:
|
|
4406
|
+
static scale(m: Matrix3D, sx: number, sy: number, sz: number): Matrix3D;
|
|
4264
4407
|
/**
|
|
4265
4408
|
* Returns a copy of the matrix translated (offset) by the given vector.
|
|
4266
4409
|
* @param m
|
|
4267
4410
|
* @param offset
|
|
4268
4411
|
*/
|
|
4269
|
-
static translate(m:
|
|
4412
|
+
static translate(m: Matrix3D, offset: Vector3D_2): Matrix3D;
|
|
4270
4413
|
/**
|
|
4271
4414
|
* Parses a string representation of a matrix (16 numbers) into a {@link Matrix3D}.
|
|
4272
4415
|
* @param input String to parse.
|
|
4273
4416
|
* @throws If the input cannot be parsed as exactly 16 numbers.
|
|
4274
4417
|
*/
|
|
4275
|
-
static parse(input: string):
|
|
4418
|
+
static parse(input: string): Matrix3D;
|
|
4276
4419
|
/**
|
|
4277
4420
|
* Checks whether the matrix is the identity matrix.
|
|
4278
4421
|
* @param m
|
|
4279
4422
|
*/
|
|
4280
|
-
static isIdentity(m:
|
|
4423
|
+
static isIdentity(m: Matrix3D): boolean;
|
|
4281
4424
|
/**
|
|
4282
4425
|
* Checks whether the matrix represents a pure affine transform, i.e. it has no perspective
|
|
4283
4426
|
* component (its 4th column is `(0, 0, 0, 1)`).
|
|
4284
4427
|
* @param m
|
|
4285
4428
|
*/
|
|
4286
|
-
static isAffine(m:
|
|
4429
|
+
static isAffine(m: Matrix3D): boolean;
|
|
4287
4430
|
/**
|
|
4288
4431
|
* Computes the determinant of the matrix.
|
|
4289
4432
|
* @param m
|
|
4290
4433
|
*/
|
|
4291
|
-
static determinant(m:
|
|
4434
|
+
static determinant(m: Matrix3D): number;
|
|
4292
4435
|
/**
|
|
4293
4436
|
* Multiplies two matrices in the provided order (i.e.: applies {@link m2} to {@link m1}).
|
|
4294
4437
|
* @param matrices Matrices to apply one to the other, sequentially.
|
|
4295
4438
|
* @returns Combination matrix.
|
|
4296
4439
|
*/
|
|
4297
|
-
static multiply(...matrices:
|
|
4440
|
+
static multiply(...matrices: Matrix3D[]): Matrix3D;
|
|
4298
4441
|
/**
|
|
4299
4442
|
* Computes the inverse of the matrix, using the cofactor/adjugate method (with a specialized,
|
|
4300
4443
|
* cheaper path for affine matrices).
|
|
4301
4444
|
* @param m
|
|
4302
4445
|
* @returns The inverse matrix, or `null` if the matrix is singular (determinant is 0).
|
|
4303
4446
|
*/
|
|
4304
|
-
static invert(m:
|
|
4447
|
+
static invert(m: Matrix3D): Matrix3D;
|
|
4305
4448
|
/**
|
|
4306
4449
|
* Moves a given point in 3D space given the transformation matrix.
|
|
4307
4450
|
* @param point
|
|
4308
4451
|
* @param matrix
|
|
4309
4452
|
*/
|
|
4310
|
-
static transform(point: Point3D, matrix:
|
|
4453
|
+
static transform(point: Point3D, matrix: Matrix3D): Point3D;
|
|
4311
4454
|
}
|
|
4312
4455
|
|
|
4313
|
-
|
|
4456
|
+
/** A 4x4 3d transform matrix (rotation, scale, translation). */
|
|
4457
|
+
declare type Matrix3D_2 = Geometry.LinearAlgebra.Matrix3D;
|
|
4458
|
+
|
|
4459
|
+
declare namespace Media {
|
|
4314
4460
|
export {
|
|
4315
4461
|
PacemAudioElement,
|
|
4316
4462
|
PacemMediaRecorderElement
|
|
@@ -4341,8 +4487,12 @@ declare const MEDIAQUERY_XL = "(min-width: 1824px)";
|
|
|
4341
4487
|
|
|
4342
4488
|
declare const MEDIAQUERY_XS = "(max-width: 767px)";
|
|
4343
4489
|
|
|
4490
|
+
declare interface Mesh extends Polygon {
|
|
4491
|
+
triangleIndices: number[];
|
|
4492
|
+
}
|
|
4493
|
+
|
|
4344
4494
|
/** 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
|
|
4495
|
+
declare interface Mesh_2 extends Ui3DObject {
|
|
4346
4496
|
/** Gets or sets the vertex/index data defining the mesh's shape. */
|
|
4347
4497
|
geometry: NodeGeometry;
|
|
4348
4498
|
/** Gets or sets the material applied to front-facing faces. */
|
|
@@ -4351,10 +4501,6 @@ declare interface Mesh extends Ui3DObject {
|
|
|
4351
4501
|
backMaterial?: Material;
|
|
4352
4502
|
}
|
|
4353
4503
|
|
|
4354
|
-
declare interface Mesh_2 extends Polygon {
|
|
4355
|
-
triangleIndices: number[];
|
|
4356
|
-
}
|
|
4357
|
-
|
|
4358
4504
|
/** A {@link NodeGeometry} for triangulated surfaces: adds triangle vertex indices, per-vertex UV texture coordinates and normals. */
|
|
4359
4505
|
declare interface MeshGeometry extends NodeGeometry {
|
|
4360
4506
|
/** Gets or sets the vertex indices forming the mesh's triangles (each consecutive triplet is one face). */
|
|
@@ -4362,33 +4508,49 @@ declare interface MeshGeometry extends NodeGeometry {
|
|
|
4362
4508
|
/** Gets or sets the per-vertex texture (u, v) coordinates. */
|
|
4363
4509
|
textureCoordinates: UVMap;
|
|
4364
4510
|
/** Gets or sets the per-vertex normals, used for lighting. */
|
|
4365
|
-
normals:
|
|
4511
|
+
normals: Vector3D_3[];
|
|
4366
4512
|
}
|
|
4367
4513
|
|
|
4368
4514
|
/** A {@link MeshGeometry} implementation with lazily-computed {@link barycenter}/{@link boundingBox} and settable {@link boundingSphere}, used as the `geometry` of a {@link Pacem3DMeshElement}. */
|
|
4369
4515
|
declare class MeshGeometry extends NodeGeometry {
|
|
4370
4516
|
#private;
|
|
4371
4517
|
/** Gets or sets the centroid of {@link positions}; computed on first access if not explicitly set. */
|
|
4372
|
-
get barycenter():
|
|
4373
|
-
set barycenter(point:
|
|
4518
|
+
get barycenter(): Vector3D_3;
|
|
4519
|
+
set barycenter(point: Vector3D_3);
|
|
4374
4520
|
/** Gets or sets the axis-aligned bounding box; computed from {@link positions} on first access if not explicitly set. */
|
|
4375
4521
|
get boundingBox(): Box3D;
|
|
4376
4522
|
set boundingBox(bbox: Box3D);
|
|
4377
4523
|
/** Gets or sets the bounding sphere. */
|
|
4378
4524
|
get boundingSphere(): Sphere3D;
|
|
4379
4525
|
set boundingSphere(sphere: Sphere3D);
|
|
4380
|
-
constructor(positions:
|
|
4526
|
+
constructor(positions: Vector3D_3[], triangleIndices: number[], textureCoordinates?: UVMap, normals?: Vector3D_3[]);
|
|
4381
4527
|
/** Gets or sets the vertex positions, in local space; reassigning this array flags the geometry as dirty. */
|
|
4382
|
-
positions:
|
|
4528
|
+
positions: Vector3D_3[];
|
|
4383
4529
|
/** Gets or sets the vertex indices forming the mesh's triangles; reassigning this array flags the geometry as dirty. */
|
|
4384
4530
|
triangleIndices: number[];
|
|
4385
4531
|
/** Gets or sets the per-vertex texture (u, v) coordinates; reassigning this array flags the geometry as dirty. */
|
|
4386
4532
|
textureCoordinates: UVMap;
|
|
4387
4533
|
/** Gets or sets the per-vertex normals; reassigning this array flags the geometry as dirty. */
|
|
4388
|
-
normals:
|
|
4534
|
+
normals: Vector3D_3[];
|
|
4389
4535
|
}
|
|
4390
4536
|
|
|
4391
|
-
|
|
4537
|
+
declare namespace Net {
|
|
4538
|
+
export {
|
|
4539
|
+
HttpMethod,
|
|
4540
|
+
Fetcher,
|
|
4541
|
+
OAuthFetchable,
|
|
4542
|
+
FetchResultEventName,
|
|
4543
|
+
FetchErrorEventName,
|
|
4544
|
+
FetchSuccessEventName,
|
|
4545
|
+
StatusCodeError,
|
|
4546
|
+
Response_2 as Response,
|
|
4547
|
+
RequestOptions,
|
|
4548
|
+
Http
|
|
4549
|
+
}
|
|
4550
|
+
}
|
|
4551
|
+
export { Net }
|
|
4552
|
+
|
|
4553
|
+
declare namespace Networking {
|
|
4392
4554
|
export {
|
|
4393
4555
|
PacemHubListenerElement,
|
|
4394
4556
|
HubMethodCallback,
|
|
@@ -4424,12 +4586,12 @@ declare class Newton implements Interpolator {
|
|
|
4424
4586
|
* Builds a {@link Newton} interpolator from a set of points.
|
|
4425
4587
|
* @param points Points to interpolate through.
|
|
4426
4588
|
*/
|
|
4427
|
-
static create(...points:
|
|
4589
|
+
static create(...points: Point[]): Newton;
|
|
4428
4590
|
/**
|
|
4429
4591
|
* Builds a {@link Newton} interpolator from a set of points.
|
|
4430
4592
|
* @param points Points to interpolate through.
|
|
4431
4593
|
*/
|
|
4432
|
-
static create(points:
|
|
4594
|
+
static create(points: Point[]): Newton;
|
|
4433
4595
|
/**
|
|
4434
4596
|
* Builds a {@link Newton} interpolator from a set of y values, using their array index as x.
|
|
4435
4597
|
* @param values y values, implicitly located at x = 0, 1, 2, ...
|
|
@@ -4440,11 +4602,11 @@ declare class Newton implements Interpolator {
|
|
|
4440
4602
|
/** Vertex data contract shared by all geometry kinds ({@link LineGeometry}, {@link MeshGeometry}): a set of positions plus their derived bounding volumes. */
|
|
4441
4603
|
declare interface NodeGeometry {
|
|
4442
4604
|
/** Gets or sets the vertex positions, in local space. */
|
|
4443
|
-
positions:
|
|
4605
|
+
positions: Vector3D_3[];
|
|
4444
4606
|
/** Gets or sets the axis-aligned bounding box, computed from {@link positions} when unset. */
|
|
4445
4607
|
boundingBox?: Box3D;
|
|
4446
4608
|
/** Gets or sets the centroid of {@link positions}, computed on demand when unset. */
|
|
4447
|
-
barycenter?:
|
|
4609
|
+
barycenter?: Vector3D_3;
|
|
4448
4610
|
/** Gets or sets the bounding sphere. */
|
|
4449
4611
|
boundingSphere?: Sphere3D;
|
|
4450
4612
|
/** Gets the list of {@link StalePropertyFlag}s accumulated since the geometry was last consumed by the adapter/renderer. */
|
|
@@ -4458,11 +4620,11 @@ declare interface NodeGeometry {
|
|
|
4458
4620
|
* {@link Pacem3DMeshElement}'s `geometry` property, providing shared bounding-volume computation helpers.
|
|
4459
4621
|
*/
|
|
4460
4622
|
declare abstract class NodeGeometry {
|
|
4461
|
-
constructor(positions?:
|
|
4623
|
+
constructor(positions?: Vector3D_3[]);
|
|
4462
4624
|
/** Computes the centroid (average) of the given positions. */
|
|
4463
|
-
static barycenter(positions:
|
|
4625
|
+
static barycenter(positions: Vector3D_3[]): Vector3D_3;
|
|
4464
4626
|
/** Computes the axis-aligned {@link Box3D} enclosing the given positions. */
|
|
4465
|
-
static boundingBox(positions:
|
|
4627
|
+
static boundingBox(positions: Vector3D_3[]): Box3D;
|
|
4466
4628
|
/** Marks the geometry as stale, flagging it with {@link StalePropertyFlag.Geometry} for the next render. */
|
|
4467
4629
|
protected setAsDirty(): void;
|
|
4468
4630
|
}
|
|
@@ -4526,7 +4688,7 @@ export declare class Numbers {
|
|
|
4526
4688
|
static rebase(v: number | string, from: number, to: number): string;
|
|
4527
4689
|
}
|
|
4528
4690
|
|
|
4529
|
-
|
|
4691
|
+
declare namespace NumberTheory {
|
|
4530
4692
|
export {
|
|
4531
4693
|
Utils_4 as Utils
|
|
4532
4694
|
}
|
|
@@ -4534,6 +4696,18 @@ export declare namespace NumberTheory {
|
|
|
4534
4696
|
|
|
4535
4697
|
declare type NumericKeySelector<T> = (item: T, index?: number) => number;
|
|
4536
4698
|
|
|
4699
|
+
/** Implemented by an element that augments a {@link Fetcher} with OAuth-flavored credentials/headers to attach to its requests. */
|
|
4700
|
+
declare interface OAuthFetchable {
|
|
4701
|
+
/** The {@link Fetcher} this OAuth configuration applies to, if resolved. */
|
|
4702
|
+
readonly fetcher?: Fetcher;
|
|
4703
|
+
/** `RequestInit.credentials` mode to use for the fetch (e.g. `'include'`). */
|
|
4704
|
+
fetchCredentials: RequestCredentials;
|
|
4705
|
+
/** Extra headers (typically an `Authorization` bearer token) to merge into the request. */
|
|
4706
|
+
fetchHeaders: {
|
|
4707
|
+
[key: string]: string;
|
|
4708
|
+
};
|
|
4709
|
+
}
|
|
4710
|
+
|
|
4537
4711
|
/** Implemented by elements that need to react to the standard Custom Elements `adoptedCallback` lifecycle hook. */
|
|
4538
4712
|
export declare interface OnAdopted {
|
|
4539
4713
|
adoptedCallback(): void;
|
|
@@ -4572,7 +4746,7 @@ export declare interface OnViewActivated {
|
|
|
4572
4746
|
viewActivatedCallback(): void;
|
|
4573
4747
|
}
|
|
4574
4748
|
|
|
4575
|
-
|
|
4749
|
+
declare namespace OpenApi {
|
|
4576
4750
|
export {
|
|
4577
4751
|
OpenApiParser,
|
|
4578
4752
|
OpenApi3Schema,
|
|
@@ -4766,7 +4940,7 @@ declare type OrbitCameraConfiguration = {
|
|
|
4766
4940
|
declare type OrbitCameraControl = {
|
|
4767
4941
|
enabled: boolean;
|
|
4768
4942
|
button?: number;
|
|
4769
|
-
modifiers?:
|
|
4943
|
+
modifiers?: EventKeyModifier[];
|
|
4770
4944
|
};
|
|
4771
4945
|
|
|
4772
4946
|
/** A {@link Camera} that projects the scene with a fixed, non-diminishing frustum (parallel projection), as produced by {@link Pacem3DOrthographicCameraElement}. */
|
|
@@ -4798,7 +4972,7 @@ export declare const P: any;
|
|
|
4798
4972
|
* adapters are responsible for initializing/disposing the underlying DOM surface, sizing it, drawing the
|
|
4799
4973
|
* scene graph, hit-testing and producing snapshot images.
|
|
4800
4974
|
*/
|
|
4801
|
-
declare abstract class Pacem2DAdapterElement extends
|
|
4975
|
+
declare abstract class Pacem2DAdapterElement extends PacemEventTarget {
|
|
4802
4976
|
/** Fallback stroke/fill/lineWidth values used when a shape doesn't provide its own. */
|
|
4803
4977
|
protected DefaultShapeValues: {
|
|
4804
4978
|
stroke: string;
|
|
@@ -4809,13 +4983,13 @@ declare abstract class Pacem2DAdapterElement extends PacemEventTarget_2 {
|
|
|
4809
4983
|
* Returns the transform matrix that projects page coords into stage coords.
|
|
4810
4984
|
* @param scene {Pacem2DElement} Container for the stage/scene
|
|
4811
4985
|
*/
|
|
4812
|
-
abstract getTransformMatrix(scene: Pacem2DElement):
|
|
4986
|
+
abstract getTransformMatrix(scene: Pacem2DElement): Matrix2D;
|
|
4813
4987
|
/**
|
|
4814
4988
|
* Updates the stage with the new size.
|
|
4815
4989
|
* @param scene {Pacem2DElement} Container for the stage/scene
|
|
4816
4990
|
* @param size {Size} New size
|
|
4817
4991
|
*/
|
|
4818
|
-
abstract invalidateSize(scene: Pacem2DElement, size:
|
|
4992
|
+
abstract invalidateSize(scene: Pacem2DElement, size: Size): any;
|
|
4819
4993
|
/**
|
|
4820
4994
|
* Initializes the 2d scene and returns its corresponding DOM element.
|
|
4821
4995
|
* @param scene {Pacem2DElement} Container for the stage/scene
|
|
@@ -4865,13 +5039,13 @@ declare class Pacem2DElement extends Components_2.PacemItemsContainerElement<Dra
|
|
|
4865
5039
|
/** Processes the stage content and returns a snapshot image (delegates to the current `adapter`). */
|
|
4866
5040
|
snapshot(bgColor?: string, type?: string, quality?: number): Promise<any> | PromiseLike<Blob>;
|
|
4867
5041
|
/** @readonly Gets the matrix that projects stage coords into screen coords. */
|
|
4868
|
-
get transformMatrix():
|
|
5042
|
+
get transformMatrix(): Matrix2D;
|
|
4869
5043
|
private _transformMatrixScale;
|
|
4870
5044
|
validate(item: DrawableElement): boolean;
|
|
4871
5045
|
/** Gets or sets the rendering adapter (e.g. `pacem-2d-svg-adapter`) in charge of drawing the stage content. */
|
|
4872
5046
|
adapter: Pacem2DAdapterElement;
|
|
4873
5047
|
/** Gets or sets the visible portion of the stage, in stage coordinates. */
|
|
4874
|
-
viewbox:
|
|
5048
|
+
viewbox: Rect;
|
|
4875
5049
|
/** Gets or sets how the viewbox is mapped onto the stage's viewport (mirrors SVG's `preserveAspectRatio`). */
|
|
4876
5050
|
aspectRatio: ViewBoxAspectRatio;
|
|
4877
5051
|
/** Gets or sets the drawable items to render, alternative to declaring them as child elements. */
|
|
@@ -4910,11 +5084,11 @@ declare class Pacem2DElement extends Components_2.PacemItemsContainerElement<Dra
|
|
|
4910
5084
|
* responsible for initializing/disposing the underlying native scene and DOM surface, sizing it, translating the
|
|
4911
5085
|
* {@link RenderableElement} scene graph into native objects, hit-testing (raycasting) and producing snapshot images.
|
|
4912
5086
|
*/
|
|
4913
|
-
declare abstract class Pacem3DAdapterElement extends
|
|
5087
|
+
declare abstract class Pacem3DAdapterElement extends PacemEventTarget {
|
|
4914
5088
|
/**
|
|
4915
5089
|
* When implemented in a derived class, resizes the stage.
|
|
4916
5090
|
*/
|
|
4917
|
-
abstract invalidateSize(scene: Pacem3DElement, size:
|
|
5091
|
+
abstract invalidateSize(scene: Pacem3DElement, size: Size): void;
|
|
4918
5092
|
/**
|
|
4919
5093
|
* Initializes the 3d scene and returns its corresponding DOM element.
|
|
4920
5094
|
* @param scene {Pacem3DElement} Container for the stage/scene
|
|
@@ -4932,7 +5106,7 @@ declare abstract class Pacem3DAdapterElement extends PacemEventTarget_2 {
|
|
|
4932
5106
|
* When implemented in a derived class, retrieves the element casting the ray through the provided point (if any).
|
|
4933
5107
|
* @param point {Object} 2D to check.
|
|
4934
5108
|
*/
|
|
4935
|
-
abstract raycast(scene: Pacem3DElement, point:
|
|
5109
|
+
abstract raycast(scene: Pacem3DElement, point: Point, size: Size, callback: (result: RaycastResult) => void): void;
|
|
4936
5110
|
/**
|
|
4937
5111
|
* When implemented in a derived class, adds a 3d element.
|
|
4938
5112
|
* @param item {Pacem3DObject} item to be added
|
|
@@ -4958,7 +5132,7 @@ declare abstract class Pacem3DAdapterElement extends PacemEventTarget_2 {
|
|
|
4958
5132
|
* When implemented in a derived class, projects a 3d world-space point onto the 2d viewport (screen) coordinates.
|
|
4959
5133
|
* @param point3D Point in 3d world space.
|
|
4960
5134
|
*/
|
|
4961
|
-
abstract project(scene: Pacem3DElement, point3D: Vector3D):
|
|
5135
|
+
abstract project(scene: Pacem3DElement, point3D: Vector3D): Point;
|
|
4962
5136
|
/** Gets the native scene instance */
|
|
4963
5137
|
abstract getScene(scene: Pacem3DElement): any;
|
|
4964
5138
|
/**
|
|
@@ -5050,7 +5224,7 @@ declare class Pacem3DElement extends Components_2.PacemItemsContainerElement<Ren
|
|
|
5050
5224
|
private _moveHandler;
|
|
5051
5225
|
disconnectedCallback(): void;
|
|
5052
5226
|
/** @readonly Gets the current viewport size, as last reported by the internal resize observer. */
|
|
5053
|
-
get size():
|
|
5227
|
+
get size(): Size;
|
|
5054
5228
|
private _resizeHandler;
|
|
5055
5229
|
/** Renders the whole scene through the active {@link adapter}, or just updates the given `item` if provided. */
|
|
5056
5230
|
render(item?: Renderable, deepUpdate?: boolean, now?: number): void;
|
|
@@ -5082,7 +5256,7 @@ declare class Pacem3DLightElement extends RenderableElement implements Light {
|
|
|
5082
5256
|
}
|
|
5083
5257
|
|
|
5084
5258
|
/** `<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
|
|
5259
|
+
declare class Pacem3DMeshElement extends Ui3DElement implements Mesh_2 {
|
|
5086
5260
|
/** Gets or sets the vertex/index data defining the mesh's shape. */
|
|
5087
5261
|
geometry: NodeGeometry;
|
|
5088
5262
|
/** Gets or sets the material applied to front-facing faces. */
|
|
@@ -5135,7 +5309,7 @@ declare class Pacem3DPerspectiveCameraElement extends Pacem3DCameraElement imple
|
|
|
5135
5309
|
* {@link PacemTorusElement} and the {@link PolyhedronElement} family — that compute a {@link NodeGeometry} out of their
|
|
5136
5310
|
* own shape parameters, ready to be assigned to a `Pacem3DMeshElement`'s `geometry` property.
|
|
5137
5311
|
*/
|
|
5138
|
-
declare abstract class Pacem3DPrimitiveElement extends
|
|
5312
|
+
declare abstract class Pacem3DPrimitiveElement extends PacemEventTarget {
|
|
5139
5313
|
/** Gets or sets the computed vertex/index data describing the primitive's shape. */
|
|
5140
5314
|
geometry: NodeGeometry;
|
|
5141
5315
|
viewActivatedCallback(): void;
|
|
@@ -5153,7 +5327,7 @@ declare class Pacem3DThreeAdapterElement extends Pacem3DAdapterElement {
|
|
|
5153
5327
|
private _assertMonoStage;
|
|
5154
5328
|
dispose(scene: Pacem3DElement): void;
|
|
5155
5329
|
snapshot(scene: Pacem3DElement, background?: string, type?: string, quality?: number): PromiseLike<Blob>;
|
|
5156
|
-
project(scene: Pacem3DElement, point3D: Vector3D):
|
|
5330
|
+
project(scene: Pacem3DElement, point3D: Vector3D): Point;
|
|
5157
5331
|
zoomFit(scene: Pacem3DElement, ...items: Ui3DObject[]): Promise<void>;
|
|
5158
5332
|
private _3d;
|
|
5159
5333
|
private _stage;
|
|
@@ -5166,7 +5340,7 @@ declare class Pacem3DThreeAdapterElement extends Pacem3DAdapterElement {
|
|
|
5166
5340
|
/** Gets or sets whether mouse-driven orbit controls (`THREE.OrbitControls`) are attached to the active camera. */
|
|
5167
5341
|
orbit: boolean;
|
|
5168
5342
|
getScene(scene: Pacem3DElement): any;
|
|
5169
|
-
raycast(scene: Pacem3DElement, point:
|
|
5343
|
+
raycast(scene: Pacem3DElement, point: Point, size: Size, callback: (result: RaycastResult) => void): void;
|
|
5170
5344
|
initialize(container: Pacem3DElement): Promise<HTMLCanvasElement>;
|
|
5171
5345
|
private _setCamera;
|
|
5172
5346
|
private _orbitControlsDelegate;
|
|
@@ -5174,7 +5348,7 @@ declare class Pacem3DThreeAdapterElement extends Pacem3DAdapterElement {
|
|
|
5174
5348
|
private _initOrbitControls;
|
|
5175
5349
|
private _disposeOrbitControls;
|
|
5176
5350
|
private _updateRenderer;
|
|
5177
|
-
invalidateSize(scene: Pacem3DElement, size?:
|
|
5351
|
+
invalidateSize(scene: Pacem3DElement, size?: Size): void;
|
|
5178
5352
|
removeItem(scene: Pacem3DElement, item: RenderableElement): void;
|
|
5179
5353
|
updateItem(scene: Pacem3DElement, item: RenderableElement): void;
|
|
5180
5354
|
addItem(scene: Pacem3DElement, item: RenderableElement): void;
|
|
@@ -5189,9 +5363,9 @@ declare class Pacem3DThreeAdapterElement extends Pacem3DAdapterElement {
|
|
|
5189
5363
|
* shader customizations (via {@link modifiers}), and falls back gracefully (see {@link supported}/{@link active})
|
|
5190
5364
|
* when WebGPU isn't available.
|
|
5191
5365
|
*/
|
|
5192
|
-
declare class Pacem3DWebgpuAdapterElement extends Pacem3DAdapterElement implements
|
|
5366
|
+
declare class Pacem3DWebgpuAdapterElement extends Pacem3DAdapterElement implements ItemsContainer<Pacem3DWgslScriptElement> {
|
|
5193
5367
|
#private;
|
|
5194
|
-
invalidateSize(stage: Pacem3DElement, size?:
|
|
5368
|
+
invalidateSize(stage: Pacem3DElement, size?: Size): void;
|
|
5195
5369
|
/** @readonly Gets the child {@link Pacem3DWgslScriptElement} shader-customization items currently registered. */
|
|
5196
5370
|
get items(): Pacem3DWgslScriptElement[];
|
|
5197
5371
|
/** Registers a child {@link Pacem3DWgslScriptElement}, re-parsing the WGSL {@link modifiers} it contributes. */
|
|
@@ -5222,21 +5396,21 @@ declare class Pacem3DWebgpuAdapterElement extends Pacem3DAdapterElement implemen
|
|
|
5222
5396
|
*/
|
|
5223
5397
|
render(scene: Pacem3DElement): void;
|
|
5224
5398
|
snapshot(scene: Pacem3DElement, background?: string, type?: string, quality?: number): PromiseLike<Blob>;
|
|
5225
|
-
raycast(stage: Pacem3DElement, point:
|
|
5399
|
+
raycast(stage: Pacem3DElement, point: Point, size: Size, callback: (result: RaycastResult) => void): void;
|
|
5226
5400
|
private _itemsChangedExec;
|
|
5227
5401
|
private _itemsChanged;
|
|
5228
5402
|
addItem(stage: Pacem3DElement, item: Renderable): void;
|
|
5229
5403
|
removeItem(stage: Pacem3DElement, item: Renderable): void;
|
|
5230
5404
|
updateItem(stage: Pacem3DElement, item?: Renderable): void;
|
|
5231
5405
|
zoomFit(stage: Pacem3DElement, ...items: Ui3DObject[]): Promise<void>;
|
|
5232
|
-
project(stage: Pacem3DElement, point3D:
|
|
5406
|
+
project(stage: Pacem3DElement, point3D: Geometry.LinearAlgebra.Vector3D): Point;
|
|
5233
5407
|
getScene(stage: Pacem3DElement): any;
|
|
5234
5408
|
}
|
|
5235
5409
|
|
|
5236
5410
|
/** `<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
5411
|
declare class Pacem3DWgslScriptElement extends Components_2.PacemItemElement {
|
|
5238
5412
|
#private;
|
|
5239
|
-
protected findContainer():
|
|
5413
|
+
protected findContainer(): ItemsContainer<Pacem3DWgslScriptElement>;
|
|
5240
5414
|
/** @readonly Gets a hash of the current {@link wgsl} content, changing whenever it does. */
|
|
5241
5415
|
get version(): string;
|
|
5242
5416
|
/** Gets or sets which pipeline stage this WGSL snippet modifies (e.g. `"vertex-input"`, `"vertex-output"`, `"fragment"`). */
|
|
@@ -5467,7 +5641,7 @@ declare class PacemAsyncValidatorElement extends PacemBaseValidatorElement imple
|
|
|
5467
5641
|
}
|
|
5468
5642
|
|
|
5469
5643
|
/** Wraps a native `HTMLAudioElement`, exposing playback control and its readiness/lifecycle as reactive properties and events. */
|
|
5470
|
-
declare class PacemAudioElement extends
|
|
5644
|
+
declare class PacemAudioElement extends PacemEventTarget {
|
|
5471
5645
|
#private;
|
|
5472
5646
|
/** Gets or sets the media source URL for the underlying `<audio>` element. */
|
|
5473
5647
|
src: string;
|
|
@@ -5499,8 +5673,8 @@ declare class PacemAudioElement extends PacemEventTarget_2 {
|
|
|
5499
5673
|
/** `<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
5674
|
declare class PacemAzureMapAdapterElement extends PacemMapAdapterElement {
|
|
5501
5675
|
#private;
|
|
5502
|
-
geocode(address: string, maxResults?: number): Promise<
|
|
5503
|
-
reverseGeocode(latLng: LatLng | [number, number], maxResults?: number): Promise<
|
|
5676
|
+
geocode(address: string, maxResults?: number): Promise<Address[]>;
|
|
5677
|
+
reverseGeocode(latLng: LatLng | [number, number], maxResults?: number): Promise<Address[]>;
|
|
5504
5678
|
protected getBounds(ctrl: PacemMapElement): LatLngBounds;
|
|
5505
5679
|
protected isActive(): boolean;
|
|
5506
5680
|
protected buildOverlayAdapterFor(map: PacemMapElement): OverlayAdapter;
|
|
@@ -6147,10 +6321,10 @@ declare class PacemCanvasAdapterElement extends Pacem2DAdapterElement {
|
|
|
6147
6321
|
snapshot(stage: Pacem2DElement, backgroundColor?: string, type?: string, quality?: number): PromiseLike<Blob>;
|
|
6148
6322
|
getCanvas(stage: Pacem2DElement): HTMLCanvasElement;
|
|
6149
6323
|
private _getScreenInverseMatrix;
|
|
6150
|
-
getTransformMatrix(scene: Pacem2DElement):
|
|
6324
|
+
getTransformMatrix(scene: Pacem2DElement): Matrix2D;
|
|
6151
6325
|
viewActivatedCallback(): void;
|
|
6152
6326
|
disconnectedCallback(): void;
|
|
6153
|
-
invalidateSize(scene: Pacem2DElement, size:
|
|
6327
|
+
invalidateSize(scene: Pacem2DElement, size: Size): void;
|
|
6154
6328
|
getHitTarget(stage: Pacem2DElement): Drawable;
|
|
6155
6329
|
initialize(scene: Pacem2DElement): HTMLElement | SVGElement;
|
|
6156
6330
|
dispose(scene: Pacem2DElement): void;
|
|
@@ -6357,7 +6531,7 @@ declare class PacemChildFormElement extends PacemBaseElement implements Net.OAut
|
|
|
6357
6531
|
}
|
|
6358
6532
|
|
|
6359
6533
|
/** For internal use ONLY! */
|
|
6360
|
-
declare class PacemChildFormPropagatorElement extends
|
|
6534
|
+
declare class PacemChildFormPropagatorElement extends PacemEventTarget {
|
|
6361
6535
|
model: any;
|
|
6362
6536
|
/** Entity property replicated on @see model. */
|
|
6363
6537
|
property: string;
|
|
@@ -6370,7 +6544,7 @@ declare class PacemChildFormPropagatorElement extends PacemEventTarget_2 {
|
|
|
6370
6544
|
/** `<pacem-2d-circle>`: renders a full circle, or a pie-slice sector when `start`/`end` are set. */
|
|
6371
6545
|
declare class PacemCircleElement extends ShapeElement {
|
|
6372
6546
|
/** Gets or sets the center point. */
|
|
6373
|
-
center:
|
|
6547
|
+
center: Point;
|
|
6374
6548
|
/** Gets or sets the radius. */
|
|
6375
6549
|
radius: number;
|
|
6376
6550
|
/** Gets or sets the sector start angle, in degrees (full circle when `start`/`end` describe a full turn). */
|
|
@@ -6388,7 +6562,7 @@ declare class PacemCircleElement extends ShapeElement {
|
|
|
6388
6562
|
* @param start Sector start angle, in degrees.
|
|
6389
6563
|
* @param end Sector end angle, in degrees.
|
|
6390
6564
|
*/
|
|
6391
|
-
static getPathData(c?:
|
|
6565
|
+
static getPathData(c?: Point, r?: number, start?: number, end?: number): string;
|
|
6392
6566
|
}
|
|
6393
6567
|
|
|
6394
6568
|
/** Displays (and CSS-classes itself by) the current hour/minute; typically overlaid on a {@link PacemAgendaElement} to mark the current-time line. */
|
|
@@ -6398,7 +6572,7 @@ declare class PacemClockElement extends Components_2.PacemElement {
|
|
|
6398
6572
|
}
|
|
6399
6573
|
|
|
6400
6574
|
/** 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
|
|
6575
|
+
declare class PacemCollapseElement extends PacemEventTarget {
|
|
6402
6576
|
#private;
|
|
6403
6577
|
/** Gets or sets whether the content is collapsed (hidden, size 0) or expanded. */
|
|
6404
6578
|
collapse: boolean;
|
|
@@ -6491,7 +6665,7 @@ declare class PacemConeElement extends Pacem3DPrimitiveElement {
|
|
|
6491
6665
|
}
|
|
6492
6666
|
|
|
6493
6667
|
/** A {@link Logging.Logger} implementation that forwards enabled log levels to the browser's `console`. */
|
|
6494
|
-
declare class PacemConsoleElement extends
|
|
6668
|
+
declare class PacemConsoleElement extends PacemEventTarget implements Logging.Logger {
|
|
6495
6669
|
private _category;
|
|
6496
6670
|
private _config;
|
|
6497
6671
|
/** Gets or sets which log levels are forwarded to the console (`error`, `info` and `warn` are enabled by default). */
|
|
@@ -6503,7 +6677,7 @@ declare class PacemConsoleElement extends PacemEventTarget_2 implements Logging_
|
|
|
6503
6677
|
* @param message Content to log.
|
|
6504
6678
|
* @param category Optional grouping category (rendered as a `console.group`).
|
|
6505
6679
|
*/
|
|
6506
|
-
log(level:
|
|
6680
|
+
log(level: Logging.LogLevel, message: string, category?: string): void;
|
|
6507
6681
|
private _log;
|
|
6508
6682
|
}
|
|
6509
6683
|
|
|
@@ -6557,7 +6731,7 @@ declare class PacemContenteditableElement extends PacemItemsContainerBaseElement
|
|
|
6557
6731
|
#private;
|
|
6558
6732
|
constructor();
|
|
6559
6733
|
/** @readonly Gets the undo/redo history service tracking this editor's HTML content. */
|
|
6560
|
-
get history():
|
|
6734
|
+
get history(): HistoryService<string>;
|
|
6561
6735
|
reset(): void;
|
|
6562
6736
|
private _fireHistoryChange;
|
|
6563
6737
|
protected convertValueAttributeToProperty(attr: string): string;
|
|
@@ -7234,7 +7408,7 @@ declare class PacemDragDropElement extends PacemBehavior implements DragDropper
|
|
|
7234
7408
|
* once confirmed. The dialog and its editors (textarea/contenteditable/edit-image) are created once, lazily,
|
|
7235
7409
|
* on connect, and shown/hidden according to `type` rather than being recreated on every edit.
|
|
7236
7410
|
*/
|
|
7237
|
-
declare class PacemEditElement extends Components_2.PacemElement implements
|
|
7411
|
+
declare class PacemEditElement extends Components_2.PacemElement implements OnPropertyChanged, OnConnected, OnViewActivated, OnDisconnected {
|
|
7238
7412
|
private _markdown;
|
|
7239
7413
|
constructor(_markdown?: Components_3.UI.MarkdownService);
|
|
7240
7414
|
private _button;
|
|
@@ -7383,7 +7557,7 @@ declare class PacemElementProxyElement extends PacemTransferProxyElement {
|
|
|
7383
7557
|
/** `<pacem-2d-ellipse>`: renders a full ellipse, or a pie-slice sector when `start`/`end` are set. */
|
|
7384
7558
|
declare class PacemEllipseElement extends ShapeElement {
|
|
7385
7559
|
/** Gets or sets the center point. */
|
|
7386
|
-
center:
|
|
7560
|
+
center: Point;
|
|
7387
7561
|
/** Gets or sets the horizontal radius. */
|
|
7388
7562
|
rx: number;
|
|
7389
7563
|
/** Gets or sets the vertical radius. */
|
|
@@ -7404,7 +7578,7 @@ declare class PacemEllipseElement extends ShapeElement {
|
|
|
7404
7578
|
* @param start Sector start angle, in degrees.
|
|
7405
7579
|
* @param end Sector end angle, in degrees.
|
|
7406
7580
|
*/
|
|
7407
|
-
static getPathData(c?:
|
|
7581
|
+
static getPathData(c?: Point, rx?: number, ry?: number, start?: number, end?: number): string;
|
|
7408
7582
|
}
|
|
7409
7583
|
|
|
7410
7584
|
/** {@link PacemTextualInputElement} for an `<input type="email">`, whose read-only view renders as a `mailto:` link. */
|
|
@@ -7769,7 +7943,7 @@ declare interface PacemFx {
|
|
|
7769
7943
|
}
|
|
7770
7944
|
|
|
7771
7945
|
/** Base class for `fx` (visual-effect) custom elements: provides the `target` element the effect operates on. */
|
|
7772
|
-
declare abstract class PacemFxElement extends
|
|
7946
|
+
declare abstract class PacemFxElement extends PacemEventTarget implements PacemFx {
|
|
7773
7947
|
/** Gets or sets the element the visual effect is applied to. */
|
|
7774
7948
|
target: HTMLElement;
|
|
7775
7949
|
}
|
|
@@ -7852,9 +8026,9 @@ declare class PacemFxHeroElement extends PacemFxElement {
|
|
|
7852
8026
|
/** Gets or sets whether the hero transition is active; toggling it on starts the effect, off reverts it. */
|
|
7853
8027
|
hero: boolean;
|
|
7854
8028
|
/** Gets or sets the target state (a `Rect`, or an `Element` whose bounds are used) the `target` element transitions to. */
|
|
7855
|
-
to:
|
|
8029
|
+
to: Rect | Element;
|
|
7856
8030
|
/** 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:
|
|
8031
|
+
from: Rect | Element;
|
|
7858
8032
|
/** Gets or sets the transition duration, in milliseconds. */
|
|
7859
8033
|
duration: number;
|
|
7860
8034
|
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
@@ -7912,9 +8086,9 @@ declare class PacemFxRadialGradientElement extends PacemFxGradientItemElement {
|
|
|
7912
8086
|
/** Either 'circle' or 'ellipse' (default). */
|
|
7913
8087
|
shape: 'circle' | 'ellipse';
|
|
7914
8088
|
/** Gradient's origin in normalized coordinates. */
|
|
7915
|
-
center:
|
|
8089
|
+
center: Point;
|
|
7916
8090
|
/** Gradient's diametral size in normalized lengths, or absolute pixels (circular gradients only). */
|
|
7917
|
-
size:
|
|
8091
|
+
size: Size | number;
|
|
7918
8092
|
protected doesPropertyTriggerGradientChange(prop: string): boolean;
|
|
7919
8093
|
buildGradient(): string;
|
|
7920
8094
|
}
|
|
@@ -7983,18 +8157,18 @@ declare class PacemGeolocateElement extends PacemBaseElement {
|
|
|
7983
8157
|
#private;
|
|
7984
8158
|
protected get inputFields(): HTMLElement[];
|
|
7985
8159
|
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:
|
|
8160
|
+
protected onChange(evt?: CustomEvent<Address_2[]>): PromiseLike<any>;
|
|
8161
|
+
fetch(search: Maps.LatLng): void;
|
|
8162
|
+
protected compareValuePropertyValues(old: Address_2, any: Address_2): boolean;
|
|
8163
|
+
protected acceptValue(val: Address_2): void;
|
|
8164
|
+
protected getViewValue(value: Address_2): string;
|
|
7991
8165
|
protected convertValueAttributeToProperty(attr: string): any;
|
|
7992
8166
|
/** Gets or sets the map adapter used by the internal geocoders (forwarded to `pacem-map-geocode`). */
|
|
7993
8167
|
adapter: Components_4.Maps.PacemMapAdapterElement;
|
|
7994
8168
|
/** Gets or sets the map onto which the draggable position marker is attached. */
|
|
7995
8169
|
map: Components_4.Maps.PacemMapElement;
|
|
7996
8170
|
/** Gets or sets the icon used for the position marker. */
|
|
7997
|
-
icon: string |
|
|
8171
|
+
icon: string | Icon_2;
|
|
7998
8172
|
private _datasource;
|
|
7999
8173
|
private _suggest;
|
|
8000
8174
|
private _geocoder;
|
|
@@ -8015,8 +8189,8 @@ declare class PacemGeolocateElement extends PacemBaseElement {
|
|
|
8015
8189
|
/** `<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
8190
|
declare class PacemGoogleMapAdapterElement extends PacemMapAdapterElement {
|
|
8017
8191
|
#private;
|
|
8018
|
-
geocode(address: string, maxResults?: number): Promise<
|
|
8019
|
-
reverseGeocode(latLng: LatLng | [number, number], maxResults?: number): Promise<
|
|
8192
|
+
geocode(address: string, maxResults?: number): Promise<Address[]>;
|
|
8193
|
+
reverseGeocode(latLng: LatLng | [number, number], maxResults?: number): Promise<Address[]>;
|
|
8020
8194
|
protected getBounds(map: PacemMapElement): LatLngBounds;
|
|
8021
8195
|
protected isActive(): boolean;
|
|
8022
8196
|
protected buildMarkerAdapterFor(map: PacemMapElement): MarkerAdapter;
|
|
@@ -8317,8 +8491,23 @@ declare class PacemIfElement extends HTMLElement {
|
|
|
8317
8491
|
match: boolean;
|
|
8318
8492
|
}
|
|
8319
8493
|
|
|
8494
|
+
/** `<pacem-2d-image>`: renders a raster image at a given position and size within the stage. */
|
|
8495
|
+
declare class PacemImageElement extends UiElement implements Image_2 {
|
|
8496
|
+
/** Gets or sets the image source URL. */
|
|
8497
|
+
src: string;
|
|
8498
|
+
/** Gets or sets the horizontal position. */
|
|
8499
|
+
x: number;
|
|
8500
|
+
/** Gets or sets the vertical position. */
|
|
8501
|
+
y: number;
|
|
8502
|
+
/** Gets or sets the rendered width (defaults to the natural width, scaled if only `height` is set). */
|
|
8503
|
+
width: number;
|
|
8504
|
+
/** Gets or sets the rendered height (defaults to the natural height, scaled if only `width` is set). */
|
|
8505
|
+
height: number;
|
|
8506
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
8507
|
+
}
|
|
8508
|
+
|
|
8320
8509
|
/** 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
|
|
8510
|
+
declare class PacemImageElement_2 extends Components_2.PacemElement {
|
|
8322
8511
|
#private;
|
|
8323
8512
|
constructor();
|
|
8324
8513
|
/** Gets or sets how the image is fit within its box (`cover`, `contain`, or `auto` for natural size). */
|
|
@@ -8339,21 +8528,6 @@ declare class PacemImageElement extends Components_2.PacemElement {
|
|
|
8339
8528
|
private _setSource;
|
|
8340
8529
|
}
|
|
8341
8530
|
|
|
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
8531
|
/**
|
|
8358
8532
|
* {@link PacemBaseElement}-based field showing an image preview with edit/clear buttons; editing opens a dialog hosting a
|
|
8359
8533
|
* {@link PacemEditImageElement} to pick/upload/snapshot a new picture, while `value` also accepts a directly-typed URL.
|
|
@@ -8401,7 +8575,7 @@ declare class PacemImageInputElement extends PacemBaseElement {
|
|
|
8401
8575
|
}
|
|
8402
8576
|
|
|
8403
8577
|
/** Watches a scrollable `container` and dispatches a `fetchmore` event whenever the user scrolls within `threshold` pixels of the bottom. */
|
|
8404
|
-
declare class PacemInfiniteScrollerElement extends
|
|
8578
|
+
declare class PacemInfiniteScrollerElement extends PacemEventTarget {
|
|
8405
8579
|
constructor();
|
|
8406
8580
|
/** Gets or sets the scrollable element (or a selector for it) to watch; `'$document'` (the default) watches the whole page. */
|
|
8407
8581
|
container: string | HTMLElement;
|
|
@@ -8457,7 +8631,7 @@ declare abstract class PacemItemElement_2<TContainer extends PacemItemsContainer
|
|
|
8457
8631
|
* {@link PacemBaseElement}'s field behavior with `ItemsContainer<TItem>`'s registration API.
|
|
8458
8632
|
* See {@link PacemDataSourceElement} for the concrete specialization holding {@link PacemDataItemElement}s.
|
|
8459
8633
|
*/
|
|
8460
|
-
declare abstract class PacemItemsContainerBaseElement<TItem extends HTMLElement> extends PacemBaseElement implements
|
|
8634
|
+
declare abstract class PacemItemsContainerBaseElement<TItem extends HTMLElement> extends PacemBaseElement implements ItemsContainer<TItem> {
|
|
8461
8635
|
/** Gets the currently registered items. Read-only in practice: only ever set by {@link register}/{@link unregister} or two-way databinding. */
|
|
8462
8636
|
items: TItem[];
|
|
8463
8637
|
/**
|
|
@@ -8577,8 +8751,8 @@ declare class PacemLayoutProxyElement extends PacemEventTarget {
|
|
|
8577
8751
|
declare class PacemLeafletMapAdapterElement extends PacemMapAdapterElement {
|
|
8578
8752
|
#private;
|
|
8579
8753
|
protected buildOverlayAdapterFor(map: PacemMapElement): OverlayAdapter;
|
|
8580
|
-
geocode(address: string, maxResults?: number): Promise<
|
|
8581
|
-
reverseGeocode(latLng: LatLng | [number, number], _?: number): Promise<
|
|
8754
|
+
geocode(address: string, maxResults?: number): Promise<Address[]>;
|
|
8755
|
+
reverseGeocode(latLng: LatLng | [number, number], _?: number): Promise<Address[]>;
|
|
8582
8756
|
protected getBounds(ctrl: PacemMapElement): LatLngBounds;
|
|
8583
8757
|
protected isActive(): boolean;
|
|
8584
8758
|
protected setViewNative(ctrl: PacemMapElement, options: Partial<MapViewOptions>): void;
|
|
@@ -8651,15 +8825,15 @@ declare class PacemLightboxElement extends Components_2.PacemElement implements
|
|
|
8651
8825
|
/** `<pacem-2d-line>`: renders a straight segment between two points. */
|
|
8652
8826
|
declare class PacemLineElement extends ShapeElement {
|
|
8653
8827
|
/** Gets or sets the starting point. */
|
|
8654
|
-
from:
|
|
8828
|
+
from: Point;
|
|
8655
8829
|
/** Gets or sets the ending point. */
|
|
8656
|
-
to:
|
|
8830
|
+
to: Point;
|
|
8657
8831
|
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
8658
8832
|
protected getShapeGeometry(): ShapeGeometry;
|
|
8659
8833
|
/** Computes the SVG path data of the line out of its own `from`/`to` points. */
|
|
8660
8834
|
protected getPathData(): string;
|
|
8661
8835
|
/** Computes the SVG path data of a straight segment between `from` and `to`. */
|
|
8662
|
-
static getPathData(from?:
|
|
8836
|
+
static getPathData(from?: Point, to?: Point): string;
|
|
8663
8837
|
}
|
|
8664
8838
|
|
|
8665
8839
|
/** `<pacem-3d-primitive-line>`: computes the {@link LineGeometry} of a polyline connecting a sequence of points. */
|
|
@@ -8689,10 +8863,10 @@ declare class PacemLoaderElement extends Components_2.PacemElement {
|
|
|
8689
8863
|
/**
|
|
8690
8864
|
* 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
8865
|
*/
|
|
8692
|
-
declare abstract class PacemMapAdapterElement extends
|
|
8866
|
+
declare abstract class PacemMapAdapterElement extends PacemEventTarget implements MapGeocoder {
|
|
8693
8867
|
#private;
|
|
8694
|
-
abstract geocode(address: string, maxResults?: number): Promise<
|
|
8695
|
-
abstract reverseGeocode(latLng: LatLng | [number, number], maxResults?: number): Promise<
|
|
8868
|
+
abstract geocode(address: string, maxResults?: number): Promise<Address[]>;
|
|
8869
|
+
abstract reverseGeocode(latLng: LatLng | [number, number], maxResults?: number): Promise<Address[]>;
|
|
8696
8870
|
/**
|
|
8697
8871
|
* Forces the map redraw.
|
|
8698
8872
|
*/
|
|
@@ -8789,7 +8963,7 @@ declare class PacemMapCircleElement extends PacemMapShapeElement {
|
|
|
8789
8963
|
}
|
|
8790
8964
|
|
|
8791
8965
|
/** `<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
|
|
8966
|
+
declare class PacemMapElement extends PacemEventTarget {
|
|
8793
8967
|
#private;
|
|
8794
8968
|
/** Gets or sets the map zoom level. */
|
|
8795
8969
|
zoom: number;
|
|
@@ -8861,7 +9035,7 @@ declare class PacemMapElement extends PacemEventTarget_2 {
|
|
|
8861
9035
|
}
|
|
8862
9036
|
|
|
8863
9037
|
/** `<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
|
|
9038
|
+
declare class PacemMapGeocodeElement extends PacemEventTarget {
|
|
8865
9039
|
#private;
|
|
8866
9040
|
/** Gets or sets the {@link PacemMapAdapterElement} used to actually perform the geocode/reverse-geocode calls. */
|
|
8867
9041
|
adapter: PacemMapAdapterElement;
|
|
@@ -8870,7 +9044,7 @@ declare class PacemMapGeocodeElement extends PacemEventTarget_2 {
|
|
|
8870
9044
|
/** Gets or sets the debounce (in milliseconds) applied before a `search`/`position` change triggers a new request. */
|
|
8871
9045
|
debounce: number;
|
|
8872
9046
|
/** Gets or sets the (reverse-)geocoding results. */
|
|
8873
|
-
results:
|
|
9047
|
+
results: Address[];
|
|
8874
9048
|
/** Gets or sets the free-text address to geocode. */
|
|
8875
9049
|
search: string;
|
|
8876
9050
|
/** Gets or sets the position to reverse-geocode. */
|
|
@@ -8889,7 +9063,7 @@ declare class PacemMapGeocodeElement extends PacemEventTarget_2 {
|
|
|
8889
9063
|
}
|
|
8890
9064
|
|
|
8891
9065
|
/** `<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
|
|
9066
|
+
declare class PacemMapGeolocateElement extends PacemEventTarget {
|
|
8893
9067
|
#private;
|
|
8894
9068
|
private _checkPermission;
|
|
8895
9069
|
/** Gets or sets the last resolved geographic position (including `timestamp` and, when available, `heading`/`speed`). */
|
|
@@ -8930,7 +9104,7 @@ declare class PacemMapMarkerElement extends MapRelevantElement {
|
|
|
8930
9104
|
/** Gets or sets the marker's geographic position. */
|
|
8931
9105
|
position: LatLng;
|
|
8932
9106
|
/** Gets or sets the marker icon: either an image URL or a structured {@link Icon} descriptor. */
|
|
8933
|
-
icon:
|
|
9107
|
+
icon: Icon | string;
|
|
8934
9108
|
/** Gets or sets the marker's label/info-window content (superseded by any element content, see {@link MapUtils.isContentEmpty}). */
|
|
8935
9109
|
caption: string;
|
|
8936
9110
|
/** Gets or sets whether the marker can be dragged by the user. */
|
|
@@ -9030,7 +9204,7 @@ declare abstract class PacemMarkerAdapter<TAdapter extends PacemMapAdapterElemen
|
|
|
9030
9204
|
protected abstract addDragEndEventListener(marker: TMarker, map: TMap, callback: (e: any) => void): any;
|
|
9031
9205
|
protected ensureMarker(item: PacemMapMarkerElement, map: TMap): TMarker;
|
|
9032
9206
|
protected abstract setPosition(marker: TMarker, position: LatLng): void;
|
|
9033
|
-
protected abstract setIcon(marker: TMarker, icon: string |
|
|
9207
|
+
protected abstract setIcon(marker: TMarker, icon: string | Icon): void;
|
|
9034
9208
|
protected abstract setLabel(marker: TMarker, label: string): void;
|
|
9035
9209
|
protected abstract setDraggable(marker: TMarker, draggable: boolean): void;
|
|
9036
9210
|
protected abstract deleteMarker(marker: TMarker, map: TMap): void;
|
|
@@ -9066,7 +9240,7 @@ declare class PacemMarqueeElement extends Components_2.PacemElement {
|
|
|
9066
9240
|
}
|
|
9067
9241
|
|
|
9068
9242
|
/** Evaluates a CSS media query and reflects its match state, dispatching `change`/`match`/`unmatch` events as it changes. */
|
|
9069
|
-
declare class PacemMediaQueryElement extends
|
|
9243
|
+
declare class PacemMediaQueryElement extends PacemEventTarget {
|
|
9070
9244
|
#private;
|
|
9071
9245
|
/** Gets or sets the CSS media query to evaluate. */
|
|
9072
9246
|
query: string;
|
|
@@ -9081,7 +9255,7 @@ declare class PacemMediaQueryElement extends PacemEventTarget_2 {
|
|
|
9081
9255
|
}
|
|
9082
9256
|
|
|
9083
9257
|
/** Wraps the native `MediaRecorder` API, capturing audio/video from a canvas, media element or media stream into a `Blob`. */
|
|
9084
|
-
declare class PacemMediaRecorderElement extends
|
|
9258
|
+
declare class PacemMediaRecorderElement extends PacemEventTarget {
|
|
9085
9259
|
#private;
|
|
9086
9260
|
/** Gets or sets the source to record: a `HTMLCanvasElement` (captured via `captureStream`), a `HTMLMediaElement`, or a `MediaStream`. */
|
|
9087
9261
|
source: HTMLCanvasElement | HTMLMediaElement | MediaStream;
|
|
@@ -9181,7 +9355,7 @@ declare class PacemModalFormElement extends UI_6.PacemDialogBase implements Net.
|
|
|
9181
9355
|
/** Gets or sets the HTTP method used to submit the form to `action`. Default: `Net.HttpMethod.Post`. */
|
|
9182
9356
|
method: Net.HttpMethod;
|
|
9183
9357
|
/** Gets or sets the metadata driving the autogenerated form's fields. */
|
|
9184
|
-
metadata:
|
|
9358
|
+
metadata: Scaffolding.TypeMetadata | Scaffolding.PropertyMetadata[];
|
|
9185
9359
|
/** Gets or sets the URL the form is submitted to on confirm. Leave empty to commit without any network call. */
|
|
9186
9360
|
action: string;
|
|
9187
9361
|
/** Gets or sets the loader animation type shown while the submit request is in flight. */
|
|
@@ -9542,7 +9716,7 @@ declare class PacemPieSliceElement extends Components_2.PacemItemElement impleme
|
|
|
9542
9716
|
angle: number;
|
|
9543
9717
|
};
|
|
9544
9718
|
/** Returns the center of mass (point) of this pie/doughnut slice, in absolute coords (pixels). */
|
|
9545
|
-
getCenterOfMass():
|
|
9719
|
+
getCenterOfMass(): Point;
|
|
9546
9720
|
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
9547
9721
|
private _ui;
|
|
9548
9722
|
/** @internal */
|
|
@@ -9570,13 +9744,13 @@ declare class PacemPlaneElement extends Pacem3DPrimitiveElement {
|
|
|
9570
9744
|
}
|
|
9571
9745
|
|
|
9572
9746
|
/** Animates a {@link Point} `target[property]` from `from` to `to` over `duration`. */
|
|
9573
|
-
declare class PacemPointAnimationElement extends TweenAnimationElement<
|
|
9747
|
+
declare class PacemPointAnimationElement extends TweenAnimationElement<Point> {
|
|
9574
9748
|
/** Gets or sets the starting point. */
|
|
9575
|
-
from:
|
|
9749
|
+
from: Point;
|
|
9576
9750
|
/** Gets or sets the ending point. */
|
|
9577
|
-
to:
|
|
9751
|
+
to: Point;
|
|
9578
9752
|
/** @inheritdoc */
|
|
9579
|
-
protected tweenInterpolationCallback(time: number, progress: number):
|
|
9753
|
+
protected tweenInterpolationCallback(time: number, progress: number): Point;
|
|
9580
9754
|
}
|
|
9581
9755
|
|
|
9582
9756
|
/** `<pacem-2d-polygon>`: renders a regular polygon (or, with `starIndent` set, a star) centered on `center`. */
|
|
@@ -9586,7 +9760,7 @@ declare class PacemPolygonElement extends ShapeElement {
|
|
|
9586
9760
|
/** The circumradius of the polygon. */
|
|
9587
9761
|
radius: number;
|
|
9588
9762
|
/** Gets or sets the center point of the polygon. */
|
|
9589
|
-
center:
|
|
9763
|
+
center: Point;
|
|
9590
9764
|
/** Gets or sets the star indentation factor (0 = regular polygon, up to 1 = fully indented star). */
|
|
9591
9765
|
starIndent: number;
|
|
9592
9766
|
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
@@ -9600,15 +9774,15 @@ declare class PacemPolygonElement extends ShapeElement {
|
|
|
9600
9774
|
* @param sides Number of sides (or points, for a star).
|
|
9601
9775
|
* @param starIndent Star indentation factor (0 = regular polygon).
|
|
9602
9776
|
*/
|
|
9603
|
-
static getShapeGeometry(center:
|
|
9777
|
+
static getShapeGeometry(center: Point, radius: number, sides: number, starIndent?: number): ShapeGeometry;
|
|
9604
9778
|
/** Computes the SVG path data of a regular polygon or star. See `getShapeGeometry` for the parameters. */
|
|
9605
|
-
static getPathData(center:
|
|
9779
|
+
static getPathData(center: Point, radius: number, sides: number, starIndent?: number): string;
|
|
9606
9780
|
}
|
|
9607
9781
|
|
|
9608
9782
|
/** `<pacem-2d-polyline>`: renders a series of connected segments through `points`, optionally `closed` into a polygon. */
|
|
9609
9783
|
declare class PacemPolylineElement extends ShapeElement {
|
|
9610
9784
|
/** Gets or sets the vertices of the polyline, in order. */
|
|
9611
|
-
points:
|
|
9785
|
+
points: Point[];
|
|
9612
9786
|
/** Gets or sets whether the polyline is closed back onto its first point. */
|
|
9613
9787
|
closed: boolean;
|
|
9614
9788
|
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
@@ -9617,12 +9791,12 @@ declare class PacemPolylineElement extends ShapeElement {
|
|
|
9617
9791
|
* @param points Vertices, in order.
|
|
9618
9792
|
* @param closed Whether the polyline is closed back onto its first point.
|
|
9619
9793
|
*/
|
|
9620
|
-
static getShapeGeometry(points:
|
|
9794
|
+
static getShapeGeometry(points: Point[], closed: boolean): ShapeGeometry;
|
|
9621
9795
|
protected getShapeGeometry(): ShapeGeometry;
|
|
9622
9796
|
/** Computes the SVG path data of the polyline out of its own `points`/`closed`. */
|
|
9623
9797
|
protected getPathData(): string;
|
|
9624
9798
|
/** Computes the SVG path data of a polyline. See `getShapeGeometry` for the parameters. */
|
|
9625
|
-
static getPathData(points:
|
|
9799
|
+
static getPathData(points: Point[], closed: boolean): string;
|
|
9626
9800
|
}
|
|
9627
9801
|
|
|
9628
9802
|
/** Horizontal progress bar with an optional textual caption. */
|
|
@@ -9853,7 +10027,7 @@ declare class PacemRotateElement extends PacemBehavior implements Rotator {
|
|
|
9853
10027
|
/** Gets or sets the maximum allowed rotation, in radians. */
|
|
9854
10028
|
maxRotation: number;
|
|
9855
10029
|
/** Gets or sets the pivot point the element rotates around; defaults to the element's own center. */
|
|
9856
|
-
center:
|
|
10030
|
+
center: Point;
|
|
9857
10031
|
private _startHandler;
|
|
9858
10032
|
}
|
|
9859
10033
|
|
|
@@ -9909,7 +10083,7 @@ declare class PacemRouterElement extends PacemEventTarget {
|
|
|
9909
10083
|
* Navigation events lock the element (`#locked`) to avoid feedback loops between the router-driven read and
|
|
9910
10084
|
* the state-driven write while a navigation is in flight.
|
|
9911
10085
|
*/
|
|
9912
|
-
declare class PacemRouterHashStateElement extends
|
|
10086
|
+
declare class PacemRouterHashStateElement extends PacemEventTarget {
|
|
9913
10087
|
#private;
|
|
9914
10088
|
/** Gets or sets the {@link Components.PacemRouterElement} instance whose URL hash is read from/written to. */
|
|
9915
10089
|
router: Components_2.PacemRouterElement;
|
|
@@ -9962,7 +10136,7 @@ declare class PacemRouterHashStateElement extends PacemEventTarget_2 {
|
|
|
9962
10136
|
* eliminate - restoring to a scrollTop the page isn't tall enough to reach yet (e.g. images or async
|
|
9963
10137
|
* content still loading in): content changes that don't affect the view's own box size won't retrigger it.
|
|
9964
10138
|
*/
|
|
9965
|
-
declare class PacemRouterViewScrollElement extends
|
|
10139
|
+
declare class PacemRouterViewScrollElement extends PacemEventTarget {
|
|
9966
10140
|
/** The {@link Pacem.Components.PacemRouterElement} instance orchestrating the app's navigation; its `state.$scrollY` is what gets restored. */
|
|
9967
10141
|
router: Components_2.PacemRouterElement;
|
|
9968
10142
|
/** The {@link Pacem.Components.UI.PacemViewElement} whose `prerender`/`render` events drive when the scroll position gets reset/restored. */
|
|
@@ -10026,7 +10200,7 @@ declare class PacemScrollAwareElement extends PacemEventTarget {
|
|
|
10026
10200
|
* the `hintParameter` query-string parameter, and the results are rendered through a `${P}-repeater`
|
|
10027
10201
|
* (customize the row markup via the element's default `${P}-content` slot).
|
|
10028
10202
|
*/
|
|
10029
|
-
declare class PacemSearchElement extends Components_2.PacemElement implements
|
|
10203
|
+
declare class PacemSearchElement extends Components_2.PacemElement implements OnPropertyChanged {
|
|
10030
10204
|
private _fetcher;
|
|
10031
10205
|
/** @readonly Gets the search results (bound to the underlying `${P}-fetch`'s `result`). */
|
|
10032
10206
|
datasource: any[];
|
|
@@ -10117,7 +10291,7 @@ declare abstract class PacemSeriesChartElement extends Components_2.PacemItemsCo
|
|
|
10117
10291
|
viewActivatedCallback(): void;
|
|
10118
10292
|
private _ensureResizer;
|
|
10119
10293
|
private _resizeHandler;
|
|
10120
|
-
protected get chartSize():
|
|
10294
|
+
protected get chartSize(): Size;
|
|
10121
10295
|
protected get chartSeries(): SVGSVGElement[];
|
|
10122
10296
|
protected get chartBody(): SVGSVGElement;
|
|
10123
10297
|
protected get chartGrid(): SVGSVGElement;
|
|
@@ -10129,7 +10303,7 @@ declare abstract class PacemSeriesChartElement extends Components_2.PacemItemsCo
|
|
|
10129
10303
|
protected disposeUiBehaviors(ui: Element): void;
|
|
10130
10304
|
protected ensureChartContainer(): HTMLElement;
|
|
10131
10305
|
protected ensureChartBody(type: string, w?: number, h?: number): SVGSVGElement;
|
|
10132
|
-
protected chartDataItemToPoint(input: ChartDataItem, source: ChartDataItem[]):
|
|
10306
|
+
protected chartDataItemToPoint(input: ChartDataItem, source: ChartDataItem[]): Point;
|
|
10133
10307
|
protected getVirtualGrid(items: ChartDataItem[], minX: number, maxX: number, minY: number, maxY: number, xAxisType?: "date" | "number" | "string", steps?: number, labels?: number): {
|
|
10134
10308
|
x: string[];
|
|
10135
10309
|
y: number[];
|
|
@@ -10148,7 +10322,7 @@ declare abstract class PacemSeriesChartElement extends Components_2.PacemItemsCo
|
|
|
10148
10322
|
* Default implementation.
|
|
10149
10323
|
* @param element
|
|
10150
10324
|
*/
|
|
10151
|
-
getAnchorPoint(element: Element):
|
|
10325
|
+
getAnchorPoint(element: Element): Point;
|
|
10152
10326
|
}
|
|
10153
10327
|
|
|
10154
10328
|
/** Subscribes to a named event exposed by the ancestor {@link PacemServerSentEventsProxyElement}'s `EventSource`, dispatching a `receive` event for every incoming message. */
|
|
@@ -10406,7 +10580,7 @@ declare class PacemSphereElement extends Pacem3DPrimitiveElement {
|
|
|
10406
10580
|
}
|
|
10407
10581
|
|
|
10408
10582
|
/** 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
|
|
10583
|
+
declare class PacemStickyHeaderElement extends PacemEventTarget {
|
|
10410
10584
|
#private;
|
|
10411
10585
|
/** Gets or sets the scroll offset, in pixels, beyond which the sticky behavior activates. */
|
|
10412
10586
|
threshold: number;
|
|
@@ -10537,10 +10711,10 @@ declare class PacemSuggestElement extends PacemDataSourceElement {
|
|
|
10537
10711
|
declare class PacemSvgAdapterElement extends Pacem2DAdapterElement {
|
|
10538
10712
|
#private;
|
|
10539
10713
|
snapshot(stage: Stage, background?: string, type?: string, quality?: number): PromiseLike<Blob>;
|
|
10540
|
-
getTransformMatrix(scene: Pacem2DElement):
|
|
10714
|
+
getTransformMatrix(scene: Pacem2DElement): Matrix2D;
|
|
10541
10715
|
viewActivatedCallback(): void;
|
|
10542
10716
|
disconnectedCallback(): void;
|
|
10543
|
-
invalidateSize(scene: Pacem2DElement, size:
|
|
10717
|
+
invalidateSize(scene: Pacem2DElement, size: Size): void;
|
|
10544
10718
|
initialize(scene: Pacem2DElement): HTMLElement | SVGElement;
|
|
10545
10719
|
dispose(scene: Pacem2DElement): void;
|
|
10546
10720
|
private _hitTarget;
|
|
@@ -10728,7 +10902,7 @@ declare class PacemTextElement_2 extends UiElement implements Text_2 {
|
|
|
10728
10902
|
/** Gets or sets the font style (e.g. `italic`). */
|
|
10729
10903
|
fontStyle: string;
|
|
10730
10904
|
/** Gets or sets the point the text is anchored to. */
|
|
10731
|
-
anchor:
|
|
10905
|
+
anchor: Point;
|
|
10732
10906
|
/** Gets or sets the horizontal text alignment relative to `anchor`. */
|
|
10733
10907
|
textAnchor: 'start' | 'middle' | 'end';
|
|
10734
10908
|
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
@@ -10892,7 +11066,7 @@ declare class PacemTorusElement extends Pacem3DPrimitiveElement {
|
|
|
10892
11066
|
* Base class for tracker elements (e.g. {@link PacemFpsElement}) that feed successive numeric samples
|
|
10893
11067
|
* through `entry` and expose running statistics through `data`.
|
|
10894
11068
|
*/
|
|
10895
|
-
declare abstract class PacemTrackerElement extends
|
|
11069
|
+
declare abstract class PacemTrackerElement extends PacemEventTarget implements Tracker, OnPropertyChanged {
|
|
10896
11070
|
constructor();
|
|
10897
11071
|
/** @readonly Gets the aggregate statistics (count, average, min, max, current) computed so far. */
|
|
10898
11072
|
data: TrackingData;
|
|
@@ -11096,7 +11270,7 @@ declare class PacemUrlInputElement extends PacemTextualInputElement {
|
|
|
11096
11270
|
}
|
|
11097
11271
|
|
|
11098
11272
|
/** Triggers the device's vibration hardware (via the Vibration API) with a configurable pattern. */
|
|
11099
|
-
declare class PacemVibrateElement extends
|
|
11273
|
+
declare class PacemVibrateElement extends PacemEventTarget {
|
|
11100
11274
|
/** Gets or sets the vibration pattern: alternating vibration/pause durations, in milliseconds. */
|
|
11101
11275
|
pattern: number[];
|
|
11102
11276
|
/** Triggers a vibration using the current `pattern`, if supported by the browser and not disabled. */
|
|
@@ -11104,7 +11278,7 @@ declare class PacemVibrateElement extends PacemEventTarget_2 {
|
|
|
11104
11278
|
}
|
|
11105
11279
|
|
|
11106
11280
|
/** 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
|
|
11281
|
+
declare class PacemViewElement extends PacemEventTarget {
|
|
11108
11282
|
#private;
|
|
11109
11283
|
/** Gets or sets the content source: a URL to fetch, a CSS selector pointing to a `<template>`, or the template element itself. */
|
|
11110
11284
|
url: string | HTMLTemplateElement | Components_2.PacemTemplateProxyElement;
|
|
@@ -11301,12 +11475,12 @@ declare class Pchip implements Interpolator {
|
|
|
11301
11475
|
* Builds a {@link Pchip} interpolator from a set of points (at least 2).
|
|
11302
11476
|
* @param points Points to interpolate through.
|
|
11303
11477
|
*/
|
|
11304
|
-
static create(...points:
|
|
11478
|
+
static create(...points: Point[]): Pchip;
|
|
11305
11479
|
/**
|
|
11306
11480
|
* Builds a {@link Pchip} interpolator from a set of points (at least 2).
|
|
11307
11481
|
* @param points Points to interpolate through.
|
|
11308
11482
|
*/
|
|
11309
|
-
static create(points:
|
|
11483
|
+
static create(points: Point[]): Pchip;
|
|
11310
11484
|
/**
|
|
11311
11485
|
* Builds a {@link Pchip} interpolator from a set of y values, using their array index as x.
|
|
11312
11486
|
* @param values y values, implicitly located at x = 0, 1, 2, ...
|
|
@@ -11368,7 +11542,7 @@ declare type PictureSet = {
|
|
|
11368
11542
|
|
|
11369
11543
|
declare type PlainObject = Record<string, unknown>;
|
|
11370
11544
|
|
|
11371
|
-
|
|
11545
|
+
declare namespace Plus {
|
|
11372
11546
|
export {
|
|
11373
11547
|
L10n_2 as L10n,
|
|
11374
11548
|
DataCellMetadataContentFactory,
|
|
@@ -11382,6 +11556,53 @@ export declare namespace Plus {
|
|
|
11382
11556
|
PacemBaseCellElement
|
|
11383
11557
|
}
|
|
11384
11558
|
}
|
|
11559
|
+
export { Plus }
|
|
11560
|
+
|
|
11561
|
+
declare namespace Plus_2 {
|
|
11562
|
+
export {
|
|
11563
|
+
CarouselDataItem,
|
|
11564
|
+
PacemCarouselElement,
|
|
11565
|
+
PacemContextMenuItemElement,
|
|
11566
|
+
PacemContextMenuItemCommandElement,
|
|
11567
|
+
PacemContextMenuItemSeparatorElement,
|
|
11568
|
+
PacemContextMenuElement,
|
|
11569
|
+
EditMode,
|
|
11570
|
+
PacemEditElement,
|
|
11571
|
+
GalleryDataItem,
|
|
11572
|
+
PacemGalleryElement,
|
|
11573
|
+
PacemModalFormElement,
|
|
11574
|
+
PacemRouterHashStateElement,
|
|
11575
|
+
PacemRouterViewScrollElement,
|
|
11576
|
+
PacemSearchElement,
|
|
11577
|
+
DataCellMetadataContentFactory,
|
|
11578
|
+
DataCellMetadataCssClassFactory,
|
|
11579
|
+
DataCellMetadataCssFactory,
|
|
11580
|
+
HeadCellDisplay,
|
|
11581
|
+
DataCellDisplay,
|
|
11582
|
+
DataColumnMetadata,
|
|
11583
|
+
DataGridState,
|
|
11584
|
+
DataColumnState,
|
|
11585
|
+
PacemBaseCellElement,
|
|
11586
|
+
DataRowSelectChangeEventName,
|
|
11587
|
+
DataRowSelectChangeEventArgs,
|
|
11588
|
+
DataRowSelectChangeEvent,
|
|
11589
|
+
PacemDataCellElement,
|
|
11590
|
+
DataColumnSortEventName,
|
|
11591
|
+
DataColumnSortEventArgs,
|
|
11592
|
+
DataColumnSortEvent,
|
|
11593
|
+
DataColumnRescaleEventName,
|
|
11594
|
+
DataColumnRescaleEventArgs,
|
|
11595
|
+
DataColumnRescaleEvent,
|
|
11596
|
+
PacemHeadCellElement,
|
|
11597
|
+
DataGridOptions,
|
|
11598
|
+
DataGridBindEventArgs,
|
|
11599
|
+
DataGridBindEvent,
|
|
11600
|
+
DataCellUIEventArgs,
|
|
11601
|
+
DataCellUIEvent,
|
|
11602
|
+
PacemDataColumnElement,
|
|
11603
|
+
PacemDataGridElement
|
|
11604
|
+
}
|
|
11605
|
+
}
|
|
11385
11606
|
|
|
11386
11607
|
/** Represents a 2D point/vector. */
|
|
11387
11608
|
export declare interface Point {
|
|
@@ -11437,16 +11658,16 @@ declare interface Point3D {
|
|
|
11437
11658
|
}
|
|
11438
11659
|
|
|
11439
11660
|
/** Converts a `"x y z"` attribute string to/from a {@link Vector3D}. */
|
|
11440
|
-
declare const Point3DConverter:
|
|
11661
|
+
declare const Point3DConverter: PropertyConverter;
|
|
11441
11662
|
|
|
11442
11663
|
/** 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:
|
|
11664
|
+
declare const Point3DOrNumberConverter: PropertyConverter;
|
|
11444
11665
|
|
|
11445
11666
|
declare type PointerEventLike = MouseEvent | PointerEvent | TouchEvent;
|
|
11446
11667
|
|
|
11447
11668
|
/** A (2D) polygon, represented as its ordered list of vertices. */
|
|
11448
11669
|
declare interface Polygon {
|
|
11449
|
-
vertices:
|
|
11670
|
+
vertices: Point[];
|
|
11450
11671
|
}
|
|
11451
11672
|
|
|
11452
11673
|
/** Utility tools to build and inspect {@link Polygon}s. */
|
|
@@ -11461,24 +11682,24 @@ declare class Polygon {
|
|
|
11461
11682
|
* Builds a polygon from the provided vertices, in order.
|
|
11462
11683
|
* @param points Vertices of the polygon.
|
|
11463
11684
|
*/
|
|
11464
|
-
static from(...points:
|
|
11685
|
+
static from(...points: Point[]): Polygon;
|
|
11465
11686
|
/**
|
|
11466
11687
|
* Checks whether a point lies inside the polygon.
|
|
11467
11688
|
* @param polygon
|
|
11468
11689
|
* @param p Point to test.
|
|
11469
11690
|
*/
|
|
11470
|
-
static contains(polygon: Polygon, p:
|
|
11691
|
+
static contains(polygon: Polygon, p: Point): any;
|
|
11471
11692
|
/**
|
|
11472
11693
|
* Returns the center of the polygon's bounding box.
|
|
11473
11694
|
* Note: this is not the geometric centroid (center of mass) for non-symmetric polygons.
|
|
11474
11695
|
* @param polygon
|
|
11475
11696
|
*/
|
|
11476
|
-
static centroid(polygon: Polygon):
|
|
11697
|
+
static centroid(polygon: Polygon): Point;
|
|
11477
11698
|
/**
|
|
11478
11699
|
* Computes the axis-aligned bounding box of the polygon.
|
|
11479
11700
|
* @param polygon
|
|
11480
11701
|
*/
|
|
11481
|
-
static boundingBox(polygon: Polygon):
|
|
11702
|
+
static boundingBox(polygon: Polygon): Rect;
|
|
11482
11703
|
/**
|
|
11483
11704
|
* Returns the polygon's edges as an ordered list of segments, each joining a vertex to the next
|
|
11484
11705
|
* (the last one wrapping back to the first).
|
|
@@ -11587,7 +11808,7 @@ declare interface PresentationState {
|
|
|
11587
11808
|
dashArray?: number[];
|
|
11588
11809
|
lineJoin?: CanvasLineJoin;
|
|
11589
11810
|
lineCap?: CanvasLineCap;
|
|
11590
|
-
readonly transformMatrix?:
|
|
11811
|
+
readonly transformMatrix?: Matrix2D;
|
|
11591
11812
|
opacity?: number;
|
|
11592
11813
|
}
|
|
11593
11814
|
|
|
@@ -11600,7 +11821,7 @@ declare class PresentationState {
|
|
|
11600
11821
|
* @param rhs Inherited/fallback presentation state.
|
|
11601
11822
|
* @param precomputedMatrix If provided, used as-is instead of multiplying `lhs`'s and `rhs`'s transform matrices.
|
|
11602
11823
|
*/
|
|
11603
|
-
static combine(lhs: PresentationState, rhs: PresentationState, precomputedMatrix?:
|
|
11824
|
+
static combine(lhs: PresentationState, rhs: PresentationState, precomputedMatrix?: Matrix2D): PresentationState;
|
|
11604
11825
|
}
|
|
11605
11826
|
|
|
11606
11827
|
/** Ready-to-use event listener that only calls `evt.preventDefault()`; handy as an `addEventListener` callback without allocating a closure. */
|
|
@@ -11799,14 +12020,11 @@ declare type PropertyMetadataLabelFactory = (host: Element, hostRef?: string, en
|
|
|
11799
12020
|
/** 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
12021
|
declare type PropertyMetadataValidatorFactory = (host: Element, hostRef?: string, entityRef?: string) => ValidatorManifest;
|
|
11801
12022
|
|
|
11802
|
-
/** A rotation expressed as a unit quaternion. */
|
|
11803
|
-
declare type Quaternion = Geometry_2.LinearAlgebra.Quaternion;
|
|
11804
|
-
|
|
11805
12023
|
/**
|
|
11806
12024
|
* Represents a rotation in 3D space as a unit quaternion `x·i + y·j + z·k + w`, avoiding the gimbal-lock
|
|
11807
12025
|
* issues of Euler angles and allowing smooth interpolation between orientations.
|
|
11808
12026
|
*/
|
|
11809
|
-
declare interface
|
|
12027
|
+
declare interface Quaternion {
|
|
11810
12028
|
x: number;
|
|
11811
12029
|
y: number;
|
|
11812
12030
|
z: number;
|
|
@@ -11814,112 +12032,115 @@ declare interface Quaternion_2 {
|
|
|
11814
12032
|
}
|
|
11815
12033
|
|
|
11816
12034
|
/** Utilities to build, combine and convert {@link Quaternion} rotations. */
|
|
11817
|
-
declare class
|
|
12035
|
+
declare class Quaternion {
|
|
11818
12036
|
/** Returns the identity quaternion (no rotation). */
|
|
11819
|
-
static identity():
|
|
12037
|
+
static identity(): Quaternion;
|
|
11820
12038
|
/**
|
|
11821
12039
|
* Builds a {@link Quaternion} from its x, y, z, w components, in that order.
|
|
11822
12040
|
* @param args Exactly 4 numbers: x, y, z, w.
|
|
11823
12041
|
* @throws If the number of arguments is not exactly 4.
|
|
11824
12042
|
*/
|
|
11825
|
-
static from(...args: number[]):
|
|
12043
|
+
static from(...args: number[]): Quaternion;
|
|
11826
12044
|
/**
|
|
11827
12045
|
* Parses a string representation of a quaternion (4 numbers) into a {@link Quaternion}.
|
|
11828
12046
|
* @param input String to parse.
|
|
11829
12047
|
* @throws If the input cannot be parsed as exactly 4 numbers.
|
|
11830
12048
|
*/
|
|
11831
|
-
static parse(input: string):
|
|
12049
|
+
static parse(input: string): Quaternion;
|
|
11832
12050
|
/**
|
|
11833
12051
|
* Builds the (shortest-arc) quaternion representing the rotation that takes one unit vector onto another.
|
|
11834
12052
|
* Normalizes both input vectors in place as a side effect.
|
|
11835
12053
|
* @param from Source direction.
|
|
11836
12054
|
* @param to Target direction.
|
|
11837
12055
|
*/
|
|
11838
|
-
static fromVectors(from:
|
|
12056
|
+
static fromVectors(from: Vector3D_2, to: Vector3D_2): Quaternion;
|
|
11839
12057
|
/**
|
|
11840
12058
|
* In-place normalizarion of the provided quaternion
|
|
11841
12059
|
* @param q {Quaternion}
|
|
11842
12060
|
*/
|
|
11843
|
-
static normalize(q:
|
|
12061
|
+
static normalize(q: Quaternion): void;
|
|
11844
12062
|
/**
|
|
11845
12063
|
* Returns a normalized copy of the source quaternion.
|
|
11846
12064
|
* @param q {Quaternion}
|
|
11847
12065
|
*/
|
|
11848
|
-
static unit(q:
|
|
12066
|
+
static unit(q: Quaternion): Quaternion;
|
|
11849
12067
|
/**
|
|
11850
12068
|
* Creates a quaternion instance given the rotation axis and an angle (in degrees).
|
|
11851
12069
|
* @param axis
|
|
11852
12070
|
* @param angleDeg
|
|
11853
12071
|
*/
|
|
11854
|
-
static fromAxisAngle(axis:
|
|
12072
|
+
static fromAxisAngle(axis: Vector3D_2, angleDeg: number): Quaternion;
|
|
11855
12073
|
/**
|
|
11856
12074
|
* Creates a quaternion instance given the rotation matrix.
|
|
11857
12075
|
* @param rotationMatrix
|
|
11858
12076
|
*/
|
|
11859
|
-
static fromRotationMatrix(rotationMatrix:
|
|
12077
|
+
static fromRotationMatrix(rotationMatrix: Matrix3D): Quaternion;
|
|
11860
12078
|
/**
|
|
11861
12079
|
* Returns the conjugate of the quaternion (vector part negated). For a unit quaternion, this
|
|
11862
12080
|
* represents the inverse rotation.
|
|
11863
12081
|
* @param q
|
|
11864
12082
|
*/
|
|
11865
|
-
static conjugate(q:
|
|
12083
|
+
static conjugate(q: Quaternion): Quaternion;
|
|
11866
12084
|
/**
|
|
11867
12085
|
* Returns the magnitude/length of the provided quaternion.
|
|
11868
12086
|
* @param q {Quaternion}
|
|
11869
12087
|
*/
|
|
11870
|
-
static mag(q:
|
|
12088
|
+
static mag(q: Quaternion): number;
|
|
11871
12089
|
/**
|
|
11872
12090
|
* Returns the squared magnitude of the vector (imaginary) part of the quaternion.
|
|
11873
12091
|
* @param q
|
|
11874
12092
|
*/
|
|
11875
|
-
static norm(q:
|
|
12093
|
+
static norm(q: Quaternion): number;
|
|
11876
12094
|
/**
|
|
11877
12095
|
* Returns the (unit) rotation axis represented by the quaternion, defaulting to the y axis
|
|
11878
12096
|
* when the quaternion has no vector part (i.e. represents no rotation).
|
|
11879
12097
|
* @param q
|
|
11880
12098
|
*/
|
|
11881
|
-
static axis(q:
|
|
12099
|
+
static axis(q: Quaternion): Vector3D_2;
|
|
11882
12100
|
/**
|
|
11883
12101
|
* Rotates a vector by the given quaternion (normalizes the quaternion in place as a side effect).
|
|
11884
12102
|
* @param v Vector to rotate.
|
|
11885
12103
|
* @param q Rotation quaternion.
|
|
11886
12104
|
*/
|
|
11887
|
-
static transform(v:
|
|
12105
|
+
static transform(v: Vector3D_2, q: Quaternion): Vector3D_2;
|
|
11888
12106
|
/**
|
|
11889
12107
|
* Returns the rotation angle (in degrees) of the provided quaternion.
|
|
11890
12108
|
* @param q
|
|
11891
12109
|
*/
|
|
11892
|
-
static angle(q:
|
|
12110
|
+
static angle(q: Quaternion): number;
|
|
11893
12111
|
/**
|
|
11894
12112
|
* Builds the rotation matrix equivalent to the given quaternion.
|
|
11895
12113
|
* @param q
|
|
11896
12114
|
*/
|
|
11897
|
-
static toRotationMatrix(q:
|
|
12115
|
+
static toRotationMatrix(q: Quaternion): Matrix3D;
|
|
11898
12116
|
/**
|
|
11899
12117
|
* Returns the inverse rotation of the given quaternion (the conjugate of its normalized form).
|
|
11900
12118
|
* @param q
|
|
11901
12119
|
*/
|
|
11902
|
-
static invert(q:
|
|
12120
|
+
static invert(q: Quaternion): Quaternion;
|
|
11903
12121
|
/**
|
|
11904
12122
|
* Combines two quaternions.
|
|
11905
12123
|
* @param q1
|
|
11906
12124
|
* @param q2
|
|
11907
12125
|
*/
|
|
11908
|
-
static multiply(q1:
|
|
12126
|
+
static multiply(q1: Quaternion, q2: Quaternion): Quaternion;
|
|
11909
12127
|
/**
|
|
11910
12128
|
* Returns the dot product of two quaternions.
|
|
11911
12129
|
* @param q1
|
|
11912
12130
|
* @param q2
|
|
11913
12131
|
*/
|
|
11914
|
-
static dot(q1:
|
|
12132
|
+
static dot(q1: Quaternion, q2: Quaternion): number;
|
|
11915
12133
|
}
|
|
11916
12134
|
|
|
12135
|
+
/** A rotation expressed as a unit quaternion. */
|
|
12136
|
+
declare type Quaternion_2 = Geometry.LinearAlgebra.Quaternion;
|
|
12137
|
+
|
|
11917
12138
|
/** Converts a `"x y z w"` attribute string to/from a {@link Quaternion}. Used e.g. for `rotate`. */
|
|
11918
|
-
declare const QuaternionConverter:
|
|
12139
|
+
declare const QuaternionConverter: PropertyConverter;
|
|
11919
12140
|
|
|
11920
12141
|
/** A gradient that radiates from `center` outwards up to `radius`. */
|
|
11921
12142
|
declare interface RadialGradient extends Gradient {
|
|
11922
|
-
center:
|
|
12143
|
+
center: Point;
|
|
11923
12144
|
radius: number;
|
|
11924
12145
|
}
|
|
11925
12146
|
|
|
@@ -12155,6 +12376,19 @@ declare class RepeaterItemRemoveEvent extends RepeaterItemEvent {
|
|
|
12155
12376
|
|
|
12156
12377
|
declare const RepeaterItemRemoveEventName = "repeateritemremove";
|
|
12157
12378
|
|
|
12379
|
+
/** Options accepted by {@link Http.request}.
|
|
12380
|
+
* @deprecated */
|
|
12381
|
+
declare type RequestOptions = {
|
|
12382
|
+
data?: 'string' | {
|
|
12383
|
+
[key: string]: string;
|
|
12384
|
+
};
|
|
12385
|
+
headers?: {
|
|
12386
|
+
[key: string]: string;
|
|
12387
|
+
};
|
|
12388
|
+
method: HttpMethod;
|
|
12389
|
+
progress?: (pct: number) => void;
|
|
12390
|
+
};
|
|
12391
|
+
|
|
12158
12392
|
/**
|
|
12159
12393
|
* Custom UI event dispatched throughout the rescale gesture lifecycle (see {@link RescaleEventType}).
|
|
12160
12394
|
*/
|
|
@@ -12167,11 +12401,11 @@ declare class RescaleEvent extends CustomUIEvent<RescaleEventArgsClass> {
|
|
|
12167
12401
|
*/
|
|
12168
12402
|
declare type RescaleEventArgs = {
|
|
12169
12403
|
element: HTMLElement | SVGElement;
|
|
12170
|
-
origin:
|
|
12171
|
-
currentPosition:
|
|
12404
|
+
origin: Point;
|
|
12405
|
+
currentPosition: Point;
|
|
12172
12406
|
startTime: number;
|
|
12173
12407
|
handle: string;
|
|
12174
|
-
targetRect?:
|
|
12408
|
+
targetRect?: Rect;
|
|
12175
12409
|
};
|
|
12176
12410
|
|
|
12177
12411
|
/**
|
|
@@ -12181,9 +12415,9 @@ declare class RescaleEventArgsClass {
|
|
|
12181
12415
|
private _builder;
|
|
12182
12416
|
private constructor();
|
|
12183
12417
|
/** @readonly Gets the current pointer position. */
|
|
12184
|
-
get currentPosition():
|
|
12418
|
+
get currentPosition(): Point;
|
|
12185
12419
|
/** @readonly Gets the rectangle the element is being resized to. */
|
|
12186
|
-
get targetRect():
|
|
12420
|
+
get targetRect(): Rect;
|
|
12187
12421
|
/** @readonly Gets the element being resized. */
|
|
12188
12422
|
get element(): HTMLElement | SVGElement;
|
|
12189
12423
|
/** @readonly Gets the handle being dragged (see {@link RescaleHandle}). */
|
|
@@ -12257,6 +12491,45 @@ declare type ResizeEventArgs = {
|
|
|
12257
12491
|
|
|
12258
12492
|
declare const ResizeEventName = "resize";
|
|
12259
12493
|
|
|
12494
|
+
/** Wraps a completed `XMLHttpRequest` produced by {@link Http.request}, exposing its status, headers and body in convenient forms.
|
|
12495
|
+
* @deprecated */
|
|
12496
|
+
declare class Response_2 {
|
|
12497
|
+
/** @param req The completed `XMLHttpRequest`. @param processTime Elapsed request time, in milliseconds. */
|
|
12498
|
+
constructor(req: XMLHttpRequest, processTime: number);
|
|
12499
|
+
private _processTime;
|
|
12500
|
+
private _status;
|
|
12501
|
+
private _text;
|
|
12502
|
+
private _body;
|
|
12503
|
+
private _type;
|
|
12504
|
+
private _allHeadersRaw;
|
|
12505
|
+
private _headers;
|
|
12506
|
+
/** Elapsed request time, in milliseconds. */
|
|
12507
|
+
get processTime(): number;
|
|
12508
|
+
/** Response headers, parsed into a name/value map (lazily, on first access). */
|
|
12509
|
+
get headers(): {
|
|
12510
|
+
[key: string]: string;
|
|
12511
|
+
};
|
|
12512
|
+
/** The `Content-Length` response header, parsed as a number. */
|
|
12513
|
+
get size(): number;
|
|
12514
|
+
/** The `Content-Type` response header. */
|
|
12515
|
+
get mime(): string;
|
|
12516
|
+
/** The `Date` response header, parsed into a `Date`. */
|
|
12517
|
+
get date(): Date;
|
|
12518
|
+
private _parseHeaders;
|
|
12519
|
+
/** HTTP status code. */
|
|
12520
|
+
get status(): number;
|
|
12521
|
+
/** Raw response body as text. */
|
|
12522
|
+
get text(): string;
|
|
12523
|
+
/** Response body, typed per `XMLHttpRequest.responseType` (see {@link type}). */
|
|
12524
|
+
get content(): any;
|
|
12525
|
+
/** The `XMLHttpRequest.responseType` used for this request. */
|
|
12526
|
+
get type(): string;
|
|
12527
|
+
/**
|
|
12528
|
+
* Short-hand utility for getting or parsing json content (if any).
|
|
12529
|
+
*/
|
|
12530
|
+
get json(): any;
|
|
12531
|
+
}
|
|
12532
|
+
|
|
12260
12533
|
/** Represents a color in the RGB color space; `r`, `g`, `b` and `a` channels are normalized to the [0,1] range. */
|
|
12261
12534
|
export declare interface Rgba {
|
|
12262
12535
|
readonly r: number;
|
|
@@ -12277,9 +12550,9 @@ declare class RotateEvent extends CustomUIEvent<RotateEventArgsClass> {
|
|
|
12277
12550
|
*/
|
|
12278
12551
|
declare type RotateEventArgs = {
|
|
12279
12552
|
element: HTMLElement | SVGElement;
|
|
12280
|
-
origin:
|
|
12281
|
-
currentPosition:
|
|
12282
|
-
center:
|
|
12553
|
+
origin: Point;
|
|
12554
|
+
currentPosition: Point;
|
|
12555
|
+
center: Point;
|
|
12283
12556
|
startTime: number;
|
|
12284
12557
|
/**
|
|
12285
12558
|
* In radians, includes loops offset.
|
|
@@ -12294,13 +12567,13 @@ declare class RotateEventArgsClass {
|
|
|
12294
12567
|
private _builder;
|
|
12295
12568
|
private constructor();
|
|
12296
12569
|
/** @readonly Gets the current pointer position. */
|
|
12297
|
-
get currentPosition():
|
|
12570
|
+
get currentPosition(): Point;
|
|
12298
12571
|
/** @readonly Gets the current rotation, in radians. */
|
|
12299
12572
|
get rotation(): number;
|
|
12300
12573
|
/** @readonly Gets the element being rotated. */
|
|
12301
12574
|
get element(): HTMLElement | SVGElement;
|
|
12302
12575
|
/** @readonly Gets the pivot point the element is rotating around. */
|
|
12303
|
-
get center():
|
|
12576
|
+
get center(): Point;
|
|
12304
12577
|
/** Builds a new {@link RotateEventArgsClass} out of a plain {@link RotateEventArgs} builder. */
|
|
12305
12578
|
static fromArgs(builder: RotateEventArgs): RotateEventArgsClass;
|
|
12306
12579
|
}
|
|
@@ -12322,7 +12595,7 @@ declare enum RotateEventType {
|
|
|
12322
12595
|
*/
|
|
12323
12596
|
declare interface Rotator {
|
|
12324
12597
|
/** Gets or sets the pivot point the element rotates around; defaults to the element's own center. */
|
|
12325
|
-
center?:
|
|
12598
|
+
center?: Point;
|
|
12326
12599
|
/** Gets or sets the minimum allowed rotation in radians */
|
|
12327
12600
|
minRotation?: number;
|
|
12328
12601
|
/** Gets or sets the maximum allowed rotation in radians */
|
|
@@ -12394,7 +12667,7 @@ declare interface Rule {
|
|
|
12394
12667
|
exec: (input: string, lexer?: Lexer) => Token[];
|
|
12395
12668
|
}
|
|
12396
12669
|
|
|
12397
|
-
|
|
12670
|
+
declare namespace Scaffolding {
|
|
12398
12671
|
export {
|
|
12399
12672
|
OpenApi,
|
|
12400
12673
|
L10n,
|
|
@@ -12427,8 +12700,9 @@ export declare namespace Scaffolding {
|
|
|
12427
12700
|
TypeMetadata
|
|
12428
12701
|
}
|
|
12429
12702
|
}
|
|
12703
|
+
export { Scaffolding }
|
|
12430
12704
|
|
|
12431
|
-
|
|
12705
|
+
declare namespace Scaffolding_2 {
|
|
12432
12706
|
export {
|
|
12433
12707
|
PacemContenteditableAlignCommandElement,
|
|
12434
12708
|
KnownExecCommand,
|
|
@@ -12580,7 +12854,7 @@ declare const SearchFunctions: {
|
|
|
12580
12854
|
};
|
|
12581
12855
|
|
|
12582
12856
|
/** A line segment, represented as its two endpoints. */
|
|
12583
|
-
declare type Segment = [
|
|
12857
|
+
declare type Segment = [Point, Point];
|
|
12584
12858
|
|
|
12585
12859
|
/** A {@link Material} rendered by a user-supplied GLSL vertex/fragment shader pair, bypassing the built-in shading models. */
|
|
12586
12860
|
declare interface ShaderMaterial extends Material {
|
|
@@ -12597,8 +12871,8 @@ declare interface Shape extends PresentationObject {
|
|
|
12597
12871
|
markerStart?: Marker;
|
|
12598
12872
|
markerEnd?: Marker;
|
|
12599
12873
|
markerMid?: Marker;
|
|
12600
|
-
readonly vertices?:
|
|
12601
|
-
readonly boundingRect?:
|
|
12874
|
+
readonly vertices?: Point[];
|
|
12875
|
+
readonly boundingRect?: Rect;
|
|
12602
12876
|
}
|
|
12603
12877
|
|
|
12604
12878
|
/** Static helper to build an empty `ShapeGeometry`. */
|
|
@@ -12632,9 +12906,9 @@ declare abstract class ShapeElement extends PresentationElement implements Shape
|
|
|
12632
12906
|
/** @readonly Gets the SVG path data backing the shape. */
|
|
12633
12907
|
get pathData(): string;
|
|
12634
12908
|
/** @readonly Gets the bounding rectangle of the shape. */
|
|
12635
|
-
get boundingRect():
|
|
12909
|
+
get boundingRect(): Rect;
|
|
12636
12910
|
/** @readonly Gets the vertices making up the shape. */
|
|
12637
|
-
get vertices():
|
|
12911
|
+
get vertices(): Point[];
|
|
12638
12912
|
/** Computes the path data, vertices and bounding rect out of the shape's own geometry properties. */
|
|
12639
12913
|
protected abstract getShapeGeometry(): ShapeGeometry;
|
|
12640
12914
|
}
|
|
@@ -12648,8 +12922,8 @@ declare type ShapeFill = {
|
|
|
12648
12922
|
/** Computed geometry of a shape: its SVG path data, its vertices and its bounding rectangle. */
|
|
12649
12923
|
declare type ShapeGeometry = {
|
|
12650
12924
|
pathData: string;
|
|
12651
|
-
vertices:
|
|
12652
|
-
boundingRect:
|
|
12925
|
+
vertices: Point[];
|
|
12926
|
+
boundingRect: Rect;
|
|
12653
12927
|
};
|
|
12654
12928
|
|
|
12655
12929
|
/** Stroke styling for a {@link PacemMapShapeElement} (color, opacity, thickness). */
|
|
@@ -12736,17 +13010,17 @@ declare class Spherical {
|
|
|
12736
13010
|
* Computes the {@link Spherical} coordinates equivalent to the given 3D vector.
|
|
12737
13011
|
* @param v
|
|
12738
13012
|
*/
|
|
12739
|
-
static fromVector(v:
|
|
13013
|
+
static fromVector(v: Vector3D_2): Spherical;
|
|
12740
13014
|
/**
|
|
12741
13015
|
* Converts {@link Spherical} coordinates back into cartesian {@link Vector3D} coordinates.
|
|
12742
13016
|
* @param coords
|
|
12743
13017
|
*/
|
|
12744
|
-
static toVector(coords: Spherical):
|
|
13018
|
+
static toVector(coords: Spherical): Vector3D_2;
|
|
12745
13019
|
/**
|
|
12746
13020
|
* Builds the rotation matrix corresponding to the given azimuth (`theta`) and polar (`phi`) angles.
|
|
12747
13021
|
* @param coords
|
|
12748
13022
|
*/
|
|
12749
|
-
static toRotationMatrix(coords: Spherical):
|
|
13023
|
+
static toRotationMatrix(coords: Spherical): Matrix3D;
|
|
12750
13024
|
/**
|
|
12751
13025
|
* Builds the rotation matrix corresponding to the given azimuth (`theta`) and polar (`phi`) angles.
|
|
12752
13026
|
* @param coords
|
|
@@ -12754,7 +13028,7 @@ declare class Spherical {
|
|
|
12754
13028
|
static toRotationMatrix(coords: {
|
|
12755
13029
|
theta: number;
|
|
12756
13030
|
phi: number;
|
|
12757
|
-
}):
|
|
13031
|
+
}): Matrix3D;
|
|
12758
13032
|
}
|
|
12759
13033
|
|
|
12760
13034
|
/** Abstraction of a 2D drawing surface capable of (re)drawing `Drawable` items and exposing its viewbox and screen transform. */
|
|
@@ -12762,11 +13036,11 @@ declare interface Stage extends EventTarget {
|
|
|
12762
13036
|
/** Draws (or redraws) the whole stage, or just the provided item. */
|
|
12763
13037
|
draw(item?: Drawable): any;
|
|
12764
13038
|
/** Gets or sets the visible portion of the stage, in stage coordinates. */
|
|
12765
|
-
viewbox:
|
|
13039
|
+
viewbox: Rect;
|
|
12766
13040
|
/** Gets or sets how the viewbox is mapped onto the stage's viewport. */
|
|
12767
13041
|
aspectRatio?: ViewBoxAspectRatio;
|
|
12768
13042
|
/** @readonly Gets the matrix that projects stage coords into screen coords. */
|
|
12769
|
-
readonly transformMatrix:
|
|
13043
|
+
readonly transformMatrix: Matrix2D;
|
|
12770
13044
|
/** @readonly Gets the DOM element hosting the stage content. */
|
|
12771
13045
|
readonly stage: HTMLElement;
|
|
12772
13046
|
}
|
|
@@ -12786,25 +13060,25 @@ declare interface Stage_3 extends EventTarget {
|
|
|
12786
13060
|
/** Gets the technology-dependent native scene instance (e.g. a `THREE.Scene`), as returned by the active {@link Pacem3DAdapterElement}. */
|
|
12787
13061
|
readonly scene: any;
|
|
12788
13062
|
/** Gets the current viewport size. */
|
|
12789
|
-
readonly size:
|
|
13063
|
+
readonly size: Size;
|
|
12790
13064
|
/** Gets or sets whether the stage background should be transparent. */
|
|
12791
13065
|
transparent?: boolean;
|
|
12792
13066
|
/** Gets or sets the stage background color. */
|
|
12793
|
-
background?: string |
|
|
13067
|
+
background?: string | Rgba;
|
|
12794
13068
|
}
|
|
12795
13069
|
|
|
12796
13070
|
/** Event dispatched for pointer interactions (move/down/up/click) targeting a `Stage` at large (i.e. no specific hit `Drawable`). */
|
|
12797
13071
|
declare class StageEvent extends UI2DEvent<Stage> {
|
|
12798
|
-
constructor(type: string, args: Stage, originalEvent: MouseEvent | TouchEvent | KeyboardEvent, m?:
|
|
13072
|
+
constructor(type: string, args: Stage, originalEvent: MouseEvent | TouchEvent | KeyboardEvent, m?: Matrix2D);
|
|
12799
13073
|
}
|
|
12800
13074
|
|
|
12801
13075
|
/** User-interaction options (pan/zoom/click) of a `Stage`, including the key modifiers required to trigger them. */
|
|
12802
13076
|
declare type StageOptions = {
|
|
12803
13077
|
panControl: boolean;
|
|
12804
13078
|
zoomControl: boolean;
|
|
12805
|
-
panModifiers:
|
|
12806
|
-
zoomModifiers:
|
|
12807
|
-
clickModifiers:
|
|
13079
|
+
panModifiers: EventKeyModifier[];
|
|
13080
|
+
zoomModifiers: EventKeyModifier[];
|
|
13081
|
+
clickModifiers: EventKeyModifier[];
|
|
12808
13082
|
};
|
|
12809
13083
|
|
|
12810
13084
|
/** 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 +13142,15 @@ declare interface StateEventArgs<T> {
|
|
|
12868
13142
|
|
|
12869
13143
|
declare type StateEventType = 'push' | 'undo' | 'reset' | 'redo';
|
|
12870
13144
|
|
|
13145
|
+
/** Error thrown by {@link Http.request} when a request fails outright or completes with a non-2xx status. */
|
|
13146
|
+
declare class StatusCodeError extends Error {
|
|
13147
|
+
private statusCode;
|
|
13148
|
+
/** @param statusCode HTTP status code (`500` for network-level failures). @param statusText Status text / error message. */
|
|
13149
|
+
constructor(statusCode: number, statusText: string);
|
|
13150
|
+
/** The HTTP status code that caused this error. */
|
|
13151
|
+
get status(): number;
|
|
13152
|
+
}
|
|
13153
|
+
|
|
12871
13154
|
/** Determines how a `PacemStickyHeaderElement` behaves once the scroll offset passes its `threshold`. */
|
|
12872
13155
|
declare enum StickyHeaderVisibility {
|
|
12873
13156
|
/** Stays pinned/visible once past the threshold. */
|
|
@@ -12990,13 +13273,13 @@ declare type SwipeEventArgs = {
|
|
|
12990
13273
|
horizontalspeed?: number;
|
|
12991
13274
|
verticalspeed?: number;
|
|
12992
13275
|
timestamp: number;
|
|
12993
|
-
position:
|
|
13276
|
+
position: Point;
|
|
12994
13277
|
element: HTMLElement | SVGElement;
|
|
12995
13278
|
inertia?: number;
|
|
12996
13279
|
fling?: number;
|
|
12997
13280
|
t0: {
|
|
12998
13281
|
timestamp: number;
|
|
12999
|
-
position:
|
|
13282
|
+
position: Point;
|
|
13000
13283
|
};
|
|
13001
13284
|
vertical?: boolean;
|
|
13002
13285
|
};
|
|
@@ -13102,7 +13385,7 @@ declare interface Text_2 extends UiObject {
|
|
|
13102
13385
|
fontStyle?: string;
|
|
13103
13386
|
fontSize?: number;
|
|
13104
13387
|
color?: string;
|
|
13105
|
-
anchor?:
|
|
13388
|
+
anchor?: Point;
|
|
13106
13389
|
textAnchor?: 'start' | 'middle' | 'end';
|
|
13107
13390
|
}
|
|
13108
13391
|
|
|
@@ -13142,8 +13425,26 @@ declare interface Timeline {
|
|
|
13142
13425
|
cancelAnimation(): any;
|
|
13143
13426
|
}
|
|
13144
13427
|
|
|
13428
|
+
/**
|
|
13429
|
+
* `requestAnimationFrame`-driven timer that invokes a callback at (approximately) a given frame rate.
|
|
13430
|
+
* Instances are created via the static {@link Timer.run} factory rather than `new`.
|
|
13431
|
+
*/
|
|
13432
|
+
declare class Timer {
|
|
13433
|
+
#private;
|
|
13434
|
+
private constructor();
|
|
13435
|
+
private _run;
|
|
13436
|
+
/**
|
|
13437
|
+
* Creates and starts a new {@link Timer}.
|
|
13438
|
+
* @param callback Invoked on every tick with the current frame timestamp.
|
|
13439
|
+
* @param fps Target frame rate, in frames per second (default `60`).
|
|
13440
|
+
*/
|
|
13441
|
+
static run(callback: (time?: number) => void, fps?: number): Timer;
|
|
13442
|
+
/** Stops the timer, cancelling any pending animation frame. */
|
|
13443
|
+
stop(): void;
|
|
13444
|
+
}
|
|
13445
|
+
|
|
13145
13446
|
/** Event dispatched (and bubbling) when a time slot is selected on a {@link PacemAgendaElement}, carrying the selected date/time. */
|
|
13146
|
-
declare class TimeSelectEvent extends
|
|
13447
|
+
declare class TimeSelectEvent extends CustomTypedEvent<Date> {
|
|
13147
13448
|
constructor(date: Date);
|
|
13148
13449
|
}
|
|
13149
13450
|
|
|
@@ -13263,7 +13564,105 @@ declare type TypeMetadata = {
|
|
|
13263
13564
|
type?: 'object' | 'array';
|
|
13264
13565
|
};
|
|
13265
13566
|
|
|
13266
|
-
|
|
13567
|
+
declare namespace UI {
|
|
13568
|
+
export {
|
|
13569
|
+
DragDataMode,
|
|
13570
|
+
DropBehavior,
|
|
13571
|
+
DropTargetMissedBehavior,
|
|
13572
|
+
DragDropEventType,
|
|
13573
|
+
DragDropInitEventArgsClass,
|
|
13574
|
+
DragDropEventArgsClass,
|
|
13575
|
+
DragDropEventArgs,
|
|
13576
|
+
DragDropEvent,
|
|
13577
|
+
DragDropper,
|
|
13578
|
+
RescaleHandle,
|
|
13579
|
+
RescaleEventArgs,
|
|
13580
|
+
RescaleEventType,
|
|
13581
|
+
RescaleEventArgsClass,
|
|
13582
|
+
RescaleEvent,
|
|
13583
|
+
Rescaler,
|
|
13584
|
+
RotateEventArgs,
|
|
13585
|
+
RotateEventType,
|
|
13586
|
+
RotateEventArgsClass,
|
|
13587
|
+
RotateEvent,
|
|
13588
|
+
Rotator,
|
|
13589
|
+
SwipeEventArgs,
|
|
13590
|
+
SwipeEventType,
|
|
13591
|
+
SwipeEventArgsClass,
|
|
13592
|
+
SwipeEvent,
|
|
13593
|
+
Swiper
|
|
13594
|
+
}
|
|
13595
|
+
}
|
|
13596
|
+
export { UI }
|
|
13597
|
+
|
|
13598
|
+
/**
|
|
13599
|
+
* Base class for the custom UI events dispatched by the 2D stage/adapters, carrying the screen transform
|
|
13600
|
+
* matrix in effect at dispatch time so consumers can project screen coordinates into stage coordinates.
|
|
13601
|
+
*/
|
|
13602
|
+
declare abstract class UI2DEvent<T> extends CustomUIEvent<T> {
|
|
13603
|
+
#private;
|
|
13604
|
+
constructor(type: string, eventInit: CustomEventInit<T>, originalEvent: MouseEvent | TouchEvent | KeyboardEvent, transformMatrix: Matrix2D);
|
|
13605
|
+
/** Gets the screen transform matrix. */
|
|
13606
|
+
get transformMatrix(): Matrix2D;
|
|
13607
|
+
/** Projects a point (defaults to the event's screen coordinates) through the event's transform matrix. */
|
|
13608
|
+
project(pt?: Point): Point;
|
|
13609
|
+
}
|
|
13610
|
+
|
|
13611
|
+
/**
|
|
13612
|
+
* Abstract base of every {@link RenderableElement} that also carries an affine 3d transform (rotate/scale/offset,
|
|
13613
|
+
* combined into {@link transformMatrix}). Extended by {@link Pacem3DGroupElement}, {@link Pacem3DMeshElement} and
|
|
13614
|
+
* {@link Pacem3DObjectElement}.
|
|
13615
|
+
*/
|
|
13616
|
+
declare abstract class Ui3DElement extends RenderableElement implements Ui3DObject {
|
|
13617
|
+
/** Gets or sets the element's rotation, as a quaternion. */
|
|
13618
|
+
rotate: Geometry.LinearAlgebra.Quaternion;
|
|
13619
|
+
/** Gets or sets the element's scale, per axis (or a single number for uniform scaling). */
|
|
13620
|
+
scale: Geometry.LinearAlgebra.Point3D;
|
|
13621
|
+
/** Gets or sets the element's translation offset, applied on top of {@link RenderableElement.position}. */
|
|
13622
|
+
offset: Geometry.LinearAlgebra.Point3D;
|
|
13623
|
+
/** Gets the local transform 3D matrix (4x4). */
|
|
13624
|
+
transformMatrix: Geometry.LinearAlgebra.Matrix3D;
|
|
13625
|
+
/** @deprecated*/
|
|
13626
|
+
scaleX: number;
|
|
13627
|
+
/** @deprecated*/
|
|
13628
|
+
scaleY: number;
|
|
13629
|
+
/** @deprecated*/
|
|
13630
|
+
scaleZ: number;
|
|
13631
|
+
/** @deprecated*/
|
|
13632
|
+
translateX: number;
|
|
13633
|
+
/** @deprecated*/
|
|
13634
|
+
translateY: number;
|
|
13635
|
+
/** @deprecated*/
|
|
13636
|
+
translateZ: number;
|
|
13637
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
13638
|
+
private _computeTransformMatrix;
|
|
13639
|
+
}
|
|
13640
|
+
|
|
13641
|
+
/** 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. */
|
|
13642
|
+
declare abstract class UI3DEvent<T> extends CustomUIEvent<T> {
|
|
13643
|
+
#private;
|
|
13644
|
+
constructor(type: string, eventInit: CustomEventInit<T>, originalEvent: MouseEvent | TouchEvent | KeyboardEvent, point: Vector3D);
|
|
13645
|
+
/** Gets the event's source position in 3d coordinates. */
|
|
13646
|
+
get point(): Vector3D;
|
|
13647
|
+
}
|
|
13648
|
+
|
|
13649
|
+
/** A {@link Renderable} that also has an affine 3d transform (rotation, scale, translation) and a bounding volume. */
|
|
13650
|
+
declare interface Ui3DObject extends Renderable {
|
|
13651
|
+
/** Gets or sets the object's rotation. */
|
|
13652
|
+
rotate?: Quaternion_2;
|
|
13653
|
+
/** Gets or sets the object's scale, per axis. */
|
|
13654
|
+
scale?: Vector3D;
|
|
13655
|
+
/** Gets or sets the object's translation offset, applied on top of {@link Renderable.position}. */
|
|
13656
|
+
offset?: Vector3D;
|
|
13657
|
+
/** Gets or sets the composed local transform (scale, rotation, offset) matrix. */
|
|
13658
|
+
transformMatrix: Matrix3D_2;
|
|
13659
|
+
/** Gets the plain (untransformed via {@link transformMatrix}) bounding sphere. */
|
|
13660
|
+
readonly boundingSphere?: Sphere3D;
|
|
13661
|
+
/** Gets the plain (untransformed via {@link transformMatrix}) bounding box. */
|
|
13662
|
+
readonly boundingBox?: Box3D;
|
|
13663
|
+
}
|
|
13664
|
+
|
|
13665
|
+
declare namespace UI_2 {
|
|
13267
13666
|
export {
|
|
13268
13667
|
AdapterOrientation,
|
|
13269
13668
|
AdapterPageButtonRefreshEventArgs,
|
|
@@ -13317,7 +13716,7 @@ export declare namespace UI {
|
|
|
13317
13716
|
PacemDialogElement,
|
|
13318
13717
|
PacemDividerElement,
|
|
13319
13718
|
PacemIconElement,
|
|
13320
|
-
PacemImageElement,
|
|
13719
|
+
PacemImageElement_2 as PacemImageElement,
|
|
13321
13720
|
PacemInfiniteScrollerElement,
|
|
13322
13721
|
PacemAdaptedIterativeElement,
|
|
13323
13722
|
LightboxBehavior,
|
|
@@ -13368,73 +13767,6 @@ export declare namespace UI {
|
|
|
13368
13767
|
}
|
|
13369
13768
|
}
|
|
13370
13769
|
|
|
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
13770
|
declare const UI_3: typeof Components_3.UI;
|
|
13439
13771
|
|
|
13440
13772
|
declare const UI_4: typeof Components_3.UI;
|
|
@@ -13488,7 +13820,7 @@ export declare interface UIEventLike extends KeyEventLike {
|
|
|
13488
13820
|
/** A `Drawable` participating in the 2D transform pipeline (opacity and transform matrix). */
|
|
13489
13821
|
declare interface UiObject extends Drawable {
|
|
13490
13822
|
opacity?: number;
|
|
13491
|
-
readonly transformMatrix?:
|
|
13823
|
+
readonly transformMatrix?: Matrix2D;
|
|
13492
13824
|
}
|
|
13493
13825
|
|
|
13494
13826
|
/**
|
|
@@ -13519,17 +13851,17 @@ export declare class Utils {
|
|
|
13519
13851
|
static Dates: {
|
|
13520
13852
|
now: () => Date;
|
|
13521
13853
|
parse: typeof Utils.parseDate;
|
|
13522
|
-
isLeapYear: typeof
|
|
13523
|
-
daysInMonth: typeof
|
|
13854
|
+
isLeapYear: typeof Dates.isLeapYear;
|
|
13855
|
+
daysInMonth: typeof Dates.daysInMonth;
|
|
13524
13856
|
/**
|
|
13525
13857
|
* Gets whether a date is an `Invalid Date` or not.
|
|
13526
13858
|
* @param date
|
|
13527
13859
|
*/
|
|
13528
|
-
isDate: typeof
|
|
13529
|
-
dateOnly: typeof
|
|
13530
|
-
addMonths: typeof
|
|
13531
|
-
addDays: typeof
|
|
13532
|
-
daysBetween: typeof
|
|
13860
|
+
isDate: typeof Dates.isDate;
|
|
13861
|
+
dateOnly: typeof Dates.dateOnly;
|
|
13862
|
+
addMonths: typeof Dates.addMonths;
|
|
13863
|
+
addDays: typeof Dates.addDays;
|
|
13864
|
+
daysBetween: typeof Dates.daysBetween;
|
|
13533
13865
|
};
|
|
13534
13866
|
/**
|
|
13535
13867
|
* Computes a CSS `filter` value that tints black/grayscale content towards the given color (via a
|
|
@@ -13555,27 +13887,27 @@ export declare class Utils {
|
|
|
13555
13887
|
*/
|
|
13556
13888
|
isClassDefined(name: string): boolean;
|
|
13557
13889
|
/** 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):
|
|
13890
|
+
deserializeTransform(element: Element | CSSStyleDeclaration): Matrix2D;
|
|
13559
13891
|
};
|
|
13560
|
-
static leftPad: typeof
|
|
13561
|
-
static formatString: typeof
|
|
13562
|
-
static diff: typeof
|
|
13892
|
+
static leftPad: typeof Strings.leftPad;
|
|
13893
|
+
static formatString: typeof Strings.format;
|
|
13894
|
+
static diff: typeof Strings.diff;
|
|
13563
13895
|
static Strings: {
|
|
13564
|
-
leftPad: typeof
|
|
13565
|
-
format: typeof
|
|
13566
|
-
diff: typeof
|
|
13896
|
+
leftPad: typeof Strings.leftPad;
|
|
13897
|
+
format: typeof Strings.format;
|
|
13898
|
+
diff: typeof Strings.diff;
|
|
13567
13899
|
/** Strips HTML markup from `html`, returning its plain-text content. */
|
|
13568
13900
|
stripHTML: (html: string) => string;
|
|
13569
13901
|
};
|
|
13570
13902
|
static Blobs: {
|
|
13571
|
-
toDataURL: typeof
|
|
13572
|
-
fromDataURL: typeof
|
|
13573
|
-
toText: typeof
|
|
13574
|
-
fromText: typeof
|
|
13903
|
+
toDataURL: typeof Blobs.blobToDataURL;
|
|
13904
|
+
fromDataURL: typeof Blobs.dataURLToBlob;
|
|
13905
|
+
toText: typeof Blobs.blobToText;
|
|
13906
|
+
fromText: typeof Blobs.textToBlob;
|
|
13575
13907
|
};
|
|
13576
13908
|
static Images: {
|
|
13577
|
-
load: typeof
|
|
13578
|
-
resize: typeof
|
|
13909
|
+
load: typeof Imaging.loadImage;
|
|
13910
|
+
resize: typeof Imaging.resizeImage;
|
|
13579
13911
|
};
|
|
13580
13912
|
/** Loads an image from `src` and resolves with the `HTMLImageElement` once ready (or rejects on error). */
|
|
13581
13913
|
static loadImage(src: string): Promise<HTMLImageElement>;
|
|
@@ -13657,7 +13989,7 @@ export declare class Utils {
|
|
|
13657
13989
|
/** JSON-stringifies `obj` (via {@link Json}), or passes through `null`/`undefined` unchanged. */
|
|
13658
13990
|
static jsonSortStringify(obj: {}): string;
|
|
13659
13991
|
static Browsers: {
|
|
13660
|
-
detect: typeof
|
|
13992
|
+
detect: typeof detect;
|
|
13661
13993
|
};
|
|
13662
13994
|
/** Parses a `document.cookie`-style string (or `document.cookie` itself, by default) into a name/value map. */
|
|
13663
13995
|
static cookies(cookie?: string): Record<string, string>;
|
|
@@ -13700,7 +14032,7 @@ export declare class Utils {
|
|
|
13700
14032
|
* Retrieve the bounding box of the provided element as of its rendered appearance on the stage (takes transformations into account).
|
|
13701
14033
|
* @param el The element.
|
|
13702
14034
|
*/
|
|
13703
|
-
static offsetRect(el: Element):
|
|
14035
|
+
static offsetRect(el: Element): Rect;
|
|
13704
14036
|
/** Sums `offsetTop` up the `offsetParent` chain, giving `el`'s vertical position relative to the document rather than just its nearest positioned ancestor. */
|
|
13705
14037
|
static naturalOffsetTop(el: HTMLElement): number;
|
|
13706
14038
|
/** 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 +14051,9 @@ export declare class Utils {
|
|
|
13719
14051
|
* Retrieve the natural bounding box of the provided element (does not takes transformations into account).
|
|
13720
14052
|
* @param el {HTMLElement} The element.
|
|
13721
14053
|
*/
|
|
13722
|
-
static naturalOffsetRect(el: HTMLElement):
|
|
13723
|
-
static deserializeTransform(element: Element):
|
|
13724
|
-
static deserializeTransform(style: CSSStyleDeclaration):
|
|
14054
|
+
static naturalOffsetRect(el: HTMLElement): Rect;
|
|
14055
|
+
static deserializeTransform(element: Element): Matrix2D;
|
|
14056
|
+
static deserializeTransform(style: CSSStyleDeclaration): Matrix2D;
|
|
13725
14057
|
/** Sets the window's vertical scroll position, keeping the current horizontal position. */
|
|
13726
14058
|
static set scrollTop(y: number);
|
|
13727
14059
|
/** Sets the window's horizontal scroll position, keeping the current vertical position. */
|
|
@@ -13887,30 +14219,30 @@ declare class Utils_2 {
|
|
|
13887
14219
|
* @param p1 Point 1
|
|
13888
14220
|
* @param p2 Point 2
|
|
13889
14221
|
*/
|
|
13890
|
-
static slopeRad(p1:
|
|
14222
|
+
static slopeRad(p1: Point, p2: Point): number;
|
|
13891
14223
|
/**
|
|
13892
14224
|
* Computes the slope (in radians) of the segment joining two points and returns a strictly positive value (0 to 2*pi).
|
|
13893
14225
|
* @param p1 Point 1
|
|
13894
14226
|
* @param p2 Point 2
|
|
13895
14227
|
*/
|
|
13896
|
-
static slopeRad2(p1:
|
|
14228
|
+
static slopeRad2(p1: Point, p2: Point): number;
|
|
13897
14229
|
/**
|
|
13898
14230
|
* Computes the slope (in degrees) of the segment joining two points.
|
|
13899
14231
|
* @param p1 Point 1
|
|
13900
14232
|
* @param p2 Point 2
|
|
13901
14233
|
*/
|
|
13902
|
-
static slopeDeg(p1:
|
|
14234
|
+
static slopeDeg(p1: Point, p2: Point): number;
|
|
13903
14235
|
/**
|
|
13904
14236
|
* Computes the slope (in degrees) of the segment joining two points and returns a strictly positive value (0 to 360).
|
|
13905
14237
|
* @param p1 Point 1
|
|
13906
14238
|
* @param p2 Point 2
|
|
13907
14239
|
*/
|
|
13908
|
-
static slopeDeg2(p1:
|
|
14240
|
+
static slopeDeg2(p1: Point, p2: Point): number;
|
|
13909
14241
|
/**
|
|
13910
14242
|
* Computes the intersection rect among a set of provided rects.
|
|
13911
14243
|
* @param rects Rects to intersect
|
|
13912
14244
|
*/
|
|
13913
|
-
static intersect(...rects:
|
|
14245
|
+
static intersect(...rects: Rect[]): Rect;
|
|
13914
14246
|
/**
|
|
13915
14247
|
* Computes the intersection polygon(s) between two polygons.
|
|
13916
14248
|
* @param polygon1 First polygon.
|
|
@@ -13923,13 +14255,13 @@ declare class Utils_2 {
|
|
|
13923
14255
|
* @param segment1
|
|
13924
14256
|
* @param segment2
|
|
13925
14257
|
*/
|
|
13926
|
-
static intersect(segment1: Segment, segment2: Segment):
|
|
14258
|
+
static intersect(segment1: Segment, segment2: Segment): Point;
|
|
13927
14259
|
/**
|
|
13928
14260
|
* Computes the axis-aligned bounding box of a set of points.
|
|
13929
14261
|
* @param vertices Points to enclose.
|
|
13930
14262
|
* @returns The smallest rect containing all provided points.
|
|
13931
14263
|
*/
|
|
13932
|
-
static boundingBox(vertices:
|
|
14264
|
+
static boundingBox(vertices: Point[]): Rect;
|
|
13933
14265
|
/**
|
|
13934
14266
|
* Combines two polygons using a boolean set operator (union, intersection or difference).
|
|
13935
14267
|
* Internally triangulates the merged vertex set (via {@link mesh}) and filters the resulting
|
|
@@ -13941,7 +14273,7 @@ declare class Utils_2 {
|
|
|
13941
14273
|
*/
|
|
13942
14274
|
static combinePolygons(polygon1: Polygon, polygon2: Polygon, operator: PolygonCompound): {
|
|
13943
14275
|
polygons: Polygon[];
|
|
13944
|
-
mesh?:
|
|
14276
|
+
mesh?: Mesh;
|
|
13945
14277
|
triangles?: Polygon[];
|
|
13946
14278
|
} | null;
|
|
13947
14279
|
private static _mergePolygons;
|
|
@@ -13949,14 +14281,14 @@ declare class Utils_2 {
|
|
|
13949
14281
|
* Returns the 2D mesh (vertices and triangle indices) of the Delaunay triangulation for the provided points.
|
|
13950
14282
|
* @param points
|
|
13951
14283
|
*/
|
|
13952
|
-
static mesh(...points:
|
|
13953
|
-
static mesh(points:
|
|
14284
|
+
static mesh(...points: Point[]): any;
|
|
14285
|
+
static mesh(points: Point[]): any;
|
|
13954
14286
|
/**
|
|
13955
14287
|
* Computes the intersection point between the lines whose two provided segments belong to, if any.
|
|
13956
14288
|
* @param segment1 First segment
|
|
13957
14289
|
* @param segment2 Second segment
|
|
13958
14290
|
*/
|
|
13959
|
-
static intersectLines(segment1: Segment, segment2: Segment):
|
|
14291
|
+
static intersectLines(segment1: Segment, segment2: Segment): Point;
|
|
13960
14292
|
/**
|
|
13961
14293
|
* Computes the intersection point between the lines having the respective 'm' and 'q'.
|
|
13962
14294
|
* @param m1 First line's 'm'
|
|
@@ -13964,19 +14296,19 @@ declare class Utils_2 {
|
|
|
13964
14296
|
* @param m2 Second line's 'm'
|
|
13965
14297
|
* @param q2 Second line's 'q'
|
|
13966
14298
|
*/
|
|
13967
|
-
static intersectLines(m1: number, q1: number, m2: number, q2: number):
|
|
14299
|
+
static intersectLines(m1: number, q1: number, m2: number, q2: number): Point;
|
|
13968
14300
|
/**
|
|
13969
14301
|
* Computes the intersection point between the lines having the respective 'm' and 'q'.
|
|
13970
14302
|
* @param mq1 'm' and 'q' pair for line 1
|
|
13971
14303
|
* @param mq2 'm' and 'q' pair for line 2
|
|
13972
14304
|
*/
|
|
13973
|
-
static intersectLines(mq1: [number, number], mq2: [number, number]):
|
|
14305
|
+
static intersectLines(mq1: [number, number], mq2: [number, number]): Point;
|
|
13974
14306
|
/**
|
|
13975
14307
|
* Returns the eigenvalue for two given linear equations of the form ax + by + c = 0.
|
|
13976
14308
|
* @param l1
|
|
13977
14309
|
* @param l2
|
|
13978
14310
|
*/
|
|
13979
|
-
static cramer(l1: [number, number, number], l2: [number, number, number]):
|
|
14311
|
+
static cramer(l1: [number, number, number], l2: [number, number, number]): Point;
|
|
13980
14312
|
/**
|
|
13981
14313
|
* Returns the eigenvalue for two given linear equations of the form ax + by + c = 0.
|
|
13982
14314
|
* @param l1
|
|
@@ -13990,13 +14322,13 @@ declare class Utils_2 {
|
|
|
13990
14322
|
a: number;
|
|
13991
14323
|
b: number;
|
|
13992
14324
|
c: number;
|
|
13993
|
-
}):
|
|
14325
|
+
}): Point;
|
|
13994
14326
|
/**
|
|
13995
14327
|
* Returns the slope (m) and the y-axis intersection (q) of the line joining two given points.
|
|
13996
14328
|
* @param p1
|
|
13997
14329
|
* @param p2
|
|
13998
14330
|
*/
|
|
13999
|
-
static mq(p1:
|
|
14331
|
+
static mq(p1: Point, p2: Point): [number, number];
|
|
14000
14332
|
/**
|
|
14001
14333
|
* Returns the slope (m) and the y-axis intersection (q) of the line containing the provided segment.
|
|
14002
14334
|
* @param segment
|
|
@@ -14012,32 +14344,32 @@ declare class Utils_2 {
|
|
|
14012
14344
|
* @param precision Optional precision roundoff for the proximity check.
|
|
14013
14345
|
* @returns True if the points are considered coincident within tolerance; otherwise, false.
|
|
14014
14346
|
*/
|
|
14015
|
-
static areClose(p1:
|
|
14016
|
-
static areClose(p1:
|
|
14347
|
+
static areClose(p1: Point, p2: Point): boolean;
|
|
14348
|
+
static areClose(p1: Point, p2: Point, precision: number): boolean;
|
|
14017
14349
|
/**
|
|
14018
14350
|
* Returns the dot product between two vectors/points.
|
|
14019
14351
|
* @param v1
|
|
14020
14352
|
* @param v2
|
|
14021
14353
|
*/
|
|
14022
|
-
static dot(v1:
|
|
14354
|
+
static dot(v1: Point, v2: Point): number;
|
|
14023
14355
|
/**
|
|
14024
14356
|
* Returns the cross product between two vectors/points (magnitude along the z axis).
|
|
14025
14357
|
* @param v1
|
|
14026
14358
|
* @param v2
|
|
14027
14359
|
*/
|
|
14028
|
-
static cross(v1:
|
|
14360
|
+
static cross(v1: Point, v2: Point): number;
|
|
14029
14361
|
/**
|
|
14030
14362
|
* Returns the distance between two given points.
|
|
14031
14363
|
* @param p1
|
|
14032
14364
|
* @param p2
|
|
14033
14365
|
*/
|
|
14034
|
-
static distance(p1:
|
|
14366
|
+
static distance(p1: Point, p2: Point): number;
|
|
14035
14367
|
/**
|
|
14036
14368
|
* Returns the distance between a point and a line.
|
|
14037
14369
|
* @param p
|
|
14038
14370
|
* @param mq Line identified by a two-number array (slope and y-intercept).
|
|
14039
14371
|
*/
|
|
14040
|
-
static distance(p:
|
|
14372
|
+
static distance(p: Point, mq: [number, number]): number;
|
|
14041
14373
|
/**
|
|
14042
14374
|
* Returns the length of a segment.
|
|
14043
14375
|
* @param segment
|
|
@@ -14052,8 +14384,8 @@ declare class Utils_2 {
|
|
|
14052
14384
|
* @param clockwise Side to test for: `true` for the clockwise side, `false` for counter-clockwise.
|
|
14053
14385
|
* @param precision Optional precision roundoff used to consider the point "on the line" (and thus not "within" either side).
|
|
14054
14386
|
*/
|
|
14055
|
-
static isWithin(p:
|
|
14056
|
-
static isWithin(p:
|
|
14387
|
+
static isWithin(p: Point, segment: Segment, clockwise: boolean): boolean;
|
|
14388
|
+
static isWithin(p: Point, segment: Segment, clockwise: boolean, precision: number): boolean;
|
|
14057
14389
|
/**
|
|
14058
14390
|
* Checks whether a point lies on the opposite side (clockwise or counter-clockwise) of the line
|
|
14059
14391
|
* through a segment, strictly off the line. Complementary to {@link isWithin}.
|
|
@@ -14062,57 +14394,57 @@ declare class Utils_2 {
|
|
|
14062
14394
|
* @param clockwise Side to test *against*: `true` tests for the counter-clockwise side, `false` for clockwise.
|
|
14063
14395
|
* @param precision Optional precision roundoff used to consider the point "on the line".
|
|
14064
14396
|
*/
|
|
14065
|
-
static isBeyond(p:
|
|
14066
|
-
static isBeyond(p:
|
|
14397
|
+
static isBeyond(p: Point, segment: Segment, clockwise: boolean): boolean;
|
|
14398
|
+
static isBeyond(p: Point, segment: Segment, clockwise: boolean, precision: number): boolean;
|
|
14067
14399
|
/**
|
|
14068
14400
|
* Checks whether a point lies on the (infinite) line through a segment.
|
|
14069
14401
|
* @param p Point to test.
|
|
14070
14402
|
* @param segment Segment identifying the reference line.
|
|
14071
14403
|
* @param precision Optional precision roundoff for the proximity check.
|
|
14072
14404
|
*/
|
|
14073
|
-
static inLine(p:
|
|
14074
|
-
static inLine(p:
|
|
14405
|
+
static inLine(p: Point, segment: Segment): boolean;
|
|
14406
|
+
static inLine(p: Point, segment: Segment, precision: number): boolean;
|
|
14075
14407
|
/**
|
|
14076
14408
|
* Checks whether a point lies on the segment itself (on its line, and within its bounding box).
|
|
14077
14409
|
* @param p Point to test.
|
|
14078
14410
|
* @param segment Segment to test against.
|
|
14079
14411
|
* @param precision Optional precision roundoff for the proximity check.
|
|
14080
14412
|
*/
|
|
14081
|
-
static inSegment(p:
|
|
14082
|
-
static inSegment(p:
|
|
14413
|
+
static inSegment(p: Point, segment: Segment): boolean;
|
|
14414
|
+
static inSegment(p: Point, segment: Segment, precision: number): boolean;
|
|
14083
14415
|
/**
|
|
14084
14416
|
* Checks whether a point lies inside (or on the boundary of) a triangle, by verifying that it
|
|
14085
14417
|
* is on the same rotational side of all three edges.
|
|
14086
14418
|
* @param p Point to test.
|
|
14087
14419
|
* @param triangle Triangle vertices.
|
|
14088
14420
|
*/
|
|
14089
|
-
static inTriangle(p:
|
|
14421
|
+
static inTriangle(p: Point, triangle: [Point, Point, Point]): boolean;
|
|
14090
14422
|
/**
|
|
14091
14423
|
* Checks whether a given point lies inside a polygon in the 2d plane.
|
|
14092
14424
|
* @param p
|
|
14093
14425
|
* @param vertices Ordered polygon vertices
|
|
14094
14426
|
*/
|
|
14095
|
-
static inPolygon(p:
|
|
14427
|
+
static inPolygon(p: Point, vertices: Point[]): any;
|
|
14096
14428
|
/**
|
|
14097
14429
|
* Checks whether a given point lies inside a polygon in the 2d plane.
|
|
14098
14430
|
* @param p
|
|
14099
14431
|
* @param vertices Ordered polygon vertices
|
|
14100
14432
|
* @param precision Precision roundoff, strongly recommended in case of quasi-aligned geometries. Default value: 12)
|
|
14101
14433
|
*/
|
|
14102
|
-
static inPolygon(p:
|
|
14434
|
+
static inPolygon(p: Point, vertices: Point[], precision: number): any;
|
|
14103
14435
|
/**
|
|
14104
14436
|
* Returns the area of the polygon defined by the provided points.
|
|
14105
14437
|
* @param points Vertices of the polygon
|
|
14106
14438
|
*/
|
|
14107
|
-
static area(...points:
|
|
14108
|
-
static area(points:
|
|
14439
|
+
static area(...points: Point[]): number;
|
|
14440
|
+
static area(points: Point[]): number;
|
|
14109
14441
|
/**
|
|
14110
14442
|
* Convex hull of a set of points using the Andrew's monotone chain algorithm. O(n log n) time complexity.
|
|
14111
14443
|
* @param points Points to hull
|
|
14112
14444
|
* @returns Convex hull vertices in counter-clockwise order, starting from the leftmost one.
|
|
14113
14445
|
*/
|
|
14114
|
-
static convexHull(...points:
|
|
14115
|
-
static convexHull(points:
|
|
14446
|
+
static convexHull(...points: Point[]): Point[];
|
|
14447
|
+
static convexHull(points: Point[]): Point[];
|
|
14116
14448
|
}
|
|
14117
14449
|
|
|
14118
14450
|
/** Utility tools about statistics, probability, data analysis... */
|
|
@@ -14176,7 +14508,7 @@ declare class Utils_3 {
|
|
|
14176
14508
|
*/
|
|
14177
14509
|
static linearRegression(setX: number[], setY: number[]): [number, number];
|
|
14178
14510
|
static linearRegression<X, Y>(setX: X[], setY: Y[], selectorX: NumericKeySelector<X>, selectorY: NumericKeySelector<Y>): [number, number];
|
|
14179
|
-
static linearRegression(set:
|
|
14511
|
+
static linearRegression(set: Point[]): [number, number];
|
|
14180
14512
|
static linearRegression<T>(set: T[], selectorX: NumericKeySelector<T>, selectorY: NumericKeySelector<T>): [number, number];
|
|
14181
14513
|
/**
|
|
14182
14514
|
* Returns a set of utilities for gaussian distribution computations.
|
|
@@ -14251,7 +14583,7 @@ declare class Utils_4 {
|
|
|
14251
14583
|
}
|
|
14252
14584
|
|
|
14253
14585
|
/** Per-vertex texture (u, v) coordinates, one {@link Point} per vertex. */
|
|
14254
|
-
declare type UVMap =
|
|
14586
|
+
declare type UVMap = Point[];
|
|
14255
14587
|
|
|
14256
14588
|
/** 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
14589
|
declare interface Validator {
|
|
@@ -14280,7 +14612,7 @@ declare type ValidatorMetadata = KnownValidatorMetadata | {
|
|
|
14280
14612
|
declare type ValidatorType = Omit<string, 'required' | 'email' | 'length' | 'range' | 'regex' | 'binary' | 'compare' | 'async'>;
|
|
14281
14613
|
|
|
14282
14614
|
/** Represents a vector in the 2D space */
|
|
14283
|
-
declare interface Vector extends
|
|
14615
|
+
declare interface Vector extends Point {
|
|
14284
14616
|
}
|
|
14285
14617
|
|
|
14286
14618
|
/** 2D vector utils. */
|
|
@@ -14310,59 +14642,57 @@ declare class Vector {
|
|
|
14310
14642
|
* @param p1 Start point
|
|
14311
14643
|
* @param p2 End point
|
|
14312
14644
|
*/
|
|
14313
|
-
static from(p1:
|
|
14645
|
+
static from(p1: Point, p2: Point): Vector;
|
|
14314
14646
|
/**
|
|
14315
14647
|
* Returns the dot product between two vectors/points.
|
|
14316
14648
|
* @param v1
|
|
14317
14649
|
* @param v2
|
|
14318
14650
|
*/
|
|
14319
|
-
static dot(v1:
|
|
14651
|
+
static dot(v1: Point, v2: Point): number;
|
|
14320
14652
|
/**
|
|
14321
14653
|
* Returns the cross product between two vectors/points (magnitude along the z axis).
|
|
14322
14654
|
* @param v1
|
|
14323
14655
|
* @param v2
|
|
14324
14656
|
*/
|
|
14325
|
-
static cross(v1:
|
|
14657
|
+
static cross(v1: Point, v2: Point): number;
|
|
14326
14658
|
/**
|
|
14327
14659
|
* Checks if the two points are effectively the same location.
|
|
14328
14660
|
* @param v1 The first point.
|
|
14329
14661
|
* @param v2 The second point.
|
|
14330
14662
|
* @returns True if the points are considered coincident within tolerance; otherwise, false.
|
|
14331
14663
|
*/
|
|
14332
|
-
static areClose(v1:
|
|
14664
|
+
static areClose(v1: Point, v2: Point): boolean;
|
|
14333
14665
|
}
|
|
14334
14666
|
|
|
14335
14667
|
/** 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;
|
|
14668
|
+
declare type Vector3D = Geometry.LinearAlgebra.Vector3D;
|
|
14339
14669
|
|
|
14340
14670
|
/** Represents a vector in the 3D space */
|
|
14341
|
-
declare interface
|
|
14671
|
+
declare interface Vector3D_2 extends Point3D {
|
|
14342
14672
|
}
|
|
14343
14673
|
|
|
14344
14674
|
/** 3D vector utils. */
|
|
14345
|
-
declare class
|
|
14675
|
+
declare class Vector3D_2 {
|
|
14346
14676
|
/**
|
|
14347
14677
|
* Builds a {@link Vector3D} from its x, y, z components, in that order.
|
|
14348
14678
|
* @param args Exactly 3 numbers: x, y, z.
|
|
14349
14679
|
* @throws If the number of arguments is not exactly 3.
|
|
14350
14680
|
*/
|
|
14351
|
-
static from(...args: number[]):
|
|
14681
|
+
static from(...args: number[]): Vector3D_2;
|
|
14352
14682
|
/**
|
|
14353
14683
|
* Parses a string representation (e.g. `"1 2 3"` or `"1,2,3"`) into a {@link Vector3D}.
|
|
14354
14684
|
* @param input String to parse.
|
|
14355
14685
|
* @throws If the input cannot be parsed as exactly 3 numbers.
|
|
14356
14686
|
*/
|
|
14357
|
-
static parse(input: string):
|
|
14687
|
+
static parse(input: string): Vector3D_2;
|
|
14358
14688
|
/** Returns the unit vector along the x axis: `(1, 0, 0)`. */
|
|
14359
|
-
static i():
|
|
14689
|
+
static i(): Vector3D_2;
|
|
14360
14690
|
/** Returns the unit vector along the y axis: `(0, 1, 0)`. */
|
|
14361
|
-
static j():
|
|
14691
|
+
static j(): Vector3D_2;
|
|
14362
14692
|
/** Returns the unit vector along the z axis: `(0, 0, 1)`. */
|
|
14363
|
-
static k():
|
|
14693
|
+
static k(): Vector3D_2;
|
|
14364
14694
|
/** Returns the zero vector: `(0, 0, 0)`. */
|
|
14365
|
-
static zero():
|
|
14695
|
+
static zero(): Vector3D_2;
|
|
14366
14696
|
/**
|
|
14367
14697
|
* Subtracts a point p from another and returns the resulting vector.
|
|
14368
14698
|
* @param p Point to subtract
|
|
@@ -14385,13 +14715,13 @@ declare class Vector3D_3 {
|
|
|
14385
14715
|
* @param v1
|
|
14386
14716
|
* @param v2
|
|
14387
14717
|
*/
|
|
14388
|
-
static cross(v1: Point3D, v2: Point3D):
|
|
14718
|
+
static cross(v1: Point3D, v2: Point3D): Vector3D_2;
|
|
14389
14719
|
/**
|
|
14390
14720
|
* Scales a vector by a single factor applied uniformly to all axes.
|
|
14391
14721
|
* @param v Vector to scale.
|
|
14392
14722
|
* @param f Scale factor for x, y and z.
|
|
14393
14723
|
*/
|
|
14394
|
-
static scale(v:
|
|
14724
|
+
static scale(v: Vector3D_2, f: number): Vector3D_2;
|
|
14395
14725
|
/**
|
|
14396
14726
|
* Scales a vector by independent per-axis factors.
|
|
14397
14727
|
* @param v Vector to scale.
|
|
@@ -14399,7 +14729,7 @@ declare class Vector3D_3 {
|
|
|
14399
14729
|
* @param fy Scale factor for y.
|
|
14400
14730
|
* @param fz Scale factor for z.
|
|
14401
14731
|
*/
|
|
14402
|
-
static scale(v:
|
|
14732
|
+
static scale(v: Vector3D_2, fx: number, fy: number, fz: number): Vector3D_2;
|
|
14403
14733
|
/**
|
|
14404
14734
|
* Returns the squared magnitude (length) of the vector. Cheaper than {@link mag} since it avoids the square root.
|
|
14405
14735
|
* @param v
|
|
@@ -14421,25 +14751,27 @@ declare class Vector3D_3 {
|
|
|
14421
14751
|
* Returns the opposite vector (each component negated).
|
|
14422
14752
|
* @param v
|
|
14423
14753
|
*/
|
|
14424
|
-
static negate(v:
|
|
14754
|
+
static negate(v: Vector3D_2): Vector3D_2;
|
|
14425
14755
|
/**
|
|
14426
14756
|
* Returns the unit (normalized) vector having the same direction and sense of the provided one.
|
|
14427
14757
|
* @param v
|
|
14428
14758
|
*/
|
|
14429
|
-
static unit(v:
|
|
14759
|
+
static unit(v: Vector3D_2): Vector3D_2;
|
|
14430
14760
|
/**
|
|
14431
14761
|
* Normalizes the provided vector in place.
|
|
14432
14762
|
* @param v
|
|
14433
14763
|
*/
|
|
14434
|
-
static normalize(v:
|
|
14764
|
+
static normalize(v: Vector3D_2): void;
|
|
14435
14765
|
/**
|
|
14436
14766
|
* Returns the angle (in degrees) between two vectors.
|
|
14437
14767
|
* @param vector1
|
|
14438
14768
|
* @param vector2
|
|
14439
14769
|
*/
|
|
14440
|
-
static angleBetween(vector1:
|
|
14770
|
+
static angleBetween(vector1: Vector3D_2, vector2: Vector3D_2): number;
|
|
14441
14771
|
}
|
|
14442
14772
|
|
|
14773
|
+
declare type Vector3D_3 = Geometry.LinearAlgebra.Vector3D;
|
|
14774
|
+
|
|
14443
14775
|
/** User-supplied callback (see {@link WGSLModifierDelegates.vertexInput}) that returns extra WGSL statements to splice into the vertex-input stage. */
|
|
14444
14776
|
declare type VertexInputModifierDelegate = (...args: VertexInputModifierDelegateArgs) => string;
|
|
14445
14777
|
|
|
@@ -14476,7 +14808,7 @@ declare type ViewBoxAspectRatio = 'none' | {
|
|
|
14476
14808
|
export declare function ViewChild(selector: string): (target: any, prop: string, descriptor?: PropertyDescriptor) => void;
|
|
14477
14809
|
|
|
14478
14810
|
/** Event dispatched by a {@link PacemCalendarBaseElement} whenever its `viewDate` changes, carrying the new date. */
|
|
14479
|
-
declare class ViewDateChangeEvent extends
|
|
14811
|
+
declare class ViewDateChangeEvent extends CustomTypedEvent<Date> {
|
|
14480
14812
|
constructor(date: Date);
|
|
14481
14813
|
}
|
|
14482
14814
|
|
|
@@ -14549,14 +14881,11 @@ declare global {
|
|
|
14549
14881
|
AttributeChangeEventName,
|
|
14550
14882
|
avoidHandler,
|
|
14551
14883
|
Blobs,
|
|
14552
|
-
Charts,
|
|
14553
14884
|
CieXYZ,
|
|
14554
14885
|
Colors,
|
|
14555
14886
|
CommandEvent,
|
|
14556
14887
|
CommandEventArgs,
|
|
14557
14888
|
CommandEventName,
|
|
14558
|
-
Compile,
|
|
14559
|
-
Components,
|
|
14560
14889
|
Concurrent,
|
|
14561
14890
|
CookieData,
|
|
14562
14891
|
CookieStoreLike,
|
|
@@ -14567,7 +14896,6 @@ declare global {
|
|
|
14567
14896
|
CustomEventUtils,
|
|
14568
14897
|
CustomTypedEvent,
|
|
14569
14898
|
CustomUIEvent,
|
|
14570
|
-
DataAnalysis,
|
|
14571
14899
|
Dates,
|
|
14572
14900
|
Debounce,
|
|
14573
14901
|
DeepCloner,
|
|
@@ -14579,15 +14907,11 @@ declare global {
|
|
|
14579
14907
|
DiffMode,
|
|
14580
14908
|
DiffToken,
|
|
14581
14909
|
DiffTokenType,
|
|
14582
|
-
Drawing,
|
|
14583
|
-
Drawing3D,
|
|
14584
14910
|
EMPTY_MATCHER,
|
|
14585
14911
|
EventCoordinates,
|
|
14586
14912
|
EventKeyModifier,
|
|
14587
14913
|
EventKeyModifiers,
|
|
14588
14914
|
Expression,
|
|
14589
|
-
Fx,
|
|
14590
|
-
Geometry,
|
|
14591
14915
|
HistoryService,
|
|
14592
14916
|
Hsla,
|
|
14593
14917
|
Imaging,
|
|
@@ -14603,31 +14927,20 @@ declare global {
|
|
|
14603
14927
|
JsonSerializationOptions,
|
|
14604
14928
|
KeyEventLike,
|
|
14605
14929
|
Keys,
|
|
14606
|
-
L10n,
|
|
14607
|
-
LinearAlgebra,
|
|
14608
|
-
Logging,
|
|
14609
|
-
Maps,
|
|
14610
|
-
Markdown,
|
|
14611
|
-
Mathematics,
|
|
14612
14930
|
Matrix2D,
|
|
14613
|
-
Media,
|
|
14614
|
-
Networking,
|
|
14615
14931
|
NotifyPropertyChange,
|
|
14616
14932
|
NullChecker,
|
|
14617
14933
|
Numbers,
|
|
14618
|
-
NumberTheory,
|
|
14619
14934
|
OnAdopted,
|
|
14620
14935
|
OnAttributeChanged,
|
|
14621
14936
|
OnConnected,
|
|
14622
14937
|
OnDisconnected,
|
|
14623
14938
|
OnPropertyChanged,
|
|
14624
14939
|
OnViewActivated,
|
|
14625
|
-
OpenApi,
|
|
14626
14940
|
P,
|
|
14627
14941
|
PacemEventTarget,
|
|
14628
14942
|
parseAsNumericalArray,
|
|
14629
14943
|
PCSS,
|
|
14630
|
-
Plus,
|
|
14631
14944
|
Point,
|
|
14632
14945
|
preventDefaultHandler,
|
|
14633
14946
|
PropertyChangeEvent,
|
|
@@ -14650,7 +14963,6 @@ declare global {
|
|
|
14650
14963
|
RouterNavigatingEvent,
|
|
14651
14964
|
RouterNavigatingEventName,
|
|
14652
14965
|
RouterState,
|
|
14653
|
-
Scaffolding,
|
|
14654
14966
|
Size,
|
|
14655
14967
|
stopPropagationHandler,
|
|
14656
14968
|
Strings,
|
|
@@ -14658,16 +14970,29 @@ declare global {
|
|
|
14658
14970
|
Throttle,
|
|
14659
14971
|
TransformFunction,
|
|
14660
14972
|
Type,
|
|
14661
|
-
UI,
|
|
14662
14973
|
UIEventLike,
|
|
14663
14974
|
Utils,
|
|
14664
14975
|
ViewChild,
|
|
14665
14976
|
Watch,
|
|
14666
14977
|
WATCH_PROPS_VAR,
|
|
14667
14978
|
WatchConfig,
|
|
14668
|
-
|
|
14669
|
-
|
|
14670
|
-
|
|
14979
|
+
Animations,
|
|
14980
|
+
Behaviors,
|
|
14981
|
+
Compile,
|
|
14982
|
+
Components,
|
|
14983
|
+
CustomElementRegistry_2 as CustomElementRegistry,
|
|
14984
|
+
Drawing,
|
|
14985
|
+
Drawing3D,
|
|
14986
|
+
Geometry,
|
|
14987
|
+
Logging,
|
|
14988
|
+
Maps,
|
|
14989
|
+
Mathematics,
|
|
14990
|
+
Net,
|
|
14991
|
+
Plus,
|
|
14992
|
+
Scaffolding,
|
|
14993
|
+
Storage_2 as Storage,
|
|
14994
|
+
Transformer_2 as Transformer,
|
|
14995
|
+
UI
|
|
14671
14996
|
};
|
|
14672
14997
|
}
|
|
14673
14998
|
}
|