Creates a project manager menu
Classes
Methods
(static) addProjectsToDom(store, projects, projectManager)
Add user projects to DOM
Parameters:
| Name | Type | Description |
|---|---|---|
store |
object | NSPIT store |
projects |
array | List of user projects |
projectManager |
object | Project manager object |
(static) addProjectToConfig(project)
Add project configuration to NSPIT configuration
Parameters:
| Name | Type | Description |
|---|---|---|
project |
object | Project configuration |
(static) createProject(store, projectTitle) → {object}
Create project configuration
Parameters:
| Name | Type | Description |
|---|---|---|
store |
object | NSPIT store |
projectTitle |
string | Project title |
Returns:
- Type
- object
(static) deleteProject(projectId, store, projectManager)
Delete project
Parameters:
| Name | Type | Description |
|---|---|---|
projectId |
number | Project ID |
store |
object | NSPIT store |
projectManager |
object | Project manager object |
(static) exportProject(projectId)
Export project to .nspit file
Parameters:
| Name | Type | Description |
|---|---|---|
projectId |
number | Project ID |
(static) getProjectsFromDatabase() → {Promise}
Get user projects from database
Returns:
- Type
- Promise
(static) importProject()
Import project
(static) openProject(projectId)
Open project
Parameters:
| Name | Type | Description |
|---|---|---|
projectId |
number | Project ID |
(static) saveProjectInProfile(project, projectTitle) → {Promise}
Save new project in profile
Parameters:
| Name | Type | Description |
|---|---|---|
project |
string | Project configuration |
projectTitle |
string | Project title |
Returns:
- Type
- Promise
(static) updateLayersWithProject(layersCategories, project)
Update layers configuration with project configuration
Parameters:
| Name | Type | Description |
|---|---|---|
layersCategories |
object | Layers and categories list |
project |
object | Project configuration |
(static) updateProject(store, projectId, projectTitle)
Update project
Parameters:
| Name | Type | Description |
|---|---|---|
store |
object | NSPIT store |
projectId |
number | Project ID |
projectTitle |
string | Project title |