BlockSuite API Documentation / @blocksuite/blocks / EditorSettingExtension
Function: EditorSettingExtension()
EditorSettingExtension(
signal):ExtensionType
Parameters
signal
Signal<DeepPartial<{ affine:edgeless-text: { color: LineColor | { normal: string; } | { dark: string; light: string; }; fontFamily: FontFamily; fontStyle: FontStyle; fontWeight: FontWeight; textAlign: TextAlign; }; affine:frame: { background: FrameBackgroundColor | { normal: string; } | { dark: string; light: string; }; }; affine:note: { background: NoteBackgroundColor | { normal: string; } | { dark: string; light: string; }; 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: ShapeFillColor | { normal: string; } | { dark: string; light: string; }; 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: ShapeFillColor | { normal: string; } | { dark: string; light: string; }; 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: ShapeFillColor | { normal: string; } | { dark: string; light: string; }; 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: ShapeFillColor | { normal: string; } | { dark: string; light: string; }; 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: ShapeFillColor | { normal: string; } | { dark: string; light: string; }; 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; }; }>>
Returns
Defined in
packages/affine/shared/dist/services/editor-setting-service.d.ts:2042