UNPKG

svelte-vnc

Version:

noVNC component for svelte 4 and 5 without using iframe. Supports multiple instances of itself enabling the user to visualize multiple vnc streams in the same page

66 lines (65 loc) 2.38 kB
let svg = ` <svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" version="1.1" id="svg2" inkscape:export-ydpi="90" inkscape:export-xdpi="90" sodipodi:docname="windows.svg" inkscape:export-filename="/home/ossman/devel/noVNC/images/drag.png" inkscape:version="0.92.4 (unknown)" x="0px" y="0px" viewBox="-293 384 25 25" xml:space="preserve" width="25" height="25"><metadata id="metadata21"><rdf:RDF><cc:Work rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs id="defs19" /><sodipodi:namedview pagecolor="#959595" bordercolor="#666666" borderopacity="1" objecttolerance="10" gridtolerance="10" guidetolerance="10" inkscape:pageopacity="0" inkscape:pageshadow="2" inkscape:window-width="1920" inkscape:window-height="1136" id="namedview17" showgrid="true" inkscape:pagecheckerboard="false" inkscape:zoom="32" inkscape:cx="3.926913" inkscape:cy="13.255959" inkscape:window-x="1920" inkscape:window-y="27" inkscape:window-maximized="1" inkscape:current-layer="svg2"><inkscape:grid type="xygrid" id="grid818" /></sodipodi:namedview> <style type="text/css" id="style2"> .st0{fill:#FFFFFF;} </style> <path style="fill:#ffffff;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;fill-opacity:1" d="M 21 4 L 11 5.1757812 L 11 12 L 21 12 L 21 4 z M 10 5.2949219 L 4 6 L 4 12 L 10 12 L 10 5.2949219 z " transform="translate(-293,384)" id="path853" /><path id="path858" d="m -272,405 -10,-1.17578 V 397 h 10 z M -283,403.70508 -289,403 v -6 h 6 z" style="fill:#ffffff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" inkscape:connector-curvature="0" /></svg> ` let svgDataUrl = 'data:image/svg+xml;charset=utf-8,' + encodeURIComponent(svg); export default svgDataUrl