Skip to content

Releases: Siyu1017/turtle.js

v1.5.0

09 Jul 09:52
Compare
Choose a tag to compare

v1.5.0 ( 2024-07-09 )

Fixed

  • turtle.forward() - Wrong pen color.
  • Plugin mouse-coordinate - Label overflows canvas

v1.4.0

08 Jul 14:38
Compare
Choose a tag to compare

v1.4.0 ( 2024-07-08 )

Added

  • turtle.on(event, func) - Add event listener
  • turtle.enable(pluginName) - Enable plugin
  • turtle.disable(pluginName) - Disable plugin
  • turtle.toggle(pluginName) - Toggle plugin
  • turtle.register(plugin) - Register a plugin
  • turtle.unregister(pluginName) - Unregister a plugin

Learn more on https://turtlejs.vercel.app/docs/plugin

v1.3.1

07 Jul 13:42
Compare
Choose a tag to compare

v1.3.1 ( 2024-07-07 )

Fixed

  • Calling turtle.home() but doesn't work

v1.3.0

07 Jul 11:27
Compare
Choose a tag to compare

v1.3.0 ( 2024-07-07 )

Fixed

  • When the canvas's size is not specified in any form of CSS, its size will be infinitely enlarged.

v1.2.1

06 Jul 15:18
Compare
Choose a tag to compare

v1.2.1 ( 2024-07-06 )

Fixed

  • Changelog.md syntax
  • Fix npm not publishing issue

v1.2.0

06 Jul 15:06
Compare
Choose a tag to compare

v1.2.0 ( 2024-07-06 )

Changed

  • Functions used to get the turtle's state will not return a value, they return a Promise object, you can use .then() to get the return value.

  • Now you can use .then() after all the available functions of turtle

    [!Warning]
    Some functions may not return a value

    // method is a function available in the current version
    turtle.method().then(res => {
        // Do something...
    })

Fixed

  • When using turtle.left(), turtle.right(), the turtle's heading changes, but the direction does not change.
  • Can not get turtle's state ( turtle.position(), turtle.xcor, turtle.ycor... )
  • When the transition duration is less than 100ms, the turtle's movement will be uncontrolled

v1.1.0

04 Jul 13:41
Compare
Choose a tag to compare

v1.1.0 ( 2024-07-04 )

Added

  • turtle and other shapes
  • turtle motion transition
  • turtle.setlinecap()
  • turtle.setlinejoin()
  • turtle.seteasing()
  • turtle.setduration()
  • turtle.showturtle()
  • turtle.hideturtle()
  • turtle.isvisible()
  • turtle.shape()
  • Short functions
  • turtle.version

v1.0.0

01 Jul 10:20
Compare
Choose a tag to compare

v1.0.0 ( 2024-07-01 )

first release