UNPKG

@galaxyproject/galaxy-client

Version:

Galaxy client application build system

1 lines 909 B
"use strict";(self.webpackChunk_galaxyproject_galaxy_client=self.webpackChunk_galaxyproject_galaxy_client||[]).push([[231],{65231:(e,t,n)=>{n.r(t),n.d(t,{default:()=>s});var l=n(62893),a=n(46517),i=n(62949);const r=(0,l.defineComponent)({__name:"VegaWrapper",props:{spec:null,fillWidth:{type:Boolean,default:!0}},setup(e){const t=e,n=(0,l.computed)((()=>t.fillWidth?{width:"100%"}:{})),r=(0,l.ref)(null);let s;async function o(){if(s&&s.finalize(),null!==r.value){const e=await(0,i.Ay)(r.value,t.spec,{renderer:"svg"});s=e.view}}return(0,l.onMounted)(o),(0,l.watch)(t,o,{immediate:!0,deep:!0}),(0,a.wYm)(r,(()=>{s&&s.resize()})),(0,l.onBeforeUnmount)((()=>{s&&s.finalize()})),{__sfc:!0,props:t,style:n,chartContainer:r,vegaView:s,embedChart:o}}});const s=(0,n(14486).A)(r,(function(){return(0,this._self._c)("div",{ref:"chartContainer",style:this._self._setupProxy.style})}),[],!1,null,null,null).exports}}]);