Chartbreaker
    Preparing search index...

    Type Alias ObjectEFlags

    ObjectEFlags: number

    An enum containing various bit flags to indicate properties for instances of ChartbreakerObject or it's options Bits 1-16 are reserved by ChartBreaker; applications may use all aditional bits

    Checking for a flag

      // manually
    var isLocked = (object.get('objFlags') & ObjectEFlags.LOCKED);
    // using the utility methods
    var isLocked = utils.hasFlag(object, ObjectEFlags.LOCKED);

    Modifying flags

    Unlike most other config values, you will probably not want to directly set a new value most of the time. Instead, you might want to add, remove or toggle flags

      // adding a flag manually using |
    object.set('objFlags', object.get('objFlags') | ObjectEFlags.LOCKED);
    // using the utility method
    utils.addFlag(object, ObjectEFlags.LOCKED);
    // removing a flag manually using &~
    object.set('objFlags', object.get('objFlags') & ~ObjectEFlags.LOCKED);
    // using the utility method
    utils.rmFlag(object, ObjectEFlags.LOCKED);
    // toggling flags manually using ^
    object.set('objFlags', object.get('objFlags') ^ ObjectEFlags.LOCKED);

    bit flags combine via |, so the value type is a plain number