@graphty/graphty-element / algorithms/Algorithm / AlgorithmStatics
Interface: AlgorithmStatics
Defined in: src/algorithms/Algorithm.ts:19
Interface for Algorithm class static members Exported for use in type annotations when referencing algorithm classes
Properties
namespace
namespace:
string
Defined in: src/algorithms/Algorithm.ts:21
optionsSchema
optionsSchema:
OptionsSchema
Defined in: src/algorithms/Algorithm.ts:22
suggestedStyles?
optionalsuggestedStyles:SuggestedStylesProvider
Defined in: src/algorithms/Algorithm.ts:23
type
type:
string
Defined in: src/algorithms/Algorithm.ts:20
zodOptionsSchema?
optionalzodOptionsSchema:OptionsSchema
Defined in: src/algorithms/Algorithm.ts:31
NEW: Zod-based options schema for unified validation and UI metadata
Methods
getOptionsSchema()
getOptionsSchema():
OptionsSchema
Defined in: src/algorithms/Algorithm.ts:25
Returns
OptionsSchema
Deprecated
Use getZodOptionsSchema() instead
getSuggestedStyles()
getSuggestedStyles():
SuggestedStylesConfig|null
Defined in: src/algorithms/Algorithm.ts:29
Returns
SuggestedStylesConfig | null
getZodOptionsSchema()
getZodOptionsSchema():
OptionsSchema
Defined in: src/algorithms/Algorithm.ts:33
Get the Zod-based options schema for this algorithm
Returns
hasOptions()
hasOptions():
boolean
Defined in: src/algorithms/Algorithm.ts:27
Returns
boolean
Deprecated
Use hasZodOptions() instead
hasSuggestedStyles()
hasSuggestedStyles():
boolean
Defined in: src/algorithms/Algorithm.ts:28
Returns
boolean
hasZodOptions()
hasZodOptions():
boolean
Defined in: src/algorithms/Algorithm.ts:35
Check if this algorithm has a Zod-based options schema
Returns
boolean