@plurid/plurid-data 0.0.0-2 → 0.0.0-21
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/distribution/index.d.mts +2678 -0
- package/distribution/index.d.ts +2678 -3
- package/distribution/index.js +1720 -1453
- package/distribution/index.js.map +1 -1
- package/distribution/index.mjs +1762 -0
- package/distribution/index.mjs.map +1 -0
- package/package.json +64 -62
- package/distribution/constants/compare/index.d.ts +0 -2
- package/distribution/constants/configuration/index.d.ts +0 -15
- package/distribution/constants/defaults/index.d.ts +0 -19
- package/distribution/constants/entities/index.d.ts +0 -18
- package/distribution/constants/events/index.d.ts +0 -2
- package/distribution/constants/index.d.ts +0 -11
- package/distribution/constants/internationalization/chinese/index.d.ts +0 -3
- package/distribution/constants/internationalization/english/index.d.ts +0 -3
- package/distribution/constants/internationalization/fields.d.ts +0 -3
- package/distribution/constants/internationalization/french/index.d.ts +0 -3
- package/distribution/constants/internationalization/german/index.d.ts +0 -3
- package/distribution/constants/internationalization/hindi/index.d.ts +0 -3
- package/distribution/constants/internationalization/index.d.ts +0 -14
- package/distribution/constants/internationalization/italian/index.d.ts +0 -3
- package/distribution/constants/internationalization/japanese/index.d.ts +0 -3
- package/distribution/constants/internationalization/languages.d.ts +0 -3
- package/distribution/constants/internationalization/romanian/index.d.ts +0 -3
- package/distribution/constants/internationalization/russian/index.d.ts +0 -3
- package/distribution/constants/internationalization/spanish/index.d.ts +0 -3
- package/distribution/constants/keys/index.d.ts +0 -2
- package/distribution/constants/pubsub/index.d.ts +0 -32
- package/distribution/constants/shortcuts/index.d.ts +0 -16
- package/distribution/constants/space/index.d.ts +0 -7
- package/distribution/constants/tree/index.d.ts +0 -2
- package/distribution/enumerations/general/index.d.ts +0 -68
- package/distribution/enumerations/index.d.ts +0 -1
- package/distribution/index.es.js +0 -1451
- package/distribution/index.es.js.map +0 -1
- package/distribution/interfaces/external/animation/index.d.ts +0 -18
- package/distribution/interfaces/external/application/index.d.ts +0 -57
- package/distribution/interfaces/external/cluster/index.d.ts +0 -9
- package/distribution/interfaces/external/compare/index.d.ts +0 -13
- package/distribution/interfaces/external/component/index.d.ts +0 -45
- package/distribution/interfaces/external/configuration/index.d.ts +0 -206
- package/distribution/interfaces/external/configurator/index.d.ts +0 -12
- package/distribution/interfaces/external/index.d.ts +0 -16
- package/distribution/interfaces/external/keys/index.d.ts +0 -1
- package/distribution/interfaces/external/layout/index.d.ts +0 -159
- package/distribution/interfaces/external/link/index.d.ts +0 -133
- package/distribution/interfaces/external/metastate/index.d.ts +0 -5
- package/distribution/interfaces/external/plane/index.d.ts +0 -64
- package/distribution/interfaces/external/pubsub/index.d.ts +0 -11
- package/distribution/interfaces/external/pubsub/message.d.ts +0 -232
- package/distribution/interfaces/external/registrar/index.d.ts +0 -7
- package/distribution/interfaces/external/router/index.d.ts +0 -264
- package/distribution/interfaces/external/universe/index.d.ts +0 -37
- package/distribution/interfaces/external/view/index.d.ts +0 -18
- package/distribution/interfaces/external/window/index.d.ts +0 -4
- package/distribution/interfaces/helpers/index.d.ts +0 -10
- package/distribution/interfaces/index.d.ts +0 -3
- package/distribution/interfaces/internal/context/index.d.ts +0 -9
- package/distribution/interfaces/internal/index.d.ts +0 -7
- package/distribution/interfaces/internal/internationalization/index.d.ts +0 -157
- package/distribution/interfaces/internal/plane/index.d.ts +0 -10
- package/distribution/interfaces/internal/shortcuts/index.d.ts +0 -10
- package/distribution/interfaces/internal/state/index.d.ts +0 -41
- package/distribution/interfaces/internal/tree/index.d.ts +0 -106
- package/distribution/interfaces/internal/universe/index.d.ts +0 -27
- package/distribution/interfaces/internal/utilities/index.d.ts +0 -19
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export * from "./application/index";
|
|
2
|
-
export * from "./cluster/index";
|
|
3
|
-
export * from "./compare/index";
|
|
4
|
-
export * from "./component/index";
|
|
5
|
-
export * from "./configuration/index";
|
|
6
|
-
export * from "./keys/index";
|
|
7
|
-
export * from "./layout/index";
|
|
8
|
-
export * from "./link/index";
|
|
9
|
-
export * from "./metastate/index";
|
|
10
|
-
export * from "./plane/index";
|
|
11
|
-
export * from "./pubsub/index";
|
|
12
|
-
export * from "./registrar/index";
|
|
13
|
-
export * from "./router/index";
|
|
14
|
-
export * from "./universe/index";
|
|
15
|
-
export * from "./view/index";
|
|
16
|
-
export * from "./window/index";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare type KeyModifiers = 'SHIFT' | 'ALT' | 'CTRL' | 'META' | 'CTRLMETA';
|
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
import { LAYOUT_TYPES } from "../../../enumerations/index";
|
|
2
|
-
export interface Layout {
|
|
3
|
-
type: keyof typeof LAYOUT_TYPES;
|
|
4
|
-
}
|
|
5
|
-
export interface LayoutMeta extends Layout {
|
|
6
|
-
type: LAYOUT_TYPES.META;
|
|
7
|
-
layouts: LayoutMetaLayout[];
|
|
8
|
-
}
|
|
9
|
-
export interface LayoutMetaLayout {
|
|
10
|
-
size?: number;
|
|
11
|
-
pages?: string[];
|
|
12
|
-
layout: LayoutColumns | LayoutRows | LayoutFaceToFace | LayoutZigZag | LayoutSheaves;
|
|
13
|
-
}
|
|
14
|
-
export interface LayoutColumns extends Layout {
|
|
15
|
-
/**
|
|
16
|
-
* Layout Top View
|
|
17
|
-
*
|
|
18
|
-
* ‾1‾ ‾4‾
|
|
19
|
-
* ‾2‾ ‾5‾
|
|
20
|
-
* ‾3‾
|
|
21
|
-
*
|
|
22
|
-
*/
|
|
23
|
-
type: LAYOUT_TYPES.COLUMNS;
|
|
24
|
-
/**
|
|
25
|
-
* Integer value indicating the number of columns.
|
|
26
|
-
*
|
|
27
|
-
* If the number of pages is greater than the number of columns,
|
|
28
|
-
* the pages will overflow onto the next row.
|
|
29
|
-
*/
|
|
30
|
-
columns?: number;
|
|
31
|
-
/**
|
|
32
|
-
* Number of planes per column.
|
|
33
|
-
*/
|
|
34
|
-
columnLength?: number;
|
|
35
|
-
/**
|
|
36
|
-
* Distance between columns.
|
|
37
|
-
*
|
|
38
|
-
* Value between `0.00` and `x.00` (floating numbers) indicating percent of view width
|
|
39
|
-
* or between `0` and `x0...0` (integers) indicating pixel values.
|
|
40
|
-
*
|
|
41
|
-
* For example:
|
|
42
|
-
* `0.5` is 50% of view width,
|
|
43
|
-
* `5` is five pixels,
|
|
44
|
-
* `1.00` is 100% of view width,
|
|
45
|
-
* `1` is one pixels,
|
|
46
|
-
* `1.35` is 135% of view width,
|
|
47
|
-
* `135` is 135 pixels.
|
|
48
|
-
*/
|
|
49
|
-
gap?: number;
|
|
50
|
-
}
|
|
51
|
-
export interface LayoutRows extends Layout {
|
|
52
|
-
/**
|
|
53
|
-
* Layout Top View
|
|
54
|
-
*
|
|
55
|
-
* ‾1‾ ‾2‾
|
|
56
|
-
* ‾3‾ ‾4‾
|
|
57
|
-
* ‾5‾
|
|
58
|
-
*
|
|
59
|
-
*/
|
|
60
|
-
type: LAYOUT_TYPES.ROWS;
|
|
61
|
-
/**
|
|
62
|
-
* Integer value indicating the number of rows.
|
|
63
|
-
*
|
|
64
|
-
* If the number of pages is greater than the number of rows,
|
|
65
|
-
* the pages will overflow onto the next column.
|
|
66
|
-
*/
|
|
67
|
-
rows?: number;
|
|
68
|
-
/**
|
|
69
|
-
* Number of planes per row.
|
|
70
|
-
*/
|
|
71
|
-
rowLength?: number;
|
|
72
|
-
/**
|
|
73
|
-
* Distance between rows.
|
|
74
|
-
*
|
|
75
|
-
* Value between `0.00` and `x.00` (floating numbers) indicating percent of view width
|
|
76
|
-
* or between `0` and `x0...0` (integers) indicating pixel values.
|
|
77
|
-
*
|
|
78
|
-
* For example:
|
|
79
|
-
* `0.5` is 50% of view width,
|
|
80
|
-
* `5` is five pixels,
|
|
81
|
-
* `1.00` is 100% of view width,
|
|
82
|
-
* `1` is one pixels,
|
|
83
|
-
* `1.35` is 135% of view width,
|
|
84
|
-
* `135` is 135 pixels.
|
|
85
|
-
*/
|
|
86
|
-
gap?: number;
|
|
87
|
-
}
|
|
88
|
-
export interface LayoutFaceToFace extends Layout {
|
|
89
|
-
/**
|
|
90
|
-
* Layout Top View
|
|
91
|
-
*
|
|
92
|
-
* ╱ ‾‾ ╲
|
|
93
|
-
*
|
|
94
|
-
* ╱ first plane
|
|
95
|
-
*
|
|
96
|
-
* — (optional) middle plane(s)
|
|
97
|
-
*
|
|
98
|
-
* ╲ last plane
|
|
99
|
-
*/
|
|
100
|
-
type: LAYOUT_TYPES.FACE_TO_FACE;
|
|
101
|
-
/**
|
|
102
|
-
* Angle between the first plane and the last plane of a row.
|
|
103
|
-
*
|
|
104
|
-
* Value between `0.00` and `360.00`. Recommended between `0` and `180`.
|
|
105
|
-
*
|
|
106
|
-
* Default is `90`.
|
|
107
|
-
*/
|
|
108
|
-
angle?: number;
|
|
109
|
-
/**
|
|
110
|
-
* Distance between columns.
|
|
111
|
-
*
|
|
112
|
-
* Value between `0.00` and `x.00` (floating numbers) indicating percent of view width
|
|
113
|
-
* or between `0` and `x0...0` (integers) indicating pixel values.
|
|
114
|
-
*
|
|
115
|
-
* For example:
|
|
116
|
-
* `0.5` is 50% of view width,
|
|
117
|
-
* `5` is five pixels,
|
|
118
|
-
* `1.00` is 100% of view width,
|
|
119
|
-
* `1` is one pixels,
|
|
120
|
-
* `1.35` is 135% of view width,
|
|
121
|
-
* `135` is 135 pixels.
|
|
122
|
-
*/
|
|
123
|
-
gap?: number;
|
|
124
|
-
/**
|
|
125
|
-
* Integer value indicating the number of planes (columns) to be inserted in the middle.
|
|
126
|
-
*
|
|
127
|
-
* Default is `0`.
|
|
128
|
-
*/
|
|
129
|
-
middle?: number;
|
|
130
|
-
}
|
|
131
|
-
export interface LayoutZigZag extends Layout {
|
|
132
|
-
type: LAYOUT_TYPES.ZIG_ZAG;
|
|
133
|
-
/**
|
|
134
|
-
* Value between `0.00` and `360.00` and can be negative.
|
|
135
|
-
*/
|
|
136
|
-
angle?: number;
|
|
137
|
-
}
|
|
138
|
-
export interface LayoutSheaves extends Layout {
|
|
139
|
-
type: LAYOUT_TYPES.SHEAVES;
|
|
140
|
-
/**
|
|
141
|
-
* Value between `0.00` and `x.00` (floating numbers) or between `0` and `x00` (integers).
|
|
142
|
-
*
|
|
143
|
-
* The value is based on the current width of the screen and can be negative.
|
|
144
|
-
*/
|
|
145
|
-
depth?: number;
|
|
146
|
-
/**
|
|
147
|
-
* Value between `0.00` and `x.00` (floating numbers) or between `0` and `x00` (integers).
|
|
148
|
-
*
|
|
149
|
-
* The value is based on the current width of the screen and can be negative.
|
|
150
|
-
*/
|
|
151
|
-
offsetX?: number;
|
|
152
|
-
/**
|
|
153
|
-
* Value between `0.00` and `x.00` (floating numbers) or between `0` and `x00` (integers).
|
|
154
|
-
*
|
|
155
|
-
* The value is based on the current height of the screen and can be negative.
|
|
156
|
-
*/
|
|
157
|
-
offsetY?: number;
|
|
158
|
-
}
|
|
159
|
-
export declare type PluridLayout = LayoutColumns | LayoutRows | LayoutZigZag | LayoutFaceToFace | LayoutSheaves | LayoutMeta;
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { PluridComponent } from "../component/index";
|
|
3
|
-
export interface PluridLink {
|
|
4
|
-
/**
|
|
5
|
-
* The route of the plane.
|
|
6
|
-
*
|
|
7
|
-
* If IDs are provided to the planes, the id of the plane.
|
|
8
|
-
*
|
|
9
|
-
* The route path can:
|
|
10
|
-
*
|
|
11
|
-
* * be a simple string,
|
|
12
|
-
* e.g. `'/route/to/plane'` or `'/d71b21673037485a'`,
|
|
13
|
-
* where `d71b21673037485a` is a generated plane ID;
|
|
14
|
-
*
|
|
15
|
-
* * be a parametric route,
|
|
16
|
-
* e.g. `'/route/to/:plane'`, where `:plane` is the parameter value
|
|
17
|
-
* for the parameter defined in the `PluridPage[]`;
|
|
18
|
-
*
|
|
19
|
-
* * receive query `key=value` pairs,
|
|
20
|
-
* e.g. `'/route/to/plane?id=1&show=true'`, where `id=1` and `show=true` are `key=value` pairs
|
|
21
|
-
*
|
|
22
|
-
* * specify a text fragment,
|
|
23
|
-
* e.g. `'/route/to/plane#:~:text=A%20door,is%20opened.,[0]'`,
|
|
24
|
-
* where the fragment `#:~:text=A%20door,is%20opened.,[0]`
|
|
25
|
-
* is loosely based on the https://github.com/WICG/ScrollToTextFragment specification,
|
|
26
|
-
* and indicates the link to bring into view the first occurence `[0]`, if any,
|
|
27
|
-
* of the text fragment starting with `A door` and ending with `is opened.`.
|
|
28
|
-
*
|
|
29
|
-
* * specify a page element,
|
|
30
|
-
* e.g. `'/route/to/plane#:~:element=123,[1]'`,
|
|
31
|
-
* where the fragment `#:~:element=123,[1]`
|
|
32
|
-
* indicates the link to bring into view the second occurence `[1]`, if any,
|
|
33
|
-
* of the element with the attribute `data-plurid-element=123`.
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
* ### Larger Syntax Structure
|
|
37
|
-
*
|
|
38
|
-
* The syntax `/plane` is used to reference only the plurid planes within the same plurid space.
|
|
39
|
-
*
|
|
40
|
-
* In order to reference
|
|
41
|
-
*
|
|
42
|
-
* + planes within other clusters,
|
|
43
|
-
* + planes within other universes,
|
|
44
|
-
* + planes within other spaces of the same route,
|
|
45
|
-
* + planes within other spaces of a different route,
|
|
46
|
-
* + planes within other spaces of a different, controlled origin,
|
|
47
|
-
* + planes within other spaces of a different, foreign origins,
|
|
48
|
-
*
|
|
49
|
-
* the syntax `://` has to be used.
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
* A plurid link in the same space, same universe, same cluster.
|
|
53
|
-
*
|
|
54
|
-
* `://plane`
|
|
55
|
-
*
|
|
56
|
-
* example: `://dashboard`
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
* A plurid link to another cluster in the same universe, in the same space.
|
|
60
|
-
*
|
|
61
|
-
* `://cluster://plane`
|
|
62
|
-
*
|
|
63
|
-
* example: `://two://dashboard`
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
* A plurid link to another universe in the same space.
|
|
67
|
-
*
|
|
68
|
-
* `://universe://cluster://page`
|
|
69
|
-
*
|
|
70
|
-
* example: `://one://two://dashboard`
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
* A plurid link to a different space within the same route
|
|
74
|
-
*
|
|
75
|
-
* `://space://universe://cluster://plane`
|
|
76
|
-
*
|
|
77
|
-
* example: `://user123://dashboard`
|
|
78
|
-
*
|
|
79
|
-
*
|
|
80
|
-
* A plurid link to a different space within an another route.
|
|
81
|
-
*
|
|
82
|
-
* `://route://space://universe://cluster://plane`
|
|
83
|
-
*
|
|
84
|
-
* example: `://payment://user123://dashboard`
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
-
* A plurid link to a different space within a controlled origin.
|
|
88
|
-
*
|
|
89
|
-
* `https://controlled-origin://route://space://universe://cluster://plane`
|
|
90
|
-
*
|
|
91
|
-
* example: `https://example-c.com://payment://user123://dashboard`
|
|
92
|
-
*
|
|
93
|
-
*
|
|
94
|
-
* A plurid link to a different space within a foreign origin.
|
|
95
|
-
*
|
|
96
|
-
* `https://foreign-origin://route://space://universe://cluster://plane`
|
|
97
|
-
*
|
|
98
|
-
* example: `https://example-f.com://payment://user123://dashboard`
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
* To handle clusters of clusters use the `|>` syntax, which shows a nesting of clusters,
|
|
102
|
-
* e.g. `://clusterC|>clusterB|>clusterA`,
|
|
103
|
-
* denotes that Cluster C includes Cluster B which includes Cluster A.
|
|
104
|
-
*
|
|
105
|
-
*/
|
|
106
|
-
route: string;
|
|
107
|
-
/**
|
|
108
|
-
* Format the link as a simple anchor element. Default `false`.
|
|
109
|
-
*/
|
|
110
|
-
devisible?: boolean;
|
|
111
|
-
/**
|
|
112
|
-
* String character to be added inline after the PluridLink content. The default is `'`.
|
|
113
|
-
*
|
|
114
|
-
* If `devisible` the suffix is disabled.
|
|
115
|
-
*/
|
|
116
|
-
suffix?: string;
|
|
117
|
-
/**
|
|
118
|
-
* Execute function at click (onClick Event).
|
|
119
|
-
*/
|
|
120
|
-
atClick?: (event?: MouseEvent | React.MouseEvent) => void;
|
|
121
|
-
/**
|
|
122
|
-
* Show or not the default Not Found component, or pass a custom component
|
|
123
|
-
*/
|
|
124
|
-
notFound?: boolean | PluridComponent;
|
|
125
|
-
preview?: boolean;
|
|
126
|
-
previewFadeIn?: number;
|
|
127
|
-
previewFadeOut?: number;
|
|
128
|
-
previewOffsetX?: number;
|
|
129
|
-
previewOffsetY?: number;
|
|
130
|
-
previewComponent?: PluridComponent;
|
|
131
|
-
style?: React.CSSProperties;
|
|
132
|
-
className?: string;
|
|
133
|
-
}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { PluridComponent } from "../component/index";
|
|
3
|
-
export interface PluridPlane {
|
|
4
|
-
/**
|
|
5
|
-
* Custom HTML, React, Vue, or Angular component to be rendered in the PluridPlane.
|
|
6
|
-
*/
|
|
7
|
-
component: PluridComponent;
|
|
8
|
-
/**
|
|
9
|
-
* Route to the plane, e.g. `/plane-1`. By convention, it starts with an '/'.
|
|
10
|
-
*
|
|
11
|
-
* The `route` can be
|
|
12
|
-
* + unassigned,
|
|
13
|
-
* + assigned,
|
|
14
|
-
* + absolute.
|
|
15
|
-
*
|
|
16
|
-
* The unassigned route respects the format
|
|
17
|
-
* `/plane` and will be automatically assigned
|
|
18
|
-
* to the `default` space, `default` universe, `default` cluster.
|
|
19
|
-
*
|
|
20
|
-
* The assigned path respects the format
|
|
21
|
-
* `/path://space://universe://cluster://plane`
|
|
22
|
-
* and it presupposes the given `protocol` and `host`.
|
|
23
|
-
*
|
|
24
|
-
* The absolute path respects the format
|
|
25
|
-
* `protocol://host://path://space://universe://cluster://plane`
|
|
26
|
-
* and is useful for cross-origins requests.
|
|
27
|
-
*
|
|
28
|
-
* The route can have parameters, e.g. `/plane/:id`.
|
|
29
|
-
*
|
|
30
|
-
* The parameter, in the example `id`,
|
|
31
|
-
* will be passed in the property `plurid.parameters` to the component,
|
|
32
|
-
* e.g. `componentProperties.plurid.route.plane.parameters.id`.
|
|
33
|
-
*
|
|
34
|
-
*/
|
|
35
|
-
route: string;
|
|
36
|
-
}
|
|
37
|
-
export declare type PluridPlaneContext<T> = React.Context<T>;
|
|
38
|
-
export interface IndexedPluridPlane {
|
|
39
|
-
protocol: string;
|
|
40
|
-
host: string;
|
|
41
|
-
path: string;
|
|
42
|
-
space: string;
|
|
43
|
-
universe: string;
|
|
44
|
-
cluster: string;
|
|
45
|
-
plane: string;
|
|
46
|
-
route: string;
|
|
47
|
-
component: PluridComponent;
|
|
48
|
-
}
|
|
49
|
-
export interface RouteSegment {
|
|
50
|
-
[key: string]: any;
|
|
51
|
-
}
|
|
52
|
-
export interface RegisteredPluridPlane {
|
|
53
|
-
route: {
|
|
54
|
-
protocol: RouteSegment;
|
|
55
|
-
host: RouteSegment;
|
|
56
|
-
path: RouteSegment;
|
|
57
|
-
space: RouteSegment;
|
|
58
|
-
universe: RouteSegment;
|
|
59
|
-
cluster: RouteSegment;
|
|
60
|
-
plane: RouteSegment;
|
|
61
|
-
absolute: string;
|
|
62
|
-
};
|
|
63
|
-
component: PluridComponent;
|
|
64
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { PluridPubSubTopicKeysType } from "../../../constants/pubsub/index";
|
|
2
|
-
import { PluridPubSubPublishMessage, PluridPubSubSubscribeMessage } from "./message";
|
|
3
|
-
export * from "./message";
|
|
4
|
-
export interface PluridPubSubOptions {
|
|
5
|
-
debug?: boolean;
|
|
6
|
-
}
|
|
7
|
-
export interface PluridPubSub {
|
|
8
|
-
publish(message: PluridPubSubPublishMessage): void;
|
|
9
|
-
subscribe(message: PluridPubSubSubscribeMessage): number;
|
|
10
|
-
unsubscribe(index: number, topic: PluridPubSubTopicKeysType): boolean;
|
|
11
|
-
}
|
|
@@ -1,232 +0,0 @@
|
|
|
1
|
-
import { PLURID_PUBSUB_TOPIC } from "../../../constants/pubsub/index";
|
|
2
|
-
export declare type PluridPubSubCallback<D = any> = (data: D) => void;
|
|
3
|
-
export interface PluridPubSubDataValueNumber {
|
|
4
|
-
value: number;
|
|
5
|
-
}
|
|
6
|
-
export interface PluridPubSubDataValueString {
|
|
7
|
-
value: string;
|
|
8
|
-
}
|
|
9
|
-
export interface PluridPubSubPublishMessageConfiguration {
|
|
10
|
-
topic: typeof PLURID_PUBSUB_TOPIC.CONFIGURATION;
|
|
11
|
-
data: any;
|
|
12
|
-
}
|
|
13
|
-
export interface PluridPubSubSubscribeMessageConfiguration {
|
|
14
|
-
topic: typeof PLURID_PUBSUB_TOPIC.CONFIGURATION;
|
|
15
|
-
callback: PluridPubSubCallback<any>;
|
|
16
|
-
}
|
|
17
|
-
export interface PluridPubSubPublishMessageSpaceAnimatedTransform {
|
|
18
|
-
topic: typeof PLURID_PUBSUB_TOPIC.SPACE_ANIMATED_TRANSFORM;
|
|
19
|
-
data: any;
|
|
20
|
-
}
|
|
21
|
-
export interface PluridPubSubSubscribeMessageSpaceAnimatedTransform {
|
|
22
|
-
topic: typeof PLURID_PUBSUB_TOPIC.SPACE_ANIMATED_TRANSFORM;
|
|
23
|
-
callback: PluridPubSubCallback<any>;
|
|
24
|
-
}
|
|
25
|
-
export interface PluridPubSubPublishMessageSpaceRotateUp {
|
|
26
|
-
topic: typeof PLURID_PUBSUB_TOPIC.SPACE_ROTATE_UP;
|
|
27
|
-
data: PluridPubSubDataValueNumber;
|
|
28
|
-
}
|
|
29
|
-
export interface PluridPubSubPublishMessageSpaceRotateDown {
|
|
30
|
-
topic: typeof PLURID_PUBSUB_TOPIC.SPACE_ROTATE_DOWN;
|
|
31
|
-
data: PluridPubSubDataValueNumber;
|
|
32
|
-
}
|
|
33
|
-
export interface PluridPubSubPublishMessageSpaceRotateLeft {
|
|
34
|
-
topic: typeof PLURID_PUBSUB_TOPIC.SPACE_ROTATE_LEFT;
|
|
35
|
-
data: PluridPubSubDataValueNumber;
|
|
36
|
-
}
|
|
37
|
-
export interface PluridPubSubPublishMessageSpaceRotateRight {
|
|
38
|
-
topic: typeof PLURID_PUBSUB_TOPIC.SPACE_ROTATE_RIGHT;
|
|
39
|
-
data: PluridPubSubDataValueNumber;
|
|
40
|
-
}
|
|
41
|
-
export interface PluridPubSubSubscribeMessageSpaceRotateUp {
|
|
42
|
-
topic: typeof PLURID_PUBSUB_TOPIC.SPACE_ROTATE_UP;
|
|
43
|
-
callback: PluridPubSubCallback<PluridPubSubDataValueNumber>;
|
|
44
|
-
}
|
|
45
|
-
export interface PluridPubSubSubscribeMessageSpaceRotateDown {
|
|
46
|
-
topic: typeof PLURID_PUBSUB_TOPIC.SPACE_ROTATE_DOWN;
|
|
47
|
-
callback: PluridPubSubCallback<PluridPubSubDataValueNumber>;
|
|
48
|
-
}
|
|
49
|
-
export interface PluridPubSubSubscribeMessageSpaceRotateLeft {
|
|
50
|
-
topic: typeof PLURID_PUBSUB_TOPIC.SPACE_ROTATE_LEFT;
|
|
51
|
-
callback: PluridPubSubCallback<PluridPubSubDataValueNumber>;
|
|
52
|
-
}
|
|
53
|
-
export interface PluridPubSubSubscribeMessageSpaceRotateRight {
|
|
54
|
-
topic: typeof PLURID_PUBSUB_TOPIC.SPACE_ROTATE_RIGHT;
|
|
55
|
-
callback: PluridPubSubCallback<PluridPubSubDataValueNumber>;
|
|
56
|
-
}
|
|
57
|
-
export interface PluridPubSubPublishMessageSpaceRotateXWith {
|
|
58
|
-
topic: typeof PLURID_PUBSUB_TOPIC.SPACE_ROTATE_X_WITH;
|
|
59
|
-
data: PluridPubSubDataValueNumber;
|
|
60
|
-
}
|
|
61
|
-
export interface PluridPubSubPublishMessageSpaceRotateYWith {
|
|
62
|
-
topic: typeof PLURID_PUBSUB_TOPIC.SPACE_ROTATE_Y_WITH;
|
|
63
|
-
data: PluridPubSubDataValueNumber;
|
|
64
|
-
}
|
|
65
|
-
export interface PluridPubSubSubscribeMessageSpaceRotateXWith {
|
|
66
|
-
topic: typeof PLURID_PUBSUB_TOPIC.SPACE_ROTATE_X_WITH;
|
|
67
|
-
callback: PluridPubSubCallback<PluridPubSubDataValueNumber>;
|
|
68
|
-
}
|
|
69
|
-
export interface PluridPubSubSubscribeMessageSpaceRotateYWith {
|
|
70
|
-
topic: typeof PLURID_PUBSUB_TOPIC.SPACE_ROTATE_Y_WITH;
|
|
71
|
-
callback: PluridPubSubCallback<PluridPubSubDataValueNumber>;
|
|
72
|
-
}
|
|
73
|
-
export interface PluridPubSubPublishMessageSpaceRotateXTo {
|
|
74
|
-
topic: typeof PLURID_PUBSUB_TOPIC.SPACE_ROTATE_X_TO;
|
|
75
|
-
data: PluridPubSubDataValueNumber;
|
|
76
|
-
}
|
|
77
|
-
export interface PluridPubSubPublishMessageSpaceRotateYTo {
|
|
78
|
-
topic: typeof PLURID_PUBSUB_TOPIC.SPACE_ROTATE_Y_TO;
|
|
79
|
-
data: PluridPubSubDataValueNumber;
|
|
80
|
-
}
|
|
81
|
-
export interface PluridPubSubSubscribeMessageSpaceRotateXTo {
|
|
82
|
-
topic: typeof PLURID_PUBSUB_TOPIC.SPACE_ROTATE_X_TO;
|
|
83
|
-
callback: PluridPubSubCallback<PluridPubSubDataValueNumber>;
|
|
84
|
-
}
|
|
85
|
-
export interface PluridPubSubSubscribeMessageSpaceRotateYTo {
|
|
86
|
-
topic: typeof PLURID_PUBSUB_TOPIC.SPACE_ROTATE_Y_TO;
|
|
87
|
-
callback: PluridPubSubCallback<PluridPubSubDataValueNumber>;
|
|
88
|
-
}
|
|
89
|
-
export interface PluridPubSubPublishMessageSpaceTranslateUp {
|
|
90
|
-
topic: typeof PLURID_PUBSUB_TOPIC.SPACE_TRANSLATE_UP;
|
|
91
|
-
data: PluridPubSubDataValueNumber;
|
|
92
|
-
}
|
|
93
|
-
export interface PluridPubSubPublishMessageSpaceTranslateDown {
|
|
94
|
-
topic: typeof PLURID_PUBSUB_TOPIC.SPACE_TRANSLATE_DOWN;
|
|
95
|
-
data: PluridPubSubDataValueNumber;
|
|
96
|
-
}
|
|
97
|
-
export interface PluridPubSubPublishMessageSpaceTranslateLeft {
|
|
98
|
-
topic: typeof PLURID_PUBSUB_TOPIC.SPACE_TRANSLATE_LEFT;
|
|
99
|
-
data: PluridPubSubDataValueNumber;
|
|
100
|
-
}
|
|
101
|
-
export interface PluridPubSubPublishMessageSpaceTranslateRight {
|
|
102
|
-
topic: typeof PLURID_PUBSUB_TOPIC.SPACE_TRANSLATE_RIGHT;
|
|
103
|
-
data: PluridPubSubDataValueNumber;
|
|
104
|
-
}
|
|
105
|
-
export interface PluridPubSubSubscribeMessageSpaceTranslateUp {
|
|
106
|
-
topic: typeof PLURID_PUBSUB_TOPIC.SPACE_TRANSLATE_UP;
|
|
107
|
-
callback: PluridPubSubCallback<PluridPubSubDataValueNumber>;
|
|
108
|
-
}
|
|
109
|
-
export interface PluridPubSubSubscribeMessageSpaceTranslateDown {
|
|
110
|
-
topic: typeof PLURID_PUBSUB_TOPIC.SPACE_TRANSLATE_DOWN;
|
|
111
|
-
callback: PluridPubSubCallback<PluridPubSubDataValueNumber>;
|
|
112
|
-
}
|
|
113
|
-
export interface PluridPubSubSubscribeMessageSpaceTranslateLeft {
|
|
114
|
-
topic: typeof PLURID_PUBSUB_TOPIC.SPACE_TRANSLATE_LEFT;
|
|
115
|
-
callback: PluridPubSubCallback<PluridPubSubDataValueNumber>;
|
|
116
|
-
}
|
|
117
|
-
export interface PluridPubSubSubscribeMessageSpaceTranslateRight {
|
|
118
|
-
topic: typeof PLURID_PUBSUB_TOPIC.SPACE_TRANSLATE_RIGHT;
|
|
119
|
-
callback: PluridPubSubCallback<PluridPubSubDataValueNumber>;
|
|
120
|
-
}
|
|
121
|
-
export interface PluridPubSubPublishMessageSpaceTranslateXWith {
|
|
122
|
-
topic: typeof PLURID_PUBSUB_TOPIC.SPACE_TRANSLATE_X_WITH;
|
|
123
|
-
data: PluridPubSubDataValueNumber;
|
|
124
|
-
}
|
|
125
|
-
export interface PluridPubSubPublishMessageSpaceTranslateYWith {
|
|
126
|
-
topic: typeof PLURID_PUBSUB_TOPIC.SPACE_TRANSLATE_Y_WITH;
|
|
127
|
-
data: PluridPubSubDataValueNumber;
|
|
128
|
-
}
|
|
129
|
-
export interface PluridPubSubPublishMessageSpaceTranslateZWith {
|
|
130
|
-
topic: typeof PLURID_PUBSUB_TOPIC.SPACE_TRANSLATE_Z_WITH;
|
|
131
|
-
data: PluridPubSubDataValueNumber;
|
|
132
|
-
}
|
|
133
|
-
export interface PluridPubSubSubscribeMessageSpaceTranslateXWith {
|
|
134
|
-
topic: typeof PLURID_PUBSUB_TOPIC.SPACE_TRANSLATE_X_WITH;
|
|
135
|
-
callback: PluridPubSubCallback<PluridPubSubDataValueNumber>;
|
|
136
|
-
}
|
|
137
|
-
export interface PluridPubSubSubscribeMessageSpaceTranslateYWith {
|
|
138
|
-
topic: typeof PLURID_PUBSUB_TOPIC.SPACE_TRANSLATE_Y_WITH;
|
|
139
|
-
callback: PluridPubSubCallback<PluridPubSubDataValueNumber>;
|
|
140
|
-
}
|
|
141
|
-
export interface PluridPubSubSubscribeMessageSpaceTranslateZWith {
|
|
142
|
-
topic: typeof PLURID_PUBSUB_TOPIC.SPACE_TRANSLATE_Z_WITH;
|
|
143
|
-
callback: PluridPubSubCallback<PluridPubSubDataValueNumber>;
|
|
144
|
-
}
|
|
145
|
-
export interface PluridPubSubPublishMessageSpaceTranslateXTo {
|
|
146
|
-
topic: typeof PLURID_PUBSUB_TOPIC.SPACE_TRANSLATE_X_TO;
|
|
147
|
-
data: PluridPubSubDataValueNumber;
|
|
148
|
-
}
|
|
149
|
-
export interface PluridPubSubPublishMessageSpaceTranslateYTo {
|
|
150
|
-
topic: typeof PLURID_PUBSUB_TOPIC.SPACE_TRANSLATE_Y_TO;
|
|
151
|
-
data: PluridPubSubDataValueNumber;
|
|
152
|
-
}
|
|
153
|
-
export interface PluridPubSubPublishMessageSpaceTranslateZTo {
|
|
154
|
-
topic: typeof PLURID_PUBSUB_TOPIC.SPACE_TRANSLATE_Z_TO;
|
|
155
|
-
data: PluridPubSubDataValueNumber;
|
|
156
|
-
}
|
|
157
|
-
export interface PluridPubSubSubscribeMessageSpaceTranslateXTo {
|
|
158
|
-
topic: typeof PLURID_PUBSUB_TOPIC.SPACE_TRANSLATE_X_TO;
|
|
159
|
-
callback: PluridPubSubCallback<PluridPubSubDataValueNumber>;
|
|
160
|
-
}
|
|
161
|
-
export interface PluridPubSubSubscribeMessageSpaceTranslateYTo {
|
|
162
|
-
topic: typeof PLURID_PUBSUB_TOPIC.SPACE_TRANSLATE_Y_TO;
|
|
163
|
-
callback: PluridPubSubCallback<PluridPubSubDataValueNumber>;
|
|
164
|
-
}
|
|
165
|
-
export interface PluridPubSubSubscribeMessageSpaceTranslateZTo {
|
|
166
|
-
topic: typeof PLURID_PUBSUB_TOPIC.SPACE_TRANSLATE_Z_TO;
|
|
167
|
-
callback: PluridPubSubCallback<PluridPubSubDataValueNumber>;
|
|
168
|
-
}
|
|
169
|
-
export interface PluridPubSubPublishMessageSpaceScaleUp {
|
|
170
|
-
topic: typeof PLURID_PUBSUB_TOPIC.SPACE_SCALE_UP;
|
|
171
|
-
data: PluridPubSubDataValueNumber;
|
|
172
|
-
}
|
|
173
|
-
export interface PluridPubSubPublishMessageSpaceScaleDown {
|
|
174
|
-
topic: typeof PLURID_PUBSUB_TOPIC.SPACE_SCALE_DOWN;
|
|
175
|
-
data: PluridPubSubDataValueNumber;
|
|
176
|
-
}
|
|
177
|
-
export interface PluridPubSubPublishMessageSpaceScaleWith {
|
|
178
|
-
topic: typeof PLURID_PUBSUB_TOPIC.SPACE_SCALE_WITH;
|
|
179
|
-
data: PluridPubSubDataValueNumber;
|
|
180
|
-
}
|
|
181
|
-
export interface PluridPubSubSubscribeMessageSpaceScaleUp {
|
|
182
|
-
topic: typeof PLURID_PUBSUB_TOPIC.SPACE_SCALE_UP;
|
|
183
|
-
callback: PluridPubSubCallback<PluridPubSubDataValueNumber>;
|
|
184
|
-
}
|
|
185
|
-
export interface PluridPubSubSubscribeMessageSpaceScaleDown {
|
|
186
|
-
topic: typeof PLURID_PUBSUB_TOPIC.SPACE_SCALE_DOWN;
|
|
187
|
-
callback: PluridPubSubCallback<PluridPubSubDataValueNumber>;
|
|
188
|
-
}
|
|
189
|
-
export interface PluridPubSubSubscribeMessageSpaceScaleWith {
|
|
190
|
-
topic: typeof PLURID_PUBSUB_TOPIC.SPACE_SCALE_WITH;
|
|
191
|
-
callback: PluridPubSubCallback<PluridPubSubDataValueNumber>;
|
|
192
|
-
}
|
|
193
|
-
export interface PluridPubSubPublishMessageSpaceTransform {
|
|
194
|
-
topic: typeof PLURID_PUBSUB_TOPIC.SPACE_TRANSFORM;
|
|
195
|
-
data: any;
|
|
196
|
-
}
|
|
197
|
-
export interface PluridPubSubSubscribeMessageSpaceTransform {
|
|
198
|
-
topic: typeof PLURID_PUBSUB_TOPIC.SPACE_TRANSFORM;
|
|
199
|
-
callback: PluridPubSubCallback<any>;
|
|
200
|
-
}
|
|
201
|
-
export interface PluridPubSubMessageViewAddPlaneData {
|
|
202
|
-
plane: string;
|
|
203
|
-
}
|
|
204
|
-
export interface PluridPubSubPublishMessageViewAddPlane {
|
|
205
|
-
topic: typeof PLURID_PUBSUB_TOPIC.VIEW_ADD_PLANE;
|
|
206
|
-
data: PluridPubSubMessageViewAddPlaneData;
|
|
207
|
-
}
|
|
208
|
-
export interface PluridPubSubSubscribeMessageViewAddPlane {
|
|
209
|
-
topic: typeof PLURID_PUBSUB_TOPIC.VIEW_ADD_PLANE;
|
|
210
|
-
callback: PluridPubSubCallback<PluridPubSubMessageViewAddPlaneData>;
|
|
211
|
-
}
|
|
212
|
-
export interface PluridPubSubPublishMessageViewSetPlanes {
|
|
213
|
-
topic: typeof PLURID_PUBSUB_TOPIC.VIEW_SET_PLANES;
|
|
214
|
-
data: any;
|
|
215
|
-
}
|
|
216
|
-
export interface PluridPubSubSubscribeMessageViewSetPlanes {
|
|
217
|
-
topic: typeof PLURID_PUBSUB_TOPIC.VIEW_SET_PLANES;
|
|
218
|
-
callback: PluridPubSubCallback<any>;
|
|
219
|
-
}
|
|
220
|
-
export interface PluridPubSubMessageViewRemovePlaneData {
|
|
221
|
-
plane: string;
|
|
222
|
-
}
|
|
223
|
-
export interface PluridPubSubPublishMessageViewRemovePlane {
|
|
224
|
-
topic: typeof PLURID_PUBSUB_TOPIC.VIEW_REMOVE_PLANE;
|
|
225
|
-
data: PluridPubSubMessageViewRemovePlaneData;
|
|
226
|
-
}
|
|
227
|
-
export interface PluridPubSubSubscribeMessageViewRemovePlane {
|
|
228
|
-
topic: typeof PLURID_PUBSUB_TOPIC.VIEW_REMOVE_PLANE;
|
|
229
|
-
callback: PluridPubSubCallback<PluridPubSubMessageViewRemovePlaneData>;
|
|
230
|
-
}
|
|
231
|
-
export declare type PluridPubSubPublishMessage = PluridPubSubPublishMessageConfiguration | PluridPubSubPublishMessageSpaceAnimatedTransform | PluridPubSubPublishMessageSpaceRotateUp | PluridPubSubPublishMessageSpaceRotateDown | PluridPubSubPublishMessageSpaceRotateLeft | PluridPubSubPublishMessageSpaceRotateRight | PluridPubSubPublishMessageSpaceRotateXWith | PluridPubSubPublishMessageSpaceRotateYWith | PluridPubSubPublishMessageSpaceRotateXTo | PluridPubSubPublishMessageSpaceRotateYTo | PluridPubSubPublishMessageSpaceTranslateUp | PluridPubSubPublishMessageSpaceTranslateDown | PluridPubSubPublishMessageSpaceTranslateLeft | PluridPubSubPublishMessageSpaceTranslateRight | PluridPubSubPublishMessageSpaceTranslateXWith | PluridPubSubPublishMessageSpaceTranslateYWith | PluridPubSubPublishMessageSpaceTranslateZWith | PluridPubSubPublishMessageSpaceTranslateXTo | PluridPubSubPublishMessageSpaceTranslateYTo | PluridPubSubPublishMessageSpaceTranslateZTo | PluridPubSubPublishMessageSpaceScaleUp | PluridPubSubPublishMessageSpaceScaleDown | PluridPubSubPublishMessageSpaceScaleWith | PluridPubSubPublishMessageSpaceTransform | PluridPubSubPublishMessageViewAddPlane | PluridPubSubPublishMessageViewSetPlanes | PluridPubSubPublishMessageViewRemovePlane;
|
|
232
|
-
export declare type PluridPubSubSubscribeMessage = PluridPubSubSubscribeMessageConfiguration | PluridPubSubSubscribeMessageSpaceAnimatedTransform | PluridPubSubSubscribeMessageSpaceRotateUp | PluridPubSubSubscribeMessageSpaceRotateDown | PluridPubSubSubscribeMessageSpaceRotateLeft | PluridPubSubSubscribeMessageSpaceRotateRight | PluridPubSubSubscribeMessageSpaceRotateXWith | PluridPubSubSubscribeMessageSpaceRotateYWith | PluridPubSubSubscribeMessageSpaceRotateXTo | PluridPubSubSubscribeMessageSpaceRotateYTo | PluridPubSubSubscribeMessageSpaceTranslateUp | PluridPubSubSubscribeMessageSpaceTranslateDown | PluridPubSubSubscribeMessageSpaceTranslateLeft | PluridPubSubSubscribeMessageSpaceTranslateRight | PluridPubSubSubscribeMessageSpaceTranslateXWith | PluridPubSubSubscribeMessageSpaceTranslateYWith | PluridPubSubSubscribeMessageSpaceTranslateZWith | PluridPubSubSubscribeMessageSpaceTranslateXTo | PluridPubSubSubscribeMessageSpaceTranslateYTo | PluridPubSubSubscribeMessageSpaceTranslateZTo | PluridPubSubSubscribeMessageSpaceScaleUp | PluridPubSubSubscribeMessageSpaceScaleDown | PluridPubSubSubscribeMessageSpaceScaleWith | PluridPubSubSubscribeMessageSpaceTransform | PluridPubSubSubscribeMessageViewAddPlane | PluridPubSubSubscribeMessageViewSetPlanes | PluridPubSubSubscribeMessageViewRemovePlane;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { PluridPlane, RegisteredPluridPlane } from "../plane/index";
|
|
2
|
-
export interface PluridPlanesRegistrar {
|
|
3
|
-
register(planes: PluridPlane[]): void;
|
|
4
|
-
identify(): string[];
|
|
5
|
-
get(route: string): RegisteredPluridPlane | undefined;
|
|
6
|
-
getAll(): Map<string, RegisteredPluridPlane>;
|
|
7
|
-
}
|