Commit graph

930 commits

Author SHA1 Message Date
Ai-Ya-Ya
a9b758ea0a setup unit tests for Nix
Both for a `nix-build`, where `cabal` executable is not present, but
also just for using Stack with nix integration. With nix integration,
Stack will make a `nix-shell` where `stack` executable is not found.

We use "bare-bones" GHC to solve this. This GHC doesn't exactly respect
our Stack or Cabal configurations, so we need to avoid `cubicbezier`'s
`matrices` dependency so that `Data.Matrix` resolves to `matrix`
package.

Also, we don't error on compiler warnings when compiling test files
through Nix. I don't know if these warnings would show up on a regular
Stack or Cabal config (I'm on NixOS), so it's unaffected for those.

TL;DR: Added testing support for Nix build environments; Cabal and Stack
environments should be unchanged.
2025-12-29 19:15:13 +00:00
Ruifeng Xie
bae6456026 fix compatibility with unix-2.8
- breaking change: not compatible with unix-2.7
2025-12-26 23:06:30 +00:00
Ai-Ya-Ya
6b09d21b0b bump websockets lb 0.12.7.0 -> 0.13.0.0
serverRequirePong was removed in 0.13
2025-12-26 22:48:24 +00:00
Ai-Ya-Ya
389160c351 bump aeson ub 2.2 -> 2.3 2025-12-26 21:38:42 +00:00
Ai-Ya-Ya
6bf63b7c00 Merge remote-tracking branch 'fix-ghc9.6/master' 2025-12-26 21:34:26 +00:00
David Himmelstrup
583ee9f426
remove invalid site checking workflow 2025-02-06 19:32:19 +01:00
Ruifeng Xie
dcc60213b2
Fix compatibility with mtl-2.3 and lts-22 2023-12-30 00:22:40 +01:00
dependabot[bot]
82638c078c
Bump qs from 6.5.2 to 6.5.3 in /viewer-elm (#302) 2022-12-21 12:22:43 +01:00
dependabot[bot]
d8e853b1b7
Bump actions/cache from 3.0.10 to 3.0.11 (#297) 2022-12-21 12:22:12 +01:00
AndreasPK
7d949ea0ea
Fix build for ghc-9.2 (#301)
* Fix builds against hashable >= 1.4

Derive Eq for APolygon as required by the added Eq constraint on
Hashable.

* Bump version to 1.1.7 for new instance, relax aeson bounds.
2022-12-21 12:21:48 +01:00
dependabot[bot]
d4d3898831
Bump actions/cache from 3.0.5 to 3.0.10 (#296)
Bumps [actions/cache](https://github.com/actions/cache) from 3.0.5 to 3.0.10.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v3.0.5...v3.0.10)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-12 16:00:23 +02:00
dependabot[bot]
4a5f608654
Bump JamesIves/github-pages-deploy-action from 4.3.4 to 4.4.0 (#291)
Bumps [JamesIves/github-pages-deploy-action](https://github.com/JamesIves/github-pages-deploy-action) from 4.3.4 to 4.4.0.
- [Release notes](https://github.com/JamesIves/github-pages-deploy-action/releases)
- [Commits](https://github.com/JamesIves/github-pages-deploy-action/compare/v4.3.4...v4.4.0)

---
updated-dependencies:
- dependency-name: JamesIves/github-pages-deploy-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-21 14:05:06 +02:00
dependabot[bot]
c95b0fe9c2
Bump actions/cache from 3.0.4 to 3.0.5 (#290)
Bumps [actions/cache](https://github.com/actions/cache) from 3.0.4 to 3.0.5.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v3.0.4...v3.0.5)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-21 13:25:51 +02:00
dependabot[bot]
4a3ec6b43f
Bump JamesIves/github-pages-deploy-action from 4.3.3 to 4.3.4 (#289)
Bumps [JamesIves/github-pages-deploy-action](https://github.com/JamesIves/github-pages-deploy-action) from 4.3.3 to 4.3.4.
- [Release notes](https://github.com/JamesIves/github-pages-deploy-action/releases)
- [Commits](https://github.com/JamesIves/github-pages-deploy-action/compare/v4.3.3...v4.3.4)

---
updated-dependencies:
- dependency-name: JamesIves/github-pages-deploy-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-27 14:53:04 +02:00
Anjali Smith
d0263d15aa
Fork() and Waitpid() Simulator (#288)
Co-authored-by: Anjali Smith <anjalismith@Anjalis-Air.home>
2022-06-12 11:56:42 +02:00
dependabot[bot]
a1d946c1b9
Bump actions/cache from 3.0.3 to 3.0.4 (#283)
Bumps [actions/cache](https://github.com/actions/cache) from 3.0.3 to 3.0.4.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v3.0.3...v3.0.4)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-07 14:06:05 +02:00
David Himmelstrup
f58a00e56a
Disable hgeometry dependency and bump version. (#282) 2022-06-02 20:09:15 +02:00
Paul Gardiner
ed1c0ba6c1
Hierarchical sprites and objects (#269)
* Separate sprite creation from adding to scene

This is work towards supporting hierarchical sprites and objects:
the Sprite data definition is updated to include it's generator and
a new function newSpritePart is added to create a sprite without
adding the generator to the scene, making it invisible. Later commits
will provide a way for sprites created by newSpritePart to be used
in the definitions of other sprites.

* Support use of one sprite within another

This is work towards supporting hierarchical sprites and objects.
A new function, renderSprite, is defined that exposes its generator
in the form of a Frame context that can be used in the definitions
of other sprites.

Some internal types have had to be changed to support renderSprite. The
frame context created by renderSprite runs the sprite's generator, and must
supply the scene duration to it, and so the frame type has had to be updated
also to be dependent on the scene duration. In turn, a sprite's effects
mapping needs to be able to interpret a frame context in the implementation
of spriteModify, and so the effects mapping has also had to be made
dependent on the scene duration.

* Support use of objects within hierarchical sprites

Allow use of objects as leaves within a hierarchically
defined sprite. Two new functions are added:

  The function newObjectPart creates an object, not immediately
  added to the scene, so invisible even after calls to oShow, and
  mainfesting only if used within the definition of a sprite.

  The function renderObject exposes the generator of the object's
  internal sprite in the form of a frame context that can be used
  in the definitions of other sprites.

* Add example script showing use of newObjectPart and renderObject

This is a slightly contrived example, chosen to show an animation that
is difficult to contruct other than hiearchically. Two strings are placed
one over the other. They are shown using oDraw which requires their being
Objects. The overlapping strings are faded out, which requires
opacity to be applied at the group level: fading each individually would
lead to the lower string becoming visible through the upper one as opacity
is decreased.
2022-06-02 15:40:56 +02:00
dependabot[bot]
f70ef76ddb
Bump actions/cache from 3.0.2 to 3.0.3 (#280)
Bumps [actions/cache](https://github.com/actions/cache) from 3.0.2 to 3.0.3.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v3.0.2...v3.0.3)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-02 15:40:14 +02:00
dependabot[bot]
594a7a491f
Bump JamesIves/github-pages-deploy-action from 4.3.0 to 4.3.3 (#278)
Bumps [JamesIves/github-pages-deploy-action](https://github.com/JamesIves/github-pages-deploy-action) from 4.3.0 to 4.3.3.
- [Release notes](https://github.com/JamesIves/github-pages-deploy-action/releases)
- [Commits](https://github.com/JamesIves/github-pages-deploy-action/compare/v4.3.0...v4.3.3)

---
updated-dependencies:
- dependency-name: JamesIves/github-pages-deploy-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-02 15:40:03 +02:00
dependabot[bot]
6f0dba7284
Bump actions/cache from 3.0.1 to 3.0.2 (#276)
Bumps [actions/cache](https://github.com/actions/cache) from 3.0.1 to 3.0.2.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v3.0.1...v3.0.2)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-11 15:57:34 +02:00
dependabot[bot]
33a0d488aa
Bump JamesIves/github-pages-deploy-action from 4.2.5 to 4.3.0 (#275)
Bumps [JamesIves/github-pages-deploy-action](https://github.com/JamesIves/github-pages-deploy-action) from 4.2.5 to 4.3.0.
- [Release notes](https://github.com/JamesIves/github-pages-deploy-action/releases)
- [Commits](https://github.com/JamesIves/github-pages-deploy-action/compare/v4.2.5...v4.3.0)

---
updated-dependencies:
- dependency-name: JamesIves/github-pages-deploy-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-11 15:57:09 +02:00
dependabot[bot]
c5ab0606e7
Bump actions/cache from 2 to 3.0.1 (#274)
Bumps [actions/cache](https://github.com/actions/cache) from 2 to 3.0.1.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v2...v3.0.1)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-05 13:16:53 +02:00
dependabot[bot]
d0a606e7bb
Bump actions/checkout from 2 to 3 (#268)
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-30 14:15:11 +02:00
dependabot[bot]
19df0ae7a8
Bump minimist from 1.2.5 to 1.2.6 in /viewer-elm (#272)
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-30 14:14:11 +02:00
David Himmelstrup
e7b7469395
Restrict hgeometry dependency. (#273) 2022-03-30 13:25:15 +02:00
dependabot[bot]
c6e801683d
Bump actions/setup-node from 2.5.1 to 3 (#266)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 2.5.1 to 3.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v2.5.1...v3)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-25 12:48:54 +01:00
dependabot[bot]
67a4729802
Bump JamesIves/github-pages-deploy-action from 4.2.2 to 4.2.5 (#265)
Bumps [JamesIves/github-pages-deploy-action](https://github.com/JamesIves/github-pages-deploy-action) from 4.2.2 to 4.2.5.
- [Release notes](https://github.com/JamesIves/github-pages-deploy-action/releases)
- [Commits](https://github.com/JamesIves/github-pages-deploy-action/compare/v4.2.2...v4.2.5)

---
updated-dependencies:
- dependency-name: JamesIves/github-pages-deploy-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-25 12:48:41 +01:00
dependabot[bot]
c4a2f1dedd
Bump follow-redirects from 1.14.7 to 1.14.8 in /viewer-elm (#264)
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.14.7 to 1.14.8.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.14.7...v1.14.8)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-25 12:48:33 +01:00
dependabot[bot]
54ffee4e6d
Bump ajv from 6.10.2 to 6.12.6 in /viewer-elm (#263)
Bumps [ajv](https://github.com/ajv-validator/ajv) from 6.10.2 to 6.12.6.
- [Release notes](https://github.com/ajv-validator/ajv/releases)
- [Commits](https://github.com/ajv-validator/ajv/compare/v6.10.2...v6.12.6)

---
updated-dependencies:
- dependency-name: ajv
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-25 12:48:25 +01:00
David Himmelstrup
8375edaaf5 Bump version to 1.1.5.0 2022-01-24 10:50:00 +01:00
dependabot[bot]
1536605cdd Bump follow-redirects from 1.9.0 to 1.14.7 in /viewer-elm
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.9.0 to 1.14.7.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.9.0...v1.14.7)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-24 09:47:47 +00:00
David Himmelstrup
c0b5eeea07 Update apt sources. 2022-01-24 09:40:40 +01:00
David Himmelstrup
f0e1eb413f Disable coverage. 2022-01-23 19:27:13 +01:00
David Himmelstrup
5bf94d0d05 Disable coverage for deps. 2022-01-23 19:02:38 +01:00
David Himmelstrup
4030ff877b Bump ghc version. 2022-01-23 18:54:52 +01:00
David Himmelstrup
5b76d53737
Fix CI. (#261) 2022-01-23 18:35:04 +01:00
David Himmelstrup
30359e9d37
Add 'signalS' and signalO for applying easing functions to sprites/objects. (#260) 2022-01-23 17:27:43 +01:00
dependabot[bot]
3c60c0d64d Bump actions/setup-node from 2.4.0 to 2.5.1
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 2.4.0 to 2.5.1.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v2.4.0...v2.5.1)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-21 08:28:22 +00:00
dependabot[bot]
46c730569d Bump JamesIves/github-pages-deploy-action from 4.1.6 to 4.2.2
Bumps [JamesIves/github-pages-deploy-action](https://github.com/JamesIves/github-pages-deploy-action) from 4.1.6 to 4.2.2.
- [Release notes](https://github.com/JamesIves/github-pages-deploy-action/releases)
- [Commits](https://github.com/JamesIves/github-pages-deploy-action/compare/4.1.6...v4.2.2)

---
updated-dependencies:
- dependency-name: JamesIves/github-pages-deploy-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-21 08:28:12 +00:00
dependabot[bot]
d22af8dc38 Bump JamesIves/github-pages-deploy-action from 4.1.5 to 4.1.6
Bumps [JamesIves/github-pages-deploy-action](https://github.com/JamesIves/github-pages-deploy-action) from 4.1.5 to 4.1.6.
- [Release notes](https://github.com/JamesIves/github-pages-deploy-action/releases)
- [Commits](https://github.com/JamesIves/github-pages-deploy-action/compare/4.1.5...4.1.6)

---
updated-dependencies:
- dependency-name: JamesIves/github-pages-deploy-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-19 20:57:00 +08:00
Mike Pilgrem
d427ff5624
Merge pull request #242 from mpilgrem/fileUri
Fix #240 Use valid file URI format in `mkImage`
2021-11-13 09:51:35 +00:00
Mike Pilgrem
daa42a57f4 Fix #240 Use valid file URI format in mkImage 2021-11-13 01:54:26 +00:00
Mike Pilgrem
2d2a37b6ac
Merge pull request #239 from mpilgrem/bbRect
`svgBoundingPoints` for `RectangleTree` and `ImageTree`
2021-11-07 23:29:24 +00:00
Mike Pilgrem
f73c725db4 svgBoundingPoints for RectangleTree and ImageTree
Currently, the bounding points for a rectangle or an image are only the upper left corner and the bottom right corner (if the width and height are specified).

This pull request suggests that the other two corners of the rectangle need to be specified as bounding points (in case the rectangle is rotated by other than an integral multiple of 90 degrees).

It also adds helper functions `rectPoints` and `rectPoints'` to reduce code duplication.
2021-11-07 22:50:29 +00:00
Mike Pilgrem
10862baa8a
Merge pull request #237 from mpilgrem/bump-ci
Bump Azure Windows CI to `stack.yaml` (lts-18.16)
2021-11-07 18:39:47 +00:00
Mike Pilgrem
bdeabc6520 Bump Azure Windows CI to stack.yaml (lts-18.16) 2021-11-07 17:35:20 +00:00
Mike Pilgrem
9e7472bcae
Merge pull request #236 from mpilgrem/bump
Bump stack.yaml resolver to lts-18.15
2021-11-07 17:25:45 +00:00
Mike Pilgrem
744178deb0 Bump stack.yaml to LTS 18.15
Also adds explicit imports to module `Reanimate.Math.Triangulate`, to avoid name shadowing errors.
2021-11-07 16:51:53 +00:00
Mike Pilgrem
5f02799402 Add bounding boxes for svg nodes
`Reanimate.Svg.BoundingBox.boundingBox` computes bounding boxes on a best-effort basis but currently makes no effort for `svg` nodes. This pull request proposes that the bounding box for svg nodes should be at least estimated based on the document's width and height.

In addition, the addition of helper functions `ellipsePoints` and `toUserUnit'` reduce code duplication in function `svgBoundingPoints`.
2021-11-06 11:44:17 +08:00