Autodesk Forge3D tagging, users add annotation information on this page, record coordinate data, exit the page, and wait until the next time the user enters the page and the page is reloaded, how to display the information marked by the user last time?
https://github.com/Autodesk-F., using this extension pack.
Markup3D.PinPoint.js:
constructor(viewer, worldPoint) {
......
this.activateLock3d(viewer);
this.setWorldPoint(worldPoint);
this.timeoutId = 0;
}
setWorldPoint ({"x": 32.04636390620801, "y": 218.75012207031264, "z": 13.843699405939578}) is the setting start coordinate
Markup3D.Label.js:
onMouseMove (event) {
if (this.parent.dragging) {
this.parent.setLeaderEndPoint({
x: event.clientX,
y: event.clientY
})
}
}
setLeaderEndPoint ({"x": 800, "y": 500}) set end coordinates
how do I execute this method to draw my own coordinate points when the page is reloaded? Or is there another way to operate?