@pixerate/editor 0.207.0 → 0.208.0
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/animation-editor/index.cjs +60 -59
- package/dist/animation-editor/index.js +6 -5
- package/dist/{brushstrokeRender-7LXCU7PD.js → brushstrokeRender-C3UU6GVC.js} +5 -4
- package/dist/{brushstrokeRender-VO4ZTWVA.cjs → brushstrokeRender-EAJNE6WP.cjs} +12 -11
- package/dist/canvas/index.cjs +8 -8
- package/dist/canvas/index.js +1 -1
- package/dist/{chunk-2N2QPO3H.js → chunk-2PBZBRP5.js} +9 -7
- package/dist/{chunk-7NW46N7I.cjs → chunk-3EHPLDFQ.cjs} +54 -52
- package/dist/{chunk-H367YTXI.js → chunk-42TWUPNJ.js} +13 -387
- package/dist/chunk-474IQG74.cjs +384 -0
- package/dist/{chunk-MLC7HUHO.js → chunk-BGOCAUXH.js} +1 -1
- package/dist/chunk-DWYQPL2A.js +2010 -0
- package/dist/{chunk-YXKLVD56.js → chunk-F7YA3MMC.js} +2 -2
- package/dist/{chunk-ZZGPYNS2.js → chunk-G4E6RUPC.js} +1 -1
- package/dist/chunk-HVVR5PZW.js +384 -0
- package/dist/{chunk-FR2Q2LVF.cjs → chunk-I7G3RSUJ.cjs} +35 -35
- package/dist/chunk-K6PXS6DO.cjs +102 -0
- package/dist/{chunk-ZIDUPSP4.js → chunk-KFIOEOCQ.js} +24 -761
- package/dist/{chunk-V7GWZIZK.cjs → chunk-KWNMBMKG.cjs} +23 -21
- package/dist/chunk-L3G23N5Y.js +763 -0
- package/dist/{chunk-GHCXLQ47.js → chunk-NDMXB4PR.js} +2 -2
- package/dist/{chunk-CWM3CUUX.cjs → chunk-OLNIPTB3.cjs} +39 -413
- package/dist/{chunk-EBDCRTZI.cjs → chunk-PQ3H2AAN.cjs} +92 -90
- package/dist/{chunk-BRKVNXDZ.cjs → chunk-QAUIZPYI.cjs} +7 -7
- package/dist/{chunk-UYXL6ZWQ.cjs → chunk-QE7D7TZR.cjs} +494 -1231
- package/dist/chunk-QYLWG22N.cjs +763 -0
- package/dist/{chunk-YQ5C5BVK.cjs → chunk-ROVK6AXX.cjs} +60 -60
- package/dist/{chunk-HGTDMKNE.cjs → chunk-UOGKSVRQ.cjs} +126 -221
- package/dist/{chunk-EL5PAHNP.js → chunk-USQCKRZG.js} +6 -4
- package/dist/{chunk-36OKQDCF.js → chunk-WJ2RBZMM.js} +5 -3
- package/dist/chunk-X4LUGTQX.cjs +2010 -0
- package/dist/{chunk-NQMP3CWF.js → chunk-YBJXCQTR.js} +15 -110
- package/dist/chunk-ZIF4UJJ6.js +102 -0
- package/dist/{chunk-WTW7QRTS.cjs → chunk-ZMHPQ6HP.cjs} +1 -1
- package/dist/image-editor/controller.d.cts +28 -3
- package/dist/image-editor/controller.d.ts +28 -3
- package/dist/image-editor/index.cjs +1726 -3359
- package/dist/image-editor/index.js +241 -1874
- package/dist/image-editor/selection/index.d.cts +1 -0
- package/dist/image-editor/selection/index.d.ts +1 -0
- package/dist/image-editor/selection/segment/focus.d.cts +2 -0
- package/dist/image-editor/selection/segment/focus.d.ts +2 -0
- package/dist/image-editor/selection/segment/grabcut.d.cts +4 -2
- package/dist/image-editor/selection/segment/grabcut.d.ts +4 -2
- package/dist/image-editor/selection/segment/sky.d.cts +2 -0
- package/dist/image-editor/selection/segment/sky.d.ts +2 -0
- package/dist/image-editor/selection/segment/subject.d.cts +2 -1
- package/dist/image-editor/selection/segment/subject.d.ts +2 -1
- package/dist/image-editor/selection/segment/work.d.cts +5 -0
- package/dist/image-editor/selection/segment/work.d.ts +5 -0
- package/dist/image-editor/selection/select-and-mask.d.cts +12 -2
- package/dist/image-editor/selection/select-and-mask.d.ts +12 -2
- package/dist/image-editor/selection/worker.d.cts +126 -0
- package/dist/image-editor/selection/worker.d.ts +126 -0
- package/dist/image-editor/selection-worker.cjs +14 -0
- package/dist/image-editor/selection-worker.d.cts +12 -0
- package/dist/image-editor/selection-worker.d.ts +12 -0
- package/dist/image-editor/selection-worker.js +14 -0
- package/dist/image-editor/types.d.cts +8 -0
- package/dist/image-editor/types.d.ts +8 -0
- package/dist/paint/index.cjs +6 -5
- package/dist/paint/index.js +5 -4
- package/dist/paint-editor/index.cjs +394 -390
- package/dist/paint-editor/index.js +18 -14
- package/dist/raster/index.cjs +22 -18
- package/dist/raster/index.js +29 -25
- package/dist/vector/index.cjs +986 -985
- package/dist/vector/index.js +6 -5
- package/package.json +11 -1
|
@@ -7,8 +7,9 @@ import {
|
|
|
7
7
|
resolveExternalAssets,
|
|
8
8
|
serializeLayers,
|
|
9
9
|
serializeLayersExternal
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-KFIOEOCQ.js";
|
|
11
11
|
import "../chunk-3CI7FRMK.js";
|
|
12
|
+
import "../chunk-L3G23N5Y.js";
|
|
12
13
|
import {
|
|
13
14
|
EffectRendererPool
|
|
14
15
|
} from "../chunk-EHLOCVWB.js";
|
|
@@ -19,8 +20,9 @@ import {
|
|
|
19
20
|
insertLayer,
|
|
20
21
|
isLayerLocked,
|
|
21
22
|
mapLayer
|
|
22
|
-
} from "../chunk-
|
|
23
|
+
} from "../chunk-YBJXCQTR.js";
|
|
23
24
|
import "../chunk-OHKOFKBY.js";
|
|
25
|
+
import "../chunk-ZIF4UJJ6.js";
|
|
24
26
|
import {
|
|
25
27
|
DEFAULT_FLOW,
|
|
26
28
|
DEFAULT_WET_PARAMS,
|
|
@@ -43,7 +45,7 @@ import {
|
|
|
43
45
|
pigmentOf,
|
|
44
46
|
pointerPressure,
|
|
45
47
|
wetSupport
|
|
46
|
-
} from "../chunk-
|
|
48
|
+
} from "../chunk-WJ2RBZMM.js";
|
|
47
49
|
import "../chunk-HVQVHUTV.js";
|
|
48
50
|
import {
|
|
49
51
|
writeZip
|
|
@@ -54,7 +56,7 @@ import {
|
|
|
54
56
|
realPresenceClock,
|
|
55
57
|
tweenPresenceCursor
|
|
56
58
|
} from "../chunk-IVSWRVB4.js";
|
|
57
|
-
import "../chunk-
|
|
59
|
+
import "../chunk-NDMXB4PR.js";
|
|
58
60
|
import {
|
|
59
61
|
BRUSH_ID,
|
|
60
62
|
BRUSH_ROTATIONS,
|
|
@@ -119,7 +121,7 @@ import {
|
|
|
119
121
|
tiltToOrientation,
|
|
120
122
|
toStrokePoint,
|
|
121
123
|
usesPaintExchange
|
|
122
|
-
} from "../chunk-
|
|
124
|
+
} from "../chunk-F7YA3MMC.js";
|
|
123
125
|
import "../chunk-M6DNZNVY.js";
|
|
124
126
|
import "../chunk-WEIK3UYB.js";
|
|
125
127
|
import "../chunk-PWBZH3FK.js";
|
|
@@ -189,21 +191,15 @@ import {
|
|
|
189
191
|
seedFromString,
|
|
190
192
|
solidPaint,
|
|
191
193
|
updatePaintGradientStop
|
|
192
|
-
} from "../chunk-
|
|
194
|
+
} from "../chunk-2PBZBRP5.js";
|
|
193
195
|
import "../chunk-ODBT55Q7.js";
|
|
194
196
|
import {
|
|
195
197
|
BLEND_MODES,
|
|
196
198
|
PAINTERLY_BLEND_MODES,
|
|
197
|
-
TILE,
|
|
198
|
-
TiledSurface,
|
|
199
199
|
base64ToBytes,
|
|
200
200
|
bytesToBase64,
|
|
201
|
-
contentBounds,
|
|
202
201
|
decodePng,
|
|
203
|
-
emptySurface,
|
|
204
202
|
encodePng,
|
|
205
|
-
fillRect,
|
|
206
|
-
finishTile,
|
|
207
203
|
isBlendMode,
|
|
208
204
|
isPainterlyBlendMode,
|
|
209
205
|
isPng,
|
|
@@ -211,15 +207,23 @@ import {
|
|
|
211
207
|
mixPigments,
|
|
212
208
|
parseDataUrl,
|
|
213
209
|
pngDataUrl,
|
|
210
|
+
standardBlendMode
|
|
211
|
+
} from "../chunk-42TWUPNJ.js";
|
|
212
|
+
import {
|
|
213
|
+
TILE,
|
|
214
|
+
TiledSurface,
|
|
215
|
+
contentBounds,
|
|
216
|
+
emptySurface,
|
|
217
|
+
fillRect,
|
|
218
|
+
finishTile,
|
|
214
219
|
readPixel,
|
|
215
220
|
readRegion,
|
|
216
|
-
standardBlendMode,
|
|
217
221
|
surfaceFromPixels,
|
|
218
222
|
tileKey,
|
|
219
223
|
tilesInRect,
|
|
220
224
|
translateSurface,
|
|
221
225
|
writeRegion
|
|
222
|
-
} from "../chunk-
|
|
226
|
+
} from "../chunk-HVVR5PZW.js";
|
|
223
227
|
import "../chunk-QGHEDC7B.js";
|
|
224
228
|
import "../chunk-SIFAIGB3.js";
|
|
225
229
|
import "../chunk-CIQIM2IP.js";
|
package/dist/raster/index.cjs
CHANGED
|
@@ -59,10 +59,13 @@
|
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
|
|
62
|
+
var _chunkUOGKSVRQcjs = require('../chunk-UOGKSVRQ.cjs');
|
|
63
|
+
require('../chunk-QT26RHKK.cjs');
|
|
62
64
|
|
|
63
65
|
|
|
64
|
-
|
|
65
|
-
require('../chunk-
|
|
66
|
+
|
|
67
|
+
var _chunkK6PXS6DOcjs = require('../chunk-K6PXS6DO.cjs');
|
|
68
|
+
|
|
66
69
|
|
|
67
70
|
|
|
68
71
|
|
|
@@ -111,6 +114,7 @@ require('../chunk-QT26RHKK.cjs');
|
|
|
111
114
|
|
|
112
115
|
|
|
113
116
|
|
|
117
|
+
var _chunkOLNIPTB3cjs = require('../chunk-OLNIPTB3.cjs');
|
|
114
118
|
|
|
115
119
|
|
|
116
120
|
|
|
@@ -135,7 +139,7 @@ require('../chunk-QT26RHKK.cjs');
|
|
|
135
139
|
|
|
136
140
|
|
|
137
141
|
|
|
138
|
-
var
|
|
142
|
+
var _chunk474IQG74cjs = require('../chunk-474IQG74.cjs');
|
|
139
143
|
|
|
140
144
|
|
|
141
145
|
|
|
@@ -188,13 +192,13 @@ function surfaceMipLevel(screenPixelsPerSurfacePixel, maxLevel = 4) {
|
|
|
188
192
|
return Math.min(maxLevel, Math.floor(Math.log2(1 / s)));
|
|
189
193
|
}
|
|
190
194
|
function downsampleInto(src, n, out, ox, oy) {
|
|
191
|
-
const side =
|
|
195
|
+
const side = _chunk474IQG74cjs.TILE / n;
|
|
192
196
|
const area = n * n;
|
|
193
197
|
for (let y = 0; y < side; y++) {
|
|
194
198
|
for (let x = 0; x < side; x++) {
|
|
195
199
|
let r = 0, g = 0, b = 0, a = 0;
|
|
196
200
|
for (let dy = 0; dy < n; dy++) {
|
|
197
|
-
let i = ((y * n + dy) *
|
|
201
|
+
let i = ((y * n + dy) * _chunk474IQG74cjs.TILE + x * n) * 4;
|
|
198
202
|
for (let dx = 0; dx < n; dx++, i += 4) {
|
|
199
203
|
const al = src[i + 3];
|
|
200
204
|
r += src[i] * al;
|
|
@@ -203,7 +207,7 @@ function downsampleInto(src, n, out, ox, oy) {
|
|
|
203
207
|
a += al;
|
|
204
208
|
}
|
|
205
209
|
}
|
|
206
|
-
const o = ((oy + y) *
|
|
210
|
+
const o = ((oy + y) * _chunk474IQG74cjs.TILE + ox + x) * 4;
|
|
207
211
|
if (a > 0) {
|
|
208
212
|
out[o] = r / a;
|
|
209
213
|
out[o + 1] = g / a;
|
|
@@ -227,10 +231,10 @@ var SurfaceViewportRenderer = (_class = class {
|
|
|
227
231
|
this.uniform.clear();
|
|
228
232
|
}
|
|
229
233
|
image(data) {
|
|
230
|
-
const canvas = this.createCanvas(
|
|
234
|
+
const canvas = this.createCanvas(_chunk474IQG74cjs.TILE, _chunk474IQG74cjs.TILE);
|
|
231
235
|
const ctx = canvas.getContext("2d");
|
|
232
236
|
if (!ctx) return null;
|
|
233
|
-
const img = ctx.createImageData(
|
|
237
|
+
const img = ctx.createImageData(_chunk474IQG74cjs.TILE, _chunk474IQG74cjs.TILE);
|
|
234
238
|
img.data.set(data);
|
|
235
239
|
ctx.putImageData(img, 0, 0);
|
|
236
240
|
return canvas;
|
|
@@ -248,7 +252,7 @@ var SurfaceViewportRenderer = (_class = class {
|
|
|
248
252
|
uniformImage(value) {
|
|
249
253
|
let c = this.uniform.get(value);
|
|
250
254
|
if (!c) {
|
|
251
|
-
const data = new Uint8ClampedArray(
|
|
255
|
+
const data = new Uint8ClampedArray(_chunk474IQG74cjs.TILE * _chunk474IQG74cjs.TILE * 4);
|
|
252
256
|
for (let i = 0; i < data.length; i += 4) {
|
|
253
257
|
data[i] = value >>> 24 & 255;
|
|
254
258
|
data[i + 1] = value >>> 16 & 255;
|
|
@@ -265,17 +269,17 @@ var SurfaceViewportRenderer = (_class = class {
|
|
|
265
269
|
mipImage(surface, level, mx, my) {
|
|
266
270
|
const n = 1 << level;
|
|
267
271
|
const sources = [];
|
|
268
|
-
for (let dy = 0; dy < n; dy++) for (let dx = 0; dx < n; dx++) sources.push(surface.tiles.get(
|
|
272
|
+
for (let dy = 0; dy < n; dy++) for (let dx = 0; dx < n; dx++) sources.push(surface.tiles.get(_chunk474IQG74cjs.tileKey.call(void 0, mx * n + dx, my * n + dy)));
|
|
269
273
|
if (sources.every((t) => !t)) return null;
|
|
270
274
|
const key = `${level}:${mx}:${my}`;
|
|
271
275
|
const hit = this.mips.get(key);
|
|
272
276
|
if (hit && hit.sources.length === sources.length && hit.sources.every((t, i) => t === sources[i])) return hit.canvas;
|
|
273
|
-
const out = new Uint8ClampedArray(
|
|
274
|
-
const side =
|
|
277
|
+
const out = new Uint8ClampedArray(_chunk474IQG74cjs.TILE * _chunk474IQG74cjs.TILE * 4);
|
|
278
|
+
const side = _chunk474IQG74cjs.TILE / n;
|
|
275
279
|
const blank = surface.defaultValue ? this.defaultTileData(surface.defaultValue) : null;
|
|
276
280
|
sources.forEach((t, i) => {
|
|
277
281
|
const src = _nullishCoalesce(_optionalChain([t, 'optionalAccess', _9 => _9.data]), () => ( blank));
|
|
278
|
-
if (src && src.length ===
|
|
282
|
+
if (src && src.length === _chunk474IQG74cjs.TILE * _chunk474IQG74cjs.TILE * 4) downsampleInto(src, n, out, i % n * side, Math.floor(i / n) * side);
|
|
279
283
|
});
|
|
280
284
|
const canvas = this.image(out);
|
|
281
285
|
if (!canvas) return null;
|
|
@@ -283,7 +287,7 @@ var SurfaceViewportRenderer = (_class = class {
|
|
|
283
287
|
return canvas;
|
|
284
288
|
}
|
|
285
289
|
defaultTileData(value) {
|
|
286
|
-
const data = new Uint8ClampedArray(
|
|
290
|
+
const data = new Uint8ClampedArray(_chunk474IQG74cjs.TILE * _chunk474IQG74cjs.TILE * 4);
|
|
287
291
|
for (let i = 0; i < data.length; i += 4) {
|
|
288
292
|
data[i] = value >>> 24 & 255;
|
|
289
293
|
data[i + 1] = value >>> 16 & 255;
|
|
@@ -303,7 +307,7 @@ var SurfaceViewportRenderer = (_class = class {
|
|
|
303
307
|
const zoom = view.zoom > 0 ? view.zoom : 1;
|
|
304
308
|
const screenPerPixel = zoom / ppu;
|
|
305
309
|
const level = surfaceMipLevel(screenPerPixel, _nullishCoalesce(options.maxMipLevel, () => ( 4)));
|
|
306
|
-
const span =
|
|
310
|
+
const span = _chunk474IQG74cjs.TILE << level;
|
|
307
311
|
const visible = visibleSurfaceRect(mapping, view, options.width, options.height);
|
|
308
312
|
const tx0 = Math.floor(visible.x / span);
|
|
309
313
|
const ty0 = Math.floor(visible.y / span);
|
|
@@ -318,7 +322,7 @@ var SurfaceViewportRenderer = (_class = class {
|
|
|
318
322
|
if (!surface.defaultValue && surface.tiles.size < (tx1 - tx0 + 1) * (ty1 - ty0 + 1)) {
|
|
319
323
|
const seen = /* @__PURE__ */ new Set();
|
|
320
324
|
for (const key of surface.tiles.keys()) {
|
|
321
|
-
const c =
|
|
325
|
+
const c = _chunk474IQG74cjs.tileCoord.call(void 0, key);
|
|
322
326
|
const mx = Math.floor(c.tx / (1 << level));
|
|
323
327
|
const my = Math.floor(c.ty / (1 << level));
|
|
324
328
|
if (mx < tx0 || mx > tx1 || my < ty0 || my > ty1 || seen.has(`${mx},${my}`)) continue;
|
|
@@ -331,7 +335,7 @@ var SurfaceViewportRenderer = (_class = class {
|
|
|
331
335
|
for (const [tx, ty] of keys) {
|
|
332
336
|
let canvas = null;
|
|
333
337
|
if (level === 0) {
|
|
334
|
-
const tile = surface.tiles.get(
|
|
338
|
+
const tile = surface.tiles.get(_chunk474IQG74cjs.tileKey.call(void 0, tx, ty));
|
|
335
339
|
if (tile) {
|
|
336
340
|
const had = this.base.has(tile);
|
|
337
341
|
canvas = this.tileImage(tile);
|
|
@@ -510,4 +514,4 @@ function drawSurfaceToViewport(ctx, surface, mapping, view, options) {
|
|
|
510
514
|
|
|
511
515
|
|
|
512
516
|
|
|
513
|
-
exports.BIT_DEPTHS =
|
|
517
|
+
exports.BIT_DEPTHS = _chunkOLNIPTB3cjs.BIT_DEPTHS; exports.BLEND_MODES = _chunkOLNIPTB3cjs.BLEND_MODES; exports.CURVE_LUT_SIZE = _chunkUOGKSVRQcjs.CURVE_LUT_SIZE; exports.DEFAULT_GLOBAL_LIGHT = _chunkUOGKSVRQcjs.DEFAULT_GLOBAL_LIGHT; exports.DIRECT_GAUSSIAN_MAX_SIGMA = _chunkK6PXS6DOcjs.DIRECT_GAUSSIAN_MAX_SIGMA; exports.DeepCompositor = _chunkUOGKSVRQcjs.DeepCompositor; exports.INTERPOLATIONS = _chunkUOGKSVRQcjs.INTERPOLATIONS; exports.LAYER_EFFECT_KINDS = _chunkUOGKSVRQcjs.LAYER_EFFECT_KINDS; exports.LayerEffectError = _chunkUOGKSVRQcjs.LayerEffectError; exports.MAX_EFFECT_REACH = _chunkUOGKSVRQcjs.MAX_EFFECT_REACH; exports.MAX_TRANSFORM_PIXELS = _chunkUOGKSVRQcjs.MAX_TRANSFORM_PIXELS; exports.PAINTERLY_BLEND_MODES = _chunkOLNIPTB3cjs.PAINTERLY_BLEND_MODES; exports.PatternPlacement = _chunkUOGKSVRQcjs.PatternPlacement; exports.PatternTile = _chunkUOGKSVRQcjs.PatternTile; exports.RasterCompositor = _chunkUOGKSVRQcjs.RasterCompositor; exports.SHADOW_AMBIENT = _chunkOLNIPTB3cjs.SHADOW_AMBIENT; exports.STROKE_CHAMFER_MAX = _chunkUOGKSVRQcjs.STROKE_CHAMFER_MAX; exports.SurfaceDraft = _chunk474IQG74cjs.SurfaceDraft; exports.SurfaceViewportRenderer = SurfaceViewportRenderer; exports.TILE = _chunk474IQG74cjs.TILE; exports.TILE_SHIFT = _chunk474IQG74cjs.TILE_SHIFT; exports.TiledSurface = _chunk474IQG74cjs.TiledSurface; exports.TransformTooLargeError = _chunkUOGKSVRQcjs.TransformTooLargeError; exports.ZlibError = _chunkXFM3OCHUcjs.ZlibError; exports.activeEffectItems = _chunkUOGKSVRQcjs.activeEffectItems; exports.adler32 = _chunkXFM3OCHUcjs.adler32; exports.base64ToBytes = _chunkOLNIPTB3cjs.base64ToBytes; exports.blendChannel = _chunkOLNIPTB3cjs.blendChannel; exports.blendImageData = _chunkOLNIPTB3cjs.blendImageData; exports.blendLum = _chunkOLNIPTB3cjs.blendLum; exports.blendPixel = _chunkOLNIPTB3cjs.blendPixel; exports.blendRgb = _chunkOLNIPTB3cjs.blendRgb; exports.blendTile = _chunkUOGKSVRQcjs.blendTile; exports.buildEffectMaps = _chunkUOGKSVRQcjs.buildEffectMaps; exports.builtinPattern = _chunkUOGKSVRQcjs.builtinPattern; exports.builtinPatternIds = _chunkUOGKSVRQcjs.builtinPatternIds; exports.bytesToBase64 = _chunkOLNIPTB3cjs.bytesToBase64; exports.canvasCompositeOperation = _chunkOLNIPTB3cjs.canvasCompositeOperation; exports.changedTiles = _chunkUOGKSVRQcjs.changedTiles; exports.collectTiles = _chunk474IQG74cjs.collectTiles; exports.compositeLayerEffects = _chunkUOGKSVRQcjs.compositeLayerEffects; exports.compositeSurfaceOver = _chunkUOGKSVRQcjs.compositeSurfaceOver; exports.contentBounds = _chunk474IQG74cjs.contentBounds; exports.contourLut = _chunkUOGKSVRQcjs.contourLut; exports.convertSurfaceDepth = _chunkOLNIPTB3cjs.convertSurfaceDepth; exports.curveLut = _chunkUOGKSVRQcjs.curveLut; exports.decodePng = _chunkOLNIPTB3cjs.decodePng; exports.deepBytes = _chunkOLNIPTB3cjs.deepBytes; exports.deepTile = _chunkOLNIPTB3cjs.deepTile; exports.defaultEffectGradient = _chunkUOGKSVRQcjs.defaultEffectGradient; exports.defaultLayerEffect = _chunkUOGKSVRQcjs.defaultLayerEffect; exports.deflate = _chunkXFM3OCHUcjs.deflate; exports.deflateRaw = _chunkXFM3OCHUcjs.deflateRaw; exports.depthOf = _chunkOLNIPTB3cjs.depthOf; exports.drawSurfaceToViewport = drawSurfaceToViewport; exports.effectColorHex = _chunkUOGKSVRQcjs.effectColorHex; exports.effectFillColors = _chunkUOGKSVRQcjs.effectFillColors; exports.effectReach = _chunkUOGKSVRQcjs.effectReach; exports.effectsAreLocal = _chunkUOGKSVRQcjs.effectsAreLocal; exports.effectsFingerprint = _chunkUOGKSVRQcjs.effectsFingerprint; exports.effectsMargin = _chunkUOGKSVRQcjs.effectsMargin; exports.effectsScale = _chunkUOGKSVRQcjs.effectsScale; exports.emptySurface = _chunk474IQG74cjs.emptySurface; exports.encodePng = _chunkOLNIPTB3cjs.encodePng; exports.fillRect = _chunk474IQG74cjs.fillRect; exports.findLayer = _chunkUOGKSVRQcjs.findLayer; exports.finishTile = _chunk474IQG74cjs.finishTile; exports.flattenLayers = _chunkUOGKSVRQcjs.flattenLayers; exports.gaussianBlur = _chunkK6PXS6DOcjs.gaussianBlur; exports.gradientT = _chunkUOGKSVRQcjs.gradientT; exports.hasActiveEffects = _chunkUOGKSVRQcjs.hasActiveEffects; exports.hashNoise = _chunkUOGKSVRQcjs.hashNoise; exports.inflate = _chunkXFM3OCHUcjs.inflate; exports.inflateRaw = _chunkXFM3OCHUcjs.inflateRaw; exports.insertLayer = _chunkUOGKSVRQcjs.insertLayer; exports.isBitDepth = _chunkOLNIPTB3cjs.isBitDepth; exports.isBlendMode = _chunkOLNIPTB3cjs.isBlendMode; exports.isInterpolation = _chunkUOGKSVRQcjs.isInterpolation; exports.isLayerEffectKind = _chunkUOGKSVRQcjs.isLayerEffectKind; exports.isLayerLocked = _chunkUOGKSVRQcjs.isLayerLocked; exports.isPainterlyBlendMode = _chunkOLNIPTB3cjs.isPainterlyBlendMode; exports.isPng = _chunkOLNIPTB3cjs.isPng; exports.isSeparableBlendMode = _chunkOLNIPTB3cjs.isSeparableBlendMode; exports.keepDeepSamples = _chunkOLNIPTB3cjs.keepDeepSamples; exports.keysWeight = _chunkUOGKSVRQcjs.keysWeight; exports.layerEffectFields = _chunkUOGKSVRQcjs.layerEffectFields; exports.layerEffectLabel = _chunkUOGKSVRQcjs.layerEffectLabel; exports.mapLayer = _chunkUOGKSVRQcjs.mapLayer; exports.mergeLayerEffect = _chunkUOGKSVRQcjs.mergeLayerEffect; exports.mixPigment8 = _chunkOLNIPTB3cjs.mixPigment8; exports.mixPigmentRgb = _chunkOLNIPTB3cjs.mixPigmentRgb; exports.newEffectId = _chunkUOGKSVRQcjs.newEffectId; exports.normalizeBlendMode = _chunkOLNIPTB3cjs.normalizeBlendMode; exports.normalizeLayerEffects = _chunkUOGKSVRQcjs.normalizeLayerEffects; exports.packRgba = _chunk474IQG74cjs.packRgba; exports.parseDataUrl = _chunkOLNIPTB3cjs.parseDataUrl; exports.parseEffectColor = _chunkUOGKSVRQcjs.parseEffectColor; exports.patchEffectMaps = _chunkUOGKSVRQcjs.patchEffectMaps; exports.pigment8 = _chunkOLNIPTB3cjs.pigment8; exports.pngDataUrl = _chunkOLNIPTB3cjs.pngDataUrl; exports.proxyOf = _chunkOLNIPTB3cjs.proxyOf; exports.readDeepRegion = _chunkOLNIPTB3cjs.readDeepRegion; exports.readPixel = _chunk474IQG74cjs.readPixel; exports.readRegion = _chunk474IQG74cjs.readRegion; exports.reduceSurface = _chunkUOGKSVRQcjs.reduceSurface; exports.renderLayerEffects = _chunkUOGKSVRQcjs.renderLayerEffects; exports.scaleLayerEffect = _chunkUOGKSVRQcjs.scaleLayerEffect; exports.screenToWorld = screenToWorld; exports.setLum = _chunkOLNIPTB3cjs.setLum; exports.solidSurface = _chunk474IQG74cjs.solidSurface; exports.srgbDecode = _chunkOLNIPTB3cjs.srgbDecode; exports.srgbEncode = _chunkOLNIPTB3cjs.srgbEncode; exports.standardBlendMode = _chunkOLNIPTB3cjs.standardBlendMode; exports.surfaceBytes = _chunk474IQG74cjs.surfaceBytes; exports.surfaceDepth = _chunkOLNIPTB3cjs.surfaceDepth; exports.surfaceFromDeepPixels = _chunkOLNIPTB3cjs.surfaceFromDeepPixels; exports.surfaceFromPixels = _chunk474IQG74cjs.surfaceFromPixels; exports.surfaceMipLevel = surfaceMipLevel; exports.surfaceResolutionForZoom = surfaceResolutionForZoom; exports.surfaceToWorld = surfaceToWorld; exports.surfacesEqual = _chunk474IQG74cjs.surfacesEqual; exports.tileCoord = _chunk474IQG74cjs.tileCoord; exports.tileKey = _chunk474IQG74cjs.tileKey; exports.tileRect = _chunk474IQG74cjs.tileRect; exports.tileSamples = _chunkOLNIPTB3cjs.tileSamples; exports.tileSamples16 = _chunkOLNIPTB3cjs.tileSamples16; exports.tileSamples32 = _chunkOLNIPTB3cjs.tileSamples32; exports.tilesInRect = _chunk474IQG74cjs.tilesInRect; exports.to16From32 = _chunkOLNIPTB3cjs.to16From32; exports.to16From8 = _chunkOLNIPTB3cjs.to16From8; exports.to32From16 = _chunkOLNIPTB3cjs.to32From16; exports.to32From8 = _chunkOLNIPTB3cjs.to32From8; exports.to8From16 = _chunkOLNIPTB3cjs.to8From16; exports.to8From32 = _chunkOLNIPTB3cjs.to8From32; exports.transformSurface = _chunkUOGKSVRQcjs.transformSurface; exports.transformedBounds = _chunkUOGKSVRQcjs.transformedBounds; exports.translateSurface = _chunk474IQG74cjs.translateSurface; exports.uniformTile = _chunk474IQG74cjs.uniformTile; exports.validateEffectGradient = _chunkUOGKSVRQcjs.validateEffectGradient; exports.validateLayerEffect = _chunkUOGKSVRQcjs.validateLayerEffect; exports.validateLayerEffects = _chunkUOGKSVRQcjs.validateLayerEffects; exports.visibleSurfaceRect = visibleSurfaceRect; exports.visibleWorldRect = visibleWorldRect; exports.warpSurface = _chunkUOGKSVRQcjs.warpSurface; exports.workingToSamples = _chunkUOGKSVRQcjs.workingToSamples; exports.worldRectToSurface = worldRectToSurface; exports.worldToSurface = worldToSurface; exports.writeDeepRegion = _chunkOLNIPTB3cjs.writeDeepRegion; exports.writeRegion = _chunk474IQG74cjs.writeRegion;
|
package/dist/raster/index.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CURVE_LUT_SIZE,
|
|
3
3
|
DEFAULT_GLOBAL_LIGHT,
|
|
4
|
-
DIRECT_GAUSSIAN_MAX_SIGMA,
|
|
5
4
|
DeepCompositor,
|
|
6
5
|
INTERPOLATIONS,
|
|
7
6
|
LAYER_EFFECT_KINDS,
|
|
@@ -34,7 +33,6 @@ import {
|
|
|
34
33
|
effectsScale,
|
|
35
34
|
findLayer,
|
|
36
35
|
flattenLayers,
|
|
37
|
-
gaussianBlur,
|
|
38
36
|
gradientT,
|
|
39
37
|
hasActiveEffects,
|
|
40
38
|
hashNoise,
|
|
@@ -61,17 +59,17 @@ import {
|
|
|
61
59
|
validateLayerEffects,
|
|
62
60
|
warpSurface,
|
|
63
61
|
workingToSamples
|
|
64
|
-
} from "../chunk-
|
|
62
|
+
} from "../chunk-YBJXCQTR.js";
|
|
65
63
|
import "../chunk-OHKOFKBY.js";
|
|
64
|
+
import {
|
|
65
|
+
DIRECT_GAUSSIAN_MAX_SIGMA,
|
|
66
|
+
gaussianBlur
|
|
67
|
+
} from "../chunk-ZIF4UJJ6.js";
|
|
66
68
|
import {
|
|
67
69
|
BIT_DEPTHS,
|
|
68
70
|
BLEND_MODES,
|
|
69
71
|
PAINTERLY_BLEND_MODES,
|
|
70
72
|
SHADOW_AMBIENT,
|
|
71
|
-
SurfaceDraft,
|
|
72
|
-
TILE,
|
|
73
|
-
TILE_SHIFT,
|
|
74
|
-
TiledSurface,
|
|
75
73
|
base64ToBytes,
|
|
76
74
|
blendChannel,
|
|
77
75
|
blendImageData,
|
|
@@ -80,17 +78,12 @@ import {
|
|
|
80
78
|
blendRgb,
|
|
81
79
|
bytesToBase64,
|
|
82
80
|
canvasCompositeOperation,
|
|
83
|
-
collectTiles,
|
|
84
|
-
contentBounds,
|
|
85
81
|
convertSurfaceDepth,
|
|
86
82
|
decodePng,
|
|
87
83
|
deepBytes,
|
|
88
84
|
deepTile,
|
|
89
85
|
depthOf,
|
|
90
|
-
emptySurface,
|
|
91
86
|
encodePng,
|
|
92
|
-
fillRect,
|
|
93
|
-
finishTile,
|
|
94
87
|
isBitDepth,
|
|
95
88
|
isBlendMode,
|
|
96
89
|
isPainterlyBlendMode,
|
|
@@ -100,42 +93,53 @@ import {
|
|
|
100
93
|
mixPigment8,
|
|
101
94
|
mixPigmentRgb,
|
|
102
95
|
normalizeBlendMode,
|
|
103
|
-
packRgba,
|
|
104
96
|
parseDataUrl,
|
|
105
97
|
pigment8,
|
|
106
98
|
pngDataUrl,
|
|
107
99
|
proxyOf,
|
|
108
100
|
readDeepRegion,
|
|
109
|
-
readPixel,
|
|
110
|
-
readRegion,
|
|
111
101
|
setLum,
|
|
112
|
-
solidSurface,
|
|
113
102
|
srgbDecode,
|
|
114
103
|
srgbEncode,
|
|
115
104
|
standardBlendMode,
|
|
116
|
-
surfaceBytes,
|
|
117
105
|
surfaceDepth,
|
|
118
106
|
surfaceFromDeepPixels,
|
|
119
|
-
surfaceFromPixels,
|
|
120
|
-
surfacesEqual,
|
|
121
|
-
tileCoord,
|
|
122
|
-
tileKey,
|
|
123
|
-
tileRect,
|
|
124
107
|
tileSamples,
|
|
125
108
|
tileSamples16,
|
|
126
109
|
tileSamples32,
|
|
127
|
-
tilesInRect,
|
|
128
110
|
to16From32,
|
|
129
111
|
to16From8,
|
|
130
112
|
to32From16,
|
|
131
113
|
to32From8,
|
|
132
114
|
to8From16,
|
|
133
115
|
to8From32,
|
|
116
|
+
writeDeepRegion
|
|
117
|
+
} from "../chunk-42TWUPNJ.js";
|
|
118
|
+
import {
|
|
119
|
+
SurfaceDraft,
|
|
120
|
+
TILE,
|
|
121
|
+
TILE_SHIFT,
|
|
122
|
+
TiledSurface,
|
|
123
|
+
collectTiles,
|
|
124
|
+
contentBounds,
|
|
125
|
+
emptySurface,
|
|
126
|
+
fillRect,
|
|
127
|
+
finishTile,
|
|
128
|
+
packRgba,
|
|
129
|
+
readPixel,
|
|
130
|
+
readRegion,
|
|
131
|
+
solidSurface,
|
|
132
|
+
surfaceBytes,
|
|
133
|
+
surfaceFromPixels,
|
|
134
|
+
surfacesEqual,
|
|
135
|
+
tileCoord,
|
|
136
|
+
tileKey,
|
|
137
|
+
tileRect,
|
|
138
|
+
tilesInRect,
|
|
134
139
|
translateSurface,
|
|
135
140
|
uniformTile,
|
|
136
|
-
writeDeepRegion,
|
|
137
141
|
writeRegion
|
|
138
|
-
} from "../chunk-
|
|
142
|
+
} from "../chunk-HVVR5PZW.js";
|
|
139
143
|
import {
|
|
140
144
|
ZlibError,
|
|
141
145
|
adler32,
|