MCPcopy Create free account
hub / github.com/eva-engine/eva.js / init

Method init

packages/plugin-worker/lib/events/EventSystem.ts:260–268  ·  view source on GitHub ↗

* Runner init called, view is available at this point. * @ignore

(options: EventSystemOptions)

Source from the content-addressed store, hash-verified

258 * @ignore
259 */
260 public init(options: EventSystemOptions): void {
261 const { canvas, resolution } = this.renderer;
262
263 this.setTargetElement(canvas as HTMLCanvasElement);
264 this.resolution = resolution;
265 EventSystem._defaultEventMode = options.eventMode ?? 'passive';
266 Object.assign(this.features, options.eventFeatures ?? {});
267 this.rootBoundary.enableGlobalMoveEvents = this.features.globalMove;
268 }
269
270 /**
271 * Handle changing resolution.

Callers 1

constructorMethod · 0.45

Calls 1

setTargetElementMethod · 0.95

Tested by

no test coverage detected