@plurid/plurid-engine 0.0.0-6 → 0.0.0-9
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/functions/index.d.ts +2 -2
- package/distribution/index.d.ts +3 -3
- package/distribution/index.es.js +1 -2
- package/distribution/index.es.js.map +1 -1
- package/distribution/index.js +1 -2
- package/distribution/index.js.map +1 -1
- package/distribution/modules/general/index.d.ts +2 -2
- package/distribution/modules/index.d.ts +8 -8
- package/distribution/modules/interaction/direction/index.d.ts +1 -1
- package/distribution/modules/interaction/index.d.ts +4 -4
- package/distribution/modules/planes/index.d.ts +2 -2
- package/distribution/modules/planes/registrar/index.d.ts +2 -2
- package/distribution/modules/routing/IsoMatcher/index.d.ts +1 -1
- package/distribution/modules/routing/Parser/index.d.ts +1 -1
- package/distribution/modules/routing/Parser/logic.d.ts +1 -1
- package/distribution/modules/routing/index.d.ts +5 -6
- package/distribution/modules/routing/logic/index.d.ts +3 -3
- package/distribution/modules/space/index.d.ts +5 -5
- package/distribution/modules/space/layout/index.d.ts +5 -5
- package/distribution/modules/space/location/index.d.ts +1 -1
- package/distribution/modules/space/tree/index.d.ts +2 -2
- package/distribution/modules/space/view/index.d.ts +1 -1
- package/distribution/modules/state/index.d.ts +2 -2
- package/package.json +21 -21
- package/distribution/modules/routing/IsoMatcher/interfaces.d.ts +0 -57
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import * as configuration from
|
|
2
|
-
import * as tree from
|
|
1
|
+
import * as configuration from './configuration';
|
|
2
|
+
import * as tree from './tree';
|
|
3
3
|
export { configuration, tree, };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as general from
|
|
2
|
-
import * as interaction from
|
|
3
|
-
import internatiolate from
|
|
4
|
-
import * as planes from
|
|
5
|
-
import * as routing from
|
|
6
|
-
import * as space from
|
|
7
|
-
import * as state from
|
|
8
|
-
import * as utilities from
|
|
1
|
+
import * as general from './general';
|
|
2
|
+
import * as interaction from './interaction';
|
|
3
|
+
import internatiolate from './internationalization';
|
|
4
|
+
import * as planes from './planes';
|
|
5
|
+
import * as routing from './routing';
|
|
6
|
+
import * as space from './space';
|
|
7
|
+
import * as state from './state';
|
|
8
|
+
import * as utilities from './utilities';
|
|
9
9
|
export { general, interaction, internatiolate, planes, routing, space, state, utilities, };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { WheelDeltas } from
|
|
1
|
+
import { WheelDeltas } from '../../../data/interfaces';
|
|
2
2
|
export declare const getWheelDirection: (deltas: WheelDeltas, ABSTHRESHOLD?: number, THRESHOLD?: number) => string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as direction from
|
|
2
|
-
import * as matrix from
|
|
3
|
-
import * as quaternion from
|
|
4
|
-
import * as transform from
|
|
1
|
+
import * as direction from './direction';
|
|
2
|
+
import * as matrix from './mathematics/matrix';
|
|
3
|
+
import * as quaternion from './mathematics/quaternion';
|
|
4
|
+
import * as transform from './mathematics/transform';
|
|
5
5
|
export { direction, matrix, quaternion, transform, };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
1
|
+
export * from './logic';
|
|
2
|
+
export * from './registrar';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import Registrar from
|
|
2
|
-
export * from
|
|
1
|
+
import Registrar from './object';
|
|
2
|
+
export * from './utilities';
|
|
3
3
|
export { Registrar, };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IsoMatcherData, IsoMatcherIndexedPlane, IsoMatcherPlaneResult, IsoMatcherRouteResult } from
|
|
1
|
+
import { IsoMatcherData, IsoMatcherIndexedPlane, IsoMatcherPlaneResult, IsoMatcherRouteResult } from '@plurid/plurid-data';
|
|
2
2
|
/**
|
|
3
3
|
* The `IsoMatcher` gathers all the known information about `routes` and `planes`
|
|
4
4
|
* and matches client-side or server-side, in-browser or in-plurid.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Indexed, PluridRouteFragments, PluridRouteFragmentElement, PluridRouteFragmentText } from '@plurid/plurid-data';
|
|
2
|
-
import { ParserParametersAndMatch } from
|
|
2
|
+
import { ParserParametersAndMatch } from './interfaces';
|
|
3
3
|
export declare const extractPathname: (location: string) => string;
|
|
4
4
|
/**
|
|
5
5
|
* Extracts the parameters names from a `route`.
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import IsoMatcher from
|
|
2
|
-
import RouteParser from
|
|
3
|
-
import { extractQuery } from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from "./logic";
|
|
1
|
+
import IsoMatcher from './IsoMatcher';
|
|
2
|
+
import RouteParser from './Parser';
|
|
3
|
+
import { extractQuery } from './Parser/logic';
|
|
4
|
+
export * from './Parser/interfaces';
|
|
5
|
+
export * from './logic';
|
|
7
6
|
export { IsoMatcher, RouteParser, extractQuery, };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
1
|
+
export * from './general';
|
|
2
|
+
export * from './validity';
|
|
3
|
+
export * from './utilities';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as layout from
|
|
2
|
-
import * as location from
|
|
3
|
-
import * as tree from
|
|
4
|
-
import * as utilities from
|
|
5
|
-
import * as view from
|
|
1
|
+
import * as layout from './layout';
|
|
2
|
+
import * as location from './location';
|
|
3
|
+
import * as tree from './tree';
|
|
4
|
+
import * as utilities from './utilities';
|
|
5
|
+
import * as view from './view';
|
|
6
6
|
export { layout, location, tree, utilities, view, };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import computeColumnLayout from
|
|
2
|
-
import computeRowLayout from
|
|
3
|
-
import computeFaceToFaceLayout from
|
|
4
|
-
import computeSheavesLayout from
|
|
5
|
-
import computeZigZagLayout from
|
|
1
|
+
import computeColumnLayout from './column';
|
|
2
|
+
import computeRowLayout from './row';
|
|
3
|
+
import computeFaceToFaceLayout from './faceToFace';
|
|
4
|
+
import computeSheavesLayout from './sheaves';
|
|
5
|
+
import computeZigZagLayout from './zigZag';
|
|
6
6
|
export { computeColumnLayout, computeRowLayout, computeFaceToFaceLayout, computeSheavesLayout, computeZigZagLayout, };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { computePath, computePluridPlaneLocation, recomputeChildrenLocation } from
|
|
1
|
+
import { computePath, computePluridPlaneLocation, recomputeChildrenLocation } from './logic';
|
|
2
2
|
export { computePath, computePluridPlaneLocation, recomputeChildrenLocation, };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import Tree from
|
|
2
|
-
import * as logic from
|
|
1
|
+
import Tree from './object';
|
|
2
|
+
import * as logic from './logic';
|
|
3
3
|
export { Tree, logic, };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { computeViewTree, computeCulledView, checkPageInView } from
|
|
1
|
+
import { computeViewTree, computeCulledView, checkPageInView } from './logic';
|
|
2
2
|
export { computeViewTree, computeCulledView, checkPageInView, };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import compute from
|
|
2
|
-
import * as local from
|
|
1
|
+
import compute from './compute';
|
|
2
|
+
import * as local from './local';
|
|
3
3
|
export { compute, local, };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plurid/plurid-engine",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-9",
|
|
4
4
|
"description": "Plurid Engine and Utility Functions",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"plurid",
|
|
@@ -51,30 +51,30 @@
|
|
|
51
51
|
"@plurid/plurid-themes": "*"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@plurid/plurid-data": "0.0.0-
|
|
55
|
-
"@plurid/plurid-functions": "0.0.0-
|
|
54
|
+
"@plurid/plurid-data": "0.0.0-10",
|
|
55
|
+
"@plurid/plurid-functions": "0.0.0-21",
|
|
56
56
|
"@plurid/plurid-pubsub": "0.0.0-5",
|
|
57
|
-
"@plurid/plurid-themes": "0.0.0-
|
|
58
|
-
"@rollup/plugin-commonjs": "^
|
|
59
|
-
"@types/jest": "^
|
|
60
|
-
"@types/node": "^
|
|
61
|
-
"@types/react": "^17.0.
|
|
62
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
63
|
-
"@typescript-eslint/parser": "^
|
|
57
|
+
"@plurid/plurid-themes": "0.0.0-2",
|
|
58
|
+
"@rollup/plugin-commonjs": "^21.0.2",
|
|
59
|
+
"@types/jest": "^27.4.1",
|
|
60
|
+
"@types/node": "^17.0.21",
|
|
61
|
+
"@types/react": "^17.0.39",
|
|
62
|
+
"@typescript-eslint/eslint-plugin": "^5.13.0",
|
|
63
|
+
"@typescript-eslint/parser": "^5.13.0",
|
|
64
64
|
"@zerollup/ts-transform-paths": "^1.7.18",
|
|
65
|
-
"coveralls": "^3.1.
|
|
66
|
-
"eslint": "^
|
|
67
|
-
"jest": "^27.
|
|
68
|
-
"jest-config": "^27.
|
|
65
|
+
"coveralls": "^3.1.1",
|
|
66
|
+
"eslint": "^8.10.0",
|
|
67
|
+
"jest": "^27.5.1",
|
|
68
|
+
"jest-config": "^27.5.1",
|
|
69
69
|
"react": "^17.0.2",
|
|
70
|
-
"rollup": "^2.
|
|
70
|
+
"rollup": "^2.68.0",
|
|
71
71
|
"rollup-plugin-sourcemaps": "^0.6.3",
|
|
72
72
|
"rollup-plugin-terser": "^7.0.2",
|
|
73
|
-
"rollup-plugin-typescript2": "^0.
|
|
74
|
-
"ts-jest": "^27.
|
|
75
|
-
"ts-node": "^10.
|
|
76
|
-
"ttypescript": "^1.5.
|
|
77
|
-
"typescript": "^4.
|
|
78
|
-
"typescript-transform-paths": "^
|
|
73
|
+
"rollup-plugin-typescript2": "^0.31.2",
|
|
74
|
+
"ts-jest": "^27.1.3",
|
|
75
|
+
"ts-node": "^10.5.0",
|
|
76
|
+
"ttypescript": "^1.5.13",
|
|
77
|
+
"typescript": "^4.6.2",
|
|
78
|
+
"typescript-transform-paths": "^3.3.1"
|
|
79
79
|
}
|
|
80
80
|
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { PluridRoute, PluridRoutePlane, PluridRoutePlaneObject, PluridPlane, PluridPlaneObject, PluridRouteFragments } from '@plurid/plurid-data';
|
|
2
|
-
export interface IsoMatcherData<C> {
|
|
3
|
-
routes?: PluridRoute<C>[];
|
|
4
|
-
routePlanes?: PluridRoutePlane<C>[];
|
|
5
|
-
planes?: PluridPlane<C>[];
|
|
6
|
-
}
|
|
7
|
-
export declare type IsoMatcherContext = 'route' | 'plane';
|
|
8
|
-
export interface IsoMatcherResultBase {
|
|
9
|
-
value: string;
|
|
10
|
-
parameters: Record<string, string>;
|
|
11
|
-
query: Record<string, string>;
|
|
12
|
-
}
|
|
13
|
-
export interface IsoMatcherRouteResultBase {
|
|
14
|
-
match: IsoMatcherResultBase;
|
|
15
|
-
}
|
|
16
|
-
export interface IsoMatcherRouteResultRoute<C> extends IsoMatcherRouteResultBase {
|
|
17
|
-
kind: 'Route';
|
|
18
|
-
data: PluridRoute<C>;
|
|
19
|
-
}
|
|
20
|
-
export interface IsoMatcherRouteResultRoutePlane<C> extends IsoMatcherRouteResultBase {
|
|
21
|
-
kind: 'RoutePlane';
|
|
22
|
-
data: PluridRoutePlaneObject<C>;
|
|
23
|
-
}
|
|
24
|
-
export declare type IsoMatcherRouteResult<C> = IsoMatcherRouteResultRoute<C> | IsoMatcherRouteResultRoutePlane<C>;
|
|
25
|
-
export interface IsoMatcherIndexedRoute<C> {
|
|
26
|
-
data: PluridRoute<C>;
|
|
27
|
-
}
|
|
28
|
-
export declare type IsoMatcherPlaneType = 'Plane' | 'RoutePlane';
|
|
29
|
-
export interface IsoMatcherPlaneResultMatch extends IsoMatcherResultBase {
|
|
30
|
-
fragments: PluridRouteFragments;
|
|
31
|
-
}
|
|
32
|
-
export interface IsoMatcherPlaneResultBase<C> {
|
|
33
|
-
parent?: string;
|
|
34
|
-
match: IsoMatcherPlaneResultMatch;
|
|
35
|
-
}
|
|
36
|
-
export interface IsoMatcherPlaneResultPlane<C> extends IsoMatcherPlaneResultBase<C> {
|
|
37
|
-
kind: 'Plane';
|
|
38
|
-
data: PluridPlaneObject<C>;
|
|
39
|
-
}
|
|
40
|
-
export interface IsoMatcherPlaneResultRoutePlane<C> extends IsoMatcherPlaneResultBase<C> {
|
|
41
|
-
kind: 'RoutePlane';
|
|
42
|
-
data: PluridRoutePlaneObject<C>;
|
|
43
|
-
}
|
|
44
|
-
export declare type IsoMatcherPlaneResult<C> = IsoMatcherPlaneResultPlane<C> | IsoMatcherPlaneResultRoutePlane<C>;
|
|
45
|
-
export declare type IsoMatcherResult<C> = IsoMatcherRouteResult<C> | IsoMatcherPlaneResult<C>;
|
|
46
|
-
export interface IsoMatcherIndexedPlaneBase<C> {
|
|
47
|
-
parent?: string;
|
|
48
|
-
}
|
|
49
|
-
export interface IsoMatcherIndexedPlanePlane<C> extends IsoMatcherIndexedPlaneBase<C> {
|
|
50
|
-
kind: 'Plane';
|
|
51
|
-
data: PluridPlaneObject<C>;
|
|
52
|
-
}
|
|
53
|
-
export interface IsoMatcherIndexedPlaneRoutePlane<C> extends IsoMatcherIndexedPlaneBase<C> {
|
|
54
|
-
kind: 'RoutePlane';
|
|
55
|
-
data: PluridRoutePlaneObject<C>;
|
|
56
|
-
}
|
|
57
|
-
export declare type IsoMatcherIndexedPlane<C> = IsoMatcherIndexedPlanePlane<C> | IsoMatcherIndexedPlaneRoutePlane<C>;
|