williamtroup/Heat.js
 Watch   
 Star   
 Fork   
10 hours ago
Heat.js

Heat.js v4.5.1 - Minor 3rd Library usage fixes, and CSS updates!

  • Updated all the NPM packages to the latest versions.
  • All title bar buttons are now vertically-aligned to the middle, and the Y margins now default to zero.
  • Fixed a fault that caused errors to occur when passing a BindingOptions object to "render()" (due to missing _currentView).
1 days ago
Heat.js

Heat.js v4.5.0 - Year-Month range support! More Export/Import types! UI improvements and fixes!

New Features:

  • Added support for custom year-month ranges! So instead of defaulting to Jan-Dec, you can now use something like Apr-Mar. The UI will now show the years when this is used.
  • Added more Export and Import options!

Exporting:

  • Added support to export all data to HTML (.html).
  • Added support to export all data to Markdown (.md).
  • Added support to export all data to Tab Separated Values (.tsv).

Exporting:

  • Added support to import data from a Tab Separated Values file (.tsv).
  • When the binding option "exportOnlyDataBeingViewed" is set to true, only data that is visible (months and days) will be exported.

Binding Options:

  • BREAKING: The binding option "exportOnlyYearBeingViewed" has been renamed to "exportOnlyDataBeingViewed".
  • Updated the binding option called "exportType" to have a new default value of "json".
  • Added a new binding option called "startMonth", which states the first month in the year that should be displayed (allows an Apr-Mar view, and defaults to 0, for Jan).
  • Added a new binding option called "views.map.showToolTips", which states if the tooltips should be shown (defaults to true).
  • Added a new binding option called "views.chart.showToolTips", which states if the tooltips should be shown (defaults to true).
  • Added a new binding option called "views.days.showToolTips", which states if the tooltips should be shown (defaults to true).
  • Added a new binding option called "views.statistics.showToolTips", which states if the tooltips should be shown (defaults to true).
  • Added a new binding option called "views.title.showToolTips", which states if the tooltips should be shown (defaults to true).
  • Added a new binding option called "views.guide.showToolTips", which states if the tooltips should be shown (defaults to true).
  • Added a new binding option called "views.chart.useGradients", which states if the bar lines should use a gradient fill (defaults to false).
  • Added a new binding option called "views.days.useGradients", which states if the bar lines should use a gradient fill (defaults to false).
  • Added a new binding option called "views.statistics.useGradients", which states if the bar lines should use a gradient fill (defaults to false).

Binding Options - Custom Triggers:

  • Added a new binding custom trigger called "events.onDayDblClick", which triggers when a day is double-clicked.
  • Added a new binding custom trigger called "events.onWeekDayDblClick", which triggers when a weekday is double-clicked.
  • Added a new binding custom trigger called "events.onStatisticDblClick", which triggers when a statistic is double-clicked.

CSS:

  • The title bar buttons now use a fixed height and width.
  • The title bar buttons now align all content so it's always central.
  • When the counts/day dates are shown in the display, they are aligned vertically in the center.
  • The side Y labels shown in the "Chart", "Day", and "Color Range" views are now always visible, even on mobile devices.
  • Increased the right margin used for the bars in the "Chart" view by 0.5px.

Fixes:

  • Fixed a fault that prevented the right dates from being hidden in the "Chart" view when specific days are set to hidden.
  • Fixed a minor fault that caused the wrong weekday to be processed when getting the largest value for the "Chart" view.
  • Fixed a fault that caused the X labels in the "Chart" view to be slightly off in position.
4 days ago
Heat.js

Heat.js v4.4.0 - Resizable! Observation mode! UI improvements!

Binding Options:

  • Added a new binding option called "resizable", which states if horizontal resizing is enabled (defaults to false).

Configuration Options:

  • Added a new configuration option called "observationMode", which states if looking for new DOM elements with the Heat.js binding should be done automatically (defaults to true).

DOM:

  • Each day shown in the Map view now has a new attribute called "data-heat-js-map-date", which stores the date for that map day.
  • Each bar shown in the Chart view now has a new attribute called "data-heat-js-chart-date", which stores the date for that chart day.
  • Each bar shown in the Days view now has a new attribute called "data-heat-js-day-number", which stores the day number.
  • Each bar shown in the Color Ranges view now has a new attribute called "data-heat-js-statistics-color-range-name", which stores the name of the Color Range (if stated).

CSS:

  • Added a new CSS variable "--heat-js-default-width", which states what the default width should be.
  • The label links (in the footer) now use a bottom border for the underline effect when hovered (which allows a smooth transition).
7 days ago
Heat.js

Heat.js v4.3.3 - New settings, UI improvements, and fixes!

  • Updated all the NPM packages to the latest versions.
  • Added a new "year" parameter for the event "onStatisticClick", which is now passed after the "rangeCount" parameter.
  • Fixed the out-of-date BindingOptionsEvents for event triggers used when clicking in areas.
  • The left border on the main display is now only shown on larger screens (giving a little more room on smaller/mobile screens).
  • Added a new CSS variable called "--heat-js-scroll-bar-border-radius" (defaults to 0.5rem), which states the border radius the scrollbars should use.
  • The CSS variable "--heat-js-day-size" now defaults to 1.2rem instead of 1.1rem, making the day boxes slightly larger.
  • Added a new binding option called "views.map.showDayDateNumbers", which states if the date day numbers should be shown (defaults to false).
  • Added a new binding option called "views.chart.showLineDateNumbers", which states if the date day numbers should be shown (defaults to false).
12 days ago
Heat.js

Heat.js v4.3.2 - Improved events, new settings, and visual improvements!

  • Updated all the NPM packages to the latest versions.
  • SCSS/CSS improvements (less code).
  • The tooltips in the default dark view are now easier to see against the background.
  • Added a new option called "title.showSectionText" (defaults to true), which states if the current section being shown should be displayed in the title text.
  • Added some more spacing around the configuration dialog check boxes.
  • Increased the size of the scrollbar to make it a bit easier to click.
  • Added a new "isHoliday" parameter for the event "onDayClick", which is now passed after the "count" parameter.
  • Fixed missing data from the other test events.
  • Updated the JS language usage in the documentation and testing HTML files.
  • Added a new "year" parameter for the event "onWeekDayClick", which is now passed after the "dayCount" parameter.
  • Added a new "count" parameter for the event "onStatisticClick", which is now passed after the "colorRange" parameter.
2025-03-19 00:09:51
Heat.js

Heat.js v4.3.1 - UI Improvements!

  • Updated all the NPM packages to the latest versions.
  • Updated the years in all the files to 2025.
  • Added a new border to the left side of the main UI to make the control stand out a bit more.
  • The drop-down menus in the default dark view are now easier to see against the background.
  • The day names in the "Map" view remain visible on smaller screens.
2025-03-08 00:33:38
Heat.js

Heat.js v4.3.0 - Scroll bar improvements!

  • Updated all the NPM packages to the latest versions.
  • Updated SASS usages of import to use (with minor accessor updates).
  • Scroll bars are now only shown when required for the views, and are styled using the default theme colors.
  • Fixed an issue that caused scroll bars to appear when not required.
2024-10-14 16:49:04
Heat.js

Heat.js v4.2.2 - General code improvements and security updates!

  • Updated all the NPM packages to the latest versions.
  • Added an ignore path for ".DS_Store" files when packing the NuGet package.
  • Updated the CSS to fix some of the new SASS rules causing compiler warnings.
  • The Binding Options and Configuration Options are now loaded using less memory (less overwrites).
  • General code improvements and refactors.
2024-09-02 22:17:53
Heat.js

Heat.js v4.2.1 - ES2000 support! Improved GUIDs! Fixes!

General Improvements:

  • Moved from ES2016 to ES2020.
  • Improved the event assignments, which are now single lines.
  • The GUIDs generated now used the "crypto.randomUUID()" instead of the custom-built one (this is now RFC4122-compliant).
  • Removed string concatenation usages, and replaced with string templates.

Fixes:

  • Fixed a fault that caused the title bar buttons to appear in different sizes (if the default font is unavailable).
  • Fixed a fault that prevented the multiple spaces used in type names from being replaced with underscores.
2024-08-20 23:52:48
Heat.js

Heat.js v4.2.0 - Current year button! Lots of improvements and fixes!

Binding Options:

  • Added a new option called "title.showCurrentYearButton" (defaults to true), which states if the "Current Year" button should be shown in the title bar.

Configuration Options:

  • Added a new option called "text.currentYearSymbolText", which states the symbol text to use for the "Current Year" button (defaults to "⏎").
  • Added a new option called "text.currentYearText", which states the text to use for the "Current Year" button (defaults to "Current Year").

UI Changes:

  • Added a new "Current Year" button to the title bar next to the "Next" button.

Improvements:

  • The width of the days calculated per view is now tracked per instance, instead of for all.
  • Added configuration settings to force types to be declared.
  • Updated to the latest versions of the NPM packages.
  • Moved more code into the shared files.
  • Improved type signatures and function signatures.

Fixes:

  • Fixed a fault that caused the "Next" button to fire the wrong custom trigger.
  • Fixed some warnings appearing in the console for input fields having no name/id attributes set.