|
@@ -23,6 +23,7 @@ interface ServicePosition {
|
|
|
mat: string
|
|
|
fontSize: number,
|
|
|
lineHeight: number,
|
|
|
+ visibilityRange: number
|
|
|
}
|
|
|
|
|
|
export enum TaggingPositionType {
|
|
@@ -38,6 +39,7 @@ export interface TaggingPosition {
|
|
|
fontSize: number,
|
|
|
lineHeight: number,
|
|
|
globalVisibility: boolean
|
|
|
+ visibilityRange: number
|
|
|
|
|
|
type: TaggingPositionType
|
|
|
mat: Tagging3DProps['mat']
|
|
@@ -58,6 +60,7 @@ const serviceToLocal = (position: ServicePosition, taggingId?: Tagging['id']): T
|
|
|
scale: 1,
|
|
|
rotation: 0
|
|
|
},
|
|
|
+ visibilityRange: position.visibilityRange || 30,
|
|
|
fontSize: position.fontSize || 12,
|
|
|
lineHeight: position.lineHeight || 1,
|
|
|
})
|
|
@@ -72,7 +75,8 @@ const localToService = (position: TaggingPosition, update = false): PartialProps
|
|
|
mat: position.mat && JSON.stringify(position.mat),
|
|
|
normal: JSON.stringify(position.normal),
|
|
|
fontSize: position.fontSize,
|
|
|
- lineHeight: position.lineHeight
|
|
|
+ lineHeight: position.lineHeight,
|
|
|
+ visibilityRange: position.visibilityRange
|
|
|
})
|
|
|
|
|
|
|