Skip to content

Commit

Permalink
release: v1.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Siyu1017 committed Jul 7, 2024
1 parent 00a92d5 commit d573805
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## v1.3.1 ( 2024-07-07 )

### Fixed
- Calling `turtle.home()` but doesn't work

## v1.3.0 ( 2024-07-07 )

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ $ npm install @siyu971017/turtle.js
Or grab from [jsDelivr CDN](https://www.jsdelivr.com/package/npm/@siyu971017/turtle.js)

```html
<script src="https://cdn.jsdelivr.net/npm/@siyu971017/turtle.js@1.3.0/dist/turtle.umd.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@siyu971017/turtle.js/dist/turtle.umd.min.js"></script>
```

## Usage
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@siyu971017/turtle.js",
"version": "1.3.0",
"version": "1.3.1",
"description": "JavaScript version of turtle graphics",
"main": "dist/turtle.umd.js",
"module": "dist/turtle.esm.js",
Expand Down
2 changes: 2 additions & 0 deletions src/turtle.js
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,8 @@ class turtle {
func: function () {
this.state.position.x = this.canvas.offsetWidth / 2;
this.state.position.y = this.canvas.offsetHeight / 2;
this.animateDatas.x = this.state.position.x;
this.animateDatas.y = this.state.position.y;
this.ctx.moveTo(this.state.position.x, this.state.position.y);
this.animateDatas.heading = 0;
this.state.heading = 0;
Expand Down

0 comments on commit d573805

Please sign in to comment.