1 line
22 KiB
JavaScript
1 line
22 KiB
JavaScript
|
|
"use strict";(self.webpackChunk_pyviz_jupyterlab_pyviz=self.webpackChunk_pyviz_jupyterlab_pyviz||[]).push([[30],{30:(e,t,n)=>{n.r(t),n.d(t,{default:()=>ee});var o=n(797),i=n(368),r=n(510),a=n(311),s=n(326),d=n(8),c=n(557),l=n(717),p=n(452);const m='<?xml version="1.0" encoding="UTF-8" standalone="no"?>\n<svg\n xmlns:dc="http://purl.org/dc/elements/1.1/"\n xmlns:cc="http://creativecommons.org/ns#"\n xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"\n xmlns:svg="http://www.w3.org/2000/svg"\n xmlns="http://www.w3.org/2000/svg"\n width="63.84808mm"\n height="63.912464mm"\n viewBox="0 0 63.84808 63.912464"\n version="1.1"\n id="svg867">\n <defs\n id="defs861" />\n <metadata\n id="metadata864">\n <rdf:RDF>\n <cc:Work\n rdf:about="">\n <dc:format>image/svg+xml</dc:format>\n <dc:type\n rdf:resource="http://purl.org/dc/dcmitype/StillImage" />\n <dc:title></dc:title>\n </cc:Work>\n </rdf:RDF>\n </metadata>\n <g\n id="layer1"\n transform="translate(-41.403339,-133.59734)">\n <g\n id="g5614"\n transform="matrix(0.56444446,0,0,0.56444446,819.73897,-509.17309)">\n <rect\n y="1138.7665"\n x="-1378.941"\n height="113.23074"\n width="113.11668"\n id="rect4136-8-8-1"\n style="opacity:1;fill:#0072b5;fill-opacity:1;stroke:none;stroke-width:4;stroke-miterlimit:1;stroke-dasharray:none"\n ry="9.4330282" />\n <g\n id="g5603">\n <g\n id="g5591">\n <rect\n y="1165.5731"\n x="-1361.4104"\n height="8"\n width="78.055412"\n id="rect4327-3-71"\n style="opacity:1;fill:#eeeeee;fill-opacity:1;stroke:none;stroke-width:4;stroke-miterlimit:1;stroke-dasharray:none" />\n <circle\n r="9"\n cy="1169.5731"\n cx="-1341.4192"\n id="path4355-79-2"\n style="opacity:1;fill:#eeeeee;fill-opacity:1;stroke:none;stroke-width:4;stroke-miterlimit:1;stroke-dasharray:none" />\n </g>\n <g\n id="g5595">\n <rect\n y="1191.3817"\n x="-1361.4104"\n height="8"\n width="78.055412"\n id="rect4327-5-1-0"\n style="opacity:1;fill:#eeeeee;fill-opacity:1;stroke:none;stroke-width:4;stroke-miterlimit:1;stroke-dasharray:none" />\n <circle\n r="9"\n cy="1195.3817"\n cx="-1305.4111"\n id="path4355-7-3-7"\n style="opacity:1;fill:#eeeeee;fill-opacity:1;stroke:none;stroke-width:4;stroke-miterlimit:1;stroke-dasharray:none" />\n </g>\n <g\n id="g5599">\n <rect\n y="1217.1904"\n x="-1361.4104"\n height="8"\n width="78.055412"\n id="rect4327-54-6-2"\n style="opacity:1;fill:#eeeeee;fill-opacity:1;stroke:none;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none" />\n <circle\n r="9"\n cy="1221.1904"\n cx="-1341.4274"\n id="path4355-3-9-8"\n style="opacity:1;fill:#eeeeee;fill-opacity:1;stroke:none;stroke-width:4;stroke-miterlimit:1;stroke-dasharray:none" />\n </g>\n </g>\n </g>\n </g>\n</svg>\n',h=new p.LabIcon({name:"@pyviz/jupyterlab_pyviz:panel",svgstr:m});var u=n(930);const v=n(217).ServerConnection.makeRequest,g=a.URLExt.join(a.PageConfig.getBaseUrl(),"/panel-preview/"),y=a.URLExt.join(g,"/layout/");class f{constructor(e,t,n){this._app=e,this._context=t,this._wManager=n,this._comm=void 0,t.saveState.connect((async(e,t)=>{if("started"!==t)return;const n=a.URLExt.join(y,e.path),o=await v(n,{method:"GET"},this._app.serviceManager.serverSettings);if(200!==o.status)return;let i;try{i=await o.json()}catch(e){return}if(!i)return;let r=!1;for(const t of e.model.cells){const e=i.cells[t.id],n=t.getMetadata();(!("panel-layout"in n)&&e||!u.JSONExt.deepEqual(n["panel-layout"],e))&&(t.setMetadata("
|