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

101 lines 3.24 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" width="25" height="25" viewBox="0 0 25 25" id="svg2" version="1.1" inkscape:version="0.91 r13725" sodipodi:docname="ctrlaltdel.svg" inkscape:export-filename="/home/ossman/devel/noVNC/images/drag.png" inkscape:export-xdpi="90" inkscape:export-ydpi="90"> <defs id="defs4" /> <sodipodi:namedview id="base" pagecolor="#959595" bordercolor="#666666" borderopacity="1.0" inkscape:pageopacity="0" inkscape:pageshadow="2" inkscape:zoom="8" inkscape:cx="11.135667" inkscape:cy="16.407428" inkscape:document-units="px" inkscape:current-layer="layer1" showgrid="false" units="px" inkscape:snap-bbox="true" inkscape:bbox-paths="true" inkscape:bbox-nodes="true" inkscape:snap-bbox-edge-midpoints="true" inkscape:object-paths="true" showguides="true" inkscape:window-width="1920" inkscape:window-height="1136" inkscape:window-x="1920" inkscape:window-y="27" inkscape:window-maximized="1" inkscape:snap-smooth-nodes="true" inkscape:object-nodes="true" inkscape:snap-intersection-paths="true" inkscape:snap-nodes="true" inkscape:snap-global="true"> <inkscape:grid type="xygrid" id="grid4136" /> </sodipodi:namedview> <metadata id="metadata7"> <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> <g inkscape:label="Layer 1" inkscape:groupmode="layer" id="layer1" transform="translate(0,-1027.3622)"> <rect style="opacity:1;fill:#ffffff;fill-opacity:1;stroke:#ffffff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" id="rect5253" width="5" height="5.0000172" x="16" y="1031.3622" ry="1.0000174" /> <rect y="1043.3622" x="4" height="5.0000172" width="5" id="rect5255" style="opacity:1;fill:#ffffff;fill-opacity:1;stroke:#ffffff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" ry="1.0000174" /> <rect style="opacity:1;fill:#ffffff;fill-opacity:1;stroke:#ffffff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" id="rect5257" width="5" height="5.0000172" x="13" y="1043.3622" ry="1.0000174" /> </g> </svg> ` let svgDataUrl = 'data:image/svg+xml;charset=utf-8,' + encodeURIComponent(svg); export default svgDataUrl