vistaview 0.10.19 → 0.10.20
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/README.md +11 -5
- package/dist/svelte.d.ts +1 -6
- package/dist/svelte.d.ts.map +1 -1
- package/dist/svelte.js +29 -1828
- package/package.json +1 -1
- package/dist/VistaView.svelte.d.ts +0 -1
package/README.md
CHANGED
|
@@ -373,15 +373,21 @@ function Gallery() {
|
|
|
373
373
|
|
|
374
374
|
```svelte
|
|
375
375
|
<script>
|
|
376
|
-
import {
|
|
376
|
+
import { useVistaView } from 'vistaview/svelte';
|
|
377
377
|
import 'vistaview/style.css';
|
|
378
|
+
|
|
379
|
+
const id = 'gallery-' + Math.random().toString(36).slice(2);
|
|
380
|
+
const vista = useVistaView({
|
|
381
|
+
elements: `#${id} a`,
|
|
382
|
+
});
|
|
378
383
|
</script>
|
|
379
384
|
|
|
380
|
-
<
|
|
381
|
-
<a href="/full.jpg">
|
|
382
|
-
<img src="/thumb.jpg" alt="Photo" />
|
|
385
|
+
<div id={id}>
|
|
386
|
+
<a href="/images/full.jpg">
|
|
387
|
+
<img src="/images/thumb.jpg" alt="Photo" />
|
|
383
388
|
</a>
|
|
384
|
-
</
|
|
389
|
+
<button on:click={() => vista.open(0)}>Open Gallery</button>
|
|
390
|
+
</div>
|
|
385
391
|
```
|
|
386
392
|
|
|
387
393
|
## Accessibility
|
package/dist/svelte.d.ts
CHANGED
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
import { VistaParamsNeo, VistaInterface
|
|
1
|
+
import { VistaParamsNeo, VistaInterface } from './vistaview';
|
|
2
2
|
export declare function useVistaView(options: VistaParamsNeo): VistaInterface;
|
|
3
|
-
export interface VistaViewProps extends VistaOpt {
|
|
4
|
-
selector?: string;
|
|
5
|
-
ref?: VistaInterface;
|
|
6
|
-
}
|
|
7
|
-
export { default as VistaView } from './VistaView.svelte';
|
|
8
3
|
//# sourceMappingURL=svelte.d.ts.map
|
package/dist/svelte.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"svelte.d.ts","sourceRoot":"","sources":["../src/svelte.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"svelte.d.ts","sourceRoot":"","sources":["../src/svelte.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElE,wBAAgB,YAAY,CAAC,OAAO,EAAE,cAAc,GAAG,cAAc,CA8BpE"}
|