@cntrl-site/components 1.0.65-alpha.1 → 1.0.65-alpha.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.
@@ -39,7 +39,13 @@ type PretextSettings = {
39
39
  fitText?: 'on' | 'off';
40
40
  dropCap?: 'on' | 'off';
41
41
  dropCapLines?: number;
42
+ dropCapSize?: number;
42
43
  image?: string | null;
44
+ /** Focal point of the image within the shape's mask, 0..1 (like object-position). Defaults to center. */
45
+ imageFocalX?: number;
46
+ imageFocalY?: number;
47
+ /** Extra zoom on top of the cover fit. 1 = just covers the mask. */
48
+ imageScale?: number;
43
49
  backgroundColor?: string;
44
50
  textColor?: string;
45
51
  linkColor?: string;
@@ -111,6 +117,16 @@ export declare function settingsForEditablePreset(shape: ShapeId, aspect?: numbe
111
117
  pathViewBox: string;
112
118
  };
113
119
  export declare function moveNodeTo(contours: VecContour[], contourIndex: number, nodeIndex: number, point: Pt): VecContour[];
120
+ /** Translates a set of selected anchors (and their handles) together, leaving the rest of the shape fixed. */
121
+ export declare function moveSelectedNodesBy(contours: VecContour[], selection: {
122
+ contour: number;
123
+ node: number;
124
+ }[], dx: number, dy: number): VecContour[];
125
+ /** Removes several nodes at once — descending per contour so earlier removals don't shift later indices. */
126
+ export declare function removeContourNodes(contours: VecContour[], selection: {
127
+ contour: number;
128
+ node: number;
129
+ }[]): VecContour[];
114
130
  export declare function setNodeHandle(contours: VecContour[], contourIndex: number, nodeIndex: number, which: 'in' | 'out', point: Pt, mirror: boolean): VecContour[];
115
131
  /** Pulls a handle back into its anchor, straightening that side of the node. */
116
132
  export declare function clearNodeHandle(contours: VecContour[], contourIndex: number, nodeIndex: number, which: 'in' | 'out'): VecContour[];