tracking-code-which-will-go-to-the-HEAD DefaultConfiguration

Class

DefaultConfiguration

DefaultConfiguration(propsopt)

Default plugin configuration.
Constructor

# new DefaultConfiguration(propsopt)

Default constructor.
Parameters:
Name Type Attributes Description
props object <optional>
Object that contains all properties to set.
editor object <optional>
Object that contains all properties of editor configuration.
editor.syntax object <optional>
Syntax configuration.
restrictiveFolder string <optional>
Restrictive folder for new component if provided.
defaultFileName string <optional>
Default file name for new components.
defaultFileExtension string <optional>
Default file extension for components.
tags Array.<Tag> <optional>
All plugin tags.
isFolderTypeDiagram boolean <optional>
True if diagram type is folder, otherwise false.
extraResources Array.<object> <optional>
List of extra resources to register. An extra resource is model name that can't be set in Component.
extraResources.type string <optional>
Type of resources can be markers, links and icons. You can set models, but only component can use models.
extraResources.name string <optional>
Name of SVG model to render the resource.
rootContainer object <optional>
Configuration of root container in the scene.
rootContainer.margin number <optional>
Margin inside the root container.
rootContainer.gap number <optional>
Gap between component inside the root container.
container object <optional>
Default configuration of all container in the scene.
container.margin number <optional>
Default margin inside container.
container.gap number <optional>
Default gap between component inside container.
keysBinding object <optional>
Set of keyboard shortcuts for actions performing.
i18n object <optional>
Object that store all translations.

View Source models/DefaultConfiguration.js, line 4

Members

Object

# container

Default configuration of all containers in the scene.

View Source models/DefaultConfiguration.js, line 103

string

# defaultFileExtension

Default file extension for components.

View Source models/DefaultConfiguration.js, line 73

string

# defaultFileName

Default file name for new components.

View Source models/DefaultConfiguration.js, line 68

object

# editor

Object that contains all properties of editor configuration.

View Source models/DefaultConfiguration.js, line 55

Object

# extraResources

List of extra resources to register. An extra resource is model name that can't be set in Component.

View Source models/DefaultConfiguration.js, line 90

boolean

# isFolderTypeDiagram

True if diagram type is folder, otherwise false.

View Source models/DefaultConfiguration.js, line 84

object

# keysBinding

Set of keyboard shortcuts for actions performing.

View Source models/DefaultConfiguration.js, line 112

string

# restrictiveFolder

Restrictive folder for new component if provided.

View Source models/DefaultConfiguration.js, line 63

Object

# rootContainer

Configuration of root container in the scene.

View Source models/DefaultConfiguration.js, line 95

Array.<Tag>

# tags

All plugin tags.
Default Value:
  • []

View Source models/DefaultConfiguration.js, line 79