moving parts .svg under simulator
This commit is contained in:
parent
e2e4c68f85
commit
d890c05229
@ -165,7 +165,7 @@ namespace pxsim {
|
|||||||
},
|
},
|
||||||
"speaker": {
|
"speaker": {
|
||||||
visual: {
|
visual: {
|
||||||
image: "/static/hardware/speaker.svg",
|
image: "/parts/speaker.svg",
|
||||||
width: 500,
|
width: 500,
|
||||||
height: 500,
|
height: 500,
|
||||||
firstPin: [180, 135],
|
firstPin: [180, 135],
|
||||||
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB |
@ -67,7 +67,7 @@ namespace pxsim.visuals {
|
|||||||
let h = NP_PART_HEIGHT;
|
let h = NP_PART_HEIGHT;
|
||||||
let img = <SVGImageElement>svg.elt("image");
|
let img = <SVGImageElement>svg.elt("image");
|
||||||
svg.hydrate(img, {class: "sim-neopixel-strip", x: l, y: t, width: w, height: h,
|
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};
|
return {el: img, x: l, y: t, w: w, h: h};
|
||||||
}
|
}
|
||||||
export class NeoPixel implements SVGAndSize<SVGCircleElement> {
|
export class NeoPixel implements SVGAndSize<SVGCircleElement> {
|
||||||
|
Loading…
Reference in New Issue
Block a user