Skip to content

BlockSuite API Documentation / @blocksuite/blocks / EditorSettingSchema

Variable: EditorSettingSchema

const EditorSettingSchema: z.ZodObject<{ affine:edgeless-text: z.ZodDefault<z.ZodObject<{ color: z.ZodUnion<[z.ZodNativeEnum<LineColor>, z.ZodUnion<[z.ZodObject<{ normal: ...; }, "strip", z.ZodTypeAny, { normal: ...; }, { normal: ...; }>, z.ZodObject<{ dark: ...; light: ...; }, "strip", z.ZodTypeAny, { dark: ...; light: ...; }, { dark: ...; light: ...; }>]>]>; fontFamily: z.ZodNativeEnum<FontFamily>; fontStyle: z.ZodNativeEnum<FontStyle>; fontWeight: z.ZodNativeEnum<FontWeight>; textAlign: z.ZodNativeEnum<TextAlign>; }, "strip", z.ZodTypeAny, { color: LineColor | { normal: string; } | { dark: string; light: string; }; fontFamily: FontFamily; fontStyle: FontStyle; fontWeight: FontWeight; textAlign: TextAlign; }, { color: LineColor | { normal: string; } | { dark: string; light: string; }; fontFamily: FontFamily; fontStyle: FontStyle; fontWeight: FontWeight; textAlign: TextAlign; }>>; affine:frame: z.ZodDefault<z.ZodObject<{ background: z.ZodOptional<z.ZodUnion<[z.ZodNativeEnum<FrameBackgroundColor>, z.ZodUnion<[z.ZodObject<..., ..., ..., ..., ...>, z.ZodObject<..., ..., ..., ..., ...>]>]>>; }, "strip", z.ZodTypeAny, { background: { normal: string; } | { dark: string; light: string; } | FrameBackgroundColor; }, { background: { normal: string; } | { dark: string; light: string; } | FrameBackgroundColor; }>>; affine:note: z.ZodDefault<z.ZodObject<{ background: z.ZodUnion<[z.ZodNativeEnum<NoteBackgroundColor>, z.ZodUnion<[z.ZodObject<{ normal: ...; }, "strip", z.ZodTypeAny, { normal: ...; }, { normal: ...; }>, z.ZodObject<{ dark: ...; light: ...; }, "strip", z.ZodTypeAny, { dark: ...; light: ...; }, { dark: ...; light: ...; }>]>]>; displayMode: z.ZodNativeEnum<NoteDisplayMode>; edgeless: z.ZodObject<{ style: z.ZodObject<{ borderRadius: z.ZodNumber; borderSize: z.ZodNumber; borderStyle: z.ZodNativeEnum<StrokeStyle>; shadowType: z.ZodNativeEnum<NoteShadow>; }, "strip", z.ZodTypeAny, { borderRadius: number; borderSize: number; borderStyle: StrokeStyle; shadowType: NoteShadow; }, { borderRadius: number; borderSize: number; borderStyle: StrokeStyle; shadowType: NoteShadow; }>; }, "strip", z.ZodTypeAny, { style: { borderRadius: number; borderSize: number; borderStyle: StrokeStyle; shadowType: NoteShadow; }; }, { style: { borderRadius: number; borderSize: number; borderStyle: StrokeStyle; shadowType: NoteShadow; }; }>; }, "strip", z.ZodTypeAny, { background: { normal: string; } | { dark: string; light: string; } | NoteBackgroundColor; displayMode: NoteDisplayMode; edgeless: { style: { borderRadius: number; borderSize: number; borderStyle: StrokeStyle; shadowType: NoteShadow; }; }; }, { background: { normal: string; } | { dark: string; light: string; } | NoteBackgroundColor; displayMode: NoteDisplayMode; edgeless: { style: { borderRadius: number; borderSize: number; borderStyle: StrokeStyle; shadowType: NoteShadow; }; }; }>>; brush: z.ZodDefault<z.ZodObject<{ color: z.ZodUnion<[z.ZodNativeEnum<LineColor>, z.ZodUnion<[z.ZodObject<{ normal: ...; }, "strip", z.ZodTypeAny, { normal: ...; }, { normal: ...; }>, z.ZodObject<{ dark: ...; light: ...; }, "strip", z.ZodTypeAny, { dark: ...; light: ...; }, { dark: ...; light: ...; }>]>]>; lineWidth: z.ZodNativeEnum<LineWidth>; }, "strip", z.ZodTypeAny, { color: LineColor | { normal: string; } | { dark: string; light: string; }; lineWidth: LineWidth; }, { color: LineColor | { normal: string; } | { dark: string; light: string; }; lineWidth: LineWidth; }>>; connector: z.ZodDefault<z.ZodObject<{ frontEndpointStyle: z.ZodNativeEnum<PointStyle>; labelStyle: z.ZodObject<{ color: z.ZodUnion<[z.ZodNativeEnum<LineColor>, z.ZodUnion<[..., ...]>]>; fontFamily: z.ZodNativeEnum<FontFamily>; fontSize: z.ZodNumber; fontStyle: z.ZodNativeEnum<FontStyle>; fontWeight: z.ZodNativeEnum<FontWeight>; textAlign: z.ZodNativeEnum<TextAlign>; }, "strip", z.ZodTypeAny, { color: LineColor | { normal: string; } | { dark: string; light: string; }; fontFamily: FontFamily; fontSize: number; fontStyle: FontStyle; fontWeight: FontWeight; textAlign: TextAlign; }, { color: LineColor | { normal: string; } | { dark: string; light: string; }; fontFamily: FontFamily; fontSize: number; fontStyle: FontStyle; fontWeight: FontWeight; textAlign: TextAlign; }>; mode: z.ZodNativeEnum<ConnectorMode>; rearEndpointStyle: z.ZodNativeEnum<PointStyle>; rough: z.ZodBoolean; stroke: z.ZodUnion<[z.ZodNativeEnum<LineColor>, z.ZodUnion<[z.ZodObject<{ normal: ...; }, "strip", z.ZodTypeAny, { normal: ...; }, { normal: ...; }>, z.ZodObject<{ dark: ...; light: ...; }, "strip", z.ZodTypeAny, { dark: ...; light: ...; }, { dark: ...; light: ...; }>]>]>; strokeStyle: z.ZodNativeEnum<StrokeStyle>; strokeWidth: z.ZodNativeEnum<LineWidth>; }, "strip", z.ZodTypeAny, { frontEndpointStyle: PointStyle; labelStyle: { color: LineColor | { normal: string; } | { dark: string; light: string; }; fontFamily: FontFamily; fontSize: number; fontStyle: FontStyle; fontWeight: FontWeight; textAlign: TextAlign; }; mode: ConnectorMode; rearEndpointStyle: PointStyle; rough: boolean; stroke: LineColor | { normal: string; } | { dark: string; light: string; }; strokeStyle: StrokeStyle; strokeWidth: LineWidth; }, { frontEndpointStyle: PointStyle; labelStyle: { color: LineColor | { normal: string; } | { dark: string; light: string; }; fontFamily: FontFamily; fontSize: number; fontStyle: FontStyle; fontWeight: FontWeight; textAlign: TextAlign; }; mode: ConnectorMode; rearEndpointStyle: PointStyle; rough: boolean; stroke: LineColor | { normal: string; } | { dark: string; light: string; }; strokeStyle: StrokeStyle; strokeWidth: LineWidth; }>>; mindmap: z.ZodDefault<z.ZodObject<{ layoutType: z.ZodNativeEnum<LayoutType>; style: z.ZodNativeEnum<MindmapStyle>; }, "strip", z.ZodTypeAny, { layoutType: LayoutType; style: MindmapStyle; }, { layoutType: LayoutType; style: MindmapStyle; }>>; shape:diamond: z.ZodDefault<z.ZodObject<{ color: z.ZodUnion<[z.ZodNativeEnum<LineColor>, z.ZodUnion<[z.ZodObject<{ normal: ...; }, "strip", z.ZodTypeAny, { normal: ...; }, { normal: ...; }>, z.ZodObject<{ dark: ...; light: ...; }, "strip", z.ZodTypeAny, { dark: ...; light: ...; }, { dark: ...; light: ...; }>]>]>; fillColor: z.ZodUnion<[z.ZodNativeEnum<ShapeFillColor>, z.ZodUnion<[z.ZodObject<{ normal: ...; }, "strip", z.ZodTypeAny, { normal: ...; }, { normal: ...; }>, z.ZodObject<{ dark: ...; light: ...; }, "strip", z.ZodTypeAny, { dark: ...; light: ...; }, { dark: ...; light: ...; }>]>]>; filled: z.ZodBoolean; fontFamily: z.ZodNativeEnum<FontFamily>; fontSize: z.ZodNumber; fontStyle: z.ZodNativeEnum<FontStyle>; fontWeight: z.ZodNativeEnum<FontWeight>; radius: z.ZodNumber; roughness: z.ZodNumber; shapeStyle: z.ZodNativeEnum<ShapeStyle>; strokeColor: z.ZodUnion<[z.ZodNativeEnum<LineColor>, z.ZodUnion<[z.ZodObject<{ normal: ...; }, "strip", z.ZodTypeAny, { normal: ...; }, { normal: ...; }>, z.ZodObject<{ dark: ...; light: ...; }, "strip", z.ZodTypeAny, { dark: ...; light: ...; }, { dark: ...; light: ...; }>]>]>; strokeStyle: z.ZodNativeEnum<StrokeStyle>; strokeWidth: z.ZodNumber; textAlign: z.ZodNativeEnum<TextAlign>; textHorizontalAlign: z.ZodOptional<z.ZodNativeEnum<TextAlign>>; textVerticalAlign: z.ZodOptional<z.ZodNativeEnum<TextVerticalAlign>>; }, "strip", z.ZodTypeAny, { color: LineColor | { normal: string; } | { dark: string; light: string; }; fillColor: { normal: string; } | { dark: string; light: string; } | ShapeFillColor; filled: boolean; fontFamily: FontFamily; fontSize: number; fontStyle: FontStyle; fontWeight: FontWeight; radius: number; roughness: number; shapeStyle: ShapeStyle; strokeColor: LineColor | { normal: string; } | { dark: string; light: string; }; strokeStyle: StrokeStyle; strokeWidth: number; textAlign: TextAlign; textHorizontalAlign: TextAlign; textVerticalAlign: TextVerticalAlign; }, { color: LineColor | { normal: string; } | { dark: string; light: string; }; fillColor: { normal: string; } | { dark: string; light: string; } | ShapeFillColor; filled: boolean; fontFamily: FontFamily; fontSize: number; fontStyle: FontStyle; fontWeight: FontWeight; radius: number; roughness: number; shapeStyle: ShapeStyle; strokeColor: LineColor | { normal: string; } | { dark: string; light: string; }; strokeStyle: StrokeStyle; strokeWidth: number; textAlign: TextAlign; textHorizontalAlign: TextAlign; textVerticalAlign: TextVerticalAlign; }>>; shape:ellipse: z.ZodDefault<z.ZodObject<{ color: z.ZodUnion<[z.ZodNativeEnum<LineColor>, z.ZodUnion<[z.ZodObject<{ normal: ...; }, "strip", z.ZodTypeAny, { normal: ...; }, { normal: ...; }>, z.ZodObject<{ dark: ...; light: ...; }, "strip", z.ZodTypeAny, { dark: ...; light: ...; }, { dark: ...; light: ...; }>]>]>; fillColor: z.ZodUnion<[z.ZodNativeEnum<ShapeFillColor>, z.ZodUnion<[z.ZodObject<{ normal: ...; }, "strip", z.ZodTypeAny, { normal: ...; }, { normal: ...; }>, z.ZodObject<{ dark: ...; light: ...; }, "strip", z.ZodTypeAny, { dark: ...; light: ...; }, { dark: ...; light: ...; }>]>]>; filled: z.ZodBoolean; fontFamily: z.ZodNativeEnum<FontFamily>; fontSize: z.ZodNumber; fontStyle: z.ZodNativeEnum<FontStyle>; fontWeight: z.ZodNativeEnum<FontWeight>; radius: z.ZodNumber; roughness: z.ZodNumber; shapeStyle: z.ZodNativeEnum<ShapeStyle>; strokeColor: z.ZodUnion<[z.ZodNativeEnum<LineColor>, z.ZodUnion<[z.ZodObject<{ normal: ...; }, "strip", z.ZodTypeAny, { normal: ...; }, { normal: ...; }>, z.ZodObject<{ dark: ...; light: ...; }, "strip", z.ZodTypeAny, { dark: ...; light: ...; }, { dark: ...; light: ...; }>]>]>; strokeStyle: z.ZodNativeEnum<StrokeStyle>; strokeWidth: z.ZodNumber; textAlign: z.ZodNativeEnum<TextAlign>; textHorizontalAlign: z.ZodOptional<z.ZodNativeEnum<TextAlign>>; textVerticalAlign: z.ZodOptional<z.ZodNativeEnum<TextVerticalAlign>>; }, "strip", z.ZodTypeAny, { color: LineColor | { normal: string; } | { dark: string; light: string; }; fillColor: { normal: string; } | { dark: string; light: string; } | ShapeFillColor; filled: boolean; fontFamily: FontFamily; fontSize: number; fontStyle: FontStyle; fontWeight: FontWeight; radius: number; roughness: number; shapeStyle: ShapeStyle; strokeColor: LineColor | { normal: string; } | { dark: string; light: string; }; strokeStyle: StrokeStyle; strokeWidth: number; textAlign: TextAlign; textHorizontalAlign: TextAlign; textVerticalAlign: TextVerticalAlign; }, { color: LineColor | { normal: string; } | { dark: string; light: string; }; fillColor: { normal: string; } | { dark: string; light: string; } | ShapeFillColor; filled: boolean; fontFamily: FontFamily; fontSize: number; fontStyle: FontStyle; fontWeight: FontWeight; radius: number; roughness: number; shapeStyle: ShapeStyle; strokeColor: LineColor | { normal: string; } | { dark: string; light: string; }; strokeStyle: StrokeStyle; strokeWidth: number; textAlign: TextAlign; textHorizontalAlign: TextAlign; textVerticalAlign: TextVerticalAlign; }>>; shape:rect: z.ZodDefault<z.ZodObject<{ color: z.ZodUnion<[z.ZodNativeEnum<LineColor>, z.ZodUnion<[z.ZodObject<{ normal: ...; }, "strip", z.ZodTypeAny, { normal: ...; }, { normal: ...; }>, z.ZodObject<{ dark: ...; light: ...; }, "strip", z.ZodTypeAny, { dark: ...; light: ...; }, { dark: ...; light: ...; }>]>]>; fillColor: z.ZodUnion<[z.ZodNativeEnum<ShapeFillColor>, z.ZodUnion<[z.ZodObject<{ normal: ...; }, "strip", z.ZodTypeAny, { normal: ...; }, { normal: ...; }>, z.ZodObject<{ dark: ...; light: ...; }, "strip", z.ZodTypeAny, { dark: ...; light: ...; }, { dark: ...; light: ...; }>]>]>; filled: z.ZodBoolean; fontFamily: z.ZodNativeEnum<FontFamily>; fontSize: z.ZodNumber; fontStyle: z.ZodNativeEnum<FontStyle>; fontWeight: z.ZodNativeEnum<FontWeight>; radius: z.ZodNumber; roughness: z.ZodNumber; shapeStyle: z.ZodNativeEnum<ShapeStyle>; strokeColor: z.ZodUnion<[z.ZodNativeEnum<LineColor>, z.ZodUnion<[z.ZodObject<{ normal: ...; }, "strip", z.ZodTypeAny, { normal: ...; }, { normal: ...; }>, z.ZodObject<{ dark: ...; light: ...; }, "strip", z.ZodTypeAny, { dark: ...; light: ...; }, { dark: ...; light: ...; }>]>]>; strokeStyle: z.ZodNativeEnum<StrokeStyle>; strokeWidth: z.ZodNumber; textAlign: z.ZodNativeEnum<TextAlign>; textHorizontalAlign: z.ZodOptional<z.ZodNativeEnum<TextAlign>>; textVerticalAlign: z.ZodOptional<z.ZodNativeEnum<TextVerticalAlign>>; }, "strip", z.ZodTypeAny, { color: LineColor | { normal: string; } | { dark: string; light: string; }; fillColor: { normal: string; } | { dark: string; light: string; } | ShapeFillColor; filled: boolean; fontFamily: FontFamily; fontSize: number; fontStyle: FontStyle; fontWeight: FontWeight; radius: number; roughness: number; shapeStyle: ShapeStyle; strokeColor: LineColor | { normal: string; } | { dark: string; light: string; }; strokeStyle: StrokeStyle; strokeWidth: number; textAlign: TextAlign; textHorizontalAlign: TextAlign; textVerticalAlign: TextVerticalAlign; }, { color: LineColor | { normal: string; } | { dark: string; light: string; }; fillColor: { normal: string; } | { dark: string; light: string; } | ShapeFillColor; filled: boolean; fontFamily: FontFamily; fontSize: number; fontStyle: FontStyle; fontWeight: FontWeight; radius: number; roughness: number; shapeStyle: ShapeStyle; strokeColor: LineColor | { normal: string; } | { dark: string; light: string; }; strokeStyle: StrokeStyle; strokeWidth: number; textAlign: TextAlign; textHorizontalAlign: TextAlign; textVerticalAlign: TextVerticalAlign; }>>; shape:roundedRect: z.ZodDefault<z.ZodObject<{ color: z.ZodUnion<[z.ZodNativeEnum<LineColor>, z.ZodUnion<[z.ZodObject<{ normal: ...; }, "strip", z.ZodTypeAny, { normal: ...; }, { normal: ...; }>, z.ZodObject<{ dark: ...; light: ...; }, "strip", z.ZodTypeAny, { dark: ...; light: ...; }, { dark: ...; light: ...; }>]>]>; fillColor: z.ZodUnion<[z.ZodNativeEnum<ShapeFillColor>, z.ZodUnion<[z.ZodObject<{ normal: ...; }, "strip", z.ZodTypeAny, { normal: ...; }, { normal: ...; }>, z.ZodObject<{ dark: ...; light: ...; }, "strip", z.ZodTypeAny, { dark: ...; light: ...; }, { dark: ...; light: ...; }>]>]>; filled: z.ZodBoolean; fontFamily: z.ZodNativeEnum<FontFamily>; fontSize: z.ZodNumber; fontStyle: z.ZodNativeEnum<FontStyle>; fontWeight: z.ZodNativeEnum<FontWeight>; radius: z.ZodNumber; roughness: z.ZodNumber; shapeStyle: z.ZodNativeEnum<ShapeStyle>; strokeColor: z.ZodUnion<[z.ZodNativeEnum<LineColor>, z.ZodUnion<[z.ZodObject<{ normal: ...; }, "strip", z.ZodTypeAny, { normal: ...; }, { normal: ...; }>, z.ZodObject<{ dark: ...; light: ...; }, "strip", z.ZodTypeAny, { dark: ...; light: ...; }, { dark: ...; light: ...; }>]>]>; strokeStyle: z.ZodNativeEnum<StrokeStyle>; strokeWidth: z.ZodNumber; textAlign: z.ZodNativeEnum<TextAlign>; textHorizontalAlign: z.ZodOptional<z.ZodNativeEnum<TextAlign>>; textVerticalAlign: z.ZodOptional<z.ZodNativeEnum<TextVerticalAlign>>; }, "strip", z.ZodTypeAny, { color: LineColor | { normal: string; } | { dark: string; light: string; }; fillColor: { normal: string; } | { dark: string; light: string; } | ShapeFillColor; filled: boolean; fontFamily: FontFamily; fontSize: number; fontStyle: FontStyle; fontWeight: FontWeight; radius: number; roughness: number; shapeStyle: ShapeStyle; strokeColor: LineColor | { normal: string; } | { dark: string; light: string; }; strokeStyle: StrokeStyle; strokeWidth: number; textAlign: TextAlign; textHorizontalAlign: TextAlign; textVerticalAlign: TextVerticalAlign; }, { color: LineColor | { normal: string; } | { dark: string; light: string; }; fillColor: { normal: string; } | { dark: string; light: string; } | ShapeFillColor; filled: boolean; fontFamily: FontFamily; fontSize: number; fontStyle: FontStyle; fontWeight: FontWeight; radius: number; roughness: number; shapeStyle: ShapeStyle; strokeColor: LineColor | { normal: string; } | { dark: string; light: string; }; strokeStyle: StrokeStyle; strokeWidth: number; textAlign: TextAlign; textHorizontalAlign: TextAlign; textVerticalAlign: TextVerticalAlign; }>>; shape:triangle: z.ZodDefault<z.ZodObject<{ color: z.ZodUnion<[z.ZodNativeEnum<LineColor>, z.ZodUnion<[z.ZodObject<{ normal: ...; }, "strip", z.ZodTypeAny, { normal: ...; }, { normal: ...; }>, z.ZodObject<{ dark: ...; light: ...; }, "strip", z.ZodTypeAny, { dark: ...; light: ...; }, { dark: ...; light: ...; }>]>]>; fillColor: z.ZodUnion<[z.ZodNativeEnum<ShapeFillColor>, z.ZodUnion<[z.ZodObject<{ normal: ...; }, "strip", z.ZodTypeAny, { normal: ...; }, { normal: ...; }>, z.ZodObject<{ dark: ...; light: ...; }, "strip", z.ZodTypeAny, { dark: ...; light: ...; }, { dark: ...; light: ...; }>]>]>; filled: z.ZodBoolean; fontFamily: z.ZodNativeEnum<FontFamily>; fontSize: z.ZodNumber; fontStyle: z.ZodNativeEnum<FontStyle>; fontWeight: z.ZodNativeEnum<FontWeight>; radius: z.ZodNumber; roughness: z.ZodNumber; shapeStyle: z.ZodNativeEnum<ShapeStyle>; strokeColor: z.ZodUnion<[z.ZodNativeEnum<LineColor>, z.ZodUnion<[z.ZodObject<{ normal: ...; }, "strip", z.ZodTypeAny, { normal: ...; }, { normal: ...; }>, z.ZodObject<{ dark: ...; light: ...; }, "strip", z.ZodTypeAny, { dark: ...; light: ...; }, { dark: ...; light: ...; }>]>]>; strokeStyle: z.ZodNativeEnum<StrokeStyle>; strokeWidth: z.ZodNumber; textAlign: z.ZodNativeEnum<TextAlign>; textHorizontalAlign: z.ZodOptional<z.ZodNativeEnum<TextAlign>>; textVerticalAlign: z.ZodOptional<z.ZodNativeEnum<TextVerticalAlign>>; }, "strip", z.ZodTypeAny, { color: LineColor | { normal: string; } | { dark: string; light: string; }; fillColor: { normal: string; } | { dark: string; light: string; } | ShapeFillColor; filled: boolean; fontFamily: FontFamily; fontSize: number; fontStyle: FontStyle; fontWeight: FontWeight; radius: number; roughness: number; shapeStyle: ShapeStyle; strokeColor: LineColor | { normal: string; } | { dark: string; light: string; }; strokeStyle: StrokeStyle; strokeWidth: number; textAlign: TextAlign; textHorizontalAlign: TextAlign; textVerticalAlign: TextVerticalAlign; }, { color: LineColor | { normal: string; } | { dark: string; light: string; }; fillColor: { normal: string; } | { dark: string; light: string; } | ShapeFillColor; filled: boolean; fontFamily: FontFamily; fontSize: number; fontStyle: FontStyle; fontWeight: FontWeight; radius: number; roughness: number; shapeStyle: ShapeStyle; strokeColor: LineColor | { normal: string; } | { dark: string; light: string; }; strokeStyle: StrokeStyle; strokeWidth: number; textAlign: TextAlign; textHorizontalAlign: TextAlign; textVerticalAlign: TextVerticalAlign; }>>; text: z.ZodDefault<z.ZodObject<{ color: z.ZodUnion<[z.ZodNativeEnum<LineColor>, z.ZodUnion<[z.ZodObject<{ normal: ...; }, "strip", z.ZodTypeAny, { normal: ...; }, { normal: ...; }>, z.ZodObject<{ dark: ...; light: ...; }, "strip", z.ZodTypeAny, { dark: ...; light: ...; }, { dark: ...; light: ...; }>]>]>; fontFamily: z.ZodNativeEnum<FontFamily>; fontSize: z.ZodNumber; fontStyle: z.ZodNativeEnum<FontStyle>; fontWeight: z.ZodNativeEnum<FontWeight>; textAlign: z.ZodNativeEnum<TextAlign>; }, "strip", z.ZodTypeAny, { color: LineColor | { normal: string; } | { dark: string; light: string; }; fontFamily: FontFamily; fontSize: number; fontStyle: FontStyle; fontWeight: FontWeight; textAlign: TextAlign; }, { color: LineColor | { normal: string; } | { dark: string; light: string; }; fontFamily: FontFamily; fontSize: number; fontStyle: FontStyle; fontWeight: FontWeight; textAlign: TextAlign; }>>; }, "strip", z.ZodTypeAny, { affine:edgeless-text: { color: LineColor | { normal: string; } | { dark: string; light: string; }; fontFamily: FontFamily; fontStyle: FontStyle; fontWeight: FontWeight; textAlign: TextAlign; }; affine:frame: { background: { normal: string; } | { dark: string; light: string; } | FrameBackgroundColor; }; affine:note: { background: { normal: string; } | { dark: string; light: string; } | NoteBackgroundColor; displayMode: NoteDisplayMode; edgeless: { style: { borderRadius: number; borderSize: number; borderStyle: StrokeStyle; shadowType: NoteShadow; }; }; }; brush: { color: LineColor | { normal: string; } | { dark: string; light: string; }; lineWidth: LineWidth; }; connector: { frontEndpointStyle: PointStyle; labelStyle: { color: LineColor | { normal: string; } | { dark: string; light: string; }; fontFamily: FontFamily; fontSize: number; fontStyle: FontStyle; fontWeight: FontWeight; textAlign: TextAlign; }; mode: ConnectorMode; rearEndpointStyle: PointStyle; rough: boolean; stroke: LineColor | { normal: string; } | { dark: string; light: string; }; strokeStyle: StrokeStyle; strokeWidth: LineWidth; }; mindmap: { layoutType: LayoutType; style: MindmapStyle; }; shape:diamond: { color: LineColor | { normal: string; } | { dark: string; light: string; }; fillColor: { normal: string; } | { dark: string; light: string; } | ShapeFillColor; filled: boolean; fontFamily: FontFamily; fontSize: number; fontStyle: FontStyle; fontWeight: FontWeight; radius: number; roughness: number; shapeStyle: ShapeStyle; strokeColor: LineColor | { normal: string; } | { dark: string; light: string; }; strokeStyle: StrokeStyle; strokeWidth: number; textAlign: TextAlign; textHorizontalAlign: TextAlign; textVerticalAlign: TextVerticalAlign; }; shape:ellipse: { color: LineColor | { normal: string; } | { dark: string; light: string; }; fillColor: { normal: string; } | { dark: string; light: string; } | ShapeFillColor; filled: boolean; fontFamily: FontFamily; fontSize: number; fontStyle: FontStyle; fontWeight: FontWeight; radius: number; roughness: number; shapeStyle: ShapeStyle; strokeColor: LineColor | { normal: string; } | { dark: string; light: string; }; strokeStyle: StrokeStyle; strokeWidth: number; textAlign: TextAlign; textHorizontalAlign: TextAlign; textVerticalAlign: TextVerticalAlign; }; shape:rect: { color: LineColor | { normal: string; } | { dark: string; light: string; }; fillColor: { normal: string; } | { dark: string; light: string; } | ShapeFillColor; filled: boolean; fontFamily: FontFamily; fontSize: number; fontStyle: FontStyle; fontWeight: FontWeight; radius: number; roughness: number; shapeStyle: ShapeStyle; strokeColor: LineColor | { normal: string; } | { dark: string; light: string; }; strokeStyle: StrokeStyle; strokeWidth: number; textAlign: TextAlign; textHorizontalAlign: TextAlign; textVerticalAlign: TextVerticalAlign; }; shape:roundedRect: { color: LineColor | { normal: string; } | { dark: string; light: string; }; fillColor: { normal: string; } | { dark: string; light: string; } | ShapeFillColor; filled: boolean; fontFamily: FontFamily; fontSize: number; fontStyle: FontStyle; fontWeight: FontWeight; radius: number; roughness: number; shapeStyle: ShapeStyle; strokeColor: LineColor | { normal: string; } | { dark: string; light: string; }; strokeStyle: StrokeStyle; strokeWidth: number; textAlign: TextAlign; textHorizontalAlign: TextAlign; textVerticalAlign: TextVerticalAlign; }; shape:triangle: { color: LineColor | { normal: string; } | { dark: string; light: string; }; fillColor: { normal: string; } | { dark: string; light: string; } | ShapeFillColor; filled: boolean; fontFamily: FontFamily; fontSize: number; fontStyle: FontStyle; fontWeight: FontWeight; radius: number; roughness: number; shapeStyle: ShapeStyle; strokeColor: LineColor | { normal: string; } | { dark: string; light: string; }; strokeStyle: StrokeStyle; strokeWidth: number; textAlign: TextAlign; textHorizontalAlign: TextAlign; textVerticalAlign: TextVerticalAlign; }; text: { color: LineColor | { normal: string; } | { dark: string; light: string; }; fontFamily: FontFamily; fontSize: number; fontStyle: FontStyle; fontWeight: FontWeight; textAlign: TextAlign; }; }, { affine:edgeless-text: { color: LineColor | { normal: string; } | { dark: string; light: string; }; fontFamily: FontFamily; fontStyle: FontStyle; fontWeight: FontWeight; textAlign: TextAlign; }; affine:frame: { background: { normal: string; } | { dark: string; light: string; } | FrameBackgroundColor; }; affine:note: { background: { normal: string; } | { dark: string; light: string; } | NoteBackgroundColor; displayMode: NoteDisplayMode; edgeless: { style: { borderRadius: number; borderSize: number; borderStyle: StrokeStyle; shadowType: NoteShadow; }; }; }; brush: { color: LineColor | { normal: string; } | { dark: string; light: string; }; lineWidth: LineWidth; }; connector: { frontEndpointStyle: PointStyle; labelStyle: { color: LineColor | { normal: string; } | { dark: string; light: string; }; fontFamily: FontFamily; fontSize: number; fontStyle: FontStyle; fontWeight: FontWeight; textAlign: TextAlign; }; mode: ConnectorMode; rearEndpointStyle: PointStyle; rough: boolean; stroke: LineColor | { normal: string; } | { dark: string; light: string; }; strokeStyle: StrokeStyle; strokeWidth: LineWidth; }; mindmap: { layoutType: LayoutType; style: MindmapStyle; }; shape:diamond: { color: LineColor | { normal: string; } | { dark: string; light: string; }; fillColor: { normal: string; } | { dark: string; light: string; } | ShapeFillColor; filled: boolean; fontFamily: FontFamily; fontSize: number; fontStyle: FontStyle; fontWeight: FontWeight; radius: number; roughness: number; shapeStyle: ShapeStyle; strokeColor: LineColor | { normal: string; } | { dark: string; light: string; }; strokeStyle: StrokeStyle; strokeWidth: number; textAlign: TextAlign; textHorizontalAlign: TextAlign; textVerticalAlign: TextVerticalAlign; }; shape:ellipse: { color: LineColor | { normal: string; } | { dark: string; light: string; }; fillColor: { normal: string; } | { dark: string; light: string; } | ShapeFillColor; filled: boolean; fontFamily: FontFamily; fontSize: number; fontStyle: FontStyle; fontWeight: FontWeight; radius: number; roughness: number; shapeStyle: ShapeStyle; strokeColor: LineColor | { normal: string; } | { dark: string; light: string; }; strokeStyle: StrokeStyle; strokeWidth: number; textAlign: TextAlign; textHorizontalAlign: TextAlign; textVerticalAlign: TextVerticalAlign; }; shape:rect: { color: LineColor | { normal: string; } | { dark: string; light: string; }; fillColor: { normal: string; } | { dark: string; light: string; } | ShapeFillColor; filled: boolean; fontFamily: FontFamily; fontSize: number; fontStyle: FontStyle; fontWeight: FontWeight; radius: number; roughness: number; shapeStyle: ShapeStyle; strokeColor: LineColor | { normal: string; } | { dark: string; light: string; }; strokeStyle: StrokeStyle; strokeWidth: number; textAlign: TextAlign; textHorizontalAlign: TextAlign; textVerticalAlign: TextVerticalAlign; }; shape:roundedRect: { color: LineColor | { normal: string; } | { dark: string; light: string; }; fillColor: { normal: string; } | { dark: string; light: string; } | ShapeFillColor; filled: boolean; fontFamily: FontFamily; fontSize: number; fontStyle: FontStyle; fontWeight: FontWeight; radius: number; roughness: number; shapeStyle: ShapeStyle; strokeColor: LineColor | { normal: string; } | { dark: string; light: string; }; strokeStyle: StrokeStyle; strokeWidth: number; textAlign: TextAlign; textHorizontalAlign: TextAlign; textVerticalAlign: TextVerticalAlign; }; shape:triangle: { color: LineColor | { normal: string; } | { dark: string; light: string; }; fillColor: { normal: string; } | { dark: string; light: string; } | ShapeFillColor; filled: boolean; fontFamily: FontFamily; fontSize: number; fontStyle: FontStyle; fontWeight: FontWeight; radius: number; roughness: number; shapeStyle: ShapeStyle; strokeColor: LineColor | { normal: string; } | { dark: string; light: string; }; strokeStyle: StrokeStyle; strokeWidth: number; textAlign: TextAlign; textHorizontalAlign: TextAlign; textVerticalAlign: TextVerticalAlign; }; text: { color: LineColor | { normal: string; } | { dark: string; light: string; }; fontFamily: FontFamily; fontSize: number; fontStyle: FontStyle; fontWeight: FontWeight; textAlign: TextAlign; }; }>

Defined in

packages/affine/shared/dist/services/editor-setting-service.d.ts:5