@sketch-hq/sketch-web-renderer 3.2.1 → 3.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cpp/out/Debug/module-debug.d.ts +6 -0
- package/dist/cpp/out/Debug/module-debug.d.ts.map +1 -0
- package/dist/cpp/out/Release/module-release.d.ts +6 -0
- package/dist/cpp/out/Release/module-release.d.ts.map +1 -0
- package/dist/index.js +1 -1
- package/dist/module-debug.wasm +0 -0
- package/dist/module-release.wasm +0 -0
- package/dist/static/js/web-renderer-49953fc2d5b916489af2.chunk.js +1 -0
- package/dist/static/js/web-renderer-8cf7e3dad04db65cf1e1.chunk.js +1 -0
- package/dist/static/js/web-renderer-aabfc7a6fc6164757d08.chunk.js +1 -0
- package/dist/ts/Manager.d.ts +21 -11
- package/dist/ts/Manager.d.ts.map +1 -1
- package/dist/ts/SketchWeb.d.ts +26 -16
- package/dist/ts/SketchWeb.d.ts.map +1 -1
- package/dist/ts/react/SketchWebProvider.d.ts +6 -2
- package/dist/ts/react/SketchWebProvider.d.ts.map +1 -1
- package/dist/ts/react/SketchWebReact.d.ts +3 -2
- package/dist/ts/react/SketchWebReact.d.ts.map +1 -1
- package/dist/ts/react/contexts.d.ts +4 -20
- package/dist/ts/react/contexts.d.ts.map +1 -1
- package/dist/ts/react/hooks/actions.d.ts +4 -1
- package/dist/ts/react/hooks/actions.d.ts.map +1 -1
- package/dist/ts/react/hooks/state.d.ts +2 -20
- package/dist/ts/react/hooks/state.d.ts.map +1 -1
- package/dist/ts/react/hooks/useEvent.d.ts +1 -1
- package/dist/ts/react/hooks/useEvent.d.ts.map +1 -1
- package/dist/ts/react/internal.d.ts.map +1 -1
- package/dist/ts/react/reducer.d.ts.map +1 -1
- package/dist/ts/react/types.d.ts +4 -15
- package/dist/ts/react/types.d.ts.map +1 -1
- package/dist/ts/types/CSSCursor.d.ts +12 -0
- package/dist/ts/types/CSSCursor.d.ts.map +1 -0
- package/dist/ts/types/Error.d.ts +2 -2
- package/dist/ts/types/Error.d.ts.map +1 -1
- package/dist/ts/types/Events.d.ts +8 -4
- package/dist/ts/types/Events.d.ts.map +1 -1
- package/dist/ts/types/JSBridge.d.ts +8 -0
- package/dist/ts/types/JSBridge.d.ts.map +1 -1
- package/dist/ts/types/PointerInfo.d.ts +11 -0
- package/dist/ts/types/PointerInfo.d.ts.map +1 -0
- package/dist/ts/types/WASM.d.ts +70 -38
- package/dist/ts/types/WASM.d.ts.map +1 -1
- package/dist/ts/utils/GestureManager/GestureManager.d.ts +23 -43
- package/dist/ts/utils/GestureManager/GestureManager.d.ts.map +1 -1
- package/dist/ts/utils/misc.d.ts +0 -1
- package/dist/ts/utils/misc.d.ts.map +1 -1
- package/package.json +27 -26
- package/CHANGELOG.md +0 -552
- package/dist/static/js/web-renderer-17fd55cdb979ed59dbc9.chunk.js +0 -1
- package/dist/static/js/web-renderer-b584c7152f956c9cbea5.chunk.js +0 -1
- package/dist/static/js/web-renderer-bc8f1d99872a3ed28cf9.chunk.js +0 -1
- package/dist/ts/utils/CameraMoveTracker/CameraMoveTracker.d.ts +0 -48
- package/dist/ts/utils/CameraMoveTracker/CameraMoveTracker.d.ts.map +0 -1
- package/dist/ts/utils/CameraMoveTracker/CameraMoveTracker.test.d.ts +0 -2
- package/dist/ts/utils/CameraMoveTracker/CameraMoveTracker.test.d.ts.map +0 -1
- package/dist/ts/utils/CameraMoveTracker/index.d.ts +0 -2
- package/dist/ts/utils/CameraMoveTracker/index.d.ts.map +0 -1
- package/dist/ts/utils/GestureManager/GestureManager.test.d.ts +0 -2
- package/dist/ts/utils/GestureManager/GestureManager.test.d.ts.map +0 -1
package/CHANGELOG.md
DELETED
|
@@ -1,552 +0,0 @@
|
|
|
1
|
-
# @sketch-hq/sketch-web-renderer
|
|
2
|
-
|
|
3
|
-
## 3.2.1
|
|
4
|
-
|
|
5
|
-
### Patch Changes
|
|
6
|
-
|
|
7
|
-
- 8d267822: Improved tiling system and how images are drawn in the canvas after being downloaded
|
|
8
|
-
- 0c7e22f7: - Read node's components stored as properties in marina files
|
|
9
|
-
- Update flatbuffers to v22.9.29 for both List and Marina schemas
|
|
10
|
-
- 1ad70e2b: Fix potential crash when PRImage format was missing
|
|
11
|
-
|
|
12
|
-
## 3.2.0
|
|
13
|
-
|
|
14
|
-
### Minor Changes
|
|
15
|
-
|
|
16
|
-
- e2b9ef78: Remove the shadow root and overlays from Web-renderer
|
|
17
|
-
|
|
18
|
-
## 3.1.8
|
|
19
|
-
|
|
20
|
-
### Patch Changes
|
|
21
|
-
|
|
22
|
-
- 4a0550a1: Use linear interpolation for tiled images
|
|
23
|
-
- 1339274a: Alpha masks are now always in high resolution
|
|
24
|
-
- 1b49e7eb: Correctly render masked background blurs
|
|
25
|
-
- 78b0da7c: Correctly draw background blurs
|
|
26
|
-
- 66cf29e2: Correctly render background blur applied to transparent layers
|
|
27
|
-
|
|
28
|
-
## 3.1.7
|
|
29
|
-
|
|
30
|
-
### Patch Changes
|
|
31
|
-
|
|
32
|
-
- 609980b: Improve blurs strength accuracy
|
|
33
|
-
- 173de7b: Prevent the generation of empty surfaces
|
|
34
|
-
- 059203b: Shadows with radius 0 are now rendered using the correct resolution
|
|
35
|
-
- 08d6f75: Correctly render radial gradients having a transform matrix
|
|
36
|
-
|
|
37
|
-
## 3.1.6
|
|
38
|
-
|
|
39
|
-
### Patch Changes
|
|
40
|
-
|
|
41
|
-
- d30447a: Allow to change background color at runtime
|
|
42
|
-
- 9319056: Improve performance metrics
|
|
43
|
-
|
|
44
|
-
## 3.1.5
|
|
45
|
-
|
|
46
|
-
### Patch Changes
|
|
47
|
-
|
|
48
|
-
- 880a3bf: Remove log from the `useSetZoom` callback
|
|
49
|
-
|
|
50
|
-
## 3.1.4
|
|
51
|
-
|
|
52
|
-
### Patch Changes
|
|
53
|
-
|
|
54
|
-
- d0f7184: Marina files are now properly supported
|
|
55
|
-
|
|
56
|
-
## 3.1.3
|
|
57
|
-
|
|
58
|
-
### Patch Changes
|
|
59
|
-
|
|
60
|
-
- de01e61: Both touch and mouse events listeners are attached, so mouse inputs can continue to work on devices having both a touchscreen and mouse
|
|
61
|
-
|
|
62
|
-
## 3.1.2
|
|
63
|
-
|
|
64
|
-
### Patch Changes
|
|
65
|
-
|
|
66
|
-
- 9376f7f: Correctly calculate cache budget
|
|
67
|
-
- 5d3ed4e: Start using new tiling system. Now the canvas should look sharper.
|
|
68
|
-
- 8f522ed: Allow to change feature flags during initialisation
|
|
69
|
-
|
|
70
|
-
## 3.1.1
|
|
71
|
-
|
|
72
|
-
### Patch Changes
|
|
73
|
-
|
|
74
|
-
- fd7739c: Touch events are not captured anymore and touchmove is not prevented
|
|
75
|
-
|
|
76
|
-
## 3.1.0
|
|
77
|
-
|
|
78
|
-
### Minor Changes
|
|
79
|
-
|
|
80
|
-
- e83d319: Allow to pass props to both canvas and container
|
|
81
|
-
|
|
82
|
-
### Patch Changes
|
|
83
|
-
|
|
84
|
-
- 10d5992: Allow to use a custom cursor
|
|
85
|
-
|
|
86
|
-
## 3.0.1
|
|
87
|
-
|
|
88
|
-
### Patch Changes
|
|
89
|
-
|
|
90
|
-
- 6fdecfc: Start using the mask transform matrix
|
|
91
|
-
|
|
92
|
-
## 3.0.0
|
|
93
|
-
|
|
94
|
-
### Major Changes
|
|
95
|
-
|
|
96
|
-
- 81b04f2: Add support for new tree file format
|
|
97
|
-
|
|
98
|
-
### Patch Changes
|
|
99
|
-
|
|
100
|
-
- 1ccfe43: Start parsing binary pr tree files
|
|
101
|
-
- aa9c571: Add minimum memory budget for devices with small screens
|
|
102
|
-
|
|
103
|
-
## 2.2.2
|
|
104
|
-
|
|
105
|
-
### Patch Changes
|
|
106
|
-
|
|
107
|
-
- 6d76e58: Make the Shadow root encapsulation optional
|
|
108
|
-
- 50caa54: Fix plusDarker blend mode not correctly rendered
|
|
109
|
-
|
|
110
|
-
## 2.2.1
|
|
111
|
-
|
|
112
|
-
### Patch Changes
|
|
113
|
-
|
|
114
|
-
- b92c6e3: - Make touch events passive
|
|
115
|
-
- Hide overlay while zooming
|
|
116
|
-
|
|
117
|
-
## 2.2.0
|
|
118
|
-
|
|
119
|
-
### Minor Changes
|
|
120
|
-
|
|
121
|
-
- cb613fa: Add support for motion and zoom blurs
|
|
122
|
-
- 23f9828: Improve gaussian blur rendering fidelity
|
|
123
|
-
|
|
124
|
-
### Patch Changes
|
|
125
|
-
|
|
126
|
-
- 6b14864: Correctly calibrate motion and zoom blur
|
|
127
|
-
|
|
128
|
-
## 2.1.0
|
|
129
|
-
|
|
130
|
-
### Minor Changes
|
|
131
|
-
|
|
132
|
-
- 907223c: Images having the preload flag are now preloaded correctly
|
|
133
|
-
|
|
134
|
-
### Patch Changes
|
|
135
|
-
|
|
136
|
-
- 5d08fcb: Fix issue https://github.com/sketch-hq/Sketch/issues/41711
|
|
137
|
-
|
|
138
|
-
## 2.0.0
|
|
139
|
-
|
|
140
|
-
### Major Changes
|
|
141
|
-
|
|
142
|
-
- 5072a68: The web renderer now exposes a new API to manage the overlay containing the artboards' names, CTAs and outline.
|
|
143
|
-
|
|
144
|
-
### Breaking changes
|
|
145
|
-
|
|
146
|
-
- The event `goToArtboard` is not emitted anymore.
|
|
147
|
-
- To render the artboards' names, CTAs and outlines, the new component `ArtboardsInfoOverlay` should be used.
|
|
148
|
-
|
|
149
|
-
### How to use
|
|
150
|
-
|
|
151
|
-
```tsx
|
|
152
|
-
import { ArtboardsInfoOverlay, SketchWebReact } from '...'
|
|
153
|
-
;<SketchWebReact>
|
|
154
|
-
<ArtboardsInfoOverlay
|
|
155
|
-
artboardStyle={{
|
|
156
|
-
fontFamily: 'sans-serif',
|
|
157
|
-
ctaText: 'View details',
|
|
158
|
-
ctaTextColor: 'rgba(0,0,0,0.55)',
|
|
159
|
-
nameTextColor: 'rgba(0,0,0,0.7)',
|
|
160
|
-
outlineColor: 'rgb(213, 145, 12)',
|
|
161
|
-
}}
|
|
162
|
-
onGoToArtboard={(artboardUUID: string) => {}}
|
|
163
|
-
/>
|
|
164
|
-
</SketchWebReact>
|
|
165
|
-
```
|
|
166
|
-
|
|
167
|
-
### Patch Changes
|
|
168
|
-
|
|
169
|
-
- 2d7b8e9: - Use the shadow dom to encapsulate the web renderer.
|
|
170
|
-
- Emit an actionType parameter with the event `goToArtboard`
|
|
171
|
-
- ad36971: Fix SketchWebReact type.
|
|
172
|
-
- b5ebd0b: Now useEffects are correctly invoked even when using the ShadowDom
|
|
173
|
-
|
|
174
|
-
## 2.0.0-next.3
|
|
175
|
-
|
|
176
|
-
### Patch Changes
|
|
177
|
-
|
|
178
|
-
- ad36971: Fix SketchWebReact type.
|
|
179
|
-
|
|
180
|
-
## 2.0.0-next.2
|
|
181
|
-
|
|
182
|
-
### Patch Changes
|
|
183
|
-
|
|
184
|
-
- b5ebd0b: Now useEffects are correctly invoked even when using the ShadowDom
|
|
185
|
-
|
|
186
|
-
## 2.0.0-next.1
|
|
187
|
-
|
|
188
|
-
### Patch Changes
|
|
189
|
-
|
|
190
|
-
- 2d7b8e9: - Use the shadow dom to encapsulate the web renderer.
|
|
191
|
-
- Emit an actionType parameter with the event `goToArtboard`
|
|
192
|
-
|
|
193
|
-
## 2.0.0-next.0
|
|
194
|
-
|
|
195
|
-
### Major Changes
|
|
196
|
-
|
|
197
|
-
- 5072a68: The web renderer now exposes a new API to manage the overlay containing the artboards' names, CTAs and outline.
|
|
198
|
-
|
|
199
|
-
### Breaking changes
|
|
200
|
-
|
|
201
|
-
- The event `goToArtboard` is not emitted anymore.
|
|
202
|
-
- To render the artboards' names, CTAs and outlines, the new component `ArtboardsInfoOverlay` should be used.
|
|
203
|
-
|
|
204
|
-
### How to use
|
|
205
|
-
|
|
206
|
-
```tsx
|
|
207
|
-
import { ArtboardsInfoOverlay, SketchWebReact } from '...'
|
|
208
|
-
;<SketchWebReact>
|
|
209
|
-
<ArtboardsInfoOverlay
|
|
210
|
-
artboardStyle={{
|
|
211
|
-
fontFamily: 'sans-serif',
|
|
212
|
-
ctaText: 'View details',
|
|
213
|
-
ctaTextColor: 'rgba(0,0,0,0.55)',
|
|
214
|
-
nameTextColor: 'rgba(0,0,0,0.7)',
|
|
215
|
-
outlineColor: 'rgb(213, 145, 12)',
|
|
216
|
-
}}
|
|
217
|
-
onGoToArtboard={(artboardUUID: string) => {}}
|
|
218
|
-
/>
|
|
219
|
-
</SketchWebReact>
|
|
220
|
-
```
|
|
221
|
-
|
|
222
|
-
## 1.0.1
|
|
223
|
-
|
|
224
|
-
### Patch Changes
|
|
225
|
-
|
|
226
|
-
- 18b05c2: Prevent the renderer from crashing when an end region instruction is missing
|
|
227
|
-
- be70d4d: Fix lifecycle hooks to avoid unnecessary disposals.
|
|
228
|
-
|
|
229
|
-
## 1.0.0
|
|
230
|
-
|
|
231
|
-
### Major Changes
|
|
232
|
-
|
|
233
|
-
- 0461a28: Restructure the tiled renderer to improve the tiles management
|
|
234
|
-
|
|
235
|
-
### Minor Changes
|
|
236
|
-
|
|
237
|
-
- f46894b: Encapsulate manager in SketchWebReact
|
|
238
|
-
|
|
239
|
-
### Patch Changes
|
|
240
|
-
|
|
241
|
-
- a6b2797: Memory usage improvements
|
|
242
|
-
- 78202fe: Fix getArtboardAtPosition event not working correctly in certain cases
|
|
243
|
-
- 343c4cf: Correctly releasing the WebGL resources
|
|
244
|
-
|
|
245
|
-
## 0.11.1
|
|
246
|
-
|
|
247
|
-
### Patch Changes
|
|
248
|
-
|
|
249
|
-
- ffed957: Fix pan position not updated correctly on initial zoom to fit. See https://github.com/sketch-hq/Cloud/issues/11363#issuecomment-1015542659
|
|
250
|
-
|
|
251
|
-
## 0.11.0
|
|
252
|
-
|
|
253
|
-
### Minor Changes
|
|
254
|
-
|
|
255
|
-
- 1c9a5aa: Add camera lock API to prevent user panning and zooming.
|
|
256
|
-
|
|
257
|
-
## 0.10.2
|
|
258
|
-
|
|
259
|
-
### Patch Changes
|
|
260
|
-
|
|
261
|
-
- 7c9fc9c: - Emit a new event 'allImagesReady'
|
|
262
|
-
- Add new React hook 'useAllImagesReadyEvent'
|
|
263
|
-
|
|
264
|
-
## 0.10.1
|
|
265
|
-
|
|
266
|
-
### Patch Changes
|
|
267
|
-
|
|
268
|
-
- bf592a8: Ensure SketchWebReact sets Logger.active from the outset.
|
|
269
|
-
|
|
270
|
-
## 0.10.0
|
|
271
|
-
|
|
272
|
-
### Minor Changes
|
|
273
|
-
|
|
274
|
-
- 7bdcdad: Add a `getArtboardAtPosition` API.
|
|
275
|
-
- 3e796b6: Introduced a SketchWeb component and started using it in the Viewer.
|
|
276
|
-
- aba76e2: Internal restructure
|
|
277
|
-
- 8135d4a: SketchWebReact pre-integration tweaks.
|
|
278
|
-
|
|
279
|
-
### Patch Changes
|
|
280
|
-
|
|
281
|
-
- 52fc201: Update the pan values correctly
|
|
282
|
-
- b9cdb54: - `initialPan` and `setPan` now accept a new property: `centerPointInViewport` that will center a given point to the client's viewport.
|
|
283
|
-
- Add a new method `getPanAtPosition` that returns the correct pan value, given a point relative to the viewport
|
|
284
|
-
|
|
285
|
-
## 0.9.0
|
|
286
|
-
|
|
287
|
-
### Minor Changes
|
|
288
|
-
|
|
289
|
-
- ef4b2d0: Emit a metrics event.
|
|
290
|
-
- 3f961ec: Send action type along with goToArtboard event
|
|
291
|
-
|
|
292
|
-
### Patch Changes
|
|
293
|
-
|
|
294
|
-
- f98cc41: Change artboard cta copy
|
|
295
|
-
- b73b553: Update to latest presentation file format `0.8.3`.
|
|
296
|
-
|
|
297
|
-
## 0.8.1
|
|
298
|
-
|
|
299
|
-
### Patch Changes
|
|
300
|
-
|
|
301
|
-
- e33db15: Disable the page canvas boundaries limit
|
|
302
|
-
- 8aa4b9a: Fix PlusDarker blend mode not working correctly when the source or destination were not opaque.
|
|
303
|
-
- dbfa309: Improved cache management
|
|
304
|
-
|
|
305
|
-
## 0.8.0
|
|
306
|
-
|
|
307
|
-
### Minor Changes
|
|
308
|
-
|
|
309
|
-
- d93733f: - The canvas is now constrained to the document boundaries, so it's not possible anymore panning outside the page region.
|
|
310
|
-
- The constructor accepts 2 new values: `initialZoom` and `initialPan`
|
|
311
|
-
- Moved the method setZoom/getZoom setPan/getPan from the `gestureManager` to the The `Manager`
|
|
312
|
-
- The manager now emits the `zoom` and `pan` events, not the manager anymore.
|
|
313
|
-
- c245ca0: Update file schema to 0.8.0
|
|
314
|
-
|
|
315
|
-
### Patch Changes
|
|
316
|
-
|
|
317
|
-
- 407c26b: Remove gradient below artboard name
|
|
318
|
-
|
|
319
|
-
## 0.7.3
|
|
320
|
-
|
|
321
|
-
### Patch Changes
|
|
322
|
-
|
|
323
|
-
- 15acf91: The constructor now accepts a new optional flag preserveDrawingBuffer
|
|
324
|
-
- 7c975c4: Add gradient below the artboards' names to improve the readability in case there are items below the artboards.
|
|
325
|
-
|
|
326
|
-
## 0.7.2
|
|
327
|
-
|
|
328
|
-
### Patch Changes
|
|
329
|
-
|
|
330
|
-
- 438ee6d: Invoke event listeners in next tick.
|
|
331
|
-
- f01a6cf: Fix alpha masks not rendering correctly
|
|
332
|
-
|
|
333
|
-
## 0.7.1
|
|
334
|
-
|
|
335
|
-
### Patch Changes
|
|
336
|
-
|
|
337
|
-
- adb87ba: Initialise the Text element correctly. This fixes the "Go to artboard" button not being visible when in release mode.
|
|
338
|
-
- b7d7683: Adjust user interactions according to design specs
|
|
339
|
-
- 5443b9b: Add support for mipmaps when using WebGL 1
|
|
340
|
-
- 6110916: Fix pan/zoom events on Safari, both mobile and desktop
|
|
341
|
-
- 000c45d: Replace emojis with placeholder symbol temporarily
|
|
342
|
-
|
|
343
|
-
## 0.7.0
|
|
344
|
-
|
|
345
|
-
### Minor Changes
|
|
346
|
-
|
|
347
|
-
- 9d73444: Upgrade to version `0.6.0` of the binary schema.
|
|
348
|
-
- b5c2749: Remove support for the legacy JSON format.
|
|
349
|
-
|
|
350
|
-
### Patch Changes
|
|
351
|
-
|
|
352
|
-
- 385f637: Correctly handle the mousedown event
|
|
353
|
-
- ed068c2: It's now possible to zoom into a specific center, different from the mouse position.
|
|
354
|
-
|
|
355
|
-
## 0.6.2
|
|
356
|
-
|
|
357
|
-
### Patch Changes
|
|
358
|
-
|
|
359
|
-
- e5815b0: Upgrade to Presentation File Format `0.5.0`.
|
|
360
|
-
- 8903ff4: The mousemove and mouseup listeners are now attached correctly to the canvas and hover events are not caught anymore when the mouse is outside the canvas
|
|
361
|
-
- 53fec00: Improve how the items above the artboard are resized
|
|
362
|
-
- 35b2c88: The setNeedsUpdate now checks if SketchKit exists.
|
|
363
|
-
|
|
364
|
-
## 0.6.1
|
|
365
|
-
|
|
366
|
-
### Patch Changes
|
|
367
|
-
|
|
368
|
-
- 7197bc9: The constructor now accepts a new **optional** property: `rendererConfiguration`
|
|
369
|
-
- 0d6d2ad: Dispose the web renderer correctly
|
|
370
|
-
|
|
371
|
-
## 0.6.0
|
|
372
|
-
|
|
373
|
-
### Minor Changes
|
|
374
|
-
|
|
375
|
-
- d1d657c: Min and max zoom values are now configurable
|
|
376
|
-
- bf21dc2: Use `ResizeObserver to resize the canvas`.
|
|
377
|
-
|
|
378
|
-
Now the Renderer constructor expects a new **required** property: `container`:
|
|
379
|
-
|
|
380
|
-
- The container is an `HTMLDivElement` that wraps the canvas element.
|
|
381
|
-
- The size of the canvas element will always be 100% the size of the container.
|
|
382
|
-
- The canvas element width and height must be left unset, because they will be managed by the renderer.
|
|
383
|
-
|
|
384
|
-
- 5165aed: Make renderer highlight color configurable.
|
|
385
|
-
|
|
386
|
-
### Patch Changes
|
|
387
|
-
|
|
388
|
-
- 203843f: Adjust the radius to sigma conversion to improve the blurs appearance
|
|
389
|
-
- 57a44d8: Force WebGL 1 on Safari
|
|
390
|
-
- 2d3235b: Refactor camera move tracking
|
|
391
|
-
- 45a1459: Improve performance when traversing the doc
|
|
392
|
-
- 6ef34d8: Load images asynchronously
|
|
393
|
-
- 1cca8b8: Improve speed when iterating through instructions
|
|
394
|
-
- ca03d9f: Do not launch decoding tasks while the camera is moving
|
|
395
|
-
|
|
396
|
-
## 0.5.0
|
|
397
|
-
|
|
398
|
-
### Minor Changes
|
|
399
|
-
|
|
400
|
-
- e3fc36c: Evolved binary parser schema version and file id handling.
|
|
401
|
-
|
|
402
|
-
### Patch Changes
|
|
403
|
-
|
|
404
|
-
- f18f985: Add ui interactions to the canvas
|
|
405
|
-
- 777c7d8: Fix black lines issue when using alpha masks
|
|
406
|
-
- dd17bc9: Improve how artboards backgrounds and shadows are rendered
|
|
407
|
-
|
|
408
|
-
## 0.4.0
|
|
409
|
-
|
|
410
|
-
### Minor Changes
|
|
411
|
-
|
|
412
|
-
- f4db631: Start using `@sketch-hq/sketch-presentation-file-format` package.
|
|
413
|
-
- e4c1341: Refactor parser structure.
|
|
414
|
-
- 87e9013: Emit renderer warnings as a list instead of individual warnings
|
|
415
|
-
|
|
416
|
-
### Patch Changes
|
|
417
|
-
|
|
418
|
-
- c36805a: Enable mipmaps for images, and remove grey placeholder
|
|
419
|
-
- dd4ce1d: Improve visible tiles calculation
|
|
420
|
-
- 4569f1d: Store images only in GPU, avoiding the CPU copy
|
|
421
|
-
|
|
422
|
-
## 0.3.2
|
|
423
|
-
|
|
424
|
-
### Patch Changes
|
|
425
|
-
|
|
426
|
-
- 7bca57e: Create layers using the top level object layers
|
|
427
|
-
|
|
428
|
-
## 0.3.1
|
|
429
|
-
|
|
430
|
-
### Patch Changes
|
|
431
|
-
|
|
432
|
-
- 04d04a3: Fail fast in build.
|
|
433
|
-
|
|
434
|
-
## 0.3.0
|
|
435
|
-
|
|
436
|
-
### Minor Changes
|
|
437
|
-
|
|
438
|
-
- 64968df: Add initial support for binary Presentation Files.
|
|
439
|
-
|
|
440
|
-
### Patch Changes
|
|
441
|
-
|
|
442
|
-
- 4873336: Add support for region instruction
|
|
443
|
-
- 95cc952: Handle webgl context lost
|
|
444
|
-
- 8ff5b05: Add text rendering and draw artboards names
|
|
445
|
-
- 62152af: Handle matrix property in radial gradient content type
|
|
446
|
-
|
|
447
|
-
## 0.2.0
|
|
448
|
-
|
|
449
|
-
### Minor Changes
|
|
450
|
-
|
|
451
|
-
- 5a3c130: Add new mode parameter in Renderer constructor
|
|
452
|
-
|
|
453
|
-
### Patch Changes
|
|
454
|
-
|
|
455
|
-
- ff15d84: The mouse position is now relative to the canvas client rect
|
|
456
|
-
- 2a3fafb: Improve cache handling for tiling
|
|
457
|
-
- b7b8fab: Internal refactor
|
|
458
|
-
|
|
459
|
-
## 0.1.3
|
|
460
|
-
|
|
461
|
-
### Patch Changes
|
|
462
|
-
|
|
463
|
-
- 830b949: Implement tiling
|
|
464
|
-
|
|
465
|
-
## 0.1.2
|
|
466
|
-
|
|
467
|
-
### Patch Changes
|
|
468
|
-
|
|
469
|
-
- 6b303ac: Handle source blend mode, angular gradient, mask property in endSurface instruction, tiling in fill image and gaussian blur with saturation
|
|
470
|
-
- db84b93: Handle presentation file version mismatch warnings.
|
|
471
|
-
- 0a41322: Fix safari issue with indexedDB
|
|
472
|
-
- 8aa002d: Add scaleToFit method to renderer
|
|
473
|
-
|
|
474
|
-
## 0.1.1
|
|
475
|
-
|
|
476
|
-
### Patch Changes
|
|
477
|
-
|
|
478
|
-
- a451039: Use static/js as base path for the web renderer chunks
|
|
479
|
-
|
|
480
|
-
## 0.1.0
|
|
481
|
-
|
|
482
|
-
### Minor Changes
|
|
483
|
-
|
|
484
|
-
- 3d6c815: Use the OffscreenCanvas when possible and slight changes to the API
|
|
485
|
-
|
|
486
|
-
### Patch Changes
|
|
487
|
-
|
|
488
|
-
- 3bc636c: Skip layers that are outside the viewport
|
|
489
|
-
- 793784d: Improve status event handling when using a web worker
|
|
490
|
-
- bf85eb5: Improve surfaces generation using SkPicture
|
|
491
|
-
|
|
492
|
-
## 0.0.8
|
|
493
|
-
|
|
494
|
-
### Patch Changes
|
|
495
|
-
|
|
496
|
-
- 1e25c1e: Check if the property name exists in the startLayer instruction
|
|
497
|
-
- b52a72c: Enable WebGL 2 on supported browsers
|
|
498
|
-
|
|
499
|
-
## 0.0.7
|
|
500
|
-
|
|
501
|
-
### Patch Changes
|
|
502
|
-
|
|
503
|
-
- 780a8e4: Rename trait with traits in start layer instruction
|
|
504
|
-
- 8bc5172: Trace Js and C++ operations and print duration in console
|
|
505
|
-
- ba51d6f: Enable/disable debug mode in web renderer
|
|
506
|
-
- 54d03e3: Add possibility to set a background color during the Renderer initialization
|
|
507
|
-
- 9279281: Handle layer instructions and draw artboards background
|
|
508
|
-
- 706f92a: Added status event to Renderer.
|
|
509
|
-
|
|
510
|
-
## 0.0.6
|
|
511
|
-
|
|
512
|
-
### Patch Changes
|
|
513
|
-
|
|
514
|
-
- 6d328c9: It's now possible to zoom the canvas by using mouse wheel or gestures
|
|
515
|
-
|
|
516
|
-
## 0.0.5
|
|
517
|
-
|
|
518
|
-
### Patch Changes
|
|
519
|
-
|
|
520
|
-
- c1cdd9d: Add panning
|
|
521
|
-
- 2fe7471: Adjust Renderer constructor to take a locateFile function.
|
|
522
|
-
|
|
523
|
-
## 0.0.4
|
|
524
|
-
|
|
525
|
-
### Patch Changes
|
|
526
|
-
|
|
527
|
-
- a8bf3ca: Add support for images
|
|
528
|
-
- 7204aeb: Fix transformation matrix in grey squares appearing while images are being downloaded
|
|
529
|
-
- 07ba889: Add blur instruction
|
|
530
|
-
- 705ed9b: Rename blend mode destATop to destAtop
|
|
531
|
-
- e417ce0: Update over blend mode name to normal
|
|
532
|
-
- 8338c14: Add surface instructions
|
|
533
|
-
|
|
534
|
-
## 0.0.3
|
|
535
|
-
|
|
536
|
-
### Patch Changes
|
|
537
|
-
|
|
538
|
-
- 3081694: Add linear gradient instruction
|
|
539
|
-
- de31cc4: Add clear instruction
|
|
540
|
-
- 4322251: Add fill instruction
|
|
541
|
-
- 45caba0: Add radial gradient instruction
|
|
542
|
-
- 4b83bb4: Add transform instruction
|
|
543
|
-
- ba78270: Add clip instruction
|
|
544
|
-
- b062c07: Include full set of files in the package dist folder.
|
|
545
|
-
- fb0c2f6: Add save and restore instructions
|
|
546
|
-
- f4ce343: Add blend mode instructions
|
|
547
|
-
|
|
548
|
-
## 0.0.2
|
|
549
|
-
|
|
550
|
-
### Patch Changes
|
|
551
|
-
|
|
552
|
-
- 04ef17d: Initial publish.
|