narraleaf-react 0.42.2 → 0.42.4

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.
@@ -74,10 +74,24 @@ export type FanPatternOptions = {
74
74
  export type BlindsPatternOptions = {
75
75
  /** Slat orientation, or any CSS gradient angle in degrees. @default "horizontal" */
76
76
  orientation?: BlindsOrientation | number;
77
- /** Number of slats. @default 8 */
77
+ /** Number of slats, rounded to a whole one. @default 8 */
78
78
  slats?: number;
79
79
  /** Width of each slat's soft edge, in percent of the frame. @default 0 (hard slats) */
80
80
  feather?: number;
81
+ /**
82
+ * How far apart the slats start, as a share of the run: `0` moves every slat
83
+ * together, `1` runs them strictly one after the next along the axis, and the
84
+ * values between overlap them. Whatever the spread, the last slat still
85
+ * finishes at `t = 1`, so the run is not lengthened - the earlier slats simply
86
+ * finish sooner. A negative value runs the delay back the other way along the
87
+ * axis (the last slat leads).
88
+ *
89
+ * A staggered blind costs one gradient layer per slat, where the unstaggered
90
+ * one is a single tiled gradient whatever `slats` says - so a high slat count
91
+ * is much the more expensive mask here.
92
+ * @default 0
93
+ */
94
+ stagger?: number;
81
95
  };
82
96
  export type DotsPatternOptions = {
83
97
  /** Number of tile rows. @default 6 */
@@ -135,8 +149,8 @@ export declare class Mask {
135
149
  static fan(options?: FanPatternOptions): MaskPattern;
136
150
  /**
137
151
  * Venetian slats widening until they cover the frame. Hard-edged by
138
- * default; raise `feather` for soft slats, or pass an angle for slanted
139
- * ones.
152
+ * default; raise `feather` for soft slats, pass an angle for slanted ones,
153
+ * or `stagger` them so they open in turn along the axis instead of together.
140
154
  */
141
155
  static blinds(options?: BlindsPatternOptions): MaskPattern;
142
156
  /**
@@ -11,7 +11,18 @@ export type BlindsOrientation = "horizontal" | "vertical";
11
11
  export declare function clamp01(value: number): number;
12
12
  /** The `mask-image` triplet, mirrored to the `-webkit-` prefix for WebKit. */
13
13
  export declare function maskStyle(image: string, size?: string, repeat?: string): CSSProps;
14
- /** Full-bleed positioning for a synthetic colour overlay layer. */
14
+ /**
15
+ * Full-bleed positioning for a synthetic colour overlay layer.
16
+ *
17
+ * The box reaches {@link OVERLAY_BLEED} past the frame on every side. The stage scales by a
18
+ * non-integer factor, so the images this covers are laid out at fractional sizes and the browser
19
+ * draws their outermost row of pixels with partial coverage; a colour box that matches the frame
20
+ * exactly stops at the whole pixel inside that row and leaves it showing, as a hairline of the
21
+ * picture along the top or the bottom edge. For a fade *through* a colour - which is meant to
22
+ * reach a frame of solid colour and hand the images over behind it - that hairline is the one
23
+ * thing the frame must not have. The layer is synthetic and has no content to distort, so
24
+ * growing it costs nothing.
25
+ */
15
26
  export declare function overlayBase(color: string): CSSProps;
16
27
  /** CSS gradient direction keyword for a wipe travelling toward `direction`. */
17
28
  export declare function wipeGradientDir(direction: TransformDefinitions.WipeDirection): string;