@formepdf/shared 0.32.0 → 0.34.0
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/style.js +2 -0
- package/dist/types.d.ts +3 -0
- package/package.json +1 -1
package/dist/style.js
CHANGED
|
@@ -357,6 +357,8 @@ export function mapStyle(style) {
|
|
|
357
357
|
result.bottom = style.bottom;
|
|
358
358
|
if (style.left !== undefined)
|
|
359
359
|
result.left = style.left;
|
|
360
|
+
if (style.zIndex !== undefined)
|
|
361
|
+
result.zIndex = Math.trunc(style.zIndex);
|
|
360
362
|
// Page behavior
|
|
361
363
|
if (style.wrap !== undefined)
|
|
362
364
|
result.wrap = style.wrap;
|
package/dist/types.d.ts
CHANGED
|
@@ -191,6 +191,8 @@ export interface Style {
|
|
|
191
191
|
right?: number;
|
|
192
192
|
bottom?: number;
|
|
193
193
|
left?: number;
|
|
194
|
+
/** Paint order of an absolutely positioned box among its siblings; a negative value paints it beneath the in-flow content */
|
|
195
|
+
zIndex?: number;
|
|
194
196
|
wrap?: boolean;
|
|
195
197
|
breakBefore?: boolean;
|
|
196
198
|
minWidowLines?: number;
|
|
@@ -800,6 +802,7 @@ export interface FormeStyle {
|
|
|
800
802
|
right?: number;
|
|
801
803
|
bottom?: number;
|
|
802
804
|
left?: number;
|
|
805
|
+
zIndex?: number;
|
|
803
806
|
wrap?: boolean;
|
|
804
807
|
breakBefore?: boolean;
|
|
805
808
|
minWidowLines?: number;
|