UNPKG
globalbridge-lsf-custom
Version:
latest (1.0.2)
1.0.2
1.0.1
1.0.0
GlobalBridge in-house labeling tool, originating from LSF.
globalbridge-lsf-custom
/
src
/
mixins
/
TagParentMixin.js
12 lines
(10 loc)
•
298 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
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
); }, }));