Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,20 @@ jobs:

- name: Lint
run: npm run lint

format:
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 20

- name: Npm Install
run: npm install

- name: Check Format
run: npm run format:check
7 changes: 4 additions & 3 deletions plugins/zoom-to-fit/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,10 @@ export class ZoomToFitControl implements Blockly.IPositionable {
}
}

this.svgGroup?.setAttribute('transform',
`translate(${this.left}, ${this.top})`);

this.svgGroup?.setAttribute(
'transform',
`translate(${this.left}, ${this.top})`,
);
}
}

Expand Down
3 changes: 1 addition & 2 deletions plugins/zoom-to-fit/test/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,10 @@ document.addEventListener('DOMContentLoaded', function () {
controls: true,
},
};

const element = document.getElementById('root');

if (element) {
createPlayground(element, createWorkspace, defaultOptions);
}

});