Class: TrackLayoutOptimizer

Kekule.Editor. TrackLayoutOptimizer

new TrackLayoutOptimizer()

A class to parse the touch/mouse track and generate corresponding chem structure.
Source:

Extends

  • ObjectEx

Methods

optimize(track, options)

Optimize the layout of a hand-input track.
Parameters:
Name Type Description
track Array A series of track coords.
options Hash Optimization params.
Source:

splitTrackByRings(track) → {Array}

Split track to chain and ring parts.
Parameters:
Name Type Description
track Array A series of track coor ds.
Source:
Returns:
splitted tracks
Type
Array

Kekule.Editor. TrackLayoutOptimizer

Methods

optimize(track, options)

Optimize the layout of a hand-input track.
Parameters:
Name Type Description
track Array A series of track coords.
options Hash Optimization params.
Source:

splitTrackByRings(track) → {Array}

Split track to chain and ring parts.
Parameters:
Name Type Description
track Array A series of track coor ds.
Source:
Returns:
splitted tracks
Type
Array