@drincs/pixi-vn 1.9.3 → 1.9.4
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/README.md +1 -1
- package/dist/{ContainerMemory-BpDgacyr.d.cts → ContainerMemory-DNqSVzLY.d.cts} +12 -116
- package/dist/{ContainerMemory-BpDgacyr.d.ts → ContainerMemory-DNqSVzLY.d.ts} +12 -116
- package/dist/canvas.cjs +2 -2
- package/dist/canvas.d.cts +1279 -551
- package/dist/canvas.d.ts +1279 -551
- package/dist/canvas.mjs +2 -2
- package/dist/characters.mjs +1 -1
- package/dist/{chunk-7P46CLKX.mjs → chunk-5MVDNAT4.mjs} +1 -1
- package/dist/chunk-6OABTG5R.mjs +1 -0
- package/dist/chunk-AW5XWF24.mjs +1 -0
- package/dist/chunk-HD353M4B.mjs +1 -0
- package/dist/chunk-LXIKP2K5.mjs +1 -0
- package/dist/chunk-S7HZUIEI.mjs +1 -0
- package/dist/core.cjs +1 -1
- package/dist/core.d.cts +57 -1
- package/dist/core.d.ts +57 -1
- package/dist/core.mjs +1 -1
- package/dist/filters.cjs +1 -0
- package/dist/filters.d.cts +182 -0
- package/dist/filters.d.ts +182 -0
- package/dist/filters.mjs +1 -0
- package/dist/history.mjs +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +5 -2
- package/dist/index.d.ts +5 -2
- package/dist/index.mjs +2 -2
- package/dist/motion.cjs +1 -1
- package/dist/motion.d.cts +30 -8
- package/dist/motion.d.ts +30 -8
- package/dist/motion.mjs +1 -1
- package/dist/narration.mjs +1 -1
- package/dist/pixi/browser.js +170 -169
- package/dist/sound.mjs +1 -1
- package/dist/storage.mjs +1 -1
- package/dist/tickers.cjs +1 -0
- package/dist/tickers.d.cts +555 -0
- package/dist/tickers.d.ts +555 -0
- package/dist/tickers.mjs +1 -0
- package/dist/vite.cjs +6 -6
- package/dist/vite.mjs +6 -6
- package/dist/worker.cjs +1 -1
- package/dist/worker.mjs +1 -1
- package/package.json +22 -1
- package/dist/chunk-AWU37VV6.mjs +0 -1
- package/dist/chunk-QOBPVPCY.mjs +0 -1
- package/dist/chunk-U5BSF6X3.mjs +0 -1
- package/dist/chunk-YBA63R27.mjs +0 -1
package/dist/core.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { StepLabelProps, GameStepState, HistoryInfo, CharacterInterface } from '@drincs/pixi-vn';
|
|
2
2
|
import { CanvasBaseInterface, CanvasBaseItemMemory, CanvasBaseItem } from '@drincs/pixi-vn/canvas';
|
|
3
|
-
import { UPDATE_PRIORITY, ContainerOptions } from '@drincs/pixi-vn/pixi.js';
|
|
3
|
+
import { UPDATE_PRIORITY, Filter, ContainerOptions } from '@drincs/pixi-vn/pixi.js';
|
|
4
4
|
import { S as StepLabelPropsType, a as StepLabelResultType, b as StepLabelType } from './StepLabelType-CN97wZzm.cjs';
|
|
5
5
|
import { S as StorageElementType } from './StorageElementType-C7ETezlL.cjs';
|
|
6
6
|
|
|
@@ -126,6 +126,42 @@ declare class GameUnifier {
|
|
|
126
126
|
* @template T - The type of Pixi’VN component(s) being animated.
|
|
127
127
|
*/
|
|
128
128
|
animate: <T extends CanvasBaseInterface<any>>(components: T | string | (string | T)[], keyframes: any, options?: any, priority?: UPDATE_PRIORITY) => string | undefined;
|
|
129
|
+
/**
|
|
130
|
+
* This function is called to animate either a `Filter`'s own properties, or a plain numeric
|
|
131
|
+
* "progress" value with no live target (as opposed to {@link animate}, which animates a canvas
|
|
132
|
+
* element's properties). The latter is the generic mechanism behind the mask-based transitions
|
|
133
|
+
* (wipe/iris/split): they have no canvas element or Filter property to write directly, just a
|
|
134
|
+
* number and a side effect.
|
|
135
|
+
* @param components - The canvas element alias(es) the filter is attached to, or otherwise
|
|
136
|
+
* associated with this animation (kept alive/cleaned up alongside them), not the animation
|
|
137
|
+
* target itself.
|
|
138
|
+
* @param filter - The `Filter` instance to animate, or `undefined` to animate a plain value
|
|
139
|
+
* instead (in which case `keyframes` describes that value, e.g. `{ value: [0, 1] }`, and `apply`
|
|
140
|
+
* is required).
|
|
141
|
+
* @param keyframes - The keyframes to animate the filter's properties (or the plain value) with.
|
|
142
|
+
* @param options - Additional options for the animation, including duration, easing, and ticker.
|
|
143
|
+
* @param priority - The priority of the ticker. @default UPDATE_PRIORITY.NORMAL
|
|
144
|
+
* @param apply - Called on every frame with the current interpolated value - required when
|
|
145
|
+
* `filter` is `undefined`, ignored otherwise.
|
|
146
|
+
* @param cleanup - Called once, right before completion handling, to detach/destroy the filter or
|
|
147
|
+
* tear down whatever `apply` was driving.
|
|
148
|
+
* @returns The id of the ticker.
|
|
149
|
+
*/
|
|
150
|
+
animateFilter: (components: string | string[], filter: Filter | undefined, keyframes: any, options?: any, priority?: UPDATE_PRIORITY, apply?: (value: number) => void, cleanup?: () => void) => string | undefined;
|
|
151
|
+
/**
|
|
152
|
+
* This function removes one or more canvas components by alias. Used by the `tickers` module's
|
|
153
|
+
* `onComplete` to honor `aliasToRemoveAfter` without importing `@drincs/pixi-vn/canvas` directly
|
|
154
|
+
* (which would close an import cycle, since `canvas` depends on `tickers`).
|
|
155
|
+
* @param alias - The alias(es) of the canvas component(s) to remove.
|
|
156
|
+
*/
|
|
157
|
+
removeCanvasComponent: (alias: string | string[]) => void;
|
|
158
|
+
/**
|
|
159
|
+
* This function checks whether a canvas component with the given alias currently exists. Used by
|
|
160
|
+
* the `tickers` module to prune ticker/alias associations for components no longer on the canvas,
|
|
161
|
+
* without importing `@drincs/pixi-vn/canvas` directly (see {@link removeCanvasComponent}).
|
|
162
|
+
* @param alias - The alias of the canvas component to check.
|
|
163
|
+
*/
|
|
164
|
+
canvasComponentExists: (alias: string) => boolean;
|
|
129
165
|
}): void;
|
|
130
166
|
private static _navigate;
|
|
131
167
|
/**
|
|
@@ -309,6 +345,26 @@ declare class GameUnifier {
|
|
|
309
345
|
* @template T - The type of Pixi’VN component(s) being animated.
|
|
310
346
|
*/
|
|
311
347
|
static get animate(): <T extends CanvasBaseInterface<any>>(components: T | string | (string | T)[], keyframes: any, options?: any, priority?: UPDATE_PRIORITY) => string | undefined;
|
|
348
|
+
private static _animateFilter;
|
|
349
|
+
/**
|
|
350
|
+
* This function is called to animate a `Filter`'s own properties, or a plain numeric "progress"
|
|
351
|
+
* value when no `filter` is given. See {@link animate} for animating a canvas element's properties
|
|
352
|
+
* instead.
|
|
353
|
+
* @returns The id of the ticker.
|
|
354
|
+
*/
|
|
355
|
+
static get animateFilter(): (components: string | string[], filter: Filter | undefined, keyframes: any, options?: any, priority?: UPDATE_PRIORITY, apply?: (value: number) => void, cleanup?: () => void) => string | undefined;
|
|
356
|
+
private static _removeCanvasComponent;
|
|
357
|
+
/**
|
|
358
|
+
* Removes one or more canvas components by alias. See the `removeCanvasComponent` option of
|
|
359
|
+
* {@link init} for why this exists.
|
|
360
|
+
*/
|
|
361
|
+
static get removeCanvasComponent(): (alias: string | string[]) => void;
|
|
362
|
+
private static _canvasComponentExists;
|
|
363
|
+
/**
|
|
364
|
+
* Checks whether a canvas component with the given alias currently exists. See the
|
|
365
|
+
* `canvasComponentExists` option of {@link init} for why this exists.
|
|
366
|
+
*/
|
|
367
|
+
static get canvasComponentExists(): (alias: string) => boolean;
|
|
312
368
|
}
|
|
313
369
|
|
|
314
370
|
declare class PixiError extends Error {
|
package/dist/core.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { StepLabelProps, GameStepState, HistoryInfo, CharacterInterface } from '@drincs/pixi-vn';
|
|
2
2
|
import { CanvasBaseInterface, CanvasBaseItemMemory, CanvasBaseItem } from '@drincs/pixi-vn/canvas';
|
|
3
|
-
import { UPDATE_PRIORITY, ContainerOptions } from '@drincs/pixi-vn/pixi.js';
|
|
3
|
+
import { UPDATE_PRIORITY, Filter, ContainerOptions } from '@drincs/pixi-vn/pixi.js';
|
|
4
4
|
import { S as StepLabelPropsType, a as StepLabelResultType, b as StepLabelType } from './StepLabelType-CN97wZzm.js';
|
|
5
5
|
import { S as StorageElementType } from './StorageElementType-C7ETezlL.js';
|
|
6
6
|
|
|
@@ -126,6 +126,42 @@ declare class GameUnifier {
|
|
|
126
126
|
* @template T - The type of Pixi’VN component(s) being animated.
|
|
127
127
|
*/
|
|
128
128
|
animate: <T extends CanvasBaseInterface<any>>(components: T | string | (string | T)[], keyframes: any, options?: any, priority?: UPDATE_PRIORITY) => string | undefined;
|
|
129
|
+
/**
|
|
130
|
+
* This function is called to animate either a `Filter`'s own properties, or a plain numeric
|
|
131
|
+
* "progress" value with no live target (as opposed to {@link animate}, which animates a canvas
|
|
132
|
+
* element's properties). The latter is the generic mechanism behind the mask-based transitions
|
|
133
|
+
* (wipe/iris/split): they have no canvas element or Filter property to write directly, just a
|
|
134
|
+
* number and a side effect.
|
|
135
|
+
* @param components - The canvas element alias(es) the filter is attached to, or otherwise
|
|
136
|
+
* associated with this animation (kept alive/cleaned up alongside them), not the animation
|
|
137
|
+
* target itself.
|
|
138
|
+
* @param filter - The `Filter` instance to animate, or `undefined` to animate a plain value
|
|
139
|
+
* instead (in which case `keyframes` describes that value, e.g. `{ value: [0, 1] }`, and `apply`
|
|
140
|
+
* is required).
|
|
141
|
+
* @param keyframes - The keyframes to animate the filter's properties (or the plain value) with.
|
|
142
|
+
* @param options - Additional options for the animation, including duration, easing, and ticker.
|
|
143
|
+
* @param priority - The priority of the ticker. @default UPDATE_PRIORITY.NORMAL
|
|
144
|
+
* @param apply - Called on every frame with the current interpolated value - required when
|
|
145
|
+
* `filter` is `undefined`, ignored otherwise.
|
|
146
|
+
* @param cleanup - Called once, right before completion handling, to detach/destroy the filter or
|
|
147
|
+
* tear down whatever `apply` was driving.
|
|
148
|
+
* @returns The id of the ticker.
|
|
149
|
+
*/
|
|
150
|
+
animateFilter: (components: string | string[], filter: Filter | undefined, keyframes: any, options?: any, priority?: UPDATE_PRIORITY, apply?: (value: number) => void, cleanup?: () => void) => string | undefined;
|
|
151
|
+
/**
|
|
152
|
+
* This function removes one or more canvas components by alias. Used by the `tickers` module's
|
|
153
|
+
* `onComplete` to honor `aliasToRemoveAfter` without importing `@drincs/pixi-vn/canvas` directly
|
|
154
|
+
* (which would close an import cycle, since `canvas` depends on `tickers`).
|
|
155
|
+
* @param alias - The alias(es) of the canvas component(s) to remove.
|
|
156
|
+
*/
|
|
157
|
+
removeCanvasComponent: (alias: string | string[]) => void;
|
|
158
|
+
/**
|
|
159
|
+
* This function checks whether a canvas component with the given alias currently exists. Used by
|
|
160
|
+
* the `tickers` module to prune ticker/alias associations for components no longer on the canvas,
|
|
161
|
+
* without importing `@drincs/pixi-vn/canvas` directly (see {@link removeCanvasComponent}).
|
|
162
|
+
* @param alias - The alias of the canvas component to check.
|
|
163
|
+
*/
|
|
164
|
+
canvasComponentExists: (alias: string) => boolean;
|
|
129
165
|
}): void;
|
|
130
166
|
private static _navigate;
|
|
131
167
|
/**
|
|
@@ -309,6 +345,26 @@ declare class GameUnifier {
|
|
|
309
345
|
* @template T - The type of Pixi’VN component(s) being animated.
|
|
310
346
|
*/
|
|
311
347
|
static get animate(): <T extends CanvasBaseInterface<any>>(components: T | string | (string | T)[], keyframes: any, options?: any, priority?: UPDATE_PRIORITY) => string | undefined;
|
|
348
|
+
private static _animateFilter;
|
|
349
|
+
/**
|
|
350
|
+
* This function is called to animate a `Filter`'s own properties, or a plain numeric "progress"
|
|
351
|
+
* value when no `filter` is given. See {@link animate} for animating a canvas element's properties
|
|
352
|
+
* instead.
|
|
353
|
+
* @returns The id of the ticker.
|
|
354
|
+
*/
|
|
355
|
+
static get animateFilter(): (components: string | string[], filter: Filter | undefined, keyframes: any, options?: any, priority?: UPDATE_PRIORITY, apply?: (value: number) => void, cleanup?: () => void) => string | undefined;
|
|
356
|
+
private static _removeCanvasComponent;
|
|
357
|
+
/**
|
|
358
|
+
* Removes one or more canvas components by alias. See the `removeCanvasComponent` option of
|
|
359
|
+
* {@link init} for why this exists.
|
|
360
|
+
*/
|
|
361
|
+
static get removeCanvasComponent(): (alias: string | string[]) => void;
|
|
362
|
+
private static _canvasComponentExists;
|
|
363
|
+
/**
|
|
364
|
+
* Checks whether a canvas component with the given alias currently exists. See the
|
|
365
|
+
* `canvasComponentExists` option of {@link init} for why this exists.
|
|
366
|
+
*/
|
|
367
|
+
static get canvasComponentExists(): (alias: string) => boolean;
|
|
312
368
|
}
|
|
313
369
|
|
|
314
370
|
declare class PixiError extends Error {
|
package/dist/core.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{c as GameUnifier,a as PixiError}from'./chunk-
|
|
1
|
+
export{c as GameUnifier,a as PixiError}from'./chunk-LXIKP2K5.mjs';
|
package/dist/filters.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var core=require('@drincs/pixi-vn/core'),pixi_js=require('@drincs/pixi-vn/pixi.js'),pixiFilters=require('pixi-filters');var Kt=Object.defineProperty;var Ut=t=>{throw TypeError(t)};var $t=(t,i,s)=>i in t?Kt(t,i,{enumerable:true,configurable:true,writable:true,value:s}):t[i]=s;var C=(t,i,s)=>$t(t,typeof i!="symbol"?i+"":i,s),Et=(t,i,s)=>i.has(t)||Ut("Cannot "+s);var e=(t,i,s)=>(Et(t,i,"read from private field"),s?s.call(t):i.get(t)),f=(t,i,s)=>i.has(t)?Ut("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(t):i.set(t,s),u=(t,i,s,o)=>(Et(t,i,"write to private field"),i.set(t,s),s),d=(t,i,s)=>(Et(t,i,"access private method"),s);var Tt=(t,i,s,o)=>({set _(r){u(t,i,r);},get _(){return e(t,i,o)}});var Zt=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,Pt=new Set,Dt=typeof process=="object"&&process?process:{},Xt=(t,i,s,o)=>{typeof Dt.emitWarning=="function"?Dt.emitWarning(t,i,s,o):console.error(`[${s}] ${i}: ${t}`);},Mt=globalThis.AbortController,jt=globalThis.AbortSignal;if(typeof Mt>"u"){jt=class{onabort;_onabort=[];reason;aborted=false;addEventListener(s,o){this._onabort.push(o);}},Mt=class{constructor(){i();}signal=new jt;abort(s){if(!this.signal.aborted){this.signal.reason=s,this.signal.aborted=true;for(let o of this.signal._onabort)o(s);this.signal.onabort?.(s);}}};let t=Dt.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",i=()=>{t&&(t=false,Xt("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",i));};}var Jt=t=>!Pt.has(t);var it=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),It=t=>it(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?zt:null:null,zt=class extends Array{constructor(t){super(t),this.fill(0);}},Q,pt,Qt=(Q=class{heap;length;static create(i){let s=It(i);if(!s)return [];u(Q,pt,true);let o=new Q(i,s);return u(Q,pt,false),o}constructor(i,s){if(!e(Q,pt))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new s(i),this.length=0;}push(i){this.heap[this.length++]=i;}pop(){return this.heap[--this.length]}},pt=new WeakMap,f(Q,pt,false),Q),Yt,Nt,P,W,X,at,I,mt,Ft,H,T,q,_,b,g,B,L,R,z,V,O,K,$,U,j,Z,nt,G,yt,l,Bt,lt,tt,xt,Y,qt,ht,ft,_t,st,ot,Gt,Ot,Ct,S,kt,At,rt,Wt,wt,Ht=(wt=class{constructor(i){f(this,l);f(this,P);f(this,W);f(this,X);f(this,at);f(this,I);f(this,mt);f(this,Ft);f(this,H);C(this,"ttl");C(this,"ttlResolution");C(this,"ttlAutopurge");C(this,"updateAgeOnGet");C(this,"updateAgeOnHas");C(this,"allowStale");C(this,"noDisposeOnSet");C(this,"noUpdateTTL");C(this,"maxEntrySize");C(this,"sizeCalculation");C(this,"noDeleteOnFetchRejection");C(this,"noDeleteOnStaleGet");C(this,"allowStaleOnFetchAbort");C(this,"allowStaleOnFetchRejection");C(this,"ignoreFetchAbort");f(this,T);f(this,q);f(this,_);f(this,b);f(this,g);f(this,B);f(this,L);f(this,R);f(this,z);f(this,V);f(this,O);f(this,K);f(this,$);f(this,U);f(this,j);f(this,Z);f(this,nt);f(this,G);f(this,yt);f(this,lt,()=>{});f(this,tt,()=>{});f(this,xt,()=>{});f(this,Y,()=>false);f(this,ht,i=>{});f(this,ft,(i,s,o)=>{});f(this,_t,(i,s,o,r)=>{if(o||r)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});C(this,Yt,"LRUCache");let{max:s=0,ttl:o,ttlResolution:r=1,ttlAutopurge:a,updateAgeOnGet:n,updateAgeOnHas:c,allowStale:h,dispose:p,onInsert:w,disposeAfter:y,noDisposeOnSet:et,noUpdateTTL:N,maxSize:J=0,maxEntrySize:A=0,sizeCalculation:v,fetchMethod:m,memoMethod:E,noDeleteOnFetchRejection:k,noDeleteOnStaleGet:D,allowStaleOnFetchRejection:x,allowStaleOnFetchAbort:bt,ignoreFetchAbort:ct,perf:ut}=i;if(ut!==void 0&&typeof ut?.now!="function")throw new TypeError("perf option must have a now() method if specified");if(u(this,H,ut??Zt),s!==0&&!it(s))throw new TypeError("max option must be a nonnegative integer");let gt=s?It(s):Array;if(!gt)throw new Error("invalid max value: "+s);if(u(this,P,s),u(this,W,J),this.maxEntrySize=A||e(this,W),this.sizeCalculation=v,this.sizeCalculation){if(!e(this,W)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(E!==void 0&&typeof E!="function")throw new TypeError("memoMethod must be a function if defined");if(u(this,Ft,E),m!==void 0&&typeof m!="function")throw new TypeError("fetchMethod must be a function if specified");if(u(this,mt,m),u(this,nt,!!m),u(this,_,new Map),u(this,b,new Array(s).fill(void 0)),u(this,g,new Array(s).fill(void 0)),u(this,B,new gt(s)),u(this,L,new gt(s)),u(this,R,0),u(this,z,0),u(this,V,Qt.create(s)),u(this,T,0),u(this,q,0),typeof p=="function"&&u(this,X,p),typeof w=="function"&&u(this,at,w),typeof y=="function"?(u(this,I,y),u(this,O,[])):(u(this,I,void 0),u(this,O,void 0)),u(this,Z,!!e(this,X)),u(this,yt,!!e(this,at)),u(this,G,!!e(this,I)),this.noDisposeOnSet=!!et,this.noUpdateTTL=!!N,this.noDeleteOnFetchRejection=!!k,this.allowStaleOnFetchRejection=!!x,this.allowStaleOnFetchAbort=!!bt,this.ignoreFetchAbort=!!ct,this.maxEntrySize!==0){if(e(this,W)!==0&&!it(e(this,W)))throw new TypeError("maxSize must be a positive integer if specified");if(!it(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");d(this,l,qt).call(this);}if(this.allowStale=!!h,this.noDeleteOnStaleGet=!!D,this.updateAgeOnGet=!!n,this.updateAgeOnHas=!!c,this.ttlResolution=it(r)||r===0?r:1,this.ttlAutopurge=!!a,this.ttl=o||0,this.ttl){if(!it(this.ttl))throw new TypeError("ttl must be a positive integer if specified");d(this,l,Bt).call(this);}if(e(this,P)===0&&this.ttl===0&&e(this,W)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!e(this,P)&&!e(this,W)){let Rt="LRU_CACHE_UNBOUNDED";Jt(Rt)&&(Pt.add(Rt),Xt("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",Rt,wt));}}get perf(){return e(this,H)}static unsafeExposeInternals(i){return {starts:e(i,$),ttls:e(i,U),autopurgeTimers:e(i,j),sizes:e(i,K),keyMap:e(i,_),keyList:e(i,b),valList:e(i,g),next:e(i,B),prev:e(i,L),get head(){return e(i,R)},get tail(){return e(i,z)},free:e(i,V),isBackgroundFetch:s=>{var o;return d(o=i,l,S).call(o,s)},backgroundFetch:(s,o,r,a)=>{var n;return d(n=i,l,Ct).call(n,s,o,r,a)},moveToTail:s=>{var o;return d(o=i,l,At).call(o,s)},indexes:s=>{var o;return d(o=i,l,st).call(o,s)},rindexes:s=>{var o;return d(o=i,l,ot).call(o,s)},isStale:s=>{var o;return e(o=i,Y).call(o,s)}}}get max(){return e(this,P)}get maxSize(){return e(this,W)}get calculatedSize(){return e(this,q)}get size(){return e(this,T)}get fetchMethod(){return e(this,mt)}get memoMethod(){return e(this,Ft)}get dispose(){return e(this,X)}get onInsert(){return e(this,at)}get disposeAfter(){return e(this,I)}getRemainingTTL(i){return e(this,_).has(i)?1/0:0}*entries(){for(let i of d(this,l,st).call(this))e(this,g)[i]!==void 0&&e(this,b)[i]!==void 0&&!d(this,l,S).call(this,e(this,g)[i])&&(yield [e(this,b)[i],e(this,g)[i]]);}*rentries(){for(let i of d(this,l,ot).call(this))e(this,g)[i]!==void 0&&e(this,b)[i]!==void 0&&!d(this,l,S).call(this,e(this,g)[i])&&(yield [e(this,b)[i],e(this,g)[i]]);}*keys(){for(let i of d(this,l,st).call(this)){let s=e(this,b)[i];s!==void 0&&!d(this,l,S).call(this,e(this,g)[i])&&(yield s);}}*rkeys(){for(let i of d(this,l,ot).call(this)){let s=e(this,b)[i];s!==void 0&&!d(this,l,S).call(this,e(this,g)[i])&&(yield s);}}*values(){for(let i of d(this,l,st).call(this))e(this,g)[i]!==void 0&&!d(this,l,S).call(this,e(this,g)[i])&&(yield e(this,g)[i]);}*rvalues(){for(let i of d(this,l,ot).call(this))e(this,g)[i]!==void 0&&!d(this,l,S).call(this,e(this,g)[i])&&(yield e(this,g)[i]);}[(Nt=Symbol.iterator,Yt=Symbol.toStringTag,Nt)](){return this.entries()}find(i,s={}){for(let o of d(this,l,st).call(this)){let r=e(this,g)[o],a=d(this,l,S).call(this,r)?r.__staleWhileFetching:r;if(a!==void 0&&i(a,e(this,b)[o],this))return this.get(e(this,b)[o],s)}}forEach(i,s=this){for(let o of d(this,l,st).call(this)){let r=e(this,g)[o],a=d(this,l,S).call(this,r)?r.__staleWhileFetching:r;a!==void 0&&i.call(s,a,e(this,b)[o],this);}}rforEach(i,s=this){for(let o of d(this,l,ot).call(this)){let r=e(this,g)[o],a=d(this,l,S).call(this,r)?r.__staleWhileFetching:r;a!==void 0&&i.call(s,a,e(this,b)[o],this);}}purgeStale(){let i=false;for(let s of d(this,l,ot).call(this,{allowStale:true}))e(this,Y).call(this,s)&&(d(this,l,rt).call(this,e(this,b)[s],"expire"),i=true);return i}info(i){let s=e(this,_).get(i);if(s===void 0)return;let o=e(this,g)[s],r=d(this,l,S).call(this,o)?o.__staleWhileFetching:o;if(r===void 0)return;let a={value:r};if(e(this,U)&&e(this,$)){let n=e(this,U)[s],c=e(this,$)[s];if(n&&c){let h=n-(e(this,H).now()-c);a.ttl=h,a.start=Date.now();}}return e(this,K)&&(a.size=e(this,K)[s]),a}dump(){let i=[];for(let s of d(this,l,st).call(this,{allowStale:true})){let o=e(this,b)[s],r=e(this,g)[s],a=d(this,l,S).call(this,r)?r.__staleWhileFetching:r;if(a===void 0||o===void 0)continue;let n={value:a};if(e(this,U)&&e(this,$)){n.ttl=e(this,U)[s];let c=e(this,H).now()-e(this,$)[s];n.start=Math.floor(Date.now()-c);}e(this,K)&&(n.size=e(this,K)[s]),i.unshift([o,n]);}return i}load(i){this.clear();for(let[s,o]of i){if(o.start){let r=Date.now()-o.start;o.start=e(this,H).now()-r;}this.set(s,o.value,o);}}set(i,s,o={}){var et,N,J,A;if(s===void 0)return this.delete(i),this;let{ttl:r=this.ttl,start:a,noDisposeOnSet:n=this.noDisposeOnSet,sizeCalculation:c=this.sizeCalculation,status:h}=o,{noUpdateTTL:p=this.noUpdateTTL}=o,w=e(this,_t).call(this,i,s,o.size||0,c);if(this.maxEntrySize&&w>this.maxEntrySize)return h&&(h.set="miss",h.maxEntrySizeExceeded=true),d(this,l,rt).call(this,i,"set"),this;let y=e(this,T)===0?void 0:e(this,_).get(i);if(y===void 0)y=e(this,T)===0?e(this,z):e(this,V).length!==0?e(this,V).pop():e(this,T)===e(this,P)?d(this,l,Ot).call(this,false):e(this,T),e(this,b)[y]=i,e(this,g)[y]=s,e(this,_).set(i,y),e(this,B)[e(this,z)]=y,e(this,L)[y]=e(this,z),u(this,z,y),Tt(this,T)._++,e(this,ft).call(this,y,w,h),h&&(h.set="add"),p=false,e(this,yt)&&((et=e(this,at))==null||et.call(this,s,i,"add"));else {d(this,l,At).call(this,y);let v=e(this,g)[y];if(s!==v){if(e(this,nt)&&d(this,l,S).call(this,v)){v.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:m}=v;m!==void 0&&!n&&(e(this,Z)&&((N=e(this,X))==null||N.call(this,m,i,"set")),e(this,G)&&e(this,O)?.push([m,i,"set"]));}else n||(e(this,Z)&&((J=e(this,X))==null||J.call(this,v,i,"set")),e(this,G)&&e(this,O)?.push([v,i,"set"]));if(e(this,ht).call(this,y),e(this,ft).call(this,y,w,h),e(this,g)[y]=s,h){h.set="replace";let m=v&&d(this,l,S).call(this,v)?v.__staleWhileFetching:v;m!==void 0&&(h.oldValue=m);}}else h&&(h.set="update");e(this,yt)&&this.onInsert?.(s,i,s===v?"update":"replace");}if(r!==0&&!e(this,U)&&d(this,l,Bt).call(this),e(this,U)&&(p||e(this,xt).call(this,y,r,a),h&&e(this,tt).call(this,h,y)),!n&&e(this,G)&&e(this,O)){let v=e(this,O),m;for(;m=v?.shift();)(A=e(this,I))==null||A.call(this,...m);}return this}pop(){var i;try{for(;e(this,T);){let s=e(this,g)[e(this,R)];if(d(this,l,Ot).call(this,!0),d(this,l,S).call(this,s)){if(s.__staleWhileFetching)return s.__staleWhileFetching}else if(s!==void 0)return s}}finally{if(e(this,G)&&e(this,O)){let s=e(this,O),o;for(;o=s?.shift();)(i=e(this,I))==null||i.call(this,...o);}}}has(i,s={}){let{updateAgeOnHas:o=this.updateAgeOnHas,status:r}=s,a=e(this,_).get(i);if(a!==void 0){let n=e(this,g)[a];if(d(this,l,S).call(this,n)&&n.__staleWhileFetching===void 0)return false;if(e(this,Y).call(this,a))r&&(r.has="stale",e(this,tt).call(this,r,a));else return o&&e(this,lt).call(this,a),r&&(r.has="hit",e(this,tt).call(this,r,a)),true}else r&&(r.has="miss");return false}peek(i,s={}){let{allowStale:o=this.allowStale}=s,r=e(this,_).get(i);if(r===void 0||!o&&e(this,Y).call(this,r))return;let a=e(this,g)[r];return d(this,l,S).call(this,a)?a.__staleWhileFetching:a}async fetch(i,s={}){let{allowStale:o=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:a=this.noDeleteOnStaleGet,ttl:n=this.ttl,noDisposeOnSet:c=this.noDisposeOnSet,size:h=0,sizeCalculation:p=this.sizeCalculation,noUpdateTTL:w=this.noUpdateTTL,noDeleteOnFetchRejection:y=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:et=this.allowStaleOnFetchRejection,ignoreFetchAbort:N=this.ignoreFetchAbort,allowStaleOnFetchAbort:J=this.allowStaleOnFetchAbort,context:A,forceRefresh:v=false,status:m,signal:E}=s;if(!e(this,nt))return m&&(m.fetch="get"),this.get(i,{allowStale:o,updateAgeOnGet:r,noDeleteOnStaleGet:a,status:m});let k={allowStale:o,updateAgeOnGet:r,noDeleteOnStaleGet:a,ttl:n,noDisposeOnSet:c,size:h,sizeCalculation:p,noUpdateTTL:w,noDeleteOnFetchRejection:y,allowStaleOnFetchRejection:et,allowStaleOnFetchAbort:J,ignoreFetchAbort:N,status:m,signal:E},D=e(this,_).get(i);if(D===void 0){m&&(m.fetch="miss");let x=d(this,l,Ct).call(this,i,D,k,A);return x.__returned=x}else {let x=e(this,g)[D];if(d(this,l,S).call(this,x)){let gt=o&&x.__staleWhileFetching!==void 0;return m&&(m.fetch="inflight",gt&&(m.returnedStale=true)),gt?x.__staleWhileFetching:x.__returned=x}let bt=e(this,Y).call(this,D);if(!v&&!bt)return m&&(m.fetch="hit"),d(this,l,At).call(this,D),r&&e(this,lt).call(this,D),m&&e(this,tt).call(this,m,D),x;let ct=d(this,l,Ct).call(this,i,D,k,A),ut=ct.__staleWhileFetching!==void 0&&o;return m&&(m.fetch=bt?"stale":"refresh",ut&&bt&&(m.returnedStale=true)),ut?ct.__staleWhileFetching:ct.__returned=ct}}async forceFetch(i,s={}){let o=await this.fetch(i,s);if(o===void 0)throw new Error("fetch() returned undefined");return o}memo(i,s={}){let o=e(this,Ft);if(!o)throw new Error("no memoMethod provided to constructor");let{context:r,forceRefresh:a,...n}=s,c=this.get(i,n);if(!a&&c!==void 0)return c;let h=o(i,c,{options:n,context:r});return this.set(i,h,n),h}get(i,s={}){let{allowStale:o=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:a=this.noDeleteOnStaleGet,status:n}=s,c=e(this,_).get(i);if(c!==void 0){let h=e(this,g)[c],p=d(this,l,S).call(this,h);return n&&e(this,tt).call(this,n,c),e(this,Y).call(this,c)?(n&&(n.get="stale"),p?(n&&o&&h.__staleWhileFetching!==void 0&&(n.returnedStale=true),o?h.__staleWhileFetching:void 0):(a||d(this,l,rt).call(this,i,"expire"),n&&o&&(n.returnedStale=true),o?h:void 0)):(n&&(n.get="hit"),p?h.__staleWhileFetching:(d(this,l,At).call(this,c),r&&e(this,lt).call(this,c),h))}else n&&(n.get="miss");}delete(i){return d(this,l,rt).call(this,i,"delete")}clear(){return d(this,l,Wt).call(this,"delete")}},P=new WeakMap,W=new WeakMap,X=new WeakMap,at=new WeakMap,I=new WeakMap,mt=new WeakMap,Ft=new WeakMap,H=new WeakMap,T=new WeakMap,q=new WeakMap,_=new WeakMap,b=new WeakMap,g=new WeakMap,B=new WeakMap,L=new WeakMap,R=new WeakMap,z=new WeakMap,V=new WeakMap,O=new WeakMap,K=new WeakMap,$=new WeakMap,U=new WeakMap,j=new WeakMap,Z=new WeakMap,nt=new WeakMap,G=new WeakMap,yt=new WeakMap,l=new WeakSet,Bt=function(){let i=new zt(e(this,P)),s=new zt(e(this,P));u(this,U,i),u(this,$,s);let o=this.ttlAutopurge?new Array(e(this,P)):void 0;u(this,j,o),u(this,xt,(c,h,p=e(this,H).now())=>{s[c]=h!==0?p:0,i[c]=h,r(c,h);}),u(this,lt,c=>{s[c]=i[c]!==0?e(this,H).now():0,r(c,i[c]);});let r=this.ttlAutopurge?(c,h)=>{if(o?.[c]&&(clearTimeout(o[c]),o[c]=void 0),h&&h!==0&&o){let p=setTimeout(()=>{e(this,Y).call(this,c)&&d(this,l,rt).call(this,e(this,b)[c],"expire");},h+1);p.unref&&p.unref(),o[c]=p;}}:()=>{};u(this,tt,(c,h)=>{if(i[h]){let p=i[h],w=s[h];if(!p||!w)return;c.ttl=p,c.start=w,c.now=a||n();let y=c.now-w;c.remainingTTL=p-y;}});let a=0,n=()=>{let c=e(this,H).now();if(this.ttlResolution>0){a=c;let h=setTimeout(()=>a=0,this.ttlResolution);h.unref&&h.unref();}return c};this.getRemainingTTL=c=>{let h=e(this,_).get(c);if(h===void 0)return 0;let p=i[h],w=s[h];if(!p||!w)return 1/0;let y=(a||n())-w;return p-y},u(this,Y,c=>{let h=s[c],p=i[c];return !!p&&!!h&&(a||n())-h>p});},lt=new WeakMap,tt=new WeakMap,xt=new WeakMap,Y=new WeakMap,qt=function(){let i=new zt(e(this,P));u(this,q,0),u(this,K,i),u(this,ht,s=>{u(this,q,e(this,q)-i[s]),i[s]=0;}),u(this,_t,(s,o,r,a)=>{if(d(this,l,S).call(this,o))return 0;if(!it(r))if(a){if(typeof a!="function")throw new TypeError("sizeCalculation must be a function");if(r=a(o,s),!it(r))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return r}),u(this,ft,(s,o,r)=>{if(i[s]=o,e(this,W)){let a=e(this,W)-i[s];for(;e(this,q)>a;)d(this,l,Ot).call(this,true);}u(this,q,e(this,q)+i[s]),r&&(r.entrySize=o,r.totalCalculatedSize=e(this,q));});},ht=new WeakMap,ft=new WeakMap,_t=new WeakMap,st=function*({allowStale:i=this.allowStale}={}){if(e(this,T))for(let s=e(this,z);!(!d(this,l,Gt).call(this,s)||((i||!e(this,Y).call(this,s))&&(yield s),s===e(this,R)));)s=e(this,L)[s];},ot=function*({allowStale:i=this.allowStale}={}){if(e(this,T))for(let s=e(this,R);!(!d(this,l,Gt).call(this,s)||((i||!e(this,Y).call(this,s))&&(yield s),s===e(this,z)));)s=e(this,B)[s];},Gt=function(i){return i!==void 0&&e(this,_).get(e(this,b)[i])===i},Ot=function(i){var a;let s=e(this,R),o=e(this,b)[s],r=e(this,g)[s];return e(this,nt)&&d(this,l,S).call(this,r)?r.__abortController.abort(new Error("evicted")):(e(this,Z)||e(this,G))&&(e(this,Z)&&((a=e(this,X))==null||a.call(this,r,o,"evict")),e(this,G)&&e(this,O)?.push([r,o,"evict"])),e(this,ht).call(this,s),e(this,j)?.[s]&&(clearTimeout(e(this,j)[s]),e(this,j)[s]=void 0),i&&(e(this,b)[s]=void 0,e(this,g)[s]=void 0,e(this,V).push(s)),e(this,T)===1?(u(this,R,u(this,z,0)),e(this,V).length=0):u(this,R,e(this,B)[s]),e(this,_).delete(o),Tt(this,T)._--,s},Ct=function(i,s,o,r){let a=s===void 0?void 0:e(this,g)[s];if(d(this,l,S).call(this,a))return a;let n=new Mt,{signal:c}=o;c?.addEventListener("abort",()=>n.abort(c.reason),{signal:n.signal});let h={signal:n.signal,options:o,context:r},p=(A,v=false)=>{let{aborted:m}=n.signal,E=o.ignoreFetchAbort&&A!==void 0,k=o.ignoreFetchAbort||!!(o.allowStaleOnFetchAbort&&A!==void 0);if(o.status&&(m&&!v?(o.status.fetchAborted=true,o.status.fetchError=n.signal.reason,E&&(o.status.fetchAbortIgnored=true)):o.status.fetchResolved=true),m&&!E&&!v)return y(n.signal.reason,k);let D=N,x=e(this,g)[s];return (x===N||E&&v&&x===void 0)&&(A===void 0?D.__staleWhileFetching!==void 0?e(this,g)[s]=D.__staleWhileFetching:d(this,l,rt).call(this,i,"fetch"):(o.status&&(o.status.fetchUpdated=true),this.set(i,A,h.options))),A},w=A=>(o.status&&(o.status.fetchRejected=true,o.status.fetchError=A),y(A,false)),y=(A,v)=>{let{aborted:m}=n.signal,E=m&&o.allowStaleOnFetchAbort,k=E||o.allowStaleOnFetchRejection,D=k||o.noDeleteOnFetchRejection,x=N;if(e(this,g)[s]===N&&(!D||!v&&x.__staleWhileFetching===void 0?d(this,l,rt).call(this,i,"fetch"):E||(e(this,g)[s]=x.__staleWhileFetching)),k)return o.status&&x.__staleWhileFetching!==void 0&&(o.status.returnedStale=true),x.__staleWhileFetching;if(x.__returned===x)throw A},et=(A,v)=>{var E;let m=(E=e(this,mt))==null?void 0:E.call(this,i,a,h);m&&m instanceof Promise&&m.then(k=>A(k===void 0?void 0:k),v),n.signal.addEventListener("abort",()=>{(!o.ignoreFetchAbort||o.allowStaleOnFetchAbort)&&(A(void 0),o.allowStaleOnFetchAbort&&(A=k=>p(k,true)));});};o.status&&(o.status.fetchDispatched=true);let N=new Promise(et).then(p,w),J=Object.assign(N,{__abortController:n,__staleWhileFetching:a,__returned:void 0});return s===void 0?(this.set(i,J,{...h.options,status:void 0}),s=e(this,_).get(i)):e(this,g)[s]=J,J},S=function(i){if(!e(this,nt))return false;let s=i;return !!s&&s instanceof Promise&&s.hasOwnProperty("__staleWhileFetching")&&s.__abortController instanceof Mt},kt=function(i,s){e(this,L)[s]=i,e(this,B)[i]=s;},At=function(i){i!==e(this,z)&&(i===e(this,R)?u(this,R,e(this,B)[i]):d(this,l,kt).call(this,e(this,L)[i],e(this,B)[i]),d(this,l,kt).call(this,e(this,z),i),u(this,z,i));},rt=function(i,s){var r,a;let o=false;if(e(this,T)!==0){let n=e(this,_).get(i);if(n!==void 0)if(e(this,j)?.[n]&&(clearTimeout(e(this,j)?.[n]),e(this,j)[n]=void 0),o=true,e(this,T)===1)d(this,l,Wt).call(this,s);else {e(this,ht).call(this,n);let c=e(this,g)[n];if(d(this,l,S).call(this,c)?c.__abortController.abort(new Error("deleted")):(e(this,Z)||e(this,G))&&(e(this,Z)&&((r=e(this,X))==null||r.call(this,c,i,s)),e(this,G)&&e(this,O)?.push([c,i,s])),e(this,_).delete(i),e(this,b)[n]=void 0,e(this,g)[n]=void 0,n===e(this,z))u(this,z,e(this,L)[n]);else if(n===e(this,R))u(this,R,e(this,B)[n]);else {let h=e(this,L)[n];e(this,B)[h]=e(this,B)[n];let p=e(this,B)[n];e(this,L)[p]=e(this,L)[n];}Tt(this,T)._--,e(this,V).push(n);}}if(e(this,G)&&e(this,O)?.length){let n=e(this,O),c;for(;c=n?.shift();)(a=e(this,I))==null||a.call(this,...c);}return o},Wt=function(i){var s,o;for(let r of d(this,l,ot).call(this,{allowStale:true})){let a=e(this,g)[r];if(d(this,l,S).call(this,a))a.__abortController.abort(new Error("deleted"));else {let n=e(this,b)[r];e(this,Z)&&((s=e(this,X))==null||s.call(this,a,n,i)),e(this,G)&&e(this,O)?.push([a,n,i]);}}if(e(this,_).clear(),e(this,g).fill(void 0),e(this,b).fill(void 0),e(this,U)&&e(this,$)){e(this,U).fill(0),e(this,$).fill(0);for(let r of e(this,j)??[])r!==void 0&&clearTimeout(r);e(this,j)?.fill(void 0);}if(e(this,K)&&e(this,K).fill(0),u(this,R,0),u(this,z,0),e(this,V).length=0,u(this,q,0),u(this,T,0),e(this,G)&&e(this,O)){let r=e(this,O),a;for(;a=r?.shift();)(o=e(this,I))==null||o.call(this,...a);}},wt);var vt=class{cache;map=new Map;constructor(i){this.cache=new Ht({max:i.cacheSize}),this.map=new Map;}get[Symbol.iterator](){return this.map[Symbol.iterator]}get[Symbol.toStringTag](){return this.map[Symbol.toStringTag]}clear(){this.cache.clear(),this.map.clear();}delete(i){let s=this.map.delete(i);return s&&this.cache.delete(i),s}get forEach(){return this.map.forEach}get(i){let s=this.cache.get(i);return s||this.map.get(i)}has(i){return this.map.has(i)}set(i,s){return this.map.set(i,s),this.cache.set(i,s),this}get size(){return this.map.size}entries(){return this.map.entries()}keys(){return this.map.keys()}values(){return this.map.values()}};var dt;(r=>(r.log=(a,...n)=>console.log(`[Pixi\u2019VN] ${a}`,...n),r.warn=(a,...n)=>console.warn(`[Pixi\u2019VN] ${a}`,...n),r.error=(a,...n)=>console.error(`[Pixi\u2019VN] ${a}`,...n),r.info=(a,...n)=>console.info(`[Pixi\u2019VN] ${a}`,...n)))(dt||={});var St=new vt({cacheSize:5}),Vt=new vt({cacheSize:5});function te(t){return i=>{Lt.add(i,t);}}var Lt;(c=>{function t(h,p){let{toMemory:w}=p,y=p.name??h.name;St.get(y)&&dt.info(`Filter "${y}" already exists, it will be overwritten`),h.prototype.pixivnFilterId=y,St.set(y,h),Vt.set(y,w);}c.add=t;function i(h){let p=St.get(h);if(!p){dt.error(`Filter "${h}" not found, did you forget to register it with the filterDecorator?`);return}return p}c.get=i;function s(h,p){let w=i(h);if(w)try{return new w(p)}catch(y){dt.error(`Error while getting Filter instance "${h}"`,y);return}}c.getInstance=s;function o(h,p){let w=Vt.get(h);if(!w){dt.error(`Filter "${h}" not found, did you forget to register it with the filterDecorator?`);return}try{return {filterId:h,args:w(p)}}catch(y){dt.error(`Error while converting Filter "${h}" to memory`,y);return}}c.toMemory=o;function r(){return Array.from(St.values())}c.values=r;function a(h){return St.has(h)}c.has=a;function n(){return Array.from(St.keys())}c.keys=n;})(Lt||={});var F=Lt;function M(t,i){return {x:t,y:i}}F.add(pixi_js.BlurFilter,{name:"BlurFilter",toMemory:t=>({strengthX:t.strengthX,strengthY:t.strengthY,quality:t.quality,repeatEdgePixels:t.repeatEdgePixels})});F.add(pixi_js.AlphaFilter,{name:"AlphaFilter",toMemory:t=>({alpha:t.alpha})});F.add(pixi_js.NoiseFilter,{name:"NoiseFilter",toMemory:t=>({noise:t.noise,seed:t.seed})});F.add(pixiFilters.PixelateFilter,{name:"PixelateFilter",toMemory:t=>[t.sizeX,t.sizeY]});F.add(pixiFilters.AdjustmentFilter,{name:"AdjustmentFilter",toMemory:t=>({gamma:t.gamma,contrast:t.contrast,saturation:t.saturation,brightness:t.brightness,red:t.red,green:t.green,blue:t.blue,alpha:t.alpha})});F.add(pixiFilters.AdvancedBloomFilter,{name:"AdvancedBloomFilter",toMemory:t=>({threshold:t.threshold,bloomScale:t.bloomScale,brightness:t.brightness,blur:t.blur,kernels:t.kernels,quality:t.quality,pixelSize:M(t.pixelSizeX,t.pixelSizeY)})});F.add(pixiFilters.AsciiFilter,{name:"AsciiFilter",toMemory:t=>({size:t.size,color:t.color,replaceColor:t.replaceColor})});F.add(pixiFilters.BackdropBlurFilter,{name:"BackdropBlurFilter",toMemory:t=>({strength:t.strength,quality:t.quality})});F.add(pixiFilters.BevelFilter,{name:"BevelFilter",toMemory:t=>({rotation:t.rotation,thickness:t.thickness,lightColor:t.lightColor,lightAlpha:t.lightAlpha,shadowColor:t.shadowColor,shadowAlpha:t.shadowAlpha})});F.add(pixiFilters.BloomFilter,{name:"BloomFilter",toMemory:t=>({strength:M(t.strengthX,t.strengthY)})});F.add(pixiFilters.BulgePinchFilter,{name:"BulgePinchFilter",toMemory:t=>({center:M(t.centerX,t.centerY),radius:t.radius,strength:t.strength})});F.add(pixiFilters.ColorGradientFilter,{name:"ColorGradientFilter",toMemory:t=>({type:t.type,stops:t.stops,angle:t.angle,alpha:t.alpha,maxColors:t.maxColors,replace:t.replace})});F.add(pixiFilters.ColorOverlayFilter,{name:"ColorOverlayFilter",toMemory:t=>({color:t.color,alpha:t.alpha})});F.add(pixiFilters.ColorReplaceFilter,{name:"ColorReplaceFilter",toMemory:t=>({originalColor:t.originalColor,targetColor:t.targetColor,tolerance:t.tolerance})});F.add(pixiFilters.ConvolutionFilter,{name:"ConvolutionFilter",toMemory:t=>({matrix:t.matrix,width:t.width,height:t.height})});F.add(pixiFilters.CrossHatchFilter,{name:"CrossHatchFilter",toMemory:()=>({})});F.add(pixiFilters.CRTFilter,{name:"CRTFilter",toMemory:t=>({curvature:t.curvature,lineWidth:t.lineWidth,lineContrast:t.lineContrast,verticalLine:t.verticalLine,noise:t.noise,noiseSize:t.noiseSize,vignetting:t.vignetting,vignettingAlpha:t.vignettingAlpha,vignettingBlur:t.vignettingBlur,seed:t.seed,time:t.time})});F.add(pixiFilters.DotFilter,{name:"DotFilter",toMemory:t=>({scale:t.scale,angle:t.angle,grayscale:t.grayscale})});F.add(pixiFilters.DropShadowFilter,{name:"DropShadowFilter",toMemory:t=>({offset:M(t.offsetX,t.offsetY),color:t.color,alpha:t.alpha,shadowOnly:t.shadowOnly,blur:t.blur,quality:t.quality,kernels:t.kernels,pixelSize:M(t.pixelSizeX,t.pixelSizeY)})});F.add(pixiFilters.EmbossFilter,{name:"EmbossFilter",toMemory:t=>t.strength});F.add(pixiFilters.GlitchFilter,{name:"GlitchFilter",toMemory:t=>({slices:t.slices,offset:t.offset,direction:t.direction,fillMode:t.fillMode,seed:t.seed,average:t.average,minSize:t.minSize,sampleSize:t.sampleSize,red:t.red,green:t.green,blue:t.blue})});F.add(pixiFilters.GlowFilter,{name:"GlowFilter",toMemory:t=>({distance:t.distance,outerStrength:t.outerStrength,innerStrength:t.innerStrength,color:t.color,alpha:t.alpha,quality:t.quality,knockout:t.knockout})});F.add(pixiFilters.GodrayFilter,{name:"GodrayFilter",toMemory:t=>({angle:t.angle,parallel:t.parallel,center:M(t.centerX,t.centerY),gain:t.gain,lacunarity:t.lacunarity,time:t.time,alpha:t.alpha})});F.add(pixiFilters.GrayscaleFilter,{name:"GrayscaleFilter",toMemory:()=>({})});F.add(pixiFilters.HslAdjustmentFilter,{name:"HslAdjustmentFilter",toMemory:t=>({hue:t.hue,saturation:t.saturation,lightness:t.lightness,colorize:t.colorize,alpha:t.alpha})});F.add(pixiFilters.KawaseBlurFilter,{name:"KawaseBlurFilter",toMemory:t=>({strength:t.strength,quality:t.quality,pixelSize:M(t.pixelSizeX,t.pixelSizeY)})});F.add(pixiFilters.MotionBlurFilter,{name:"MotionBlurFilter",toMemory:t=>({velocity:M(t.velocityX,t.velocityY),kernelSize:t.kernelSize,offset:t.offset})});F.add(pixiFilters.MultiColorReplaceFilter,{name:"MultiColorReplaceFilter",toMemory:t=>({replacements:t.replacements,tolerance:t.tolerance})});F.add(pixiFilters.OldFilmFilter,{name:"OldFilmFilter",toMemory:t=>({sepia:t.sepia,noise:t.noise,noiseSize:t.noiseSize,scratch:t.scratch,scratchDensity:t.scratchDensity,scratchWidth:t.scratchWidth,vignetting:t.vignetting,vignettingAlpha:t.vignettingAlpha,vignettingBlur:t.vignettingBlur,seed:t.seed})});F.add(pixiFilters.OutlineFilter,{name:"OutlineFilter",toMemory:t=>({thickness:t.thickness,color:t.color,alpha:t.alpha,quality:t.quality,knockout:t.knockout})});F.add(pixiFilters.RadialBlurFilter,{name:"RadialBlurFilter",toMemory:t=>({angle:t.angle,center:M(t.centerX,t.centerY),kernelSize:t.kernelSize,radius:t.radius})});F.add(pixiFilters.ReflectionFilter,{name:"ReflectionFilter",toMemory:t=>({mirror:t.mirror,boundary:t.boundary,amplitude:t.amplitude,waveLength:t.waveLength,alpha:t.alpha,time:t.time})});F.add(pixiFilters.RGBSplitFilter,{name:"RGBSplitFilter",toMemory:t=>({red:M(t.redX,t.redY),green:M(t.greenX,t.greenY),blue:M(t.blueX,t.blueY)})});F.add(pixiFilters.ShockwaveFilter,{name:"ShockwaveFilter",toMemory:t=>({center:M(t.centerX,t.centerY),speed:t.speed,amplitude:t.amplitude,wavelength:t.wavelength,brightness:t.brightness,radius:t.radius,time:t.time})});F.add(pixiFilters.SimplexNoiseFilter,{name:"SimplexNoiseFilter",toMemory:t=>({strength:t.strength,noiseScale:t.noiseScale,offsetX:t.offsetX,offsetY:t.offsetY,offsetZ:t.offsetZ,step:t.step})});F.add(pixiFilters.TiltShiftFilter,{name:"TiltShiftFilter",toMemory:t=>({blur:t.blur,gradientBlur:t.gradientBlur,start:M(t.startX,t.startY),end:M(t.endX,t.endY)})});F.add(pixiFilters.TwistFilter,{name:"TwistFilter",toMemory:t=>({radius:t.radius,angle:t.angle,offset:M(t.offsetX,t.offsetY)})});F.add(pixiFilters.ZoomBlurFilter,{name:"ZoomBlurFilter",toMemory:t=>({strength:t.strength,center:M(t.centerX,t.centerY),innerRadius:t.innerRadius,radius:t.radius})});function xi(t,i,s,o,r,a,n){return core.GameUnifier.animateFilter(t,i,s,o,r,a,n)}var Xi={AlphaFilter:pixi_js.AlphaFilter,BlurFilter:pixi_js.BlurFilter,NoiseFilter:pixi_js.NoiseFilter,AdjustmentFilter:pixiFilters.AdjustmentFilter,AdvancedBloomFilter:pixiFilters.AdvancedBloomFilter,AsciiFilter:pixiFilters.AsciiFilter,BackdropBlurFilter:pixiFilters.BackdropBlurFilter,BevelFilter:pixiFilters.BevelFilter,BloomFilter:pixiFilters.BloomFilter,BulgePinchFilter:pixiFilters.BulgePinchFilter,ColorGradientFilter:pixiFilters.ColorGradientFilter,ColorOverlayFilter:pixiFilters.ColorOverlayFilter,ColorReplaceFilter:pixiFilters.ColorReplaceFilter,ConvolutionFilter:pixiFilters.ConvolutionFilter,CRTFilter:pixiFilters.CRTFilter,CrossHatchFilter:pixiFilters.CrossHatchFilter,DotFilter:pixiFilters.DotFilter,DropShadowFilter:pixiFilters.DropShadowFilter,EmbossFilter:pixiFilters.EmbossFilter,GlitchFilter:pixiFilters.GlitchFilter,GlowFilter:pixiFilters.GlowFilter,GodrayFilter:pixiFilters.GodrayFilter,GrayscaleFilter:pixiFilters.GrayscaleFilter,HslAdjustmentFilter:pixiFilters.HslAdjustmentFilter,KawaseBlurFilter:pixiFilters.KawaseBlurFilter,MotionBlurFilter:pixiFilters.MotionBlurFilter,MultiColorReplaceFilter:pixiFilters.MultiColorReplaceFilter,OldFilmFilter:pixiFilters.OldFilmFilter,OutlineFilter:pixiFilters.OutlineFilter,PixelateFilter:pixiFilters.PixelateFilter,RadialBlurFilter:pixiFilters.RadialBlurFilter,ReflectionFilter:pixiFilters.ReflectionFilter,RGBSplitFilter:pixiFilters.RGBSplitFilter,ShockwaveFilter:pixiFilters.ShockwaveFilter,SimplexNoiseFilter:pixiFilters.SimplexNoiseFilter,TiltShiftFilter:pixiFilters.TiltShiftFilter,TwistFilter:pixiFilters.TwistFilter,ZoomBlurFilter:pixiFilters.ZoomBlurFilter,animate:xi};exports.RegisteredFilters=F;exports.filterDecorator=te;exports.filters=Xi;
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import { AnimationOptions } from '@drincs/pixi-vn/motion';
|
|
2
|
+
import { Filter, AlphaFilter, BlurFilter, NoiseFilter, UPDATE_PRIORITY } from '@drincs/pixi-vn/pixi.js';
|
|
3
|
+
import { AdjustmentFilter, AdvancedBloomFilter, AsciiFilter, BackdropBlurFilter, BevelFilter, BloomFilter, BulgePinchFilter, ColorGradientFilter, ColorOverlayFilter, ColorReplaceFilter, ConvolutionFilter, CRTFilter, CrossHatchFilter, DotFilter, DropShadowFilter, EmbossFilter, GlitchFilter, GlowFilter, GodrayFilter, GrayscaleFilter, HslAdjustmentFilter, KawaseBlurFilter, MotionBlurFilter, MultiColorReplaceFilter, OldFilmFilter, OutlineFilter, PixelateFilter, RadialBlurFilter, ReflectionFilter, RGBSplitFilter, ShockwaveFilter, SimplexNoiseFilter, TiltShiftFilter, TwistFilter, ZoomBlurFilter } from 'pixi-filters';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Is a decorator that registers a `Filter` class so it can be saved and restored as part of a canvas
|
|
7
|
+
* element's `.filters`. Required for any custom filter you want to survive a save/restore round-trip -
|
|
8
|
+
* built-in ones like `PixelateFilter` (and `BlurFilter`) are already registered by Pixi'VN.
|
|
9
|
+
* @param options.name The id used to identify this filter class in saves (must be unique). Defaults to the class name.
|
|
10
|
+
* @param options.toMemory Reads a live instance's current parameters into a plain, serializable object. It is passed to the class's constructor (as its single argument) to reconstruct the filter on restore.
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* @filterDecorator({ toMemory: (filter: MyFilter) => ({ amount: filter.amount }) })
|
|
14
|
+
* class MyFilter extends Filter {
|
|
15
|
+
* constructor(args: { amount?: number } = {}) {
|
|
16
|
+
* super({ ... });
|
|
17
|
+
* this.amount = args.amount ?? 0;
|
|
18
|
+
* }
|
|
19
|
+
* // ...
|
|
20
|
+
* }
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
declare function filterDecorator<T extends {
|
|
24
|
+
new (args: any): Filter;
|
|
25
|
+
}>(options: {
|
|
26
|
+
name?: string;
|
|
27
|
+
toMemory: (filter: InstanceType<T>) => any;
|
|
28
|
+
}): (target: T) => void;
|
|
29
|
+
declare namespace RegisteredFilters {
|
|
30
|
+
/**
|
|
31
|
+
* Register a filter class in the game.
|
|
32
|
+
* @param target The class of the filter. Must be constructible from a single, serializable `args` object.
|
|
33
|
+
* @param options.name Name of the filter, by default it will use the class name. If the name is already registered, it will show a warning
|
|
34
|
+
* @param options.toMemory Reads a live instance's current parameters into a plain, serializable object.
|
|
35
|
+
*/
|
|
36
|
+
function add<T extends {
|
|
37
|
+
new (args: any): Filter;
|
|
38
|
+
}>(target: T, options: {
|
|
39
|
+
name?: string;
|
|
40
|
+
toMemory: (filter: InstanceType<T>) => any;
|
|
41
|
+
}): void;
|
|
42
|
+
/**
|
|
43
|
+
* Get a filter class by the id.
|
|
44
|
+
* @param filterId The id of the filter.
|
|
45
|
+
* @returns The filter class.
|
|
46
|
+
*/
|
|
47
|
+
function get<T = {
|
|
48
|
+
new (args: any): Filter;
|
|
49
|
+
}>(filterId: string): T | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* Get a filter instance by the id, reconstructed from previously saved `args`.
|
|
52
|
+
* @param filterId The id of the filter.
|
|
53
|
+
* @param args The arguments to pass to the filter's constructor, as produced by a previous `toMemory` call.
|
|
54
|
+
* @returns The filter instance, or `undefined` if the filter isn't registered or construction failed.
|
|
55
|
+
*/
|
|
56
|
+
function getInstance(filterId: string, args: any): Filter | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* Reads a live filter instance's current parameters into a serializable {@link FilterMemory}, using
|
|
59
|
+
* the `toMemory` function it was registered with.
|
|
60
|
+
* @param filterId The id the filter was registered under (readable on any instance as `filter.pixivnFilterId`).
|
|
61
|
+
* @param filter The live filter instance.
|
|
62
|
+
* @returns The memory object, or `undefined` if the filter isn't registered or conversion failed.
|
|
63
|
+
*/
|
|
64
|
+
function toMemory(filterId: string, filter: Filter): {
|
|
65
|
+
filterId: string;
|
|
66
|
+
args: any;
|
|
67
|
+
} | undefined;
|
|
68
|
+
/**
|
|
69
|
+
* Get a list of all filter classes registered.
|
|
70
|
+
* @returns An array of filter classes.
|
|
71
|
+
*/
|
|
72
|
+
function values(): {
|
|
73
|
+
new (args: any): Filter;
|
|
74
|
+
}[];
|
|
75
|
+
/**
|
|
76
|
+
* Check if a filter is registered.
|
|
77
|
+
* @param id The id of the filter.
|
|
78
|
+
* @returns True if the filter is registered, false otherwise.
|
|
79
|
+
*/
|
|
80
|
+
function has(id: string): boolean;
|
|
81
|
+
/**
|
|
82
|
+
* Get a list of all filter ids registered.
|
|
83
|
+
* @returns An array of filter ids.
|
|
84
|
+
*/
|
|
85
|
+
function keys(): string[];
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Serializable representation of a single `Filter` attached to a canvas element's `.filters` array.
|
|
90
|
+
*
|
|
91
|
+
* A live `Filter` instance (PixiJS's own, like `BlurFilter`, or a custom one) generally can't be
|
|
92
|
+
* serialized directly - it doesn't expose its constructor options after creation, and its state lives in
|
|
93
|
+
* GPU-facing resources/uniform groups. `filterId` identifies which registration (see
|
|
94
|
+
* {@link filterDecorator}/{@link RegisteredFilters}) knows how to convert it to and from `args`.
|
|
95
|
+
*/
|
|
96
|
+
interface FilterMemory {
|
|
97
|
+
/**
|
|
98
|
+
* The id the filter's class was registered under. Used on restore to look up the class and
|
|
99
|
+
* reconstruct an instance from `args`.
|
|
100
|
+
*/
|
|
101
|
+
filterId: string;
|
|
102
|
+
/**
|
|
103
|
+
* The serializable arguments needed to reconstruct the filter, as produced by its registration's
|
|
104
|
+
* `toMemory` function.
|
|
105
|
+
*/
|
|
106
|
+
args: any;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Animate either a `Filter`'s own properties, or a plain numeric "progress" value with no live target
|
|
111
|
+
* (used by the mask-based transitions - wipe/iris/split - which have no filter property to write
|
|
112
|
+
* directly, just a number and a side effect). See `GameUnifier.animateFilter`'s own doc comment for the
|
|
113
|
+
* full parameter reference; this just forwards to it (through the same DI indirection `canvas`'s own
|
|
114
|
+
* animate methods use - `filters` can't import `motion` directly, since `canvas` already depends on
|
|
115
|
+
* `filters` and `motion` depends on `canvas`, so `filters -> motion` would close a cycle).
|
|
116
|
+
* @param components The canvas element alias(es) the filter is attached to, or otherwise associated
|
|
117
|
+
* with this animation.
|
|
118
|
+
* @param filter The `Filter` instance to animate, or `undefined` to animate a plain value instead.
|
|
119
|
+
* @param keyframes The keyframes to animate the filter's properties (or the plain value) with.
|
|
120
|
+
* @param options The animation options.
|
|
121
|
+
* @param priority The update priority of the ticker.
|
|
122
|
+
* @param apply Called on every frame with the current interpolated value - required when `filter` is
|
|
123
|
+
* `undefined`, ignored otherwise.
|
|
124
|
+
* @param cleanup Called once, right before completion handling, to detach/destroy the filter or tear
|
|
125
|
+
* down whatever `apply` was driving.
|
|
126
|
+
* @returns The id of the ticker, or `undefined` if the ticker was not added.
|
|
127
|
+
*/
|
|
128
|
+
declare function animate(components: string | string[], filter: Filter | undefined, keyframes: Record<string, any>, options?: AnimationOptions, priority?: UPDATE_PRIORITY, apply?: (value: number) => void, cleanup?: () => void): string | undefined;
|
|
129
|
+
/**
|
|
130
|
+
* Every filter class Pixi'VN registers for save/restore out of the box (see
|
|
131
|
+
* `register-builtin-filters.ts`), grouped in one place so a project can use them without importing
|
|
132
|
+
* from `pixi.js`/`pixi-filters` directly - e.g. `new filters.BloomFilter({...})` - plus
|
|
133
|
+
* {@link animate}. Not every filter `pixi.js`/`pixi-filters` ships is here: a few (`ColorMapFilter`,
|
|
134
|
+
* `SimpleLightmapFilter`, `TiltShiftAxisFilter`, `ColorMatrixFilter`, `DisplacementFilter`, and
|
|
135
|
+
* pixi.js's internal `MaskFilter`/`BlendModeFilter`/`PassthroughFilter`) are deliberately not
|
|
136
|
+
* registered - see that file's doc comment for why. Those are still directly importable from
|
|
137
|
+
* `pixi.js`/`pixi-filters` as usual; they just won't survive a save/restore round-trip unless a project
|
|
138
|
+
* registers its own `toMemory` for them.
|
|
139
|
+
*/
|
|
140
|
+
declare const filters: {
|
|
141
|
+
readonly AlphaFilter: typeof AlphaFilter;
|
|
142
|
+
readonly BlurFilter: typeof BlurFilter;
|
|
143
|
+
readonly NoiseFilter: typeof NoiseFilter;
|
|
144
|
+
readonly AdjustmentFilter: typeof AdjustmentFilter;
|
|
145
|
+
readonly AdvancedBloomFilter: typeof AdvancedBloomFilter;
|
|
146
|
+
readonly AsciiFilter: typeof AsciiFilter;
|
|
147
|
+
readonly BackdropBlurFilter: typeof BackdropBlurFilter;
|
|
148
|
+
readonly BevelFilter: typeof BevelFilter;
|
|
149
|
+
readonly BloomFilter: typeof BloomFilter;
|
|
150
|
+
readonly BulgePinchFilter: typeof BulgePinchFilter;
|
|
151
|
+
readonly ColorGradientFilter: typeof ColorGradientFilter;
|
|
152
|
+
readonly ColorOverlayFilter: typeof ColorOverlayFilter;
|
|
153
|
+
readonly ColorReplaceFilter: typeof ColorReplaceFilter;
|
|
154
|
+
readonly ConvolutionFilter: typeof ConvolutionFilter;
|
|
155
|
+
readonly CRTFilter: typeof CRTFilter;
|
|
156
|
+
readonly CrossHatchFilter: typeof CrossHatchFilter;
|
|
157
|
+
readonly DotFilter: typeof DotFilter;
|
|
158
|
+
readonly DropShadowFilter: typeof DropShadowFilter;
|
|
159
|
+
readonly EmbossFilter: typeof EmbossFilter;
|
|
160
|
+
readonly GlitchFilter: typeof GlitchFilter;
|
|
161
|
+
readonly GlowFilter: typeof GlowFilter;
|
|
162
|
+
readonly GodrayFilter: typeof GodrayFilter;
|
|
163
|
+
readonly GrayscaleFilter: typeof GrayscaleFilter;
|
|
164
|
+
readonly HslAdjustmentFilter: typeof HslAdjustmentFilter;
|
|
165
|
+
readonly KawaseBlurFilter: typeof KawaseBlurFilter;
|
|
166
|
+
readonly MotionBlurFilter: typeof MotionBlurFilter;
|
|
167
|
+
readonly MultiColorReplaceFilter: typeof MultiColorReplaceFilter;
|
|
168
|
+
readonly OldFilmFilter: typeof OldFilmFilter;
|
|
169
|
+
readonly OutlineFilter: typeof OutlineFilter;
|
|
170
|
+
readonly PixelateFilter: typeof PixelateFilter;
|
|
171
|
+
readonly RadialBlurFilter: typeof RadialBlurFilter;
|
|
172
|
+
readonly ReflectionFilter: typeof ReflectionFilter;
|
|
173
|
+
readonly RGBSplitFilter: typeof RGBSplitFilter;
|
|
174
|
+
readonly ShockwaveFilter: typeof ShockwaveFilter;
|
|
175
|
+
readonly SimplexNoiseFilter: typeof SimplexNoiseFilter;
|
|
176
|
+
readonly TiltShiftFilter: typeof TiltShiftFilter;
|
|
177
|
+
readonly TwistFilter: typeof TwistFilter;
|
|
178
|
+
readonly ZoomBlurFilter: typeof ZoomBlurFilter;
|
|
179
|
+
readonly animate: typeof animate;
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
export { type FilterMemory, RegisteredFilters, filterDecorator, filters };
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import { AnimationOptions } from '@drincs/pixi-vn/motion';
|
|
2
|
+
import { Filter, AlphaFilter, BlurFilter, NoiseFilter, UPDATE_PRIORITY } from '@drincs/pixi-vn/pixi.js';
|
|
3
|
+
import { AdjustmentFilter, AdvancedBloomFilter, AsciiFilter, BackdropBlurFilter, BevelFilter, BloomFilter, BulgePinchFilter, ColorGradientFilter, ColorOverlayFilter, ColorReplaceFilter, ConvolutionFilter, CRTFilter, CrossHatchFilter, DotFilter, DropShadowFilter, EmbossFilter, GlitchFilter, GlowFilter, GodrayFilter, GrayscaleFilter, HslAdjustmentFilter, KawaseBlurFilter, MotionBlurFilter, MultiColorReplaceFilter, OldFilmFilter, OutlineFilter, PixelateFilter, RadialBlurFilter, ReflectionFilter, RGBSplitFilter, ShockwaveFilter, SimplexNoiseFilter, TiltShiftFilter, TwistFilter, ZoomBlurFilter } from 'pixi-filters';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Is a decorator that registers a `Filter` class so it can be saved and restored as part of a canvas
|
|
7
|
+
* element's `.filters`. Required for any custom filter you want to survive a save/restore round-trip -
|
|
8
|
+
* built-in ones like `PixelateFilter` (and `BlurFilter`) are already registered by Pixi'VN.
|
|
9
|
+
* @param options.name The id used to identify this filter class in saves (must be unique). Defaults to the class name.
|
|
10
|
+
* @param options.toMemory Reads a live instance's current parameters into a plain, serializable object. It is passed to the class's constructor (as its single argument) to reconstruct the filter on restore.
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* @filterDecorator({ toMemory: (filter: MyFilter) => ({ amount: filter.amount }) })
|
|
14
|
+
* class MyFilter extends Filter {
|
|
15
|
+
* constructor(args: { amount?: number } = {}) {
|
|
16
|
+
* super({ ... });
|
|
17
|
+
* this.amount = args.amount ?? 0;
|
|
18
|
+
* }
|
|
19
|
+
* // ...
|
|
20
|
+
* }
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
declare function filterDecorator<T extends {
|
|
24
|
+
new (args: any): Filter;
|
|
25
|
+
}>(options: {
|
|
26
|
+
name?: string;
|
|
27
|
+
toMemory: (filter: InstanceType<T>) => any;
|
|
28
|
+
}): (target: T) => void;
|
|
29
|
+
declare namespace RegisteredFilters {
|
|
30
|
+
/**
|
|
31
|
+
* Register a filter class in the game.
|
|
32
|
+
* @param target The class of the filter. Must be constructible from a single, serializable `args` object.
|
|
33
|
+
* @param options.name Name of the filter, by default it will use the class name. If the name is already registered, it will show a warning
|
|
34
|
+
* @param options.toMemory Reads a live instance's current parameters into a plain, serializable object.
|
|
35
|
+
*/
|
|
36
|
+
function add<T extends {
|
|
37
|
+
new (args: any): Filter;
|
|
38
|
+
}>(target: T, options: {
|
|
39
|
+
name?: string;
|
|
40
|
+
toMemory: (filter: InstanceType<T>) => any;
|
|
41
|
+
}): void;
|
|
42
|
+
/**
|
|
43
|
+
* Get a filter class by the id.
|
|
44
|
+
* @param filterId The id of the filter.
|
|
45
|
+
* @returns The filter class.
|
|
46
|
+
*/
|
|
47
|
+
function get<T = {
|
|
48
|
+
new (args: any): Filter;
|
|
49
|
+
}>(filterId: string): T | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* Get a filter instance by the id, reconstructed from previously saved `args`.
|
|
52
|
+
* @param filterId The id of the filter.
|
|
53
|
+
* @param args The arguments to pass to the filter's constructor, as produced by a previous `toMemory` call.
|
|
54
|
+
* @returns The filter instance, or `undefined` if the filter isn't registered or construction failed.
|
|
55
|
+
*/
|
|
56
|
+
function getInstance(filterId: string, args: any): Filter | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* Reads a live filter instance's current parameters into a serializable {@link FilterMemory}, using
|
|
59
|
+
* the `toMemory` function it was registered with.
|
|
60
|
+
* @param filterId The id the filter was registered under (readable on any instance as `filter.pixivnFilterId`).
|
|
61
|
+
* @param filter The live filter instance.
|
|
62
|
+
* @returns The memory object, or `undefined` if the filter isn't registered or conversion failed.
|
|
63
|
+
*/
|
|
64
|
+
function toMemory(filterId: string, filter: Filter): {
|
|
65
|
+
filterId: string;
|
|
66
|
+
args: any;
|
|
67
|
+
} | undefined;
|
|
68
|
+
/**
|
|
69
|
+
* Get a list of all filter classes registered.
|
|
70
|
+
* @returns An array of filter classes.
|
|
71
|
+
*/
|
|
72
|
+
function values(): {
|
|
73
|
+
new (args: any): Filter;
|
|
74
|
+
}[];
|
|
75
|
+
/**
|
|
76
|
+
* Check if a filter is registered.
|
|
77
|
+
* @param id The id of the filter.
|
|
78
|
+
* @returns True if the filter is registered, false otherwise.
|
|
79
|
+
*/
|
|
80
|
+
function has(id: string): boolean;
|
|
81
|
+
/**
|
|
82
|
+
* Get a list of all filter ids registered.
|
|
83
|
+
* @returns An array of filter ids.
|
|
84
|
+
*/
|
|
85
|
+
function keys(): string[];
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Serializable representation of a single `Filter` attached to a canvas element's `.filters` array.
|
|
90
|
+
*
|
|
91
|
+
* A live `Filter` instance (PixiJS's own, like `BlurFilter`, or a custom one) generally can't be
|
|
92
|
+
* serialized directly - it doesn't expose its constructor options after creation, and its state lives in
|
|
93
|
+
* GPU-facing resources/uniform groups. `filterId` identifies which registration (see
|
|
94
|
+
* {@link filterDecorator}/{@link RegisteredFilters}) knows how to convert it to and from `args`.
|
|
95
|
+
*/
|
|
96
|
+
interface FilterMemory {
|
|
97
|
+
/**
|
|
98
|
+
* The id the filter's class was registered under. Used on restore to look up the class and
|
|
99
|
+
* reconstruct an instance from `args`.
|
|
100
|
+
*/
|
|
101
|
+
filterId: string;
|
|
102
|
+
/**
|
|
103
|
+
* The serializable arguments needed to reconstruct the filter, as produced by its registration's
|
|
104
|
+
* `toMemory` function.
|
|
105
|
+
*/
|
|
106
|
+
args: any;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Animate either a `Filter`'s own properties, or a plain numeric "progress" value with no live target
|
|
111
|
+
* (used by the mask-based transitions - wipe/iris/split - which have no filter property to write
|
|
112
|
+
* directly, just a number and a side effect). See `GameUnifier.animateFilter`'s own doc comment for the
|
|
113
|
+
* full parameter reference; this just forwards to it (through the same DI indirection `canvas`'s own
|
|
114
|
+
* animate methods use - `filters` can't import `motion` directly, since `canvas` already depends on
|
|
115
|
+
* `filters` and `motion` depends on `canvas`, so `filters -> motion` would close a cycle).
|
|
116
|
+
* @param components The canvas element alias(es) the filter is attached to, or otherwise associated
|
|
117
|
+
* with this animation.
|
|
118
|
+
* @param filter The `Filter` instance to animate, or `undefined` to animate a plain value instead.
|
|
119
|
+
* @param keyframes The keyframes to animate the filter's properties (or the plain value) with.
|
|
120
|
+
* @param options The animation options.
|
|
121
|
+
* @param priority The update priority of the ticker.
|
|
122
|
+
* @param apply Called on every frame with the current interpolated value - required when `filter` is
|
|
123
|
+
* `undefined`, ignored otherwise.
|
|
124
|
+
* @param cleanup Called once, right before completion handling, to detach/destroy the filter or tear
|
|
125
|
+
* down whatever `apply` was driving.
|
|
126
|
+
* @returns The id of the ticker, or `undefined` if the ticker was not added.
|
|
127
|
+
*/
|
|
128
|
+
declare function animate(components: string | string[], filter: Filter | undefined, keyframes: Record<string, any>, options?: AnimationOptions, priority?: UPDATE_PRIORITY, apply?: (value: number) => void, cleanup?: () => void): string | undefined;
|
|
129
|
+
/**
|
|
130
|
+
* Every filter class Pixi'VN registers for save/restore out of the box (see
|
|
131
|
+
* `register-builtin-filters.ts`), grouped in one place so a project can use them without importing
|
|
132
|
+
* from `pixi.js`/`pixi-filters` directly - e.g. `new filters.BloomFilter({...})` - plus
|
|
133
|
+
* {@link animate}. Not every filter `pixi.js`/`pixi-filters` ships is here: a few (`ColorMapFilter`,
|
|
134
|
+
* `SimpleLightmapFilter`, `TiltShiftAxisFilter`, `ColorMatrixFilter`, `DisplacementFilter`, and
|
|
135
|
+
* pixi.js's internal `MaskFilter`/`BlendModeFilter`/`PassthroughFilter`) are deliberately not
|
|
136
|
+
* registered - see that file's doc comment for why. Those are still directly importable from
|
|
137
|
+
* `pixi.js`/`pixi-filters` as usual; they just won't survive a save/restore round-trip unless a project
|
|
138
|
+
* registers its own `toMemory` for them.
|
|
139
|
+
*/
|
|
140
|
+
declare const filters: {
|
|
141
|
+
readonly AlphaFilter: typeof AlphaFilter;
|
|
142
|
+
readonly BlurFilter: typeof BlurFilter;
|
|
143
|
+
readonly NoiseFilter: typeof NoiseFilter;
|
|
144
|
+
readonly AdjustmentFilter: typeof AdjustmentFilter;
|
|
145
|
+
readonly AdvancedBloomFilter: typeof AdvancedBloomFilter;
|
|
146
|
+
readonly AsciiFilter: typeof AsciiFilter;
|
|
147
|
+
readonly BackdropBlurFilter: typeof BackdropBlurFilter;
|
|
148
|
+
readonly BevelFilter: typeof BevelFilter;
|
|
149
|
+
readonly BloomFilter: typeof BloomFilter;
|
|
150
|
+
readonly BulgePinchFilter: typeof BulgePinchFilter;
|
|
151
|
+
readonly ColorGradientFilter: typeof ColorGradientFilter;
|
|
152
|
+
readonly ColorOverlayFilter: typeof ColorOverlayFilter;
|
|
153
|
+
readonly ColorReplaceFilter: typeof ColorReplaceFilter;
|
|
154
|
+
readonly ConvolutionFilter: typeof ConvolutionFilter;
|
|
155
|
+
readonly CRTFilter: typeof CRTFilter;
|
|
156
|
+
readonly CrossHatchFilter: typeof CrossHatchFilter;
|
|
157
|
+
readonly DotFilter: typeof DotFilter;
|
|
158
|
+
readonly DropShadowFilter: typeof DropShadowFilter;
|
|
159
|
+
readonly EmbossFilter: typeof EmbossFilter;
|
|
160
|
+
readonly GlitchFilter: typeof GlitchFilter;
|
|
161
|
+
readonly GlowFilter: typeof GlowFilter;
|
|
162
|
+
readonly GodrayFilter: typeof GodrayFilter;
|
|
163
|
+
readonly GrayscaleFilter: typeof GrayscaleFilter;
|
|
164
|
+
readonly HslAdjustmentFilter: typeof HslAdjustmentFilter;
|
|
165
|
+
readonly KawaseBlurFilter: typeof KawaseBlurFilter;
|
|
166
|
+
readonly MotionBlurFilter: typeof MotionBlurFilter;
|
|
167
|
+
readonly MultiColorReplaceFilter: typeof MultiColorReplaceFilter;
|
|
168
|
+
readonly OldFilmFilter: typeof OldFilmFilter;
|
|
169
|
+
readonly OutlineFilter: typeof OutlineFilter;
|
|
170
|
+
readonly PixelateFilter: typeof PixelateFilter;
|
|
171
|
+
readonly RadialBlurFilter: typeof RadialBlurFilter;
|
|
172
|
+
readonly ReflectionFilter: typeof ReflectionFilter;
|
|
173
|
+
readonly RGBSplitFilter: typeof RGBSplitFilter;
|
|
174
|
+
readonly ShockwaveFilter: typeof ShockwaveFilter;
|
|
175
|
+
readonly SimplexNoiseFilter: typeof SimplexNoiseFilter;
|
|
176
|
+
readonly TiltShiftFilter: typeof TiltShiftFilter;
|
|
177
|
+
readonly TwistFilter: typeof TwistFilter;
|
|
178
|
+
readonly ZoomBlurFilter: typeof ZoomBlurFilter;
|
|
179
|
+
readonly animate: typeof animate;
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
export { type FilterMemory, RegisteredFilters, filterDecorator, filters };
|
package/dist/filters.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {d as d$1,e}from'./chunk-AW5XWF24.mjs';import {GameUnifier}from'@drincs/pixi-vn/core';import {BlurFilter,AlphaFilter,NoiseFilter}from'@drincs/pixi-vn/pixi.js';import {PixelateFilter,AdjustmentFilter,AdvancedBloomFilter,AsciiFilter,BackdropBlurFilter,BevelFilter,BloomFilter,BulgePinchFilter,ColorGradientFilter,ColorOverlayFilter,ColorReplaceFilter,ConvolutionFilter,CrossHatchFilter,CRTFilter,DotFilter,DropShadowFilter,EmbossFilter,GlitchFilter,GlowFilter,GodrayFilter,GrayscaleFilter,HslAdjustmentFilter,KawaseBlurFilter,MotionBlurFilter,MultiColorReplaceFilter,OldFilmFilter,OutlineFilter,RadialBlurFilter,ReflectionFilter,RGBSplitFilter,ShockwaveFilter,SimplexNoiseFilter,TiltShiftFilter,TwistFilter,ZoomBlurFilter}from'pixi-filters';var d=new d$1({cacheSize:5}),y=new d$1({cacheSize:5});function M(e){return i=>{c.add(i,e);}}var c;($e=>{function e$1(o,a){let{toMemory:l}=a,n=a.name??o.name;d.get(n)&&e.info(`Filter "${n}" already exists, it will be overwritten`),o.prototype.pixivnFilterId=n,d.set(n,o),y.set(n,l);}$e.add=e$1;function i(o){let a=d.get(o);if(!a){e.error(`Filter "${o}" not found, did you forget to register it with the filterDecorator?`);return}return a}$e.get=i;function u(o,a){let l=i(o);if(l)try{return new l(a)}catch(n){e.error(`Error while getting Filter instance "${o}"`,n);return}}$e.getInstance=u;function F(o,a){let l=y.get(o);if(!l){e.error(`Filter "${o}" not found, did you forget to register it with the filterDecorator?`);return}try{return {filterId:o,args:l(a)}}catch(n){e.error(`Error while converting Filter "${o}" to memory`,n);return}}$e.toMemory=F;function g(){return Array.from(d.values())}$e.values=g;function h(o){return d.has(o)}$e.has=h;function p(){return Array.from(d.keys())}$e.keys=p;})(c||={});var t=c;function r(e,i){return {x:e,y:i}}t.add(BlurFilter,{name:"BlurFilter",toMemory:e=>({strengthX:e.strengthX,strengthY:e.strengthY,quality:e.quality,repeatEdgePixels:e.repeatEdgePixels})});t.add(AlphaFilter,{name:"AlphaFilter",toMemory:e=>({alpha:e.alpha})});t.add(NoiseFilter,{name:"NoiseFilter",toMemory:e=>({noise:e.noise,seed:e.seed})});t.add(PixelateFilter,{name:"PixelateFilter",toMemory:e=>[e.sizeX,e.sizeY]});t.add(AdjustmentFilter,{name:"AdjustmentFilter",toMemory:e=>({gamma:e.gamma,contrast:e.contrast,saturation:e.saturation,brightness:e.brightness,red:e.red,green:e.green,blue:e.blue,alpha:e.alpha})});t.add(AdvancedBloomFilter,{name:"AdvancedBloomFilter",toMemory:e=>({threshold:e.threshold,bloomScale:e.bloomScale,brightness:e.brightness,blur:e.blur,kernels:e.kernels,quality:e.quality,pixelSize:r(e.pixelSizeX,e.pixelSizeY)})});t.add(AsciiFilter,{name:"AsciiFilter",toMemory:e=>({size:e.size,color:e.color,replaceColor:e.replaceColor})});t.add(BackdropBlurFilter,{name:"BackdropBlurFilter",toMemory:e=>({strength:e.strength,quality:e.quality})});t.add(BevelFilter,{name:"BevelFilter",toMemory:e=>({rotation:e.rotation,thickness:e.thickness,lightColor:e.lightColor,lightAlpha:e.lightAlpha,shadowColor:e.shadowColor,shadowAlpha:e.shadowAlpha})});t.add(BloomFilter,{name:"BloomFilter",toMemory:e=>({strength:r(e.strengthX,e.strengthY)})});t.add(BulgePinchFilter,{name:"BulgePinchFilter",toMemory:e=>({center:r(e.centerX,e.centerY),radius:e.radius,strength:e.strength})});t.add(ColorGradientFilter,{name:"ColorGradientFilter",toMemory:e=>({type:e.type,stops:e.stops,angle:e.angle,alpha:e.alpha,maxColors:e.maxColors,replace:e.replace})});t.add(ColorOverlayFilter,{name:"ColorOverlayFilter",toMemory:e=>({color:e.color,alpha:e.alpha})});t.add(ColorReplaceFilter,{name:"ColorReplaceFilter",toMemory:e=>({originalColor:e.originalColor,targetColor:e.targetColor,tolerance:e.tolerance})});t.add(ConvolutionFilter,{name:"ConvolutionFilter",toMemory:e=>({matrix:e.matrix,width:e.width,height:e.height})});t.add(CrossHatchFilter,{name:"CrossHatchFilter",toMemory:()=>({})});t.add(CRTFilter,{name:"CRTFilter",toMemory:e=>({curvature:e.curvature,lineWidth:e.lineWidth,lineContrast:e.lineContrast,verticalLine:e.verticalLine,noise:e.noise,noiseSize:e.noiseSize,vignetting:e.vignetting,vignettingAlpha:e.vignettingAlpha,vignettingBlur:e.vignettingBlur,seed:e.seed,time:e.time})});t.add(DotFilter,{name:"DotFilter",toMemory:e=>({scale:e.scale,angle:e.angle,grayscale:e.grayscale})});t.add(DropShadowFilter,{name:"DropShadowFilter",toMemory:e=>({offset:r(e.offsetX,e.offsetY),color:e.color,alpha:e.alpha,shadowOnly:e.shadowOnly,blur:e.blur,quality:e.quality,kernels:e.kernels,pixelSize:r(e.pixelSizeX,e.pixelSizeY)})});t.add(EmbossFilter,{name:"EmbossFilter",toMemory:e=>e.strength});t.add(GlitchFilter,{name:"GlitchFilter",toMemory:e=>({slices:e.slices,offset:e.offset,direction:e.direction,fillMode:e.fillMode,seed:e.seed,average:e.average,minSize:e.minSize,sampleSize:e.sampleSize,red:e.red,green:e.green,blue:e.blue})});t.add(GlowFilter,{name:"GlowFilter",toMemory:e=>({distance:e.distance,outerStrength:e.outerStrength,innerStrength:e.innerStrength,color:e.color,alpha:e.alpha,quality:e.quality,knockout:e.knockout})});t.add(GodrayFilter,{name:"GodrayFilter",toMemory:e=>({angle:e.angle,parallel:e.parallel,center:r(e.centerX,e.centerY),gain:e.gain,lacunarity:e.lacunarity,time:e.time,alpha:e.alpha})});t.add(GrayscaleFilter,{name:"GrayscaleFilter",toMemory:()=>({})});t.add(HslAdjustmentFilter,{name:"HslAdjustmentFilter",toMemory:e=>({hue:e.hue,saturation:e.saturation,lightness:e.lightness,colorize:e.colorize,alpha:e.alpha})});t.add(KawaseBlurFilter,{name:"KawaseBlurFilter",toMemory:e=>({strength:e.strength,quality:e.quality,pixelSize:r(e.pixelSizeX,e.pixelSizeY)})});t.add(MotionBlurFilter,{name:"MotionBlurFilter",toMemory:e=>({velocity:r(e.velocityX,e.velocityY),kernelSize:e.kernelSize,offset:e.offset})});t.add(MultiColorReplaceFilter,{name:"MultiColorReplaceFilter",toMemory:e=>({replacements:e.replacements,tolerance:e.tolerance})});t.add(OldFilmFilter,{name:"OldFilmFilter",toMemory:e=>({sepia:e.sepia,noise:e.noise,noiseSize:e.noiseSize,scratch:e.scratch,scratchDensity:e.scratchDensity,scratchWidth:e.scratchWidth,vignetting:e.vignetting,vignettingAlpha:e.vignettingAlpha,vignettingBlur:e.vignettingBlur,seed:e.seed})});t.add(OutlineFilter,{name:"OutlineFilter",toMemory:e=>({thickness:e.thickness,color:e.color,alpha:e.alpha,quality:e.quality,knockout:e.knockout})});t.add(RadialBlurFilter,{name:"RadialBlurFilter",toMemory:e=>({angle:e.angle,center:r(e.centerX,e.centerY),kernelSize:e.kernelSize,radius:e.radius})});t.add(ReflectionFilter,{name:"ReflectionFilter",toMemory:e=>({mirror:e.mirror,boundary:e.boundary,amplitude:e.amplitude,waveLength:e.waveLength,alpha:e.alpha,time:e.time})});t.add(RGBSplitFilter,{name:"RGBSplitFilter",toMemory:e=>({red:r(e.redX,e.redY),green:r(e.greenX,e.greenY),blue:r(e.blueX,e.blueY)})});t.add(ShockwaveFilter,{name:"ShockwaveFilter",toMemory:e=>({center:r(e.centerX,e.centerY),speed:e.speed,amplitude:e.amplitude,wavelength:e.wavelength,brightness:e.brightness,radius:e.radius,time:e.time})});t.add(SimplexNoiseFilter,{name:"SimplexNoiseFilter",toMemory:e=>({strength:e.strength,noiseScale:e.noiseScale,offsetX:e.offsetX,offsetY:e.offsetY,offsetZ:e.offsetZ,step:e.step})});t.add(TiltShiftFilter,{name:"TiltShiftFilter",toMemory:e=>({blur:e.blur,gradientBlur:e.gradientBlur,start:r(e.startX,e.startY),end:r(e.endX,e.endY)})});t.add(TwistFilter,{name:"TwistFilter",toMemory:e=>({radius:e.radius,angle:e.angle,offset:r(e.offsetX,e.offsetY)})});t.add(ZoomBlurFilter,{name:"ZoomBlurFilter",toMemory:e=>({strength:e.strength,center:r(e.centerX,e.centerY),innerRadius:e.innerRadius,radius:e.radius})});function Ze(e,i,u,F,g,h,p){return GameUnifier.animateFilter(e,i,u,F,g,h,p)}var et={AlphaFilter:AlphaFilter,BlurFilter:BlurFilter,NoiseFilter:NoiseFilter,AdjustmentFilter:AdjustmentFilter,AdvancedBloomFilter:AdvancedBloomFilter,AsciiFilter:AsciiFilter,BackdropBlurFilter:BackdropBlurFilter,BevelFilter:BevelFilter,BloomFilter:BloomFilter,BulgePinchFilter:BulgePinchFilter,ColorGradientFilter:ColorGradientFilter,ColorOverlayFilter:ColorOverlayFilter,ColorReplaceFilter:ColorReplaceFilter,ConvolutionFilter:ConvolutionFilter,CRTFilter:CRTFilter,CrossHatchFilter:CrossHatchFilter,DotFilter:DotFilter,DropShadowFilter:DropShadowFilter,EmbossFilter:EmbossFilter,GlitchFilter:GlitchFilter,GlowFilter:GlowFilter,GodrayFilter:GodrayFilter,GrayscaleFilter:GrayscaleFilter,HslAdjustmentFilter:HslAdjustmentFilter,KawaseBlurFilter:KawaseBlurFilter,MotionBlurFilter:MotionBlurFilter,MultiColorReplaceFilter:MultiColorReplaceFilter,OldFilmFilter:OldFilmFilter,OutlineFilter:OutlineFilter,PixelateFilter:PixelateFilter,RadialBlurFilter:RadialBlurFilter,ReflectionFilter:ReflectionFilter,RGBSplitFilter:RGBSplitFilter,ShockwaveFilter:ShockwaveFilter,SimplexNoiseFilter:SimplexNoiseFilter,TiltShiftFilter:TiltShiftFilter,TwistFilter:TwistFilter,ZoomBlurFilter:ZoomBlurFilter,animate:Ze};export{t as RegisteredFilters,M as filterDecorator,et as filters};
|