@scratch/scratch-render 13.4.0-test.3 → 13.4.0-test.5

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.
@@ -1,311 +1,3 @@
1
1
  /* @license twgl.js 4.24.0 Copyright (c) 2015, Gregg Tavares All Rights Reserved.
2
2
  Available via the MIT license.
3
3
  see: http://github.com/greggman/twgl.js for details */
4
-
5
- /*!
6
- * decimal.js v10.6.0
7
- * An arbitrary-precision Decimal type for JavaScript.
8
- * https://github.com/MikeMcl/decimal.js
9
- * Copyright (c) 2025 Michael Mclaughlin <M8ch88l@gmail.com>
10
- * MIT Licence
11
- */
12
-
13
- /*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE */
14
-
15
- /*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */
16
-
17
- /*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> */
18
-
19
- /**
20
- * @description Calculate deltaE OK which is the simple root sum of squares
21
- * @param {number[]} reference - Array of OKLab values: L as 0..1, a and b as -1..1
22
- * @param {number[]} sample - Array of OKLab values: L as 0..1, a and b as -1..1
23
- * @return {number} How different a color sample is from reference
24
- *
25
- * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
26
- * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/deltaEOK.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
27
- * @see https://github.com/w3c/csswg-drafts/blob/main/css-color-4/deltaEOK.js
28
- */
29
-
30
- /**
31
- * @license MIT https://github.com/facelessuser/coloraide/blob/main/LICENSE.md
32
- */
33
-
34
- /**
35
- * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
36
- * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
37
- *
38
- * XYZ <-> LMS matrices recalculated for consistent reference white
39
- * @see https://github.com/w3c/csswg-drafts/issues/6642#issuecomment-943521484
40
- */
41
-
42
- /**
43
- * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
44
- * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
45
- * @see https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js
46
- */
47
-
48
- /**
49
- * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
50
- * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
51
- */
52
-
53
- /**
54
- * @param {number} hue - Hue as degrees 0..360
55
- * @param {number} white - Whiteness as percentage 0..100
56
- * @param {number} black - Blackness as percentage 0..100
57
- * @return {number[]} Array of RGB components 0..1
58
- *
59
- * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
60
- * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/hwbToRgb.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
61
- * @see https://github.com/w3c/csswg-drafts/blob/main/css-color-4/hwbToRgb.js
62
- */
63
-
64
- /**
65
- * @param {number} hue - Hue as degrees 0..360
66
- * @param {number} sat - Saturation as percentage 0..100
67
- * @param {number} light - Lightness as percentage 0..100
68
- * @return {number[]} Array of sRGB components; in-gamut colors in range [0..1]
69
- *
70
- * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
71
- * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/hslToRgb.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
72
- * @see https://github.com/w3c/csswg-drafts/blob/main/css-color-4/hslToRgb.js
73
- */
74
-
75
- /**
76
- * Assuming XYZ is relative to D50, convert to CIE Lab
77
- * from CIE standard, which now defines these as a rational fraction
78
- *
79
- * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
80
- * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
81
- */
82
-
83
- /**
84
- * Bradford chromatic adaptation from D50 to D65
85
- *
86
- * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
87
- * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
88
- */
89
-
90
- /**
91
- * Bradford chromatic adaptation from D65 to D50
92
- * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
93
- * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
94
- * @see http://www.brucelindbloom.com/index.html?Eqn_ChromAdapt.html
95
- */
96
-
97
- /**
98
- * Character class utilities for XML NS 1.0 edition 3.
99
- *
100
- * @author Louis-Dominique Dubeau
101
- * @license MIT
102
- * @copyright Louis-Dominique Dubeau
103
- */
104
-
105
- /**
106
- * Character classes and associated utilities for the 2nd edition of XML 1.1.
107
- *
108
- * @author Louis-Dominique Dubeau
109
- * @license MIT
110
- * @copyright Louis-Dominique Dubeau
111
- */
112
-
113
- /**
114
- * Character classes and associated utilities for the 5th edition of XML 1.0.
115
- *
116
- * @author Louis-Dominique Dubeau
117
- * @license MIT
118
- * @copyright Louis-Dominique Dubeau
119
- */
120
-
121
- /**
122
- * Convert D50 XYZ to linear-light prophoto-rgb
123
- *
124
- * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
125
- * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
126
- * @see http://www.brucelindbloom.com/index.html?Eqn_RGB_XYZ_Matrix.html
127
- */
128
-
129
- /**
130
- * Convert Lab to D50-adapted XYZ
131
- * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
132
- * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
133
- * @see http://www.brucelindbloom.com/index.html?Eqn_RGB_XYZ_Matrix.html
134
- */
135
-
136
- /**
137
- * Convert XYZ to linear-light P3
138
- *
139
- * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
140
- * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
141
- */
142
-
143
- /**
144
- * Convert XYZ to linear-light rec2020
145
- *
146
- * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
147
- * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
148
- */
149
-
150
- /**
151
- * Convert an array of a98-rgb values in the range 0.0 - 1.0
152
- * to linear light (un-companded) form. Negative values are also now accepted
153
- *
154
- * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
155
- * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
156
- */
157
-
158
- /**
159
- * Convert an array of display-p3 RGB values in the range 0.0 - 1.0
160
- * to linear light (un-companded) form.
161
- *
162
- * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
163
- * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
164
- */
165
-
166
- /**
167
- * Convert an array of gamma-corrected sRGB values in the 0.0 to 1.0 range to HSL.
168
- *
169
- * @param {Color} RGB [r, g, b]
170
- * - Red component 0..1
171
- * - Green component 0..1
172
- * - Blue component 0..1
173
- * @return {number[]} Array of HSL values: Hue as degrees 0..360, Saturation and Lightness as percentages 0..100
174
- *
175
- * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
176
- * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/utilities.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
177
- *
178
- * @see https://github.com/w3c/csswg-drafts/blob/main/css-color-4/better-rgbToHsl.js
179
- */
180
-
181
- /**
182
- * Convert an array of linear-light a98-rgb in the range 0.0-1.0
183
- * to gamma corrected form. Negative values are also now accepted
184
- *
185
- * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
186
- * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
187
- */
188
-
189
- /**
190
- * Convert an array of linear-light a98-rgb values to CIE XYZ
191
- * http://www.brucelindbloom.com/index.html?Eqn_RGB_XYZ_Matrix.html
192
- * has greater numerical precision than section 4.3.5.3 of
193
- * https://www.adobe.com/digitalimag/pdfs/AdobeRGB1998.pdf
194
- * but the values below were calculated from first principles
195
- * from the chromaticity coordinates of R G B W
196
- *
197
- * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
198
- * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
199
- * @see http://www.brucelindbloom.com/index.html?Eqn_RGB_XYZ_Matrix.html
200
- * @see https://www.adobe.com/digitalimag/pdfs/AdobeRGB1998.pdf
201
- * @see https://github.com/w3c/csswg-drafts/blob/main/css-color-4/matrixmaker.html
202
- */
203
-
204
- /**
205
- * Convert an array of linear-light display-p3 RGB in the range 0.0-1.0
206
- * to gamma corrected form
207
- *
208
- * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
209
- * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
210
- */
211
-
212
- /**
213
- * Convert an array of linear-light display-p3 values to CIE XYZ
214
- * using D65 (no chromatic adaptation)
215
- *
216
- * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
217
- * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
218
- * @see http://www.brucelindbloom.com/index.html?Eqn_RGB_XYZ_Matrix.html
219
- */
220
-
221
- /**
222
- * Convert an array of linear-light prophoto-rgb in the range 0.0-1.0
223
- * to gamma corrected form.
224
- * Transfer curve is gamma 1.8 with a small linear portion.
225
- *
226
- * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
227
- * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
228
- */
229
-
230
- /**
231
- * Convert an array of linear-light prophoto-rgb values to CIE D50 XYZ.
232
- * Matrix cannot be expressed in rational form, but is calculated to 64 bit accuracy.
233
- *
234
- * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
235
- * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
236
- * @see see https://github.com/w3c/csswg-drafts/issues/7675
237
- */
238
-
239
- /**
240
- * Convert an array of linear-light rec2020 RGB in the range 0.0-1.0
241
- * to gamma corrected form ITU-R BT.2020-2 p.4
242
- *
243
- * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
244
- * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
245
- */
246
-
247
- /**
248
- * Convert an array of linear-light rec2020 values to CIE XYZ
249
- * using D65 (no chromatic adaptation)
250
- *
251
- * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
252
- * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
253
- * @see http://www.brucelindbloom.com/index.html?Eqn_RGB_XYZ_Matrix.html
254
- */
255
-
256
- /**
257
- * Convert an array of linear-light sRGB values in the range 0.0-1.0 to gamma corrected form
258
- * Extended transfer function:
259
- * For negative values, linear portion extends on reflection
260
- * of axis, then uses reflected pow below that
261
- *
262
- * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
263
- * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
264
- * @see https://en.wikipedia.org/wiki/SRGB
265
- */
266
-
267
- /**
268
- * Convert an array of linear-light sRGB values to CIE XYZ
269
- * using sRGB's own white, D65 (no chromatic adaptation)
270
- *
271
- * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
272
- * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
273
- */
274
-
275
- /**
276
- * Convert an array of of sRGB values where in-gamut values are in the range
277
- * [0 - 1] to linear light (un-companded) form.
278
- * Extended transfer function:
279
- * For negative values, linear portion is extended on reflection of axis,
280
- * then reflected power function is used.
281
- *
282
- * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
283
- * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
284
- * @see https://en.wikipedia.org/wiki/SRGB
285
- */
286
-
287
- /**
288
- * Convert an array of prophoto-rgb values where in-gamut Colors are in the
289
- * range [0.0 - 1.0] to linear light (un-companded) form. Transfer curve is
290
- * gamma 1.8 with a small linear portion. Extended transfer function
291
- *
292
- * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
293
- * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
294
- */
295
-
296
- /**
297
- * Convert an array of rec2020 RGB values in the range 0.0 - 1.0
298
- * to linear light (un-companded) form.
299
- * ITU-R BT.2020-2 p.4
300
- *
301
- * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
302
- * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
303
- */
304
-
305
- /**
306
- * Given OKLab, convert to XYZ relative to D65
307
- *
308
- * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
309
- * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
310
- * @see https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js
311
- */