Chartbreaker
    Preparing search index...

    Variable ControllerEChangeFlagsConst

    ControllerEChangeFlags: {
        CONFIG: 4;
        CONFIG_EPHEMERAL: 8;
        DATA: 1;
        ERROR: 256;
        ERRORS: 512;
        LOADING: 128;
        NONE: 0;
        OBJECT_TREE_CHANGED: 1024;
        OPTIONS: 64;
        VIEWPORT: 2;
        VIEWPORT_RATIO: 32;
        VIEWPORT_SIZE: 16;
    }

    An enum containing various bit flags about state changes used by the changed event on Controller

    Type Declaration

    • ReadonlyCONFIG: 4

      actual state changed (contained objects, object options, etc) only set if the respective object is non-ephemeral

    • ReadonlyCONFIG_EPHEMERAL: 8

      set if the object that triggered a change is ephemeral (e.g. a generator, or a generated tool) basically if this flag is set, the output of serialize will NOT change

    • ReadonlyDATA: 1

      displayed data changed

    • ReadonlyERROR: 256

      the primary error of an object changed e.g. a toolgenerator finished loading and added an error

    • ReadonlyERRORS: 512

      the errors of an object changed if the previous flag is set, this one will also always be set; but not vice versa e.g. an object that already had an error encountered a second one

    • ReadonlyLOADING: 128

      loading state of an object changed e.g. a toolgenerator started or finished loading

    • ReadonlyNONE: 0

      no changes

    • ReadonlyOBJECT_TREE_CHANGED: 1024

      changes to the object tree e.g. an object is added or removed from the object tree, or moved within the object tree

    • ReadonlyOPTIONS: 64

      available options of an object changed e.g. new options are available, options were removed, attributes of an option changed NOTE = this is NOT about the values of options; those are handled by the CONFIG flag

    • ReadonlyVIEWPORT: 2

      viewport configuration changed e.g. the range of the visible data was adjusted because the user scrolled manually, or the zoom function was called, or the configuration of a scale changed, etc

    • ReadonlyVIEWPORT_RATIO: 32

      set if the viewport ratio changed if the complete controller is resized (controller.set('height',x) all contained charts are proportionally resized as well; in this case their "size ratios" stay the same however, if only one or two charts were resized (manually by the user, or by calling chart.set('height', x), the ratios change; the event will only be set in these cases

    • ReadonlyVIEWPORT_SIZE: 16

      set if the viewport size changed e.g. if the complete controller along with all charts was resized, or if only individual charts were resized