@shapediver/viewer.shared.types 3.9.0 → 3.9.1
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/README.md +1 -1
- package/dist/implementation/data/AnimationData.d.ts +2 -2
- package/dist/implementation/data/AnimationData.d.ts.map +1 -1
- package/dist/implementation/data/AnimationData.js +56 -49
- package/dist/implementation/data/AnimationData.js.map +1 -1
- package/dist/implementation/data/BoneData.d.ts +2 -2
- package/dist/implementation/data/BoneData.d.ts.map +1 -1
- package/dist/implementation/data/BoneData.js.map +1 -1
- package/dist/implementation/data/CustomData.d.ts +2 -2
- package/dist/implementation/data/CustomData.d.ts.map +1 -1
- package/dist/implementation/data/CustomData.js.map +1 -1
- package/dist/implementation/data/GeometryData.d.ts +5 -5
- package/dist/implementation/data/GeometryData.d.ts.map +1 -1
- package/dist/implementation/data/GeometryData.js +15 -13
- package/dist/implementation/data/GeometryData.js.map +1 -1
- package/dist/implementation/data/HTMLElementAnchorData.d.ts +7 -7
- package/dist/implementation/data/HTMLElementAnchorData.d.ts.map +1 -1
- package/dist/implementation/data/HTMLElementAnchorData.js +40 -28
- package/dist/implementation/data/HTMLElementAnchorData.js.map +1 -1
- package/dist/implementation/data/InstanceData.d.ts +4 -4
- package/dist/implementation/data/InstanceData.d.ts.map +1 -1
- package/dist/implementation/data/InstanceData.js.map +1 -1
- package/dist/implementation/material/AbstractMaterialData.d.ts +4 -4
- package/dist/implementation/material/AbstractMaterialData.d.ts.map +1 -1
- package/dist/implementation/material/AbstractMaterialData.js +2 -2
- package/dist/implementation/material/AbstractMaterialData.js.map +1 -1
- package/dist/implementation/material/MapData.d.ts +4 -4
- package/dist/implementation/material/MapData.d.ts.map +1 -1
- package/dist/implementation/material/MapData.js +32 -12
- package/dist/implementation/material/MapData.js.map +1 -1
- package/dist/implementation/material/MaterialBasicLineData.d.ts +2 -2
- package/dist/implementation/material/MaterialBasicLineData.d.ts.map +1 -1
- package/dist/implementation/material/MaterialBasicLineData.js +4 -4
- package/dist/implementation/material/MaterialBasicLineData.js.map +1 -1
- package/dist/implementation/material/MaterialGemData.d.ts +5 -5
- package/dist/implementation/material/MaterialGemData.d.ts.map +1 -1
- package/dist/implementation/material/MaterialGemData.js +8 -8
- package/dist/implementation/material/MaterialGemData.js.map +1 -1
- package/dist/implementation/material/MaterialLambertData.d.ts +23 -0
- package/dist/implementation/material/MaterialLambertData.d.ts.map +1 -0
- package/dist/implementation/material/MaterialLambertData.js +147 -0
- package/dist/implementation/material/MaterialLambertData.js.map +1 -0
- package/dist/implementation/material/MaterialMultiPointData.d.ts +4 -4
- package/dist/implementation/material/MaterialMultiPointData.d.ts.map +1 -1
- package/dist/implementation/material/MaterialMultiPointData.js +19 -19
- package/dist/implementation/material/MaterialMultiPointData.js.map +1 -1
- package/dist/implementation/material/MaterialPhongData.d.ts +28 -0
- package/dist/implementation/material/MaterialPhongData.d.ts.map +1 -0
- package/dist/implementation/material/MaterialPhongData.js +171 -0
- package/dist/implementation/material/MaterialPhongData.js.map +1 -0
- package/dist/implementation/material/MaterialPointData.d.ts +2 -2
- package/dist/implementation/material/MaterialPointData.d.ts.map +1 -1
- package/dist/implementation/material/MaterialPointData.js +4 -4
- package/dist/implementation/material/MaterialPointData.js.map +1 -1
- package/dist/implementation/material/MaterialShadowData.d.ts.map +1 -1
- package/dist/implementation/material/MaterialShadowData.js +1 -1
- package/dist/implementation/material/MaterialShadowData.js.map +1 -1
- package/dist/implementation/material/MaterialSpecularGlossinessData.d.ts +4 -4
- package/dist/implementation/material/MaterialSpecularGlossinessData.d.ts.map +1 -1
- package/dist/implementation/material/MaterialSpecularGlossinessData.js +5 -5
- package/dist/implementation/material/MaterialSpecularGlossinessData.js.map +1 -1
- package/dist/implementation/material/MaterialStandardData.d.ts +4 -4
- package/dist/implementation/material/MaterialStandardData.d.ts.map +1 -1
- package/dist/implementation/material/MaterialStandardData.js +9 -9
- package/dist/implementation/material/MaterialStandardData.js.map +1 -1
- package/dist/implementation/material/MaterialUnlitData.d.ts.map +1 -1
- package/dist/implementation/material/MaterialUnlitData.js +3 -3
- package/dist/implementation/material/MaterialUnlitData.js.map +1 -1
- package/dist/implementation/material/MaterialVariantsData.d.ts +3 -3
- package/dist/implementation/material/MaterialVariantsData.d.ts.map +1 -1
- package/dist/implementation/material/MaterialVariantsData.js +3 -2
- package/dist/implementation/material/MaterialVariantsData.js.map +1 -1
- package/dist/implementation/sdtf/SDTFAttributesData.d.ts +3 -3
- package/dist/implementation/sdtf/SDTFAttributesData.d.ts.map +1 -1
- package/dist/implementation/sdtf/SDTFAttributesData.js.map +1 -1
- package/dist/implementation/sdtf/SDTFItemData.d.ts +4 -4
- package/dist/implementation/sdtf/SDTFItemData.d.ts.map +1 -1
- package/dist/implementation/sdtf/SDTFItemData.js.map +1 -1
- package/dist/implementation/sdtf/SDTFOverviewData.d.ts +2 -2
- package/dist/implementation/sdtf/SDTFOverviewData.d.ts.map +1 -1
- package/dist/implementation/sdtf/SDTFOverviewData.js +8 -4
- package/dist/implementation/sdtf/SDTFOverviewData.js.map +1 -1
- package/dist/index.d.ts +76 -72
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +53 -49
- package/dist/index.js.map +1 -1
- package/dist/interfaces/data/IAnimationData.d.ts +2 -2
- package/dist/interfaces/data/IAnimationData.d.ts.map +1 -1
- package/dist/interfaces/data/IBoneData.d.ts.map +1 -1
- package/dist/interfaces/data/ICustomData.d.ts.map +1 -1
- package/dist/interfaces/data/IGeometryData.d.ts +2 -2
- package/dist/interfaces/data/IGeometryData.d.ts.map +1 -1
- package/dist/interfaces/data/IGeometryData.js.map +1 -1
- package/dist/interfaces/data/IHTMLElementAnchorData.d.ts +3 -3
- package/dist/interfaces/data/IHTMLElementAnchorData.d.ts.map +1 -1
- package/dist/interfaces/data/IInstanceData.d.ts +3 -3
- package/dist/interfaces/data/IInstanceData.d.ts.map +1 -1
- package/dist/interfaces/data/material/IMapData.d.ts +3 -3
- package/dist/interfaces/data/material/IMapData.d.ts.map +1 -1
- package/dist/interfaces/data/material/IMapData.js.map +1 -1
- package/dist/interfaces/data/material/IMaterialAbstractData.d.ts +6 -4
- package/dist/interfaces/data/material/IMaterialAbstractData.d.ts.map +1 -1
- package/dist/interfaces/data/material/IMaterialAbstractData.js +2 -0
- package/dist/interfaces/data/material/IMaterialAbstractData.js.map +1 -1
- package/dist/interfaces/data/material/IMaterialBasicLineData.d.ts +1 -1
- package/dist/interfaces/data/material/IMaterialBasicLineData.d.ts.map +1 -1
- package/dist/interfaces/data/material/IMaterialBasicLineData.js.map +1 -1
- package/dist/interfaces/data/material/IMaterialGemDataProperties.d.ts +4 -4
- package/dist/interfaces/data/material/IMaterialGemDataProperties.d.ts.map +1 -1
- package/dist/interfaces/data/material/IMaterialGemDataProperties.js.map +1 -1
- package/dist/interfaces/data/material/IMaterialLambertData.d.ts +18 -0
- package/dist/interfaces/data/material/IMaterialLambertData.d.ts.map +1 -0
- package/dist/interfaces/data/material/IMaterialLambertData.js +3 -0
- package/dist/interfaces/data/material/IMaterialLambertData.js.map +1 -0
- package/dist/interfaces/data/material/IMaterialMultiPointData.d.ts +3 -3
- package/dist/interfaces/data/material/IMaterialMultiPointData.d.ts.map +1 -1
- package/dist/interfaces/data/material/IMaterialMultiPointData.js.map +1 -1
- package/dist/interfaces/data/material/IMaterialPhongData.d.ts +21 -0
- package/dist/interfaces/data/material/IMaterialPhongData.d.ts.map +1 -0
- package/dist/interfaces/data/material/IMaterialPhongData.js +3 -0
- package/dist/interfaces/data/material/IMaterialPhongData.js.map +1 -0
- package/dist/interfaces/data/material/IMaterialPointData.d.ts +2 -2
- package/dist/interfaces/data/material/IMaterialPointData.d.ts.map +1 -1
- package/dist/interfaces/data/material/IMaterialPointData.js.map +1 -1
- package/dist/interfaces/data/material/IMaterialShadowData.d.ts +1 -1
- package/dist/interfaces/data/material/IMaterialShadowData.d.ts.map +1 -1
- package/dist/interfaces/data/material/IMaterialShadowData.js.map +1 -1
- package/dist/interfaces/data/material/IMaterialSpecularGlossinessDataProperties.d.ts +3 -3
- package/dist/interfaces/data/material/IMaterialSpecularGlossinessDataProperties.d.ts.map +1 -1
- package/dist/interfaces/data/material/IMaterialSpecularGlossinessDataProperties.js.map +1 -1
- package/dist/interfaces/data/material/IMaterialStandardData.d.ts +3 -3
- package/dist/interfaces/data/material/IMaterialStandardData.d.ts.map +1 -1
- package/dist/interfaces/data/material/IMaterialStandardData.js.map +1 -1
- package/dist/interfaces/data/material/IMaterialUnlitData.d.ts +2 -2
- package/dist/interfaces/data/material/IMaterialUnlitData.d.ts.map +1 -1
- package/dist/interfaces/data/material/IMaterialUnlitData.js.map +1 -1
- package/dist/interfaces/data/material/IMaterialVariantsData.d.ts.map +1 -1
- package/dist/interfaces/events/EventResponseMapping.d.ts +9 -9
- package/dist/interfaces/events/EventResponseMapping.d.ts.map +1 -1
- package/dist/interfaces/events/ICameraEvent.d.ts +1 -1
- package/dist/interfaces/events/ICameraEvent.d.ts.map +1 -1
- package/dist/interfaces/events/IOutputEvent.d.ts +2 -2
- package/dist/interfaces/events/IOutputEvent.d.ts.map +1 -1
- package/dist/interfaces/events/IParameterEvent.d.ts +1 -1
- package/dist/interfaces/events/IParameterEvent.d.ts.map +1 -1
- package/dist/interfaces/events/IRenderingEvent.d.ts +1 -1
- package/dist/interfaces/events/IRenderingEvent.d.ts.map +1 -1
- package/dist/interfaces/events/ISceneEvent.d.ts +2 -2
- package/dist/interfaces/events/ISceneEvent.d.ts.map +1 -1
- package/dist/interfaces/events/ISessionEvent.d.ts +1 -1
- package/dist/interfaces/events/ISessionEvent.d.ts.map +1 -1
- package/dist/interfaces/events/ITaskEvent.d.ts +1 -1
- package/dist/interfaces/events/ITaskEvent.d.ts.map +1 -1
- package/dist/interfaces/events/ITaskEvent.js.map +1 -1
- package/dist/interfaces/events/IViewportEvent.d.ts +1 -1
- package/dist/interfaces/events/IViewportEvent.d.ts.map +1 -1
- package/dist/interfaces/parameter/IDraggingParameterSettings.d.ts +2 -2
- package/dist/interfaces/parameter/IDraggingParameterSettings.d.ts.map +1 -1
- package/dist/interfaces/parameter/IDrawingParametersSettings.d.ts +18 -18
- package/dist/interfaces/parameter/IDrawingParametersSettings.d.ts.map +1 -1
- package/dist/interfaces/parameter/IDrawingParametersSettings.js +13 -7
- package/dist/interfaces/parameter/IDrawingParametersSettings.js.map +1 -1
- package/dist/interfaces/parameter/IGumballParameterSettings.d.ts +2 -2
- package/dist/interfaces/parameter/IGumballParameterSettings.d.ts.map +1 -1
- package/dist/interfaces/parameter/IInteractionParameterSettings.d.ts +80 -80
- package/dist/interfaces/parameter/IInteractionParameterSettings.d.ts.map +1 -1
- package/dist/interfaces/parameter/IInteractionParameterSettings.js +54 -28
- package/dist/interfaces/parameter/IInteractionParameterSettings.js.map +1 -1
- package/dist/interfaces/parameter/IRestrictionSettings.d.ts +6 -6
- package/dist/interfaces/parameter/IRestrictionSettings.d.ts.map +1 -1
- package/dist/interfaces/parameter/IRestrictionSettings.js.map +1 -1
- package/dist/interfaces/parameter/ISelectionParameterSettings.d.ts +1 -1
- package/dist/interfaces/parameter/ISelectionParameterSettings.d.ts.map +1 -1
- package/dist/interfaces/renderingEngine/IIntersection.d.ts +3 -3
- package/dist/interfaces/renderingEngine/IIntersection.d.ts.map +1 -1
- package/dist/interfaces/renderingEngine/IIntersectionFilter.d.ts +2 -2
- package/dist/interfaces/renderingEngine/IIntersectionFilter.d.ts.map +1 -1
- package/dist/interfaces/renderingEngine/IRay.d.ts +1 -1
- package/dist/interfaces/renderingEngine/IRay.d.ts.map +1 -1
- package/dist/interfaces/renderingEngine/enums.d.ts +2 -2
- package/dist/interfaces/renderingEngine/enums.d.ts.map +1 -1
- package/dist/interfaces/renderingEngine/enums.js +2 -2
- package/dist/interfaces/renderingEngine/enums.js.map +1 -1
- package/dist/interfaces/sdtf/ISDTFAttributeVisualizationData.d.ts.map +1 -1
- package/dist/interfaces/sdtf/ISDTFAttributesData.d.ts +1 -1
- package/dist/interfaces/sdtf/ISDTFAttributesData.d.ts.map +1 -1
- package/dist/interfaces/sdtf/ISDTFItemData.d.ts +1 -1
- package/dist/interfaces/sdtf/ISDTFItemData.d.ts.map +1 -1
- package/dist/interfaces/sdtf/ISDTFOverviewData.d.ts +1 -1
- package/dist/interfaces/sdtf/ISDTFOverviewData.d.ts.map +1 -1
- package/dist/interfaces/sdtf/ISDTFOverviewData.js +0 -1
- package/dist/interfaces/sdtf/ISDTFOverviewData.js.map +1 -1
- package/dist/types.d.ts +5 -5
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/package.json +48 -48
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IParameterEvent.d.ts","sourceRoot":"","sources":["../../../src/interfaces/events/IParameterEvent.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"IParameterEvent.d.ts","sourceRoot":"","sources":["../../../src/interfaces/events/IParameterEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAE9C;;;GAGG;AACH,MAAM,WAAW,eAAgB,SAAQ,aAAa;IAGrD;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,KAAK,EAAE,OAAO,CAAC;CAGf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IRenderingEvent.d.ts","sourceRoot":"","sources":["../../../src/interfaces/events/IRenderingEvent.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"IRenderingEvent.d.ts","sourceRoot":"","sources":["../../../src/interfaces/events/IRenderingEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAEhD;;;GAGG;AACH,oBAAY,eAAe,GAAG,cAAc,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { vec3 } from "gl-matrix";
|
|
2
|
+
import { IViewportEvent } from "./IViewportEvent";
|
|
3
3
|
/**
|
|
4
4
|
* Definition of the scene event.
|
|
5
5
|
* These events are sent for scene specific events ({@link EVENTTYPE_SCENE}).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ISceneEvent.d.ts","sourceRoot":"","sources":["../../../src/interfaces/events/ISceneEvent.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ISceneEvent.d.ts","sourceRoot":"","sources":["../../../src/interfaces/events/ISceneEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;AAC/B,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAEhD;;;GAGG;AACH,MAAM,WAAW,WAAY,SAAQ,cAAc;IAGlD;;OAEG;IACH,WAAW,EAAE;QAAC,GAAG,EAAE,IAAI,CAAC;QAAC,GAAG,EAAE,IAAI,CAAA;KAAC,CAAC;CAGpC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ISessionEvent.d.ts","sourceRoot":"","sources":["../../../src/interfaces/events/ISessionEvent.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ISessionEvent.d.ts","sourceRoot":"","sources":["../../../src/interfaces/events/ISessionEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAC,MAAM,oCAAoC,CAAC;AAE1D;;;GAGG;AACH,MAAM,WAAW,aAAc,SAAQ,MAAM;IAG5C;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CAGlB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ITaskEvent.d.ts","sourceRoot":"","sources":["../../../src/interfaces/events/ITaskEvent.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ITaskEvent.d.ts","sourceRoot":"","sources":["../../../src/interfaces/events/ITaskEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAC,MAAM,oCAAoC,CAAC;AAI1D;;;GAGG;AACH,MAAM,WAAW,UAAW,SAAQ,MAAM;IAGzC;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,IAAI,EAAE,SAAS,CAAC;CAGhB;AAMD;;;GAGG;AACH,oBAAY,SAAS;IACpB,UAAU,eAAe;IACzB,uBAAuB,4BAA4B;IACnD,sBAAsB,2BAA2B;IACjD,aAAa,kBAAkB;IAC/B,oBAAoB,yBAAyB;IAC7C,wBAAwB,6BAA6B;IACrD,mBAAmB,wBAAwB;IAC3C,oBAAoB,yBAAyB;IAC7C,qBAAqB,0BAA0B;IAC/C,gBAAgB,qBAAqB;IACrC,sBAAsB,2BAA2B;IACjD,uBAAuB,4BAA4B;IACnD,iBAAiB,oBAAoB;IACrC,cAAc,mBAAmB;CACjC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ITaskEvent.js","sourceRoot":"","sources":["../../../src/interfaces/events/ITaskEvent.ts"],"names":[],"mappings":";;;AAmCA,4BAA4B;AAE5B,oBAAoB;AAEpB;;;GAGG;AACH,IAAY,SAeX;AAfD,WAAY,SAAS;
|
|
1
|
+
{"version":3,"file":"ITaskEvent.js","sourceRoot":"","sources":["../../../src/interfaces/events/ITaskEvent.ts"],"names":[],"mappings":";;;AAmCA,4BAA4B;AAE5B,oBAAoB;AAEpB;;;GAGG;AACH,IAAY,SAeX;AAfD,WAAY,SAAS;IACpB,sCAAyB,CAAA;IACzB,gEAAmD,CAAA;IACnD,8DAAiD,CAAA;IACjD,4CAA+B,CAAA;IAC/B,0DAA6C,CAAA;IAC7C,kEAAqD,CAAA;IACrD,wDAA2C,CAAA;IAC3C,0DAA6C,CAAA;IAC7C,4DAA+C,CAAA;IAC/C,kDAAqC,CAAA;IACrC,8DAAiD,CAAA;IACjD,gEAAmD,CAAA;IACnD,kDAAqC,CAAA;IACrC,8CAAiC,CAAA;AAClC,CAAC,EAfW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAepB;AAED,uBAAuB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IViewportEvent.d.ts","sourceRoot":"","sources":["../../../src/interfaces/events/IViewportEvent.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"IViewportEvent.d.ts","sourceRoot":"","sources":["../../../src/interfaces/events/IViewportEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAC,MAAM,oCAAoC,CAAC;AAE1D;;;GAGG;AACH,MAAM,WAAW,cAAe,SAAQ,MAAM;IAG7C,UAAU,EAAE,MAAM,CAAC;CAGnB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IInteractionParameterProps } from
|
|
2
|
-
import { RestrictionDefinition, Rotation } from
|
|
1
|
+
import { IInteractionParameterProps } from "./IInteractionParameterSettings";
|
|
2
|
+
import { RestrictionDefinition, Rotation } from "./IRestrictionSettings";
|
|
3
3
|
export declare type DraggingParameterValue = {
|
|
4
4
|
objects: {
|
|
5
5
|
/** The name of the object as defined in the name filter. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IDraggingParameterSettings.d.ts","sourceRoot":"","sources":["../../../src/interfaces/parameter/IDraggingParameterSettings.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"IDraggingParameterSettings.d.ts","sourceRoot":"","sources":["../../../src/interfaces/parameter/IDraggingParameterSettings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,0BAA0B,EAAC,MAAM,iCAAiC,CAAC;AAC3E,OAAO,EAAC,qBAAqB,EAAE,QAAQ,EAAC,MAAM,wBAAwB,CAAC;AAIvE,oBAAY,sBAAsB,GAAG;IACpC,OAAO,EAAE;QACR,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,CAAC;KACtB,EAAE,CAAC;CACJ,CAAC;AAMF;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAGhC;;;;;OAKG;IACH,WAAW,CAAC,EAAE;QACb,2BAA2B;QAC3B,EAAE,EAAE,MAAM,CAAC;QACX,iCAAiC;QACjC,QAAQ,EAAE,MAAM,EAAE,CAAC;QACnB,iCAAiC;QACjC,QAAQ,CAAC,EAAE,QAAQ,CAAC;KACpB,EAAE,CAAC;IACJ;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,qFAAqF;IACrF,UAAU,EAAE,MAAM,CAAC;IACnB,wFAAwF;IACxF,YAAY,EAAE,MAAM,EAAE,CAAC;CAGvB;AAED;;GAEG;AACH,MAAM,WAAW,uBAAwB,SAAQ,0BAA0B;IAG1E,kEAAkE;IAClE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAC7B,YAAY,CAAC,EAAE,qBAAqB,EAAE,CAAC;CAGvC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { z } from
|
|
2
|
-
import { RestrictionDefinition } from
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { RestrictionDefinition } from "./IRestrictionSettings";
|
|
3
3
|
export declare type DrawingParameterValue = {
|
|
4
4
|
points: number[][];
|
|
5
5
|
};
|
|
@@ -16,7 +16,7 @@ export interface IDrawingParameterSettings {
|
|
|
16
16
|
*
|
|
17
17
|
* @default 'lines'
|
|
18
18
|
*/
|
|
19
|
-
mode:
|
|
19
|
+
mode: "points" | "lines";
|
|
20
20
|
/**
|
|
21
21
|
* The minimum amount of points, if undefined, the geometry is not restricted.
|
|
22
22
|
* This value is checked whenever the user tries to update or finish the drawing tool.
|
|
@@ -112,13 +112,7 @@ export declare const IDrawingParameterJsonSchema: z.ZodObject<{
|
|
|
112
112
|
} | undefined;
|
|
113
113
|
}>>;
|
|
114
114
|
}, "strip", z.ZodTypeAny, {
|
|
115
|
-
|
|
116
|
-
prompt?: {
|
|
117
|
-
inactiveTitle?: string | undefined;
|
|
118
|
-
activeTitle?: string | undefined;
|
|
119
|
-
activeText?: string | undefined;
|
|
120
|
-
} | undefined;
|
|
121
|
-
} | undefined;
|
|
115
|
+
restrictions?: any[] | undefined;
|
|
122
116
|
geometry?: {
|
|
123
117
|
mode: "points" | "lines";
|
|
124
118
|
close: boolean;
|
|
@@ -126,8 +120,6 @@ export declare const IDrawingParameterJsonSchema: z.ZodObject<{
|
|
|
126
120
|
maxPoints?: number | undefined;
|
|
127
121
|
strictMinMaxPoints?: boolean | undefined;
|
|
128
122
|
} | undefined;
|
|
129
|
-
restrictions?: any[] | undefined;
|
|
130
|
-
}, {
|
|
131
123
|
general?: {
|
|
132
124
|
prompt?: {
|
|
133
125
|
inactiveTitle?: string | undefined;
|
|
@@ -135,6 +127,8 @@ export declare const IDrawingParameterJsonSchema: z.ZodObject<{
|
|
|
135
127
|
activeText?: string | undefined;
|
|
136
128
|
} | undefined;
|
|
137
129
|
} | undefined;
|
|
130
|
+
}, {
|
|
131
|
+
restrictions?: any[] | undefined;
|
|
138
132
|
geometry?: {
|
|
139
133
|
mode: "points" | "lines";
|
|
140
134
|
close: boolean;
|
|
@@ -142,9 +136,6 @@ export declare const IDrawingParameterJsonSchema: z.ZodObject<{
|
|
|
142
136
|
maxPoints?: number | undefined;
|
|
143
137
|
strictMinMaxPoints?: boolean | undefined;
|
|
144
138
|
} | undefined;
|
|
145
|
-
restrictions?: any[] | undefined;
|
|
146
|
-
}>;
|
|
147
|
-
export declare const validateDrawingParameterSettings: (param: unknown) => z.SafeParseReturnType<{
|
|
148
139
|
general?: {
|
|
149
140
|
prompt?: {
|
|
150
141
|
inactiveTitle?: string | undefined;
|
|
@@ -152,6 +143,9 @@ export declare const validateDrawingParameterSettings: (param: unknown) => z.Saf
|
|
|
152
143
|
activeText?: string | undefined;
|
|
153
144
|
} | undefined;
|
|
154
145
|
} | undefined;
|
|
146
|
+
}>;
|
|
147
|
+
export declare const validateDrawingParameterSettings: (param: unknown) => z.SafeParseReturnType<{
|
|
148
|
+
restrictions?: any[] | undefined;
|
|
155
149
|
geometry?: {
|
|
156
150
|
mode: "points" | "lines";
|
|
157
151
|
close: boolean;
|
|
@@ -159,8 +153,6 @@ export declare const validateDrawingParameterSettings: (param: unknown) => z.Saf
|
|
|
159
153
|
maxPoints?: number | undefined;
|
|
160
154
|
strictMinMaxPoints?: boolean | undefined;
|
|
161
155
|
} | undefined;
|
|
162
|
-
restrictions?: any[] | undefined;
|
|
163
|
-
}, {
|
|
164
156
|
general?: {
|
|
165
157
|
prompt?: {
|
|
166
158
|
inactiveTitle?: string | undefined;
|
|
@@ -168,6 +160,8 @@ export declare const validateDrawingParameterSettings: (param: unknown) => z.Saf
|
|
|
168
160
|
activeText?: string | undefined;
|
|
169
161
|
} | undefined;
|
|
170
162
|
} | undefined;
|
|
163
|
+
}, {
|
|
164
|
+
restrictions?: any[] | undefined;
|
|
171
165
|
geometry?: {
|
|
172
166
|
mode: "points" | "lines";
|
|
173
167
|
close: boolean;
|
|
@@ -175,6 +169,12 @@ export declare const validateDrawingParameterSettings: (param: unknown) => z.Saf
|
|
|
175
169
|
maxPoints?: number | undefined;
|
|
176
170
|
strictMinMaxPoints?: boolean | undefined;
|
|
177
171
|
} | undefined;
|
|
178
|
-
|
|
172
|
+
general?: {
|
|
173
|
+
prompt?: {
|
|
174
|
+
inactiveTitle?: string | undefined;
|
|
175
|
+
activeTitle?: string | undefined;
|
|
176
|
+
activeText?: string | undefined;
|
|
177
|
+
} | undefined;
|
|
178
|
+
} | undefined;
|
|
179
179
|
}>;
|
|
180
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,
|
|
1
|
+
{"version":3,"file":"IDrawingParametersSettings.d.ts","sourceRoot":"","sources":["../../../src/interfaces/parameter/IDrawingParametersSettings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AACtB,OAAO,EAAC,qBAAqB,EAAC,MAAM,wBAAwB,CAAC;AAI7D,oBAAY,qBAAqB,GAAG;IACnC,MAAM,EAAE,MAAM,EAAE,EAAE,CAAC;CACnB,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,yBAAyB;IAGzC,QAAQ,CAAC,EAAE;QACV;;;;;;;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;KACnB,CAAC;IACF,YAAY,CAAC,EAAE,qBAAqB,EAAE,CAAC;IACvC,OAAO,CAAC,EAAE;QACT,qFAAqF;QACrF,MAAM,CAAC,EAAE;YACR,gDAAgD;YAChD,aAAa,CAAC,EAAE,MAAM,CAAC;YACvB,8CAA8C;YAC9C,WAAW,CAAC,EAAE,MAAM,CAAC;YACrB,+CAA+C;YAC/C,UAAU,CAAC,EAAE,MAAM,CAAC;SACpB,CAAC;KACF,CAAC;CAGF;AAMD,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsBtC,CAAC;AAEH,eAAO,MAAM,gCAAgC,UAAW,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE9D,CAAC"}
|
|
@@ -5,21 +5,27 @@ const zod_1 = require("zod");
|
|
|
5
5
|
// #endregion Interfaces (2)
|
|
6
6
|
// #region Variables (2)
|
|
7
7
|
exports.IDrawingParameterJsonSchema = zod_1.z.object({
|
|
8
|
-
geometry: zod_1.z
|
|
9
|
-
|
|
8
|
+
geometry: zod_1.z
|
|
9
|
+
.object({
|
|
10
|
+
mode: zod_1.z.enum(["points", "lines"]),
|
|
10
11
|
minPoints: zod_1.z.number().optional(),
|
|
11
12
|
maxPoints: zod_1.z.number().optional(),
|
|
12
13
|
strictMinMaxPoints: zod_1.z.boolean().optional(),
|
|
13
14
|
close: zod_1.z.boolean(),
|
|
14
|
-
})
|
|
15
|
+
})
|
|
16
|
+
.optional(),
|
|
15
17
|
restrictions: zod_1.z.array(zod_1.z.any()).optional(),
|
|
16
|
-
general: zod_1.z
|
|
17
|
-
|
|
18
|
+
general: zod_1.z
|
|
19
|
+
.object({
|
|
20
|
+
prompt: zod_1.z
|
|
21
|
+
.object({
|
|
18
22
|
inactiveTitle: zod_1.z.string().optional(),
|
|
19
23
|
activeTitle: zod_1.z.string().optional(),
|
|
20
24
|
activeText: zod_1.z.string().optional(),
|
|
21
|
-
})
|
|
22
|
-
|
|
25
|
+
})
|
|
26
|
+
.optional(),
|
|
27
|
+
})
|
|
28
|
+
.optional(),
|
|
23
29
|
});
|
|
24
30
|
const validateDrawingParameterSettings = (param) => {
|
|
25
31
|
return exports.IDrawingParameterJsonSchema.safeParse(param);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IDrawingParametersSettings.js","sourceRoot":"","sources":["../../../src/interfaces/parameter/IDrawingParametersSettings.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"IDrawingParametersSettings.js","sourceRoot":"","sources":["../../../src/interfaces/parameter/IDrawingParametersSettings.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AA8EtB,4BAA4B;AAE5B,wBAAwB;AAEX,QAAA,2BAA2B,GAAG,OAAC,CAAC,MAAM,CAAC;IACnD,QAAQ,EAAE,OAAC;SACT,MAAM,CAAC;QACP,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;KAClB,CAAC;SACD,QAAQ,EAAE;IACZ,YAAY,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;IACzC,OAAO,EAAE,OAAC;SACR,MAAM,CAAC;QACP,MAAM,EAAE,OAAC;aACP,MAAM,CAAC;YACP,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;SACjC,CAAC;aACD,QAAQ,EAAE;KACZ,CAAC;SACD,QAAQ,EAAE;CACZ,CAAC,CAAC;AAEI,MAAM,gCAAgC,GAAG,CAAC,KAAc,EAAE,EAAE;IAClE,OAAO,mCAA2B,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;AACrD,CAAC,CAAC;AAFW,QAAA,gCAAgC,oCAE3C;AAEF,2BAA2B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IInteractionParameterProps } from
|
|
1
|
+
import { IInteractionParameterProps } from "./IInteractionParameterSettings";
|
|
2
2
|
export declare type GumballParameterValue = {
|
|
3
3
|
names: string[];
|
|
4
4
|
transformations: number[][];
|
|
@@ -42,7 +42,7 @@ export interface IGumballParameterProps extends IInteractionParameterProps {
|
|
|
42
42
|
/** The scale of the controls. The scale divides the scene bounding sphere to get the actual size. (default: 0.005) */
|
|
43
43
|
scale?: number;
|
|
44
44
|
/** The space in which the controls operate. In world space, scaling is not available. (default: 'local') */
|
|
45
|
-
space?:
|
|
45
|
+
space?: "local" | "world";
|
|
46
46
|
/** The color of the objects when selected. (default: '#0d44f0') */
|
|
47
47
|
selectionColor?: string;
|
|
48
48
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IGumballParameterSettings.d.ts","sourceRoot":"","sources":["../../../src/interfaces/parameter/IGumballParameterSettings.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"IGumballParameterSettings.d.ts","sourceRoot":"","sources":["../../../src/interfaces/parameter/IGumballParameterSettings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,0BAA0B,EAAC,MAAM,iCAAiC,CAAC;AAI3E,oBAAY,qBAAqB,GAAG;IACnC,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,eAAe,EAAE,MAAM,EAAE,EAAE,CAAC;CAC5B,CAAC;AAMF;;GAEG;AACH,MAAM,WAAW,sBAAuB,SAAQ,0BAA0B;IAGzE,kDAAkD;IAClD,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;OAEG;IACH,kBAAkB,CAAC,EAAE;QACpB,CAAC,CAAC,EAAE,OAAO,CAAC;QACZ,CAAC,CAAC,EAAE,OAAO,CAAC;QACZ,CAAC,CAAC,EAAE,OAAO,CAAC;KACZ,CAAC;IACF,kDAAkD;IAClD,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;OAEG;IACH,iBAAiB,CAAC,EAAE;QACnB,CAAC,CAAC,EAAE,OAAO,CAAC;QACZ,CAAC,CAAC,EAAE,OAAO,CAAC;QACZ,CAAC,CAAC,EAAE,OAAO,CAAC;KACZ,CAAC;IACF,qDAAqD;IACrD,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;OAEG;IACH,qBAAqB,CAAC,EAAE;QACvB,CAAC,CAAC,EAAE,OAAO,CAAC;QACZ,CAAC,CAAC,EAAE,OAAO,CAAC;QACZ,CAAC,CAAC,EAAE,OAAO,CAAC;KACZ,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;CAGxB"}
|