Skip to content

Commit

Permalink
fix simulator board id
Browse files Browse the repository at this point in the history
  • Loading branch information
Amerlander committed Nov 27, 2023
1 parent 7bb2153 commit 3813ca1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sim/visuals/microbit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ namespace pxsim.visuals {
.st25{fill:#3AA5C6;}
.st26{opacity:0.7;fill:#48525F;enable-background:new;}
.st27{fill:none;}
</style>`;
</style><g id="calliope_mini">`;

const BOARD_SVG_BOTTOM = `<g id="all">
<g id="Batterie">
Expand Down Expand Up @@ -622,6 +622,7 @@ namespace pxsim.visuals {
<rect id="LED_4_4" x="314.6" y="247.8" class="st27" width="5.1" height="12.9"/>
</g>
</g>
</g>
</svg>`;

const BOARD_MINI2_BODY = `<style>#v3only,#hidden_v2,#TOUCH_LOGO{display:none;}</style><g id="v2">
Expand Down Expand Up @@ -1847,7 +1848,7 @@ namespace pxsim.visuals {
if (state.accelerometerState.useShake && !this.shakeButton) {
let shake = this.mkBtn(240, MB_HEIGHT - 75, 'Schütteln');
this.shakeButton = shake.inner;
let board = this.element.getElementById("calliopemini")
let board = this.element.getElementById("calliope_mini")
// console.log(board)
// svg.fill(this.shakeButton, this.props.theme.virtualButtonUp)
svg.buttonEvents(shake.outer,
Expand Down

0 comments on commit 3813ca1

Please sign in to comment.