Releases: epispot/EpiJS
Releases · epispot/EpiJS
v2.1.0
New Features
- Adds
manipulate
to manipulate outputs withplots
- Adds
mexport
andmimport
tomodel
, which allow for exporting and importing models to.js
and.json
files. - Adds version locking to the dependencies. This prevents users from installing incompatible releases when installing the package.
v2.0.0 - LTS
- [#37] Stochastic modelling
- [#40] Custom models in
com
module - [#28] New pre-built compartments for you to use in
comp
, including:- Susceptible,
- Exposed,
- Infected,
- Hospitalized,
- Critical,
- Recovered,
- Dead,
- and Vaccinated compartments,
- A new utils compartment, which has epidemiological related utilities,
- Bug fixes,
- [#59] Customizable plotting, with the
plots
module, - [#59] Allows for more interaction with data from
pre
module, - And metadata on the web, through
EpiJS.about
,EpiJS.version
, etc.
What makes this a major release?
This release is a major release for 2 reasons:
- [#54] Drops 10.x support
- [#37] Syntax for functions/classes was changed with stochastic models
- [#59]
pre
module no longer outputs graphs, and is instead replaced with theplots
module for graphs.
This release is also an LTS release, so bug fixes and security fixes will continue for longer than a usual release.
EpiJS v1.3.1
v1.3.1
Bug Fixes
- Fix formula parsing error in the
model
module.
v1.3.0
v1.3.0
Features
- Add
comp
module.- Create
comp
module, which allows for creating custom compartments, which can then be combined into models - Add Idiom class, for custom compartments
- Create
- Add
model
module.- Create
model
module which combines compartments fromcomp
into models.
- Create
- Add
com
module.- Create
com
module, which models communities. - Create the
virus
class, which creates a virus which can infect a community. - Create the
community
class which can be infected with a virus, and modeled. - Create the compare function, which compares two different outbreaks, whether it's two different communities infected with a virus, two viruses infecting the same community, or even two communities infected by two viruses.
- Create
Unrelated
- Add documentation from vuepress, which provides much better documentation than that of mkdocs.
- Add new dependency -
math.js
which is used in thecomp
module.
v1.2.1
Bug Fixes
- Add custom recovered population. Takes difference of population and sum of infected and susceptible populations, instead of automatically setting population to 0 at the beggining of the outbreak.
v1.2.0
New Features
- Add SEIHCRD model
Bug Fixes
- Fix import error for npm package.
v1.1.0
v1.1.0
New Features
- Add SEIHRD model
Bug Fixes
None.
v1.0.1
v1.0.1
Minor update
New Features
None.
Bug Fixes
None.
Deprecations
Remove the check
function from the pre
module.
v1.0.0
v1.0.0
Initial release.
Features
The pre
module. Pre-built models for EpiJS. For example:
HTML:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>EpiJS Test</title>
</head>
<body>
<canvas id="ctxsir"></canvas>
<script src="js/pre.min.js"></script> <!-- EpiJS Library -->
<script src="js/chart.min.js"></script> <!-- The Chart.js Requirement -->
<script src="js/plot.js"></script> <!-- Our JavaScript Code -->
</body>
</html>
JavaScript:
let sirchart = document.getElementById('ctxsir')
sir(sirchart, 4, 9999, 1, 100, 1/21, 10000)
This includes the SIR, SEIR, and SEIRD models.