@plurid/plurid-engine 0.0.0-11 → 0.0.0-12
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.es.js +7 -6
- package/distribution/index.es.js.map +1 -1
- package/distribution/index.js +7 -6
- package/distribution/index.js.map +1 -1
- package/distribution/modules/general/configuration/index.d.ts +2 -2
- package/distribution/modules/planes/logic/index.d.ts +1 -1
- package/distribution/modules/routing/Parser/logic.d.ts +1 -1
- package/distribution/modules/routing/logic/general/index.d.ts +1 -1
- package/distribution/modules/routing/logic/utilities/index.d.ts +2 -2
- package/distribution/modules/routing/logic/validity/index.d.ts +1 -1
- package/distribution/modules/space/layout/column.d.ts +1 -1
- package/distribution/modules/space/layout/row.d.ts +1 -1
- package/distribution/modules/space/tree/logic.d.ts +4 -4
- package/distribution/modules/space/tree/object.d.ts +2 -1
- package/package.json +17 -16
package/distribution/index.js
CHANGED
|
@@ -2124,10 +2124,10 @@ var index$5 = Object.freeze({
|
|
|
2124
2124
|
computeZigZagLayout: computeZigZagLayout
|
|
2125
2125
|
});
|
|
2126
2126
|
|
|
2127
|
-
const resolveViewItem = (planes, view, configuration) => {
|
|
2127
|
+
const resolveViewItem = (planes, view, configuration, origin = "origin") => {
|
|
2128
2128
|
const {protocol: protocol, host: host} = configuration.network;
|
|
2129
2129
|
const viewData = typeof view === "string" ? view : view.plane;
|
|
2130
|
-
const viewAddress = computePlaneAddress(viewData);
|
|
2130
|
+
const viewAddress = computePlaneAddress(viewData, undefined, origin);
|
|
2131
2131
|
const iPlanes = planes.values();
|
|
2132
2132
|
const pluridPlanes = [];
|
|
2133
2133
|
for (const iPlane of iPlanes) {
|
|
@@ -2203,10 +2203,10 @@ const resolveViewItem = (planes, view, configuration) => {
|
|
|
2203
2203
|
return;
|
|
2204
2204
|
};
|
|
2205
2205
|
|
|
2206
|
-
const computeSpaceTree = (planes, view, configuration) => {
|
|
2206
|
+
const computeSpaceTree = (planes, view, configuration, origin = "origin") => {
|
|
2207
2207
|
const treePlanes = [];
|
|
2208
2208
|
for (const viewItem of view) {
|
|
2209
|
-
const treePlane = resolveViewItem(planes, viewItem, configuration);
|
|
2209
|
+
const treePlane = resolveViewItem(planes, viewItem, configuration, origin);
|
|
2210
2210
|
if (treePlane) {
|
|
2211
2211
|
treePlanes.push(treePlane);
|
|
2212
2212
|
}
|
|
@@ -2508,12 +2508,13 @@ var logic = Object.freeze({
|
|
|
2508
2508
|
});
|
|
2509
2509
|
|
|
2510
2510
|
class Tree {
|
|
2511
|
-
constructor(data) {
|
|
2511
|
+
constructor(data, origin = "origin") {
|
|
2512
2512
|
this.data = data;
|
|
2513
|
+
this.origin = origin;
|
|
2513
2514
|
}
|
|
2514
2515
|
compute() {
|
|
2515
2516
|
const {planes: planes, view: view, configuration: configuration} = this.data;
|
|
2516
|
-
return computeSpaceTree(planes, view, configuration);
|
|
2517
|
+
return computeSpaceTree(planes, view, configuration, this.origin);
|
|
2517
2518
|
}
|
|
2518
2519
|
}
|
|
2519
2520
|
|