Skip to content
Snippets Groups Projects

feat(login): new login flow (MIN-281)

Merged mateusz-winiarczyk requested to merge MIN-281-login-information into development
3 unresolved threads
26 files
+ 338
60
Compare changes
  • Side-by-side
  • Inline
Files
26
### Data / BioEntities
The methods contained within 'Data / BioEntities' are used to access/modify data on content/drugs/chemicals entities, as well as pin and surface markers.
The methods contained within 'Data / BioEntities' are used to access/modify data on content/drugs/chemicals entities, as well as pin, surface and line markers.
Below is a description of the methods, as well as the types they return. A description of the object types can be found in folder `/docs/types/`.
@@ -49,27 +49,31 @@ Below is a description of the methods, as well as the types they return. A descr
- **object:**
```
{
type: 'pin' OR 'surface'
type: 'pin' OR 'surface' OR 'line'
id: string [optional]
color: string
opacity: number
x: number
y: number
x: number [optional]
y: number [optional]
width: number [optional]
height: number [optional]
number: number [optional]
modelId: number [optional]
start: { x: number; y: number } [optional]
end: { x: number; y: number } [optional]
}
```
- **id** - optional, if not provided uuidv4 is generated
- **color** - should be provided in hex format with hash (example: `#FF0000`)
- **opacity** - should be a float between `0` and `1` (example: `0.54`)
- **x** - x coord on the map
- **y** - y coord on the map
- **x** - x coord on the map [surface/pin marker only]
- **y** - y coord on the map [surface/pin marker only]
- **width** - width of surface [surface marker only]
- **height** - width of height [surface marker only]
- **number** - number presented on the pin [pin marker only]
- **modelId** - if marker should be visible only on single map, modelId should be provided
- **start** - start point of the line [line marker only]
- **end** - end point of the line [line marker only]
- adds one marker to markers list
- returns created `Marker`
- examples:
@@ -94,6 +98,20 @@ Below is a description of the methods, as well as the types they return. A descr
y: 4322,
number: 43,
});
window.minerva.data.bioEntities.addSingleMarker({
type: 'line',
color: '#106AD7',
opacity: 1,
modelId: 52,
start: {
x: 8723,
y: 4322,
},
end: {
x: 4438,
y: 1124,
},
});
```
##### `removeSingleMarker`
Loading