monowind 0.2.10 → 0.2.11
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.
- package/dist/borders.d.ts +6 -6
- package/dist/borders.d.ts.map +1 -1
- package/dist/cdn.js +102 -54
- package/dist/cdn.js.map +1 -1
- package/dist/element.d.ts.map +1 -1
- package/dist/floats.d.ts +43 -0
- package/dist/floats.d.ts.map +1 -0
- package/dist/index.js +2023 -1497
- package/dist/index.js.map +1 -1
- package/dist/lattice.d.ts +28 -0
- package/dist/lattice.d.ts.map +1 -0
- package/dist/layout.d.ts +27 -6
- package/dist/layout.d.ts.map +1 -1
- package/dist/multicol.d.ts.map +1 -1
- package/dist/plain-text.d.ts.map +1 -1
- package/dist/positioning.d.ts.map +1 -1
- package/dist/render.d.ts +5 -0
- package/dist/render.d.ts.map +1 -1
- package/dist/sticky.d.ts +32 -0
- package/dist/sticky.d.ts.map +1 -0
- package/dist/style.d.ts.map +1 -1
- package/dist/table.d.ts +1 -6
- package/dist/table.d.ts.map +1 -1
- package/dist/tree.d.ts.map +1 -1
- package/dist/types.d.ts +71 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/wrap.d.ts +5 -0
- package/dist/wrap.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/styles.css +63 -15
package/dist/element.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"element.d.ts","sourceRoot":"","sources":["../src/element.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"element.d.ts","sourceRoot":"","sources":["../src/element.ts"],"names":[],"mappings":"AAkOA,QAAA,MAAM,eAAe,EAEhB,OAAO,WAAW,CAAC;AAExB,qBAAa,eAAgB,SAAQ,eAAe;;IAClD,MAAM,CAAC,kBAAkB,WAAuB;IA4IhD,cAsBC;IAkBD,iBAAiB,IAAI,IAAI,CAoGxB;IAED,oBAAoB,IAAI,IAAI,CA4C3B;IA0oCD,wBAAwB,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CA+B1F;IAED;;;;0DAIsD;IACtD,WAAW,IAAI,MAAM,CAIpB;CA8QF;AAED;+DAC+D;AAC/D,wBAAgB,cAAc,IAAI,IAAI,CAIrC;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,WAAW,EAAE,eAAe,CAAC;KAC9B;CACF;AAyDD;;;;;;;;;yDASyD;AACzD,wBAAgB,cAAc,CAC5B,EAAE,EAAE,MAAM,EACV,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,EAChB,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,GACX,MAAM,CAMR"}
|
package/dist/floats.d.ts
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Float geometry (specs/float.md): the exclusion rectangles a block
|
|
3
|
+
* container's floats reserve, and the queries block layout makes of
|
|
4
|
+
* them — the usable span for a line box, where the next float lands,
|
|
5
|
+
* and how far `clear` pushes a box down. Pure rect math in the
|
|
6
|
+
* container's CONTENT-box cells; placement and native flow live in
|
|
7
|
+
* layout.ts.
|
|
8
|
+
*/
|
|
9
|
+
export interface FloatBox {
|
|
10
|
+
/** Margin box, in the container's content-box cells. */
|
|
11
|
+
x: number;
|
|
12
|
+
y: number;
|
|
13
|
+
width: number;
|
|
14
|
+
height: number;
|
|
15
|
+
side: "left" | "right";
|
|
16
|
+
}
|
|
17
|
+
/** The horizontal span left for a line box of `height` rows at row `y`:
|
|
18
|
+
* past the left floats it overlaps, short of the right ones. */
|
|
19
|
+
export declare function bandAt(boxes: FloatBox[], contentWidth: number, y: number, height?: number): {
|
|
20
|
+
x: number;
|
|
21
|
+
width: number;
|
|
22
|
+
};
|
|
23
|
+
/** Where a float of this margin-box size lands (CSS 2.1 §9.5.1): the
|
|
24
|
+
* first fit from the flow cursor, never above an earlier float's top. */
|
|
25
|
+
export declare function placeFloat(boxes: FloatBox[], contentWidth: number, side: "left" | "right", top: number, width: number, height: number): {
|
|
26
|
+
x: number;
|
|
27
|
+
y: number;
|
|
28
|
+
};
|
|
29
|
+
/** The first row from `top` whose band holds a box of this margin-box
|
|
30
|
+
* size — that row, else the first float bottom below it that does —
|
|
31
|
+
* and the box's x at the band's `side`. A box wider than every band
|
|
32
|
+
* starts at the last candidate's edge and overflows, per CSS. */
|
|
33
|
+
export declare function firstFit(boxes: FloatBox[], contentWidth: number, side: "left" | "right", top: number, width: number, height: number): {
|
|
34
|
+
x: number;
|
|
35
|
+
y: number;
|
|
36
|
+
};
|
|
37
|
+
/** The row a `clear` box starts at: below the margin boxes of the floats
|
|
38
|
+
* it names, when they reach past the flow cursor. */
|
|
39
|
+
export declare function clearanceBelow(boxes: FloatBox[], clear: "none" | "left" | "right" | "both", y: number): number;
|
|
40
|
+
/** The lowest float bottom, or zero: a container contains its floats
|
|
41
|
+
* (specs/float.md), so its content height reaches here. */
|
|
42
|
+
export declare function floatsBottom(boxes: FloatBox[]): number;
|
|
43
|
+
//# sourceMappingURL=floats.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"floats.d.ts","sourceRoot":"","sources":["../src/floats.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,MAAM,WAAW,QAAQ;IACvB,wDAAwD;IACxD,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED;gEACgE;AAChE,wBAAgB,MAAM,CACpB,KAAK,EAAE,QAAQ,EAAE,EACjB,YAAY,EAAE,MAAM,EACpB,CAAC,EAAE,MAAM,EACT,MAAM,SAAI,GACT;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,C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