(camera: Partial<Camera>, duration: number)
| 179 | } |
| 180 | }, |
| 181 | animateCamera(camera: Partial<Camera>, duration: number) { |
| 182 | if (fabricRef.current) { |
| 183 | try { |
| 184 | (Commands as any).animateCamera( |
| 185 | fabricRef.current, |
| 186 | JSON.stringify(camera), |
| 187 | duration, |
| 188 | ); |
| 189 | } catch { |
| 190 | throw new Error('Failed to animateCamera'); |
| 191 | } |
| 192 | } else { |
| 193 | throw new Error( |
| 194 | 'animateCamera is only supported on iOS with Fabric.', |
| 195 | ); |
| 196 | } |
| 197 | }, |
| 198 | fitToCoordinates( |
| 199 | coordinates: LatLng[], |
| 200 | edgePadding: EdgePadding, |
nothing calls this directly
no test coverage detected
searching dependent graphs…