moving parts .svg under simulator

This commit is contained in:
Peli de Halleux 2016-09-01 08:57:20 -07:00
parent e2e4c68f85
commit d890c05229
5 changed files with 2 additions and 2 deletions

View File

@ -165,7 +165,7 @@ namespace pxsim {
},
"speaker": {
visual: {
image: "/static/hardware/speaker.svg",
image: "/parts/speaker.svg",
width: 500,
height: 500,
firstPin: [180, 135],

View File

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

View File

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

View File

@ -67,7 +67,7 @@ namespace pxsim.visuals {
let h = NP_PART_HEIGHT;
let img = <SVGImageElement>svg.elt("image");
svg.hydrate(img, {class: "sim-neopixel-strip", x: l, y: t, width: w, height: h,
href: `/static/hardware/${NEOPIXEL_PART_IMG}`});
href: `/parts/${NEOPIXEL_PART_IMG}`});
return {el: img, x: l, y: t, w: w, h: h};
}
export class NeoPixel implements SVGAndSize<SVGCircleElement> {