@sangl/cad-viewer
TypeScript icon, indicating that this package has built-in type declarations

0.1.6 • Public • Published

cad-viewer

Simple component, that renders a svg which represents 2D machining data and offers tools to measure and check the data.

Usage

import "React"
import {CadViewer} from "cad-viewer"

const Component: React.FC<{svg: string}> = ({svg}) => {
    let svgAsUrl = `data:image/svg+xml;utf8,${svg}`
    return <CadViewer src={svgAsUrl}/>
}

Readme

Keywords

none

Package Sidebar

Install

npm i @sangl/cad-viewer

Weekly Downloads

0

Version

0.1.6

License

none

Unpacked Size

930 kB

Total Files

20

Last publish

Collaborators

  • adrianschneider94