feat(lms): sequence als Klick ins Bild / Sequence as click-in-image - #220
Merged
Conversation
DE: - Die sequence-Form zeigt jetzt das Level-Bild als Klickflaeche. Der Browser sammelt nur Klickpunkte (relativ 0..1) und schickt sie zum Server; welcher Bereich getroffen wurde, entscheidet der Server - Erst die Antwort enthaelt die rects der gefundenen Bereiche und markiert sie im Bild; nicht Gefundenes bleibt unsichtbar - Das Bild wird per fetch mit Auth geladen und als Blob-URL angezeigt - ein img-src kann keine Bearer-Header senden - Letzten Klick zuruecknehmen; ohne Bild bleibt die Texteingabe fuer Textmarken - Ersetzt die Texteingabe-Behelfsloesung aus dem vorigen Commit EN: - The sequence form now shows the level image as a click surface. The browser only collects click points (relative 0..1) and sends them to the server; the server decides which area was hit - Only the response contains the rects of found areas and marks them in the image; what was not found stays invisible - The image is fetched with auth and shown as a blob URL - an img src cannot send bearer headers - Undo last click; without an image the text input for text markers remains - Replaces the text-input stopgap from the previous commit Signed-off-by: marci <support@secure-bits.org> (cherry picked from commit 6ee5485)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Nachzügler zu #218: Dieser Commit wurde auf den Branch gepusht, nachdem #218 bereits gesquasht gemergt war, und hat
maindeshalb nie erreicht.Die
sequence-Form zeigt das Level-Bild als Klickfläche. Der Browser sammelt nur Klickpunkte (relativ 0..1); welcher Bereich getroffen wurde, entscheidet der Server — erst die Antwort enthält dierects der gefundenen Bereiche und markiert sie im Bild. Das Bild wird per fetch mit Auth als Blob-URL geladen (einimg srckann keine Bearer-Header senden). Letzter Klick zurücknehmbar; ohne Bild bleibt die Texteingabe für Textmarken.Gegenstücke (Bild-Endpunkt, Klick-Auflösung) sind über enterprise #63 bereits auf
master.tscund Build laufen durch.