File

src/app/configurations/graph.configuration.ts

Description

Visual configuration for the GraphComponent.

Index

Properties

Properties

arrowPoints
arrowPoints: []
Type : []
markerBoxSize
markerBoxSize: number
Type : number
markerPadding
markerPadding: number
Type : number
markerPath
markerPath: string
Type : string
markerRef
markerRef: number
Type : number
nodeRadius
nodeRadius: number
Type : number
tooltipFadeInTame
tooltipFadeInTame: number
Type : number
tooltipFadeOutTime
tooltipFadeOutTime: number
Type : number
tooltipOpacity
tooltipOpacity: number
Type : number
export interface GraphConfiguration {
  nodeRadius: number;

  tooltipOpacity: number;
  tooltipFadeInTame: number;
  tooltipFadeOutTime: number;

  markerBoxSize: number;
  markerPadding: number;
  markerRef: number;
  arrowPoints: [number, number][];
  markerPath: string;
}

const nodeRadius = 24;

const tooltipOpacity = 1;
const tooltipFadeInTame = 500;
const tooltipFadeOutTime = 200;

const markerBoxSize = 4;

export const DEFAULT_GRAPH_CONFIGURATION: GraphConfiguration = {
  nodeRadius,

  tooltipOpacity,
  tooltipFadeInTame,
  tooltipFadeOutTime,

  markerBoxSize,
  markerPadding: nodeRadius + 2 * markerBoxSize,
  markerRef: markerBoxSize / 2,
  arrowPoints: [
    [0, 0],
    [0, markerBoxSize],
    [markerBoxSize, markerBoxSize / 2],
  ],
  markerPath: [0, 0, markerBoxSize, markerBoxSize].join(','),
};

results matching ""

    No results matching ""