Skip to content

SVG not defined error #82

@jeremyjamez

Description

@jeremyjamez

I imported svg.js and svg.panzoom.js as the docs say but svg.panzoom.js still gives the SVG not defined error.

import { SVG } from "@svgdotjs/svg.js"
import "@svgdotjs/svg.panzoom.js"

componentDidMount(){
     const draw = SVG(rawSvg).addTo('#map').size('100%', '100%').panZoom({ zoomMin: 1, zoomMax: 20 })
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions