supermedium / aframe-watcher

👀 Companion server for A-Frame Inspector to sync changes back to HTML files.
https://supermedium.com/aframe-watcher/
MIT License
96 stars 23 forks source link

Changes are being applied to wrong #id #3

Closed baufometic closed 5 years ago

baufometic commented 5 years ago

Chrome 71 x64, Win 7 Making changes in inspector to #twlogo, running aframe-watcher, but it's updating the previous entity instead.

<!DOCTYPE` html>
<html>

<head>
    <meta charset="utf-8">
    <title>TW World</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <script src="https://aframe.io/releases/0.9.0/aframe.min.js"></script>  
    <script src="https://unpkg.com/aframe-charts-component/dist/aframe-charts-component.min.js"></script>
</head>

<body>
    <a-scene>
        <a-assets>
            <img id="pink" src="https://img.gs/bbdkhfbzkk/stretch/http://i.imgur.com/1hyyIUi.jpg" crossorigin="anonymous" />
            <img id="chrome" src="https://img.gs/bbdkhfbzkk/2048x1024,stretch/http://i.imgur.com/WMNH2OF.jpg" crossorigin="anonymous">

            <a-asset-item id="exoFont" src="https://cdn.glitch.com/c719c986-c0c5-48b8-967c-3cd8b8aa17f3%2Fexo2Black.typeface.json?1490305922150"></a-asset-item>
            <a-asset-item id="exoItalicFont" src="https://cdn.glitch.com/c719c986-c0c5-48b8-967c-3cd8b8aa17f3%2Fexo2BlackItalic.typeface.json?1490305922725"></a-asset-item>
            <img id="city" crossorigin="anonymous"      src="https://cdn.glitch.com/1efe39ec-b60a-421b-97c8-32c2ea90e98b%2Fm_background.jpg?1551179159386">
            <img id="tw_logo" crossorigin="anonymous"   src="https://cdn.glitch.com/1efe39ec-b60a-421b-97c8-32c2ea90e98b%2Ftrading_warfare_logo_email_650x220.jpg?1551185464735">
        </a-assets>

        <!-- Camera + cursor. -->
        <a-camera id="i_Camera" wasd-controls="enabled: true; acceleration: 500">
        </a-camera>

        <!-- 360-degree image. -->
        <a-sky id="image-360" visible="true" radius="100" src="#city" position="-5.22 0 -20" rotation="0 20" scale="0.54 1 1"></a-sky>

        <!-- BRANDING -->
        <a-entity id="i_BrandingContainer" position="0 0 0" rotation="0 0 0" scale="" visible="">
            <a-image id="twlogo" position="30 15 -40" rotation="0 -20 0" scale="80 40 1"
                src="#">
            </a-image>
        </a-entity>
    </a-scene>
</body>

</html>
ngokevin commented 5 years ago

Thanks, I'll check it out.

ngokevin commented 5 years ago

https://github.com/supermedium/aframe-watcher/commit/00bc81a875c70115b56a48d17841d874e2b15001