Skip to content

Latest commit

 

History

History
94 lines (60 loc) · 3.64 KB

CHANGELOG.md

File metadata and controls

94 lines (60 loc) · 3.64 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[1.0.0-3] - Unreleased

Added

  1. Aliases for some function:
    1. frac: { fraction: frac, quotRem: qr }.
    2. core: { distance: dist, random: rnd, randonInt: rndi, }.

Change

  1. Remove exposing of API in the global API rakam.math2js // not defined, but core still exposed.
  2. Rename rakam.fraction into rakam.frac.

[1.0.0-2] - 2020-12-24

Fixed

  • Change src for the demo's <script></script>: issue(#2).

  • Change license inside package.json to "Apache-2.0": issue(#3).

  • Replace prepare script in package.json with prepublishOnly: issue(#4).

[1.0.0-0] - 2020-9-14

Added

  • Import (es6 import) or require (commonjs) specific method to accelerate app loading, and to minimize your bundle size.
  • geometry.lines:
    • equation
    • intersection
    • projection
    • distance
  • Add a header to the bundled file.
  • fraction:
    • frac
    • quotRem

Changed

  • Rename parser to engine, for semantic purpose, and it is a more existing name.

[0.1.0] - 2020-9-9

Added

  • Use the package angles.js, extending some new APIs, (methods), here below.
  • fromDeg, fromRad and fromGon
  • In geometry.angles.degMinSec, you can get {deg, min, sec}. Convert float number into degrees, minutes, and seconds.
  • geometry.angles.strDegMinSec, you can get an angle formatted as (12° 3' 5"). Convert float number or {deg, min, sec} into a string representing the angle in degrees, minutes, and seconds.
  • geometry.angles.fromDegMinSec, reverts the function degMinSec.
  • geometry.angles.fromStrDegMinSec, reverts the function strDegMinSec.
  • Alias some long-name function: replace degMinSec with DMS. For example, fromStrDegMinSec = fromStrDMS and digMinSec = DMS.
  • geometry.angles.nomalizeInside, gets the equivalent engle inside a complete round starting from a given offset. For example, you can accomplish the same result with angles.normalizeHalf(angle) and angles.normalizeInside(angles, -0.5), -0.5 here is the offset (-50%) of our range which the angle will be normalized in.

[0.0.2] - 2020-9-4

Fixed

  • The second trial to fix the README file issue, after asking a question in "stackoverflow".

[0.0.1] - 2020-9-4

Fixed

  • Change README.md from a binary looking file into a file in bytes, there was weird README in rakam.

[0.0.0] - 2020-9-4

Added

  • math2js to convert math expression from a string into real js function by generating the code then evaluating it.

  • geometry.angles property in the exported library, with angles you can get:

    • the angle between two vectors or lines, in a clockwise direction or the other one. You can also trim or normalize the angle to be between 0 and 360.
    • the min angle between two vectors or lines, in either direction
    • as well as the max angle
  • geometry.lines, here you can get:

    • line equation ax+by+c=0, the line info returned as {a:number, b:number, c:number}
    • the intersection point between two lines
    • projection of a point on a line
    • the dist, or the displacement till the line from a given point, the shortest distance to the line, which is the length of the perpendicular line to this line from that point.
  • core: that contains some useful functions such as lcm, gcd, constrain, dist