UNPKG

@wayrisignals/kicad-webview

Version:

Interactive KiCad schematic, PCB and 3D viewer for the web, with Gerber, Excellon, linked views and offline HTML exports

3 lines (2 loc) • 669 B
/*! KiCad WebView 1.2.1 | Copyright (c) 2026 wayri | SPDX-License-Identifier: MPL-2.0 | Source: https://github.com/wayri/kicad-webview/tree/v1.2.1 | Keep LICENSE and THIRD-PARTY-NOTICES.md; bundled dependencies retain their licenses. */ var s=t=>/\.kicad_(sch|pcb)$/i.test(t),g=t=>/\.(gbr|ger|gerber|pho|art|gtl|gbl|gts|gbs|gto|gbo|gtp|gbp|gko|gm\d+|g\d+|drl|drd|xln|exc|excellon|xnc|ncd|tap|txt)$/i.test(t),i=t=>/\.zip$/i.test(t),o=t=>/\.kicad_wks$/i.test(t),r=t=>s(t)||o(t)||g(t)||i(t),c=t=>typeof t=="string"&&t.length>0&&t.length<=1e3&&!/[\\\x00-\x1f\x7f%?#:]/.test(t)&&t.split("/").every(e=>e&&e!=="."&&e!=="..");export{s as a,g as b,i as c,o as d,r as e,c as f};