evotars 0.0.20 → 0.0.21
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/{CanvasPool-BP3W-ghP.js → CanvasPool-BgU_IB25.js} +1 -1
- package/dist/{SharedSystems-CBKF_D8W.js → SharedSystems-BVkCPyR7.js} +2 -2
- package/dist/{WebGLRenderer-OBONsgum.js → WebGLRenderer-D22tqBZN.js} +4 -4
- package/dist/{WebGPURenderer-DxUZUGAz.js → WebGPURenderer-2_PqAST1.js} +4 -4
- package/dist/{browserAll-Cunejw4m.js → browserAll-MP0lBGOe.js} +2 -2
- package/dist/{colorToUniform-CPC7AZcR.js → colorToUniform-qD7JB3lF.js} +1 -1
- package/dist/evotars.js +1 -1
- package/dist/evotars.umd.cjs +74 -74
- package/dist/{getBatchSamplersUniformGroup-jycmuB9s.js → getBatchSamplersUniformGroup-OP9yCw0D.js} +1 -1
- package/dist/{index-BYnkzXxX.js → index-BmYjCsnc.js} +339 -319
- package/dist/index.d.ts +15 -1
- package/dist/{webworkerAll-DA2Gu8Az.js → webworkerAll-DxPHEgin.js} +4 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -41,6 +41,10 @@ declare type AssetsOptions = {
|
|
|
41
41
|
weight: string;
|
|
42
42
|
};
|
|
43
43
|
|
|
44
|
+
export declare type BanEntity = {
|
|
45
|
+
userId: string;
|
|
46
|
+
};
|
|
47
|
+
|
|
44
48
|
declare type Collider = {
|
|
45
49
|
x: number;
|
|
46
50
|
y: number;
|
|
@@ -121,7 +125,8 @@ declare class Evotar {
|
|
|
121
125
|
jumpHit(): void;
|
|
122
126
|
update(): void;
|
|
123
127
|
isOnGround(y: number): boolean;
|
|
124
|
-
addMessage(message: string): void;
|
|
128
|
+
addMessage(message: string, id?: string): void;
|
|
129
|
+
deleteMessage(id: string): void;
|
|
125
130
|
spitEmotes(emotes: string[]): Promise<void>;
|
|
126
131
|
setAnimationState(state: EvotarSpriteTags, force?: boolean): Promise<void>;
|
|
127
132
|
}
|
|
@@ -163,6 +168,8 @@ export declare class Evotars {
|
|
|
163
168
|
processAction: (data: UserActionEntity) => Promise<void>;
|
|
164
169
|
processChatters: (data: TwitchChatterEntity[]) => Promise<void>;
|
|
165
170
|
processRaid: (data: RaidEntity) => Promise<void>;
|
|
171
|
+
processMessageDelete: (data: MessageDeleteEntity) => void;
|
|
172
|
+
processBan: (data: BanEntity) => void;
|
|
166
173
|
get manager(): {
|
|
167
174
|
viewers: Record<string, Evotar | undefined>;
|
|
168
175
|
viewerArray: string[];
|
|
@@ -190,6 +197,8 @@ export declare class Evotars {
|
|
|
190
197
|
prepareEvotarProps(name: string, color?: string | undefined, sprite?: string | undefined): EvotarProps;
|
|
191
198
|
processAction(action: UserActionEntity): Promise<void>;
|
|
192
199
|
processMessage(data: MessageEntity): Promise<void>;
|
|
200
|
+
processMessageDelete(data: MessageDeleteEntity): void;
|
|
201
|
+
processBan(data: BanEntity): void;
|
|
193
202
|
resurrect(evotar: Evotar): void;
|
|
194
203
|
kill(evotar: Evotar): void;
|
|
195
204
|
addTombStone(object: TombStone): void;
|
|
@@ -295,7 +304,12 @@ export declare type JumpUserActionEntity = {
|
|
|
295
304
|
};
|
|
296
305
|
} & UserActionEntity;
|
|
297
306
|
|
|
307
|
+
export declare type MessageDeleteEntity = {
|
|
308
|
+
messageId: string;
|
|
309
|
+
};
|
|
310
|
+
|
|
298
311
|
export declare type MessageEntity = {
|
|
312
|
+
id?: string;
|
|
299
313
|
userId: string;
|
|
300
314
|
message: string;
|
|
301
315
|
emotes: string[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { E as b, U as pt, T as pe, O as q, M as U, N as Fe, c as Me, w as L, j as R, P as gt, t as Re, K as k, L as H, b as Q, B as D, I, Q as mt, V as xt, a as _t, W as re, X as z, R as V, Y as bt, Z as M, _ as E, $ as yt, q as B, a0 as Tt, D as $, a1 as wt, a2 as Z, a3 as vt, m as St, a4 as Ct, a5 as se, n as ge, e as P, a6 as Bt } from "./index-
|
|
2
|
-
import { U as Y, T as A, R as ne, S as Ae, i as ae, b as ke, c as Ue, j as Ge, e as Pt, r as ze, o as Ft, n as He, a as Mt, g as Rt, k as At, m as kt, B as Ie } from "./colorToUniform-
|
|
3
|
-
import { C as W } from "./CanvasPool-
|
|
4
|
-
import { g as Ut } from "./getBatchSamplersUniformGroup-
|
|
1
|
+
import { E as b, U as pt, T as pe, O as q, M as U, N as Fe, c as Me, w as L, j as R, P as gt, t as Re, K as k, L as H, b as Q, B as D, I, Q as mt, V as xt, a as _t, W as re, X as z, R as V, Y as bt, Z as M, _ as E, $ as yt, q as B, a0 as Tt, D as $, a1 as wt, a2 as Z, a3 as vt, m as St, a4 as Ct, a5 as se, n as ge, e as P, a6 as Bt } from "./index-BmYjCsnc.js";
|
|
2
|
+
import { U as Y, T as A, R as ne, S as Ae, i as ae, b as ke, c as Ue, j as Ge, e as Pt, r as ze, o as Ft, n as He, a as Mt, g as Rt, k as At, m as kt, B as Ie } from "./colorToUniform-qD7JB3lF.js";
|
|
3
|
+
import { C as W } from "./CanvasPool-BgU_IB25.js";
|
|
4
|
+
import { g as Ut } from "./getBatchSamplersUniformGroup-OP9yCw0D.js";
|
|
5
5
|
class We {
|
|
6
6
|
/**
|
|
7
7
|
* Initialize the plugin with scope of application instance
|
package/package.json
CHANGED