Skip to content

Commit

Permalink
Removes axe from schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
hbcarlos committed Jan 13, 2023
1 parent d428486 commit e1c1003
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 33 deletions.
17 changes: 0 additions & 17 deletions src/schema/axe.json

This file was deleted.

23 changes: 10 additions & 13 deletions src/toolbar/helpertoolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,17 @@ interface IState {
}

const FORM_SCHEMA = {
"type": "object",
"required": [
"Size",
"Visible"
],
"additionalProperties": false,
"properties": {
"Size": {
"type": "number",
"description": "Axe's size"
type: 'object',
required: ['Size', 'Visible'],
additionalProperties: false,
properties: {
Size: {
type: 'number',
description: "Axe's size"
},
"Visible": {
"type": "boolean",
"description": "Whether the axe is visible or not"
Visible: {
type: 'boolean',
description: 'Whether the axe is visible or not'
}
}
};
Expand Down
2 changes: 1 addition & 1 deletion src/toolbar/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class ToolbarModel {
get panel(): JupyterCadPanel {
return this._panel;
}

get sharedModel(): IJupyterCadDoc | undefined {
return this._sharedModel;
}
Expand Down
7 changes: 5 additions & 2 deletions src/widget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,11 @@ export class JupyterCadPanel extends ReactWidget {
this._view = new ObservableMap<JSONValue>();
}

get viewChanged(): ISignal<ObservableMap<JSONValue>, IObservableMap.IChangedArgs<JSONValue>> {
return this._view.changed
get viewChanged(): ISignal<
ObservableMap<JSONValue>,
IObservableMap.IChangedArgs<JSONValue>
> {
return this._view.changed;
}

/**
Expand Down

0 comments on commit e1c1003

Please sign in to comment.