Skip to content
Snippets Groups Projects
Select Git revision
  • 1e9bd97121256e7da2617d008bb96e89bbe3a2e1
  • master default protected
  • rednatco-v2
  • rednatco
  • test
  • ntc-tube-uniform-color
  • ntc-tube-missing-atoms
  • restore-vertex-array-per-program
  • watlas2
  • dnatco_new
  • cleanup-old-nodejs
  • webmmb
  • fix_auth_seq_id
  • update_deps
  • ext_dev
  • ntc_balls
  • nci-2
  • plugin
  • bugfix-0.4.5
  • nci
  • servers
  • v0.5.0-dev.1
  • v0.4.5
  • v0.4.4
  • v0.4.3
  • v0.4.2
  • v0.4.1
  • v0.4.0
  • v0.3.12
  • v0.3.11
  • v0.3.10
  • v0.3.9
  • v0.3.8
  • v0.3.7
  • v0.3.6
  • v0.3.5
  • v0.3.4
  • v0.3.3
  • v0.3.2
  • v0.3.1
  • v0.3.0
41 results

loci.ts

Blame
  • loci.ts 806 B
    /**
     * Copyright (c) 2018 mol* contributors, licensed under MIT, See LICENSE file for more info.
     *
     * @author Alexander Rose <alexander.rose@weirdbyte.de>
     */
    
    import { Element } from './structure'
    import { Link } from './structure/structure/unit/links'
    
    /** A Loci that includes every loci */
    export const EveryLoci = { kind: 'every-loci' as 'every-loci' }
    export type EveryLoci = typeof EveryLoci
    export function isEveryLoci(x: any): x is EveryLoci {
        return !!x && x.kind === 'every-loci';
    }
    
    /** A Loci that that is empty */
    export const EmptyLoci = { kind: 'empty-loci' as 'empty-loci' }
    export type EmptyLoci = typeof EmptyLoci
    export function isEmptyLoci(x: any): x is EmptyLoci {
        return !!x && x.kind === 'empty-loci';
    }
    
    export type Loci =  Element.Loci | Link.Loci | EveryLoci | EmptyLoci