comments > get absolute position of new comment

This commit is contained in:
isUnknown 2024-11-06 16:38:46 +01:00
parent c0a29c0d18
commit 6e0b2299e2
4 changed files with 133 additions and 16 deletions

View file

@ -72,4 +72,67 @@ Comments:
isRead: false
position:
x: null
y: null
y: null
-
page:
uri: projects/miss-dior-blooming-bouquet
title: Miss Dior Blooming Bouquet
file:
uuid: file://s0lNtRA0Z7ybTCWG
pageIndex: 1
replies: [ ]
text: test
author:
name: Adrien Payet
email: adrien.payet@outlook.com
uuid: user://WWjXgPWk
role: admin
date: 2024-11-06T16:19:29+01:00
id: m360ymc1
type: comment
isRead: false
position:
x: "148.03332519531"
y: 162
-
page:
uri: projects/miss-dior-blooming-bouquet
title: Miss Dior Blooming Bouquet
file:
uuid: file://s0lNtRA0Z7ybTCWG
pageIndex: 1
replies: [ ]
text: Nouveau commentaire positionné
author:
name: Adrien Payet
email: adrien.payet@outlook.com
uuid: user://WWjXgPWk
role: admin
date: 2024-11-06T16:33:11+01:00
id: m361g8sk
type: comment
isRead: false
position:
x: "215.03332519531"
y: 181
-
page:
uri: projects/miss-dior-blooming-bouquet
title: Miss Dior Blooming Bouquet
file:
uuid: file://s0lNtRA0Z7ybTCWG
pageIndex: 1
replies: [ ]
text: commentaire positionné
author:
name: Adrien Payet
email: adrien.payet@outlook.com
uuid: user://WWjXgPWk
role: admin
date: 2024-11-06T16:35:30+01:00
id: m361j842
type: comment
isRead: false
position:
x: '239.03332519531'
y: 74

View file

@ -21,8 +21,8 @@ return [
'file' => $file,
'filePageIndex' => $data->filePageIndex,
'position' => [
'x' => null,
'y' => null
'x' => $data->position->x,
'y' => $data->position->y
],
'replies' => [],
'text' => $data->text,