kopia lustrzana https://github.com/Tldraw/Tldraw
25 wiersze
650 B
TypeScript
25 wiersze
650 B
TypeScript
import { defineMigrations } from '@tldraw/store'
|
|
import { T } from '@tldraw/validate'
|
|
import { TLOpacityType } from '../style-types'
|
|
import { opacityValidator } from '../validation'
|
|
import { createShapeValidator, TLBaseShape } from './shape-validation'
|
|
|
|
/** @public */
|
|
export type TLGroupShapeProps = {
|
|
opacity: TLOpacityType
|
|
}
|
|
|
|
/** @public */
|
|
export type TLGroupShape = TLBaseShape<'group', TLGroupShapeProps>
|
|
|
|
/** @public */
|
|
export const groupShapeTypeValidator: T.Validator<TLGroupShape> = createShapeValidator(
|
|
'group',
|
|
T.object({
|
|
opacity: opacityValidator,
|
|
})
|
|
)
|
|
|
|
/** @public */
|
|
export const groupShapeTypeMigrations = defineMigrations({})
|