Skip to content

Commit

Permalink
Deploy preview for PR 190 🛫
Browse files Browse the repository at this point in the history
  • Loading branch information
basilgood committed Aug 2, 2024
1 parent 2ed3688 commit b04199a
Show file tree
Hide file tree
Showing 73 changed files with 79,293 additions and 0 deletions.
Binary file added pr/pr-190/a_size.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions pr/pr-190/assets/Color-KGDBMAHA-CxwUOS4Q.js

Large diffs are not rendered by default.

605 changes: 605 additions & 0 deletions pr/pr-190/assets/DocsRenderer-PKQXORMH-dw0Pqicf.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions pr/pr-190/assets/_commonjsHelpers-Cpj98o6Y.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

622 changes: 622 additions & 0 deletions pr/pr-190/assets/cosmoz-image-viewer-594xMIeL.js

Large diffs are not rendered by default.

90 changes: 90 additions & 0 deletions pr/pr-190/assets/cosmoz-image-viewer.stories-d8uTFxcO.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
import{x as u}from"./lit-html-CuJYtJU3.js";import"./cosmoz-image-viewer-594xMIeL.js";import"./directive-helpers-CE2IdeAx.js";import"./iframe-COMQx1JQ.js";import"../sb-preview/runtime.js";const $=["stockholm.jpg","this-is-a-loading-error.jpg",()=>"a_size.png",()=>new Promise(o=>setTimeout(()=>o("strasbourg.jpg"),500))],f={title:"Cosmoz Image Viewer",component:"cosmoz-image-viewer"},s=({showDetach:o,showFullscreen:m,showPageNumber:a,showNav:e,loop:n,showZoom:c,detachedShowZoom:i})=>u`
<cosmoz-image-viewer
?show-detach=${o}
?show-fullscreen=${m}
?show-page-number=${a}
?show-nav=${e}
?loop=${n}
?show-zoom=${c}
?detached-show-zoom=${i}
.images=${$}
></cosmoz-image-viewer>
<cosmoz-image-viewer
?show-detach=${o}
?show-fullscreen=${m}
?show-page-number=${a}
?show-nav=${e}
?loop=${n}
?show-zoom=${c}
?detached-show-zoom=${i}
.images=${["cosmos1.jpg","cosmos2.jpg"]}
></cosmoz-image-viewer>
`;s.args={showDetach:!0,showFullscreen:!0,showPageNumber:!0,showNav:!0,loop:!0,showZoom:!1,detachedShowZoom:!1};const r=()=>{const o=["stockholm.jpg","strasbourg.jpg"],m=["cosmos1.jpg","cosmos2.jpg"];return u`
<cosmoz-image-viewer
show-detach
show-fullscreen
show-page-number
show-nav
loop
.images=${o}
></cosmoz-image-viewer>
<button
@click=${a=>{const e=a.target.previousElementSibling,n=e.images===o?m:o;return e.images=n,!1}}
>
Switch images
</button>
`};var t,g,w;s.parameters={...s.parameters,docs:{...(t=s.parameters)==null?void 0:t.docs,source:{originalSource:`({
showDetach,
showFullscreen,
showPageNumber,
showNav,
loop,
showZoom,
detachedShowZoom
}) => html\`
<cosmoz-image-viewer
?show-detach=\${showDetach}
?show-fullscreen=\${showFullscreen}
?show-page-number=\${showPageNumber}
?show-nav=\${showNav}
?loop=\${loop}
?show-zoom=\${showZoom}
?detached-show-zoom=\${detachedShowZoom}
.images=\${images}
></cosmoz-image-viewer>
<cosmoz-image-viewer
?show-detach=\${showDetach}
?show-fullscreen=\${showFullscreen}
?show-page-number=\${showPageNumber}
?show-nav=\${showNav}
?loop=\${loop}
?show-zoom=\${showZoom}
?detached-show-zoom=\${detachedShowZoom}
.images=\${['cosmos1.jpg', 'cosmos2.jpg']}
></cosmoz-image-viewer>
\``,...(w=(g=s.parameters)==null?void 0:g.docs)==null?void 0:w.source}}};var h,p,l;r.parameters={...r.parameters,docs:{...(h=r.parameters)==null?void 0:h.docs,source:{originalSource:`() => {
const images1 = ['stockholm.jpg', 'strasbourg.jpg'],
images2 = ['cosmos1.jpg', 'cosmos2.jpg'];
return html\`
<cosmoz-image-viewer
show-detach
show-fullscreen
show-page-number
show-nav
loop
.images=\${images1}
></cosmoz-image-viewer>
<button
@click=\${e => {
const ciw = e.target.previousElementSibling,
newImages = ciw.images === images1 ? images2 : images1;
ciw.images = newImages;
return false;
}}
>
Switch images
</button>
\`;
}`,...(l=(p=r.parameters)==null?void 0:p.docs)==null?void 0:l.source}}};const S=["Basic","Issue21"];export{s as Basic,r as Issue21,S as __namedExportsOrder,f as default};
5 changes: 5 additions & 0 deletions pr/pr-190/assets/directive-helpers-CE2IdeAx.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions pr/pr-190/assets/entry-preview-docs-DVCgRko2.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions pr/pr-190/assets/entry-preview-hWtfUHLy.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 24 additions & 0 deletions pr/pr-190/assets/haunted-pan-zoom.stories-71tUKLTx.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import{x as p}from"./lit-html-CuJYtJU3.js";import"./cosmoz-image-viewer-594xMIeL.js";import"./directive-helpers-CE2IdeAx.js";import"./iframe-COMQx1JQ.js";import"../sb-preview/runtime.js";const z={title:"Pan Zoom",component:"haunted-pan-zoom"},r=({disabled:t,height:a,zoomStiffness:i,panStiffness:m})=>p`
<haunted-pan-zoom
src="a_size.png"
style="height: ${a}px;"
?disabled=${t}
.zoomStiffness=${i}
.panStiffness=${m}
>
</haunted-pan-zoom>
`,n=r.bind({});n.args={disabled:!1,height:400,zoomStiffness:.3,panStiffness:1};var e,o,s;n.parameters={...n.parameters,docs:{...(e=n.parameters)==null?void 0:e.docs,source:{originalSource:`({
disabled,
height,
zoomStiffness,
panStiffness
}) => html\`
<haunted-pan-zoom
src="a_size.png"
style="height: \${height}px;"
?disabled=\${disabled}
.zoomStiffness=\${zoomStiffness}
.panStiffness=\${panStiffness}
>
</haunted-pan-zoom>
\``,...(s=(o=n.parameters)==null?void 0:o.docs)==null?void 0:s.source}}};const S=["PanZoom"];export{n as PanZoom,S as __namedExportsOrder,z as default};
22 changes: 22 additions & 0 deletions pr/pr-190/assets/html2canvas.esm-CBrSDip1.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions pr/pr-190/assets/iframe-COMQx1JQ.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pr/pr-190/assets/index-C3uD5gQ2.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pr/pr-190/assets/index-D-8MO0q_.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions pr/pr-190/assets/index-DrFu-skq.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
function l(o){for(var f=[],i=1;i<arguments.length;i++)f[i-1]=arguments[i];var n=Array.from(typeof o=="string"?[o]:o);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,"");var s=n.reduce(function(t,g){var a=g.match(/\n([\t ]+|(?!\s).)/g);return a?t.concat(a.map(function(u){var r,e;return(e=(r=u.match(/[\t ]/g))===null||r===void 0?void 0:r.length)!==null&&e!==void 0?e:0})):t},[]);if(s.length){var d=new RegExp(`
[ ]{`+Math.min.apply(Math,s)+"}","g");n=n.map(function(t){return t.replace(d,`
`)})}n[0]=n[0].replace(/^\r?\n/,"");var c=n[0];return f.forEach(function(t,g){var a=c.match(/(?:^|\n)( *)$/),u=a?a[1]:"",r=t;typeof t=="string"&&t.includes(`
`)&&(r=String(t).split(`
`).map(function(e,h){return h===0?e:""+u+e}).join(`
`)),c+=r+n[g+1]}),c}export{l as d};
Loading

0 comments on commit b04199a

Please sign in to comment.