@shapediver/viewer.shared.types 3.4.2 → 3.5.0
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/index.d.ts +4 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/interfaces/parameter/IDraggingParameterSettings.d.ts +61 -0
- package/dist/interfaces/parameter/IDraggingParameterSettings.d.ts.map +1 -0
- package/dist/interfaces/parameter/IDraggingParameterSettings.js +4 -0
- package/dist/interfaces/parameter/IDraggingParameterSettings.js.map +1 -0
- package/dist/interfaces/parameter/IDrawingParametersSettings.d.ts +68 -9
- package/dist/interfaces/parameter/IDrawingParametersSettings.d.ts.map +1 -1
- package/dist/interfaces/parameter/IDrawingParametersSettings.js +8 -1
- package/dist/interfaces/parameter/IDrawingParametersSettings.js.map +1 -1
- package/dist/interfaces/parameter/IGumballParameterSettings.d.ts +26 -0
- package/dist/interfaces/parameter/IGumballParameterSettings.d.ts.map +1 -1
- package/dist/interfaces/parameter/IGumballParameterSettings.js.map +1 -1
- package/dist/interfaces/parameter/IInteractionParameterSettings.d.ts +1163 -32
- package/dist/interfaces/parameter/IInteractionParameterSettings.d.ts.map +1 -1
- package/dist/interfaces/parameter/IInteractionParameterSettings.js +55 -3
- package/dist/interfaces/parameter/IInteractionParameterSettings.js.map +1 -1
- package/dist/interfaces/parameter/IRestrictionSettings.d.ts +53 -0
- package/dist/interfaces/parameter/IRestrictionSettings.d.ts.map +1 -0
- package/dist/interfaces/parameter/IRestrictionSettings.js +5 -0
- package/dist/interfaces/parameter/IRestrictionSettings.js.map +1 -0
- package/dist/interfaces/parameter/ISelectionParameterSettings.d.ts +2 -0
- package/dist/interfaces/parameter/ISelectionParameterSettings.d.ts.map +1 -1
- package/dist/interfaces/parameter/ISelectionParameterSettings.js.map +1 -1
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { AttributeData, GeometryData, PrimitiveData } from './implementation/dat
|
|
|
4
4
|
import { BoneData } from './implementation/data/BoneData';
|
|
5
5
|
import { Color, ISessionSettingsSections, ISettingsSections, IViewportSettingsSections, PARAMETER_TYPE, PARAMETER_VISUALIZATION } from './types';
|
|
6
6
|
import { CustomData } from './implementation/data/CustomData';
|
|
7
|
+
import { DraggingParameterValue, IDraggableObject, IDraggingParameterProps } from './interfaces/parameter/IDraggingParameterSettings';
|
|
7
8
|
import { DrawingParameterValue, IDrawingParameterJsonSchema, IDrawingParameterSettings, validateDrawingParameterSettings } from './interfaces/parameter/IDrawingParametersSettings';
|
|
8
9
|
import { EventResponseMapping } from './interfaces/events/EventResponseMapping';
|
|
9
10
|
import { GumballParameterValue, IGumballParameterProps } from './interfaces/parameter/IGumballParameterSettings';
|
|
@@ -14,7 +15,7 @@ import { IAttributeData, IGeometryData, IPrimitiveData, PRIMITIVE_MODE } from '.
|
|
|
14
15
|
import { IBoneData } from './interfaces/data/IBoneData';
|
|
15
16
|
import { ICameraEvent } from './interfaces/events/ICameraEvent';
|
|
16
17
|
import { ICustomData } from './interfaces/data/ICustomData';
|
|
17
|
-
import { IGumballParameterJsonSchema, IInteractionParameterJsonSchema, IInteractionParameterProps, IInteractionParameterSettings, InteractionParameterSettingsType, ISelectionParameterJsonSchema, validateGumballParameterSettings, validateInteractionParameterSettings, validateSelectionParameterSettings } from './interfaces/parameter/IInteractionParameterSettings';
|
|
18
|
+
import { IDraggingParameterJsonSchema, IGumballParameterJsonSchema, IInteractionParameterJsonSchema, IInteractionParameterProps, IInteractionParameterSettings, InteractionParameterSettingsType, ISelectionParameterJsonSchema, validateDraggingParameterSettings, validateGumballParameterSettings, validateInteractionParameterSettings, validateSelectionParameterSettings } from './interfaces/parameter/IInteractionParameterSettings';
|
|
18
19
|
import { IMapData, IMapDataProperties, IMapDataPropertiesDefinition, TEXTURE_FILTERING, TEXTURE_WRAPPING } from './interfaces/data/material/IMapData';
|
|
19
20
|
import { IMaterialAbstractData, IMaterialAbstractDataProperties, IMaterialAbstractDataPropertiesDefinition, MATERIAL_ALPHA, MATERIAL_SHADING, MATERIAL_SIDE, MATERIAL_TYPE } from './interfaces/data/material/IMaterialAbstractData';
|
|
20
21
|
import { IMaterialBasicLineData, IMaterialBasicLineDataProperties, IMaterialBasicLineDataPropertiesDefinition } from './interfaces/data/material/IMaterialBasicLineData';
|
|
@@ -53,6 +54,7 @@ import { SDTFOverviewData } from './implementation/sdtf/SDTFOverviewData';
|
|
|
53
54
|
import { SdtfPrimitiveTypeGuard } from '@shapediver/sdk.sdtf-primitives';
|
|
54
55
|
import { SdtfTypeHintName } from '@shapediver/sdk.sdtf-v1';
|
|
55
56
|
import { MaterialStandardData } from './implementation/material/MaterialStandardData';
|
|
57
|
+
import { RestrictionDefinition, Rotation } from './interfaces/parameter/IRestrictionSettings';
|
|
56
58
|
export { IMaterialStandardData, MaterialStandardData, IMaterialStandardDataProperties, IMaterialStandardDataPropertiesDefinition, IMaterialAbstractData, IMaterialAbstractDataProperties, AbstractMaterialData, IMaterialAbstractDataPropertiesDefinition, IMaterialUnlitData, MaterialUnlitData, IMaterialUnlitDataProperties, IMaterialUnlitDataPropertiesDefinition, IMaterialShadowData, MaterialShadowData, IMaterialShadowDataProperties, IMaterialShadowDataPropertiesDefinition, IMaterialSpecularGlossinessData, MaterialSpecularGlossinessData, IMaterialSpecularGlossinessDataProperties, IMaterialSpecularGlossinessDataPropertiesDefinition, IMaterialGemData, MaterialGemData, IMaterialGemDataProperties, IMaterialGemDataPropertiesDefinition, IMaterialPointData, MaterialPointData, IMaterialPointDataProperties, IMaterialPointDataPropertiesDefinition, IMaterialMultiPointData, MaterialMultiPointData, IMaterialMultiPointDataProperties, IMaterialMultiPointDataPropertiesDefinition, IMaterialBasicLineData, MaterialBasicLineData, IMaterialBasicLineDataProperties, IMaterialBasicLineDataPropertiesDefinition, IMapData, IMapDataProperties, IMapDataPropertiesDefinition, MapData, MATERIAL_SIDE, MATERIAL_ALPHA, MATERIAL_SHADING, MATERIAL_TYPE, TEXTURE_WRAPPING, TEXTURE_FILTERING };
|
|
57
59
|
export { IAnimationData, AnimationData, IAnimationTrack, IGeometryData, IAttributeData, IPrimitiveData, IMaterialVariantsData, GeometryData, AttributeData, PrimitiveData, MaterialVariantsData, PRIMITIVE_MODE };
|
|
58
60
|
export { IAnchorDataImage, IAnchorDataText, IHTMLElementAnchorData, HTMLElementAnchorCustomData, HTMLElementAnchorTextData, HTMLElementAnchorImageData, HTMLElementAnchorData };
|
|
@@ -60,5 +62,5 @@ export { ICustomData, CustomData, IBoneData, BoneData };
|
|
|
60
62
|
export { EventResponseMapping, IViewportEvent, ISessionEvent, IOutputEvent, ICameraEvent, IRenderingEvent, IParameterEvent, ISceneEvent, ITaskEvent, TASK_TYPE };
|
|
61
63
|
export { ISDTFOverviewData, SDTFOverviewData, ISDTFOverview, SDTFAttributesData, ISDTFAttributesData, ISDTFAttributeData, SDTFAttributeData, SDTFItemData, ISDTFItemData, ISDTFAttributeVisualizationData, SdtfTypeHintName as SDTF_TYPEHINT, SdtfPrimitiveTypeGuard };
|
|
62
64
|
export { Color, PARAMETER_TYPE, PARAMETER_VISUALIZATION, ISettingsSections, ISessionSettingsSections, IViewportSettingsSections };
|
|
63
|
-
export { InteractionParameterSettingsType, IInteractionParameterProps, IInteractionParameterSettings, IInteractionParameterJsonSchema, validateInteractionParameterSettings, ISelectionParameterProps, SelectionParameterValue, ISelectionParameterJsonSchema, validateSelectionParameterSettings, IGumballParameterProps, GumballParameterValue, IGumballParameterJsonSchema, validateGumballParameterSettings, IDrawingParameterSettings, DrawingParameterValue, IDrawingParameterJsonSchema, validateDrawingParameterSettings };
|
|
65
|
+
export { InteractionParameterSettingsType, IInteractionParameterProps, IInteractionParameterSettings, IInteractionParameterJsonSchema, validateInteractionParameterSettings, ISelectionParameterProps, SelectionParameterValue, ISelectionParameterJsonSchema, validateSelectionParameterSettings, IGumballParameterProps, GumballParameterValue, IGumballParameterJsonSchema, validateGumballParameterSettings, IDraggingParameterProps, DraggingParameterValue, IDraggingParameterJsonSchema, validateDraggingParameterSettings, IDrawingParameterSettings, DrawingParameterValue, IDrawingParameterJsonSchema, validateDrawingParameterSettings, IDraggableObject, RestrictionDefinition, Rotation };
|
|
64
66
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gDAAgD,CAAC;AACtF,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAChG,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EACL,KAAK,EACL,wBAAwB,EACxB,iBAAiB,EACjB,yBAAyB,EACzB,cAAc,EACd,uBAAuB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gDAAgD,CAAC;AACtF,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAChG,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EACL,KAAK,EACL,wBAAwB,EACxB,iBAAiB,EACjB,yBAAyB,EACzB,cAAc,EACd,uBAAuB,EACxB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,MAAM,mDAAmD,CAAC;AACtI,OAAO,EACL,qBAAqB,EACrB,2BAA2B,EAC3B,yBAAyB,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,wBAAwB,EAAE,uBAAuB,EAAE,6BAA6B,EAAE,kCAAkC,EACpH,sBAAsB,EAAE,qBAAqB,EAAE,2BAA2B,EAAE,gCAAgC,EAC5G,uBAAuB,EAAE,sBAAsB,EAAE,4BAA4B,EAAE,iCAAiC,EAChH,yBAAyB,EAAE,qBAAqB,EAAE,2BAA2B,EAAE,gCAAgC,EAC/G,gBAAgB,EAAE,qBAAqB,EAAE,QAAQ,EAClD,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.validateDrawingParameterSettings = exports.IDrawingParameterJsonSchema = exports.validateGumballParameterSettings = exports.IGumballParameterJsonSchema = exports.validateSelectionParameterSettings = exports.ISelectionParameterJsonSchema = exports.validateInteractionParameterSettings = exports.IInteractionParameterJsonSchema = exports.PARAMETER_VISUALIZATION = exports.PARAMETER_TYPE = exports.SdtfPrimitiveTypeGuard = exports.SDTF_TYPEHINT = exports.SDTFItemData = exports.SDTFAttributeData = exports.SDTFAttributesData = exports.SDTFOverviewData = exports.TASK_TYPE = exports.BoneData = exports.CustomData = exports.HTMLElementAnchorData = exports.HTMLElementAnchorImageData = exports.HTMLElementAnchorTextData = exports.HTMLElementAnchorCustomData = exports.PRIMITIVE_MODE = exports.MaterialVariantsData = exports.PrimitiveData = exports.AttributeData = exports.GeometryData = exports.AnimationData = exports.TEXTURE_FILTERING = exports.TEXTURE_WRAPPING = exports.MATERIAL_TYPE = exports.MATERIAL_SHADING = exports.MATERIAL_ALPHA = exports.MATERIAL_SIDE = exports.MapData = exports.MaterialBasicLineData = exports.MaterialMultiPointData = exports.MaterialPointData = exports.MaterialGemData = exports.MaterialSpecularGlossinessData = exports.MaterialShadowData = exports.MaterialUnlitData = exports.AbstractMaterialData = exports.MaterialStandardData = void 0;
|
|
3
|
+
exports.validateDrawingParameterSettings = exports.IDrawingParameterJsonSchema = exports.validateDraggingParameterSettings = exports.IDraggingParameterJsonSchema = exports.validateGumballParameterSettings = exports.IGumballParameterJsonSchema = exports.validateSelectionParameterSettings = exports.ISelectionParameterJsonSchema = exports.validateInteractionParameterSettings = exports.IInteractionParameterJsonSchema = exports.PARAMETER_VISUALIZATION = exports.PARAMETER_TYPE = exports.SdtfPrimitiveTypeGuard = exports.SDTF_TYPEHINT = exports.SDTFItemData = exports.SDTFAttributeData = exports.SDTFAttributesData = exports.SDTFOverviewData = exports.TASK_TYPE = exports.BoneData = exports.CustomData = exports.HTMLElementAnchorData = exports.HTMLElementAnchorImageData = exports.HTMLElementAnchorTextData = exports.HTMLElementAnchorCustomData = exports.PRIMITIVE_MODE = exports.MaterialVariantsData = exports.PrimitiveData = exports.AttributeData = exports.GeometryData = exports.AnimationData = exports.TEXTURE_FILTERING = exports.TEXTURE_WRAPPING = exports.MATERIAL_TYPE = exports.MATERIAL_SHADING = exports.MATERIAL_ALPHA = exports.MATERIAL_SIDE = exports.MapData = exports.MaterialBasicLineData = exports.MaterialMultiPointData = exports.MaterialPointData = exports.MaterialGemData = exports.MaterialSpecularGlossinessData = exports.MaterialShadowData = exports.MaterialUnlitData = exports.AbstractMaterialData = exports.MaterialStandardData = void 0;
|
|
4
4
|
const AbstractMaterialData_1 = require("./implementation/material/AbstractMaterialData");
|
|
5
5
|
Object.defineProperty(exports, "AbstractMaterialData", { enumerable: true, get: function () { return AbstractMaterialData_1.AbstractMaterialData; } });
|
|
6
6
|
const AnimationData_1 = require("./implementation/data/AnimationData");
|
|
@@ -27,9 +27,11 @@ Object.defineProperty(exports, "HTMLElementAnchorTextData", { enumerable: true,
|
|
|
27
27
|
const IGeometryData_1 = require("./interfaces/data/IGeometryData");
|
|
28
28
|
Object.defineProperty(exports, "PRIMITIVE_MODE", { enumerable: true, get: function () { return IGeometryData_1.PRIMITIVE_MODE; } });
|
|
29
29
|
const IInteractionParameterSettings_1 = require("./interfaces/parameter/IInteractionParameterSettings");
|
|
30
|
+
Object.defineProperty(exports, "IDraggingParameterJsonSchema", { enumerable: true, get: function () { return IInteractionParameterSettings_1.IDraggingParameterJsonSchema; } });
|
|
30
31
|
Object.defineProperty(exports, "IGumballParameterJsonSchema", { enumerable: true, get: function () { return IInteractionParameterSettings_1.IGumballParameterJsonSchema; } });
|
|
31
32
|
Object.defineProperty(exports, "IInteractionParameterJsonSchema", { enumerable: true, get: function () { return IInteractionParameterSettings_1.IInteractionParameterJsonSchema; } });
|
|
32
33
|
Object.defineProperty(exports, "ISelectionParameterJsonSchema", { enumerable: true, get: function () { return IInteractionParameterSettings_1.ISelectionParameterJsonSchema; } });
|
|
34
|
+
Object.defineProperty(exports, "validateDraggingParameterSettings", { enumerable: true, get: function () { return IInteractionParameterSettings_1.validateDraggingParameterSettings; } });
|
|
33
35
|
Object.defineProperty(exports, "validateGumballParameterSettings", { enumerable: true, get: function () { return IInteractionParameterSettings_1.validateGumballParameterSettings; } });
|
|
34
36
|
Object.defineProperty(exports, "validateInteractionParameterSettings", { enumerable: true, get: function () { return IInteractionParameterSettings_1.validateInteractionParameterSettings; } });
|
|
35
37
|
Object.defineProperty(exports, "validateSelectionParameterSettings", { enumerable: true, get: function () { return IInteractionParameterSettings_1.validateSelectionParameterSettings; } });
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,yFAAsF;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,yFAAsF;AA8G5B,qGA9GjD,2CAAoB,OA8GiD;AA7G9E,uEAAoE;AAyHlD,8FAzHT,6BAAa,OAyHS;AAxH/B,qEAAgG;AAwHsC,8FAxH7H,4BAAa,OAwH6H;AAA3B,6FAxHhG,2BAAY,OAwHgG;AAAiB,8FAxH/G,4BAAa,OAwH+G;AAvHlK,6DAA0D;AA+HpB,yFA/H7B,mBAAQ,OA+H6B;A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FAAkF;AAkB3D,mGAlBd,uCAAkB,OAkBc;AAjBzC,6GAA0G;AAkBvE,+GAlB1B,+DAA8B,OAkB0B;AAjBjE,mFAAgF;AAe1D,kGAfb,qCAAiB,OAea;AAdvC,yFAAsF;AAyB8E,qGAzB3J,2CAAoB,OAyB2J;AAxBxL,iFAAiG;AAwCkB,kGAxC1G,sCAAiB,OAwC0G;AAA9E,mGAxC1B,uCAAkB,OAwC0B;AAvCxE,qEAAkE;AAuCoE,6FAvC7H,2BAAY,OAuC6H;AAtClJ,6EAA0E;AAsCrD,iGAtCZ,mCAAgB,OAsCY;AArCrC,yEAAyE;AAsCpC,uGAtC5B,4CAAsB,OAsC4B;AArC3D,yDAA2D;AAqCrC,8FArCb,8BAAgB,OAqCU;AApCnC,yFAEwD;AAI/B,qGALvB,2CAAoB,OAKuB"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { IInteractionParameterProps } from './IInteractionParameterSettings';
|
|
2
|
+
import { RestrictionDefinition, Rotation } from './IRestrictionSettings';
|
|
3
|
+
export declare type DraggingParameterValue = {
|
|
4
|
+
objects: {
|
|
5
|
+
/** The name of the object as defined in the name filter. */
|
|
6
|
+
name: string;
|
|
7
|
+
/** The transformation matrix of the object after the dragging operation. */
|
|
8
|
+
transformation: number[];
|
|
9
|
+
/** The id of the drag anchor that was used, if one was used. */
|
|
10
|
+
dragAnchorId?: string;
|
|
11
|
+
/** The id of the restriction that was used. */
|
|
12
|
+
restrictionId: string;
|
|
13
|
+
}[];
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Properties of a draggable object.
|
|
17
|
+
*/
|
|
18
|
+
export interface IDraggableObject {
|
|
19
|
+
/**
|
|
20
|
+
* The drag anchors for the object
|
|
21
|
+
*
|
|
22
|
+
* The drag anchors can be defined as various points in space that will be transformed according to the node matrix that this data item belongs to.
|
|
23
|
+
* These anchors are used when an object is being dragged instead of the {@link dragOrigin} or the default, the intersection with the node.
|
|
24
|
+
*/
|
|
25
|
+
dragAnchors?: {
|
|
26
|
+
/** The id of the anchor */
|
|
27
|
+
id: string;
|
|
28
|
+
/** The position of the anchor */
|
|
29
|
+
position: number[];
|
|
30
|
+
/** The rotation of the anchor */
|
|
31
|
+
rotation?: Rotation;
|
|
32
|
+
}[];
|
|
33
|
+
/**
|
|
34
|
+
* The drag origin of the object.
|
|
35
|
+
*
|
|
36
|
+
* The drag origin can be defined instead of using the default, the intersection with the node, as a dragging origin.
|
|
37
|
+
* If at least one {@link dragAnchors} is used, this property will be ignored.
|
|
38
|
+
*/
|
|
39
|
+
dragOrigin?: number[];
|
|
40
|
+
/** The name filter for the objects that can be dragged with the defined settings. */
|
|
41
|
+
nameFilter: string;
|
|
42
|
+
/** The ids of the restrictions in the restrictions array to apply for these objects. */
|
|
43
|
+
restrictions: string[];
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Properties of a dragging parameter.
|
|
47
|
+
*/
|
|
48
|
+
export interface IDraggingParameterProps extends IInteractionParameterProps {
|
|
49
|
+
/** The color of the objects when dragged. (default: '#0d44f0') */
|
|
50
|
+
draggingColor?: string;
|
|
51
|
+
/**
|
|
52
|
+
* The objects that can be dragged.
|
|
53
|
+
*
|
|
54
|
+
* For each object, the name filter, the restrictions, the drag anchors, and the drag origin can be defined.
|
|
55
|
+
* The name filter is used to filter the objects that can be dragged with the defined settings.
|
|
56
|
+
* This means that multiple objects can be dragged with different settings, but also multiple objects can be dragged with the same settings.
|
|
57
|
+
*/
|
|
58
|
+
objects?: IDraggableObject[];
|
|
59
|
+
restrictions?: RestrictionDefinition[];
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=IDraggingParameterSettings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IDraggingParameterSettings.d.ts","sourceRoot":"","sources":["../../../src/interfaces/parameter/IDraggingParameterSettings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,qBAAqB,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAIzE,oBAAY,sBAAsB,GAAG;IACjC,OAAO,EAAE;QACL,4DAA4D;QAC5D,IAAI,EAAE,MAAM,CAAC;QACb,4EAA4E;QAC5E,cAAc,EAAE,MAAM,EAAE,CAAC;QACzB,gEAAgE;QAChE,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,+CAA+C;QAC/C,aAAa,EAAE,MAAM,CAAA;KACxB,EAAE,CAAA;CACN,CAAC;AAMF;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAG7B;;;;;OAKG;IACH,WAAW,CAAC,EAAE;QACV,2BAA2B;QAC3B,EAAE,EAAE,MAAM,CAAC;QACX,iCAAiC;QACjC,QAAQ,EAAE,MAAM,EAAE,CAAC;QACnB,iCAAiC;QACjC,QAAQ,CAAC,EAAE,QAAQ,CAAA;KACtB,EAAE,CAAC;IACJ;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,qFAAqF;IACrF,UAAU,EAAE,MAAM,CAAC;IACnB,wFAAwF;IACxF,YAAY,EAAE,MAAM,EAAE,CAAC;CAG1B;AAED;;GAEG;AACH,MAAM,WAAW,uBAAwB,SAAQ,0BAA0B;IAGvE,kEAAkE;IAClE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAC7B,YAAY,CAAC,EAAE,qBAAqB,EAAE,CAAA;CAGzC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IDraggingParameterSettings.js","sourceRoot":"","sources":["../../../src/interfaces/parameter/IDraggingParameterSettings.ts"],"names":[],"mappings":";;AA8EA,4BAA4B"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { RestrictionDefinition } from './IRestrictionSettings';
|
|
2
3
|
export declare type DrawingParameterValue = {
|
|
3
4
|
points: number[][];
|
|
4
5
|
};
|
|
@@ -49,15 +50,18 @@ export interface IDrawingParameterSettings {
|
|
|
49
50
|
*/
|
|
50
51
|
autoClose: boolean;
|
|
51
52
|
};
|
|
52
|
-
restrictions?:
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
53
|
+
restrictions?: RestrictionDefinition[];
|
|
54
|
+
general?: {
|
|
55
|
+
/** A prompt that can be defined which is displayed instead of the default prompt. */
|
|
56
|
+
prompt?: {
|
|
57
|
+
/** The title when the parameter is inactive. */
|
|
58
|
+
inactiveTitle?: string;
|
|
59
|
+
/** The title when the parameter is active. */
|
|
60
|
+
activeTitle?: string;
|
|
61
|
+
/** The text when the parameter is inactive. */
|
|
62
|
+
activeText?: string;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
61
65
|
}
|
|
62
66
|
export declare const IDrawingParameterJsonSchema: z.ZodObject<{
|
|
63
67
|
geometry: z.ZodOptional<z.ZodObject<{
|
|
@@ -80,6 +84,33 @@ export declare const IDrawingParameterJsonSchema: z.ZodObject<{
|
|
|
80
84
|
strictMinMaxPoints?: boolean | undefined;
|
|
81
85
|
}>>;
|
|
82
86
|
restrictions: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
87
|
+
general: z.ZodOptional<z.ZodObject<{
|
|
88
|
+
prompt: z.ZodOptional<z.ZodObject<{
|
|
89
|
+
inactiveTitle: z.ZodOptional<z.ZodString>;
|
|
90
|
+
activeTitle: z.ZodOptional<z.ZodString>;
|
|
91
|
+
activeText: z.ZodOptional<z.ZodString>;
|
|
92
|
+
}, "strip", z.ZodTypeAny, {
|
|
93
|
+
inactiveTitle?: string | undefined;
|
|
94
|
+
activeTitle?: string | undefined;
|
|
95
|
+
activeText?: string | undefined;
|
|
96
|
+
}, {
|
|
97
|
+
inactiveTitle?: string | undefined;
|
|
98
|
+
activeTitle?: string | undefined;
|
|
99
|
+
activeText?: string | undefined;
|
|
100
|
+
}>>;
|
|
101
|
+
}, "strip", z.ZodTypeAny, {
|
|
102
|
+
prompt?: {
|
|
103
|
+
inactiveTitle?: string | undefined;
|
|
104
|
+
activeTitle?: string | undefined;
|
|
105
|
+
activeText?: string | undefined;
|
|
106
|
+
} | undefined;
|
|
107
|
+
}, {
|
|
108
|
+
prompt?: {
|
|
109
|
+
inactiveTitle?: string | undefined;
|
|
110
|
+
activeTitle?: string | undefined;
|
|
111
|
+
activeText?: string | undefined;
|
|
112
|
+
} | undefined;
|
|
113
|
+
}>>;
|
|
83
114
|
}, "strip", z.ZodTypeAny, {
|
|
84
115
|
geometry?: {
|
|
85
116
|
mode: "points" | "lines";
|
|
@@ -89,6 +120,13 @@ export declare const IDrawingParameterJsonSchema: z.ZodObject<{
|
|
|
89
120
|
strictMinMaxPoints?: boolean | undefined;
|
|
90
121
|
} | undefined;
|
|
91
122
|
restrictions?: any[] | undefined;
|
|
123
|
+
general?: {
|
|
124
|
+
prompt?: {
|
|
125
|
+
inactiveTitle?: string | undefined;
|
|
126
|
+
activeTitle?: string | undefined;
|
|
127
|
+
activeText?: string | undefined;
|
|
128
|
+
} | undefined;
|
|
129
|
+
} | undefined;
|
|
92
130
|
}, {
|
|
93
131
|
geometry?: {
|
|
94
132
|
mode: "points" | "lines";
|
|
@@ -98,6 +136,13 @@ export declare const IDrawingParameterJsonSchema: z.ZodObject<{
|
|
|
98
136
|
strictMinMaxPoints?: boolean | undefined;
|
|
99
137
|
} | undefined;
|
|
100
138
|
restrictions?: any[] | undefined;
|
|
139
|
+
general?: {
|
|
140
|
+
prompt?: {
|
|
141
|
+
inactiveTitle?: string | undefined;
|
|
142
|
+
activeTitle?: string | undefined;
|
|
143
|
+
activeText?: string | undefined;
|
|
144
|
+
} | undefined;
|
|
145
|
+
} | undefined;
|
|
101
146
|
}>;
|
|
102
147
|
export declare const validateDrawingParameterSettings: (param: unknown) => z.SafeParseReturnType<{
|
|
103
148
|
geometry?: {
|
|
@@ -108,6 +153,13 @@ export declare const validateDrawingParameterSettings: (param: unknown) => z.Saf
|
|
|
108
153
|
strictMinMaxPoints?: boolean | undefined;
|
|
109
154
|
} | undefined;
|
|
110
155
|
restrictions?: any[] | undefined;
|
|
156
|
+
general?: {
|
|
157
|
+
prompt?: {
|
|
158
|
+
inactiveTitle?: string | undefined;
|
|
159
|
+
activeTitle?: string | undefined;
|
|
160
|
+
activeText?: string | undefined;
|
|
161
|
+
} | undefined;
|
|
162
|
+
} | undefined;
|
|
111
163
|
}, {
|
|
112
164
|
geometry?: {
|
|
113
165
|
mode: "points" | "lines";
|
|
@@ -117,5 +169,12 @@ export declare const validateDrawingParameterSettings: (param: unknown) => z.Saf
|
|
|
117
169
|
strictMinMaxPoints?: boolean | undefined;
|
|
118
170
|
} | undefined;
|
|
119
171
|
restrictions?: any[] | undefined;
|
|
172
|
+
general?: {
|
|
173
|
+
prompt?: {
|
|
174
|
+
inactiveTitle?: string | undefined;
|
|
175
|
+
activeTitle?: string | undefined;
|
|
176
|
+
activeText?: string | undefined;
|
|
177
|
+
} | undefined;
|
|
178
|
+
} | undefined;
|
|
120
179
|
}>;
|
|
121
180
|
//# sourceMappingURL=IDrawingParametersSettings.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IDrawingParametersSettings.d.ts","sourceRoot":"","sources":["../../../src/interfaces/parameter/IDrawingParametersSettings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"IDrawingParametersSettings.d.ts","sourceRoot":"","sources":["../../../src/interfaces/parameter/IDrawingParametersSettings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAI/D,oBAAY,qBAAqB,GAAG;IAChC,MAAM,EAAE,MAAM,EAAE,EAAE,CAAA;CACrB,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,yBAAyB;IAGtC,QAAQ,CAAC,EAAE;QACP;;;;;;;WAOG;QACH,IAAI,EAAE,QAAQ,GAAG,OAAO,CAAC;QAEzB;;;;;WAKG;QACH,SAAS,CAAC,EAAE,MAAM,CAAC;QAEnB;;;;;WAKG;QACH,SAAS,CAAC,EAAE,MAAM,CAAC;QAEnB;;;;;;;WAOG;QACH,KAAK,EAAE,OAAO,CAAC;QAEf;;;;;;;WAOG;QACH,SAAS,EAAE,OAAO,CAAC;KACtB,CAAC;IACF,YAAY,CAAC,EAAE,qBAAqB,EAAE,CAAC;IACvC,OAAO,CAAC,EAAE;QACN,qFAAqF;QACrF,MAAM,CAAC,EAAE;YACL,gDAAgD;YAChD,aAAa,CAAC,EAAE,MAAM,CAAC;YACvB,8CAA8C;YAC9C,WAAW,CAAC,EAAE,MAAM,CAAC;YACrB,+CAA+C;YAC/C,UAAU,CAAC,EAAE,MAAM,CAAA;SACtB,CAAA;KACJ,CAAA;CAGJ;AAMD,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBtC,CAAC;AAEH,eAAO,MAAM,gCAAgC,UAAW,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE9D,CAAC"}
|
|
@@ -12,7 +12,14 @@ exports.IDrawingParameterJsonSchema = zod_1.z.object({
|
|
|
12
12
|
strictMinMaxPoints: zod_1.z.boolean().optional(),
|
|
13
13
|
close: zod_1.z.boolean(),
|
|
14
14
|
}).optional(),
|
|
15
|
-
restrictions: zod_1.z.array(zod_1.z.any()).optional()
|
|
15
|
+
restrictions: zod_1.z.array(zod_1.z.any()).optional(),
|
|
16
|
+
general: zod_1.z.object({
|
|
17
|
+
prompt: zod_1.z.object({
|
|
18
|
+
inactiveTitle: zod_1.z.string().optional(),
|
|
19
|
+
activeTitle: zod_1.z.string().optional(),
|
|
20
|
+
activeText: zod_1.z.string().optional(),
|
|
21
|
+
}).optional(),
|
|
22
|
+
}).optional(),
|
|
16
23
|
});
|
|
17
24
|
const validateDrawingParameterSettings = (param) => {
|
|
18
25
|
return exports.IDrawingParameterJsonSchema.safeParse(param);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IDrawingParametersSettings.js","sourceRoot":"","sources":["../../../src/interfaces/parameter/IDrawingParametersSettings.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;
|
|
1
|
+
{"version":3,"file":"IDrawingParametersSettings.js","sourceRoot":"","sources":["../../../src/interfaces/parameter/IDrawingParametersSettings.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AA8ExB,4BAA4B;AAE5B,wBAAwB;AAEX,QAAA,2BAA2B,GAAG,OAAC,CAAC,MAAM,CAAC;IAChD,QAAQ,EAAE,OAAC,CAAC,MAAM,CAAC;QACf,IAAI,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;QACjC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAChC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAChC,kBAAkB,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;QAC1C,KAAK,EAAE,OAAC,CAAC,OAAO,EAAE;KACrB,CAAC,CAAC,QAAQ,EAAE;IACb,YAAY,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;IACzC,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC;QACd,MAAM,EAAE,OAAC,CAAC,MAAM,CAAC;YACb,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;YACpC,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;YAClC,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;SACpC,CAAC,CAAC,QAAQ,EAAE;KAChB,CAAC,CAAC,QAAQ,EAAE;CAChB,CAAC,CAAC;AAEI,MAAM,gCAAgC,GAAG,CAAC,KAAc,EAAE,EAAE;IAC/D,OAAO,mCAA2B,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;AACxD,CAAC,CAAC;AAFW,QAAA,gCAAgC,oCAE3C;AAEF,2BAA2B"}
|
|
@@ -9,10 +9,36 @@ export declare type GumballParameterValue = {
|
|
|
9
9
|
export interface IGumballParameterProps extends IInteractionParameterProps {
|
|
10
10
|
/** If the rotation is enabled. (default: true) */
|
|
11
11
|
enableRotation?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* If the rotation per axis is enabled.
|
|
14
|
+
*/
|
|
15
|
+
enableRotationAxes?: {
|
|
16
|
+
x?: boolean;
|
|
17
|
+
y?: boolean;
|
|
18
|
+
z?: boolean;
|
|
19
|
+
};
|
|
12
20
|
/** If the scaling is enabled. (default: false) */
|
|
13
21
|
enableScaling?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* If the scaling per axis is enabled.
|
|
24
|
+
*/
|
|
25
|
+
enableScalingAxes?: {
|
|
26
|
+
x?: boolean;
|
|
27
|
+
y?: boolean;
|
|
28
|
+
z?: boolean;
|
|
29
|
+
};
|
|
14
30
|
/** If the translation is enabled. (default: true) */
|
|
15
31
|
enableTranslation?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* If the translation per axis is enabled.
|
|
34
|
+
*/
|
|
35
|
+
enableTranslationAxes?: {
|
|
36
|
+
x?: boolean;
|
|
37
|
+
y?: boolean;
|
|
38
|
+
z?: boolean;
|
|
39
|
+
};
|
|
40
|
+
/** The names of the objects that can be interacted with. (see Jira document and discussion result) */
|
|
41
|
+
nameFilter?: string[];
|
|
16
42
|
/** The scale of the controls. The scale divides the scene bounding sphere to get the actual size. (default: 0.005) */
|
|
17
43
|
scale?: number;
|
|
18
44
|
/** The space in which the controls operate. In world space, scaling is not available. (default: 'local') */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IGumballParameterSettings.d.ts","sourceRoot":"","sources":["../../../src/interfaces/parameter/IGumballParameterSettings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAI7E,oBAAY,qBAAqB,GAAG;IAChC,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,eAAe,EAAE,MAAM,EAAE,EAAE,CAAA;CAC9B,CAAC;AAMF;;GAEG;AACH,MAAM,WAAW,sBAAuB,SAAQ,0BAA0B;IAGtE,kDAAkD;IAClD,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,kDAAkD;IAClD,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,qDAAqD;IACrD,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,sHAAsH;IACtH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,4GAA4G;IAC5G,KAAK,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IAC1B,mEAAmE;IACnE,cAAc,CAAC,EAAE,MAAM,CAAC;CAG3B"}
|
|
1
|
+
{"version":3,"file":"IGumballParameterSettings.d.ts","sourceRoot":"","sources":["../../../src/interfaces/parameter/IGumballParameterSettings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAI7E,oBAAY,qBAAqB,GAAG;IAChC,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,eAAe,EAAE,MAAM,EAAE,EAAE,CAAA;CAC9B,CAAC;AAMF;;GAEG;AACH,MAAM,WAAW,sBAAuB,SAAQ,0BAA0B;IAGtE,kDAAkD;IAClD,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;OAEG;IACH,kBAAkB,CAAC,EAAE;QACjB,CAAC,CAAC,EAAE,OAAO,CAAC;QACZ,CAAC,CAAC,EAAE,OAAO,CAAC;QACZ,CAAC,CAAC,EAAE,OAAO,CAAA;KACd,CAAC;IACF,kDAAkD;IAClD,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;OAEG;IACH,iBAAiB,CAAC,EAAE;QAChB,CAAC,CAAC,EAAE,OAAO,CAAC;QACZ,CAAC,CAAC,EAAE,OAAO,CAAC;QACZ,CAAC,CAAC,EAAE,OAAO,CAAA;KACd,CAAC;IACF,qDAAqD;IACrD,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;OAEG;IACH,qBAAqB,CAAC,EAAE;QACpB,CAAC,CAAC,EAAE,OAAO,CAAC;QACZ,CAAC,CAAC,EAAE,OAAO,CAAC;QACZ,CAAC,CAAC,EAAE,OAAO,CAAA;KACd,CAAC;IACF,sGAAsG;IACtG,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,sHAAsH;IACtH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,4GAA4G;IAC5G,KAAK,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IAC1B,mEAAmE;IACnE,cAAc,CAAC,EAAE,MAAM,CAAC;CAG3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IGumballParameterSettings.js","sourceRoot":"","sources":["../../../src/interfaces/parameter/IGumballParameterSettings.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"IGumballParameterSettings.js","sourceRoot":"","sources":["../../../src/interfaces/parameter/IGumballParameterSettings.ts"],"names":[],"mappings":";;AA6DA,4BAA4B"}
|