All files Events.js

100% Statements 1/1
100% Branches 0/0
100% Functions 0/0
100% Lines 1/1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120            1x                                                                                                                                                                                                                                  
/**
 * @author Michael Duve <mduve@designmail.net>
 * @file Helper for naming events
 * @copyright Michael Duve 2016
 * @namespace Events
 */
export const Events = {
    /**
     * Eventnames for SideBar class
     * @type {Object}
     * @memberof Events
     * @property {String} OPEN - when a sidebar should be openend
     * @property {String} CLOSE - when a sidebar should be closed
     */
    SideBar: {
        OPEN: "sidebar-open",
        CLOSE: "sidebar-close"
    },
    /**
     * Eventnames for Publisher class
     * @type {Object}
     * @memberof Events
     * @property {String} PUBLISH - notifies all subscribers
     * @property {String} SUBSCRIBE - subscribes to a topic
     * @property {String} UNSUBSCRIBE - unsubscribes from a topic
     */
    Publisher: {
        PUBLISH: "publish",
        SUBSCRIBE: "subscribe",
        UNSUBSCRIBE: "unsubscribe"
    },
    /**
     * Eventnames for TileMap class
     * @type {Object}
     * @memberof Events
     * @property {String} NEXT_LEVEL - next level of view
     * @property {String} PREVIOUS_LEVEL - previous level of view
     * @property {String} RESIZE - resize of view needed
     * @property {String} ZOOM_TO_BOUNDS - zoom to bounds
     * @property {String} DRAW - draw is needed
     */
    TileMap: {
        NEXT_LEVEL: "next-level",
        PREVIOUS_LEVEL: "previous-level",
        RESIZE: "resize",
        ZOOM_TO_BOUNDS: "zoom-to-bounds",
        DRAW: "draw"
    },
    /**
     * Eventnames for Handling in all classes
     * @type {Object}
     * @memberof Events
     * @property {String} RESIZE - resize of window happened needed
     * @property {String} CLICK - click occured
     * @property {String} TOUCHSTART - Touch started
     * @property {String} TOUCHEND - Touch ended
     * @property {String} MOUSEDOWN - Mouse started
     * @property {String} MOUSEUP - Mouse ended
     * @property {String} KEYDOWN - key pressed
     * @property {String} KEYUP - key released
     * @property {String} ENTER - entering of mouse
     */
    Handling: {
        RESIZE: "resize orientationchange",
        CLICK: "click",
        TOUCHSTART: "touchstart",
        MOUSEDOWN: "mousedown",
        TOUCHEND: "touchend",
        MOUSEUP: "mouseup",
        KEYDOWN: "keydown",
        KEYUP: "keyup",
        ENTER: "mouseenter pointerenter"
    },
    /**
     * Eventnames for View class
     * @type {Object}
     * @memberof Events
     * @property {String} THUMB_LOADED - thumbnail was loaded
     */
    View: {
        THUMB_LOADED: "thumb-loaded"
    },
    /**
     * Eventnames for MarkerClusterer class
     * @type {Object}
     * @memberof Events
     * @property {String} CLUSTERIZE - create cluster
     * @property {String} UNCLUSTERIZE - destroy cluster
     */
    MarkerClusterer: {
        CLUSTERIZE: "clusterize",
        UNCLUSTERIZE: "unclusterize"
 
    },
    /**
     * Eventnames for MapInformation class
     * @type {Object}
     * @memberof Events
     * @property {String} UPDATE - updates informations
     */
    MapInformation: {
        UPDATE: "information-update"
    },
    /**
     * Eventnames for MappedJS class
     * @type {Object}
     * @memberof Events
     * @property {String} ACTIVE - DomElement is marked active
     * @property {String} ZOOM_IN - zoom in button
     * @property {String} ZOOM_OUT - zoom out button
     * @property {String} HOME - home button
     */
    General: {
        ACTIVE: "active",
        ZOOM_IN: "zoom-button-plus",
        ZOOM_OUT: "zoom-button-minus",
        HOME: "home-button"
    }
};