mirror of
https://codeberg.org/demostf/frontend.git
synced 2026-06-04 02:34:13 +02:00
some basic viewer
This commit is contained in:
parent
2dee28d022
commit
5910b2f35a
45 changed files with 1089 additions and 1436 deletions
|
|
@ -85,9 +85,14 @@ export const Panner = (props: ParentProps<PannerProps>) => {
|
|||
y: Math.floor(panner.screen.height / 2)
|
||||
});
|
||||
|
||||
const pannerStyle = () => {
|
||||
console.log(props.width, props.height, props.scale);
|
||||
return {width: `${props.width}px`, height: `${props.height}px`}
|
||||
};
|
||||
|
||||
return (
|
||||
<div class="pan-zoom-element"
|
||||
style={{width: `${props.width}px`, height: `${props.height}px`}}
|
||||
style={pannerStyle()}
|
||||
onMouseDown={mouseDown}
|
||||
onWheel={mouseWheel}>
|
||||
<div class="content-container noselect"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue