UNPKG

molstar

Version:

A comprehensive macromolecular library.

17 lines (16 loc) 563 B
/** * Copyright (c) 2017 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author David Sehnal <david.sehnal@gmail.com> */ var BitFlags; (function (BitFlags) { function create(flags) { return flags; } BitFlags.create = create; function has(flags, flag) { return (flags & flag) !== 0; } BitFlags.has = has; /** toCheck must be non-zero */ function hasAll(flags, toCheck) { return !!toCheck && (flags & toCheck) === toCheck; } BitFlags.hasAll = hasAll; })(BitFlags || (BitFlags = {})); export { BitFlags };