import { $Boolean } from "kryo/builtins/boolean"; import { CaseStyle } from "kryo/case-style"; import { DocumentIoType, DocumentType } from "kryo/types/document"; import { IntegerType } from "kryo/types/integer"; import { LiteralType } from "kryo/types/literal"; import { Uint5 } from "semantic-types"; import { Sfixed16P16 } from "../fixed-point/sfixed16p16"; import { Sfixed8P8 } from "../fixed-point/sfixed8p8"; import { $StraightSRgba8, StraightSRgba8 } from "../straight-s-rgba8"; import { $FilterType, FilterType } from "./_type"; export interface DropShadow { filter: FilterType.DropShadow; color: StraightSRgba8; blurX: Sfixed16P16; blurY: Sfixed16P16; angle: Sfixed16P16; distance: Sfixed16P16; strength: Sfixed8P8; inner: boolean; knockout: boolean; compositeSource: boolean; passes: Uint5; } export const $DropShadow: DocumentIoType = new DocumentType({ properties: { filter: {type: new LiteralType({type: $FilterType, value: FilterType.DropShadow as FilterType.DropShadow})}, color: {type: $StraightSRgba8}, blurX: {type: Sfixed16P16}, blurY: {type: Sfixed16P16}, angle: {type: Sfixed16P16}, distance: {type: Sfixed16P16}, strength: {type: Sfixed8P8}, inner: {type: $Boolean}, knockout: {type: $Boolean}, compositeSource: {type: $Boolean}, passes: {type: new IntegerType({min: 0, max: 31})}, }, changeCase: CaseStyle.SnakeCase, });