useAlignerParamsStore.js
1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import { defineStore } from 'pinia';
import { reactive, ref } from 'vue';
export const useAlignerParamsStore = defineStore('aligner-params', () => {
const alignerParams = reactive([
{
key: 'blockOutValue',
value: -0.4,
min: -0.5,
max: 0
},
{
key: 'gapValue',
value: 0.15,
min: 0,
max: 0.3
},
{
key: 'thicknessValue',
value: 0.7,
min: 0.5,
max: 1.2
},
{
key: 'materialCompValue',
value: 0.2,
min: 0,
max: 0.3
},
{
key: 'materialCompRange',
value: 0.5,
min: 0,
max: 15
}
]);
const isBase = ref(false);
const isVisible = ref(false);
const setAlignerParamsModalVisible = (val) => {
isVisible.value = val;
};
return {
alignerParams,
isVisible,
isBase,
setAlignerParamsModalVisible
};
});