@hatiolab/things-scene 3.3.0 → 3.3.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hatiolab/things-scene",
3
- "version": "3.3.0",
3
+ "version": "3.3.1",
4
4
  "description": "2D graphic library",
5
5
  "main": "src/index.js",
6
6
  "module": "things-scene.mjs",
package/things-scene.d.ts CHANGED
@@ -166,6 +166,22 @@ declare module '@hatiolab/things-scene' {
166
166
 
167
167
  function FPS(): number
168
168
 
169
+ type EventHandler = (e: Event, ...args: any[]) => void
170
+
171
+ interface EventPropagation {
172
+ [delegator: string]: {
173
+ [target: string]: {
174
+ [event: string]: EventHandler
175
+ }
176
+ }
177
+ }
178
+
179
+ class EventMap {
180
+ static get(name: string): any
181
+ static register(name: string, EventMap: any)
182
+ static unregister(name: string): void
183
+ }
184
+
169
185
  class ReferenceMap<T> {
170
186
  constructor(
171
187
  creator: (boardId: string, resolve: (target: T) => void, reject: (error: any) => void) => Promise<T>,