PHP Classes

File: app/modules/state.js

Recommend this page to a friend!
  Packages of DeGraciaMathieu   PHP Dep Dashboard   app/modules/state.js   Download  
File: app/modules/state.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP Dep Dashboard
Visualize PHP class dependencies in a Web page
Author: By
Last change:
Date: 10 hours ago
Size: 380 bytes
 

Contents

Class file image Download
const bus = new EventTarget(); export function emit(name, detail) { bus.dispatchEvent(new CustomEvent(name, { detail })); } export function on(name, handler) { bus.addEventListener(name, (e) => handler(e.detail)); } // Shared application state export const state = { data: null, cy: null, cycles: [], selectedNode: null, focusDepth: 1, filtersActive: false, };