Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | 4x 4x | import { Schema } from 'effect'
import { defineTaggedUnion } from 'foldkit/schema'
import { Box, LatLon } from '../core/domain'
/** Where an animated camera move goes: to a point, or to fit an area. */
export const CameraTarget = defineTaggedUnion({
FlyTo: { point: LatLon.LatLon },
FitBox: { box: Box.Box },
})
export type CameraTarget = typeof CameraTarget.Type
/** An animated move the map performs once. A new id asks for a new move. */
export const CameraRequest = Schema.Struct({
id: Schema.Int,
target: CameraTarget,
})
export type CameraRequest = typeof CameraRequest.Type
|