narraleaf-react 0.42.1 → 0.42.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.
|
@@ -53,6 +53,10 @@ export declare class PositionUtils {
|
|
|
53
53
|
* animatable piece and any align change would be silently dropped.
|
|
54
54
|
*
|
|
55
55
|
* Without a dimension it falls back to the legacy `calc(<pos> + <offset>px)` form.
|
|
56
|
+
*
|
|
57
|
+
* Only an absent component resolves to `auto`. `0` is a position - the left or bottom edge of
|
|
58
|
+
* the stage - and reading it as "not stated" would leave the axis unset, which drops the
|
|
59
|
+
* displayable out of its absolute placement altogether rather than putting it on the edge.
|
|
56
60
|
*/
|
|
57
61
|
static calc(pos: number | string, offset?: UnknownAble<number>, dimension?: number): string;
|
|
58
62
|
/**
|
|
@@ -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,
|
|
139
|
-
*
|
|
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
|
/**
|