CHANGELOG
4.1.35
BugFixes
- Fix SoftwareDecoder type checking error. (#643)
- Fix font family declarations is invalid on Wechat. (#649)
- Fix empty video frame when playable state on Safari. (#655)
4.1.33
Feature
- Refactor video reader on Web. (#640)
BugFixes
- Use texSubImage2D instead of texImage2D on Web. (#619)
- Refactor PAGView listener type checker. (#624)
- Fix replace image failed on WeChat- mini program. (#630)
4.1.29
BugFixes
- Fix video play error when called load before on Chrome. (#613)
- Fix PAGView duration get error. (#614)
- Restore to default value of
UNPACK_PREMULTIPLY_ALPHA_WEBGL
. (#616)
4.1.20
Feature
- Multiple readback operations using getImageData are faster. (#580)
BugFixes
- Fix static time ranges pause error in video reader. (#573)
- Fix play video error when document hidden.
4.1.15
Feature
- Add support for running on WeChat miniprogram. (#533)
BugFixes
- Fix getLayerType crash when there has another async task. (#465)
- Fix destroy view clash when multiple views use the same canvas. (#478)
- Disable video playback rate when video sequence resolution is larger than 4k. (#548)
- Fix video decoder output frame error on the Android WeChat mini-program. (#559)
4.0.5.26
Feature
- Add BMP sequence prepare.
- Add playbackRate support in decoder.
BugFixes
- Fix video decoding failure when src is blobUrl on iOS Safari.
- Fix displacementMapLayer not decode.
4.0.5.17
Breaking Changes
- Replace
FromCanvas
tofromCanvas
,FromTexture
tofromTexture
,FromRenderTarget
tofromRenderTarget
onPAGSurface
. - Replace
Make
tomake
onPAGComposition
. - Replace
Make
tomake
onPAGSolidLayer
. - Replace
Make
tomake
onPAGImageLayer
.
Feature
- Add
backendContext
. - Add onAnimationUpdate event.
- Add
version
onlibpag
. - Add
setComposition
,matrix
,setMatrix
,getLayersUnderPoint
onPAGView
. - Support unregister software decoder.
- Return TypeLayer when get PAGLayer.
4.0.5.11
BugFixes
- Fix text rendering error when font-family has punctuation.
4.0.5.7
Feature
- Add font style render in WebMask.
- Add fallback fontFamily.
BugFixes
- Fix OffscreenCanvas assert error on Safari.
- Disable antialiasing when creating WebGL context from canvas.
4.0.5.5
Feature
- Publish PAG Web SDK release version🎉
- Jump 4.0.5.5 to sync with libpag version
Bug Fixes
- Fix video ready state assess error.
0.1.8
Feature
- Support init
PAGView
fromoffscreenCanvas
. - Add
readPixels
function onPAGSurface
.
BugFixes
- Fix render cache validate fail.
0.1.7
Feature
- Add software decoder registration function.
- Create MP4 container on wasm side.
- Add decorator to verify wasm status.
- PAGImage can be made from TexImageSource.
BugFixes
- Fix the repeat event dispatch error.
- Optimize wasm queue.
- Fix some enum binding error.
0.1.6
Breaking Changes
- Remove
fullBox
parameter inPAGViewOptions
, adduseScale
andfirstFrame
. - Remove flush action in
PAGView.setProgress
.
Feature
- Add
imageBytes
onPAGTextLayer
BugFixes
- Fix scale error when canvas hasn't mounted on DOM tree or
display:none
.
0.1.5
Feature
- Add
initOptions
parameter what includefullBox
anduseCanvas2D
onPAGView.init()
. - Add
setRenderCanvasSize
onPAGView
.
Bug Fixes
- Fix
PAGView.updateSize()
update canvas size error。 - Fix replace text when including space error.
0.1.4
Bug Fixes
- Fix decoding the next frame error in Web env.
- Fix the frame align error when is in the static time range.
0.1.3
Bug Fixes
- Fix WebGL context release error by destroy.
0.1.2
Bug Fixes
- Fix video sequence reader decode frame error.
- Fix vector function async error.
- Fix font family format error.
- Fix the performance issue of a PAGSurface made from texture.
0.1.1
Bug Fixes
- Fix canvas rescaling error when repeated call init function.
- Fix render end frame error when repeat count is 1.
0.1.0
Breaking Changes
- Edit returns from
PAGFile.getLayersByEditableIndex
beVector<PAGLayer>
. - Replace C++ enum
LayerType
to Js enumLayerType
, replacePAG.LayerType
tolibpag.types.LayerType
.
Features
- Add warn message when canvas size is more than 2560 on Web env.
- Make
PAGFile.load
support data what's type isBlob
orArrayBuffer
,and addmaxSupportedTagLevel
,tagLevel
,copyOriginal
onPAGFile
. - Add
freeCache
onPAGView
. - ADD
clearAll
onPAGSurface.
- Add
getSurface
,matrix
,setMatrix
,nextFrame
,preFrame
,autoClear
,setAutoClear
,getBounds,
getLayersUnderPoint
,hitTestPoint
,renderingTime
,imageDecodingTime
,presentingTime
,graphicsMemory
onPAGPlayer
. - Add
scaleMode
,setScaleMode
,matrix
,setMatrix
onPAGImage
. - Add
matrix
,setMatrix
,resetMatrix
,getTotalMatrix
,parent
,markers
,setStartTime
,currentTime
,setCurrentTime
,getProgress
,setProgress
,preFrame
,nextFrame
,getBounds
,trackMatteLayer
,excludedFromTimeline
,setExcludedFromTimeline
,isPAGFile
,isDelete
onPAGLayer
. - Add
Make
,removeLayer
,getLayersUnderPoint
onPAGComposition
. - Add
create
,fontFamily
,fontStyle
onPAGFont
. - Add
PAGTextLayer
,PAGImageLayer
Class.
0.0.5
Bug Fixes
- Fix
PAGImage.fromSource
miss rewindAsyncify
currData.
0.0.4
Bug Fixes
- Fix some static functions that eliminate the side effects caused by the
Asyncify
module in emscripten miss in the Typescript decorator.
0.0.3
Breaking Changes
- Eliminate the side effects caused by the
Asyncify
module in emscripten, change most of the methods that interact with wasm toawait
methods, and only keepPAGPlayer.flush()
as anasync
method. - Replace `module._PAGSurface
to *
module*.PAGSurface`.
Features
- Add
numChildren
,setContentSize
,getLayerAt
,getLayersByName
,getLayerIndex
,swapLayer
,swapLayerAt
,contains
,addLayer
,addLayerAt
,audioStartTime
,audioMarkers
,audioBytes
,removeLayerAt
,removeAllLayers
onPAGComposition
. - Add
onAnimationPla
,onAnimationPause
,onAnimationFlushed
onPAGViewListenerEvent
.
Bug Fixes
- Fix font family rending error.
- Fix video sequence can not play on Wechat.
0.0.2
Breaking Changes
- Change property
duration
to be functionduration()
on PAGView. Like:PAGView.duration
⇒PAGView.duration()
Features
- Support create pag view from the canvas element.
- Support measure text in low version browser, support Chrome 69+.
- Add
setDuration
,timeStretchMode
,andsetTimeStretchMode
onPAGFile
. - Add
uniqueID
,layerType
,layerName
,opacity
,setOpacity
,visible
,setVisible
,editableIndex
,frameRate
,localTimeToGlobal
,andglobalToLocalTime
onPAGLayer
.
Bug Fixes
- Fix
duration
onPAGView
calculate error.
0.0.1
Features
- Publish PAG Web SDK
- Support Chrome 87+ and Safari 11.1+ Browser