mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-08-06 19:41:51 -04:00
Attach the svg renderer instead of providing it in order to fix VM tests
This commit is contained in:
parent
aae1e083bc
commit
589dd7d5e0
4 changed files with 20 additions and 6 deletions
src/engine
|
@ -917,6 +917,14 @@ class Runtime extends EventEmitter {
|
|||
this.renderer = renderer;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the svg adapter, which converts scratch 2 svgs to scratch 3 svgs
|
||||
* @param {!SvgRenderer} svgAdapter The adapter to attach
|
||||
*/
|
||||
attachV2SVGAdapter (svgAdapter) {
|
||||
this.v2SvgAdapter = svgAdapter;
|
||||
}
|
||||
|
||||
/**
|
||||
* Attach the storage module
|
||||
* @param {!ScratchStorage} storage The storage module to attach
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue