|
1 | 1 | # Changelog
|
2 | 2 |
|
3 | 3 | ## 0.10.0
|
4 |
| -* PR to fix delete the children of a group when the group itself is deleted. Thanks to Chris Boebel. @cboebel |
5 |
| -* Improve building the C products. PR #126 - @fhunleth |
6 |
| -* Added a :parser option to Cache.File.read/load to allow custom interpreters |
| 4 | +* Integration of font metrics |
| 5 | + * Buttons, checkboxes, radios, etc can be auto-sized to fix their text |
| 6 | + * FontMetrics can be used to measure strings, trim to fit, and more |
7 | 7 | * Much improved error handling when a scene crashes during its init phase. Instead of quickly
|
8 | 8 | restarting the scene over and over, it now goes to an error scene that displays debug info.
|
9 | 9 | Also displays that info in the command line.
|
10 |
| -* Added a ViewPort.reset() function (used by the error scene), which can be used to send |
11 |
| - a ViewPort back to the original scene it was started with. |
12 | 10 | * Integrated spec-based graphs from @pragdave. This is a cleaner looking way to build graphs.
|
13 | 11 | See the changes in primitives.ex
|
14 |
| -* Breaking changes to Scenic.Cache. It has been replaced by asset specific caches. |
15 |
| -* Integration of font metrics |
16 |
| - * Buttons, checkboxes, radios, etc can be auto-sized to fix their text |
17 |
| - * FontMetrics can be used to measure strings, trim to fit, and more |
18 |
| -* Dynamic Textures in the form of raw pixel maps are now supported. This should allow you to capture raw images off of a camera and display them without encoding/decoding |
| 12 | +* PR to fix delete the children of a group when the group itself is deleted. Thanks to |
| 13 | + Chris Boebel. @cboebel |
| 14 | +* Improve building the C products. PR #126 - @fhunleth |
| 15 | +* Added a :parser option to Cache.File.read/load to allow custom interpreters |
| 16 | +* Added a ViewPort.reset() function (used by the error scene), which can be used to send |
| 17 | + a ViewPort back to the original scene it was started with. |
| 18 | +* Dynamic Textures in the form of raw pixel maps are now supported. This should allow you |
| 19 | + to capture raw images off of a camera and display them without encoding/decoding |
19 | 20 | * leading spaces in a text primitive are now rendered
|
20 | 21 | * Scene callbacks are all updated to support the OTP 21+ callback returns.
|
21 | 22 | * Scenes now have the terminate callback.
|
22 |
| -* push_graph is deprecated in favor of returning {:push, graph} options form the callbacks |
| 23 | + |
| 24 | +**Deprecations:** |
| 25 | +* `push_graph/1` is deprecated in favor of returning `{:push, graph}` |
| 26 | + ([keyword](https://hexdocs.pm/elixir/Keyword.html)) options |
| 27 | + from the `Scenic.Scene` callbacks. Since this is only a deprecation `push_graph/1` will |
| 28 | + continue to work, but will log a warning when used. `push_graph/1` will be removed in a |
| 29 | + future release. |
| 30 | + * This allows us to utilize the full suite of OTP GenServer callback behaviors (such as |
| 31 | + timeout and `handle_continue`) |
| 32 | + * Replacing the call of `push_graph(graph)` within a callback function depends slightly |
| 33 | + on the context in which it is used. |
| 34 | + * in `init/2`: |
| 35 | + * `{:ok, state, [push: graph]}` |
| 36 | + * in `filter_event/3`: |
| 37 | + * `{:halt, state, [push: graph]}` |
| 38 | + * `{:cont, event, state, [push: graph]}` |
| 39 | + * in `handle_cast/2`: |
| 40 | + * `{:noreply, state, [push: graph]}` |
| 41 | + * in `handle_info/2`: |
| 42 | + * `{:noreply, state, [push: graph]}` |
| 43 | + * in `handle_call/3`: |
| 44 | + * `{:reply, reply, state, [push: graph]}` |
| 45 | + * `{:noreply, state, [push: graph]}` |
| 46 | + * in `handle_continue/3`: |
| 47 | + * `{:noreply, state, [push: graph]}` |
| 48 | + |
| 49 | +**Breaking Changes:** |
| 50 | +* Breaking changes to Scenic.Cache. It has been replaced by asset specific caches. |
23 | 51 |
|
24 | 52 | ## 0.9.0
|
25 | 53 | * Much improved testing
|
|
0 commit comments