Skip to content

Commit

Permalink
fix: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
manzt committed Jun 29, 2024
1 parent f5e0e29 commit e86c364
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion js/lib.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as nv from "@niivue/niivue";
import type { AnyModel } from "@anywidget/types";
import * as nv from "@niivue/niivue";
import type { Model } from "./types.ts";

/**
Expand Down
2 changes: 1 addition & 1 deletion js/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export type MeshModel = { model_id: string } & AnyModel<{
}>;

export type Model = AnyModel<{
height: number,
height: number;
_volumes: Array<string>;
_meshes: Array<string>;
_opts: Record<string, unknown>;
Expand Down
5 changes: 2 additions & 3 deletions js/widget.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import * as niivue from "@niivue/niivue";
import type { Model } from "./types.ts";

import { Disposer } from "./lib.ts";
import { render_meshes } from "./mesh.ts";
import { render_volumes } from "./volume.ts";
import { Disposer } from "./lib.ts";


export default {
async render({ model, el }: { model: Model; el: HTMLElement }) {
Expand Down Expand Up @@ -32,7 +31,7 @@ export default {
});
model.on("change:height", () => {
container.style.height = `${model.get("height")}px`;
})
});

// All the logic for cleaning up the event listeners and the nv object
return () => {
Expand Down

0 comments on commit e86c364

Please sign in to comment.