@plurid/plurid-react 0.0.0-35 → 0.0.0-36
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 +62 -2
- package/distribution/index.d.ts +62 -2
- package/distribution/index.js +501 -432
- package/distribution/index.js.map +1 -1
- package/distribution/index.mjs +351 -283
- package/distribution/index.mjs.map +1 -1
- package/package.json +8 -8
package/distribution/index.mjs
CHANGED
|
@@ -4,8 +4,8 @@ import { planes, routing, interaction, space, general as general$1, cleanTemplat
|
|
|
4
4
|
export { IsoMatcher as PluridIsoMatcher, RouteParser as PluridRouteParser, definePluridConfiguration, pluridRouterNavigate } from '@plurid/plurid-engine';
|
|
5
5
|
import PluridPubSub from '@plurid/plurid-pubsub';
|
|
6
6
|
export { default as PluridPubSub } from '@plurid/plurid-pubsub';
|
|
7
|
-
import
|
|
8
|
-
import { connect, Provider } from 'react-redux';
|
|
7
|
+
import React45, { useState, useContext, useRef, useEffect, useMemo, useCallback, Component } from 'react';
|
|
8
|
+
import { connect, createSelectorHook, Provider } from 'react-redux';
|
|
9
9
|
import styled24, { css, keyframes, StyleSheetManager } from 'styled-components';
|
|
10
10
|
import isPropValid from '@emotion/is-prop-valid';
|
|
11
11
|
import { createSlice, createSelector, original, combineReducers, configureStore } from '@reduxjs/toolkit';
|
|
@@ -1195,7 +1195,7 @@ var development_default = store2;
|
|
|
1195
1195
|
// source/services/state/store/index.ts
|
|
1196
1196
|
var store3 = environment_default.production ? production_default : development_default;
|
|
1197
1197
|
var store_default = store3;
|
|
1198
|
-
var StateContext =
|
|
1198
|
+
var StateContext = React45.createContext(null);
|
|
1199
1199
|
var context_default = StateContext;
|
|
1200
1200
|
|
|
1201
1201
|
// source/services/logic/viewpoint/index.ts
|
|
@@ -1260,7 +1260,7 @@ var writeViewpointToURL = (transform2, param = VIEWPOINT_PARAM) => {
|
|
|
1260
1260
|
url.searchParams.set(param, encodeViewpoint(transform2));
|
|
1261
1261
|
window.history.replaceState(window.history.state, "", url.toString());
|
|
1262
1262
|
};
|
|
1263
|
-
var Context =
|
|
1263
|
+
var Context = React45.createContext(null);
|
|
1264
1264
|
var context_default2 = Context;
|
|
1265
1265
|
|
|
1266
1266
|
// source/services/state/actions/index.ts
|
|
@@ -2163,7 +2163,7 @@ styled24.div`
|
|
|
2163
2163
|
return "transparent";
|
|
2164
2164
|
}};
|
|
2165
2165
|
`;
|
|
2166
|
-
var ErrorBoundary = class extends
|
|
2166
|
+
var ErrorBoundary = class extends React45.Component {
|
|
2167
2167
|
constructor(props) {
|
|
2168
2168
|
super(props);
|
|
2169
2169
|
this.state = {
|
|
@@ -2182,7 +2182,7 @@ var ErrorBoundary = class extends React44.Component {
|
|
|
2182
2182
|
if (this.props.renderError) {
|
|
2183
2183
|
return this.props.renderError;
|
|
2184
2184
|
}
|
|
2185
|
-
return /* @__PURE__ */
|
|
2185
|
+
return /* @__PURE__ */ React45.createElement("h1", null, "Something went wrong.");
|
|
2186
2186
|
}
|
|
2187
2187
|
return this.props.children;
|
|
2188
2188
|
}
|
|
@@ -2326,7 +2326,7 @@ var PluridPlaneBridge = (properties) => {
|
|
|
2326
2326
|
transparentUI
|
|
2327
2327
|
} = stateConfiguration.global;
|
|
2328
2328
|
const bridgeLength = stateConfiguration.space.bridge?.length ?? 100;
|
|
2329
|
-
return /* @__PURE__ */
|
|
2329
|
+
return /* @__PURE__ */ React45.createElement(
|
|
2330
2330
|
StyledPluridPlaneBridge,
|
|
2331
2331
|
{
|
|
2332
2332
|
theme: stateGeneralTheme,
|
|
@@ -2365,7 +2365,7 @@ var ControlRefresh = (properties) => {
|
|
|
2365
2365
|
// #endregion methods
|
|
2366
2366
|
// #endregion required
|
|
2367
2367
|
} = properties;
|
|
2368
|
-
return /* @__PURE__ */
|
|
2368
|
+
return /* @__PURE__ */ React45.createElement(
|
|
2369
2369
|
PluridIconReset,
|
|
2370
2370
|
{
|
|
2371
2371
|
atClick: () => {
|
|
@@ -2395,7 +2395,7 @@ var ControlIsolate = (properties) => {
|
|
|
2395
2395
|
} = properties;
|
|
2396
2396
|
const title = isolated ? "isolated" : "isolate";
|
|
2397
2397
|
const fill = isolated ? true : false;
|
|
2398
|
-
return /* @__PURE__ */
|
|
2398
|
+
return /* @__PURE__ */ React45.createElement(
|
|
2399
2399
|
PluridIconRectangle,
|
|
2400
2400
|
{
|
|
2401
2401
|
atClick: () => {
|
|
@@ -2508,7 +2508,7 @@ var PluridPlaneControls = (properties) => {
|
|
|
2508
2508
|
const [path, setPath] = useState(treePlane.route);
|
|
2509
2509
|
const [showAddress, setShowAddress] = useState(false);
|
|
2510
2510
|
const [showSearch, setShowSearch] = useState(false);
|
|
2511
|
-
return /* @__PURE__ */
|
|
2511
|
+
return /* @__PURE__ */ React45.createElement(
|
|
2512
2512
|
StyledPluridPlaneControls,
|
|
2513
2513
|
{
|
|
2514
2514
|
theme: stateGeneralTheme,
|
|
@@ -2516,7 +2516,7 @@ var PluridPlaneControls = (properties) => {
|
|
|
2516
2516
|
transparentUI,
|
|
2517
2517
|
"data-plurid-entity": PLURID_ENTITY_PLANE_CONTROLS
|
|
2518
2518
|
},
|
|
2519
|
-
/* @__PURE__ */
|
|
2519
|
+
/* @__PURE__ */ React45.createElement(StyledPluridPlaneControlsLeft, null, parentTreePlane && /* @__PURE__ */ React45.createElement(
|
|
2520
2520
|
PluridIconArrowLeft,
|
|
2521
2521
|
{
|
|
2522
2522
|
atClick: (event) => {
|
|
@@ -2529,7 +2529,7 @@ var PluridPlaneControls = (properties) => {
|
|
|
2529
2529
|
theme: stateGeneralTheme,
|
|
2530
2530
|
title: "back"
|
|
2531
2531
|
}
|
|
2532
|
-
), /* @__PURE__ */
|
|
2532
|
+
), /* @__PURE__ */ React45.createElement(
|
|
2533
2533
|
PluridIconFrame,
|
|
2534
2534
|
{
|
|
2535
2535
|
atClick: (event) => {
|
|
@@ -2544,14 +2544,14 @@ var PluridPlaneControls = (properties) => {
|
|
|
2544
2544
|
theme: stateGeneralTheme,
|
|
2545
2545
|
title: "focus"
|
|
2546
2546
|
}
|
|
2547
|
-
), /* @__PURE__ */
|
|
2547
|
+
), /* @__PURE__ */ React45.createElement(
|
|
2548
2548
|
ControlRefresh_default,
|
|
2549
2549
|
{
|
|
2550
2550
|
theme: stateGeneralTheme,
|
|
2551
2551
|
refreshing,
|
|
2552
2552
|
refreshPlane
|
|
2553
2553
|
}
|
|
2554
|
-
), /* @__PURE__ */
|
|
2554
|
+
), /* @__PURE__ */ React45.createElement(
|
|
2555
2555
|
ControlIsolate_default,
|
|
2556
2556
|
{
|
|
2557
2557
|
theme: stateGeneralTheme,
|
|
@@ -2559,8 +2559,8 @@ var PluridPlaneControls = (properties) => {
|
|
|
2559
2559
|
isolatePlane
|
|
2560
2560
|
}
|
|
2561
2561
|
)),
|
|
2562
|
-
/* @__PURE__ */
|
|
2563
|
-
/* @__PURE__ */
|
|
2562
|
+
/* @__PURE__ */ React45.createElement(StyledPluridPlaneControlsCenter, null, title && /* @__PURE__ */ React45.createElement(React45.Fragment, null, path)),
|
|
2563
|
+
/* @__PURE__ */ React45.createElement(StyledPluridPlaneControlsRight, null, /* @__PURE__ */ React45.createElement(
|
|
2564
2564
|
PluridIconDelete,
|
|
2565
2565
|
{
|
|
2566
2566
|
atClick: () => {
|
|
@@ -2601,7 +2601,7 @@ var PluridPlaneContent = (properties) => {
|
|
|
2601
2601
|
children
|
|
2602
2602
|
} = properties;
|
|
2603
2603
|
const planeContentElement = useRef(null);
|
|
2604
|
-
return /* @__PURE__ */
|
|
2604
|
+
return /* @__PURE__ */ React45.createElement(
|
|
2605
2605
|
StyledPluridPlaneContent,
|
|
2606
2606
|
{
|
|
2607
2607
|
ref: planeContentElement,
|
|
@@ -2616,7 +2616,7 @@ var PlaneContent_default = PluridPlaneContent;
|
|
|
2616
2616
|
var PluridPlane = (properties) => {
|
|
2617
2617
|
const context = useContext(context_default2);
|
|
2618
2618
|
if (!context) {
|
|
2619
|
-
return /* @__PURE__ */
|
|
2619
|
+
return /* @__PURE__ */ React45.createElement(React45.Fragment, null);
|
|
2620
2620
|
}
|
|
2621
2621
|
const {
|
|
2622
2622
|
planeRenderError,
|
|
@@ -2785,7 +2785,7 @@ var PluridPlane = (properties) => {
|
|
|
2785
2785
|
const planeContentProperties = {
|
|
2786
2786
|
// updatePlaneSize,
|
|
2787
2787
|
};
|
|
2788
|
-
return /* @__PURE__ */
|
|
2788
|
+
return /* @__PURE__ */ React45.createElement(
|
|
2789
2789
|
StyledPluridPlane,
|
|
2790
2790
|
{
|
|
2791
2791
|
key,
|
|
@@ -2812,19 +2812,19 @@ var PluridPlane = (properties) => {
|
|
|
2812
2812
|
"data-plurid-plane": planeID,
|
|
2813
2813
|
"data-plurid-entity": PLURID_ENTITY_PLANE
|
|
2814
2814
|
},
|
|
2815
|
-
/* @__PURE__ */
|
|
2815
|
+
/* @__PURE__ */ React45.createElement(
|
|
2816
2816
|
StyledFocusAnchor,
|
|
2817
2817
|
{
|
|
2818
2818
|
tabIndex: 0,
|
|
2819
2819
|
id: focusAnchorID
|
|
2820
2820
|
}
|
|
2821
2821
|
),
|
|
2822
|
-
treePlane.show && /* @__PURE__ */
|
|
2822
|
+
treePlane.show && /* @__PURE__ */ React45.createElement(React45.Fragment, null, treePlane.parentPlaneID && /* @__PURE__ */ React45.createElement(
|
|
2823
2823
|
PlaneBridge_default,
|
|
2824
2824
|
{
|
|
2825
2825
|
mouseOver
|
|
2826
2826
|
}
|
|
2827
|
-
), showPlaneControls && /* @__PURE__ */
|
|
2827
|
+
), showPlaneControls && /* @__PURE__ */ React45.createElement(
|
|
2828
2828
|
PlaneControls_default,
|
|
2829
2829
|
{
|
|
2830
2830
|
plane,
|
|
@@ -2836,19 +2836,19 @@ var PluridPlane = (properties) => {
|
|
|
2836
2836
|
isolatePlane,
|
|
2837
2837
|
closePlane
|
|
2838
2838
|
}
|
|
2839
|
-
), planeRenderError ? /* @__PURE__ */
|
|
2839
|
+
), planeRenderError ? /* @__PURE__ */ React45.createElement(
|
|
2840
2840
|
ErrorBoundary_default,
|
|
2841
2841
|
{
|
|
2842
2842
|
renderError: typeof planeRenderError !== "boolean" ? planeRenderError : void 0
|
|
2843
2843
|
},
|
|
2844
|
-
/* @__PURE__ */
|
|
2844
|
+
/* @__PURE__ */ React45.createElement(
|
|
2845
2845
|
PlaneContent_default,
|
|
2846
2846
|
{
|
|
2847
2847
|
...planeContentProperties
|
|
2848
2848
|
},
|
|
2849
2849
|
children
|
|
2850
2850
|
)
|
|
2851
|
-
) : /* @__PURE__ */
|
|
2851
|
+
) : /* @__PURE__ */ React45.createElement(
|
|
2852
2852
|
PlaneContent_default,
|
|
2853
2853
|
{
|
|
2854
2854
|
...planeContentProperties
|
|
@@ -2888,8 +2888,10 @@ var ConnectedPluridPlane = connect(
|
|
|
2888
2888
|
{
|
|
2889
2889
|
context: context_default
|
|
2890
2890
|
}
|
|
2891
|
-
)(
|
|
2891
|
+
)(React45.memo(PluridPlane));
|
|
2892
2892
|
var Plane_default = ConnectedPluridPlane;
|
|
2893
|
+
var PluridPlaneIDContext = React45.createContext(void 0);
|
|
2894
|
+
var context_default3 = PluridPlaneIDContext;
|
|
2893
2895
|
|
|
2894
2896
|
// source/services/utilities/react/index.ts
|
|
2895
2897
|
var isReactRenderable = (component) => {
|
|
@@ -2917,7 +2919,7 @@ var PluridRoot = (properties) => {
|
|
|
2917
2919
|
} = plane;
|
|
2918
2920
|
const context = useContext(context_default2);
|
|
2919
2921
|
if (!context) {
|
|
2920
|
-
return /* @__PURE__ */
|
|
2922
|
+
return /* @__PURE__ */ React45.createElement(React45.Fragment, null);
|
|
2921
2923
|
}
|
|
2922
2924
|
const {
|
|
2923
2925
|
planesRegistrar,
|
|
@@ -2976,7 +2978,7 @@ var PluridRoot = (properties) => {
|
|
|
2976
2978
|
location: child.location
|
|
2977
2979
|
};
|
|
2978
2980
|
if (CustomPluridPlane && renderableCustomPlane) {
|
|
2979
|
-
return /* @__PURE__ */
|
|
2981
|
+
return /* @__PURE__ */ React45.createElement(
|
|
2980
2982
|
CustomPluridPlane,
|
|
2981
2983
|
{
|
|
2982
2984
|
...planeProperties2
|
|
@@ -2984,31 +2986,38 @@ var PluridRoot = (properties) => {
|
|
|
2984
2986
|
);
|
|
2985
2987
|
}
|
|
2986
2988
|
if (renderablePlane) {
|
|
2987
|
-
return /* @__PURE__ */
|
|
2988
|
-
|
|
2989
|
+
return /* @__PURE__ */ React45.createElement(
|
|
2990
|
+
context_default3.Provider,
|
|
2989
2991
|
{
|
|
2990
|
-
|
|
2992
|
+
key: keyBase + child.planeID,
|
|
2993
|
+
value: child.planeID
|
|
2991
2994
|
},
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
{
|
|
2995
|
-
...properties2
|
|
2996
|
-
}
|
|
2997
|
-
) : /* @__PURE__ */ React44.createElement(
|
|
2998
|
-
PlaneContext.Provider,
|
|
2995
|
+
/* @__PURE__ */ React45.createElement(
|
|
2996
|
+
Plane_default,
|
|
2999
2997
|
{
|
|
3000
|
-
|
|
2998
|
+
...planeProperties2
|
|
3001
2999
|
},
|
|
3002
|
-
/* @__PURE__ */
|
|
3000
|
+
!PlaneContext ? /* @__PURE__ */ React45.createElement(
|
|
3003
3001
|
Plane2,
|
|
3004
3002
|
{
|
|
3005
3003
|
...properties2
|
|
3006
3004
|
}
|
|
3005
|
+
) : /* @__PURE__ */ React45.createElement(
|
|
3006
|
+
PlaneContext.Provider,
|
|
3007
|
+
{
|
|
3008
|
+
value: planeContextValue
|
|
3009
|
+
},
|
|
3010
|
+
/* @__PURE__ */ React45.createElement(
|
|
3011
|
+
Plane2,
|
|
3012
|
+
{
|
|
3013
|
+
...properties2
|
|
3014
|
+
}
|
|
3015
|
+
)
|
|
3007
3016
|
)
|
|
3008
3017
|
)
|
|
3009
3018
|
);
|
|
3010
3019
|
}
|
|
3011
|
-
return /* @__PURE__ */
|
|
3020
|
+
return /* @__PURE__ */ React45.createElement(React45.Fragment, null);
|
|
3012
3021
|
};
|
|
3013
3022
|
const renderedPlane = renderPlane();
|
|
3014
3023
|
children.push(renderedPlane);
|
|
@@ -3034,14 +3043,14 @@ var PluridRoot = (properties) => {
|
|
|
3034
3043
|
);
|
|
3035
3044
|
const pluridPlaneID = plane.sourceID;
|
|
3036
3045
|
if (!pluridPlaneID) {
|
|
3037
|
-
return /* @__PURE__ */
|
|
3046
|
+
return /* @__PURE__ */ React45.createElement(React45.Fragment, null);
|
|
3038
3047
|
}
|
|
3039
3048
|
const pluridPlane = getRegisteredPlane(
|
|
3040
3049
|
pluridPlaneID,
|
|
3041
3050
|
planesRegistrar
|
|
3042
3051
|
);
|
|
3043
3052
|
if (!pluridPlane) {
|
|
3044
|
-
return /* @__PURE__ */
|
|
3053
|
+
return /* @__PURE__ */ React45.createElement(React45.Fragment, null);
|
|
3045
3054
|
}
|
|
3046
3055
|
const Plane = pluridPlane.component;
|
|
3047
3056
|
const pluridProperty = {
|
|
@@ -3068,14 +3077,14 @@ var PluridRoot = (properties) => {
|
|
|
3068
3077
|
};
|
|
3069
3078
|
if (CustomPluridPlane) {
|
|
3070
3079
|
if (typeof CustomPluridPlane !== "function") {
|
|
3071
|
-
return /* @__PURE__ */
|
|
3080
|
+
return /* @__PURE__ */ React45.createElement(React45.Fragment, null);
|
|
3072
3081
|
}
|
|
3073
|
-
return /* @__PURE__ */
|
|
3082
|
+
return /* @__PURE__ */ React45.createElement(
|
|
3074
3083
|
StyledPluridRoot,
|
|
3075
3084
|
{
|
|
3076
3085
|
"data-plurid-entity": PLURID_ENTITY_ROOT
|
|
3077
3086
|
},
|
|
3078
|
-
/* @__PURE__ */
|
|
3087
|
+
/* @__PURE__ */ React45.createElement(
|
|
3079
3088
|
CustomPluridPlane,
|
|
3080
3089
|
{
|
|
3081
3090
|
plane: pluridPlane,
|
|
@@ -3087,34 +3096,40 @@ var PluridRoot = (properties) => {
|
|
|
3087
3096
|
childrenPlanes
|
|
3088
3097
|
);
|
|
3089
3098
|
}
|
|
3090
|
-
return /* @__PURE__ */
|
|
3099
|
+
return /* @__PURE__ */ React45.createElement(
|
|
3091
3100
|
StyledPluridRoot,
|
|
3092
3101
|
{
|
|
3093
3102
|
"data-plurid-entity": PLURID_ENTITY_ROOT
|
|
3094
3103
|
},
|
|
3095
|
-
/* @__PURE__ */
|
|
3096
|
-
|
|
3104
|
+
/* @__PURE__ */ React45.createElement(
|
|
3105
|
+
context_default3.Provider,
|
|
3097
3106
|
{
|
|
3098
|
-
|
|
3099
|
-
treePlane: plane,
|
|
3100
|
-
planeID: plane.planeID,
|
|
3101
|
-
location
|
|
3107
|
+
value: plane.planeID
|
|
3102
3108
|
},
|
|
3103
|
-
|
|
3104
|
-
|
|
3109
|
+
/* @__PURE__ */ React45.createElement(
|
|
3110
|
+
Plane_default,
|
|
3105
3111
|
{
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
{
|
|
3111
|
-
value: planeContextValue
|
|
3112
|
+
plane: pluridPlane,
|
|
3113
|
+
treePlane: plane,
|
|
3114
|
+
planeID: plane.planeID,
|
|
3115
|
+
location
|
|
3112
3116
|
},
|
|
3113
|
-
/* @__PURE__ */
|
|
3117
|
+
!PlaneContext ? /* @__PURE__ */ React45.createElement(
|
|
3114
3118
|
Plane,
|
|
3115
3119
|
{
|
|
3116
3120
|
...planeProperties
|
|
3117
3121
|
}
|
|
3122
|
+
) : /* @__PURE__ */ React45.createElement(
|
|
3123
|
+
PlaneContext.Provider,
|
|
3124
|
+
{
|
|
3125
|
+
value: planeContextValue
|
|
3126
|
+
},
|
|
3127
|
+
/* @__PURE__ */ React45.createElement(
|
|
3128
|
+
Plane,
|
|
3129
|
+
{
|
|
3130
|
+
...planeProperties
|
|
3131
|
+
}
|
|
3132
|
+
)
|
|
3118
3133
|
)
|
|
3119
3134
|
)
|
|
3120
3135
|
),
|
|
@@ -3133,7 +3148,7 @@ var ConnectedPluridRoot = connect(
|
|
|
3133
3148
|
{
|
|
3134
3149
|
context: context_default
|
|
3135
3150
|
}
|
|
3136
|
-
)(
|
|
3151
|
+
)(React45.memo(PluridRoot));
|
|
3137
3152
|
var Root_default = ConnectedPluridRoot;
|
|
3138
3153
|
var StyledPluridPlaneLinks = styled24.div`
|
|
3139
3154
|
position: absolute;
|
|
@@ -3215,7 +3230,7 @@ var PluridPlaneLinks = (properties) => {
|
|
|
3215
3230
|
planeAnchor(target),
|
|
3216
3231
|
THICKNESS
|
|
3217
3232
|
);
|
|
3218
|
-
return /* @__PURE__ */
|
|
3233
|
+
return /* @__PURE__ */ React45.createElement(
|
|
3219
3234
|
StyledPluridPlaneLink,
|
|
3220
3235
|
{
|
|
3221
3236
|
key: link.id,
|
|
@@ -3229,7 +3244,7 @@ var PluridPlaneLinks = (properties) => {
|
|
|
3229
3244
|
}
|
|
3230
3245
|
);
|
|
3231
3246
|
});
|
|
3232
|
-
return /* @__PURE__ */
|
|
3247
|
+
return /* @__PURE__ */ React45.createElement(
|
|
3233
3248
|
StyledPluridPlaneLinks,
|
|
3234
3249
|
{
|
|
3235
3250
|
"data-plurid-entity": PLURID_ENTITY_PLANE_LINKS
|
|
@@ -3249,7 +3264,7 @@ var ConnectedPluridPlaneLinks = connect(
|
|
|
3249
3264
|
{
|
|
3250
3265
|
context: context_default
|
|
3251
3266
|
}
|
|
3252
|
-
)(
|
|
3267
|
+
)(React45.memo(PluridPlaneLinks));
|
|
3253
3268
|
var PlaneLinks_default = ConnectedPluridPlaneLinks;
|
|
3254
3269
|
var StyledAlignmentGuides = styled24.div`
|
|
3255
3270
|
position: absolute;
|
|
@@ -3323,12 +3338,12 @@ var AlignmentGuides = (properties) => {
|
|
|
3323
3338
|
if (guides.length === 0) {
|
|
3324
3339
|
return null;
|
|
3325
3340
|
}
|
|
3326
|
-
return /* @__PURE__ */
|
|
3341
|
+
return /* @__PURE__ */ React45.createElement(
|
|
3327
3342
|
StyledAlignmentGuides,
|
|
3328
3343
|
{
|
|
3329
3344
|
"data-plurid-entity": PLURID_ENTITY_ALIGNMENT_GUIDES
|
|
3330
3345
|
},
|
|
3331
|
-
guides.map((guide, index) => /* @__PURE__ */
|
|
3346
|
+
guides.map((guide, index) => /* @__PURE__ */ React45.createElement(
|
|
3332
3347
|
StyledAlignmentGuide,
|
|
3333
3348
|
{
|
|
3334
3349
|
key: guide.axis + index,
|
|
@@ -3360,7 +3375,7 @@ var ConnectedAlignmentGuides = connect(
|
|
|
3360
3375
|
{
|
|
3361
3376
|
context: context_default
|
|
3362
3377
|
}
|
|
3363
|
-
)(
|
|
3378
|
+
)(React45.memo(AlignmentGuides));
|
|
3364
3379
|
var AlignmentGuides_default = ConnectedAlignmentGuides;
|
|
3365
3380
|
var StyledPluridRoots = styled24.div`
|
|
3366
3381
|
transform-style: preserve-3d;
|
|
@@ -3379,10 +3394,12 @@ var PluridRoots = (properties) => {
|
|
|
3379
3394
|
stateResolvedLayout
|
|
3380
3395
|
// #endregion state
|
|
3381
3396
|
} = properties;
|
|
3382
|
-
const
|
|
3383
|
-
const
|
|
3397
|
+
const dimensions = stateConfiguration.space.dimensions;
|
|
3398
|
+
const resolveDimension = (value, fallback) => value === void 0 ? fallback : typeof value === "number" ? value + "px" : value;
|
|
3399
|
+
const width = resolveDimension(dimensions?.width, "100%");
|
|
3400
|
+
const height = stateResolvedLayout ? resolveDimension(dimensions?.height, window.innerHeight + "px") : 0;
|
|
3384
3401
|
const transition = spaceAnimatedTransform ? `transform ${spaceTransformTime}ms ease-in-out` : "initial";
|
|
3385
|
-
return /* @__PURE__ */
|
|
3402
|
+
return /* @__PURE__ */ React45.createElement(
|
|
3386
3403
|
StyledPluridRoots,
|
|
3387
3404
|
{
|
|
3388
3405
|
style: {
|
|
@@ -3393,15 +3410,15 @@ var PluridRoots = (properties) => {
|
|
|
3393
3410
|
},
|
|
3394
3411
|
"data-plurid-entity": PLURID_ENTITY_ROOTS
|
|
3395
3412
|
},
|
|
3396
|
-
stateTree.map((plane) => /* @__PURE__ */
|
|
3413
|
+
stateTree.map((plane) => /* @__PURE__ */ React45.createElement(
|
|
3397
3414
|
Root_default,
|
|
3398
3415
|
{
|
|
3399
3416
|
key: plane.planeID,
|
|
3400
3417
|
plane
|
|
3401
3418
|
}
|
|
3402
3419
|
)),
|
|
3403
|
-
stateConfiguration.elements.planeLinks?.show !== false && /* @__PURE__ */
|
|
3404
|
-
stateConfiguration.elements.alignmentGuides?.show !== false && /* @__PURE__ */
|
|
3420
|
+
stateConfiguration.elements.planeLinks?.show !== false && /* @__PURE__ */ React45.createElement(PlaneLinks_default, null),
|
|
3421
|
+
stateConfiguration.elements.alignmentGuides?.show !== false && /* @__PURE__ */ React45.createElement(AlignmentGuides_default, null)
|
|
3405
3422
|
);
|
|
3406
3423
|
};
|
|
3407
3424
|
var mapStateToProperties5 = (state2) => ({
|
|
@@ -3470,7 +3487,7 @@ var PluridSpace = (properties) => {
|
|
|
3470
3487
|
useEffect(() => {
|
|
3471
3488
|
setIsMounted(true);
|
|
3472
3489
|
}, []);
|
|
3473
|
-
return /* @__PURE__ */
|
|
3490
|
+
return /* @__PURE__ */ React45.createElement(
|
|
3474
3491
|
StyledPluridSpace,
|
|
3475
3492
|
{
|
|
3476
3493
|
theme: stateGeneralTheme,
|
|
@@ -3482,7 +3499,7 @@ var PluridSpace = (properties) => {
|
|
|
3482
3499
|
opacity: stateResolvedLayout ? 1 : 0
|
|
3483
3500
|
}
|
|
3484
3501
|
},
|
|
3485
|
-
/* @__PURE__ */
|
|
3502
|
+
/* @__PURE__ */ React45.createElement(Roots_default, null)
|
|
3486
3503
|
);
|
|
3487
3504
|
};
|
|
3488
3505
|
var mapStateToProperties6 = (state2) => ({
|
|
@@ -3552,9 +3569,9 @@ var Origin = (properties) => {
|
|
|
3552
3569
|
size: transformOriginSize
|
|
3553
3570
|
} = transformOrigin;
|
|
3554
3571
|
if (!showTransformOrigin) {
|
|
3555
|
-
return /* @__PURE__ */
|
|
3572
|
+
return /* @__PURE__ */ React45.createElement(React45.Fragment, null);
|
|
3556
3573
|
}
|
|
3557
|
-
return /* @__PURE__ */
|
|
3574
|
+
return /* @__PURE__ */ React45.createElement(
|
|
3558
3575
|
StyledOrigin,
|
|
3559
3576
|
{
|
|
3560
3577
|
theme: stateGeneralTheme,
|
|
@@ -3910,12 +3927,12 @@ var PluridMenuUniverses = (properties) => {
|
|
|
3910
3927
|
/** dispatch */
|
|
3911
3928
|
dispatchSetActiveUniverse
|
|
3912
3929
|
} = properties;
|
|
3913
|
-
return /* @__PURE__ */
|
|
3930
|
+
return /* @__PURE__ */ React45.createElement(
|
|
3914
3931
|
StyledPluridMenuUniverses,
|
|
3915
3932
|
{
|
|
3916
3933
|
theme: interactionTheme
|
|
3917
3934
|
},
|
|
3918
|
-
/* @__PURE__ */
|
|
3935
|
+
/* @__PURE__ */ React45.createElement(StyledPluridMenuUniversesScroll, null)
|
|
3919
3936
|
);
|
|
3920
3937
|
};
|
|
3921
3938
|
var mapStateToProps2 = (state2) => ({
|
|
@@ -4013,7 +4030,7 @@ var PluridDrawer = (properties) => {
|
|
|
4013
4030
|
transparentUI
|
|
4014
4031
|
} = global;
|
|
4015
4032
|
const [mouseOver, setMouseOver] = useState(false);
|
|
4016
|
-
return /* @__PURE__ */
|
|
4033
|
+
return /* @__PURE__ */ React45.createElement(
|
|
4017
4034
|
StyledPluridDrawer,
|
|
4018
4035
|
{
|
|
4019
4036
|
theme: interactionTheme,
|
|
@@ -4023,13 +4040,13 @@ var PluridDrawer = (properties) => {
|
|
|
4023
4040
|
mouseOver,
|
|
4024
4041
|
toggled
|
|
4025
4042
|
},
|
|
4026
|
-
/* @__PURE__ */
|
|
4043
|
+
/* @__PURE__ */ React45.createElement(
|
|
4027
4044
|
StyledPluridDrawerHeading,
|
|
4028
4045
|
{
|
|
4029
4046
|
theme: interactionTheme,
|
|
4030
4047
|
onClick: () => toggle()
|
|
4031
4048
|
},
|
|
4032
|
-
/* @__PURE__ */
|
|
4049
|
+
/* @__PURE__ */ React45.createElement(
|
|
4033
4050
|
PluridHeading,
|
|
4034
4051
|
{
|
|
4035
4052
|
theme: interactionTheme,
|
|
@@ -4038,7 +4055,7 @@ var PluridDrawer = (properties) => {
|
|
|
4038
4055
|
heading
|
|
4039
4056
|
)
|
|
4040
4057
|
),
|
|
4041
|
-
toggled && /* @__PURE__ */
|
|
4058
|
+
toggled && /* @__PURE__ */ React45.createElement(StyledPluridDrawerItems, null, items)
|
|
4042
4059
|
);
|
|
4043
4060
|
};
|
|
4044
4061
|
var mapStateToProps3 = (state2) => ({
|
|
@@ -4175,7 +4192,7 @@ var PluridMenuMoreGlobal = (properties) => {
|
|
|
4175
4192
|
}, [
|
|
4176
4193
|
selectedTheme
|
|
4177
4194
|
]);
|
|
4178
|
-
return /* @__PURE__ */
|
|
4195
|
+
return /* @__PURE__ */ React45.createElement(React45.Fragment, null, /* @__PURE__ */ React45.createElement(StyledPluridMoreMenuItem, null, internatiolate(stateLanguage, internationalization.fields.toolbarDrawerGlobalGeneralTheme), /* @__PURE__ */ React45.createElement(
|
|
4179
4196
|
PluridDropdown,
|
|
4180
4197
|
{
|
|
4181
4198
|
selectables: Object.keys(themes2),
|
|
@@ -4189,7 +4206,7 @@ var PluridMenuMoreGlobal = (properties) => {
|
|
|
4189
4206
|
fontSize: "0.8rem"
|
|
4190
4207
|
}
|
|
4191
4208
|
}
|
|
4192
|
-
)), /* @__PURE__ */
|
|
4209
|
+
)), /* @__PURE__ */ React45.createElement(StyledPluridMoreMenuItem, null, internatiolate(stateLanguage, internationalization.fields.toolbarDrawerGlobalInteractionTheme), /* @__PURE__ */ React45.createElement(
|
|
4193
4210
|
PluridDropdown,
|
|
4194
4211
|
{
|
|
4195
4212
|
selectables: Object.keys(themes2),
|
|
@@ -4203,13 +4220,13 @@ var PluridMenuMoreGlobal = (properties) => {
|
|
|
4203
4220
|
fontSize: "0.8rem"
|
|
4204
4221
|
}
|
|
4205
4222
|
}
|
|
4206
|
-
)), /* @__PURE__ */
|
|
4223
|
+
)), /* @__PURE__ */ React45.createElement(
|
|
4207
4224
|
StyledPluridMoreMenuItem,
|
|
4208
4225
|
{
|
|
4209
4226
|
last: true
|
|
4210
4227
|
},
|
|
4211
4228
|
internatiolate(stateLanguage, internationalization.fields.toolbarDrawerGlobalLanguage),
|
|
4212
|
-
/* @__PURE__ */
|
|
4229
|
+
/* @__PURE__ */ React45.createElement(
|
|
4213
4230
|
PluridDropdown,
|
|
4214
4231
|
{
|
|
4215
4232
|
selectables: internationalization.languages,
|
|
@@ -4277,7 +4294,7 @@ var PluridMenuMoreTransform = (properties) => {
|
|
|
4277
4294
|
transformLocks,
|
|
4278
4295
|
transformTouch
|
|
4279
4296
|
} = configuration2.space;
|
|
4280
|
-
return /* @__PURE__ */
|
|
4297
|
+
return /* @__PURE__ */ React45.createElement(React45.Fragment, null, /* @__PURE__ */ React45.createElement(StyledPluridMoreMenuItem, null, /* @__PURE__ */ React45.createElement("div", null, internatiolate(stateLanguage, internationalization.fields.toolbarDrawerTransformMultiModeTransform)), /* @__PURE__ */ React45.createElement(
|
|
4281
4298
|
PluridSwitch,
|
|
4282
4299
|
{
|
|
4283
4300
|
theme: interactionTheme,
|
|
@@ -4286,7 +4303,7 @@ var PluridMenuMoreTransform = (properties) => {
|
|
|
4286
4303
|
exclusive: true,
|
|
4287
4304
|
level: 2
|
|
4288
4305
|
}
|
|
4289
|
-
)), /* @__PURE__ */
|
|
4306
|
+
)), /* @__PURE__ */ React45.createElement(StyledPluridMoreMenuItem, null, /* @__PURE__ */ React45.createElement("div", null, internatiolate(stateLanguage, internationalization.fields.toolbarDrawerTransformAllowRotationX)), /* @__PURE__ */ React45.createElement(
|
|
4290
4307
|
PluridSwitch,
|
|
4291
4308
|
{
|
|
4292
4309
|
theme: interactionTheme,
|
|
@@ -4295,7 +4312,7 @@ var PluridMenuMoreTransform = (properties) => {
|
|
|
4295
4312
|
exclusive: true,
|
|
4296
4313
|
level: 2
|
|
4297
4314
|
}
|
|
4298
|
-
)), /* @__PURE__ */
|
|
4315
|
+
)), /* @__PURE__ */ React45.createElement(StyledPluridMoreMenuItem, null, /* @__PURE__ */ React45.createElement("div", null, internatiolate(stateLanguage, internationalization.fields.toolbarDrawerTransformAllowRotationY)), /* @__PURE__ */ React45.createElement(
|
|
4299
4316
|
PluridSwitch,
|
|
4300
4317
|
{
|
|
4301
4318
|
theme: interactionTheme,
|
|
@@ -4304,7 +4321,7 @@ var PluridMenuMoreTransform = (properties) => {
|
|
|
4304
4321
|
exclusive: true,
|
|
4305
4322
|
level: 2
|
|
4306
4323
|
}
|
|
4307
|
-
)), /* @__PURE__ */
|
|
4324
|
+
)), /* @__PURE__ */ React45.createElement(StyledPluridMoreMenuItem, null, /* @__PURE__ */ React45.createElement("div", null, internatiolate(stateLanguage, internationalization.fields.toolbarDrawerTransformAllowTranslationX)), /* @__PURE__ */ React45.createElement(
|
|
4308
4325
|
PluridSwitch,
|
|
4309
4326
|
{
|
|
4310
4327
|
theme: interactionTheme,
|
|
@@ -4313,7 +4330,7 @@ var PluridMenuMoreTransform = (properties) => {
|
|
|
4313
4330
|
exclusive: true,
|
|
4314
4331
|
level: 2
|
|
4315
4332
|
}
|
|
4316
|
-
)), /* @__PURE__ */
|
|
4333
|
+
)), /* @__PURE__ */ React45.createElement(StyledPluridMoreMenuItem, null, /* @__PURE__ */ React45.createElement("div", null, internatiolate(stateLanguage, internationalization.fields.toolbarDrawerTransformAllowTranslationY)), /* @__PURE__ */ React45.createElement(
|
|
4317
4334
|
PluridSwitch,
|
|
4318
4335
|
{
|
|
4319
4336
|
theme: interactionTheme,
|
|
@@ -4322,7 +4339,7 @@ var PluridMenuMoreTransform = (properties) => {
|
|
|
4322
4339
|
exclusive: true,
|
|
4323
4340
|
level: 2
|
|
4324
4341
|
}
|
|
4325
|
-
)), /* @__PURE__ */
|
|
4342
|
+
)), /* @__PURE__ */ React45.createElement(StyledPluridMoreMenuItem, null, /* @__PURE__ */ React45.createElement("div", null, internatiolate(stateLanguage, internationalization.fields.toolbarDrawerTransformAllowTranslationZ)), /* @__PURE__ */ React45.createElement(
|
|
4326
4343
|
PluridSwitch,
|
|
4327
4344
|
{
|
|
4328
4345
|
theme: interactionTheme,
|
|
@@ -4331,7 +4348,7 @@ var PluridMenuMoreTransform = (properties) => {
|
|
|
4331
4348
|
exclusive: true,
|
|
4332
4349
|
level: 2
|
|
4333
4350
|
}
|
|
4334
|
-
)), /* @__PURE__ */
|
|
4351
|
+
)), /* @__PURE__ */ React45.createElement(StyledPluridMoreMenuItem, null, /* @__PURE__ */ React45.createElement("div", null, internatiolate(stateLanguage, internationalization.fields.toolbarDrawerTransformAllowScale)), /* @__PURE__ */ React45.createElement(
|
|
4335
4352
|
PluridSwitch,
|
|
4336
4353
|
{
|
|
4337
4354
|
theme: interactionTheme,
|
|
@@ -4340,13 +4357,13 @@ var PluridMenuMoreTransform = (properties) => {
|
|
|
4340
4357
|
exclusive: true,
|
|
4341
4358
|
level: 2
|
|
4342
4359
|
}
|
|
4343
|
-
)), /* @__PURE__ */
|
|
4360
|
+
)), /* @__PURE__ */ React45.createElement(
|
|
4344
4361
|
StyledPluridMoreMenuItem,
|
|
4345
4362
|
{
|
|
4346
4363
|
last: true
|
|
4347
4364
|
},
|
|
4348
|
-
/* @__PURE__ */
|
|
4349
|
-
/* @__PURE__ */
|
|
4365
|
+
/* @__PURE__ */ React45.createElement("div", null, internatiolate(stateLanguage, internationalization.fields.toolbarDrawerTransformTouchTransform), ":\xA0", transformTouch === TRANSFORM_TOUCHES.PAN ? "pan" : "swipe"),
|
|
4366
|
+
/* @__PURE__ */ React45.createElement(
|
|
4350
4367
|
PluridSwitch,
|
|
4351
4368
|
{
|
|
4352
4369
|
theme: interactionTheme,
|
|
@@ -4420,7 +4437,7 @@ var PluridMenuMoreSpace = (properties) => {
|
|
|
4420
4437
|
size: transformOriginSize
|
|
4421
4438
|
} = transformOrigin;
|
|
4422
4439
|
const planeOpacity = elements.plane.opacity;
|
|
4423
|
-
return /* @__PURE__ */
|
|
4440
|
+
return /* @__PURE__ */ React45.createElement(React45.Fragment, null, /* @__PURE__ */ React45.createElement(StyledPluridMoreMenuItem, null, internatiolate(language, internationalization.fields.toolbarDrawerSpaceTransparentUserInterface), /* @__PURE__ */ React45.createElement(
|
|
4424
4441
|
PluridSwitch2,
|
|
4425
4442
|
{
|
|
4426
4443
|
checked: transparentUI,
|
|
@@ -4429,7 +4446,7 @@ var PluridMenuMoreSpace = (properties) => {
|
|
|
4429
4446
|
level: 2,
|
|
4430
4447
|
theme: interactionTheme
|
|
4431
4448
|
}
|
|
4432
|
-
)), /* @__PURE__ */
|
|
4449
|
+
)), /* @__PURE__ */ React45.createElement(StyledPluridMoreMenuItem, null, internatiolate(language, internationalization.fields.toolbarDrawerSpaceShowTransformOrigin), /* @__PURE__ */ React45.createElement(
|
|
4433
4450
|
PluridSwitch2,
|
|
4434
4451
|
{
|
|
4435
4452
|
checked: showTransformOrigin,
|
|
@@ -4438,7 +4455,7 @@ var PluridMenuMoreSpace = (properties) => {
|
|
|
4438
4455
|
level: 2,
|
|
4439
4456
|
theme: interactionTheme
|
|
4440
4457
|
}
|
|
4441
|
-
)), /* @__PURE__ */
|
|
4458
|
+
)), /* @__PURE__ */ React45.createElement(StyledPluridMoreMenuItem, null, internatiolate(language, internationalization.fields.toolbarDrawerSpaceTransformOriginSize), /* @__PURE__ */ React45.createElement(
|
|
4442
4459
|
PluridDropdown2,
|
|
4443
4460
|
{
|
|
4444
4461
|
selectables: ["small", "normal", "large"],
|
|
@@ -4452,7 +4469,7 @@ var PluridMenuMoreSpace = (properties) => {
|
|
|
4452
4469
|
heightItems: 3,
|
|
4453
4470
|
theme: interactionTheme
|
|
4454
4471
|
}
|
|
4455
|
-
)), /* @__PURE__ */
|
|
4472
|
+
)), /* @__PURE__ */ React45.createElement(StyledPluridMoreMenuItem, null, internatiolate(language, internationalization.fields.toolbarDrawerSpacePlaneOpacity), /* @__PURE__ */ React45.createElement(
|
|
4456
4473
|
PluridSlider,
|
|
4457
4474
|
{
|
|
4458
4475
|
value: planeOpacity,
|
|
@@ -4465,13 +4482,13 @@ var PluridMenuMoreSpace = (properties) => {
|
|
|
4465
4482
|
level: 2,
|
|
4466
4483
|
theme: interactionTheme
|
|
4467
4484
|
}
|
|
4468
|
-
)), /* @__PURE__ */
|
|
4485
|
+
)), /* @__PURE__ */ React45.createElement(
|
|
4469
4486
|
StyledPluridMoreMenuItem,
|
|
4470
4487
|
{
|
|
4471
4488
|
last: true
|
|
4472
4489
|
},
|
|
4473
4490
|
internatiolate(language, internationalization.fields.toolbarDrawerSpaceLayoutType),
|
|
4474
|
-
/* @__PURE__ */
|
|
4491
|
+
/* @__PURE__ */ React45.createElement(
|
|
4475
4492
|
PluridDropdown2,
|
|
4476
4493
|
{
|
|
4477
4494
|
selectables: [...Object.values(layoutNames)],
|
|
@@ -4554,7 +4571,7 @@ var PluridMenuMoreToolbar = (properties) => {
|
|
|
4554
4571
|
}, [
|
|
4555
4572
|
viewSize.width
|
|
4556
4573
|
]);
|
|
4557
|
-
return /* @__PURE__ */
|
|
4574
|
+
return /* @__PURE__ */ React45.createElement(React45.Fragment, null, /* @__PURE__ */ React45.createElement(StyledPluridMoreMenuItem, null, /* @__PURE__ */ React45.createElement("div", null, internatiolate(stateLanguage, internationalization.fields.toolbarDrawerToolbarAlwaysOpaque)), /* @__PURE__ */ React45.createElement(
|
|
4558
4575
|
PluridSwitch3,
|
|
4559
4576
|
{
|
|
4560
4577
|
theme: interactionTheme,
|
|
@@ -4563,7 +4580,7 @@ var PluridMenuMoreToolbar = (properties) => {
|
|
|
4563
4580
|
exclusive: true,
|
|
4564
4581
|
level: 2
|
|
4565
4582
|
}
|
|
4566
|
-
)), /* @__PURE__ */
|
|
4583
|
+
)), /* @__PURE__ */ React45.createElement(StyledPluridMoreMenuItem, null, /* @__PURE__ */ React45.createElement("div", null, internatiolate(stateLanguage, internationalization.fields.toolbarDrawerToolbarShowTransformIcons)), /* @__PURE__ */ React45.createElement(
|
|
4567
4584
|
PluridSwitch3,
|
|
4568
4585
|
{
|
|
4569
4586
|
theme: interactionTheme,
|
|
@@ -4572,7 +4589,7 @@ var PluridMenuMoreToolbar = (properties) => {
|
|
|
4572
4589
|
exclusive: true,
|
|
4573
4590
|
level: 2
|
|
4574
4591
|
}
|
|
4575
|
-
)), !viewSizeSmall && /* @__PURE__ */
|
|
4592
|
+
)), !viewSizeSmall && /* @__PURE__ */ React45.createElement(StyledPluridMoreMenuItem, null, /* @__PURE__ */ React45.createElement("div", null, internatiolate(stateLanguage, internationalization.fields.toolbarDrawerToolbarShowTransformArrows)), /* @__PURE__ */ React45.createElement(
|
|
4576
4593
|
PluridSwitch3,
|
|
4577
4594
|
{
|
|
4578
4595
|
theme: interactionTheme,
|
|
@@ -4581,13 +4598,13 @@ var PluridMenuMoreToolbar = (properties) => {
|
|
|
4581
4598
|
exclusive: true,
|
|
4582
4599
|
level: 2
|
|
4583
4600
|
}
|
|
4584
|
-
)), /* @__PURE__ */
|
|
4601
|
+
)), /* @__PURE__ */ React45.createElement(
|
|
4585
4602
|
StyledPluridMoreMenuItem,
|
|
4586
4603
|
{
|
|
4587
4604
|
last: true
|
|
4588
4605
|
},
|
|
4589
|
-
/* @__PURE__ */
|
|
4590
|
-
/* @__PURE__ */
|
|
4606
|
+
/* @__PURE__ */ React45.createElement("div", null, internatiolate(stateLanguage, internationalization.fields.toolbarDrawerToolbarConcealToolbar)),
|
|
4607
|
+
/* @__PURE__ */ React45.createElement(
|
|
4591
4608
|
PluridSwitch3,
|
|
4592
4609
|
{
|
|
4593
4610
|
theme: interactionTheme,
|
|
@@ -4654,13 +4671,13 @@ var PluridMenuMoreViewcube = (properties) => {
|
|
|
4654
4671
|
opaque,
|
|
4655
4672
|
conceal
|
|
4656
4673
|
} = viewcube;
|
|
4657
|
-
return /* @__PURE__ */
|
|
4674
|
+
return /* @__PURE__ */ React45.createElement(React45.Fragment, null, /* @__PURE__ */ React45.createElement(
|
|
4658
4675
|
StyledPluridMoreMenuItem,
|
|
4659
4676
|
{
|
|
4660
4677
|
last: !show ? true : false
|
|
4661
4678
|
},
|
|
4662
|
-
/* @__PURE__ */
|
|
4663
|
-
/* @__PURE__ */
|
|
4679
|
+
/* @__PURE__ */ React45.createElement("div", null, internatiolate(stateLanguage, internationalization.fields.toolbarDrawerViewcubeShowViewcube)),
|
|
4680
|
+
/* @__PURE__ */ React45.createElement(
|
|
4664
4681
|
PluridSwitch4,
|
|
4665
4682
|
{
|
|
4666
4683
|
theme: interactionTheme,
|
|
@@ -4670,7 +4687,7 @@ var PluridMenuMoreViewcube = (properties) => {
|
|
|
4670
4687
|
level: 2
|
|
4671
4688
|
}
|
|
4672
4689
|
)
|
|
4673
|
-
), show && /* @__PURE__ */
|
|
4690
|
+
), show && /* @__PURE__ */ React45.createElement(React45.Fragment, null, /* @__PURE__ */ React45.createElement(StyledPluridMoreMenuItem, null, /* @__PURE__ */ React45.createElement("div", null, internatiolate(stateLanguage, internationalization.fields.toolbarDrawerViewcubeShowTransformButtons)), /* @__PURE__ */ React45.createElement(
|
|
4674
4691
|
PluridSwitch4,
|
|
4675
4692
|
{
|
|
4676
4693
|
theme: interactionTheme,
|
|
@@ -4679,7 +4696,7 @@ var PluridMenuMoreViewcube = (properties) => {
|
|
|
4679
4696
|
exclusive: true,
|
|
4680
4697
|
level: 2
|
|
4681
4698
|
}
|
|
4682
|
-
)), /* @__PURE__ */
|
|
4699
|
+
)), /* @__PURE__ */ React45.createElement(StyledPluridMoreMenuItem, null, /* @__PURE__ */ React45.createElement("div", null, internatiolate(stateLanguage, internationalization.fields.toolbarDrawerViewcubeAlwaysOpaque)), /* @__PURE__ */ React45.createElement(
|
|
4683
4700
|
PluridSwitch4,
|
|
4684
4701
|
{
|
|
4685
4702
|
theme: interactionTheme,
|
|
@@ -4688,13 +4705,13 @@ var PluridMenuMoreViewcube = (properties) => {
|
|
|
4688
4705
|
exclusive: true,
|
|
4689
4706
|
level: 2
|
|
4690
4707
|
}
|
|
4691
|
-
)), /* @__PURE__ */
|
|
4708
|
+
)), /* @__PURE__ */ React45.createElement(
|
|
4692
4709
|
StyledPluridMoreMenuItem,
|
|
4693
4710
|
{
|
|
4694
4711
|
last: true
|
|
4695
4712
|
},
|
|
4696
|
-
/* @__PURE__ */
|
|
4697
|
-
/* @__PURE__ */
|
|
4713
|
+
/* @__PURE__ */ React45.createElement("div", null, internatiolate(stateLanguage, internationalization.fields.toolbarDrawerViewcubeConcealViewcube)),
|
|
4714
|
+
/* @__PURE__ */ React45.createElement(
|
|
4698
4715
|
PluridSwitch4,
|
|
4699
4716
|
{
|
|
4700
4717
|
theme: interactionTheme,
|
|
@@ -4750,13 +4767,13 @@ var PluridMenuMoreMinimap = (properties) => {
|
|
|
4750
4767
|
const minimap = configuration2.elements.minimap;
|
|
4751
4768
|
const show = minimap?.show ?? false;
|
|
4752
4769
|
const transparent = minimap?.transparent ?? true;
|
|
4753
|
-
return /* @__PURE__ */
|
|
4770
|
+
return /* @__PURE__ */ React45.createElement(React45.Fragment, null, /* @__PURE__ */ React45.createElement(
|
|
4754
4771
|
StyledPluridMoreMenuItem,
|
|
4755
4772
|
{
|
|
4756
4773
|
last: !show ? true : false
|
|
4757
4774
|
},
|
|
4758
|
-
/* @__PURE__ */
|
|
4759
|
-
/* @__PURE__ */
|
|
4775
|
+
/* @__PURE__ */ React45.createElement("div", null, internatiolate(stateLanguage, internationalization.fields.toolbarDrawerMinimapShowMinimap)),
|
|
4776
|
+
/* @__PURE__ */ React45.createElement(
|
|
4760
4777
|
PluridSwitch5,
|
|
4761
4778
|
{
|
|
4762
4779
|
theme: interactionTheme,
|
|
@@ -4766,13 +4783,13 @@ var PluridMenuMoreMinimap = (properties) => {
|
|
|
4766
4783
|
level: 2
|
|
4767
4784
|
}
|
|
4768
4785
|
)
|
|
4769
|
-
), show && /* @__PURE__ */
|
|
4786
|
+
), show && /* @__PURE__ */ React45.createElement(
|
|
4770
4787
|
StyledPluridMoreMenuItem,
|
|
4771
4788
|
{
|
|
4772
4789
|
last: true
|
|
4773
4790
|
},
|
|
4774
|
-
/* @__PURE__ */
|
|
4775
|
-
/* @__PURE__ */
|
|
4791
|
+
/* @__PURE__ */ React45.createElement("div", null, internatiolate(stateLanguage, internationalization.fields.toolbarDrawerMinimapTransparent)),
|
|
4792
|
+
/* @__PURE__ */ React45.createElement(
|
|
4776
4793
|
PluridSwitch5,
|
|
4777
4794
|
{
|
|
4778
4795
|
theme: interactionTheme,
|
|
@@ -4835,7 +4852,7 @@ var PluridMenuMoreTechnical = (properties) => {
|
|
|
4835
4852
|
setLocalCullingDistance(value);
|
|
4836
4853
|
dispatchCullingDistanceUpdate(value);
|
|
4837
4854
|
};
|
|
4838
|
-
return /* @__PURE__ */
|
|
4855
|
+
return /* @__PURE__ */ React45.createElement(React45.Fragment, null, /* @__PURE__ */ React45.createElement(StyledPluridMoreMenuItem, null, /* @__PURE__ */ React45.createElement("div", null, internatiolate(stateLanguage, internationalization.fields.toolbarDrawerTechnicalCullingDistance)), /* @__PURE__ */ React45.createElement(
|
|
4839
4856
|
PluridSlider2,
|
|
4840
4857
|
{
|
|
4841
4858
|
theme: stateInteractionTheme,
|
|
@@ -4879,7 +4896,7 @@ var PluridMenuMoreShortcuts = (properties) => {
|
|
|
4879
4896
|
const {
|
|
4880
4897
|
language
|
|
4881
4898
|
} = global;
|
|
4882
|
-
return /* @__PURE__ */
|
|
4899
|
+
return /* @__PURE__ */ React45.createElement(React45.Fragment, null, defaultShortcuts.map((shortcut, index) => {
|
|
4883
4900
|
const {
|
|
4884
4901
|
type
|
|
4885
4902
|
} = shortcut;
|
|
@@ -4895,7 +4912,7 @@ var PluridMenuMoreShortcuts = (properties) => {
|
|
|
4895
4912
|
const keyAsAny = key;
|
|
4896
4913
|
const keyName = internationalizedKey ? internatiolate(language, keyAsAny) : key;
|
|
4897
4914
|
const afterline = type === "TURN_DOWN" || type === "TOGGLE_ROTATE" || type === "TOGGLE_TRANSLATE" || type === "TOGGLE_SCALE";
|
|
4898
|
-
return /* @__PURE__ */
|
|
4915
|
+
return /* @__PURE__ */ React45.createElement(
|
|
4899
4916
|
StyledPluridMoreMenuItem,
|
|
4900
4917
|
{
|
|
4901
4918
|
key: name2,
|
|
@@ -4903,8 +4920,8 @@ var PluridMenuMoreShortcuts = (properties) => {
|
|
|
4903
4920
|
afterline,
|
|
4904
4921
|
last: index === defaultShortcuts.length - 1 ? true : false
|
|
4905
4922
|
},
|
|
4906
|
-
/* @__PURE__ */
|
|
4907
|
-
/* @__PURE__ */
|
|
4923
|
+
/* @__PURE__ */ React45.createElement("div", null, internationalizedName),
|
|
4924
|
+
/* @__PURE__ */ React45.createElement("div", null, modifierString, " ", keyName)
|
|
4908
4925
|
);
|
|
4909
4926
|
}));
|
|
4910
4927
|
};
|
|
@@ -4928,42 +4945,42 @@ var moreMenusRecord = {
|
|
|
4928
4945
|
GLOBAL: {
|
|
4929
4946
|
name: internationalization.fields.toolbarDrawerGlobalTitle,
|
|
4930
4947
|
drawer: TOOLBAR_DRAWERS.GLOBAL,
|
|
4931
|
-
component: /* @__PURE__ */
|
|
4948
|
+
component: /* @__PURE__ */ React45.createElement(Global_default, null)
|
|
4932
4949
|
},
|
|
4933
4950
|
TRANSFORM: {
|
|
4934
4951
|
name: internationalization.fields.toolbarDrawerTransformTitle,
|
|
4935
4952
|
drawer: TOOLBAR_DRAWERS.TRANSFORM,
|
|
4936
|
-
component: /* @__PURE__ */
|
|
4953
|
+
component: /* @__PURE__ */ React45.createElement(Transform_default, null)
|
|
4937
4954
|
},
|
|
4938
4955
|
SPACE: {
|
|
4939
4956
|
name: internationalization.fields.toolbarDrawerSpaceTitle,
|
|
4940
4957
|
drawer: TOOLBAR_DRAWERS.SPACE,
|
|
4941
|
-
component: /* @__PURE__ */
|
|
4958
|
+
component: /* @__PURE__ */ React45.createElement(Space_default2, null)
|
|
4942
4959
|
},
|
|
4943
4960
|
TOOLBAR: {
|
|
4944
4961
|
name: internationalization.fields.toolbarDrawerToolbarTitle,
|
|
4945
4962
|
drawer: TOOLBAR_DRAWERS.TOOLBAR,
|
|
4946
|
-
component: /* @__PURE__ */
|
|
4963
|
+
component: /* @__PURE__ */ React45.createElement(Toolbar_default, null)
|
|
4947
4964
|
},
|
|
4948
4965
|
VIEWCUBE: {
|
|
4949
4966
|
name: internationalization.fields.toolbarDrawerViewcubeTitle,
|
|
4950
4967
|
drawer: TOOLBAR_DRAWERS.VIEWCUBE,
|
|
4951
|
-
component: /* @__PURE__ */
|
|
4968
|
+
component: /* @__PURE__ */ React45.createElement(Viewcube_default, null)
|
|
4952
4969
|
},
|
|
4953
4970
|
MINIMAP: {
|
|
4954
4971
|
name: internationalization.fields.toolbarDrawerMinimapTitle,
|
|
4955
4972
|
drawer: TOOLBAR_DRAWERS.MINIMAP,
|
|
4956
|
-
component: /* @__PURE__ */
|
|
4973
|
+
component: /* @__PURE__ */ React45.createElement(Minimap_default, null)
|
|
4957
4974
|
},
|
|
4958
4975
|
TECHNICAL: {
|
|
4959
4976
|
name: internationalization.fields.toolbarDrawerTechnicalTitle,
|
|
4960
4977
|
drawer: TOOLBAR_DRAWERS.TECHNICAL,
|
|
4961
|
-
component: /* @__PURE__ */
|
|
4978
|
+
component: /* @__PURE__ */ React45.createElement(Technical_default, null)
|
|
4962
4979
|
},
|
|
4963
4980
|
SHORTCUTS: {
|
|
4964
4981
|
name: internationalization.fields.toolbarDrawerShortcutsTitle,
|
|
4965
4982
|
drawer: TOOLBAR_DRAWERS.SHORTCUTS,
|
|
4966
|
-
component: /* @__PURE__ */
|
|
4983
|
+
component: /* @__PURE__ */ React45.createElement(Shortcuts_default, null)
|
|
4967
4984
|
}
|
|
4968
4985
|
};
|
|
4969
4986
|
var moreMenus = Object.values(moreMenusRecord);
|
|
@@ -5035,13 +5052,13 @@ var PluridMoreMenu = (properties) => {
|
|
|
5035
5052
|
stateToolbarMenuScrollPosition,
|
|
5036
5053
|
moreMenuScrollElement.current
|
|
5037
5054
|
]);
|
|
5038
|
-
return /* @__PURE__ */
|
|
5055
|
+
return /* @__PURE__ */ React45.createElement(
|
|
5039
5056
|
StyledPluridMoreMenu,
|
|
5040
5057
|
{
|
|
5041
5058
|
theme: stateInteractionTheme,
|
|
5042
5059
|
transparentUI
|
|
5043
5060
|
},
|
|
5044
|
-
/* @__PURE__ */
|
|
5061
|
+
/* @__PURE__ */ React45.createElement(
|
|
5045
5062
|
StyledPluridMoreMenuScroll,
|
|
5046
5063
|
{
|
|
5047
5064
|
ref: moreMenuScrollElement
|
|
@@ -5053,12 +5070,12 @@ var PluridMoreMenu = (properties) => {
|
|
|
5053
5070
|
component
|
|
5054
5071
|
} = moreMenu;
|
|
5055
5072
|
const internationalizedName = internatiolate(stateLanguage, name2);
|
|
5056
|
-
return /* @__PURE__ */
|
|
5073
|
+
return /* @__PURE__ */ React45.createElement(
|
|
5057
5074
|
Drawer_default,
|
|
5058
5075
|
{
|
|
5059
5076
|
key: name2,
|
|
5060
5077
|
heading: internationalizedName,
|
|
5061
|
-
items: /* @__PURE__ */
|
|
5078
|
+
items: /* @__PURE__ */ React45.createElement(React45.Fragment, null, component),
|
|
5062
5079
|
toggled: toggledDrawers.includes("ALL") || toggledDrawers.includes(drawer),
|
|
5063
5080
|
toggle: () => dispatchToggleConfigurationToolbarToggleDrawer(drawer)
|
|
5064
5081
|
}
|
|
@@ -5173,7 +5190,7 @@ var PluridTransformArrow = (properties) => {
|
|
|
5173
5190
|
pressingInterval.current = null;
|
|
5174
5191
|
}
|
|
5175
5192
|
};
|
|
5176
|
-
return /* @__PURE__ */
|
|
5193
|
+
return /* @__PURE__ */ React45.createElement(
|
|
5177
5194
|
StyledPluridTransformArrow,
|
|
5178
5195
|
{
|
|
5179
5196
|
theme: interactionTheme,
|
|
@@ -5217,25 +5234,25 @@ var PluridToolbarRotate = (properties) => {
|
|
|
5217
5234
|
rotateLeft,
|
|
5218
5235
|
rotateRight
|
|
5219
5236
|
} = properties;
|
|
5220
|
-
return /* @__PURE__ */
|
|
5237
|
+
return /* @__PURE__ */ React45.createElement(
|
|
5221
5238
|
StyledPluridToolbarRotate,
|
|
5222
5239
|
{
|
|
5223
5240
|
showTransformButtons
|
|
5224
5241
|
},
|
|
5225
|
-
showTransformButtons && /* @__PURE__ */
|
|
5242
|
+
showTransformButtons && /* @__PURE__ */ React45.createElement(React45.Fragment, null, /* @__PURE__ */ React45.createElement(
|
|
5226
5243
|
TransformArrow_default,
|
|
5227
5244
|
{
|
|
5228
5245
|
direction: "left",
|
|
5229
5246
|
transform: () => rotateRight()
|
|
5230
5247
|
}
|
|
5231
|
-
), /* @__PURE__ */
|
|
5248
|
+
), /* @__PURE__ */ React45.createElement(
|
|
5232
5249
|
TransformArrow_default,
|
|
5233
5250
|
{
|
|
5234
5251
|
direction: "up",
|
|
5235
5252
|
transform: () => rotateUp()
|
|
5236
5253
|
}
|
|
5237
5254
|
)),
|
|
5238
|
-
/* @__PURE__ */
|
|
5255
|
+
/* @__PURE__ */ React45.createElement(
|
|
5239
5256
|
StyledToolbarButton,
|
|
5240
5257
|
{
|
|
5241
5258
|
theme: interactionTheme,
|
|
@@ -5245,15 +5262,15 @@ var PluridToolbarRotate = (properties) => {
|
|
|
5245
5262
|
showTransformButtons,
|
|
5246
5263
|
button: showIcons
|
|
5247
5264
|
},
|
|
5248
|
-
showIcons ? /* @__PURE__ */
|
|
5265
|
+
showIcons ? /* @__PURE__ */ React45.createElement(StyledIcon, null, /* @__PURE__ */ React45.createElement(PluridIconRotate, null)) : /* @__PURE__ */ React45.createElement(React45.Fragment, null, internatiolate(stateLanguage, internationalization.fields.toolbarTransformRotate))
|
|
5249
5266
|
),
|
|
5250
|
-
showTransformButtons && /* @__PURE__ */
|
|
5267
|
+
showTransformButtons && /* @__PURE__ */ React45.createElement(React45.Fragment, null, /* @__PURE__ */ React45.createElement(
|
|
5251
5268
|
TransformArrow_default,
|
|
5252
5269
|
{
|
|
5253
5270
|
direction: "down",
|
|
5254
5271
|
transform: () => rotateDown()
|
|
5255
5272
|
}
|
|
5256
|
-
), /* @__PURE__ */
|
|
5273
|
+
), /* @__PURE__ */ React45.createElement(
|
|
5257
5274
|
TransformArrow_default,
|
|
5258
5275
|
{
|
|
5259
5276
|
direction: "right",
|
|
@@ -5316,19 +5333,19 @@ var PluridToolbarScale = (properties) => {
|
|
|
5316
5333
|
scaleUp,
|
|
5317
5334
|
scaleDown
|
|
5318
5335
|
} = properties;
|
|
5319
|
-
return /* @__PURE__ */
|
|
5336
|
+
return /* @__PURE__ */ React45.createElement(
|
|
5320
5337
|
StyledPluridToolbarScale,
|
|
5321
5338
|
{
|
|
5322
5339
|
showTransformButtons
|
|
5323
5340
|
},
|
|
5324
|
-
showTransformButtons && /* @__PURE__ */
|
|
5341
|
+
showTransformButtons && /* @__PURE__ */ React45.createElement(
|
|
5325
5342
|
TransformArrow_default,
|
|
5326
5343
|
{
|
|
5327
5344
|
direction: "up",
|
|
5328
5345
|
transform: () => scaleUp()
|
|
5329
5346
|
}
|
|
5330
5347
|
),
|
|
5331
|
-
/* @__PURE__ */
|
|
5348
|
+
/* @__PURE__ */ React45.createElement(
|
|
5332
5349
|
StyledToolbarButton,
|
|
5333
5350
|
{
|
|
5334
5351
|
theme: interactionTheme,
|
|
@@ -5338,9 +5355,9 @@ var PluridToolbarScale = (properties) => {
|
|
|
5338
5355
|
showTransformButtons,
|
|
5339
5356
|
button: showIcons
|
|
5340
5357
|
},
|
|
5341
|
-
showIcons ? /* @__PURE__ */
|
|
5358
|
+
showIcons ? /* @__PURE__ */ React45.createElement(StyledIcon, null, /* @__PURE__ */ React45.createElement(PluridIconScale, null)) : /* @__PURE__ */ React45.createElement(React45.Fragment, null, internatiolate(stateLanguage, internationalization.fields.toolbarTransformScale))
|
|
5342
5359
|
),
|
|
5343
|
-
showTransformButtons && /* @__PURE__ */
|
|
5360
|
+
showTransformButtons && /* @__PURE__ */ React45.createElement(
|
|
5344
5361
|
TransformArrow_default,
|
|
5345
5362
|
{
|
|
5346
5363
|
direction: "down",
|
|
@@ -5400,18 +5417,18 @@ var PluridToolbarTranslate = (properties) => {
|
|
|
5400
5417
|
translateOut
|
|
5401
5418
|
// #endregion dispatch
|
|
5402
5419
|
} = properties;
|
|
5403
|
-
return /* @__PURE__ */
|
|
5420
|
+
return /* @__PURE__ */ React45.createElement(
|
|
5404
5421
|
StyledPluridToolbarTranslate,
|
|
5405
5422
|
{
|
|
5406
5423
|
showTransformButtons
|
|
5407
5424
|
},
|
|
5408
|
-
showTransformButtons && /* @__PURE__ */
|
|
5425
|
+
showTransformButtons && /* @__PURE__ */ React45.createElement(React45.Fragment, null, /* @__PURE__ */ React45.createElement(
|
|
5409
5426
|
TransformArrow_default,
|
|
5410
5427
|
{
|
|
5411
5428
|
direction: "left",
|
|
5412
5429
|
transform: () => translateLeft()
|
|
5413
5430
|
}
|
|
5414
|
-
), /* @__PURE__ */
|
|
5431
|
+
), /* @__PURE__ */ React45.createElement(
|
|
5415
5432
|
TransformArrow_default,
|
|
5416
5433
|
{
|
|
5417
5434
|
direction: "up",
|
|
@@ -5424,7 +5441,7 @@ var PluridToolbarTranslate = (properties) => {
|
|
|
5424
5441
|
}
|
|
5425
5442
|
}
|
|
5426
5443
|
)),
|
|
5427
|
-
/* @__PURE__ */
|
|
5444
|
+
/* @__PURE__ */ React45.createElement(
|
|
5428
5445
|
StyledToolbarButton,
|
|
5429
5446
|
{
|
|
5430
5447
|
theme: interactionTheme,
|
|
@@ -5434,9 +5451,9 @@ var PluridToolbarTranslate = (properties) => {
|
|
|
5434
5451
|
showTransformButtons,
|
|
5435
5452
|
button: showIcons
|
|
5436
5453
|
},
|
|
5437
|
-
showIcons ? /* @__PURE__ */
|
|
5454
|
+
showIcons ? /* @__PURE__ */ React45.createElement(StyledIcon, null, /* @__PURE__ */ React45.createElement(PluridIconTranslate, null)) : /* @__PURE__ */ React45.createElement(React45.Fragment, null, internatiolate(stateLanguage, internationalization.fields.toolbarTransformTranslate))
|
|
5438
5455
|
),
|
|
5439
|
-
showTransformButtons && /* @__PURE__ */
|
|
5456
|
+
showTransformButtons && /* @__PURE__ */ React45.createElement(React45.Fragment, null, /* @__PURE__ */ React45.createElement(
|
|
5440
5457
|
TransformArrow_default,
|
|
5441
5458
|
{
|
|
5442
5459
|
direction: "down",
|
|
@@ -5448,7 +5465,7 @@ var PluridToolbarTranslate = (properties) => {
|
|
|
5448
5465
|
}
|
|
5449
5466
|
}
|
|
5450
5467
|
}
|
|
5451
|
-
), /* @__PURE__ */
|
|
5468
|
+
), /* @__PURE__ */ React45.createElement(
|
|
5452
5469
|
TransformArrow_default,
|
|
5453
5470
|
{
|
|
5454
5471
|
direction: "right",
|
|
@@ -5589,9 +5606,9 @@ var PluridToolbar = (properties) => {
|
|
|
5589
5606
|
mouseIn
|
|
5590
5607
|
]);
|
|
5591
5608
|
if (!showToolbar) {
|
|
5592
|
-
return /* @__PURE__ */
|
|
5609
|
+
return /* @__PURE__ */ React45.createElement(React45.Fragment, null);
|
|
5593
5610
|
}
|
|
5594
|
-
return /* @__PURE__ */
|
|
5611
|
+
return /* @__PURE__ */ React45.createElement(
|
|
5595
5612
|
StyledToolbar,
|
|
5596
5613
|
{
|
|
5597
5614
|
onMouseEnter: () => setMouseIn(true),
|
|
@@ -5603,7 +5620,7 @@ var PluridToolbar = (properties) => {
|
|
|
5603
5620
|
fadeInTime,
|
|
5604
5621
|
"data-plurid-entity": PLURID_ENTITY_TOOLBAR
|
|
5605
5622
|
},
|
|
5606
|
-
/* @__PURE__ */
|
|
5623
|
+
/* @__PURE__ */ React45.createElement(
|
|
5607
5624
|
StyledToolbarButtons,
|
|
5608
5625
|
{
|
|
5609
5626
|
theme,
|
|
@@ -5614,7 +5631,7 @@ var PluridToolbar = (properties) => {
|
|
|
5614
5631
|
opaque,
|
|
5615
5632
|
transparentUI
|
|
5616
5633
|
},
|
|
5617
|
-
/* @__PURE__ */
|
|
5634
|
+
/* @__PURE__ */ React45.createElement(
|
|
5618
5635
|
StyledToolbarButton,
|
|
5619
5636
|
{
|
|
5620
5637
|
theme,
|
|
@@ -5624,9 +5641,9 @@ var PluridToolbar = (properties) => {
|
|
|
5624
5641
|
showIcons,
|
|
5625
5642
|
showTransformButtons
|
|
5626
5643
|
},
|
|
5627
|
-
/* @__PURE__ */
|
|
5644
|
+
/* @__PURE__ */ React45.createElement(StyledIcon, null, /* @__PURE__ */ React45.createElement(PluridIconFirstPerson, null))
|
|
5628
5645
|
),
|
|
5629
|
-
/* @__PURE__ */
|
|
5646
|
+
/* @__PURE__ */ React45.createElement(
|
|
5630
5647
|
ToolbarRotate_default,
|
|
5631
5648
|
{
|
|
5632
5649
|
showTransformButtons,
|
|
@@ -5635,7 +5652,7 @@ var PluridToolbar = (properties) => {
|
|
|
5635
5652
|
toggleTransform
|
|
5636
5653
|
}
|
|
5637
5654
|
),
|
|
5638
|
-
/* @__PURE__ */
|
|
5655
|
+
/* @__PURE__ */ React45.createElement(
|
|
5639
5656
|
ToolbarScale_default,
|
|
5640
5657
|
{
|
|
5641
5658
|
showTransformButtons,
|
|
@@ -5644,7 +5661,7 @@ var PluridToolbar = (properties) => {
|
|
|
5644
5661
|
toggleTransform
|
|
5645
5662
|
}
|
|
5646
5663
|
),
|
|
5647
|
-
/* @__PURE__ */
|
|
5664
|
+
/* @__PURE__ */ React45.createElement(
|
|
5648
5665
|
ToolbarTranslate_default,
|
|
5649
5666
|
{
|
|
5650
5667
|
showTransformButtons,
|
|
@@ -5653,7 +5670,7 @@ var PluridToolbar = (properties) => {
|
|
|
5653
5670
|
toggleTransform
|
|
5654
5671
|
}
|
|
5655
5672
|
),
|
|
5656
|
-
/* @__PURE__ */
|
|
5673
|
+
/* @__PURE__ */ React45.createElement(
|
|
5657
5674
|
StyledToolbarButton,
|
|
5658
5675
|
{
|
|
5659
5676
|
theme,
|
|
@@ -5663,11 +5680,11 @@ var PluridToolbar = (properties) => {
|
|
|
5663
5680
|
showIcons,
|
|
5664
5681
|
showTransformButtons
|
|
5665
5682
|
},
|
|
5666
|
-
/* @__PURE__ */
|
|
5683
|
+
/* @__PURE__ */ React45.createElement(StyledIcon, null, /* @__PURE__ */ React45.createElement(PluridIconMore, null))
|
|
5667
5684
|
)
|
|
5668
5685
|
),
|
|
5669
|
-
showMenu === "UNIVERSES" /* UNIVERSES */ && /* @__PURE__ */
|
|
5670
|
-
showMenu === "MORE" /* MORE */ && /* @__PURE__ */
|
|
5686
|
+
showMenu === "UNIVERSES" /* UNIVERSES */ && /* @__PURE__ */ React45.createElement(MenuUniverses_default, null),
|
|
5687
|
+
showMenu === "MORE" /* MORE */ && /* @__PURE__ */ React45.createElement(MenuMore_default, null)
|
|
5671
5688
|
);
|
|
5672
5689
|
};
|
|
5673
5690
|
var mapStateToProperties10 = (state2) => ({
|
|
@@ -6063,7 +6080,7 @@ var PluridViewcubeFace = (properties) => {
|
|
|
6063
6080
|
dispatchSetAnimatedTransform(false);
|
|
6064
6081
|
}, 450);
|
|
6065
6082
|
};
|
|
6066
|
-
return /* @__PURE__ */
|
|
6083
|
+
return /* @__PURE__ */ React45.createElement(
|
|
6067
6084
|
StyledPluridViewcubeFace,
|
|
6068
6085
|
{
|
|
6069
6086
|
theme: generalTheme,
|
|
@@ -6071,7 +6088,7 @@ var PluridViewcubeFace = (properties) => {
|
|
|
6071
6088
|
opaque: opaqueFace,
|
|
6072
6089
|
mouseOver
|
|
6073
6090
|
},
|
|
6074
|
-
/* @__PURE__ */
|
|
6091
|
+
/* @__PURE__ */ React45.createElement(
|
|
6075
6092
|
StyledPluridViewcubeFaceZone,
|
|
6076
6093
|
{
|
|
6077
6094
|
theme: interactionTheme,
|
|
@@ -6083,7 +6100,7 @@ var PluridViewcubeFace = (properties) => {
|
|
|
6083
6100
|
transparentUI
|
|
6084
6101
|
}
|
|
6085
6102
|
),
|
|
6086
|
-
/* @__PURE__ */
|
|
6103
|
+
/* @__PURE__ */ React45.createElement(
|
|
6087
6104
|
StyledPluridViewcubeFaceZone,
|
|
6088
6105
|
{
|
|
6089
6106
|
theme: interactionTheme,
|
|
@@ -6095,7 +6112,7 @@ var PluridViewcubeFace = (properties) => {
|
|
|
6095
6112
|
transparentUI
|
|
6096
6113
|
}
|
|
6097
6114
|
),
|
|
6098
|
-
/* @__PURE__ */
|
|
6115
|
+
/* @__PURE__ */ React45.createElement(
|
|
6099
6116
|
StyledPluridViewcubeFaceZone,
|
|
6100
6117
|
{
|
|
6101
6118
|
theme: interactionTheme,
|
|
@@ -6107,7 +6124,7 @@ var PluridViewcubeFace = (properties) => {
|
|
|
6107
6124
|
transparentUI
|
|
6108
6125
|
}
|
|
6109
6126
|
),
|
|
6110
|
-
/* @__PURE__ */
|
|
6127
|
+
/* @__PURE__ */ React45.createElement(
|
|
6111
6128
|
StyledPluridViewcubeFaceZone,
|
|
6112
6129
|
{
|
|
6113
6130
|
theme: interactionTheme,
|
|
@@ -6119,7 +6136,7 @@ var PluridViewcubeFace = (properties) => {
|
|
|
6119
6136
|
transparentUI
|
|
6120
6137
|
}
|
|
6121
6138
|
),
|
|
6122
|
-
/* @__PURE__ */
|
|
6139
|
+
/* @__PURE__ */ React45.createElement(
|
|
6123
6140
|
StyledPluridViewcubeFaceZone,
|
|
6124
6141
|
{
|
|
6125
6142
|
theme: interactionTheme,
|
|
@@ -6132,7 +6149,7 @@ var PluridViewcubeFace = (properties) => {
|
|
|
6132
6149
|
},
|
|
6133
6150
|
faceText
|
|
6134
6151
|
),
|
|
6135
|
-
/* @__PURE__ */
|
|
6152
|
+
/* @__PURE__ */ React45.createElement(
|
|
6136
6153
|
StyledPluridViewcubeFaceZone,
|
|
6137
6154
|
{
|
|
6138
6155
|
theme: interactionTheme,
|
|
@@ -6144,7 +6161,7 @@ var PluridViewcubeFace = (properties) => {
|
|
|
6144
6161
|
transparentUI
|
|
6145
6162
|
}
|
|
6146
6163
|
),
|
|
6147
|
-
/* @__PURE__ */
|
|
6164
|
+
/* @__PURE__ */ React45.createElement(
|
|
6148
6165
|
StyledPluridViewcubeFaceZone,
|
|
6149
6166
|
{
|
|
6150
6167
|
theme: interactionTheme,
|
|
@@ -6156,7 +6173,7 @@ var PluridViewcubeFace = (properties) => {
|
|
|
6156
6173
|
transparentUI
|
|
6157
6174
|
}
|
|
6158
6175
|
),
|
|
6159
|
-
/* @__PURE__ */
|
|
6176
|
+
/* @__PURE__ */ React45.createElement(
|
|
6160
6177
|
StyledPluridViewcubeFaceZone,
|
|
6161
6178
|
{
|
|
6162
6179
|
theme: interactionTheme,
|
|
@@ -6168,7 +6185,7 @@ var PluridViewcubeFace = (properties) => {
|
|
|
6168
6185
|
transparentUI
|
|
6169
6186
|
}
|
|
6170
6187
|
),
|
|
6171
|
-
/* @__PURE__ */
|
|
6188
|
+
/* @__PURE__ */ React45.createElement(
|
|
6172
6189
|
StyledPluridViewcubeFaceZone,
|
|
6173
6190
|
{
|
|
6174
6191
|
theme: interactionTheme,
|
|
@@ -6287,7 +6304,7 @@ var PluridViewcubeModel = (properties) => {
|
|
|
6287
6304
|
spaceRotationY
|
|
6288
6305
|
]);
|
|
6289
6306
|
const transform2 = computeTransform();
|
|
6290
|
-
return /* @__PURE__ */
|
|
6307
|
+
return /* @__PURE__ */ React45.createElement(StyledPluridViewcubeModel, null, /* @__PURE__ */ React45.createElement(StyledPluridViewcubeModelContainer, null, /* @__PURE__ */ React45.createElement(
|
|
6291
6308
|
StyledPluridViewcubeModelCube,
|
|
6292
6309
|
{
|
|
6293
6310
|
suppressHydrationWarning: true,
|
|
@@ -6297,7 +6314,7 @@ var PluridViewcubeModel = (properties) => {
|
|
|
6297
6314
|
},
|
|
6298
6315
|
onMouseLeave: () => handleMouseLeave()
|
|
6299
6316
|
},
|
|
6300
|
-
/* @__PURE__ */
|
|
6317
|
+
/* @__PURE__ */ React45.createElement(
|
|
6301
6318
|
ViewcubeFace_default,
|
|
6302
6319
|
{
|
|
6303
6320
|
face: "front",
|
|
@@ -6309,7 +6326,7 @@ var PluridViewcubeModel = (properties) => {
|
|
|
6309
6326
|
setActiveZone
|
|
6310
6327
|
}
|
|
6311
6328
|
),
|
|
6312
|
-
/* @__PURE__ */
|
|
6329
|
+
/* @__PURE__ */ React45.createElement(
|
|
6313
6330
|
ViewcubeFace_default,
|
|
6314
6331
|
{
|
|
6315
6332
|
face: "back",
|
|
@@ -6321,7 +6338,7 @@ var PluridViewcubeModel = (properties) => {
|
|
|
6321
6338
|
setActiveZone
|
|
6322
6339
|
}
|
|
6323
6340
|
),
|
|
6324
|
-
/* @__PURE__ */
|
|
6341
|
+
/* @__PURE__ */ React45.createElement(
|
|
6325
6342
|
ViewcubeFace_default,
|
|
6326
6343
|
{
|
|
6327
6344
|
face: "left",
|
|
@@ -6333,7 +6350,7 @@ var PluridViewcubeModel = (properties) => {
|
|
|
6333
6350
|
setActiveZone
|
|
6334
6351
|
}
|
|
6335
6352
|
),
|
|
6336
|
-
/* @__PURE__ */
|
|
6353
|
+
/* @__PURE__ */ React45.createElement(
|
|
6337
6354
|
ViewcubeFace_default,
|
|
6338
6355
|
{
|
|
6339
6356
|
face: "right",
|
|
@@ -6345,7 +6362,7 @@ var PluridViewcubeModel = (properties) => {
|
|
|
6345
6362
|
setActiveZone
|
|
6346
6363
|
}
|
|
6347
6364
|
),
|
|
6348
|
-
/* @__PURE__ */
|
|
6365
|
+
/* @__PURE__ */ React45.createElement(
|
|
6349
6366
|
ViewcubeFace_default,
|
|
6350
6367
|
{
|
|
6351
6368
|
face: "top",
|
|
@@ -6357,7 +6374,7 @@ var PluridViewcubeModel = (properties) => {
|
|
|
6357
6374
|
setActiveZone
|
|
6358
6375
|
}
|
|
6359
6376
|
),
|
|
6360
|
-
/* @__PURE__ */
|
|
6377
|
+
/* @__PURE__ */ React45.createElement(
|
|
6361
6378
|
ViewcubeFace_default,
|
|
6362
6379
|
{
|
|
6363
6380
|
face: "base",
|
|
@@ -6457,9 +6474,9 @@ var PluridViewcube = (properties) => {
|
|
|
6457
6474
|
setIsMounted(true);
|
|
6458
6475
|
}, []);
|
|
6459
6476
|
if (!showViewcube) {
|
|
6460
|
-
return /* @__PURE__ */
|
|
6477
|
+
return /* @__PURE__ */ React45.createElement(React45.Fragment, null);
|
|
6461
6478
|
}
|
|
6462
|
-
return /* @__PURE__ */
|
|
6479
|
+
return /* @__PURE__ */ React45.createElement(
|
|
6463
6480
|
StyledPluridViewcube,
|
|
6464
6481
|
{
|
|
6465
6482
|
onMouseEnter: () => setMouseOver(true),
|
|
@@ -6471,20 +6488,20 @@ var PluridViewcube = (properties) => {
|
|
|
6471
6488
|
fadeInTime,
|
|
6472
6489
|
"data-plurid-entity": PLURID_ENTITY_VIEWCUBE
|
|
6473
6490
|
},
|
|
6474
|
-
/* @__PURE__ */
|
|
6491
|
+
/* @__PURE__ */ React45.createElement(
|
|
6475
6492
|
ViewcubeModel_default,
|
|
6476
6493
|
{
|
|
6477
6494
|
mouseOver
|
|
6478
6495
|
}
|
|
6479
6496
|
),
|
|
6480
|
-
mouseOver && buttons && /* @__PURE__ */
|
|
6497
|
+
mouseOver && buttons && /* @__PURE__ */ React45.createElement(React45.Fragment, null, /* @__PURE__ */ React45.createElement(
|
|
6481
6498
|
StyledPluridViewcubeArrow,
|
|
6482
6499
|
{
|
|
6483
6500
|
style: {
|
|
6484
6501
|
gridArea: "PVRotateUp"
|
|
6485
6502
|
}
|
|
6486
6503
|
},
|
|
6487
|
-
/* @__PURE__ */
|
|
6504
|
+
/* @__PURE__ */ React45.createElement(
|
|
6488
6505
|
StyledPluridViewcubeArrowIcon,
|
|
6489
6506
|
{
|
|
6490
6507
|
theme: stateInteractionTheme,
|
|
@@ -6492,7 +6509,7 @@ var PluridViewcube = (properties) => {
|
|
|
6492
6509
|
},
|
|
6493
6510
|
"\u25B2"
|
|
6494
6511
|
)
|
|
6495
|
-
), /* @__PURE__ */
|
|
6512
|
+
), /* @__PURE__ */ React45.createElement(
|
|
6496
6513
|
StyledPluridViewcubeArrow,
|
|
6497
6514
|
{
|
|
6498
6515
|
theme: stateInteractionTheme,
|
|
@@ -6500,7 +6517,7 @@ var PluridViewcube = (properties) => {
|
|
|
6500
6517
|
gridArea: "PVRotateDown"
|
|
6501
6518
|
}
|
|
6502
6519
|
},
|
|
6503
|
-
/* @__PURE__ */
|
|
6520
|
+
/* @__PURE__ */ React45.createElement(
|
|
6504
6521
|
StyledPluridViewcubeArrowIcon,
|
|
6505
6522
|
{
|
|
6506
6523
|
theme: stateInteractionTheme,
|
|
@@ -6508,7 +6525,7 @@ var PluridViewcube = (properties) => {
|
|
|
6508
6525
|
},
|
|
6509
6526
|
"\u25BC"
|
|
6510
6527
|
)
|
|
6511
|
-
), /* @__PURE__ */
|
|
6528
|
+
), /* @__PURE__ */ React45.createElement(
|
|
6512
6529
|
StyledPluridViewcubeArrow,
|
|
6513
6530
|
{
|
|
6514
6531
|
theme: stateInteractionTheme,
|
|
@@ -6516,7 +6533,7 @@ var PluridViewcube = (properties) => {
|
|
|
6516
6533
|
gridArea: "PVRotateLeft"
|
|
6517
6534
|
}
|
|
6518
6535
|
},
|
|
6519
|
-
/* @__PURE__ */
|
|
6536
|
+
/* @__PURE__ */ React45.createElement(
|
|
6520
6537
|
StyledPluridViewcubeArrowIcon,
|
|
6521
6538
|
{
|
|
6522
6539
|
theme: stateInteractionTheme,
|
|
@@ -6524,7 +6541,7 @@ var PluridViewcube = (properties) => {
|
|
|
6524
6541
|
},
|
|
6525
6542
|
"\u25C0"
|
|
6526
6543
|
)
|
|
6527
|
-
), /* @__PURE__ */
|
|
6544
|
+
), /* @__PURE__ */ React45.createElement(
|
|
6528
6545
|
StyledPluridViewcubeArrow,
|
|
6529
6546
|
{
|
|
6530
6547
|
theme: stateInteractionTheme,
|
|
@@ -6532,7 +6549,7 @@ var PluridViewcube = (properties) => {
|
|
|
6532
6549
|
gridArea: "PVRotateRight"
|
|
6533
6550
|
}
|
|
6534
6551
|
},
|
|
6535
|
-
/* @__PURE__ */
|
|
6552
|
+
/* @__PURE__ */ React45.createElement(
|
|
6536
6553
|
StyledPluridViewcubeArrowIcon,
|
|
6537
6554
|
{
|
|
6538
6555
|
theme: stateInteractionTheme,
|
|
@@ -6540,12 +6557,12 @@ var PluridViewcube = (properties) => {
|
|
|
6540
6557
|
},
|
|
6541
6558
|
"\u25B6"
|
|
6542
6559
|
)
|
|
6543
|
-
), /* @__PURE__ */
|
|
6560
|
+
), /* @__PURE__ */ React45.createElement(
|
|
6544
6561
|
StyledFitView,
|
|
6545
6562
|
{
|
|
6546
6563
|
onClick: animatedReset
|
|
6547
6564
|
},
|
|
6548
|
-
/* @__PURE__ */
|
|
6565
|
+
/* @__PURE__ */ React45.createElement(PluridIconGlobal, null)
|
|
6549
6566
|
))
|
|
6550
6567
|
);
|
|
6551
6568
|
};
|
|
@@ -6660,7 +6677,7 @@ var PluridMinimap = (properties) => {
|
|
|
6660
6677
|
}
|
|
6661
6678
|
const planes3 = flattenVisible(stateTree);
|
|
6662
6679
|
if (planes3.length === 0) {
|
|
6663
|
-
return /* @__PURE__ */
|
|
6680
|
+
return /* @__PURE__ */ React45.createElement(
|
|
6664
6681
|
StyledMinimap,
|
|
6665
6682
|
{
|
|
6666
6683
|
theme: stateGeneralTheme,
|
|
@@ -6680,7 +6697,7 @@ var PluridMinimap = (properties) => {
|
|
|
6680
6697
|
x: PADDING + (plane.location[hAxis.axis] - hAxis.min) / hAxis.span * (WIDTH - 2 * PADDING),
|
|
6681
6698
|
y: PADDING + (plane.location[vAxis.axis] - vAxis.min) / vAxis.span * (HEIGHT - 2 * PADDING)
|
|
6682
6699
|
});
|
|
6683
|
-
return /* @__PURE__ */
|
|
6700
|
+
return /* @__PURE__ */ React45.createElement(
|
|
6684
6701
|
StyledMinimap,
|
|
6685
6702
|
{
|
|
6686
6703
|
"data-plurid-minimap": true,
|
|
@@ -6690,7 +6707,7 @@ var PluridMinimap = (properties) => {
|
|
|
6690
6707
|
planes3.map((plane) => {
|
|
6691
6708
|
const { x, y } = project(plane);
|
|
6692
6709
|
const active = plane.planeID === stateActivePlaneID;
|
|
6693
|
-
return /* @__PURE__ */
|
|
6710
|
+
return /* @__PURE__ */ React45.createElement(
|
|
6694
6711
|
StyledMinimapHit,
|
|
6695
6712
|
{
|
|
6696
6713
|
key: plane.planeID,
|
|
@@ -6701,7 +6718,7 @@ var PluridMinimap = (properties) => {
|
|
|
6701
6718
|
top: y - HIT / 2
|
|
6702
6719
|
}
|
|
6703
6720
|
},
|
|
6704
|
-
/* @__PURE__ */
|
|
6721
|
+
/* @__PURE__ */ React45.createElement(
|
|
6705
6722
|
StyledMinimapDot,
|
|
6706
6723
|
{
|
|
6707
6724
|
theme: stateGeneralTheme,
|
|
@@ -6956,7 +6973,7 @@ var PluridShortcuts = (properties) => {
|
|
|
6956
6973
|
window.removeEventListener("keydown", onKeyDown);
|
|
6957
6974
|
};
|
|
6958
6975
|
}, []);
|
|
6959
|
-
return /* @__PURE__ */
|
|
6976
|
+
return /* @__PURE__ */ React45.createElement(React45.Fragment, null, /* @__PURE__ */ React45.createElement(
|
|
6960
6977
|
StyledShortcutsTrigger,
|
|
6961
6978
|
{
|
|
6962
6979
|
theme,
|
|
@@ -6966,20 +6983,20 @@ var PluridShortcuts = (properties) => {
|
|
|
6966
6983
|
onClick: () => setVisible((value) => !value)
|
|
6967
6984
|
},
|
|
6968
6985
|
"?"
|
|
6969
|
-
), visible && /* @__PURE__ */
|
|
6986
|
+
), visible && /* @__PURE__ */ React45.createElement(
|
|
6970
6987
|
StyledShortcutsBackdrop,
|
|
6971
6988
|
{
|
|
6972
6989
|
onClick: () => setVisible(false),
|
|
6973
6990
|
"data-plurid-entity": "shortcuts-overlay"
|
|
6974
6991
|
},
|
|
6975
|
-
/* @__PURE__ */
|
|
6992
|
+
/* @__PURE__ */ React45.createElement(
|
|
6976
6993
|
StyledShortcutsPanel,
|
|
6977
6994
|
{
|
|
6978
6995
|
theme,
|
|
6979
6996
|
onClick: (event) => event.stopPropagation()
|
|
6980
6997
|
},
|
|
6981
|
-
/* @__PURE__ */
|
|
6982
|
-
/* @__PURE__ */
|
|
6998
|
+
/* @__PURE__ */ React45.createElement(StyledShortcutsHeader, null, /* @__PURE__ */ React45.createElement("h2", null, "Keyboard Shortcuts"), /* @__PURE__ */ React45.createElement("span", null, "? or Esc to close")),
|
|
6999
|
+
/* @__PURE__ */ React45.createElement(StyledShortcutsGroups, null, SHORTCUT_GROUPS.map((group) => /* @__PURE__ */ React45.createElement(StyledShortcutsGroup, { key: group.title }, /* @__PURE__ */ React45.createElement(StyledShortcutsGroupTitle, null, group.title), group.items.map((item, itemIndex) => /* @__PURE__ */ React45.createElement(StyledShortcutsRow, { key: item.label + itemIndex }, /* @__PURE__ */ React45.createElement("span", { className: "label" }, item.label), /* @__PURE__ */ React45.createElement(StyledShortcutsKeys, null, item.keys.map((key, keyIndex) => /* @__PURE__ */ React45.createElement(
|
|
6983
7000
|
StyledShortcutsKey,
|
|
6984
7001
|
{
|
|
6985
7002
|
key: key + keyIndex,
|
|
@@ -7011,7 +7028,7 @@ var PluridViewContainer = (properties) => {
|
|
|
7011
7028
|
renderMinimap,
|
|
7012
7029
|
renderShortcuts
|
|
7013
7030
|
} = properties;
|
|
7014
|
-
return /* @__PURE__ */
|
|
7031
|
+
return /* @__PURE__ */ React45.createElement(React45.Fragment, null, /* @__PURE__ */ React45.createElement(Space_default, null), /* @__PURE__ */ React45.createElement(Origin_default, null), renderToolbar ? renderToolbar() : /* @__PURE__ */ React45.createElement(General_default, null), renderViewcube ? renderViewcube() : /* @__PURE__ */ React45.createElement(Viewcube_default2, null), renderMinimap ? renderMinimap() : /* @__PURE__ */ React45.createElement(Minimap_default2, null), renderShortcuts ? renderShortcuts() : /* @__PURE__ */ React45.createElement(Shortcuts_default2, null));
|
|
7015
7032
|
};
|
|
7016
7033
|
var Container_default = PluridViewContainer;
|
|
7017
7034
|
var useGrabMode = () => {
|
|
@@ -8515,7 +8532,7 @@ var PluridView = (properties) => {
|
|
|
8515
8532
|
pluridPubSub,
|
|
8516
8533
|
registerPubSub
|
|
8517
8534
|
]);
|
|
8518
|
-
return /* @__PURE__ */
|
|
8535
|
+
return /* @__PURE__ */ React45.createElement(
|
|
8519
8536
|
StyledView,
|
|
8520
8537
|
{
|
|
8521
8538
|
ref: viewElement,
|
|
@@ -8528,12 +8545,12 @@ var PluridView = (properties) => {
|
|
|
8528
8545
|
preventOverscroll,
|
|
8529
8546
|
"data-plurid-entity": PLURID_ENTITY_VIEW
|
|
8530
8547
|
},
|
|
8531
|
-
/* @__PURE__ */
|
|
8548
|
+
/* @__PURE__ */ React45.createElement(
|
|
8532
8549
|
context_default2.Provider,
|
|
8533
8550
|
{
|
|
8534
8551
|
value: pluridContext
|
|
8535
8552
|
},
|
|
8536
|
-
stateSpaceView.length !== 0 ? /* @__PURE__ */
|
|
8553
|
+
stateSpaceView.length !== 0 ? /* @__PURE__ */ React45.createElement(
|
|
8537
8554
|
Container_default,
|
|
8538
8555
|
{
|
|
8539
8556
|
renderToolbar: properties.renderToolbar,
|
|
@@ -8541,7 +8558,7 @@ var PluridView = (properties) => {
|
|
|
8541
8558
|
renderMinimap: properties.renderMinimap,
|
|
8542
8559
|
renderShortcuts: properties.renderShortcuts
|
|
8543
8560
|
}
|
|
8544
|
-
) : /* @__PURE__ */
|
|
8561
|
+
) : /* @__PURE__ */ React45.createElement(React45.Fragment, null)
|
|
8545
8562
|
)
|
|
8546
8563
|
);
|
|
8547
8564
|
};
|
|
@@ -8773,13 +8790,13 @@ var PluridApplication = class extends Component {
|
|
|
8773
8790
|
// styled-components v6 no longer auto-filters props, so engine-internal props
|
|
8774
8791
|
// (transformMode, show, active, face, …) would leak onto DOM nodes. Forward
|
|
8775
8792
|
// only valid HTML/SVG attributes; the styled templates still receive them all.
|
|
8776
|
-
/* @__PURE__ */
|
|
8793
|
+
/* @__PURE__ */ React45.createElement(StyleSheetManager, { shouldForwardProp: isPropValid }, /* @__PURE__ */ React45.createElement(
|
|
8777
8794
|
Provider,
|
|
8778
8795
|
{
|
|
8779
8796
|
store: this.store,
|
|
8780
8797
|
context: context_default
|
|
8781
8798
|
},
|
|
8782
|
-
/* @__PURE__ */
|
|
8799
|
+
/* @__PURE__ */ React45.createElement(
|
|
8783
8800
|
View_default,
|
|
8784
8801
|
{
|
|
8785
8802
|
...this.props,
|
|
@@ -9090,7 +9107,7 @@ var gatherPluridPlanes = (routes, planes3) => {
|
|
|
9090
9107
|
};
|
|
9091
9108
|
var renderMultispace = (matchedRoute, hostname = "origin") => {
|
|
9092
9109
|
if (matchedRoute.kind !== "Route") {
|
|
9093
|
-
return () => () => /* @__PURE__ */
|
|
9110
|
+
return () => () => /* @__PURE__ */ React45.createElement(React45.Fragment, null);
|
|
9094
9111
|
}
|
|
9095
9112
|
const protocol = "http";
|
|
9096
9113
|
const host = hostname;
|
|
@@ -9115,11 +9132,11 @@ var renderMultispace = (matchedRoute, hostname = "origin") => {
|
|
|
9115
9132
|
} = matchedRoute.data;
|
|
9116
9133
|
const multispaceAlignment = path.multispace?.alignment || "y";
|
|
9117
9134
|
const multispaceSnapType = path.multispace?.snapType || "mandatory";
|
|
9118
|
-
let PluridExterior = () => /* @__PURE__ */
|
|
9135
|
+
let PluridExterior = () => /* @__PURE__ */ React45.createElement(React45.Fragment, null);
|
|
9119
9136
|
if (isReactRenderable(exterior)) {
|
|
9120
9137
|
PluridExterior = exterior;
|
|
9121
9138
|
}
|
|
9122
|
-
let PluridSpaces = () => /* @__PURE__ */
|
|
9139
|
+
let PluridSpaces = () => /* @__PURE__ */ React45.createElement(React45.Fragment, null);
|
|
9123
9140
|
const spacesArray = [];
|
|
9124
9141
|
if (spaces) {
|
|
9125
9142
|
for (const space4 of spaces) {
|
|
@@ -9193,7 +9210,7 @@ var renderMultispace = (matchedRoute, hostname = "origin") => {
|
|
|
9193
9210
|
[],
|
|
9194
9211
|
"localhost:63000"
|
|
9195
9212
|
);
|
|
9196
|
-
const App = /* @__PURE__ */
|
|
9213
|
+
const App = /* @__PURE__ */ React45.createElement(
|
|
9197
9214
|
Application_default,
|
|
9198
9215
|
{
|
|
9199
9216
|
key: uuid.generate(),
|
|
@@ -9245,7 +9262,7 @@ var renderMultispace = (matchedRoute, hostname = "origin") => {
|
|
|
9245
9262
|
}
|
|
9246
9263
|
}
|
|
9247
9264
|
}
|
|
9248
|
-
const App = /* @__PURE__ */
|
|
9265
|
+
const App = /* @__PURE__ */ React45.createElement(
|
|
9249
9266
|
Application_default,
|
|
9250
9267
|
{
|
|
9251
9268
|
key: uuid.generate(),
|
|
@@ -9266,21 +9283,21 @@ var renderMultispace = (matchedRoute, hostname = "origin") => {
|
|
|
9266
9283
|
if (isReactRenderable(path.multispace?.footer)) {
|
|
9267
9284
|
MultispaceFooter = path.multispace?.footer;
|
|
9268
9285
|
}
|
|
9269
|
-
PluridSpaces = () => /* @__PURE__ */
|
|
9286
|
+
PluridSpaces = () => /* @__PURE__ */ React45.createElement(
|
|
9270
9287
|
StyledSpaces,
|
|
9271
9288
|
{
|
|
9272
9289
|
alignment: multispaceAlignment,
|
|
9273
9290
|
snapType: multispaceSnapType,
|
|
9274
9291
|
"data-plurid-entity": PLURID_ENTITY_MULTISPACE
|
|
9275
9292
|
},
|
|
9276
|
-
MultispaceHeader && /* @__PURE__ */
|
|
9293
|
+
MultispaceHeader && /* @__PURE__ */ React45.createElement(
|
|
9277
9294
|
MultispaceHeader,
|
|
9278
9295
|
{
|
|
9279
9296
|
plurid: pluridRouteProperty
|
|
9280
9297
|
}
|
|
9281
9298
|
),
|
|
9282
9299
|
spacesArray,
|
|
9283
|
-
MultispaceFooter && /* @__PURE__ */
|
|
9300
|
+
MultispaceFooter && /* @__PURE__ */ React45.createElement(
|
|
9284
9301
|
MultispaceFooter,
|
|
9285
9302
|
{
|
|
9286
9303
|
plurid: pluridRouteProperty
|
|
@@ -9288,13 +9305,13 @@ var renderMultispace = (matchedRoute, hostname = "origin") => {
|
|
|
9288
9305
|
)
|
|
9289
9306
|
);
|
|
9290
9307
|
return () => {
|
|
9291
|
-
const PluridRoute3 = () => /* @__PURE__ */
|
|
9308
|
+
const PluridRoute3 = () => /* @__PURE__ */ React45.createElement(React45.Fragment, null, exterior && /* @__PURE__ */ React45.createElement(
|
|
9292
9309
|
PluridExterior,
|
|
9293
9310
|
{
|
|
9294
9311
|
spaces: slotted ? spacesArray : void 0,
|
|
9295
9312
|
plurid: pluridRouteProperty
|
|
9296
9313
|
}
|
|
9297
|
-
), (spaces || planes3) && !slotted && /* @__PURE__ */
|
|
9314
|
+
), (spaces || planes3) && !slotted && /* @__PURE__ */ React45.createElement(PluridSpaces, null));
|
|
9298
9315
|
return PluridRoute3;
|
|
9299
9316
|
};
|
|
9300
9317
|
};
|
|
@@ -9302,7 +9319,7 @@ var computePluridRoute = (matchedRoute, planesRegistrar, isoMatcher, directPlane
|
|
|
9302
9319
|
if (directPlane || matchedRoute?.kind === "RoutePlane") {
|
|
9303
9320
|
const match = directPlane || matchedRoute;
|
|
9304
9321
|
if (!match) {
|
|
9305
|
-
return () => () => /* @__PURE__ */
|
|
9322
|
+
return () => () => /* @__PURE__ */ React45.createElement(React45.Fragment, null);
|
|
9306
9323
|
}
|
|
9307
9324
|
const DirectPlane = renderDirectPlane(
|
|
9308
9325
|
match,
|
|
@@ -9323,7 +9340,7 @@ var computePluridRoute = (matchedRoute, planesRegistrar, isoMatcher, directPlane
|
|
|
9323
9340
|
);
|
|
9324
9341
|
return notFoundRender;
|
|
9325
9342
|
}
|
|
9326
|
-
return () => () => /* @__PURE__ */
|
|
9343
|
+
return () => () => /* @__PURE__ */ React45.createElement(React45.Fragment, null);
|
|
9327
9344
|
}
|
|
9328
9345
|
const {
|
|
9329
9346
|
exterior,
|
|
@@ -9351,7 +9368,7 @@ var computePluridRoute = (matchedRoute, planesRegistrar, isoMatcher, directPlane
|
|
|
9351
9368
|
}
|
|
9352
9369
|
if (exterior && PluridRouteExterior && !view && !planes3 && !spaces) {
|
|
9353
9370
|
return () => {
|
|
9354
|
-
const PluridRoute3 = () => /* @__PURE__ */
|
|
9371
|
+
const PluridRoute3 = () => /* @__PURE__ */ React45.createElement(React45.Fragment, null, PluridRouteExterior && /* @__PURE__ */ React45.createElement(
|
|
9355
9372
|
PluridRouteExterior,
|
|
9356
9373
|
{
|
|
9357
9374
|
plurid: pluridRouteProperty
|
|
@@ -9364,7 +9381,7 @@ var computePluridRoute = (matchedRoute, planesRegistrar, isoMatcher, directPlane
|
|
|
9364
9381
|
return () => {
|
|
9365
9382
|
const pubsub = new PluridPubSub();
|
|
9366
9383
|
const space4 = matchedRoute.data.value;
|
|
9367
|
-
const pluridApplication = /* @__PURE__ */
|
|
9384
|
+
const pluridApplication = /* @__PURE__ */ React45.createElement(
|
|
9368
9385
|
Application_default,
|
|
9369
9386
|
{
|
|
9370
9387
|
view,
|
|
@@ -9376,14 +9393,14 @@ var computePluridRoute = (matchedRoute, planesRegistrar, isoMatcher, directPlane
|
|
|
9376
9393
|
space: space4
|
|
9377
9394
|
}
|
|
9378
9395
|
);
|
|
9379
|
-
const PluridRoute3 = () => /* @__PURE__ */
|
|
9396
|
+
const PluridRoute3 = () => /* @__PURE__ */ React45.createElement(React45.Fragment, null, PluridRouteExterior && /* @__PURE__ */ React45.createElement(
|
|
9380
9397
|
PluridRouteExterior,
|
|
9381
9398
|
{
|
|
9382
9399
|
plurid: pluridRouteProperty,
|
|
9383
9400
|
pubsub,
|
|
9384
9401
|
spaces: slotted ? [pluridApplication] : void 0
|
|
9385
9402
|
}
|
|
9386
|
-
), !slotted && /* @__PURE__ */
|
|
9403
|
+
), !slotted && /* @__PURE__ */ React45.createElement(React45.Fragment, null, pluridApplication));
|
|
9387
9404
|
return PluridRoute3;
|
|
9388
9405
|
};
|
|
9389
9406
|
}
|
|
@@ -9445,10 +9462,10 @@ var renderDirectPlane = (routePlane, planesRegistrar, hostname = "origin") => {
|
|
|
9445
9462
|
if (pluridRoute) {
|
|
9446
9463
|
const Flat = pluridRoute.component;
|
|
9447
9464
|
if (typeof Flat !== "function") {
|
|
9448
|
-
return () => () => /* @__PURE__ */
|
|
9465
|
+
return () => () => /* @__PURE__ */ React45.createElement(React45.Fragment, null);
|
|
9449
9466
|
}
|
|
9450
9467
|
const DirectPlane2 = () => {
|
|
9451
|
-
const PluridRoute3 = () => /* @__PURE__ */
|
|
9468
|
+
const PluridRoute3 = () => /* @__PURE__ */ React45.createElement(React45.Fragment, null, /* @__PURE__ */ React45.createElement(Flat, null));
|
|
9452
9469
|
return PluridRoute3;
|
|
9453
9470
|
};
|
|
9454
9471
|
return DirectPlane2;
|
|
@@ -9459,7 +9476,7 @@ var renderDirectPlane = (routePlane, planesRegistrar, hostname = "origin") => {
|
|
|
9459
9476
|
defaultConfiguration: defaultConfiguration2
|
|
9460
9477
|
} = routePlane?.data;
|
|
9461
9478
|
const DirectPlane = () => {
|
|
9462
|
-
const PluridRoute3 = () => /* @__PURE__ */
|
|
9479
|
+
const PluridRoute3 = () => /* @__PURE__ */ React45.createElement(React45.Fragment, null, /* @__PURE__ */ React45.createElement(
|
|
9463
9480
|
Application_default,
|
|
9464
9481
|
{
|
|
9465
9482
|
view: [
|
|
@@ -9506,9 +9523,9 @@ var FadeIn = (properties) => {
|
|
|
9506
9523
|
}
|
|
9507
9524
|
}, []);
|
|
9508
9525
|
if (fadedIn || time === 0) {
|
|
9509
|
-
return /* @__PURE__ */
|
|
9526
|
+
return /* @__PURE__ */ React45.createElement(React45.Fragment, null);
|
|
9510
9527
|
}
|
|
9511
|
-
return /* @__PURE__ */
|
|
9528
|
+
return /* @__PURE__ */ React45.createElement(StyledFadeIn, null);
|
|
9512
9529
|
};
|
|
9513
9530
|
var FadeIn_default = FadeIn;
|
|
9514
9531
|
|
|
@@ -9686,34 +9703,34 @@ var PluridRouterBrowser = (properties) => {
|
|
|
9686
9703
|
}
|
|
9687
9704
|
let PluridRouterShell = ({
|
|
9688
9705
|
children
|
|
9689
|
-
}) => /* @__PURE__ */
|
|
9706
|
+
}) => /* @__PURE__ */ React45.createElement(React45.Fragment, null, children);
|
|
9690
9707
|
if (isReactRenderable(shell)) {
|
|
9691
9708
|
PluridRouterShell = shell;
|
|
9692
9709
|
if (PluridRouterShell) {
|
|
9693
9710
|
PluridRouterShell.displayName = "PluridRouterShell";
|
|
9694
9711
|
}
|
|
9695
9712
|
}
|
|
9696
|
-
return /* @__PURE__ */
|
|
9713
|
+
return /* @__PURE__ */ React45.createElement(React45.Fragment, null, /* @__PURE__ */ React45.createElement(
|
|
9697
9714
|
FadeIn_default,
|
|
9698
9715
|
{
|
|
9699
9716
|
time: fadeIn3
|
|
9700
9717
|
}
|
|
9701
|
-
), /* @__PURE__ */
|
|
9718
|
+
), /* @__PURE__ */ React45.createElement(
|
|
9702
9719
|
PluridScrollTop,
|
|
9703
9720
|
{
|
|
9704
9721
|
ref: topContainer
|
|
9705
9722
|
}
|
|
9706
|
-
), PluridRouterExterior && /* @__PURE__ */
|
|
9723
|
+
), PluridRouterExterior && /* @__PURE__ */ React45.createElement(
|
|
9707
9724
|
PluridRouterExterior,
|
|
9708
9725
|
{
|
|
9709
9726
|
matchedRoute
|
|
9710
9727
|
}
|
|
9711
|
-
), /* @__PURE__ */
|
|
9728
|
+
), /* @__PURE__ */ React45.createElement(
|
|
9712
9729
|
PluridRouterShell,
|
|
9713
9730
|
{
|
|
9714
9731
|
matchedRoute
|
|
9715
9732
|
},
|
|
9716
|
-
/* @__PURE__ */
|
|
9733
|
+
/* @__PURE__ */ React45.createElement(PluridRoute3, null)
|
|
9717
9734
|
));
|
|
9718
9735
|
};
|
|
9719
9736
|
var RouterBrowser_default = PluridRouterBrowser;
|
|
@@ -9734,7 +9751,7 @@ var PluridRouterStatic2 = (properties) => {
|
|
|
9734
9751
|
} = properties;
|
|
9735
9752
|
const protocol = protocolProperty || "http";
|
|
9736
9753
|
const hostname = hostnameProperty || "origin";
|
|
9737
|
-
return /* @__PURE__ */
|
|
9754
|
+
return /* @__PURE__ */ React45.createElement(
|
|
9738
9755
|
RouterBrowser_default,
|
|
9739
9756
|
{
|
|
9740
9757
|
routes,
|
|
@@ -9752,8 +9769,8 @@ var PluridRouterStatic2 = (properties) => {
|
|
|
9752
9769
|
);
|
|
9753
9770
|
};
|
|
9754
9771
|
var RouterStatic_default = PluridRouterStatic2;
|
|
9755
|
-
var PluridContext2 =
|
|
9756
|
-
var
|
|
9772
|
+
var PluridContext2 = React45.createContext(void 0);
|
|
9773
|
+
var context_default4 = PluridContext2;
|
|
9757
9774
|
|
|
9758
9775
|
// source/containers/Provider/index.tsx
|
|
9759
9776
|
var PluridProvider = class extends Component {
|
|
@@ -9768,8 +9785,8 @@ var PluridProvider = class extends Component {
|
|
|
9768
9785
|
metastate,
|
|
9769
9786
|
children
|
|
9770
9787
|
} = this.properties;
|
|
9771
|
-
return /* @__PURE__ */
|
|
9772
|
-
|
|
9788
|
+
return /* @__PURE__ */ React45.createElement(
|
|
9789
|
+
context_default4.Provider,
|
|
9773
9790
|
{
|
|
9774
9791
|
value: metastate
|
|
9775
9792
|
},
|
|
@@ -9849,30 +9866,30 @@ var PluridPlanePreview = (properties) => {
|
|
|
9849
9866
|
};
|
|
9850
9867
|
const context = useContext(context_default2);
|
|
9851
9868
|
if (!context) {
|
|
9852
|
-
return /* @__PURE__ */
|
|
9869
|
+
return /* @__PURE__ */ React45.createElement(React45.Fragment, null);
|
|
9853
9870
|
}
|
|
9854
9871
|
const {
|
|
9855
9872
|
planesRegistrar
|
|
9856
9873
|
} = context;
|
|
9857
9874
|
const planesRegistry = getPlanesRegistrar(planesRegistrar);
|
|
9858
9875
|
if (!planesRegistry) {
|
|
9859
|
-
return /* @__PURE__ */
|
|
9876
|
+
return /* @__PURE__ */ React45.createElement(React45.Fragment, null);
|
|
9860
9877
|
}
|
|
9861
9878
|
const plane = planesRegistry.get(planeRoute);
|
|
9862
9879
|
if (!plane) {
|
|
9863
|
-
return /* @__PURE__ */
|
|
9880
|
+
return /* @__PURE__ */ React45.createElement(React45.Fragment, null);
|
|
9864
9881
|
}
|
|
9865
9882
|
const Component3 = previewComponent ?? plane.component;
|
|
9866
9883
|
if (typeof Component3 !== "function") {
|
|
9867
|
-
return /* @__PURE__ */
|
|
9884
|
+
return /* @__PURE__ */ React45.createElement(React45.Fragment, null);
|
|
9868
9885
|
}
|
|
9869
|
-
return /* @__PURE__ */
|
|
9886
|
+
return /* @__PURE__ */ React45.createElement(
|
|
9870
9887
|
StyledPluridPlanePreview,
|
|
9871
9888
|
{
|
|
9872
9889
|
theme: stateGeneralTheme,
|
|
9873
9890
|
linkCoordinates: resolvedLinkCoordinates
|
|
9874
9891
|
},
|
|
9875
|
-
/* @__PURE__ */
|
|
9892
|
+
/* @__PURE__ */ React45.createElement(Component3, null)
|
|
9876
9893
|
);
|
|
9877
9894
|
};
|
|
9878
9895
|
var mapStateToProperties17 = (state2) => ({
|
|
@@ -9981,7 +9998,7 @@ var useLinkPreview_default = useLinkPreview;
|
|
|
9981
9998
|
var PluridLink = (properties) => {
|
|
9982
9999
|
const context = useContext(context_default2);
|
|
9983
10000
|
if (!context) {
|
|
9984
|
-
return /* @__PURE__ */
|
|
10001
|
+
return /* @__PURE__ */ React45.createElement(React45.Fragment, null, properties.children);
|
|
9985
10002
|
}
|
|
9986
10003
|
const {
|
|
9987
10004
|
hostname,
|
|
@@ -9990,7 +10007,7 @@ var PluridLink = (properties) => {
|
|
|
9990
10007
|
} = context;
|
|
9991
10008
|
const planesRegistry = getPlanesRegistrar(planesRegistrar);
|
|
9992
10009
|
if (!planesRegistry) {
|
|
9993
|
-
return /* @__PURE__ */
|
|
10010
|
+
return /* @__PURE__ */ React45.createElement(React45.Fragment, null, properties.children);
|
|
9994
10011
|
}
|
|
9995
10012
|
const {
|
|
9996
10013
|
// #region own
|
|
@@ -10356,7 +10373,7 @@ var PluridLink = (properties) => {
|
|
|
10356
10373
|
showLink,
|
|
10357
10374
|
pluridPlaneID
|
|
10358
10375
|
]);
|
|
10359
|
-
return /* @__PURE__ */
|
|
10376
|
+
return /* @__PURE__ */ React45.createElement(
|
|
10360
10377
|
StyledPluridLink,
|
|
10361
10378
|
{
|
|
10362
10379
|
ref: linkElement,
|
|
@@ -10375,13 +10392,13 @@ var PluridLink = (properties) => {
|
|
|
10375
10392
|
tabIndex: 0
|
|
10376
10393
|
},
|
|
10377
10394
|
children,
|
|
10378
|
-
showPreview && !showLink && /* @__PURE__ */
|
|
10395
|
+
showPreview && !showLink && /* @__PURE__ */ React45.createElement(
|
|
10379
10396
|
Portal_default,
|
|
10380
10397
|
{
|
|
10381
10398
|
elementID: `preview-${parentPlaneID}`,
|
|
10382
10399
|
rootID: parentPlaneID
|
|
10383
10400
|
},
|
|
10384
|
-
/* @__PURE__ */
|
|
10401
|
+
/* @__PURE__ */ React45.createElement(
|
|
10385
10402
|
Preview_default,
|
|
10386
10403
|
{
|
|
10387
10404
|
planeRoute: planeRouteResolved,
|
|
@@ -10507,7 +10524,7 @@ var PluridRouterLink = (properties) => {
|
|
|
10507
10524
|
onKeyUp: handleKeyUp
|
|
10508
10525
|
};
|
|
10509
10526
|
if (!asAnchor) {
|
|
10510
|
-
return /* @__PURE__ */
|
|
10527
|
+
return /* @__PURE__ */ React45.createElement(
|
|
10511
10528
|
StyledPluridRouterLinkDiv,
|
|
10512
10529
|
{
|
|
10513
10530
|
...renderProperties
|
|
@@ -10515,7 +10532,7 @@ var PluridRouterLink = (properties) => {
|
|
|
10515
10532
|
children
|
|
10516
10533
|
);
|
|
10517
10534
|
}
|
|
10518
|
-
return /* @__PURE__ */
|
|
10535
|
+
return /* @__PURE__ */ React45.createElement(
|
|
10519
10536
|
StyledPluridRouterLinkAnchor,
|
|
10520
10537
|
{
|
|
10521
10538
|
href: route,
|
|
@@ -10537,7 +10554,7 @@ var StyledPluridApplicationConfigurator = styled24.div`
|
|
|
10537
10554
|
var PluridApplicationConfigurator = (properties) => {
|
|
10538
10555
|
const context = useContext(context_default2);
|
|
10539
10556
|
if (!context) {
|
|
10540
|
-
return /* @__PURE__ */
|
|
10557
|
+
return /* @__PURE__ */ React45.createElement(React45.Fragment, null);
|
|
10541
10558
|
}
|
|
10542
10559
|
const {
|
|
10543
10560
|
registerPubSub
|
|
@@ -10568,7 +10585,7 @@ var PluridApplicationConfigurator = (properties) => {
|
|
|
10568
10585
|
}, [
|
|
10569
10586
|
pubsub
|
|
10570
10587
|
]);
|
|
10571
|
-
return /* @__PURE__ */
|
|
10588
|
+
return /* @__PURE__ */ React45.createElement(
|
|
10572
10589
|
StyledPluridApplicationConfigurator,
|
|
10573
10590
|
{
|
|
10574
10591
|
ref: configuratorElement,
|
|
@@ -10622,7 +10639,7 @@ var PluridPlaneConfigurator = (properties) => {
|
|
|
10622
10639
|
);
|
|
10623
10640
|
setParentPlaneID(parentPlaneID);
|
|
10624
10641
|
}, []);
|
|
10625
|
-
return /* @__PURE__ */
|
|
10642
|
+
return /* @__PURE__ */ React45.createElement(
|
|
10626
10643
|
StyledPluridPlaneConfigurator,
|
|
10627
10644
|
{
|
|
10628
10645
|
ref: configuratorElement,
|
|
@@ -10725,6 +10742,7 @@ var ExternalPlane = (properties) => {
|
|
|
10725
10742
|
} = properties;
|
|
10726
10743
|
const route = plurid3.value;
|
|
10727
10744
|
const mounted = useRef(false);
|
|
10745
|
+
const loadStarted = useRef(false);
|
|
10728
10746
|
const [
|
|
10729
10747
|
Component3,
|
|
10730
10748
|
setComponent
|
|
@@ -10736,12 +10754,11 @@ var ExternalPlane = (properties) => {
|
|
|
10736
10754
|
};
|
|
10737
10755
|
});
|
|
10738
10756
|
useEffect(() => {
|
|
10739
|
-
|
|
10757
|
+
if (loadStarted.current) {
|
|
10758
|
+
return;
|
|
10759
|
+
}
|
|
10760
|
+
loadStarted.current = true;
|
|
10740
10761
|
const load = async () => {
|
|
10741
|
-
if (loading) {
|
|
10742
|
-
return;
|
|
10743
|
-
}
|
|
10744
|
-
loading = true;
|
|
10745
10762
|
try {
|
|
10746
10763
|
const {
|
|
10747
10764
|
domain,
|
|
@@ -10772,7 +10789,7 @@ var ExternalPlane = (properties) => {
|
|
|
10772
10789
|
};
|
|
10773
10790
|
load();
|
|
10774
10791
|
}, []);
|
|
10775
|
-
return /* @__PURE__ */
|
|
10792
|
+
return /* @__PURE__ */ React45.createElement(StyledExternalPlane, null, Component3 && /* @__PURE__ */ React45.createElement(Component3, null));
|
|
10776
10793
|
};
|
|
10777
10794
|
var mapStateToProperties20 = (state2) => ({
|
|
10778
10795
|
stateGeneralTheme: selectors_default.themes.getGeneralTheme(state2),
|
|
@@ -10805,7 +10822,7 @@ var IframePlane = (properties) => {
|
|
|
10805
10822
|
// // #endregion state
|
|
10806
10823
|
} = properties;
|
|
10807
10824
|
const route = plurid3.value;
|
|
10808
|
-
return /* @__PURE__ */
|
|
10825
|
+
return /* @__PURE__ */ React45.createElement(StyledIframePlane, null, /* @__PURE__ */ React45.createElement("iframe", { src: route }));
|
|
10809
10826
|
};
|
|
10810
10827
|
var mapStateToProperties21 = (state2) => ({
|
|
10811
10828
|
stateGeneralTheme: selectors_default.themes.getGeneralTheme(state2),
|
|
@@ -10836,7 +10853,7 @@ var VirtualListItem = (properties) => {
|
|
|
10836
10853
|
}, [
|
|
10837
10854
|
el.current
|
|
10838
10855
|
]);
|
|
10839
|
-
return /* @__PURE__ */
|
|
10856
|
+
return /* @__PURE__ */ React45.createElement(
|
|
10840
10857
|
"div",
|
|
10841
10858
|
{
|
|
10842
10859
|
ref: el,
|
|
@@ -10881,7 +10898,7 @@ var PluridVirtualList = (properties) => {
|
|
|
10881
10898
|
for (let i = start; i <= end; i++) {
|
|
10882
10899
|
const item = items[i];
|
|
10883
10900
|
rows.current.push(
|
|
10884
|
-
/* @__PURE__ */
|
|
10901
|
+
/* @__PURE__ */ React45.createElement(
|
|
10885
10902
|
ListItem_default,
|
|
10886
10903
|
{
|
|
10887
10904
|
key: i + Math.random(),
|
|
@@ -10935,7 +10952,7 @@ var PluridVirtualList = (properties) => {
|
|
|
10935
10952
|
}, [
|
|
10936
10953
|
viewSize
|
|
10937
10954
|
]);
|
|
10938
|
-
return /* @__PURE__ */
|
|
10955
|
+
return /* @__PURE__ */ React45.createElement(
|
|
10939
10956
|
"div",
|
|
10940
10957
|
{
|
|
10941
10958
|
style: {
|
|
@@ -10943,11 +10960,11 @@ var PluridVirtualList = (properties) => {
|
|
|
10943
10960
|
},
|
|
10944
10961
|
ref: listElement
|
|
10945
10962
|
},
|
|
10946
|
-
resizing && /* @__PURE__ */
|
|
10963
|
+
resizing && /* @__PURE__ */ React45.createElement(React45.Fragment, null, /* @__PURE__ */ React45.createElement(
|
|
10947
10964
|
PluridSpinner,
|
|
10948
10965
|
null
|
|
10949
10966
|
)),
|
|
10950
|
-
!resizing && /* @__PURE__ */
|
|
10967
|
+
!resizing && /* @__PURE__ */ React45.createElement(React45.Fragment, null, renderRows())
|
|
10951
10968
|
);
|
|
10952
10969
|
};
|
|
10953
10970
|
var mapStateToProps16 = (state2) => ({
|
|
@@ -10969,7 +10986,7 @@ var StyledPluridPlaneDebugger = styled24.div`
|
|
|
10969
10986
|
|
|
10970
10987
|
// source/components/structural/Plane/components/PlaneDebugger/index.tsx
|
|
10971
10988
|
var PluridPlaneDebugger = (properties) => {
|
|
10972
|
-
return /* @__PURE__ */
|
|
10989
|
+
return /* @__PURE__ */ React45.createElement(StyledPluridPlaneDebugger, null, "PluridPlaneDebugger");
|
|
10973
10990
|
};
|
|
10974
10991
|
var mapStateToProperties22 = (state2) => ({
|
|
10975
10992
|
stateGeneralTheme: selectors_default.themes.getGeneralTheme(state2),
|
|
@@ -10990,7 +11007,7 @@ var StyledPluridSpaceDebugger = styled24.div`
|
|
|
10990
11007
|
|
|
10991
11008
|
// source/components/structural/Space/components/SpaceDebugger/index.tsx
|
|
10992
11009
|
var PluridSpaceDebugger = (properties) => {
|
|
10993
|
-
return /* @__PURE__ */
|
|
11010
|
+
return /* @__PURE__ */ React45.createElement(StyledPluridSpaceDebugger, null, "PluridSpaceDebugger");
|
|
10994
11011
|
};
|
|
10995
11012
|
var mapStateToProperties23 = (state2) => ({
|
|
10996
11013
|
stateGeneralTheme: selectors_default.themes.getGeneralTheme(state2),
|
|
@@ -11087,6 +11104,57 @@ var serverComputeMetastate = async (isoMatch, paths, globals, hostname = "origin
|
|
|
11087
11104
|
states
|
|
11088
11105
|
};
|
|
11089
11106
|
};
|
|
11107
|
+
var useEngineSelector = createSelectorHook(context_default);
|
|
11108
|
+
var usePluridPlane = () => {
|
|
11109
|
+
const planeID = useContext(context_default3);
|
|
11110
|
+
const getTreePlane = useMemo(
|
|
11111
|
+
() => makeGetTreePlaneByID(),
|
|
11112
|
+
[]
|
|
11113
|
+
);
|
|
11114
|
+
const active = useEngineSelector(
|
|
11115
|
+
(state2) => planeID !== void 0 && selectors_default.space.getActivePlaneID(state2) === planeID
|
|
11116
|
+
);
|
|
11117
|
+
const selected = useEngineSelector(
|
|
11118
|
+
(state2) => planeID !== void 0 && selectors_default.space.getSelectedPlaneIDs(state2).includes(planeID)
|
|
11119
|
+
);
|
|
11120
|
+
const isolation = useEngineSelector(
|
|
11121
|
+
(state2) => {
|
|
11122
|
+
const isolatePlane = selectors_default.space.getIsolatePlane(state2);
|
|
11123
|
+
if (!isolatePlane) {
|
|
11124
|
+
return "none";
|
|
11125
|
+
}
|
|
11126
|
+
return isolatePlane === planeID ? "self" : "other";
|
|
11127
|
+
}
|
|
11128
|
+
);
|
|
11129
|
+
const shown = useEngineSelector(
|
|
11130
|
+
(state2) => {
|
|
11131
|
+
if (planeID === void 0) {
|
|
11132
|
+
return true;
|
|
11133
|
+
}
|
|
11134
|
+
const treePlane = getTreePlane(state2, planeID);
|
|
11135
|
+
return treePlane ? treePlane.show !== false : true;
|
|
11136
|
+
}
|
|
11137
|
+
);
|
|
11138
|
+
const scale = useEngineSelector(
|
|
11139
|
+
(state2) => selectors_default.space.getScale(state2)
|
|
11140
|
+
);
|
|
11141
|
+
const viewSize = useEngineSelector(
|
|
11142
|
+
(state2) => selectors_default.space.getViewSize(state2)
|
|
11143
|
+
);
|
|
11144
|
+
const location = useEngineSelector(
|
|
11145
|
+
(state2) => planeID !== void 0 ? getTreePlane(state2, planeID)?.location : void 0
|
|
11146
|
+
);
|
|
11147
|
+
return {
|
|
11148
|
+
planeID,
|
|
11149
|
+
active,
|
|
11150
|
+
selected,
|
|
11151
|
+
isolation,
|
|
11152
|
+
shown,
|
|
11153
|
+
scale,
|
|
11154
|
+
viewSize,
|
|
11155
|
+
location
|
|
11156
|
+
};
|
|
11157
|
+
};
|
|
11090
11158
|
var usePluridRouter = () => {
|
|
11091
11159
|
const [
|
|
11092
11160
|
routerValue,
|
|
@@ -11155,6 +11223,6 @@ var Plurid = {
|
|
|
11155
11223
|
};
|
|
11156
11224
|
var index_default = Plurid;
|
|
11157
11225
|
|
|
11158
|
-
export { Application_default as PluridApplication, ApplicationConfigurator_default as PluridApplicationConfigurator, ExternalPlane_default as PluridExternalPlane, IframePlane_default as PluridIframePlane, Link_default as PluridLink, PlaneConfigurator_default as PluridPlaneConfigurator, Provider_default as PluridProvider, RouterBrowser_default as PluridRouterBrowser, RouterLink_default as PluridRouterLink, RouterStatic_default as PluridRouterStatic, List_default as PluridVirtualList, arrangementSignature, decodeViewpoint, index_default as default, encodeViewpoint, getDirectPlaneMatch, internals, selectors_default as pluridSelectors, modules_default as pluridStateModules, serverComputeMetastate, usePluridRouter };
|
|
11226
|
+
export { Application_default as PluridApplication, ApplicationConfigurator_default as PluridApplicationConfigurator, ExternalPlane_default as PluridExternalPlane, IframePlane_default as PluridIframePlane, Link_default as PluridLink, PlaneConfigurator_default as PluridPlaneConfigurator, Provider_default as PluridProvider, RouterBrowser_default as PluridRouterBrowser, RouterLink_default as PluridRouterLink, RouterStatic_default as PluridRouterStatic, List_default as PluridVirtualList, arrangementSignature, decodeViewpoint, index_default as default, encodeViewpoint, getDirectPlaneMatch, internals, selectors_default as pluridSelectors, modules_default as pluridStateModules, serverComputeMetastate, usePluridPlane, usePluridRouter };
|
|
11159
11227
|
//# sourceMappingURL=index.mjs.map
|
|
11160
11228
|
//# sourceMappingURL=index.mjs.map
|