Options
All
  • Public
  • Public/Protected
  • All
Menu

GoJS API

GoJS Class Index

Diagram Classes

Geometry Classes

Model Classes

Layout Classes

Tool Classes

Collection Classes

Extension Classes

Layout Extension Classes

Part Extension Classes

Tool Extension Classes

Storage Classes

Type

BackConversion : ((val: any, sourceData: any, model: Model) => any) | null

For bindings: The optional conversion function to convert property values back to data values. Specifying this function modifies a binding to set its Binding.mode to be Binding.TwoWay. If you want a two-way binding without a back-conversion function, specify null for a BackConversion. If you do not want a two-way binding, omit any BackConversion.

BrushLike : Brush | string | null

The BrushLike type is the same as Brush | string | null. A string in place of a Brush object is treated as a Solid Brush of that color.

DiagramInitOptions : Partial<Diagram | {[ P in DiagramEventName]: (e: DiagramEvent) => void } | DiagramInitStrings>

DiagramInitOptions are used in the Diagram constructor to concisely initialize a Diagram by settings its properties, and also set properties on its Tools, CommandHandler, AnimationManager, and set DiagramEvents.

EasingFunction : (currentTime: number, startValue: number, byValue: number, duration: number) => number

An EasingFunction describes how much to modify a scalar value based on the current time, the start value, the change in value, and the duration.

Type declaration

Key : string | number | undefined

The Key type is the same as string | number | undefined.

MarginLike : Margin | number

The MarginLike type is the same as Margin | number. A number in place of a Margin object is treated as a uniform Margin with that thickness.

TargetConversion : ((val: any, targetObj: any) => any) | null

For bindings: A side-effect-free function converting the data property value to the value to set the target property. If the function is null or not supplied, no conversion takes place.