question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How is Vex.Flow.SVGContext imported

See original GitHub issue

At MusicalScore/Graphical/VexFlow/SvgVexFlowBackend.ts , it seems that using Vex.Flow.SVGContext only needs import Vex from "vexflow"; and works successfully.

However, in https://github.com/0xfe/vexflow/blob/master/src/index.js , I do not see SVGContext exported anywhere. I tried importing SVGContext the same way as this project does in my personal project and I get an error.

How is this project able to successfully do so?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jasyipcommented, Feb 6, 2021

I actually just solved the problem. I did import { SVGContext } from "vexflow/src/svgcontext";

Thank you for the links and help you provided!

Read more comments on GitHub >

github_iconTop Results From Across the Web

svgcontext.js - VexFlow
svgcontext.js ... import { Vex } from './vex'; export class SVGContext { constructor(element) {. element is the parent DOM object. this.element = element;....
Read more >
Input events · Issue #371 · 0xfe/vexflow - GitHub
In VexFlow 4, we can import types as follows: const { Renderer, Formatter, Stave, StaveNote, Voice } = Vex.Flow; const renderer = new ......
Read more >
vexflow
VexFlow is an open-source web-based music notation rendering API. ... import Vex from 'vexflow'; const vf = new Vex.Flow.Factory({
Read more >
(javascript to react) Cannot execute the easyscore tutorial of ...
import React, { useRef, useEffect } from 'react' import VexFlow from 'vexflow' const VF = VexFlow.Flow const { Formatter, Renderer, Stave, ...
Read more >
flow.ts - 0xfe/vexflow - Sourcegraph
repo:^github\.com/0xfe/vexflow$ file:^src/flow\.ts ... import { Font, FontModule, FontStyle, FontWeight } from './font'; ... import { SVGContext } from '.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found