Skip to content
This repository was archived by the owner on Aug 3, 2023. It is now read-only.

Releases: cdaein/sketch-wrapper

v0.13.3

25 Jan 05:29

Choose a tag to compare

v0.13.3 Pre-release
Pre-release

New

  • Sketch-Wrapper now handles async function as sketch input.
  • A few gifOptions are added. need to test more and see how it works.

Fix

  • resize will fire at first page load once even if dimensions are set.
  • pause/resume will work smoothly. there was a bit of jump due to first render offset.

v0.13.1

22 Jan 01:02

Choose a tag to compare

v0.13.1 Pre-release
Pre-release

Changed

  • Now, you can export multiple file formats at the same time. Use array for both frameFormat and framesFormat. See the documentation for details

v0.13.0

21 Jan 23:25

Choose a tag to compare

v0.13.0 Pre-release
Pre-release

New

  • now, sketch-wrapper supports both webgl and webgl2 contexts. simply, set the desired context in settings.mode.

v0.12.0

21 Jan 16:31

Choose a tag to compare

v0.12.0 Pre-release
Pre-release

Change

  • removed ogl mode: OGL supports an existing webgl canvas and context and it did not make much sense for sketch-wrapper to have a dedicated mode.

v0.11.0

21 Jan 05:04

Choose a tag to compare

v0.11.0 Pre-release
Pre-release

New

  • added Animated GIF export. You can now specify settings.framesFormat to "gif", thanks to gifenc library.

v0.10.8

20 Jan 04:45

Choose a tag to compare

v0.10.8 Pre-release
Pre-release

Fix

  • frame counting: props.frame was counting 1 more frame at the end, and affecting props.playhead to go over 1. by checking totalFrames - 1, it now correctly updates.
  • time jump at start: due to handleResize() calling render() first frame, and the time it takes for loop to call its first render(), the first few frames have a big time jump and create a noticeable animation jump. by offsetting that delay, it now has smooth and consistent time advance.

v0.10.7

19 Jan 22:44

Choose a tag to compare

v0.10.7 Pre-release
Pre-release

Add

  • new documentation
  • rAF is now called once page is fully loaded.

Change

  • WebM video encoding keyframe is now every 2 seconds. (before, it was 10 seconds)
  • update dependency (it should handle tree-shaking better now)

v0.10.6

17 Jan 01:19

Choose a tag to compare

v0.10.6 Pre-release
Pre-release

Add

  • red outline to indicate it's exporting WebM video.

Update

  • WebM export: It now uses webm-muxer for frame-by-frame video export. MediaRecorder API was unreliable and I could not find a way to set the frame rate.

Fix

  • ogl-typescript import error: use await import() and enable code splitting for dynamic import to work.

v0.10.1

14 Jan 23:25

Choose a tag to compare

v0.10.1 Pre-release
Pre-release

Update

  • Now, sketchWrapper uses default export.

v0.9.5

14 Jan 21:54

Choose a tag to compare

v0.9.5 Pre-release
Pre-release

Add

  • WebM export with MediaRecorder API. It is still work-in-progress. MediaRecorder seems to be geared towards real-time stream recording, not frame-sensitive recordings. I might change to other methods later.

Fix

  • Dynamic importing of ogl-typescript so Vitejs will not complain for missing dependency. Users will also need to exclude ogl-typescript from pre-bundling.