Skip to content

Commit

Permalink
feat(itk-view-2d-controls-shoelace): Rename from itk-view-2d-controls
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulHax committed Feb 21, 2024
1 parent 5935306 commit 7d7ebd5
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 7 deletions.
7 changes: 7 additions & 0 deletions .changeset/fast-gorillas-hunt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@itk-viewer/blosc-zarr': patch
'@itk-viewer/io': patch
'@itk-viewer/wasm-utils': patch
---

Update itk-wasm version to avoid webworker-promise dep.
5 changes: 5 additions & 0 deletions .changeset/giant-eagles-float.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@itk-viewer/element": patch
---

Rename itk-view-2d-controls-shoelace
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ micromamba/*
venv/*
packages/blosc-zarr/*
!packages/blosc-zarr/bloscZarrDecompress.js
.changesets/*
.changeset/*
7 changes: 5 additions & 2 deletions packages/element/examples/view-2d.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@
<script type="module" src="../src/itk-viewport.ts"></script>
<script type="module" src="../src/itk-view-2d.ts"></script>
<script type="module" src="../src/itk-view-2d-vtkjs.ts"></script>
<script type="module" src="../src/itk-view-2d-controls.ts"></script>
<script
type="module"
src="../src/itk-view-2d-controls-shoelace.ts"
></script>
<script type="module" src="./view-2d.ts"></script>
</head>

Expand All @@ -28,7 +31,7 @@
<itk-viewport class="fill">
<div style="position: relative" class="fill">
<div style="position: absolute; top: 0.25rem; left: 0.25rem">
<itk-view-2d-controls></itk-view-2d-controls>
<itk-view-2d-controls-shoelace></itk-view-2d-controls-shoelace>
</div>
<itk-view-2d class="fill">
<itk-view-2d-vtkjs></itk-view-2d-vtkjs>
Expand Down
2 changes: 1 addition & 1 deletion packages/element/examples/view-2d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ document.addEventListener('DOMContentLoaded', async function () {

const view2d = document.querySelector('itk-view-2d')!;
const view2dActor = view2d.getActor()!;
const controls = document.querySelector('itk-view-2d-controls')!;
const controls = document.querySelector('itk-view-2d-controls-shoelace')!;
controls.setActor(view2dActor);
});
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { View2dActor } from '@itk-viewer/viewer/view-2d.js';
import { customElement } from 'lit/decorators.js';
import { SelectorController } from 'xstate-lit';

@customElement('itk-view-2d-controls')
export class View2dControls extends LitElement {
@customElement('itk-view-2d-controls-shoelace')
export class View2dControlsShoelace extends LitElement {
actor: View2dActor | undefined;
scale: SelectorController<View2dActor, number> | undefined;
scaleCount: SelectorController<View2dActor, number> | undefined;
Expand Down Expand Up @@ -82,6 +82,6 @@ export class View2dControls extends LitElement {

declare global {
interface HTMLElementTagNameMap {
'itk-view-2d-controls': View2dControls;
'itk-view-2d-controls-shoelace': View2dControlsShoelace;
}
}

0 comments on commit 7d7ebd5

Please sign in to comment.