Skip to content

Commit c04053b

Browse files
authored
Prepare 2.4 (#153)
1 parent 3e9e0a2 commit c04053b

File tree

21 files changed

+40
-1525
lines changed

21 files changed

+40
-1525
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -10,48 +10,6 @@ jobs:
1010
# The type of runner that the job will run on
1111
runs-on: ubuntu-latest
1212

13-
# Steps represent a sequence of tasks that will be executed as part of the job
14-
steps:
15-
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
16-
- uses: actions/checkout@v3
17-
18-
- name: Setup Node.js environment
19-
uses: actions/setup-node@v3
20-
with:
21-
node-version: lts/*
22-
23-
# Re-use node_modules between runs until package-lock.json changes.
24-
- name: Cache node_modules
25-
id: internal-cache-node_modules
26-
uses: actions/cache@v3
27-
with:
28-
path: node_modules
29-
key: internal-node_modules-ubuntu-latest.x-${{ hashFiles('package-lock.json') }}
30-
31-
# Re-use ~/.elm between runs until elm.json, elm-tooling.json or
32-
# review/elm.json changes. The Elm compiler saves downloaded Elm packages
33-
# to ~/.elm, and elm-tooling saves downloaded tool executables there.
34-
- name: Cache ~/.elm
35-
uses: actions/cache@v3
36-
with:
37-
path: ~/.elm
38-
key: elm-${{ hashFiles('elm.json', 'review/elm.json') }}
39-
40-
- name: Install npm dependencies
41-
if: steps.cache-node_modules.outputs.cache-hit != 'true'
42-
43-
run: npm ci --omit dev
44-
45-
- name: Run tests
46-
run: npm test
47-
48-
publish:
49-
if: github.ref == 'refs/heads/master' # run only on master
50-
needs: [test] # make sure all your other jobs succeed before trying to publish
51-
52-
# The type of runner that the job will run on
53-
runs-on: ubuntu-latest
54-
5513
# Steps represent a sequence of tasks that will be executed as part of the job
5614
steps:
5715
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
@@ -70,7 +28,7 @@ jobs:
7028
path: node_modules
7129
key: internal-node_modules-ubuntu-latest.x-${{ hashFiles('package-lock.json') }}
7230

73-
# Re-use ~/.elm between runs until elm.json or
31+
# Re-use ~/.elm between runs until elm.json, elm-tooling.json or
7432
# review/elm.json changes. The Elm compiler saves downloaded Elm packages
7533
# to ~/.elm, and elm-tooling saves downloaded tool executables there.
7634
- name: Cache ~/.elm
@@ -81,21 +39,8 @@ jobs:
8139

8240
- name: Install npm dependencies
8341
if: steps.cache-node_modules.outputs.cache-hit != 'true'
84-
env:
85-
# If you have a `"postinstall": "elm-tooling install"` script in your
86-
# package.json, this turns it into a no-op. We’ll run it in the next
87-
# step because of the caching. If elm-tooling.json changes but
88-
# package-lock.json does not, the postinstall script needs running
89-
# but this step won’t.
90-
NO_ELM_TOOLING_INSTALL: 1
91-
run: npm ci
9242

93-
94-
# We could optionally enable this?
95-
# # Runs a single command using the runners shell
96-
# - name: Elm Publish
97-
# uses: dillonkearns/elm-publish-action@v1
98-
# with:
99-
# # Token provided by GitHub
100-
# github-token: ${{ secrets.GITHUB_TOKEN }}
101-
# path-to-elm: ./node_modules/.bin/elm
43+
run: npm ci --omit dev
44+
45+
- name: Run tests
46+
run: npm test

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v12.14.0
1+
v19.5.0

README.md

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ![Elm-visualization](https://code.gampleman.eu/elm-visualization/misc/Logo-600.png)
22

3-
[Docs](https://package.elm-lang.org/packages/gampleman/elm-visualization/2.3.0/) | [Examples](https://elm-visualization.netlify.com/) | [GitHub](https://github.com/gampleman/elm-visualization) | [Changelog](https://github.com/gampleman/elm-visualization/releases) | `#visualization` on [Elm slack](https://elmlang.herokuapp.com)
3+
[Tutorial](https://github.com/gampleman/elm-visualization/blob/master/docs/INTRO.md) | [Docs](https://package.elm-lang.org/packages/gampleman/elm-visualization/2.4.0/) | [Examples](https://elm-visualization.netlify.com/) | [GitHub](https://github.com/gampleman/elm-visualization) | [Changelog](https://github.com/gampleman/elm-visualization/releases) | `#visualization` on [Elm slack](https://elmlang.herokuapp.com)
44

55
This project is designed to give you all the tools needed to build data visualizations.
66
It is not a charting library in the sense that you have pre-bundled Excel-style
@@ -12,6 +12,8 @@ that uniquely suite your needs.
1212

1313
[![Examples](https://code.gampleman.eu/elm-visualization/misc/examples-600.png)](https://elm-visualization.netlify.com/)
1414

15+
or [read the introduction](https://github.com/gampleman/elm-visualization/blob/master/docs/INTRO.md).
16+
1517
## Getting started
1618

1719
You will need to have [elm](https://elm-lang.org) installed. Then run:
@@ -26,53 +28,58 @@ However, there are other packages that you will likely need to produce a visuali
2628
- [avh4/elm-color](https://package.elm-lang.org/packages/avh4/elm-color/latest) for the `Color` type
2729
- [elm-community/typed-svg](https://package.elm-lang.org/packages/elm-community/typed-svg/latest) for rendering
2830
- [folkertdev/one-true-path-experiment](https://package.elm-lang.org/packages/folkertdev/one-true-path-experiment/latest) for the `Path` type
31+
- [gampleman/elm-rosetree](https://package.elm-lang.org/packages/gampleman/elm-rosetree/latest) for the `Tree` type
2932

30-
You can use [this Ellie](https://ellie-app.com/d6JBvDHFhRBa1) to run the examples, since it has all the dependencies already installed into it.
33+
You can use [this Ellie](https://ellie-app.com/p6X5hXxcdRCa1) to run the examples, since it has all the dependencies already installed into it.
3134

3235
## What's included?
3336

34-
### [Scales](https://package.elm-lang.org/packages/gampleman/elm-visualization/2.3.0/Scale/)
37+
### [Scales](https://package.elm-lang.org/packages/gampleman/elm-visualization/2.4.0/Scale/)
3538

3639
Most of the time you have data that has properties that you want to display on the
3740
screen, however these properties typically aren't in pixels. Scales solve this
3841
fundamental problem by giving you convenient ways to transform raw data into positions,
3942
sizes, colors, labels and other ways to display data.
4043

41-
### [Axis](https://package.elm-lang.org/packages/gampleman/elm-visualization/2.3.0/Axis/)
44+
### [Axis](https://package.elm-lang.org/packages/gampleman/elm-visualization/2.4.0/Axis/)
4245

4346
A component that allows you to visualize a Scale. Those little ticks that describe
4447
the dimensions of a plot.
4548

46-
### [Shapes](https://package.elm-lang.org/packages/gampleman/elm-visualization/2.3.0/Shape/)
49+
### [Shapes](https://package.elm-lang.org/packages/gampleman/elm-visualization/2.4.0/Shape/)
4750

4851
This module gives you ways to draw some fundamental shapes used in data visualization, including lines (as in line or area charts),
4952
as well as arcs (as in pie charts).
5053

51-
### [Force Layout](https://package.elm-lang.org/packages/gampleman/elm-visualization/2.3.0/Force/)
54+
### [Force Layout](https://package.elm-lang.org/packages/gampleman/elm-visualization/2.4.0/Force/)
5255

5356
Use a simulation of physical forces to do layout. Suitable for i.e. network graphs.
5457

55-
### [Interpolation](https://package.elm-lang.org/packages/gampleman/elm-visualization/2.3.0/Interpolation/)
58+
### [Hierarchy](https://package.elm-lang.org/packages/gampleman/elm-visualization/2.4.0/Hierarchy/)
59+
60+
Layout algorithms for dealing with trees.
61+
62+
### [Interpolation](https://package.elm-lang.org/packages/gampleman/elm-visualization/2.4.0/Interpolation/)
5663

5764
Smoothly transition between pairs of values. Useful for animation, or generating gradients of values.
5865

59-
### [Transition](https://package.elm-lang.org/packages/gampleman/elm-visualization/2.3.0/Transition/)
66+
### [Transition](https://package.elm-lang.org/packages/gampleman/elm-visualization/2.4.0/Transition/)
6067

6168
Build complex animations using Interpolation.
6269

63-
### [Histogram](https://package.elm-lang.org/packages/gampleman/elm-visualization/2.3.0/Histogram/)
70+
### [Histogram](https://package.elm-lang.org/packages/gampleman/elm-visualization/2.4.0/Histogram/)
6471

6572
Compute histograms of data.
6673

67-
### [Brush](https://package.elm-lang.org/packages/gampleman/elm-visualization/2.3.0/Brush/)
74+
### [Brush](https://package.elm-lang.org/packages/gampleman/elm-visualization/2.4.0/Brush/)
6875

6976
Interactively select subregions of a dataset.
7077

71-
### [Zoom](https://package.elm-lang.org/packages/gampleman/elm-visualization/2.3.0/Zoom/)
78+
### [Zoom](https://package.elm-lang.org/packages/gampleman/elm-visualization/2.4.0/Zoom/)
7279

7380
Build pan and zoom user interactions.
7481

75-
### [Statistics](https://package.elm-lang.org/packages/gampleman/elm-visualization/2.3.0/Statistics/)
82+
### [Statistics](https://package.elm-lang.org/packages/gampleman/elm-visualization/2.4.0/Statistics/)
7683

7784
Process data to extract useful insights for visualizations.
7885

docs.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

elm-analyse.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

elm.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"name": "gampleman/elm-visualization",
44
"summary": "A data visualization package for Elm",
55
"license": "MIT",
6-
"version": "2.3.0",
6+
"version": "2.4.0",
77
"exposed-modules": [
88
"Scale",
99
"Scale.Color",
@@ -29,6 +29,7 @@
2929
"elm/time": "1.0.0 <= v < 2.0.0",
3030
"elm-community/list-extra": "8.2.4 <= v < 9.0.0",
3131
"folkertdev/one-true-path-experiment": "5.0.0 <= v < 7.0.0",
32+
"gampleman/elm-rosetree": "1.0.0 <= v < 2.0.0",
3233
"ianmackenzie/elm-geometry": "3.6.0 <= v < 4.0.0",
3334
"ianmackenzie/elm-units-prefixed": "2.0.0 <= v < 3.0.0",
3435
"justinmimbs/time-extra": "1.0.1 <= v < 2.0.0",

examples/LayeredTree.elm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ module LayeredTree exposing (main)
88

99
import Color
1010
import Hierarchy
11-
import Hierarchy.Tree as Tree exposing (Tree)
1211
import Path
1312
import Shape
13+
import Tree exposing (Tree)
1414
import TypedSvg exposing (g, rect, svg)
1515
import TypedSvg.Attributes exposing (dy, fill, pointerEvents, stroke, style, transform, viewBox)
1616
import TypedSvg.Attributes.InPx exposing (fontSize, height, rx, width, x, y)

examples/Sunburst.elm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ import Csv.Decode as Csv
3737
import Curve
3838
import Example
3939
import Hierarchy
40-
import Hierarchy.Tree as Tree exposing (Tree)
4140
import Html exposing (Html)
4241
import Http
4342
import List.Extra
@@ -47,6 +46,7 @@ import Scale.Color
4746
import Set
4847
import Shape
4948
import Svg.Lazy
49+
import Tree exposing (Tree)
5050
import TypedSvg exposing (g, rect, svg, text_)
5151
import TypedSvg.Attributes exposing (dy, fill, stroke, textAnchor, transform, viewBox)
5252
import TypedSvg.Attributes.InPx exposing (height, rx, strokeWidth, width, x, y)

examples/TidyTree.elm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ import Browser
1212
import Color
1313
import Curve
1414
import Hierarchy
15-
import Hierarchy.Tree as Tree exposing (Tree)
1615
import List.Extra
1716
import Path
1817
import Shape
18+
import Tree exposing (Tree)
1919
import TypedSvg exposing (g, rect, svg)
2020
import TypedSvg.Attributes exposing (dy, fill, href, id, pointerEvents, stroke, style, textAnchor, transform, viewBox)
2121
import TypedSvg.Attributes.InPx exposing (fontSize, height, width, x, y)

examples/Treemap.elm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ module Treemap exposing (TilingMethod, main)
66
import Color exposing (Color)
77
import Example
88
import Hierarchy
9-
import Hierarchy.Tree as Tree exposing (Tree)
109
import Html exposing (Html)
1110
import Scale exposing (OrdinalScale)
1211
import Scale.Color
12+
import Tree exposing (Tree)
1313
import TypedSvg exposing (g, rect, svg)
1414
import TypedSvg.Attributes exposing (fill, href, id, transform, viewBox)
1515
import TypedSvg.Attributes.InPx exposing (height, width, x)

0 commit comments

Comments
 (0)