UNPKG

basicprimitives

Version:

Basic Primitives Diagrams for JavaScript - data visualization components library that implements organizational chart and multi-parent dependency diagrams, contains implementations of JavaScript Controls and PDF rendering plugins.

31 lines (24 loc) 884 B
import ObjectReader from '../../../readers/ObjectReader'; import EnumerationReader from '../../../readers/EnumerationReader'; import { SelectionPathMode } from '../../../enums'; export default function CursorSelectionPathModeOptionTask(optionsTask, defaultConfig) { var _data = {}; var _dataTemplate = new ObjectReader({ selectionPathMode: new EnumerationReader(SelectionPathMode, false, defaultConfig.selectionPathMode) }); function process() { var context = { isChanged: false }; _data = _dataTemplate.read(_data, optionsTask.getOptions(), "options", context); return context.isChanged; } function getSelectionPathMode() { return _data.selectionPathMode; } return { process: process, getSelectionPathMode: getSelectionPathMode, description: "Checks cursor selection path option." }; };