@threekit-tools/treble 0.0.91-next-03 → 0.0.92
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/dist/Treble/Treble.d.ts +2 -2
- package/dist/Treble/Treble.js +3 -3
- package/dist/Treble/index.d.ts +1 -1
- package/dist/Treble/index.js +1 -1
- package/dist/Treble/snapshot.d.ts +1 -1
- package/dist/Treble/snapshots.d.ts +22 -0
- package/dist/Treble/snapshots.js +247 -0
- package/dist/Treble/wishlist.d.ts +1 -1
- package/dist/Treble/wishlist.js +1 -1
- package/dist/api/catalog.js +1 -1
- package/dist/api/configurations.js +1 -1
- package/dist/api/datatables.js +1 -1
- package/dist/api/orders.js +1 -1
- package/dist/api/price.js +1 -1
- package/dist/api/products.d.ts +2 -2
- package/dist/api/products.js +1 -1
- package/dist/components/BreatheAnimation/index.js +1 -1
- package/dist/components/Button/index.d.ts +2 -2
- package/dist/components/DraggableHint/draggableIndicator.styles.d.ts +1 -1
- package/dist/components/PlayerLoadingSpinner/playerLoadingSpinner.styles.d.ts +1 -1
- package/dist/components/Share/index.js +1 -1
- package/dist/components/Share/share.styles.d.ts +1 -1
- package/dist/components/ThreekitProvider/index.js +3 -2
- package/dist/components/TurntableAnimation/index.js +1 -1
- package/dist/components/Upload/index.js +1 -1
- package/dist/components/UploadArea/index.js +1 -1
- package/dist/components/Wishlist/index.js +1 -1
- package/dist/connection.d.ts +4 -1
- package/dist/connection.js +16 -53
- package/dist/hooks/useAttribute/index.d.ts +4 -4
- package/dist/hooks/useAttribute/index.js +2 -6
- package/dist/hooks/useConfigurationLoader/index.js +1 -1
- package/dist/hooks/useConfigurator/index.d.ts +3 -3
- package/dist/hooks/useDevTools/index.d.ts +1 -1
- package/dist/hooks/useNestedConfigurator/index.d.ts +2 -2
- package/dist/hooks/useNestedConfigurator/index.js +3 -2
- package/dist/hooks/usePlayer/index.d.ts +1 -1
- package/dist/hooks/usePlayerPortal/index.d.ts +1 -1
- package/dist/hooks/useProductCache/index.js +1 -1
- package/dist/hooks/useResetProduct/index.d.ts +1 -1
- package/dist/hooks/useResetProduct/index.js +1 -1
- package/dist/hooks/useRoomBuilder/RoomBuilderState.d.ts +95 -0
- package/dist/hooks/useRoomBuilder/RoomBuilderState.js +1237 -0
- package/dist/hooks/useRoomBuilder/constants.d.ts +41 -0
- package/dist/hooks/useRoomBuilder/constants.js +48 -0
- package/dist/hooks/useRoomBuilder/dataHandlers.d.ts +18 -0
- package/dist/hooks/useRoomBuilder/dataHandlers.js +187 -0
- package/dist/hooks/useRoomBuilder/draw.d.ts +55 -0
- package/dist/hooks/useRoomBuilder/draw.js +573 -0
- package/dist/hooks/useRoomBuilder/findLoops.d.ts +5 -0
- package/dist/hooks/useRoomBuilder/findLoops.js +99 -0
- package/dist/hooks/useRoomBuilder/geometry.d.ts +33 -0
- package/dist/hooks/useRoomBuilder/geometry.js +325 -0
- package/dist/hooks/useRoomBuilder/index.d.ts +40 -0
- package/dist/hooks/useRoomBuilder/index.js +303 -0
- package/dist/hooks/useRoomBuilder/messaging.d.ts +8 -0
- package/dist/hooks/useRoomBuilder/messaging.js +18 -0
- package/dist/hooks/useRoomBuilder/themes.d.ts +12 -0
- package/dist/hooks/useRoomBuilder/themes.js +273 -0
- package/dist/hooks/useRoomBuilder/types.d.ts +238 -0
- package/dist/hooks/useRoomBuilder/types.js +36 -0
- package/dist/hooks/useRoomBuilder/validators.d.ts +36 -0
- package/dist/hooks/useRoomBuilder/validators.js +362 -0
- package/dist/hooks/useShare/index.d.ts +1 -1
- package/dist/hooks/useShare/index.js +1 -1
- package/dist/hooks/useSingleAnimation/index.js +1 -1
- package/dist/hooks/useSnapshot/index.d.ts +1 -1
- package/dist/hooks/useWishlist/index.d.ts +1 -1
- package/dist/hooks/useZoom/index.d.ts +1 -1
- package/dist/http/orders.d.ts +1 -1
- package/dist/icons/Draw.js +3 -3
- package/dist/icons/Window.js +4 -4
- package/dist/icons/index.js +0 -26
- package/dist/index.d.ts +2 -16
- package/dist/index.js +5 -33
- package/dist/store/attributes.d.ts +1 -2
- package/dist/store/attributes.js +1 -1
- package/dist/store/index.d.ts +2 -9
- package/dist/store/index.js +1 -3
- package/dist/store/price.js +1 -1
- package/dist/store/product.d.ts +1 -1
- package/dist/store/product.js +8 -5
- package/dist/store/translations.js +1 -1
- package/dist/store/treble.d.ts +4 -2
- package/dist/store/treble.js +60 -43
- package/dist/store/wishlist.d.ts +1 -1
- package/dist/store/wishlist.js +1 -1
- package/dist/types.d.ts +25 -21
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +1 -1
- package/package.json +2 -1
package/dist/connection.js
CHANGED
|
@@ -1,40 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
-
function step(op) {
|
|
16
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
-
switch (op[0]) {
|
|
21
|
-
case 0: case 1: t = op; break;
|
|
22
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
-
default:
|
|
26
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
-
if (t[2]) _.ops.pop();
|
|
31
|
-
_.trys.pop(); continue;
|
|
32
|
-
}
|
|
33
|
-
op = body.call(thisArg, _);
|
|
34
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
3
|
exports.ThreekitConnection = void 0;
|
|
40
4
|
var ThreekitConnection = (function () {
|
|
@@ -42,27 +6,25 @@ var ThreekitConnection = (function () {
|
|
|
42
6
|
this._authToken = '';
|
|
43
7
|
this._orgId = '';
|
|
44
8
|
this._assetId = '';
|
|
9
|
+
this._customId = '';
|
|
45
10
|
this._serverUrl = '';
|
|
46
11
|
this._threekitDomain = 'https://admin-fts.threekit.com';
|
|
47
12
|
}
|
|
48
13
|
ThreekitConnection.prototype.connect = function (config) {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
return [2];
|
|
64
|
-
});
|
|
65
|
-
});
|
|
14
|
+
if (config.authToken)
|
|
15
|
+
this._authToken = config.authToken;
|
|
16
|
+
if (config.orgId)
|
|
17
|
+
this._orgId = config.orgId;
|
|
18
|
+
if (config.assetId)
|
|
19
|
+
this._assetId = config.assetId;
|
|
20
|
+
if (config.customId)
|
|
21
|
+
this._customId = config.customId;
|
|
22
|
+
if (config.serverUrl)
|
|
23
|
+
this._serverUrl = config.serverUrl;
|
|
24
|
+
if (config.threekitDomain)
|
|
25
|
+
this._threekitDomain = "https://".concat(config.threekitDomain);
|
|
26
|
+
if (config.cacheParameters)
|
|
27
|
+
this._cacheParameters = config.cacheParameters;
|
|
66
28
|
};
|
|
67
29
|
ThreekitConnection.prototype.getConnection = function () {
|
|
68
30
|
var _a;
|
|
@@ -72,6 +34,7 @@ var ThreekitConnection = (function () {
|
|
|
72
34
|
authToken: this._authToken,
|
|
73
35
|
orgId: this._orgId,
|
|
74
36
|
assetId: this._assetId,
|
|
37
|
+
customId: this._customId,
|
|
75
38
|
threekitDomain: this._threekitDomain,
|
|
76
39
|
serverUrl: this._serverUrl,
|
|
77
40
|
cacheParameters: this._cacheParameters,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { IHydratedAttribute, IConfigurationColor } from '../../types';
|
|
2
|
-
export type RawAttributeValue = string | number | boolean | IConfigurationColor | File | undefined;
|
|
3
|
-
type UseAttributeError = [undefined, undefined];
|
|
4
|
-
type UseAttributeSuccess = [
|
|
2
|
+
export declare type RawAttributeValue = string | number | boolean | IConfigurationColor | File | undefined;
|
|
3
|
+
declare type UseAttributeError = [undefined, undefined];
|
|
4
|
+
declare type UseAttributeSuccess = [
|
|
5
5
|
IHydratedAttribute,
|
|
6
6
|
(val: RawAttributeValue) => Promise<void>
|
|
7
7
|
];
|
|
8
|
-
type UseAttributeHook = UseAttributeError | UseAttributeSuccess;
|
|
8
|
+
declare type UseAttributeHook = UseAttributeError | UseAttributeSuccess;
|
|
9
9
|
declare const useAttribute: (attributeName?: string) => UseAttributeHook;
|
|
10
10
|
export default useAttribute;
|
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
15
|
function step(op) {
|
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (
|
|
17
|
+
while (_) try {
|
|
18
18
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
20
|
switch (op[0]) {
|
|
@@ -35,14 +35,10 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
35
35
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
39
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
40
|
-
};
|
|
41
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
39
|
var store_1 = require("../../store");
|
|
43
40
|
var attributes_1 = require("../../store/attributes");
|
|
44
41
|
var utils_1 = require("../../utils");
|
|
45
|
-
var api_1 = __importDefault(require("../../api"));
|
|
46
42
|
var utils_2 = require("../../utils");
|
|
47
43
|
var useAttribute = function (attributeName) {
|
|
48
44
|
var _a;
|
|
@@ -66,7 +62,7 @@ var useAttribute = function (attributeName) {
|
|
|
66
62
|
if (!!value) return [3, 1];
|
|
67
63
|
preppedValue = (0, utils_1.selectionToConfiguration)('', attribute.type);
|
|
68
64
|
return [3, 3];
|
|
69
|
-
case 1: return [4,
|
|
65
|
+
case 1: return [4, window.threekit.player.uploadImage(value)];
|
|
70
66
|
case 2:
|
|
71
67
|
assetId = _b.sent();
|
|
72
68
|
if (assetId)
|
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
15
|
function step(op) {
|
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (
|
|
17
|
+
while (_) try {
|
|
18
18
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
20
|
switch (op[0]) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ISetConfiguration, IHydratedAttribute } from '../../types';
|
|
2
|
-
type UseConfiguratorError = [undefined, undefined];
|
|
3
|
-
type UseConfiguratorSuccess = [
|
|
2
|
+
declare type UseConfiguratorError = [undefined, undefined];
|
|
3
|
+
declare type UseConfiguratorSuccess = [
|
|
4
4
|
Record<string, IHydratedAttribute>,
|
|
5
5
|
(configuration: ISetConfiguration) => void
|
|
6
6
|
];
|
|
7
|
-
type UseConfiguratorHook = UseConfiguratorError | UseConfiguratorSuccess;
|
|
7
|
+
declare type UseConfiguratorHook = UseConfiguratorError | UseConfiguratorSuccess;
|
|
8
8
|
declare const useConfigurator: () => UseConfiguratorHook;
|
|
9
9
|
export default useConfigurator;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IHydratedAttribute, IMetadata, ISetConfiguration } from '../../types';
|
|
2
|
-
type UseNestedConfiguratorError = [undefined, undefined, undefined, undefined];
|
|
3
|
-
type UseNestedConfiguratorSuccess = [
|
|
2
|
+
declare type UseNestedConfiguratorError = [undefined, undefined, undefined, undefined];
|
|
3
|
+
declare type UseNestedConfiguratorSuccess = [
|
|
4
4
|
Record<string, IHydratedAttribute>,
|
|
5
5
|
(val: ISetConfiguration) => Promise<void>,
|
|
6
6
|
IMetadata,
|
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
15
|
function step(op) {
|
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (
|
|
17
|
+
while (_) try {
|
|
18
18
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
20
|
switch (op[0]) {
|
|
@@ -57,7 +57,8 @@ var useNestedConfigurator = function (address) {
|
|
|
57
57
|
return;
|
|
58
58
|
if (playerLoading)
|
|
59
59
|
return;
|
|
60
|
-
configurator.current =
|
|
60
|
+
configurator.current =
|
|
61
|
+
window.threekit.treble.getNestedConfigurator(address);
|
|
61
62
|
if (!configurator.current)
|
|
62
63
|
return;
|
|
63
64
|
var updatedAttrs = configurator.current.getDisplayAttributes();
|
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
15
|
function step(op) {
|
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (
|
|
17
|
+
while (_) try {
|
|
18
18
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
20
|
switch (op[0]) {
|
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
15
|
function step(op) {
|
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (
|
|
17
|
+
while (_) try {
|
|
18
18
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
20
|
switch (op[0]) {
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { IWalls, IVerticesState, ICoordinate2D, IFeature, IFeatures, ICoordinatesLine, IRoomBuilderStateProps, IElementAddress, IFeatureName, IVertex, IFeaturesHydrated, IElementUi, IElementName, IActiveElement, IEnclosedSpace } from './types';
|
|
2
|
+
import type { IHydratedAttribute } from '../../types';
|
|
3
|
+
export declare class RoomBuilderState {
|
|
4
|
+
private _config;
|
|
5
|
+
private _attributesState;
|
|
6
|
+
private _newWall;
|
|
7
|
+
private _activeElement;
|
|
8
|
+
private _selectedElement;
|
|
9
|
+
private _highlightedElement;
|
|
10
|
+
private _errorElement;
|
|
11
|
+
private _showDimensions;
|
|
12
|
+
private _angleSnappingEnabled;
|
|
13
|
+
private _state;
|
|
14
|
+
constructor(config: IRoomBuilderStateProps);
|
|
15
|
+
get walls(): IWalls;
|
|
16
|
+
set walls(walls: IWalls);
|
|
17
|
+
get wallCount(): number;
|
|
18
|
+
get wallLines(): ICoordinatesLine[];
|
|
19
|
+
get vertices(): IVerticesState;
|
|
20
|
+
set vertices(vertices: IVerticesState);
|
|
21
|
+
get verticesList(): Array<IVertex>;
|
|
22
|
+
get features(): IFeatures;
|
|
23
|
+
set features(features: IFeatures);
|
|
24
|
+
get getHydratedFeatures(): undefined | IFeaturesHydrated;
|
|
25
|
+
get featureCount(): number;
|
|
26
|
+
get activeElement(): IActiveElement | null;
|
|
27
|
+
get selectedElement(): null | IElementAddress;
|
|
28
|
+
set selectedElement(element: null | IElementAddress);
|
|
29
|
+
get showDimensions(): boolean;
|
|
30
|
+
set showDimensions(val: boolean);
|
|
31
|
+
get angleSnappingEnabled(): boolean;
|
|
32
|
+
set angleSnappingEnabled(val: boolean);
|
|
33
|
+
get enclosedSpaces(): Array<IEnclosedSpace>;
|
|
34
|
+
private getWall;
|
|
35
|
+
private addWall;
|
|
36
|
+
private addWalls;
|
|
37
|
+
private updateWall;
|
|
38
|
+
private getWallConnectionCount;
|
|
39
|
+
private getWallConnectionsHydrated;
|
|
40
|
+
private getWallDimensions;
|
|
41
|
+
private getWallDetailedDimensions;
|
|
42
|
+
private getAllWallDimensions;
|
|
43
|
+
private shiftAllFeaturesOnWall;
|
|
44
|
+
private addFeatureToWall;
|
|
45
|
+
private removeFeatureFromWall;
|
|
46
|
+
private splitWall;
|
|
47
|
+
deleteWall(index: number): void;
|
|
48
|
+
private getFirstVacantLocation;
|
|
49
|
+
getWallUiAnchorPoint(index: number): undefined | ICoordinate2D;
|
|
50
|
+
private getVertex;
|
|
51
|
+
private getWallsConnectedToVertex;
|
|
52
|
+
private repositionVertex;
|
|
53
|
+
private getFeatureType;
|
|
54
|
+
private setFeatureType;
|
|
55
|
+
private getFeature;
|
|
56
|
+
private updateFeature;
|
|
57
|
+
private repositionFeature;
|
|
58
|
+
addFeature(type: IFeatureName, feature: Omit<IFeature, 'path' | 'connectedTo' | 'offset'> & {
|
|
59
|
+
offset?: number;
|
|
60
|
+
}, addToWallIndex?: number): void;
|
|
61
|
+
deleteFeature(type: IFeatureName, index: number): void;
|
|
62
|
+
private getHydratedFeature;
|
|
63
|
+
getFeatureUiAnchorPoint(type: IFeatureName, index: number): undefined | ICoordinate2D;
|
|
64
|
+
deleteElement(type: IElementName, index: number): void;
|
|
65
|
+
private getVertexInProximity;
|
|
66
|
+
private getWallInProximity;
|
|
67
|
+
private snapPointToVertex;
|
|
68
|
+
private snapPointToWall;
|
|
69
|
+
private snapPointToAbsoluteAngle;
|
|
70
|
+
private snapVertexToAbsoluteAngle;
|
|
71
|
+
private getFeatureAtPoint;
|
|
72
|
+
private getElementAtPoint;
|
|
73
|
+
getClickedElement(point: ICoordinate2D): undefined | IElementUi;
|
|
74
|
+
private getPointProximity;
|
|
75
|
+
private reevaluateFeatureConnections;
|
|
76
|
+
private pushStateToConfigurator;
|
|
77
|
+
setAttributesToState(attributes?: Record<string, IHydratedAttribute>): void;
|
|
78
|
+
deleteAll(): void;
|
|
79
|
+
private resetInternalState;
|
|
80
|
+
highlightElementIfInProximity(canvas: HTMLCanvasElement, point: ICoordinate2D): void;
|
|
81
|
+
startDrawNewWall(startPoint: ICoordinate2D): void;
|
|
82
|
+
drawNewWall(canvas: HTMLCanvasElement, endPoint: ICoordinate2D): void;
|
|
83
|
+
cancelDrawNewWall(canvas: HTMLCanvasElement): void;
|
|
84
|
+
finishDrawNewWall(canvas: HTMLCanvasElement, assetId: string): Promise<void>;
|
|
85
|
+
private moveActiveVertex;
|
|
86
|
+
private finishMoveActiveVertex;
|
|
87
|
+
private moveActiveFeature;
|
|
88
|
+
private finishMoveActiveFeature;
|
|
89
|
+
selectElementIfInProximity(canvas: HTMLCanvasElement, point: ICoordinate2D): void;
|
|
90
|
+
moveActiveElement(canvas: HTMLCanvasElement, moveToPoint: ICoordinate2D): void;
|
|
91
|
+
finishMoveActiveElement(canvas: HTMLCanvasElement): void;
|
|
92
|
+
cancelMoveActiveElement(canvas: HTMLCanvasElement): void;
|
|
93
|
+
drawRoom(canvas: HTMLCanvasElement | null): void;
|
|
94
|
+
}
|
|
95
|
+
export default RoomBuilderState;
|