@hkdigital/lib-sveltekit 0.1.48 → 0.1.49
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/components/layout/grid-layers/GridLayers.svelte +3 -3
- package/dist/widgets/presenter/ImageSlide.svelte +6 -2
- package/dist/widgets/presenter/ImageSlide.svelte.d.ts +2 -0
- package/dist/widgets/presenter/Presenter.state.svelte.d.ts +1 -0
- package/dist/widgets/presenter/Presenter.state.svelte.js +4 -0
- package/package.json +1 -1
@@ -143,7 +143,7 @@
|
|
143
143
|
{...attrs}
|
144
144
|
>
|
145
145
|
<div
|
146
|
-
data-section="
|
146
|
+
data-section="grid"
|
147
147
|
class="absolute inset-0 grid {cellBase} {cellBg} {cellPadding} {cellMargin} {cellClasses}"
|
148
148
|
style={cellStyle}
|
149
149
|
>
|
@@ -154,12 +154,12 @@
|
|
154
154
|
<style>
|
155
155
|
/* All children of the layer share the same grid area
|
156
156
|
but aren't absolutely positioned */
|
157
|
-
[data-section='
|
157
|
+
[data-section='grid'] {
|
158
158
|
grid-template-columns: 1fr;
|
159
159
|
grid-template-rows: 1fr;
|
160
160
|
}
|
161
161
|
|
162
|
-
[data-section='
|
162
|
+
[data-section='grid'] > :global(*) {
|
163
163
|
grid-column: 1;
|
164
164
|
grid-row: 1;
|
165
165
|
z-index: 0; /* Base z-index to allow explicit stacking order */
|
@@ -8,6 +8,8 @@
|
|
8
8
|
* nextSlideLabel?: string,
|
9
9
|
* presenter?: { gotoSlide: (name: string) => void, getCurrentSlideName: () => string },
|
10
10
|
* getLoadingController?: () => { loaded: () => void, cancel: () => void }
|
11
|
+
* fit?: string,
|
12
|
+
* position?: string,
|
11
13
|
* [attr: string]: any
|
12
14
|
* }}
|
13
15
|
*/
|
@@ -17,6 +19,8 @@
|
|
17
19
|
nextSlideLabel,
|
18
20
|
presenter,
|
19
21
|
getLoadingController,
|
22
|
+
fit = 'cover',
|
23
|
+
position = 'center center',
|
20
24
|
...attrs
|
21
25
|
} = $props();
|
22
26
|
|
@@ -52,8 +56,8 @@
|
|
52
56
|
<div class="absolute inset-0" class:invisible={!show}>
|
53
57
|
<ImageBox
|
54
58
|
{imageMeta}
|
55
|
-
fit
|
56
|
-
position
|
59
|
+
{fit}
|
60
|
+
{position}
|
57
61
|
onProgress={progressListener}
|
58
62
|
{...attrs}
|
59
63
|
/>
|
@@ -70,4 +70,5 @@ export type Transition = import("./typedef").Transition;
|
|
70
70
|
export type Layer = import("./typedef").Layer;
|
71
71
|
export type PresenterRef = import("./typedef").PresenterRef;
|
72
72
|
export type LoadController = import("./typedef").LoadController;
|
73
|
+
export type ListenerParams = import("./typedef").ListenerParams;
|
73
74
|
import { HkPromise } from '../../classes/promise/index.js';
|
@@ -28,6 +28,10 @@ import { STAGE_BEFORE, STAGE_SHOW } from './constants.js';
|
|
28
28
|
* @typedef {import("./typedef").LoadController} LoadController
|
29
29
|
*/
|
30
30
|
|
31
|
+
/**
|
32
|
+
* @typedef {import("./typedef").ListenerParams} ListenerParams
|
33
|
+
*/
|
34
|
+
|
31
35
|
const Z_BACK = 0;
|
32
36
|
const Z_FRONT = 10;
|
33
37
|
|