Skip to content

Commit

Permalink
Update auto-gen docs
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Mar 7, 2023
1 parent 4f6f926 commit 70d0672
Show file tree
Hide file tree
Showing 11 changed files with 296 additions and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import {
* #stateModel SvInspectorView
* combination of a spreadsheetview and a circularview
*/
const SvInspectorViewF = (pluginManager: PluginManager) => {
function SvInspectorViewF(pluginManager: PluginManager) {
const SpreadsheetViewType = pluginManager.getViewType('SpreadsheetView')
const CircularViewType = pluginManager.getViewType('CircularView')

Expand Down
2 changes: 1 addition & 1 deletion website/docs/models/Base1DView.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ zoomIn: () => void

```js
// type signature
zoomTo: (newBpPerPx: number, offset?: number) => number
zoomTo: (bpPerPx: number, offset?: number) => number
```

#### action: scrollTo
Expand Down
2 changes: 1 addition & 1 deletion website/docs/models/BaseLinearDisplay.md
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ clearRegionStats: () => void
```js
// type signature
setHeight: (displayHeight: number) => any
setHeight: (displayHeight: number) => number
```
#### action: resizeHeight
Expand Down
21 changes: 21 additions & 0 deletions website/docs/models/Dotplot1DView.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,27 @@ number
number
```

#### getter: minBpPerPx

```js
// type
number
```

#### getter: maxOffset

```js
// type
number
```

#### getter: minOffset

```js
// type
number
```

### Dotplot1DView - Actions

#### action: setScaleFactor
Expand Down
46 changes: 44 additions & 2 deletions website/docs/models/DotplotView.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,37 @@ vview: types.optional(DotplotVView, {})
```js
// type signature
string
IOptionalIType<ISimpleType<string>, [undefined]>
// code
cursorMode: types.optional(
types.string,
() => localStorageGetItem('dotplot-cursorMode') || 'crosshair',
)
```
#### property: wheelMode
```js
// type signature
IOptionalIType<ISimpleType<string>, [undefined]>
// code
wheelMode: types.optional(
types.string,
() => localStorageGetItem('dotplot-wheelMode') || 'zoom',
)
```
#### property: showPanButtons
```js
// type signature
IOptionalIType<ISimpleType<boolean>, [undefined]>
// code
cursorMode: 'crosshair'
showPanButtons: types.optional(types.boolean, () =>
Boolean(
JSON.parse(localStorageGetItem('dotplot-showPanbuttons') || 'true'),
),
)
```
#### property: tracks
Expand Down Expand Up @@ -263,6 +291,20 @@ menuItems: () => ({ label: string; onClick: () => void; icon: OverridableCompone
### DotplotView - Actions
#### action: setShowPanButtons
```js
// type signature
setShowPanButtons: (flag: boolean) => void
```
#### action: setWheelMode
```js
// type signature
setWheelMode: (str: string) => void
```
#### action: setCursorMode
```js
Expand Down
16 changes: 6 additions & 10 deletions website/docs/models/JBrowseDesktopSessionModel.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,28 +180,28 @@ any

```js
// type
any
{ [x: string]: any; } & NonEmptyObject & { setSubschema(slotName: string, data: unknown): any; } & IStateTreeNode<AnyConfigurationSchemaType>
```

#### getter: assemblies

```js
// type
any
({ [x: string]: any; } & NonEmptyObject & { setSubschema(slotName: string, data: unknown): any; } & IStateTreeNode<AnyConfigurationSchemaType>)[]
```

#### getter: assemblyNames

```js
// type
any
string[]
```

#### getter: tracks

```js
// type
any
({ [x: string]: any; } & NonEmptyObject & { setSubschema(slotName: string, data: unknown): any; } & IStateTreeNode<AnyConfigurationSchemaType>)[]
```

#### getter: textSearchManager
Expand Down Expand Up @@ -520,12 +520,8 @@ addViewFromAnotherView: (

```js
// type signature
addWidget: (
typeName: string,
id: string,
initialState?: {},
configuration?: { type: string },
) => any
addWidget: (typeName: string, id: string, initialState?: {}, conf?: unknown) =>
any
```

#### action: showWidget
Expand Down
8 changes: 2 additions & 6 deletions website/docs/models/JBrowseReactCGVSessionModel.md
Original file line number Diff line number Diff line change
Expand Up @@ -268,12 +268,8 @@ removeView: () => void

```js
// type signature
addWidget: (
typeName: string,
id: string,
initialState?: {},
configuration?: { type: string },
) => any
addWidget: (typeName: string, id: string, initialState?: {}, conf?: unknown) =>
any
```

#### action: showWidget
Expand Down
8 changes: 2 additions & 6 deletions website/docs/models/JBrowseReactLGVSessionModel.md
Original file line number Diff line number Diff line change
Expand Up @@ -305,12 +305,8 @@ addView: (typeName: string, initialState?: {}) => { id: string; displayName: str
```js
// type signature
addWidget: (
typeName: string,
id: string,
initialState?: {},
configuration?: { type: string },
) => any
addWidget: (typeName: string, id: string, initialState?: {}, conf?: unknown) =>
any
```
#### action: showWidget
Expand Down
8 changes: 2 additions & 6 deletions website/docs/models/JBrowseWebSessionModel.md
Original file line number Diff line number Diff line change
Expand Up @@ -584,12 +584,8 @@ addViewFromAnotherView: (

```js
// type signature
addWidget: (
typeName: string,
id: string,
initialState?: {},
configuration?: { type: string },
) => any
addWidget: (typeName: string, id: string, initialState?: {}, conf?: unknown) =>
any
```

#### action: showWidget
Expand Down
4 changes: 2 additions & 2 deletions website/docs/models/LinearGenomeView.md
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ number

```js
// type
any
number
```

#### getter: trackHeightsWithResizeHandles
Expand Down Expand Up @@ -616,7 +616,7 @@ scrollTo: (offsetPx: number) => number

```js
// type signature
zoomTo: (bpPerPx: number) => number
zoomTo: (bpPerPx: number, offset?: number, centerAtOffset?: boolean) => number
```

#### action: setOffsets
Expand Down
Loading

0 comments on commit 70d0672

Please sign in to comment.