-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5542a8f
commit 5196629
Showing
4 changed files
with
102 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,220 +1,224 @@ | ||
## 1.1.7 | ||
|
||
- Fixing bug where updating a color with alpha `0` would keep it opaque (Jorge Moreno) | ||
|
||
## 1.1.6 | ||
|
||
* Adding `Rune.Node` to inject SVG nodes into the stage. Can be used if Rune.js does not support a specific tag. | ||
- Adding `Rune.Node` to inject SVG nodes into the stage. Can be used if Rune.js does not support a specific tag. | ||
|
||
## 1.1.5 | ||
|
||
* `fill()` and `stroke()` now support `false` (which renders no attribute) and `'none'` (which renders fill="none"). | ||
* Smaller filesize by procedurally adding getters and setters. | ||
- `fill()` and `stroke()` now support `false` (which renders no attribute) and `'none'` (which renders fill="none"). | ||
- Smaller filesize by procedurally adding getters and setters. | ||
|
||
## 1.1.4 | ||
|
||
* `fill()` and `stroke()` will now disable fill if the string 'none' is passed to them. | ||
* `fill()` and `stroke()` will no longer insert `file="none"` if set to false. | ||
* Replaced `lodash.each` with for loops for speed and size improvements. | ||
* Replaced `lodash.map` with native `map()` for speed and size improvements. | ||
* Replaced `lodash.flatten` with custom `flatten()` for speed and size improvements. | ||
* Replaced `lodash.defaults` with `lodash.assign` for size improvements. | ||
* Replaced `lodash.assign` with `object-assign` for size improvements. | ||
* Replaced `lodash.without` with custom `without` for size improvements. | ||
* Unminified size went from 215kb to 160kb | ||
- `fill()` and `stroke()` will now disable fill if the string 'none' is passed to them. | ||
- `fill()` and `stroke()` will no longer insert `file="none"` if set to false. | ||
- Replaced `lodash.each` with for loops for speed and size improvements. | ||
- Replaced `lodash.map` with native `map()` for speed and size improvements. | ||
- Replaced `lodash.flatten` with custom `flatten()` for speed and size improvements. | ||
- Replaced `lodash.defaults` with `lodash.assign` for size improvements. | ||
- Replaced `lodash.assign` with `object-assign` for size improvements. | ||
- Replaced `lodash.without` with custom `without` for size improvements. | ||
- Unminified size went from 215kb to 160kb | ||
|
||
## 1.1.3 | ||
|
||
* `Rune.Group` can now accept `fill()`, `stroke()`, and all other styling functions. This makes it easy to have a default style for all shapes in a group. | ||
* Massive rewrite of tests that tried to be too smart. | ||
- `Rune.Group` can now accept `fill()`, `stroke()`, and all other styling functions. This makes it easy to have a default style for all shapes in a group. | ||
- Massive rewrite of tests that tried to be too smart. | ||
|
||
## 1.1.2 | ||
|
||
* `Rune.Color` objects now accepts `rgb()` and `rgba()` strings. | ||
- `Rune.Color` objects now accepts `rgb()` and `rgba()` strings. | ||
|
||
## 1.1.1 | ||
|
||
* Calling `remove` on a group with a shape that is not in the group will not remove another shape in the group. | ||
* Adding `viewBox` attribute on resulting SVG. | ||
- Calling `remove` on a group with a shape that is not in the group will not remove another shape in the group. | ||
- Adding `viewBox` attribute on resulting SVG. | ||
|
||
## 1.1.0 | ||
|
||
* Fixed a giant bug with re-rendering of children if they were removed/added to a group. | ||
- Fixed a giant bug with re-rendering of children if they were removed/added to a group. | ||
|
||
## 1.0.3 | ||
|
||
* The npm package now has a `/dist/rune.js` folder packaged for the browser. | ||
- The npm package now has a `/dist/rune.js` folder packaged for the browser. | ||
|
||
## 1.0.2 | ||
|
||
* Actually fixing problem with re-rendering after removing child from group | ||
- Actually fixing problem with re-rendering after removing child from group | ||
|
||
## 1.0.1 | ||
|
||
* Fixing problem with re-rendering after removing child from group | ||
- Fixing problem with re-rendering after removing child from group | ||
|
||
## 1.0.0 | ||
|
||
* Renamed `Grid.modules` to `Grid.children` and combined functionality with `Rune.Group` | ||
- Renamed `Grid.modules` to `Grid.children` and combined functionality with `Rune.Group` | ||
|
||
## 0.4.5 | ||
|
||
* Added `Rune.map()` function. Thanks to [Yining Shi](http://1023.io/)! | ||
- Added `Rune.map()` function. Thanks to [Yining Shi](http://1023.io/)! | ||
|
||
## 0.4.4 | ||
|
||
* Fixing rendering problem when using `shape.removeParent()` | ||
* Fixing toPolygon for ellipse and circle. Now not doubling in size because of radius/diameter shuffling | ||
- Fixing rendering problem when using `shape.removeParent()` | ||
- Fixing toPolygon for ellipse and circle. Now not doubling in size because of radius/diameter shuffling | ||
|
||
## 0.4.3 | ||
|
||
* Removing ability to use percentage string in constructor. Should be done in CSS. | ||
- Removing ability to use percentage string in constructor. Should be done in CSS. | ||
|
||
## 0.4.2 | ||
|
||
* Better handling for node and browser if instantiating an object with percentage strings or no values for width and height. | ||
- Better handling for node and browser if instantiating an object with percentage strings or no values for width and height. | ||
|
||
## 0.4.1 | ||
|
||
* Added `setStart(x, y)` and `setEnd(x, y)` to `Line`. | ||
* You can now use percentage strings when instantiating a Rune.js object in a browser. `r.width` and `r.height` will be dynamically set to dimensions of the SVG based on browser rendering. | ||
- Added `setStart(x, y)` and `setEnd(x, y)` to `Line`. | ||
- You can now use percentage strings when instantiating a Rune.js object in a browser. `r.width` and `r.height` will be dynamically set to dimensions of the SVG based on browser rendering. | ||
|
||
## 0.4.0 | ||
|
||
This release **changes the existing API**. It fixes a number of problems discovered while using Rune.js. Most important, it implements a new React-inspired rendering mechanism that only re-renders changed objects. The library used to loop through every object to generate a virtual DOM patch. This would make the actual DOM change fast, but it still took up a lot of memory to iterate through every object. This new release changes the rendering so only shapes that changes are re-rendered in memory, making the library efficient both in the memory cycles and in the the DOM manipulation phase. | ||
|
||
* `.vars` is now called `.state` | ||
* `draw` event is now called `update`. This should make it clearer to not to Processing-style overpainting. | ||
* Implemented a new rendering strategy. This makes it a no no to change`.state` directly without calling the `.changed()` method on a shape. `.changed()` is automatically called for all shape functions that change the shape. Render time for 10k shapes fell from 12 seconds to 400 milliseconds. | ||
* `Line` method `move()` now moves the entire line and not just the starting position. | ||
* Shape functions no longer accept vectors. Will re-implement soon. | ||
- `.vars` is now called `.state` | ||
- `draw` event is now called `update`. This should make it clearer to not to Processing-style overpainting. | ||
- Implemented a new rendering strategy. This makes it a no no to change`.state` directly without calling the `.changed()` method on a shape. `.changed()` is automatically called for all shape functions that change the shape. Render time for 10k shapes fell from 12 seconds to 400 milliseconds. | ||
- `Line` method `move()` now moves the entire line and not just the starting position. | ||
- Shape functions no longer accept vectors. Will re-implement soon. | ||
|
||
## 0.3.0 | ||
|
||
* All mouseevents were off when the window scrolled | ||
- All mouseevents were off when the window scrolled | ||
|
||
## 0.3.1 | ||
|
||
* Code is now node modules instead of ES6. This makes a lot of things easier. | ||
* Rendering is now a bit faster. | ||
- Code is now node modules instead of ES6. This makes a lot of things easier. | ||
- Rendering is now a bit faster. | ||
|
||
## 0.2.19 | ||
|
||
* Most drawing functions now take vector arguments. Thanks to @philcn. | ||
* Added `Utils.round()` to fix browser inconsistencies. Thanks for @danielmcq. | ||
- Most drawing functions now take vector arguments. Thanks to @philcn. | ||
- Added `Utils.round()` to fix browser inconsistencies. Thanks for @danielmcq. | ||
|
||
## 0.2.18 | ||
|
||
* `Polygon` method `centroid()` now calculates centroid as closed shape. | ||
- `Polygon` method `centroid()` now calculates centroid as closed shape. | ||
|
||
## 0.2.17 | ||
|
||
* Publish failed. Republishing. | ||
- Publish failed. Republishing. | ||
|
||
## 0.2.16 | ||
|
||
* SVG now has correct namespaces | ||
* Rendering is improved drastically by using internal color values | ||
- SVG now has correct namespaces | ||
- Rendering is improved drastically by using internal color values | ||
|
||
## 0.2.15 | ||
|
||
* Debug mode now works in groups too | ||
- Debug mode now works in groups too | ||
|
||
## 0.2.14 | ||
|
||
* Adding `Image` to draw images in a SVG element | ||
* `strokeWidth` is now scaled when calling `.scale()` on a shape | ||
* Adding `round()` function to rectangles | ||
- Adding `Image` to draw images in a SVG element | ||
- `strokeWidth` is now scaled when calling `.scale()` on a shape | ||
- Adding `round()` function to rectangles | ||
|
||
## 0.2.13 | ||
|
||
* Certain shape variables weren't copied when using `copy()`. Now fixed. | ||
- Certain shape variables weren't copied when using `copy()`. Now fixed. | ||
|
||
## 0.2.12 | ||
|
||
* Adding `mousedown` mouse event | ||
* Adding `mouseup` mouse event | ||
* Adding `click` mouse event | ||
- Adding `mousedown` mouse event | ||
- Adding `mouseup` mouse event | ||
- Adding `click` mouse event | ||
|
||
## 0.2.11 | ||
|
||
* Adding `scale()` to all shapes | ||
* Adding `scale()` to groups | ||
- Adding `scale()` to all shapes | ||
- Adding `scale()` to groups | ||
|
||
## 0.2.10 | ||
|
||
* Removing colorString library to shrink size of library. | ||
- Removing colorString library to shrink size of library. | ||
|
||
## 0.2.9 | ||
|
||
* `Polygon` now has a `contains(x,y)` function to know whether a point is inside or outside a polygon | ||
* Group and shapes now have a `stagepos()` function that returns their absolute position according to the stage | ||
* Removing `Groupable` mixin in favor of `Shape` | ||
* Replacing underscore with lodash to shrink size of library | ||
* Updated code to use Babel 6 | ||
* Removed bezier.js library to shrink size of library | ||
- `Polygon` now has a `contains(x,y)` function to know whether a point is inside or outside a polygon | ||
- Group and shapes now have a `stagepos()` function that returns their absolute position according to the stage | ||
- Removing `Groupable` mixin in favor of `Shape` | ||
- Replacing underscore with lodash to shrink size of library | ||
- Updated code to use Babel 6 | ||
- Removed bezier.js library to shrink size of library | ||
|
||
## 0.2.8 | ||
|
||
* Text shapes are not copied with all their variables when calling `copy()`. | ||
- Text shapes are not copied with all their variables when calling `copy()`. | ||
|
||
## 0.2.7 | ||
|
||
* Adding `Grid` `getModule` to easily access a grid module. | ||
* Changing internal represenation of module from array of arrays to a single array of modules. | ||
- Adding `Grid` `getModule` to easily access a grid module. | ||
- Changing internal represenation of module from array of arrays to a single array of modules. | ||
|
||
## 0.2.6 | ||
|
||
* Triangle `move()` now moves the entire triangle, not just the starting point. | ||
- Triangle `move()` now moves the entire triangle, not just the starting point. | ||
|
||
## 0.2.5 | ||
|
||
* Fixing bugs around variables shadowing function names, which makes `Rune.js` work in Safari and most mobile browsers. | ||
- Fixing bugs around variables shadowing function names, which makes `Rune.js` work in Safari and most mobile browsers. | ||
|
||
## 0.2.4 | ||
|
||
* Fixing a bug around `requestAnimationframe` not getting cancelled if used within the `draw` listener. [issue](https://github.com/runemadsen/rune.js/issues/4) | ||
- Fixing a bug around `requestAnimationframe` not getting cancelled if used within the `draw` listener. [issue](https://github.com/runemadsen/rune.js/issues/4) | ||
|
||
## 0.2.3 | ||
|
||
* NPM package now ships `rune.browser.js` for easy of install. | ||
- NPM package now ships `rune.browser.js` for easy of install. | ||
|
||
## 0.2.2 | ||
|
||
* Quick fix to not break node when checking for window. | ||
- Quick fix to not break node when checking for window. | ||
|
||
## 0.2.1 | ||
|
||
* The npm package no longer has a `Rune` global. Require statement has to look like `var Rune = require('rune.js')` | ||
- The npm package no longer has a `Rune` global. Require statement has to look like `var Rune = require('rune.js')` | ||
|
||
## 0.2.0 | ||
|
||
* Complete rewrite of test structure and gulpfile used to generate NPM and Github releases. NPM tarball now actually works. | ||
- Complete rewrite of test structure and gulpfile used to generate NPM and Github releases. NPM tarball now actually works. | ||
|
||
## 0.1.6 | ||
|
||
* `Rune.js` is now tested and working in server-side node. Hurrah! | ||
- `Rune.js` is now tested and working in server-side node. Hurrah! | ||
|
||
## 0.1.5 | ||
|
||
* Removing `rgba()` fill and stroke values and introducing straight up `rgb()` with `fill-opacity` and `stroke-opacity`, as Illustrator does not recognize `rgba()`. | ||
- Removing `rgba()` fill and stroke values and introducing straight up `rgb()` with `fill-opacity` and `stroke-opacity`, as Illustrator does not recognize `rgba()`. | ||
|
||
## 0.1.4 | ||
|
||
* Adding direct access to `Color.Convert` functions. | ||
- Adding direct access to `Color.Convert` functions. | ||
|
||
## 0.1.3 | ||
|
||
* Adding `Triangle` and `r.triangle()` | ||
* Fixing some math in the `Polygon` `bounds()` function | ||
* Bounds and `bounds()` and `centroid` now return a `Vector` that hasn't the shape positions added. They now return internal representations. | ||
- Adding `Triangle` and `r.triangle()` | ||
- Fixing some math in the `Polygon` `bounds()` function | ||
- Bounds and `bounds()` and `centroid` now return a `Vector` that hasn't the shape positions added. They now return internal representations. | ||
|
||
## 0.1.2 | ||
|
||
* Rerelease because I don't understand how GitHub releases work. | ||
- Rerelease because I don't understand how GitHub releases work. | ||
|
||
## 0.1.1 | ||
|
||
* `Grid` `gutterX` and `gutterY` has been renamed to `gutterWidth` and `gutterHeight`. | ||
* Added `removeParent()` to all shapes to remove them from parent | ||
* Added `addParent()` to all shapes to add them to parent | ||
- `Grid` `gutterX` and `gutterY` has been renamed to `gutterWidth` and `gutterHeight`. | ||
- Added `removeParent()` to all shapes to remove them from parent | ||
- Added `addParent()` to all shapes to add them to parent | ||
|
||
## 0.1.0 | ||
|
||
* Initial release! | ||
- Initial release! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,3 +20,4 @@ $ rune test browser | |
## Contributors | ||
|
||
- [Yining Shi](http://1023.io/) | ||
- [Jorge Moreno](https://www.moro.es/) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters