|
@@ -18,7 +18,7 @@ interface ServicePosition {
|
|
|
"tagPoint": string,
|
|
|
normal: string
|
|
|
|
|
|
- globalVisibility: number
|
|
|
+ show3dTitle: number
|
|
|
type: string,
|
|
|
mat: string
|
|
|
fontSize: number,
|
|
@@ -54,7 +54,7 @@ const serviceToLocal = (position: ServicePosition, taggingId?: Tagging['id']): T
|
|
|
taggingId: taggingId || position.tagId.toString(),
|
|
|
localPos: JSON.parse(position.tagPoint),
|
|
|
type: (position.type || TaggingPositionType['2d']) as TaggingPositionType,
|
|
|
- globalVisibility: Boolean(position.globalVisibility),
|
|
|
+ globalVisibility: Boolean(position.show3dTitle),
|
|
|
normal: position.normal ? JSON.parse(position.normal) : { x: 0, y: 0, z: 1 },
|
|
|
mat: position.mat ? JSON.parse(position.mat) : {
|
|
|
scale: 1,
|
|
@@ -70,7 +70,7 @@ const localToService = (position: TaggingPosition, update = false): PartialProps
|
|
|
"tagId": Number(position.taggingId),
|
|
|
"fusionNumId": Number(position.modelId),
|
|
|
"tagPoint": JSON.stringify(position.localPos),
|
|
|
- globalVisibility: Number(position.globalVisibility),
|
|
|
+ show3dTitle: Number(position.globalVisibility),
|
|
|
type: position.type,
|
|
|
mat: position.mat && JSON.stringify(position.mat),
|
|
|
normal: JSON.stringify(position.normal),
|