@yuzhouu/canvas-standard 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -22,6 +22,8 @@ export interface ShapeHeadingControlProps<S extends ShapeRecordBase = ShapeRecor
22
22
  readonly dataUi: ShapeHeadingDataUi;
23
23
  readonly onValueChange: (value: string) => void;
24
24
  readonly leading?: ReactNode;
25
+ readonly color?: string;
26
+ readonly offsetX?: number;
25
27
  readonly editable?: boolean;
26
28
  readonly showBackground?: boolean;
27
29
  readonly showDragHandle?: boolean;
@@ -30,4 +32,4 @@ export declare function createShapeHeadingDomEventGuard({ id, selector, }: {
30
32
  id: string;
31
33
  selector: string;
32
34
  }): CanvasDomEventGuard;
33
- export declare function ShapeHeadingControl<S extends ShapeRecordBase>({ editor, shape, isEditing, value, fallback, bodyWidth, bodyHeight, renderHeight, operationKind, editAriaLabel, inputAriaLabel, dataUi, onValueChange, leading, editable, showBackground, showDragHandle, }: ShapeHeadingControlProps<S>): import("react/jsx-runtime").JSX.Element;
35
+ export declare function ShapeHeadingControl<S extends ShapeRecordBase>({ editor, shape, isEditing, value, fallback, bodyWidth, bodyHeight, renderHeight, operationKind, editAriaLabel, inputAriaLabel, dataUi, onValueChange, leading, color, offsetX, editable, showBackground, showDragHandle, }: ShapeHeadingControlProps<S>): import("react/jsx-runtime").JSX.Element;
@@ -22,6 +22,8 @@ export interface ShapeHeadingControlProps<S extends ShapeRecordBase = ShapeRecor
22
22
  readonly dataUi: ShapeHeadingDataUi;
23
23
  readonly onValueChange: (value: string) => void;
24
24
  readonly leading?: ReactNode;
25
+ readonly color?: string;
26
+ readonly offsetX?: number;
25
27
  readonly editable?: boolean;
26
28
  readonly showBackground?: boolean;
27
29
  readonly showDragHandle?: boolean;
@@ -30,4 +32,4 @@ export declare function createShapeHeadingDomEventGuard({ id, selector, }: {
30
32
  id: string;
31
33
  selector: string;
32
34
  }): CanvasDomEventGuard;
33
- export declare function ShapeHeadingControl<S extends ShapeRecordBase>({ editor, shape, isEditing, value, fallback, bodyWidth, bodyHeight, renderHeight, operationKind, editAriaLabel, inputAriaLabel, dataUi, onValueChange, leading, editable, showBackground, showDragHandle, }: ShapeHeadingControlProps<S>): import("react/jsx-runtime").JSX.Element;
35
+ export declare function ShapeHeadingControl<S extends ShapeRecordBase>({ editor, shape, isEditing, value, fallback, bodyWidth, bodyHeight, renderHeight, operationKind, editAriaLabel, inputAriaLabel, dataUi, onValueChange, leading, color, offsetX, editable, showBackground, showDragHandle, }: ShapeHeadingControlProps<S>): import("react/jsx-runtime").JSX.Element;
@@ -22,6 +22,8 @@ export interface ShapeHeadingControlProps<S extends ShapeRecordBase = ShapeRecor
22
22
  readonly dataUi: ShapeHeadingDataUi;
23
23
  readonly onValueChange: (value: string) => void;
24
24
  readonly leading?: ReactNode;
25
+ readonly color?: string;
26
+ readonly offsetX?: number;
25
27
  readonly editable?: boolean;
26
28
  readonly showBackground?: boolean;
27
29
  readonly showDragHandle?: boolean;
@@ -30,4 +32,4 @@ export declare function createShapeHeadingDomEventGuard({ id, selector, }: {
30
32
  id: string;
31
33
  selector: string;
32
34
  }): CanvasDomEventGuard;
33
- export declare function ShapeHeadingControl<S extends ShapeRecordBase>({ editor, shape, isEditing, value, fallback, bodyWidth, bodyHeight, renderHeight, operationKind, editAriaLabel, inputAriaLabel, dataUi, onValueChange, leading, editable, showBackground, showDragHandle, }: ShapeHeadingControlProps<S>): import("react/jsx-runtime").JSX.Element;
35
+ export declare function ShapeHeadingControl<S extends ShapeRecordBase>({ editor, shape, isEditing, value, fallback, bodyWidth, bodyHeight, renderHeight, operationKind, editAriaLabel, inputAriaLabel, dataUi, onValueChange, leading, color, offsetX, editable, showBackground, showDragHandle, }: ShapeHeadingControlProps<S>): import("react/jsx-runtime").JSX.Element;
@@ -22,6 +22,8 @@ export interface ShapeHeadingControlProps<S extends ShapeRecordBase = ShapeRecor
22
22
  readonly dataUi: ShapeHeadingDataUi;
23
23
  readonly onValueChange: (value: string) => void;
24
24
  readonly leading?: ReactNode;
25
+ readonly color?: string;
26
+ readonly offsetX?: number;
25
27
  readonly editable?: boolean;
26
28
  readonly showBackground?: boolean;
27
29
  readonly showDragHandle?: boolean;
@@ -30,4 +32,4 @@ export declare function createShapeHeadingDomEventGuard({ id, selector, }: {
30
32
  id: string;
31
33
  selector: string;
32
34
  }): CanvasDomEventGuard;
33
- export declare function ShapeHeadingControl<S extends ShapeRecordBase>({ editor, shape, isEditing, value, fallback, bodyWidth, bodyHeight, renderHeight, operationKind, editAriaLabel, inputAriaLabel, dataUi, onValueChange, leading, editable, showBackground, showDragHandle, }: ShapeHeadingControlProps<S>): import("react/jsx-runtime").JSX.Element;
35
+ export declare function ShapeHeadingControl<S extends ShapeRecordBase>({ editor, shape, isEditing, value, fallback, bodyWidth, bodyHeight, renderHeight, operationKind, editAriaLabel, inputAriaLabel, dataUi, onValueChange, leading, color, offsetX, editable, showBackground, showDragHandle, }: ShapeHeadingControlProps<S>): import("react/jsx-runtime").JSX.Element;
@@ -22,6 +22,8 @@ export interface ShapeHeadingControlProps<S extends ShapeRecordBase = ShapeRecor
22
22
  readonly dataUi: ShapeHeadingDataUi;
23
23
  readonly onValueChange: (value: string) => void;
24
24
  readonly leading?: ReactNode;
25
+ readonly color?: string;
26
+ readonly offsetX?: number;
25
27
  readonly editable?: boolean;
26
28
  readonly showBackground?: boolean;
27
29
  readonly showDragHandle?: boolean;
@@ -30,4 +32,4 @@ export declare function createShapeHeadingDomEventGuard({ id, selector, }: {
30
32
  id: string;
31
33
  selector: string;
32
34
  }): CanvasDomEventGuard;
33
- export declare function ShapeHeadingControl<S extends ShapeRecordBase>({ editor, shape, isEditing, value, fallback, bodyWidth, bodyHeight, renderHeight, operationKind, editAriaLabel, inputAriaLabel, dataUi, onValueChange, leading, editable, showBackground, showDragHandle, }: ShapeHeadingControlProps<S>): import("react/jsx-runtime").JSX.Element;
35
+ export declare function ShapeHeadingControl<S extends ShapeRecordBase>({ editor, shape, isEditing, value, fallback, bodyWidth, bodyHeight, renderHeight, operationKind, editAriaLabel, inputAriaLabel, dataUi, onValueChange, leading, color, offsetX, editable, showBackground, showDragHandle, }: ShapeHeadingControlProps<S>): import("react/jsx-runtime").JSX.Element;
@@ -22,6 +22,8 @@ export interface ShapeHeadingControlProps<S extends ShapeRecordBase = ShapeRecor
22
22
  readonly dataUi: ShapeHeadingDataUi;
23
23
  readonly onValueChange: (value: string) => void;
24
24
  readonly leading?: ReactNode;
25
+ readonly color?: string;
26
+ readonly offsetX?: number;
25
27
  readonly editable?: boolean;
26
28
  readonly showBackground?: boolean;
27
29
  readonly showDragHandle?: boolean;
@@ -30,4 +32,4 @@ export declare function createShapeHeadingDomEventGuard({ id, selector, }: {
30
32
  id: string;
31
33
  selector: string;
32
34
  }): CanvasDomEventGuard;
33
- export declare function ShapeHeadingControl<S extends ShapeRecordBase>({ editor, shape, isEditing, value, fallback, bodyWidth, bodyHeight, renderHeight, operationKind, editAriaLabel, inputAriaLabel, dataUi, onValueChange, leading, editable, showBackground, showDragHandle, }: ShapeHeadingControlProps<S>): import("react/jsx-runtime").JSX.Element;
35
+ export declare function ShapeHeadingControl<S extends ShapeRecordBase>({ editor, shape, isEditing, value, fallback, bodyWidth, bodyHeight, renderHeight, operationKind, editAriaLabel, inputAriaLabel, dataUi, onValueChange, leading, color, offsetX, editable, showBackground, showDragHandle, }: ShapeHeadingControlProps<S>): import("react/jsx-runtime").JSX.Element;
@@ -22,6 +22,8 @@ export interface ShapeHeadingControlProps<S extends ShapeRecordBase = ShapeRecor
22
22
  readonly dataUi: ShapeHeadingDataUi;
23
23
  readonly onValueChange: (value: string) => void;
24
24
  readonly leading?: ReactNode;
25
+ readonly color?: string;
26
+ readonly offsetX?: number;
25
27
  readonly editable?: boolean;
26
28
  readonly showBackground?: boolean;
27
29
  readonly showDragHandle?: boolean;
@@ -30,4 +32,4 @@ export declare function createShapeHeadingDomEventGuard({ id, selector, }: {
30
32
  id: string;
31
33
  selector: string;
32
34
  }): CanvasDomEventGuard;
33
- export declare function ShapeHeadingControl<S extends ShapeRecordBase>({ editor, shape, isEditing, value, fallback, bodyWidth, bodyHeight, renderHeight, operationKind, editAriaLabel, inputAriaLabel, dataUi, onValueChange, leading, editable, showBackground, showDragHandle, }: ShapeHeadingControlProps<S>): import("react/jsx-runtime").JSX.Element;
35
+ export declare function ShapeHeadingControl<S extends ShapeRecordBase>({ editor, shape, isEditing, value, fallback, bodyWidth, bodyHeight, renderHeight, operationKind, editAriaLabel, inputAriaLabel, dataUi, onValueChange, leading, color, offsetX, editable, showBackground, showDragHandle, }: ShapeHeadingControlProps<S>): import("react/jsx-runtime").JSX.Element;
@@ -22,6 +22,8 @@ export interface ShapeHeadingControlProps<S extends ShapeRecordBase = ShapeRecor
22
22
  readonly dataUi: ShapeHeadingDataUi;
23
23
  readonly onValueChange: (value: string) => void;
24
24
  readonly leading?: ReactNode;
25
+ readonly color?: string;
26
+ readonly offsetX?: number;
25
27
  readonly editable?: boolean;
26
28
  readonly showBackground?: boolean;
27
29
  readonly showDragHandle?: boolean;
@@ -30,4 +32,4 @@ export declare function createShapeHeadingDomEventGuard({ id, selector, }: {
30
32
  id: string;
31
33
  selector: string;
32
34
  }): CanvasDomEventGuard;
33
- export declare function ShapeHeadingControl<S extends ShapeRecordBase>({ editor, shape, isEditing, value, fallback, bodyWidth, bodyHeight, renderHeight, operationKind, editAriaLabel, inputAriaLabel, dataUi, onValueChange, leading, editable, showBackground, showDragHandle, }: ShapeHeadingControlProps<S>): import("react/jsx-runtime").JSX.Element;
35
+ export declare function ShapeHeadingControl<S extends ShapeRecordBase>({ editor, shape, isEditing, value, fallback, bodyWidth, bodyHeight, renderHeight, operationKind, editAriaLabel, inputAriaLabel, dataUi, onValueChange, leading, color, offsetX, editable, showBackground, showDragHandle, }: ShapeHeadingControlProps<S>): import("react/jsx-runtime").JSX.Element;
@@ -22,6 +22,8 @@ export interface ShapeHeadingControlProps<S extends ShapeRecordBase = ShapeRecor
22
22
  readonly dataUi: ShapeHeadingDataUi;
23
23
  readonly onValueChange: (value: string) => void;
24
24
  readonly leading?: ReactNode;
25
+ readonly color?: string;
26
+ readonly offsetX?: number;
25
27
  readonly editable?: boolean;
26
28
  readonly showBackground?: boolean;
27
29
  readonly showDragHandle?: boolean;
@@ -30,4 +32,4 @@ export declare function createShapeHeadingDomEventGuard({ id, selector, }: {
30
32
  id: string;
31
33
  selector: string;
32
34
  }): CanvasDomEventGuard;
33
- export declare function ShapeHeadingControl<S extends ShapeRecordBase>({ editor, shape, isEditing, value, fallback, bodyWidth, bodyHeight, renderHeight, operationKind, editAriaLabel, inputAriaLabel, dataUi, onValueChange, leading, editable, showBackground, showDragHandle, }: ShapeHeadingControlProps<S>): import("react/jsx-runtime").JSX.Element;
35
+ export declare function ShapeHeadingControl<S extends ShapeRecordBase>({ editor, shape, isEditing, value, fallback, bodyWidth, bodyHeight, renderHeight, operationKind, editAriaLabel, inputAriaLabel, dataUi, onValueChange, leading, color, offsetX, editable, showBackground, showDragHandle, }: ShapeHeadingControlProps<S>): import("react/jsx-runtime").JSX.Element;
@@ -22,6 +22,8 @@ export interface ShapeHeadingControlProps<S extends ShapeRecordBase = ShapeRecor
22
22
  readonly dataUi: ShapeHeadingDataUi;
23
23
  readonly onValueChange: (value: string) => void;
24
24
  readonly leading?: ReactNode;
25
+ readonly color?: string;
26
+ readonly offsetX?: number;
25
27
  readonly editable?: boolean;
26
28
  readonly showBackground?: boolean;
27
29
  readonly showDragHandle?: boolean;
@@ -30,4 +32,4 @@ export declare function createShapeHeadingDomEventGuard({ id, selector, }: {
30
32
  id: string;
31
33
  selector: string;
32
34
  }): CanvasDomEventGuard;
33
- export declare function ShapeHeadingControl<S extends ShapeRecordBase>({ editor, shape, isEditing, value, fallback, bodyWidth, bodyHeight, renderHeight, operationKind, editAriaLabel, inputAriaLabel, dataUi, onValueChange, leading, editable, showBackground, showDragHandle, }: ShapeHeadingControlProps<S>): import("react/jsx-runtime").JSX.Element;
35
+ export declare function ShapeHeadingControl<S extends ShapeRecordBase>({ editor, shape, isEditing, value, fallback, bodyWidth, bodyHeight, renderHeight, operationKind, editAriaLabel, inputAriaLabel, dataUi, onValueChange, leading, color, offsetX, editable, showBackground, showDragHandle, }: ShapeHeadingControlProps<S>): import("react/jsx-runtime").JSX.Element;
@@ -22,6 +22,8 @@ export interface ShapeHeadingControlProps<S extends ShapeRecordBase = ShapeRecor
22
22
  readonly dataUi: ShapeHeadingDataUi;
23
23
  readonly onValueChange: (value: string) => void;
24
24
  readonly leading?: ReactNode;
25
+ readonly color?: string;
26
+ readonly offsetX?: number;
25
27
  readonly editable?: boolean;
26
28
  readonly showBackground?: boolean;
27
29
  readonly showDragHandle?: boolean;
@@ -30,4 +32,4 @@ export declare function createShapeHeadingDomEventGuard({ id, selector, }: {
30
32
  id: string;
31
33
  selector: string;
32
34
  }): CanvasDomEventGuard;
33
- export declare function ShapeHeadingControl<S extends ShapeRecordBase>({ editor, shape, isEditing, value, fallback, bodyWidth, bodyHeight, renderHeight, operationKind, editAriaLabel, inputAriaLabel, dataUi, onValueChange, leading, editable, showBackground, showDragHandle, }: ShapeHeadingControlProps<S>): import("react/jsx-runtime").JSX.Element;
35
+ export declare function ShapeHeadingControl<S extends ShapeRecordBase>({ editor, shape, isEditing, value, fallback, bodyWidth, bodyHeight, renderHeight, operationKind, editAriaLabel, inputAriaLabel, dataUi, onValueChange, leading, color, offsetX, editable, showBackground, showDragHandle, }: ShapeHeadingControlProps<S>): import("react/jsx-runtime").JSX.Element;
@@ -22,6 +22,8 @@ export interface ShapeHeadingControlProps<S extends ShapeRecordBase = ShapeRecor
22
22
  readonly dataUi: ShapeHeadingDataUi;
23
23
  readonly onValueChange: (value: string) => void;
24
24
  readonly leading?: ReactNode;
25
+ readonly color?: string;
26
+ readonly offsetX?: number;
25
27
  readonly editable?: boolean;
26
28
  readonly showBackground?: boolean;
27
29
  readonly showDragHandle?: boolean;
@@ -30,4 +32,4 @@ export declare function createShapeHeadingDomEventGuard({ id, selector, }: {
30
32
  id: string;
31
33
  selector: string;
32
34
  }): CanvasDomEventGuard;
33
- export declare function ShapeHeadingControl<S extends ShapeRecordBase>({ editor, shape, isEditing, value, fallback, bodyWidth, bodyHeight, renderHeight, operationKind, editAriaLabel, inputAriaLabel, dataUi, onValueChange, leading, editable, showBackground, showDragHandle, }: ShapeHeadingControlProps<S>): import("react/jsx-runtime").JSX.Element;
35
+ export declare function ShapeHeadingControl<S extends ShapeRecordBase>({ editor, shape, isEditing, value, fallback, bodyWidth, bodyHeight, renderHeight, operationKind, editAriaLabel, inputAriaLabel, dataUi, onValueChange, leading, color, offsetX, editable, showBackground, showDragHandle, }: ShapeHeadingControlProps<S>): import("react/jsx-runtime").JSX.Element;
@@ -22,6 +22,8 @@ export interface ShapeHeadingControlProps<S extends ShapeRecordBase = ShapeRecor
22
22
  readonly dataUi: ShapeHeadingDataUi;
23
23
  readonly onValueChange: (value: string) => void;
24
24
  readonly leading?: ReactNode;
25
+ readonly color?: string;
26
+ readonly offsetX?: number;
25
27
  readonly editable?: boolean;
26
28
  readonly showBackground?: boolean;
27
29
  readonly showDragHandle?: boolean;
@@ -30,4 +32,4 @@ export declare function createShapeHeadingDomEventGuard({ id, selector, }: {
30
32
  id: string;
31
33
  selector: string;
32
34
  }): CanvasDomEventGuard;
33
- export declare function ShapeHeadingControl<S extends ShapeRecordBase>({ editor, shape, isEditing, value, fallback, bodyWidth, bodyHeight, renderHeight, operationKind, editAriaLabel, inputAriaLabel, dataUi, onValueChange, leading, editable, showBackground, showDragHandle, }: ShapeHeadingControlProps<S>): import("react/jsx-runtime").JSX.Element;
35
+ export declare function ShapeHeadingControl<S extends ShapeRecordBase>({ editor, shape, isEditing, value, fallback, bodyWidth, bodyHeight, renderHeight, operationKind, editAriaLabel, inputAriaLabel, dataUi, onValueChange, leading, color, offsetX, editable, showBackground, showDragHandle, }: ShapeHeadingControlProps<S>): import("react/jsx-runtime").JSX.Element;
@@ -22,6 +22,8 @@ export interface ShapeHeadingControlProps<S extends ShapeRecordBase = ShapeRecor
22
22
  readonly dataUi: ShapeHeadingDataUi;
23
23
  readonly onValueChange: (value: string) => void;
24
24
  readonly leading?: ReactNode;
25
+ readonly color?: string;
26
+ readonly offsetX?: number;
25
27
  readonly editable?: boolean;
26
28
  readonly showBackground?: boolean;
27
29
  readonly showDragHandle?: boolean;
@@ -30,4 +32,4 @@ export declare function createShapeHeadingDomEventGuard({ id, selector, }: {
30
32
  id: string;
31
33
  selector: string;
32
34
  }): CanvasDomEventGuard;
33
- export declare function ShapeHeadingControl<S extends ShapeRecordBase>({ editor, shape, isEditing, value, fallback, bodyWidth, bodyHeight, renderHeight, operationKind, editAriaLabel, inputAriaLabel, dataUi, onValueChange, leading, editable, showBackground, showDragHandle, }: ShapeHeadingControlProps<S>): import("react/jsx-runtime").JSX.Element;
35
+ export declare function ShapeHeadingControl<S extends ShapeRecordBase>({ editor, shape, isEditing, value, fallback, bodyWidth, bodyHeight, renderHeight, operationKind, editAriaLabel, inputAriaLabel, dataUi, onValueChange, leading, color, offsetX, editable, showBackground, showDragHandle, }: ShapeHeadingControlProps<S>): import("react/jsx-runtime").JSX.Element;
@@ -22,6 +22,8 @@ export interface ShapeHeadingControlProps<S extends ShapeRecordBase = ShapeRecor
22
22
  readonly dataUi: ShapeHeadingDataUi;
23
23
  readonly onValueChange: (value: string) => void;
24
24
  readonly leading?: ReactNode;
25
+ readonly color?: string;
26
+ readonly offsetX?: number;
25
27
  readonly editable?: boolean;
26
28
  readonly showBackground?: boolean;
27
29
  readonly showDragHandle?: boolean;
@@ -30,4 +32,4 @@ export declare function createShapeHeadingDomEventGuard({ id, selector, }: {
30
32
  id: string;
31
33
  selector: string;
32
34
  }): CanvasDomEventGuard;
33
- export declare function ShapeHeadingControl<S extends ShapeRecordBase>({ editor, shape, isEditing, value, fallback, bodyWidth, bodyHeight, renderHeight, operationKind, editAriaLabel, inputAriaLabel, dataUi, onValueChange, leading, editable, showBackground, showDragHandle, }: ShapeHeadingControlProps<S>): import("react/jsx-runtime").JSX.Element;
35
+ export declare function ShapeHeadingControl<S extends ShapeRecordBase>({ editor, shape, isEditing, value, fallback, bodyWidth, bodyHeight, renderHeight, operationKind, editAriaLabel, inputAriaLabel, dataUi, onValueChange, leading, color, offsetX, editable, showBackground, showDragHandle, }: ShapeHeadingControlProps<S>): import("react/jsx-runtime").JSX.Element;
@@ -22,6 +22,8 @@ export interface ShapeHeadingControlProps<S extends ShapeRecordBase = ShapeRecor
22
22
  readonly dataUi: ShapeHeadingDataUi;
23
23
  readonly onValueChange: (value: string) => void;
24
24
  readonly leading?: ReactNode;
25
+ readonly color?: string;
26
+ readonly offsetX?: number;
25
27
  readonly editable?: boolean;
26
28
  readonly showBackground?: boolean;
27
29
  readonly showDragHandle?: boolean;
@@ -30,4 +32,4 @@ export declare function createShapeHeadingDomEventGuard({ id, selector, }: {
30
32
  id: string;
31
33
  selector: string;
32
34
  }): CanvasDomEventGuard;
33
- export declare function ShapeHeadingControl<S extends ShapeRecordBase>({ editor, shape, isEditing, value, fallback, bodyWidth, bodyHeight, renderHeight, operationKind, editAriaLabel, inputAriaLabel, dataUi, onValueChange, leading, editable, showBackground, showDragHandle, }: ShapeHeadingControlProps<S>): import("react/jsx-runtime").JSX.Element;
35
+ export declare function ShapeHeadingControl<S extends ShapeRecordBase>({ editor, shape, isEditing, value, fallback, bodyWidth, bodyHeight, renderHeight, operationKind, editAriaLabel, inputAriaLabel, dataUi, onValueChange, leading, color, offsetX, editable, showBackground, showDragHandle, }: ShapeHeadingControlProps<S>): import("react/jsx-runtime").JSX.Element;