Add mouse coordinate view with click to copy

Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
This commit is contained in:
2026-05-24 15:31:38 -07:00
parent f0d06bb931
commit d3d51a04d6
4 changed files with 56 additions and 18 deletions

View File

@@ -73,7 +73,7 @@ class AnnotationHandler extends CodeContentHandler {
return;
}
$output->setText( self::buildSvg($metadata) );
$output->setText( '<div id="svg-wrapper" style="position: relative;">' . self::buildSvg($metadata) . '</div>' );
}
/**
@@ -124,8 +124,8 @@ class AnnotationHandler extends CodeContentHandler {
'xmlns' => 'http://www.w3.org/2000/svg',
'width' => $baseWidth,
'height' => $baseHeight,
'style' => 'width: 100%; height: auto;'
'style' => 'width: 100%; height: auto;',
'mwScale' => $fixScale
);
$elCompass = '';
$useCompass = '';