Skip to content

@graphty/graphty-element / session / FileStyleOrigin

Interface: FileStyleOrigin ​

Defined in: graphty-element/src/session/styles/fileStyles/origin.ts:84

Where one style layer came from when it was made from a file's styles, as facts an application words for itself. Read it with fileStyleOf.

Properties ​

classes? ​

readonly optional classes?: number

Defined in: graphty-element/src/session/styles/fileStyles/origin.ts:106

How many classes a class rule holds.


column? ​

readonly optional column?: string

Defined in: graphty-element/src/session/styles/fileStyles/origin.ts:96

The column the layer reads, as the path it reads it at.


distinctValues? ​

readonly optional distinctValues?: number

Defined in: graphty-element/src/session/styles/fileStyles/origin.ts:108

How many distinct values a copied column holds.


elements? ​

readonly optional elements?: number

Defined in: graphty-element/src/session/styles/fileStyles/origin.ts:104

How many elements the rule applies to.


entries? ​

readonly optional entries?: number

Defined in: graphty-element/src/session/styles/fileStyles/origin.ts:102

How many entries the mapping table holds.


format ​

readonly format: string

Defined in: graphty-element/src/session/styles/fileStyles/origin.ts:86

The graph-io format id or JSON dialect the file was read as (gexf, cytoscape-js).


importId ​

readonly importId: string

Defined in: graphty-element/src/session/styles/fileStyles/origin.ts:88

The load the layer belongs to; its layers are filed under the template file:<importId>.


mapping? ​

readonly optional mapping?: FileStyleMappingKind

Defined in: graphty-element/src/session/styles/fileStyles/origin.ts:100

How the layer maps the column's values.


meanings? ​

readonly optional meanings?: readonly FileStyleMeaning[]

Defined in: graphty-element/src/session/styles/fileStyles/origin.ts:98

What each generated value of that column means in the file's own words.


origin ​

readonly origin: StyleRuleOrigin

Defined in: graphty-element/src/session/styles/fileStyles/origin.ts:94

Where the rule came from.


reason? ​

readonly optional reason?: StyleRuleReason

Defined in: graphty-element/src/session/styles/fileStyles/origin.ts:110

Why the layer copies values, or how it was built.


role ​

readonly role: StyleRuleRole

Defined in: graphty-element/src/session/styles/fileStyles/origin.ts:92

What the rule is.


ruleId ​

readonly ruleId: string

Defined in: graphty-element/src/session/styles/fileStyles/origin.ts:90

The id of the file's rule the layer was made from (node.by.Modularity Class).