
Security News
White House Authorizes Private Companies to Conduct Offensive Cyber Operations
A new federal program will let vetted U.S. cybersecurity firms help investigate and disrupt foreign cybercrime groups under government direction.
@aspicio/svelte
Advanced tools
Svelte 5 bindings for the
Aspicio DXF and PDF
viewer —
thin veneers over the framework-neutral
@aspicio/elements web components, so Svelte, React,
Vue, and plain-HTML embeds share one implementation and one look
(pixel-identical, verified). Ships as raw .svelte source via the
svelte export condition; your bundler compiles it against your own
Svelte version (5+). Try the viewer live at
aspicio.frontsail.app.
npm install @aspicio/svelte svelte three # @aspicio/core and @aspicio/elements come along; svelte 5 and three (>=0.184) are peers
<AspicioEmbed> — batteries included: layer list + interactive preview in
one component.<AspicioPreview> — the embeddable canvas alone: pan/zoom/rotate (mouse
and multi-touch), animated fit, batched WebGL rendering. No chrome.
Providing onhoverlayer hit-tests the layer under the cursor.<AspicioLayerPanel> — the ready-made layer list, identical to the demo
app: header with layer count, visibility checkboxes, effective-color
swatches, entity counts, hover-to-highlight, double-click-to-solo
(with a banner), and a gesture-hints footer. theme="none" renders a
minimal list.<script>
import { AspicioEmbed } from "@aspicio/svelte";
import "@aspicio/svelte/formats/dxf";
const onloaded = ({ layers, stats }) => console.log(stats.entityCount);
</script>
<!-- src also accepts File | Blob | ArrayBuffer | DXF text -->
<AspicioEmbed srcUrl="/drawing.dxf" style="height: 480px" {onloaded} />
Props: src, srcUrl, panel (left | right | none), theme
(aspicio | none), panelStyle, options, showDownload,
shortcuts. Callback props: onloaded, onloaderror,
onviewerchange, onhoverlayer — payloads arrive unwrapped.
bind:this exposes viewer() — the complete DrawingViewer (fitView,
zoomBy, setLayerVisible, pickLayer, view, toSVG, toPNG):
<script>
import { AspicioEmbed } from "@aspicio/svelte";
let embed;
</script>
<AspicioEmbed bind:this={embed} srcUrl="/drawing.dxf" />
<button onclick={() => embed.viewer()?.fitView()}>Fit</button>
Compose AspicioPreview + AspicioLayerPanel yourself and hand the panel the
viewer from onviewerchange; reverseHighlightLayer wires canvas-hover
to the row highlight (the embed does this automatically).
The internals render in shadow DOM. Theme through --aspicio-* CSS
custom properties and ::part() hooks — see the
@aspicio/elements README for the token and part
list. The theme uses IBM Plex font stacks but never loads webfonts
itself; load IBM Plex Sans/Mono in your page for the exact demo look.
src / srcUrl loads the new document; the most recently
set source wins, and stale in-flight loads are ignored.shortcuts keys are scoped to the focused embed (click it first):
F fit, +/- zoom, R reset rotation, A show all layers.apps/svelte-example for a
full setup.Two breaking changes ship together:
import "@aspicio/svelte/formats/dxf"; once —
without it every load fails with an error saying exactly that.Dxf prefix: <DxfEmbed> / <DxfPreview> / <DxfLayerPanel> → <AspicioEmbed> / <AspicioPreview> / <AspicioLayerPanel>, DxfTheme → AspicioTheme, and DxfViewer → DrawingViewer.FAQs
Svelte 5 bindings for the Aspicio DXF and PDF viewer.
We found that @aspicio/svelte demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
A new federal program will let vetted U.S. cybersecurity firms help investigate and disrupt foreign cybercrime groups under government direction.

Research
/Security News
The campaign amassed more than 75,000 installs by targeting Russian-speaking users seeking access to blocked services.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.