@ngroznykh/papirus 0.7.1 → 0.7.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.
- package/dist/elements/Node.d.ts +26 -1
- package/dist/elements/Node.d.ts.map +1 -1
- package/dist/elements/composite/CompositeNode.d.ts.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/papirus.js +72 -9
- package/dist/papirus.js.map +1 -1
- package/dist/utils/resolveContentInset.d.ts +16 -0
- package/dist/utils/resolveContentInset.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ContentInsetSides, Size } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Per-side flags: true = inset scales with node size relative to base size.
|
|
4
|
+
*/
|
|
5
|
+
export interface ContentInsetScaleSides {
|
|
6
|
+
top?: boolean;
|
|
7
|
+
right?: boolean;
|
|
8
|
+
bottom?: boolean;
|
|
9
|
+
left?: boolean;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Resolve stored (reference) content inset to absolute px for the current node size.
|
|
13
|
+
* Vertical sides (top/bottom) scale with height; horizontal (left/right) with width.
|
|
14
|
+
*/
|
|
15
|
+
export declare function resolveContentInset(inset: Required<ContentInsetSides>, scale: ContentInsetScaleSides | undefined, nodeSize: Size, baseSize: Size | undefined): Required<ContentInsetSides>;
|
|
16
|
+
//# sourceMappingURL=resolveContentInset.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolveContentInset.d.ts","sourceRoot":"","sources":["../../src/utils/resolveContentInset.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAEvD;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAYD;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,QAAQ,CAAC,iBAAiB,CAAC,EAClC,KAAK,EAAE,sBAAsB,GAAG,SAAS,EACzC,QAAQ,EAAE,IAAI,EACd,QAAQ,EAAE,IAAI,GAAG,SAAS,GACzB,QAAQ,CAAC,iBAAiB,CAAC,CAa7B"}
|