src/lib/services/sz-prefs.service.ts
Graph related preferences bus class. used by SzPrefsService to store it's graph related prefs. Should really be used from SzPrefsService context, not on its own.
Example :this.prefs.graph.showMatchKeys = true;
this.prefs.graph.buildOut = 5;
this.prefs.graph.prefsChanged.subscribe( (prefs) => { console.log('graph pref change happened.', prefs); })
constructor()
|
publish out a "first" real payload so that subscribers get an initial payload from this subclass instead of the empty superclass |
Public bulkSet |
Type : boolean
|
Default value : false
|
during a bulk property set, set this to true to not publish change events on every single value change |
Public prefChanged |
Type : Subject<literal type>
|
Default value : new Subject<{name: string, value: any}>()
|
subject that can be subscribed to for INDIVIDUAL value change notifications. |
Public prefsChanged |
Type : BehaviorSubject<any>
|
Default value : new BehaviorSubject<any>(this.toJSONObject())
|
behavior subject that can be subscribed to for change notifications. |
typemap |
Type : object
|
Default value : {}
|
Public fromJSONObject | ||||||
fromJSONObject(value: string)
|
||||||
populate values by calling setters with the same names as json keys
Parameters :
Returns :
void
|
Public getPublicPropertiesSchema |
getPublicPropertiesSchema()
|
gets an array of all public json properties and their types
Returns :
{}
|
Public toJSONObject |
toJSONObject()
|
get shallow JSON copy of object state. properties are filtered by members of jsonKeys
Returns :
{}
|
Public toJSONString |
toJSONString()
|
get object state representation as a string
Returns :
string
|
openInNewTab | ||||||
getopenInNewTab()
|
||||||
open graph entity clicks in new tab
Returns :
boolean
|
||||||
setopenInNewTab(value: boolean)
|
||||||
open graph entity clicks in new tab
Parameters :
Returns :
void
|
openInSidePanel | ||||||
getopenInSidePanel()
|
||||||
open graph entity clicks in side panel
Returns :
boolean
|
||||||
setopenInSidePanel(value: boolean)
|
||||||
open graph entity clicks in side panel
Parameters :
Returns :
void
|
dataSourceColors | ||||||
getdataSourceColors()
|
||||||
colors to apply to entity node when belonging to particular datasources
Returns :
SzDataSourceComposite[]
|
||||||
setdataSourceColors(value: SzDataSourceComposite[])
|
||||||
colors to apply to entity node when belonging to particular datasources
Parameters :
Returns :
void
|
showLinkLabels | ||||||
getshowLinkLabels()
|
||||||
show match keys/edge labels on relationships
Returns :
boolean
|
||||||
setshowLinkLabels(value: boolean)
|
||||||
show match keys/edge labels on relationships
Parameters :
Returns :
void
|
rememberStateOptions | ||||||
getrememberStateOptions()
|
||||||
whether or not to publish change events on property value changes. useful for not getting notified on bulk property sets.
Returns :
boolean
|
||||||
setrememberStateOptions(value: boolean)
|
||||||
whether or not to publish change events on property value changes. useful for not getting notified on bulk property sets.
Parameters :
Returns :
void
|
maxDegreesOfSeparation | ||||||
getmaxDegreesOfSeparation()
|
||||||
maximum degrees of separatation between relationships
Returns :
number
|
||||||
setmaxDegreesOfSeparation(value: number)
|
||||||
maximum degrees of separatation between relationships
Parameters :
Returns :
void
|
maxEntities | ||||||
getmaxEntities()
|
||||||
maximum number of entities to show
Returns :
number
|
||||||
setmaxEntities(value: number)
|
||||||
maximum number of entities to show
Parameters :
Returns :
void
|
buildOut | ||||||
getbuildOut()
|
||||||
how many nodes away from queried entity to show
Returns :
number
|
||||||
setbuildOut(value: number)
|
||||||
how many nodes away from queried entity to show
Parameters :
Returns :
void
|
dataSourcesFiltered | ||||||
getdataSourcesFiltered()
|
||||||
hide any entity node when belonging to particular datasources
Returns :
string[]
|
||||||
setdataSourcesFiltered(value: string[])
|
||||||
hide any entity node when belonging to particular datasources
Parameters :
Returns :
void
|
matchKeysIncluded | ||||||
getmatchKeysIncluded()
|
||||||
hide any entity node when relationship does not contain a particular match key
Returns :
string[]
|
||||||
setmatchKeysIncluded(value: string[])
|
||||||
hide any entity node when relationship does not contain a particular match key
Parameters :
Returns :
void
|
matchKeyTokensIncluded | ||||||
getmatchKeyTokensIncluded()
|
||||||
hide any entity node when relationship does not contain a particular match key
Returns :
string[]
|
||||||
setmatchKeyTokensIncluded(value: string[])
|
||||||
hide any entity node when relationship does not contain a particular match key
Parameters :
Returns :
void
|
matchKeyCoreTokensIncluded | ||||||
getmatchKeyCoreTokensIncluded()
|
||||||
hide any entity node when relationship does not contain a particular match key
Returns :
string[]
|
||||||
setmatchKeyCoreTokensIncluded(value: string[])
|
||||||
hide any entity node when relationship does not contain a particular match key
Parameters :
Returns :
void
|
neverFilterQueriedEntityIds | ||||||
getneverFilterQueriedEntityIds()
|
||||||
never filter out the entities that were explicity declared in query
Returns :
boolean
|
||||||
setneverFilterQueriedEntityIds(value: boolean)
|
||||||
never filter out the entities that were explicity declared in query
Parameters :
Returns :
void
|
queriedEntitiesColor | ||||||
getqueriedEntitiesColor()
|
||||||
color of active or queried for entity or entitities
Returns :
string | undefined
|
||||||
setqueriedEntitiesColor(value: string | undefined)
|
||||||
color of active or queried for entity or entitities
Parameters :
Returns :
void
|
focusedEntitiesColor | ||||||
getfocusedEntitiesColor()
|
||||||
color of focused/expanded entity or entitities
Returns :
string | undefined
|
||||||
setfocusedEntitiesColor(value: string | undefined)
|
||||||
color of focused/expanded entity or entitities
Parameters :
Returns :
void
|
linkColor | ||||||
getlinkColor()
|
||||||
color of link lines
Returns :
string | undefined
|
||||||
setlinkColor(value: string | undefined)
|
||||||
color of link lines
Parameters :
Returns :
void
|
indirectLinkColor | ||||||
getindirectLinkColor()
|
||||||
color of link lines that are not directly connected to a focal entity
Returns :
string | undefined
|
||||||
setindirectLinkColor(value: string | undefined)
|
||||||
color of link lines that are not directly connected to a focal entity
Parameters :
Returns :
void
|
unlimitedMaxEntities | ||||||
getunlimitedMaxEntities()
|
||||||
whether or not to ignore the maxEntities value and always get all related entities
Returns :
boolean
|
||||||
setunlimitedMaxEntities(value: boolean)
|
||||||
whether or not to ignore the maxEntities value and always get all related entities
Parameters :
Returns :
void
|
unlimitedMaxScope | ||||||
getunlimitedMaxScope()
|
||||||
whether or not to ignore the maxDegreesOfSeparation value and always get build out to max
Returns :
boolean
|
||||||
setunlimitedMaxScope(value: boolean)
|
||||||
whether or not to ignore the maxDegreesOfSeparation value and always get build out to max
Parameters :
Returns :
void
|
suppressL1InterLinks | ||||||
getsuppressL1InterLinks()
|
||||||
whether or not to ignore the maxDegreesOfSeparation value and always get build out to max
Returns :
boolean
|
||||||
setsuppressL1InterLinks(value: boolean)
|
||||||
whether or not to ignore the maxDegreesOfSeparation value and always get build out to max
Parameters :
Returns :
void
|
matchKeyTokenSelectionScope | ||||||
getmatchKeyTokenSelectionScope()
|
||||||
whether or not match key token filtering should apply to ALL entities OR just relationships that are directly related to the focal entity
Returns :
SzMatchKeyTokenFilterScope
|
||||||
setmatchKeyTokenSelectionScope(value: SzMatchKeyTokenFilterScope)
|
||||||
whether or not match key token filtering should apply to ALL entities OR just relationships that are directly related to the focal entity
Parameters :
Returns :
void
|