UNPKG

globalbridge-lsf-custom

Version:

GlobalBridge in-house labeling tool, originating from LSF.

12 lines (10 loc) • 298 B
import { types } from 'mobx-state-tree'; import Types from '../core/Types'; export const TagParentMixin = types.model('AnnotationMixin', { parentTypes: Types.tagsTypes([]), }).views((self) => ({ get parent() { return Types.getParentTagOfTypeString(self, self.parentTypes); }, }));