|
10 | 10 | </div> |
11 | 11 | <div class="spacer"></div> |
12 | 12 | <div class="right side"> |
13 | | - <OptionalInput v-model:checked="snappingEnabled" @update:checked="(newStatus) => setSnap(newStatus)" :icon="'Snapping'" title="Snapping" /> |
| 13 | + <OptionalInput v-model:checked="snappingEnabled" @update:checked="(newStatus: boolean) => setSnap(newStatus)" :icon="'Snapping'" title="Snapping" /> |
14 | 14 | <PopoverButton> |
15 | 15 | <h3>Snapping</h3> |
16 | 16 | <p>The contents of this popover menu are coming soon</p> |
|
42 | 42 |
|
43 | 43 | <Separator :type="'Section'" /> |
44 | 44 |
|
45 | | - <NumberInput @update:value="(newRotation) => setRotation(newRotation)" v-model:value="documentRotation" :incrementFactor="15" :unit="'°'" /> |
| 45 | + <NumberInput @update:value="(newRotation: number) => setRotation(newRotation)" v-model:value="documentRotation" :incrementFactor="15" :unit="'°'" /> |
46 | 46 |
|
47 | 47 | <Separator :type="'Section'" /> |
48 | 48 |
|
|
54 | 54 |
|
55 | 55 | <NumberInput |
56 | 56 | v-model:value="documentZoom" |
57 | | - @update:value="(newZoom) => setCanvasZoom(newZoom)" |
| 57 | + @update:value="(newZoom: number) => setCanvasZoom(newZoom)" |
58 | 58 | :min="0.000001" |
59 | 59 | :max="1000000" |
60 | 60 | :incrementBehavior="'Callback'" |
|
133 | 133 | <PersistentScrollbar |
134 | 134 | :direction="'Vertical'" |
135 | 135 | :handlePosition="scrollbarPos.y" |
136 | | - @update:handlePosition="(newValue) => translateCanvasY(newValue)" |
| 136 | + @update:handlePosition="(newValue: number) => translateCanvasY(newValue)" |
137 | 137 | v-model:handleLength="scrollbarSize.y" |
138 | | - @pressTrack="(delta) => pageY(delta)" |
| 138 | + @pressTrack="(delta: number) => pageY(delta)" |
139 | 139 | :class="'right-scrollbar'" |
140 | 140 | /> |
141 | 141 | </LayoutCol> |
|
144 | 144 | <PersistentScrollbar |
145 | 145 | :direction="'Horizontal'" |
146 | 146 | :handlePosition="scrollbarPos.x" |
147 | | - @update:handlePosition="(newValue) => translateCanvasX(newValue)" |
| 147 | + @update:handlePosition="(newValue: number) => translateCanvasX(newValue)" |
148 | 148 | v-model:handleLength="scrollbarSize.x" |
149 | | - @pressTrack="(delta) => pageX(delta)" |
| 149 | + @pressTrack="(delta: number) => pageX(delta)" |
150 | 150 | :class="'bottom-scrollbar'" |
151 | 151 | /> |
152 | 152 | </LayoutRow> |
|
0 commit comments