All Notable changes to Period Visualizer
will be documented in this file
- Adding
TypeError
onDataset::append
method when expected type are not given.
- The
OutputWriter
is now a property ofGanttChartConfig
- Renamed
Graph
toChart
- Renamed
Graph::display
toChart::display
- Renamed
ConsoleGraph
toGanttChart
- Renamed
ConsoleConfig
toGanttChartConfig
- Adding
Dataset::appendAll
- Adding
GanttChartConfig::leftMargin
- Adding
GanttChartConfig::withLeftMargin
- Improved
GanttChart
implementation - Improved
ConsoleOutput
implementation - Changed
OutputWriter::writeln
signature
- Bug fix
Dataset::labelMaxLength
whenDataset
is empty - Bug fix
GanttChart::display
whenDataset
only contains emptySequence
instances. - Improve
GanttChart
implementation.
- Moved all interfaces into a
Contract
dedicated namespace - Added the
Dataset
class. - Added the
Graph
interface and theConsoleGraph
implementation. - Added the
OutputWriter
interface and theConsoleOutput
implementation,ConsoleOutput
no longer relies onecho
- Added support for label and basicGraph gutter in
ConsoleConfig
class - Added support for label alignment in
ConsoleConfig
class - Moved basicGraph features out of the
ConsoleOutput
class toConsoleGraph
- Merged the
Matrix
class feature into theConsoleGraph
and removed it - Renamed the
LabelGenerator
implementing classes and moved them in the main namespace - Removed the
Viewer
class
- Added support for boundary type in:
- Added
Matrix::TOKEN_*
public constants - Changed
Matrix::build
returned array content - Added the following
ConsoleConfig
methods:ConsoleConfig::endIncluded
ConsoleConfig::withEndIncluded
ConsoleConfig::startExcluded
ConsoleConfig::withStartIncluded
- Renamed the following
ConsoleConfig
methods:ConsoleConfig::getTail
withConsoleConfig::startIncluded
ConsoleConfig::withTail
withConsoleConfig::withEndExcluded
ConsoleConfig::getHead
withConsoleConfig::endExcluded
ConsoleConfig::withHead
withConsoleConfig::withEndExcluded
- Added
- Improve Package UX/DX
- Removed the
get
prefix from allConsoleConfig
getter methods - Changed the suffix from all
LabelGenerator
classes fromType
toGenerator
- Changed
LabelGenerator::getLabels
method name toLabelGenerator::generate
- Added
LabelGenerator::format
method to format a single label - Made
ConsoleOutput
optional in theViewer
constructor method - Added
Viewer::unions
- Added
Viewer::setLabelGenerator
andViewer::setOutput
are chainable - Changed arguments order in
Viewer::__construct
- Added
$prefix
and$suffix
parameters to theAffixGenerator
- Removed the
- Enforces strict types
- Removed the
OutputInterface
. - Made
ConsoleOutput::render
private onlyConsoleOutput::display
stays public. - Improved
Matrix
code.
- Bug Fix
ConsoleOutput::render
method. No newline character must be added at the end of the line.
- Bug Fix
ConsoleOutput::render
method. Once the matrix is created we just use it and we non longer rely on the submitted data.
- The
OutputInterface::render
and theOutputInterface::display
array signature has changed.
The array format is that of a dataset where: - the first value represents the period or the sequence label - the second value represents the period or the sequence
- The
Matrix
and theViewer
class are updated accordingly with refactoring to improve the calculation speed. - The
ConsoleConfig
accepts adefault
color keywords to tell that the basicGraph should fellow the default colors from the basicGraph. - The
default
color keyword replaces thewhite
color keyword as the default keyword used if no color is specified.
- Initial release