UNPKG

7.21 kBMarkdownView Raw
1# CHANGELOG
2
3## 4.1.35
4
5### BugFixes
6
7- Fix SoftwareDecoder type checking error. (#643)
8- Fix font family declarations is invalid on Wechat. (#649)
9- Fix empty video frame when playable state on Safari. (#655)
10
11## 4.1.33
12
13### Feature
14
15- Refactor video reader on Web. (#640)
16
17### BugFixes
18
19- Use texSubImage2D instead of texImage2D on Web. (#619)
20- Refactor PAGView listener type checker. (#624)
21- Fix replace image failed on WeChat- mini program. (#630)
22
23## 4.1.29
24
25### BugFixes
26
27- Fix video play error when called load before on Chrome. (#613)
28- Fix PAGView duration get error. (#614)
29- Restore to default value of `UNPACK_PREMULTIPLY_ALPHA_WEBGL`. (#616)
30
31## 4.1.20
32
33### Feature
34
35- Multiple readback operations using getImageData are faster. (#580)
36
37### BugFixes
38
39- Fix static time ranges pause error in video reader. (#573)
40- Fix play video error when document hidden.
41
42## 4.1.15
43
44### Feature
45
46- Add support for running on WeChat miniprogram. (#533)
47
48### BugFixes
49
50- Fix getLayerType crash when there has another async task. (#465)
51- Fix destroy view clash when multiple views use the same canvas. (#478)
52- Disable video playback rate when video sequence resolution is larger than 4k. (#548)
53- Fix video decoder output frame error on the Android WeChat mini-program. (#559)
54
55## 4.0.5.26
56
57### Feature
58
59- Add BMP sequence prepare.
60- Add playbackRate support in decoder.
61
62### BugFixes
63
64- Fix video decoding failure when src is blobUrl on iOS Safari.
65- Fix displacementMapLayer not decode.
66
67## 4.0.5.17
68
69### Breaking Changes
70
71- Replace `FromCanvas` to `fromCanvas` , `FromTexture` to `fromTexture` , `FromRenderTarget` to `fromRenderTarget` on `PAGSurface`.
72- Replace `Make` to `make` on `PAGComposition`.
73- Replace `Make` to `make` on `PAGSolidLayer`.
74- Replace `Make` to `make` on `PAGImageLayer`.
75
76### Feature
77
78- Add `backendContext`.
79- Add onAnimationUpdate event.
80- Add `version` on `libpag`.
81- Add `setComposition` , `matrix` , `setMatrix` , `getLayersUnderPoint` on `PAGView`.
82- Support unregister software decoder.
83- Return TypeLayer when get PAGLayer.
84
85## 4.0.5.11
86
87### BugFixes
88
89- Fix text rendering error when font-family has punctuation.
90
91## 4.0.5.7
92
93### Feature
94
95- Add font style render in WebMask.
96- Add fallback fontFamily.
97
98### BugFixes
99
100- Fix OffscreenCanvas assert error on Safari.
101- Disable antialiasing when creating WebGL context from canvas.
102
103## 4.0.5.5
104
105### Feature
106
107- Publish PAG Web SDK release version🎉
108- Jump 4.0.5.5 to sync with libpag version
109
110### Bug Fixes
111
112- Fix video ready state assess error.
113
114## 0.1.8
115
116### Feature
117
118- Support init `PAGView` from `offscreenCanvas`.
119- Add `readPixels` function on `PAGSurface`.
120
121### BugFixes
122
123- Fix render cache validate fail.
124
125## 0.1.7
126
127### Feature
128
129- Add software decoder registration function.
130- Create MP4 container on wasm side.
131- Add decorator to verify wasm status.
132- PAGImage can be made from TexImageSource.
133
134### BugFixes
135
136- Fix the repeat event dispatch error.
137- Optimize wasm queue.
138- Fix some enum binding error.
139
140## 0.1.6
141
142### Breaking Changes
143
144- Remove `fullBox` parameter in `PAGViewOptions`, add `useScale` and `firstFrame`.
145- Remove flush action in `PAGView.setProgress`.
146
147### Feature
148
149- Add `imageBytes` on `PAGTextLayer`
150
151### BugFixes
152
153- Fix scale error when canvas hasn't mounted on DOM tree or `display:none`.
154
155## 0.1.5
156
157### Feature
158
159- Add `initOptions` parameter what include `fullBox` and `useCanvas2D` on `PAGView.init()`.
160- Add `setRenderCanvasSize` on `PAGView`.
161
162### Bug Fixes
163
164- Fix `PAGView.updateSize()` update canvas size error。
165- Fix replace text when including space error.
166
167## 0.1.4
168
169### Bug Fixes
170
171- Fix decoding the next frame error in Web env.
172- Fix the frame align error when is in the static time range.
173
174## 0.1.3
175
176### Bug Fixes
177
178- Fix WebGL context release error by destroy.
179
180## 0.1.2
181
182### Bug Fixes
183
184- Fix video sequence reader decode frame error.
185- Fix vector function async error.
186- Fix font family format error.
187- Fix the performance issue of a PAGSurface made from texture.
188
189## 0.1.1
190
191### Bug Fixes
192
193- Fix canvas rescaling error when repeated call init function.
194- Fix render end frame error when repeat count is 1.
195
196## 0.1.0
197
198### Breaking Changes
199
200- Edit returns from `PAGFile.getLayersByEditableIndex` be `Vector<PAGLayer>`.
201- Replace C++ enum `LayerType` to Js enum `LayerType`, replace `PAG.LayerType` to `libpag.types.LayerType`.
202
203### Features
204
205- Add warn message when canvas size is more than 2560 on Web env.
206- Make `PAGFile.load` support data what's type is `Blob` or `ArrayBuffer` ,and add `maxSupportedTagLevel`, `tagLevel`, `copyOriginal` on `PAGFile`.
207- Add `freeCache` on `PAGView`.
208- ADD `clearAll` on `PAGSurface.`
209- Add `getSurface` , `matrix`, `setMatrix` , `nextFrame` , `preFrame` , `autoClear` , `setAutoClear`, `getBounds,` `getLayersUnderPoint`, `hitTestPoint`, `renderingTime` , `imageDecodingTime`, `presentingTime` , `graphicsMemory` on `PAGPlayer`.
210- Add `scaleMode` , `setScaleMode` , `matrix` , `setMatrix` on `PAGImage`.
211- Add `matrix`, `setMatrix`, `resetMatrix`, `getTotalMatrix`, `parent`, `markers`, `setStartTime`, `currentTime`, `setCurrentTime`, `getProgress`, `setProgress`, `preFrame` , `nextFrame`, `getBounds`, `trackMatteLayer`, `excludedFromTimeline`, `setExcludedFromTimeline`, `isPAGFile`, `isDelete` on `PAGLayer`.
212- Add `Make`, `removeLayer`, `getLayersUnderPoint` on `PAGComposition`.
213- Add `create`, `fontFamily`, `fontStyle` on `PAGFont`.
214- Add `PAGTextLayer`, `PAGImageLayer` Class.
215
216## 0.0.5
217
218### Bug Fixes
219
220- Fix `PAGImage.fromSource` miss rewind `Asyncify` currData.
221
222## 0.0.4
223
224### Bug Fixes
225
226- Fix some static functions that eliminate the side effects caused by the `Asyncify` module in emscripten miss in the Typescript decorator.
227
228## 0.0.3
229
230### Breaking Changes
231
232- Eliminate the side effects caused by the `Asyncify` module in emscripten, change most of the methods that interact with wasm to `await` methods, and only keep `PAGPlayer.flush()` as an `async` method.
233- Replace _`module_.\_PAGSurface` to *`module\*.PAGSurface`.
234
235### Features
236
237- Add `numChildren`,`setContentSize`,`getLayerAt`,`getLayersByName`,`getLayerIndex`,`swapLayer`,`swapLayerAt`,`contains`,`addLayer`,`addLayerAt`,`audioStartTime`,`audioMarkers`,`audioBytes`,`removeLayerAt`,`removeAllLayers` on `PAGComposition`.
238- Add `onAnimationPla`,`onAnimationPause` ,`onAnimationFlushed` on `PAGViewListenerEvent`.
239
240### Bug Fixes
241
242- Fix font family rending error.
243- Fix video sequence can not play on Wechat.
244
245## 0.0.2
246
247### Breaking Changes
248
249- Change property `duration` to be function `duration()` on PAGView. Like: `PAGView.duration` ⇒ `PAGView.duration()`
250
251### Features
252
253- Support create pag view from the canvas element.
254- Support measure text in low version browser, support Chrome 69+.
255- Add `setDuration` , `timeStretchMode` ,and `setTimeStretchMode` on `PAGFile`.
256- Add `uniqueID` , `layerType` , `layerName` , `opacity` , `setOpacity` , `visible` , `setVisible` , `editableIndex` , `frameRate` , `localTimeToGlobal` ,and `globalToLocalTime` on `PAGLayer`.
257
258### Bug Fixes
259
260- Fix `duration` on `PAGView` calculate error.
261
262## 0.0.1
263
264### Features
265
266- Publish PAG Web SDK
267- Support Chrome 87+ and Safari 11.1+ Browser