@webx-ui/module-blocks 0.9.1 → 0.9.2
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/BlockThumb.d.ts +8 -0
- package/dist/index.js +1602 -1564
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/BlockThumb.d.ts
CHANGED
|
@@ -9,6 +9,11 @@ import { BlockThumbnail } from './types';
|
|
|
9
9
|
* Drawn in the site's own clothes when the site has a stage: its stylesheets and fonts, and
|
|
10
10
|
* the wrappers the block sits in on a page, without the header, the footer or any script
|
|
11
11
|
* (see `siteShell`). Bare until that arrives, and bare where there is none.
|
|
12
|
+
*
|
|
13
|
+
* `fit` is for components. A block is a band of a page, and the top of it at full width is the
|
|
14
|
+
* right picture; a component is a whole thing — a card taller than it is wide — and cut to the
|
|
15
|
+
* height of the box it shows only its photo. So with `fit` the root of what was drawn is measured
|
|
16
|
+
* inside the frame and scaled to fit the box both ways, in the middle of it.
|
|
12
17
|
*/
|
|
13
18
|
type __VLS_Props = {
|
|
14
19
|
thumbnail: BlockThumbnail | null;
|
|
@@ -16,10 +21,13 @@ type __VLS_Props = {
|
|
|
16
21
|
width?: number;
|
|
17
22
|
/** How tall the picture is, in the panel's pixels. */
|
|
18
23
|
height?: number;
|
|
24
|
+
/** Scale what was drawn to fit the box, rather than the width to fill it. */
|
|
25
|
+
fit?: boolean;
|
|
19
26
|
};
|
|
20
27
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
21
28
|
width: number;
|
|
22
29
|
height: number;
|
|
30
|
+
fit: boolean;
|
|
23
31
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
24
32
|
box: HTMLDivElement;
|
|
25
33
|
}, HTMLDivElement>;
|