mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-21 17:18:52 +00:00
Add debug info to the DOM
This commit is contained in:
parent
09eb582b57
commit
71bc59f35c
1 changed files with 6 additions and 0 deletions
|
|
@ -57,6 +57,8 @@ function Layout({
|
|||
return (
|
||||
<>
|
||||
<img
|
||||
data-node-type="layout"
|
||||
data-node-id={id}
|
||||
src={image.imgUrl}
|
||||
style={{
|
||||
minWidth: Number(minimum_w),
|
||||
|
|
@ -77,6 +79,8 @@ function Layer({ id, image, children, x, y }) {
|
|||
return (
|
||||
<>
|
||||
<img
|
||||
data-node-type="Layer"
|
||||
data-node-id={id}
|
||||
src={img.imgUrl}
|
||||
style={{ position: "absolute", top: Number(y), left: Number(x) }}
|
||||
/>
|
||||
|
|
@ -93,6 +97,8 @@ function Button({ id, image, action, x, y, downImage, tooltip, children }) {
|
|||
const img = data[imgId.toLowerCase()];
|
||||
return (
|
||||
<div
|
||||
data-node-type="button"
|
||||
data-node-id={id}
|
||||
onMouseDown={e => {
|
||||
setDown(true);
|
||||
document.addEventListener("mouseup", () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue