@vcmap/ui 6.0.0-rc.1 → 6.0.0-rc.2
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/config/base.config.json +4 -4
- package/dist/assets/cesium/Assets/approximateTerrainHeights.json +1 -1
- package/dist/assets/cesium/ThirdParty/Workers/z-worker-pako.js +1 -1
- package/dist/assets/cesium/Workers/{chunk-ZA25DG4Y.js → chunk-3DRPXHZ4.js} +11 -11
- package/dist/assets/cesium/Workers/{chunk-OAVNIRB4.js → chunk-3GI7DWF7.js} +5 -7
- package/dist/assets/cesium/Workers/{chunk-TFC6TZ3S.js → chunk-4EW3HFFI.js} +33 -22
- package/dist/assets/cesium/Workers/{chunk-LLUNNUJV.js → chunk-4OX4RYLB.js} +5 -5
- package/dist/assets/cesium/Workers/{chunk-66QLLS45.js → chunk-4RJH3H6D.js} +11 -9
- package/dist/assets/cesium/Workers/{chunk-MPAZH4BF.js → chunk-5OUTANXX.js} +1 -1
- package/dist/assets/cesium/Workers/{chunk-WXTV4ATB.js → chunk-6DH5PLFD.js} +1 -1
- package/dist/assets/cesium/Workers/{chunk-A4JVFBQ3.js → chunk-6DXIYFX3.js} +2 -2
- package/dist/assets/cesium/Workers/chunk-A5C2A5O5.js +963 -0
- package/dist/assets/cesium/Workers/{chunk-HQF437NJ.js → chunk-AGTH5JMJ.js} +6 -6
- package/dist/assets/cesium/Workers/{chunk-RP2A7BR5.js → chunk-AVFIYUKX.js} +12 -14
- package/dist/assets/cesium/Workers/{chunk-227AJNOA.js → chunk-BAJAVGUF.js} +5 -5
- package/dist/assets/cesium/Workers/{chunk-N3JIFFX2.js → chunk-BPY4HDAK.js} +5 -6
- package/dist/assets/cesium/Workers/{chunk-ABADGKYE.js → chunk-D6PDWQXW.js} +2 -2
- package/dist/assets/cesium/Workers/{chunk-34YUDLRP.js → chunk-DR7LK6PG.js} +13 -13
- package/dist/assets/cesium/Workers/{chunk-OYFCF4PL.js → chunk-DTACCQDR.js} +6 -6
- package/dist/assets/cesium/Workers/{chunk-C3SXRKRW.js → chunk-EVU2UNBD.js} +7 -7
- package/dist/assets/cesium/Workers/{chunk-6BTKZDRG.js → chunk-F7IEM66T.js} +3 -5
- package/dist/assets/cesium/Workers/{chunk-QT3MPEMI.js → chunk-FSXNF76Y.js} +4 -4
- package/dist/assets/cesium/Workers/{chunk-PCJWUS4M.js → chunk-FYYT5EVH.js} +830 -14
- package/dist/assets/cesium/Workers/{chunk-QMEMZIJI.js → chunk-FZDKIUDT.js} +4 -4
- package/dist/assets/cesium/Workers/{chunk-XTY7B2N6.js → chunk-G6346EDR.js} +16 -16
- package/dist/assets/cesium/Workers/{chunk-CHHNOC2C.js → chunk-H7PSTL64.js} +95 -155
- package/dist/assets/cesium/Workers/{chunk-2R5O53JW.js → chunk-I67V66MN.js} +6 -6
- package/dist/assets/cesium/Workers/{chunk-JS3AW5BK.js → chunk-IALQGTA2.js} +6 -6
- package/dist/assets/cesium/Workers/{chunk-K36FEYS7.js → chunk-KNMGSIIN.js} +16 -12
- package/dist/assets/cesium/Workers/{chunk-J3JY6I2C.js → chunk-L4XQPD6P.js} +49 -88
- package/dist/assets/cesium/Workers/{chunk-X4SU25DT.js → chunk-LMTN7R7M.js} +10 -12
- package/dist/assets/cesium/Workers/{chunk-JB2LWGH4.js → chunk-LUYI3XCB.js} +14 -14
- package/dist/assets/cesium/Workers/{chunk-AFFLIKOH.js → chunk-N5MIFVXJ.js} +7 -7
- package/dist/assets/cesium/Workers/{chunk-MYZB7C4T.js → chunk-O7OUBDMZ.js} +10 -10
- package/dist/assets/cesium/Workers/{chunk-VLGOATD6.js → chunk-P24I5VUS.js} +22 -22
- package/dist/assets/cesium/Workers/{chunk-KD4Y7CZL.js → chunk-PIOKSAZH.js} +15 -17
- package/dist/assets/cesium/Workers/{chunk-3W63OHNJ.js → chunk-PRKEY4QK.js} +5 -5
- package/dist/assets/cesium/Workers/{chunk-O5AMBQ36.js → chunk-Q7PM4W34.js} +8 -8
- package/dist/assets/cesium/Workers/{chunk-GLZBE3ML.js → chunk-QLC66ZRL.js} +13 -13
- package/dist/assets/cesium/Workers/{chunk-OZJDGN5F.js → chunk-RRLGJV3Q.js} +16 -16
- package/dist/assets/cesium/Workers/{chunk-CCFQRR6D.js → chunk-S2UEXF6T.js} +1 -1
- package/dist/assets/cesium/Workers/{chunk-QIKODV5G.js → chunk-S4VTLNAJ.js} +4 -4
- package/dist/assets/cesium/Workers/{chunk-EW2GWJYB.js → chunk-SJC5PRDX.js} +2 -2
- package/dist/assets/cesium/Workers/{chunk-KTJSNCK4.js → chunk-T6TZXGG5.js} +230 -20
- package/dist/assets/cesium/Workers/{chunk-RW6LU2CJ.js → chunk-TLGODPEV.js} +5 -5
- package/dist/assets/cesium/Workers/{chunk-CTELOFLA.js → chunk-UC566ISB.js} +6 -6
- package/dist/assets/cesium/Workers/{chunk-ZFOBYDGF.js → chunk-UMX265HW.js} +2 -2
- package/dist/assets/cesium/Workers/{chunk-Z24VKNDO.js → chunk-V7WJDCPA.js} +12 -12
- package/dist/assets/cesium/Workers/{chunk-4MFFIWUA.js → chunk-VD6G7UPU.js} +2 -2
- package/dist/assets/cesium/Workers/{chunk-XY7MGBKC.js → chunk-WMVCLETM.js} +14 -16
- package/dist/assets/cesium/Workers/{chunk-IPA4EACJ.js → chunk-WOA6WSHH.js} +12 -12
- package/dist/assets/cesium/Workers/{chunk-PFQBCKBM.js → chunk-X67EJ6X6.js} +4398 -2722
- package/dist/assets/cesium/Workers/{chunk-V3NGATMV.js → chunk-XGI4FRXF.js} +11 -13
- package/dist/assets/cesium/Workers/{chunk-AHKEZ2OE.js → chunk-YFVI4SQI.js} +1 -1
- package/dist/assets/cesium/Workers/{chunk-HARLBUOL.js → chunk-YFYPR4MW.js} +11 -8
- package/dist/assets/cesium/Workers/combineGeometry.js +22 -23
- package/dist/assets/cesium/Workers/createBoxGeometry.js +16 -17
- package/dist/assets/cesium/Workers/createBoxOutlineGeometry.js +14 -15
- package/dist/assets/cesium/Workers/createCircleGeometry.js +29 -26
- package/dist/assets/cesium/Workers/createCircleOutlineGeometry.js +17 -18
- package/dist/assets/cesium/Workers/createCoplanarPolygonGeometry.js +35 -36
- package/dist/assets/cesium/Workers/createCoplanarPolygonOutlineGeometry.js +29 -30
- package/dist/assets/cesium/Workers/createCorridorGeometry.js +29 -30
- package/dist/assets/cesium/Workers/createCorridorOutlineGeometry.js +27 -28
- package/dist/assets/cesium/Workers/createCylinderGeometry.js +18 -19
- package/dist/assets/cesium/Workers/createCylinderOutlineGeometry.js +17 -19
- package/dist/assets/cesium/Workers/createEllipseGeometry.js +24 -25
- package/dist/assets/cesium/Workers/createEllipseOutlineGeometry.js +17 -18
- package/dist/assets/cesium/Workers/createEllipsoidGeometry.js +17 -18
- package/dist/assets/cesium/Workers/createEllipsoidOutlineGeometry.js +16 -17
- package/dist/assets/cesium/Workers/createFrustumGeometry.js +16 -17
- package/dist/assets/cesium/Workers/createFrustumOutlineGeometry.js +18 -18
- package/dist/assets/cesium/Workers/createGeometry.js +52 -33
- package/dist/assets/cesium/Workers/createGroundPolylineGeometry.js +28 -29
- package/dist/assets/cesium/Workers/createPlaneGeometry.js +14 -15
- package/dist/assets/cesium/Workers/createPlaneOutlineGeometry.js +13 -14
- package/dist/assets/cesium/Workers/createPolygonGeometry.js +451 -176
- package/dist/assets/cesium/Workers/createPolygonOutlineGeometry.js +29 -30
- package/dist/assets/cesium/Workers/createPolylineGeometry.js +24 -25
- package/dist/assets/cesium/Workers/createPolylineVolumeGeometry.js +31 -33
- package/dist/assets/cesium/Workers/createPolylineVolumeOutlineGeometry.js +27 -29
- package/dist/assets/cesium/Workers/createRectangleGeometry.js +30 -31
- package/dist/assets/cesium/Workers/createRectangleOutlineGeometry.js +21 -24
- package/dist/assets/cesium/Workers/createSimplePolylineGeometry.js +22 -23
- package/dist/assets/cesium/Workers/createSphereGeometry.js +17 -18
- package/dist/assets/cesium/Workers/createSphereOutlineGeometry.js +16 -17
- package/dist/assets/cesium/Workers/createTaskProcessorWorker.js +3 -3
- package/dist/assets/cesium/Workers/createVectorTileClampedPolylines.js +14 -16
- package/dist/assets/cesium/Workers/createVectorTileGeometries.js +22 -23
- package/dist/assets/cesium/Workers/createVectorTilePoints.js +12 -12
- package/dist/assets/cesium/Workers/createVectorTilePolygons.js +20 -21
- package/dist/assets/cesium/Workers/createVectorTilePolylines.js +14 -16
- package/dist/assets/cesium/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +24 -25
- package/dist/assets/cesium/Workers/createVerticesFromHeightmap.js +25 -26
- package/dist/assets/cesium/Workers/createVerticesFromQuantizedTerrainMesh.js +19 -21
- package/dist/assets/cesium/Workers/createWallGeometry.js +23 -24
- package/dist/assets/cesium/Workers/createWallOutlineGeometry.js +22 -23
- package/dist/assets/cesium/Workers/decodeDraco.js +11 -11
- package/dist/assets/cesium/Workers/decodeGoogleEarthEnterprisePacket.js +12 -19
- package/dist/assets/cesium/Workers/decodeI3S.js +600 -92
- package/dist/assets/cesium/Workers/transcodeKTX2.js +46 -82
- package/dist/assets/cesium/Workers/transferTypedArrayTest.js +1 -1
- package/dist/assets/cesium/Workers/upsampleQuantizedTerrainMesh.js +21 -22
- package/dist/assets/{cesium.6b12b4.js → cesium.0b750d.js} +151166 -145641
- package/dist/assets/cesium.js +1 -1
- package/dist/assets/{core.074b78.js → core.cbf44a.js} +1944 -1902
- package/dist/assets/core.js +1 -1
- package/dist/assets/index-8eGauqjA.js +1 -0
- package/dist/assets/ol.js +1 -1
- package/dist/assets/ui.7c276c.css +1 -0
- package/dist/assets/{ui.715986.js → ui.7c276c.js} +13826 -12887
- package/dist/assets/ui.js +1 -1
- package/dist/assets/vue.js +1 -1
- package/dist/assets/{vuetify.28d881.js → vuetify.4d18fe.js} +1 -1
- package/dist/assets/vuetify.js +1 -1
- package/dist/index.html +1 -1
- package/index.d.ts +2 -0
- package/index.js +1 -0
- package/package.json +7 -6
- package/plugins/@vcmap-show-case/list-example/src/ListExample.vue +24 -86
- package/plugins/@vcmap-show-case/vector-properties-example/src/VectorPropertiesExample.vue +35 -10
- package/plugins/@vcmap-show-case/wizard-example/src/WizardExample.vue +40 -54
- package/src/application/VcsApp.vue +1 -2
- package/src/application/VcsCustomScreen.vue +4 -4
- package/src/application/VcsCustomScreen.vue.d.ts +1 -1
- package/src/application/VcsNavbar.vue.d.ts +1 -1
- package/src/application/VcsSplashScreen.vue +18 -21
- package/src/application/VcsSplashScreen.vue.d.ts +5 -5
- package/src/application/VcsTextPage.vue +4 -4
- package/src/application/VcsTextPage.vue.d.ts +1 -1
- package/src/application/markdownHelper.js +2 -17
- package/src/components/buttons/VcsButton.vue +1 -1
- package/src/components/buttons/VcsButton.vue.d.ts +3 -3
- package/src/components/buttons/VcsFormButton.vue +1 -1
- package/src/components/buttons/VcsFormButton.vue.d.ts +2 -2
- package/src/components/buttons/VcsToolButton.vue +1 -1
- package/src/components/buttons/VcsToolButton.vue.d.ts +4 -4
- package/src/components/composables.d.ts +7 -0
- package/src/components/composables.js +35 -1
- package/src/components/form-inputs-controls/VcsCheckbox.vue +12 -8
- package/src/components/form-inputs-controls/VcsCheckbox.vue.d.ts +1 -0
- package/src/components/form-inputs-controls/VcsChipArrayInput.vue +1 -1
- package/src/components/form-inputs-controls/VcsDatePicker.vue.d.ts +1 -1
- package/src/components/form-inputs-controls/VcsFileInput.vue +2 -2
- package/src/components/form-inputs-controls/VcsFormSection.vue.d.ts +1 -1
- package/src/components/form-inputs-controls/VcsLabel.vue +31 -1
- package/src/components/form-inputs-controls/VcsLabel.vue.d.ts +21 -1
- package/src/components/form-inputs-controls/VcsRadio.vue +2 -2
- package/src/components/form-inputs-controls/VcsSelect.vue +7 -16
- package/src/components/form-inputs-controls/VcsSelect.vue.d.ts +2 -2
- package/src/components/form-inputs-controls/VcsSlider.vue +36 -10
- package/src/components/form-inputs-controls/VcsSlider.vue.d.ts +25 -2
- package/src/components/form-inputs-controls/VcsTextArea.vue +35 -20
- package/src/components/form-inputs-controls/VcsTextField.vue +17 -12
- package/src/components/form-inputs-controls/VcsTextField.vue.d.ts +1 -0
- package/src/components/form-inputs-controls/VcsWizard.vue +89 -112
- package/src/components/form-inputs-controls/VcsWizard.vue.d.ts +3 -13
- package/src/components/form-inputs-controls/VcsWizardStep.vue +75 -57
- package/src/components/form-inputs-controls/VcsWizardStep.vue.d.ts +24 -11
- package/src/components/form-inputs-controls/vcsTextField.scss +5 -0
- package/src/components/form-output/VcsFormattedNumber.vue +25 -9
- package/src/components/form-output/VcsFormattedNumber.vue.d.ts +18 -0
- package/src/components/form-output/VcsMarkdown.vue +53 -0
- package/src/components/form-output/VcsMarkdown.vue.d.ts +16 -0
- package/src/components/lists/VcsActionList.vue +43 -27
- package/src/components/lists/VcsActionList.vue.d.ts +3 -1
- package/src/components/lists/VcsList.vue +82 -151
- package/src/components/lists/VcsList.vue.d.ts +5 -8
- package/src/components/lists/VcsListItem.vue +154 -0
- package/src/components/lists/VcsListItem.vue.d.ts +21 -0
- package/src/components/lists/VcsTreeviewLeaf.vue +1 -1
- package/src/components/modelHelper.d.ts +11 -0
- package/src/components/modelHelper.js +42 -2
- package/src/components/vector-properties/VcsFeatureEditingWindow.vue +14 -6
- package/src/components/vector-properties/VcsFeatureEditingWindow.vue.d.ts +3 -3
- package/src/components/vector-properties/VcsVectorPropertiesComponent.vue +474 -585
- package/src/components/vector-properties/VcsVectorPropertiesComponent.vue.d.ts +193 -22
- package/src/manager/window/windowManager.d.ts +4 -4
- package/src/manager/window/windowManager.js +2 -2
- package/src/navigation/MapNavigation.vue +6 -3
- package/src/navigation/OrientationToolsButton.vue +39 -26
- package/src/navigation/OrientationToolsButton.vue.d.ts +5 -1
- package/src/navigation/TiltSlider.vue +83 -88
- package/src/navigation/TiltSlider.vue.d.ts +10 -7
- package/src/navigation/VcsCompass.vue +17 -11
- package/src/navigation/VcsCompass.vue.d.ts +2 -0
- package/src/styles/_typography.scss +1 -0
- package/src/vcsUiApp.d.ts +11 -17
- package/src/vcsUiApp.js +10 -3
- package/src/vuePlugins/i18n.js +7 -0
- package/src/vuePlugins/vuetify.js +4 -0
- package/dist/assets/cesium/Workers/chunk-DUHWWBQQ.js +0 -3273
- package/dist/assets/cesium/Workers/chunk-QJ3DFBH3.js +0 -73
- package/dist/assets/index-ca7EmZ3d.js +0 -1
- package/dist/assets/ui.715986.css +0 -1
- package/src/components/vector-properties/composables.d.ts +0 -33
- package/src/components/vector-properties/composables.js +0 -100
- /package/dist/assets/{ol.8b2e3a.js → ol.86e93c.js} +0 -0
- /package/dist/assets/{vue.0f2c53.js → vue.a3cd64.js} +0 -0
- /package/dist/assets/{vuetify.28d881.css → vuetify.4d18fe.css} +0 -0
@@ -1,3 +1,5 @@
|
|
1
|
+
/// <reference types="@vcmap-cesium/engine" />
|
2
|
+
/// <reference types="@vcmap/core/dist/cesium.js" />
|
1
3
|
export const genericVectorProperties: string[];
|
2
4
|
export const pointVectorProperties: string[];
|
3
5
|
export const nonPointVectorProperties: string[];
|
@@ -8,7 +10,7 @@ export const dimensionsUpperCase: string[];
|
|
8
10
|
declare const _default: import("vue").DefineComponent<{
|
9
11
|
modelValue: {
|
10
12
|
type: ObjectConstructor;
|
11
|
-
default: () =>
|
13
|
+
default: () => import("@vcmap/core", { with: { "resolution-mode": "import" } }).VectorPropertiesOptions;
|
12
14
|
};
|
13
15
|
valueDefault: {
|
14
16
|
type: ObjectConstructor;
|
@@ -39,6 +41,183 @@ declare const _default: import("vue").DefineComponent<{
|
|
39
41
|
default: boolean;
|
40
42
|
};
|
41
43
|
}, {
|
44
|
+
localValue: import("vue").Ref<{
|
45
|
+
readonly propertyChanged: {
|
46
|
+
readonly numberOfListeners: number;
|
47
|
+
addEventListener: (listener: (event: import("@vcmap/core/dist/src/layer/vectorProperties.js", { with: { "resolution-mode": "import" } }).PropertyChangedKey[]) => void | Promise<void>) => () => void;
|
48
|
+
removeEventListener: (listener: (event: import("@vcmap/core/dist/src/layer/vectorProperties.js", { with: { "resolution-mode": "import" } }).PropertyChangedKey[]) => void | Promise<void>) => boolean;
|
49
|
+
raiseEvent: (event: import("@vcmap/core/dist/src/layer/vectorProperties.js", { with: { "resolution-mode": "import" } }).PropertyChangedKey[]) => void;
|
50
|
+
awaitRaisedEvent: (event: import("@vcmap/core/dist/src/layer/vectorProperties.js", { with: { "resolution-mode": "import" } }).PropertyChangedKey[]) => Promise<void>;
|
51
|
+
destroy: () => void;
|
52
|
+
};
|
53
|
+
altitudeMode: import("@vcmap-cesium/engine", { with: { "resolution-mode": "import" } }).HeightReference;
|
54
|
+
getAltitudeMode: (feature: import("ol/Feature.js", { with: { "resolution-mode": "import" } }).default<import("ol/geom.js", { with: { "resolution-mode": "import" } }).Geometry>) => import("@vcmap-cesium/engine", { with: { "resolution-mode": "import" } }).HeightReference;
|
55
|
+
allowPicking: boolean;
|
56
|
+
getAllowPicking: (feature: import("ol/Feature.js", { with: { "resolution-mode": "import" } }).default<import("ol/geom.js", { with: { "resolution-mode": "import" } }).Geometry>) => boolean;
|
57
|
+
classificationType: import("@vcmap-cesium/engine", { with: { "resolution-mode": "import" } }).ClassificationType | undefined;
|
58
|
+
getClassificationType: (feature: import("ol/Feature.js", { with: { "resolution-mode": "import" } }).default<import("ol/geom.js", { with: { "resolution-mode": "import" } }).Geometry>) => import("@vcmap-cesium/engine", { with: { "resolution-mode": "import" } }).ClassificationType | undefined;
|
59
|
+
scaleByDistance: {
|
60
|
+
near: number;
|
61
|
+
nearValue: number;
|
62
|
+
far: number;
|
63
|
+
farValue: number;
|
64
|
+
clone: (result?: import("@vcmap-cesium/engine", { with: { "resolution-mode": "import" } }).NearFarScalar | undefined) => import("@vcmap-cesium/engine", { with: { "resolution-mode": "import" } }).NearFarScalar;
|
65
|
+
equals: (right?: import("@vcmap-cesium/engine", { with: { "resolution-mode": "import" } }).NearFarScalar | undefined) => boolean;
|
66
|
+
} | undefined;
|
67
|
+
getScaleByDistance: (feature: import("ol/Feature.js", { with: { "resolution-mode": "import" } }).default<import("ol/geom.js", { with: { "resolution-mode": "import" } }).Geometry>) => import("@vcmap-cesium/engine", { with: { "resolution-mode": "import" } }).NearFarScalar | undefined;
|
68
|
+
eyeOffset: {
|
69
|
+
x: number;
|
70
|
+
y: number;
|
71
|
+
z: number;
|
72
|
+
clone: (result?: import("@vcmap-cesium/engine", { with: { "resolution-mode": "import" } }).Cartesian3 | undefined) => import("@vcmap-cesium/engine", { with: { "resolution-mode": "import" } }).Cartesian3;
|
73
|
+
equals: (right?: import("@vcmap-cesium/engine", { with: { "resolution-mode": "import" } }).Cartesian3 | undefined) => boolean;
|
74
|
+
equalsEpsilon: (right?: import("@vcmap-cesium/engine", { with: { "resolution-mode": "import" } }).Cartesian3 | undefined, relativeEpsilon?: number | undefined, absoluteEpsilon?: number | undefined) => boolean;
|
75
|
+
toString: () => string;
|
76
|
+
} | undefined;
|
77
|
+
getEyeOffset: (feature: import("ol/Feature.js", { with: { "resolution-mode": "import" } }).default<import("ol/geom.js", { with: { "resolution-mode": "import" } }).Geometry>) => import("@vcmap-cesium/engine", { with: { "resolution-mode": "import" } }).Cartesian3 | undefined;
|
78
|
+
heightAboveGround: number;
|
79
|
+
getHeightAboveGround: (feature: import("ol/Feature.js", { with: { "resolution-mode": "import" } }).default<import("ol/geom.js", { with: { "resolution-mode": "import" } }).Geometry>) => number;
|
80
|
+
skirt: number;
|
81
|
+
getSkirt: (feature: import("ol/Feature.js", { with: { "resolution-mode": "import" } }).default<import("ol/geom.js", { with: { "resolution-mode": "import" } }).Geometry>) => number;
|
82
|
+
groundLevel: number | undefined;
|
83
|
+
getGroundLevel: (feature: import("ol/Feature.js", { with: { "resolution-mode": "import" } }).default<import("ol/geom.js", { with: { "resolution-mode": "import" } }).Geometry>) => number | undefined;
|
84
|
+
extrudedHeight: number;
|
85
|
+
getExtrudedHeight: (feature: import("ol/Feature.js", { with: { "resolution-mode": "import" } }).default<import("ol/geom.js", { with: { "resolution-mode": "import" } }).Geometry>) => number;
|
86
|
+
storeysAboveGround: number;
|
87
|
+
getStoreysAboveGround: (feature: import("ol/Feature.js", { with: { "resolution-mode": "import" } }).default<import("ol/geom.js", { with: { "resolution-mode": "import" } }).Geometry>) => number;
|
88
|
+
storeysBelowGround: number;
|
89
|
+
getStoreysBelowGround: (feature: import("ol/Feature.js", { with: { "resolution-mode": "import" } }).default<import("ol/geom.js", { with: { "resolution-mode": "import" } }).Geometry>) => number;
|
90
|
+
storeyHeightsAboveGround: number[];
|
91
|
+
getStoreyHeightsAboveGround: (feature: import("ol/Feature.js", { with: { "resolution-mode": "import" } }).default<import("ol/geom.js", { with: { "resolution-mode": "import" } }).Geometry>) => number[];
|
92
|
+
storeyHeightsBelowGround: number[];
|
93
|
+
getStoreyHeightsBelowGround: (feature: import("ol/Feature.js", { with: { "resolution-mode": "import" } }).default<import("ol/geom.js", { with: { "resolution-mode": "import" } }).Geometry>) => number[];
|
94
|
+
modelUrl: string | undefined;
|
95
|
+
getModelUrl: (feature: import("ol/Feature.js", { with: { "resolution-mode": "import" } }).default<import("ol/geom.js", { with: { "resolution-mode": "import" } }).Geometry>) => string | undefined;
|
96
|
+
modelScaleX: number;
|
97
|
+
getModelScaleX: (feature: import("ol/Feature.js", { with: { "resolution-mode": "import" } }).default<import("ol/geom.js", { with: { "resolution-mode": "import" } }).Geometry>) => number;
|
98
|
+
modelScaleY: number;
|
99
|
+
getModelScaleY: (feature: import("ol/Feature.js", { with: { "resolution-mode": "import" } }).default<import("ol/geom.js", { with: { "resolution-mode": "import" } }).Geometry>) => number;
|
100
|
+
modelScaleZ: number;
|
101
|
+
getModelScaleZ: (feature: import("ol/Feature.js", { with: { "resolution-mode": "import" } }).default<import("ol/geom.js", { with: { "resolution-mode": "import" } }).Geometry>) => number;
|
102
|
+
modelHeading: number;
|
103
|
+
getModelHeading: (feature: import("ol/Feature.js", { with: { "resolution-mode": "import" } }).default<import("ol/geom.js", { with: { "resolution-mode": "import" } }).Geometry>) => number;
|
104
|
+
modelPitch: number;
|
105
|
+
getModelPitch: (feature: import("ol/Feature.js", { with: { "resolution-mode": "import" } }).default<import("ol/geom.js", { with: { "resolution-mode": "import" } }).Geometry>) => number;
|
106
|
+
modelRoll: number;
|
107
|
+
getModelRoll: (feature: import("ol/Feature.js", { with: { "resolution-mode": "import" } }).default<import("ol/geom.js", { with: { "resolution-mode": "import" } }).Geometry>) => number;
|
108
|
+
modelOptions: Record<string, unknown> | undefined;
|
109
|
+
getModelOptions: (feature: import("ol/Feature.js", { with: { "resolution-mode": "import" } }).default<import("ol/geom.js", { with: { "resolution-mode": "import" } }).Geometry>) => Record<string, unknown>;
|
110
|
+
modelAutoScale: boolean;
|
111
|
+
getModelAutoScale: (feature: import("ol/Feature.js", { with: { "resolution-mode": "import" } }).default<import("ol/geom.js", { with: { "resolution-mode": "import" } }).Geometry>) => boolean;
|
112
|
+
baseUrl: string | undefined;
|
113
|
+
getBaseUrl: (feature: import("ol/Feature.js", { with: { "resolution-mode": "import" } }).default<import("ol/geom.js", { with: { "resolution-mode": "import" } }).Geometry>) => string | undefined;
|
114
|
+
primitiveOptions: {
|
115
|
+
type: import("@vcmap/core", { with: { "resolution-mode": "import" } }).PrimitiveOptionsType;
|
116
|
+
geometryOptions: {
|
117
|
+
length: number;
|
118
|
+
topRadius: number;
|
119
|
+
bottomRadius: number;
|
120
|
+
slices?: number | undefined;
|
121
|
+
vertexFormat?: {
|
122
|
+
position: boolean;
|
123
|
+
normal: boolean;
|
124
|
+
st: boolean;
|
125
|
+
bitangent: boolean;
|
126
|
+
tangent: boolean;
|
127
|
+
color: boolean;
|
128
|
+
} | undefined;
|
129
|
+
} | {
|
130
|
+
radius?: number | undefined;
|
131
|
+
stackPartitions?: number | undefined;
|
132
|
+
slicePartitions?: number | undefined;
|
133
|
+
vertexFormat?: {
|
134
|
+
position: boolean;
|
135
|
+
normal: boolean;
|
136
|
+
st: boolean;
|
137
|
+
bitangent: boolean;
|
138
|
+
tangent: boolean;
|
139
|
+
color: boolean;
|
140
|
+
} | undefined;
|
141
|
+
} | {
|
142
|
+
radii?: {
|
143
|
+
x: number;
|
144
|
+
y: number;
|
145
|
+
z: number;
|
146
|
+
clone: (result?: import("@vcmap-cesium/engine", { with: { "resolution-mode": "import" } }).Cartesian3 | undefined) => import("@vcmap-cesium/engine", { with: { "resolution-mode": "import" } }).Cartesian3;
|
147
|
+
equals: (right?: import("@vcmap-cesium/engine", { with: { "resolution-mode": "import" } }).Cartesian3 | undefined) => boolean;
|
148
|
+
equalsEpsilon: (right?: import("@vcmap-cesium/engine", { with: { "resolution-mode": "import" } }).Cartesian3 | undefined, relativeEpsilon?: number | undefined, absoluteEpsilon?: number | undefined) => boolean;
|
149
|
+
toString: () => string;
|
150
|
+
} | undefined;
|
151
|
+
innerRadii?: {
|
152
|
+
x: number;
|
153
|
+
y: number;
|
154
|
+
z: number;
|
155
|
+
clone: (result?: import("@vcmap-cesium/engine", { with: { "resolution-mode": "import" } }).Cartesian3 | undefined) => import("@vcmap-cesium/engine", { with: { "resolution-mode": "import" } }).Cartesian3;
|
156
|
+
equals: (right?: import("@vcmap-cesium/engine", { with: { "resolution-mode": "import" } }).Cartesian3 | undefined) => boolean;
|
157
|
+
equalsEpsilon: (right?: import("@vcmap-cesium/engine", { with: { "resolution-mode": "import" } }).Cartesian3 | undefined, relativeEpsilon?: number | undefined, absoluteEpsilon?: number | undefined) => boolean;
|
158
|
+
toString: () => string;
|
159
|
+
} | undefined;
|
160
|
+
minimumClock?: number | undefined;
|
161
|
+
maximumClock?: number | undefined;
|
162
|
+
minimumCone?: number | undefined;
|
163
|
+
maximumCone?: number | undefined;
|
164
|
+
stackPartitions?: number | undefined;
|
165
|
+
slicePartitions?: number | undefined;
|
166
|
+
vertexFormat?: {
|
167
|
+
position: boolean;
|
168
|
+
normal: boolean;
|
169
|
+
st: boolean;
|
170
|
+
bitangent: boolean;
|
171
|
+
tangent: boolean;
|
172
|
+
color: boolean;
|
173
|
+
} | undefined;
|
174
|
+
} | {
|
175
|
+
minimum: {
|
176
|
+
x: number;
|
177
|
+
y: number;
|
178
|
+
z: number;
|
179
|
+
clone: (result?: import("@vcmap-cesium/engine", { with: { "resolution-mode": "import" } }).Cartesian3 | undefined) => import("@vcmap-cesium/engine", { with: { "resolution-mode": "import" } }).Cartesian3;
|
180
|
+
equals: (right?: import("@vcmap-cesium/engine", { with: { "resolution-mode": "import" } }).Cartesian3 | undefined) => boolean;
|
181
|
+
equalsEpsilon: (right?: import("@vcmap-cesium/engine", { with: { "resolution-mode": "import" } }).Cartesian3 | undefined, relativeEpsilon?: number | undefined, absoluteEpsilon?: number | undefined) => boolean;
|
182
|
+
toString: () => string;
|
183
|
+
};
|
184
|
+
maximum: {
|
185
|
+
x: number;
|
186
|
+
y: number;
|
187
|
+
z: number;
|
188
|
+
clone: (result?: import("@vcmap-cesium/engine", { with: { "resolution-mode": "import" } }).Cartesian3 | undefined) => import("@vcmap-cesium/engine", { with: { "resolution-mode": "import" } }).Cartesian3;
|
189
|
+
equals: (right?: import("@vcmap-cesium/engine", { with: { "resolution-mode": "import" } }).Cartesian3 | undefined) => boolean;
|
190
|
+
equalsEpsilon: (right?: import("@vcmap-cesium/engine", { with: { "resolution-mode": "import" } }).Cartesian3 | undefined, relativeEpsilon?: number | undefined, absoluteEpsilon?: number | undefined) => boolean;
|
191
|
+
toString: () => string;
|
192
|
+
};
|
193
|
+
vertexFormat?: {
|
194
|
+
position: boolean;
|
195
|
+
normal: boolean;
|
196
|
+
st: boolean;
|
197
|
+
bitangent: boolean;
|
198
|
+
tangent: boolean;
|
199
|
+
color: boolean;
|
200
|
+
} | undefined;
|
201
|
+
} | undefined;
|
202
|
+
depthFailColor?: string | number[] | {
|
203
|
+
setTransform: (transform?: DOMMatrix2DInit | undefined) => void;
|
204
|
+
} | {
|
205
|
+
addColorStop: (offset: number, color: string) => void;
|
206
|
+
} | undefined;
|
207
|
+
offset?: number[] | undefined;
|
208
|
+
additionalOptions?: Record<string, unknown> | undefined;
|
209
|
+
} | undefined;
|
210
|
+
getPrimitiveOptions: (feature: import("ol/Feature.js", { with: { "resolution-mode": "import" } }).default<import("ol/geom.js", { with: { "resolution-mode": "import" } }).Geometry>) => import("@vcmap/core", { with: { "resolution-mode": "import" } }).VectorPropertiesPrimitiveOptions<import("@vcmap/core", { with: { "resolution-mode": "import" } }).PrimitiveOptionsType> | undefined;
|
211
|
+
getPrimitive: (feature: import("ol/Feature.js", { with: { "resolution-mode": "import" } }).default<import("ol/geom.js", { with: { "resolution-mode": "import" } }).Geometry>) => import("@vcmap/core", { with: { "resolution-mode": "import" } }).VectorPropertiesPrimitive | null;
|
212
|
+
getModel: (feature: import("ol/Feature.js", { with: { "resolution-mode": "import" } }).default<import("ol/geom.js", { with: { "resolution-mode": "import" } }).Geometry>) => import("@vcmap/core", { with: { "resolution-mode": "import" } }).VectorPropertiesModelOptions | null;
|
213
|
+
setVcsMeta: (vcsMeta: import("@vcmap/core", { with: { "resolution-mode": "import" } }).VcsMeta) => void;
|
214
|
+
setValues: (options: import("@vcmap/core", { with: { "resolution-mode": "import" } }).VectorPropertiesOptions) => void;
|
215
|
+
getValues: () => import("@vcmap/core", { with: { "resolution-mode": "import" } }).VectorPropertiesOptions;
|
216
|
+
getValuesForFeatures: (features: import("ol/Feature.js", { with: { "resolution-mode": "import" } }).default<import("ol/geom.js", { with: { "resolution-mode": "import" } }).Geometry>[]) => import("@vcmap/core", { with: { "resolution-mode": "import" } }).VectorPropertiesOptions;
|
217
|
+
setValuesForFeatures: (options: import("@vcmap/core", { with: { "resolution-mode": "import" } }).VectorPropertiesOptions, features: import("ol/Feature.js", { with: { "resolution-mode": "import" } }).default<import("ol/geom.js", { with: { "resolution-mode": "import" } }).Geometry>[]) => void;
|
218
|
+
getVcsMeta: (defaultOptions?: import("@vcmap/core", { with: { "resolution-mode": "import" } }).VectorPropertiesOptions | undefined) => Omit<import("@vcmap/core", { with: { "resolution-mode": "import" } }).VcsMeta, "version">;
|
219
|
+
destroy: () => void;
|
220
|
+
}>;
|
42
221
|
headerActions: import("vue").ComputedRef<{
|
43
222
|
name: string;
|
44
223
|
title: string;
|
@@ -46,38 +225,28 @@ declare const _default: import("vue").DefineComponent<{
|
|
46
225
|
callback: () => void;
|
47
226
|
}[]>;
|
48
227
|
visibleProperties: import("vue").ComputedRef<Set<unknown>>;
|
49
|
-
altitudeMode: import("vue").WritableComputedRef<any>;
|
50
228
|
availableAltitudeModes: import("vue").ComputedRef<{
|
51
229
|
value: string;
|
52
|
-
|
230
|
+
title: string;
|
53
231
|
}[]>;
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
232
|
+
availableClassificationTypes: {
|
233
|
+
value: string;
|
234
|
+
title: string;
|
235
|
+
}[];
|
236
|
+
classificationType: import("vue").WritableComputedRef<"none" | import("@vcmap-cesium/engine", { with: { "resolution-mode": "import" } }).ClassificationType.CESIUM_3D_TILE | import("@vcmap-cesium/engine", { with: { "resolution-mode": "import" } }).ClassificationType.BOTH | undefined>;
|
58
237
|
hasScaleByDistance: import("vue").WritableComputedRef<boolean>;
|
59
238
|
scaleByDistanceDefault: number[];
|
60
|
-
eyeOffset: import("vue").WritableComputedRef<any>[];
|
61
239
|
hasEyeOffset: import("vue").WritableComputedRef<boolean>;
|
62
240
|
eyeOffsetDefault: number[];
|
63
|
-
groundLevel: import("vue").WritableComputedRef<any>;
|
64
|
-
extrudedHeight: import("vue").WritableComputedRef<any>;
|
65
|
-
skirt: import("vue").WritableComputedRef<any>;
|
66
|
-
storeysAboveGround: import("vue").WritableComputedRef<any>;
|
67
|
-
storeysBelowGround: import("vue").WritableComputedRef<any>;
|
68
241
|
storeyHeights: import("vue").ComputedRef<{}>;
|
69
|
-
modelUrl: import("vue").WritableComputedRef<any>;
|
70
242
|
modelScale: import("vue").ComputedRef<{}>;
|
71
|
-
modelHeading: import("vue").WritableComputedRef<any>;
|
72
|
-
modelPitch: import("vue").WritableComputedRef<any>;
|
73
|
-
modelRoll: import("vue").WritableComputedRef<any>;
|
74
|
-
baseUrl: import("vue").WritableComputedRef<any>;
|
75
|
-
reset: () => void;
|
76
243
|
dimensionsUpperCase: string[];
|
77
|
-
}, any, {}, {
|
244
|
+
}, any, {}, {
|
245
|
+
computed: typeof import("@vue/reactivity").computed;
|
246
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
78
247
|
modelValue: {
|
79
248
|
type: ObjectConstructor;
|
80
|
-
default: () =>
|
249
|
+
default: () => import("@vcmap/core", { with: { "resolution-mode": "import" } }).VectorPropertiesOptions;
|
81
250
|
};
|
82
251
|
valueDefault: {
|
83
252
|
type: ObjectConstructor;
|
@@ -107,7 +276,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
107
276
|
type: BooleanConstructor;
|
108
277
|
default: boolean;
|
109
278
|
};
|
110
|
-
}
|
279
|
+
}>> & {
|
280
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
281
|
+
}, {
|
111
282
|
modelValue: Record<string, any>;
|
112
283
|
properties: unknown[];
|
113
284
|
expandable: boolean;
|
@@ -14,7 +14,7 @@ export function isSlotPosition(windowPosition: WindowPosition): boolean;
|
|
14
14
|
/**
|
15
15
|
* @typedef {{
|
16
16
|
* id?: string,
|
17
|
-
*
|
17
|
+
* parentId?: string,
|
18
18
|
* component: import("vue").Component<T, unknown, unknown>,
|
19
19
|
* headerComponent?: import("vue").Component<T, unknown, unknown>,
|
20
20
|
* state? : Partial<WindowState>,
|
@@ -53,7 +53,7 @@ export function isSlotPosition(windowPosition: WindowPosition): boolean;
|
|
53
53
|
/**
|
54
54
|
* @typedef {{
|
55
55
|
* id: string,
|
56
|
-
*
|
56
|
+
* parentId?: string,
|
57
57
|
* component: import("vue").Component<T, unknown, unknown>,
|
58
58
|
* headerComponent?: import("vue").Component<T, unknown, unknown>,
|
59
59
|
* state : Partial<WindowState>,
|
@@ -131,7 +131,7 @@ export namespace WindowPositions {
|
|
131
131
|
export default WindowManager;
|
132
132
|
export type WindowComponentOptions<T extends Object = Object> = {
|
133
133
|
id?: string;
|
134
|
-
|
134
|
+
parentId?: string;
|
135
135
|
component: import("vue").Component<T, unknown, unknown>;
|
136
136
|
headerComponent?: import("vue").Component<T, unknown, unknown>;
|
137
137
|
state?: Partial<WindowState>;
|
@@ -188,7 +188,7 @@ export type WindowState = {
|
|
188
188
|
};
|
189
189
|
export type WindowComponent<T extends Object = Object> = {
|
190
190
|
id: string;
|
191
|
-
|
191
|
+
parentId?: string;
|
192
192
|
component: import("vue").Component<T, unknown, unknown>;
|
193
193
|
headerComponent?: import("vue").Component<T, unknown, unknown>;
|
194
194
|
state: Partial<WindowState>;
|
@@ -104,7 +104,7 @@ export function isSlotPosition(windowPosition) {
|
|
104
104
|
/**
|
105
105
|
* @typedef {{
|
106
106
|
* id?: string,
|
107
|
-
*
|
107
|
+
* parentId?: string,
|
108
108
|
* component: import("vue").Component<T, unknown, unknown>,
|
109
109
|
* headerComponent?: import("vue").Component<T, unknown, unknown>,
|
110
110
|
* state? : Partial<WindowState>,
|
@@ -145,7 +145,7 @@ export function isSlotPosition(windowPosition) {
|
|
145
145
|
/**
|
146
146
|
* @typedef {{
|
147
147
|
* id: string,
|
148
|
-
*
|
148
|
+
* parentId?: string,
|
149
149
|
* component: import("vue").Component<T, unknown, unknown>,
|
150
150
|
* headerComponent?: import("vue").Component<T, unknown, unknown>,
|
151
151
|
* state : Partial<WindowState>,
|
@@ -335,9 +335,12 @@
|
|
335
335
|
<style lang="scss" scoped>
|
336
336
|
.nav-container {
|
337
337
|
position: absolute;
|
338
|
-
right:
|
339
|
-
|
338
|
+
right: 26px;
|
339
|
+
// right: 26px --> the 2rem were 26px in the old map, now 32px ?Important?
|
340
|
+
bottom: 13px;
|
341
|
+
// bottom: 13px --> the 1rem were 13px in the old map, now 16px ?Important?
|
340
342
|
width: unset;
|
343
|
+
padding: 12px;
|
341
344
|
&.mobile {
|
342
345
|
top: 1rem;
|
343
346
|
right: 1rem;
|
@@ -345,7 +348,7 @@
|
|
345
348
|
}
|
346
349
|
}
|
347
350
|
.nav-container > {
|
348
|
-
.row {
|
351
|
+
.v-row {
|
349
352
|
margin-top: 15px;
|
350
353
|
margin-bottom: 0;
|
351
354
|
}
|
@@ -1,31 +1,24 @@
|
|
1
1
|
<template>
|
2
|
-
<
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
2
|
+
<v-card
|
3
|
+
class="d-flex align-center justify-center text-center btn-orientation-tools"
|
4
|
+
v-bind="{ ...$attrs }"
|
5
|
+
:height="height"
|
6
|
+
:width="width"
|
7
|
+
>
|
8
|
+
<v-icon :size="iconSize">{{ icon }}</v-icon>
|
9
|
+
<v-tooltip
|
10
|
+
v-if="tooltip"
|
11
|
+
activator="parent"
|
12
|
+
:location="tooltipPosition"
|
13
|
+
:text="$st(tooltip)"
|
14
|
+
></v-tooltip>
|
15
|
+
</v-card>
|
12
16
|
</template>
|
13
|
-
<style lang="scss" scoped>
|
14
|
-
.btn-orientation-tools {
|
15
|
-
&:before {
|
16
|
-
background-color: transparent !important;
|
17
|
-
}
|
18
|
-
}
|
19
|
-
.h-8 {
|
20
|
-
height: 32px;
|
21
|
-
}
|
22
|
-
.w-8 {
|
23
|
-
width: 32px;
|
24
|
-
}
|
25
|
-
</style>
|
17
|
+
<style lang="scss" scoped></style>
|
26
18
|
<script>
|
27
|
-
import { VCard, VIcon } from 'vuetify/components';
|
28
|
-
import
|
19
|
+
import { VCard, VIcon, VTooltip } from 'vuetify/components';
|
20
|
+
import { computed } from 'vue';
|
21
|
+
import { useFontSize } from '../vuePlugins/vuetify.js';
|
29
22
|
|
30
23
|
/**
|
31
24
|
* @description v-card with h & w 8. Requires an icon and binds all attributes & listeners to the v-card
|
@@ -36,9 +29,9 @@
|
|
36
29
|
export default {
|
37
30
|
name: 'OrientationToolsButton',
|
38
31
|
components: {
|
39
|
-
VcsTooltip,
|
40
32
|
VCard,
|
41
33
|
VIcon,
|
34
|
+
VTooltip,
|
42
35
|
},
|
43
36
|
props: {
|
44
37
|
icon: {
|
@@ -54,5 +47,25 @@
|
|
54
47
|
default: 'left',
|
55
48
|
},
|
56
49
|
},
|
50
|
+
setup() {
|
51
|
+
const fontSize = useFontSize();
|
52
|
+
|
53
|
+
const iconSize = computed(() => {
|
54
|
+
return fontSize.value * (1.2 + 0.1 / 3);
|
55
|
+
});
|
56
|
+
const height = computed(() => {
|
57
|
+
return fontSize.value * 2.5;
|
58
|
+
});
|
59
|
+
// 32px
|
60
|
+
const width = computed(() => {
|
61
|
+
return fontSize.value * 2.5;
|
62
|
+
});
|
63
|
+
|
64
|
+
return {
|
65
|
+
iconSize,
|
66
|
+
height,
|
67
|
+
width,
|
68
|
+
};
|
69
|
+
},
|
57
70
|
};
|
58
71
|
</script>
|
@@ -11,7 +11,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
11
11
|
type: StringConstructor;
|
12
12
|
default: string;
|
13
13
|
};
|
14
|
-
},
|
14
|
+
}, {
|
15
|
+
iconSize: import("vue").ComputedRef<number>;
|
16
|
+
height: import("vue").ComputedRef<number>;
|
17
|
+
width: import("vue").ComputedRef<number>;
|
18
|
+
}, any, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
15
19
|
icon: {
|
16
20
|
type: StringConstructor;
|
17
21
|
required: true;
|
@@ -1,89 +1,79 @@
|
|
1
1
|
<template>
|
2
|
-
<
|
3
|
-
:
|
4
|
-
|
2
|
+
<v-card
|
3
|
+
:width="minWidth"
|
4
|
+
:height="minHeight"
|
5
|
+
v-bind="props"
|
6
|
+
:disabled="disabled"
|
5
7
|
>
|
6
|
-
<
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
8
|
+
<v-slider
|
9
|
+
:track-size="trackSize"
|
10
|
+
:tick-size="tickSize"
|
11
|
+
:track-color="'base-lighten-3'"
|
12
|
+
thumb-color="base-darken-4"
|
13
|
+
track-fill-color="'base-darken-4'"
|
14
|
+
:max="0"
|
15
|
+
:min="-90"
|
16
|
+
direction="vertical"
|
17
|
+
hide-details
|
18
|
+
class="vcs-tilt-slider"
|
19
|
+
v-bind="{ ...$attrs }"
|
20
|
+
v-model="localValue"
|
21
|
+
></v-slider>
|
22
|
+
<v-tooltip
|
23
|
+
activator="parent"
|
24
|
+
location="left"
|
25
|
+
:text="$st('navigation.pitchTooltip', [Math.round(localValue)])"
|
26
|
+
></v-tooltip>
|
27
|
+
</v-card>
|
21
28
|
</template>
|
29
|
+
|
22
30
|
<style lang="scss" scoped>
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
31
|
+
.v-slider.v-input--vertical {
|
32
|
+
:deep(.v-slider-track__fill) {
|
33
|
+
width: 2px;
|
34
|
+
}
|
35
|
+
:deep(.v-slider-track__tick--first) {
|
36
|
+
bottom: 0;
|
37
|
+
}
|
38
|
+
:deep(.v-slider-track__tick--last) {
|
39
|
+
bottom: 100%;
|
29
40
|
}
|
30
|
-
|
31
|
-
|
41
|
+
}
|
42
|
+
|
43
|
+
.vcs-tilt-slider {
|
44
|
+
margin-top: 6px;
|
45
|
+
margin-bottom: 10px;
|
46
|
+
:deep(.v-slider-thumb__surface) {
|
32
47
|
border-radius: 3px;
|
33
48
|
width: 16px;
|
34
49
|
height: 4px;
|
35
|
-
|
36
|
-
|
37
|
-
&:before {
|
38
|
-
background-color: transparent;
|
39
|
-
}
|
50
|
+
margin-top: 10px;
|
51
|
+
box-shadow: none !important;
|
40
52
|
}
|
41
53
|
}
|
42
|
-
.v-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
background-color: map-get($shades, 'black') !important;
|
47
|
-
}
|
48
|
-
}
|
49
|
-
.v-slider__thumb {
|
50
|
-
background-color: map-get($shades, 'black') !important;
|
51
|
-
}
|
52
|
-
}
|
53
|
-
}
|
54
|
-
.v-application .theme--dark.vcs-slider {
|
55
|
-
:deep(.v-slider) {
|
56
|
-
.v-slider__track-container {
|
57
|
-
.v-slider__track-fill {
|
58
|
-
background-color: map-get($shades, 'white') !important;
|
59
|
-
}
|
60
|
-
}
|
61
|
-
.v-slider__thumb {
|
62
|
-
background-color: map-get($shades, 'white') !important;
|
63
|
-
}
|
64
|
-
}
|
54
|
+
:deep(.v-slider-thumb__surface::before) {
|
55
|
+
--v-focus-opacity: 0;
|
56
|
+
--v-hover-opacity: 0;
|
57
|
+
--v-pressed-opacity: 0;
|
65
58
|
}
|
66
|
-
|
67
|
-
|
59
|
+
|
60
|
+
.v-input--vertical :deep(.v-input__control) {
|
61
|
+
min-height: calc(var(--v-vcs-font-size) * 4);
|
68
62
|
}
|
69
63
|
</style>
|
64
|
+
|
70
65
|
<script>
|
71
|
-
import {
|
72
|
-
import { VCard, VSlider } from 'vuetify/components';
|
73
|
-
import
|
66
|
+
import { computed, defineComponent } from 'vue';
|
67
|
+
import { VCard, VSlider, VTooltip } from 'vuetify/components';
|
68
|
+
import { useFontSize, useItemHeight } from '../vuePlugins/vuetify.js';
|
69
|
+
import { useProxiedAtomicModel } from '../components/modelHelper.js';
|
74
70
|
|
75
|
-
|
76
|
-
* @description A vertical slider from 0 to -90. pass value with v-model
|
77
|
-
* @vue-prop {number} value
|
78
|
-
* @vue-prop {boolean} disabled - whether tilt slider should be disabled
|
79
|
-
* @vue-event {number} input
|
80
|
-
*/
|
81
|
-
export default {
|
71
|
+
export default defineComponent({
|
82
72
|
name: 'TiltSlider',
|
83
73
|
components: {
|
84
|
-
VcsTooltip,
|
85
74
|
VCard,
|
86
75
|
VSlider,
|
76
|
+
VTooltip,
|
87
77
|
},
|
88
78
|
props: {
|
89
79
|
modelValue: {
|
@@ -96,28 +86,33 @@
|
|
96
86
|
default: false,
|
97
87
|
},
|
98
88
|
},
|
99
|
-
|
89
|
+
setup(props, { emit }) {
|
90
|
+
const itemHeight = useItemHeight();
|
91
|
+
|
92
|
+
const trackSize = computed(() => {
|
93
|
+
return Math.floor(itemHeight.value / 12);
|
94
|
+
});
|
95
|
+
const tickSize = computed(() => {
|
96
|
+
return trackSize.value * 2;
|
97
|
+
});
|
98
|
+
const fontSize = useFontSize();
|
99
|
+
const minWidth = computed(() => {
|
100
|
+
return fontSize.value * 2.5;
|
101
|
+
});
|
102
|
+
const minHeight = computed(() => {
|
103
|
+
return fontSize.value * 5;
|
104
|
+
});
|
105
|
+
|
106
|
+
const localValue = useProxiedAtomicModel(props, 'modelValue', emit);
|
107
|
+
|
100
108
|
return {
|
101
|
-
localValue
|
109
|
+
localValue,
|
110
|
+
tickSize,
|
111
|
+
trackSize,
|
112
|
+
props,
|
113
|
+
minWidth,
|
114
|
+
minHeight,
|
102
115
|
};
|
103
116
|
},
|
104
|
-
|
105
|
-
modelValue() {
|
106
|
-
this.localValue = clamp(Math.round(this.modelValue), -90, 0);
|
107
|
-
},
|
108
|
-
},
|
109
|
-
computed: {
|
110
|
-
tilt: {
|
111
|
-
get() {
|
112
|
-
return this.localValue;
|
113
|
-
},
|
114
|
-
set(value) {
|
115
|
-
if (value !== this.localValue) {
|
116
|
-
this.localValue = value;
|
117
|
-
this.$emit('update:modelValue', value);
|
118
|
-
}
|
119
|
-
},
|
120
|
-
},
|
121
|
-
},
|
122
|
-
};
|
117
|
+
});
|
123
118
|
</script>
|