Skip to content
Snippets Groups Projects
picking.ts 520 B
/**
 * Copyright (c) 2018 mol* contributors, licensed under MIT, See LICENSE file for more info.
 *
 * @author Alexander Rose <alexander.rose@weirdbyte.de>
 */

export interface PickingId {
    objectId: number
    instanceId: number
    groupId: number
}

export namespace PickingId {
    export function areSame(a: PickingId, b: PickingId) {
        return a.objectId === b.objectId && a.instanceId === b.instanceId && a.groupId === b.groupId;
    }
}

export interface PickingInfo {
    label: string
    data?: any
}