mirror of
https://codeberg.org/demostf/frontend.git
synced 2026-06-03 18:24:12 +02:00
style fixes
This commit is contained in:
parent
fff554c3d3
commit
2dee28d022
4 changed files with 5 additions and 20 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import {CenteredPanZoom} from './CenteredPanZoom';
|
||||
import {createSignal} from "solid-js";
|
||||
import {createSignal, ParentProps} from "solid-js";
|
||||
|
||||
export interface PannerProps {
|
||||
width: number;
|
||||
|
|
@ -10,10 +10,9 @@ export interface PannerProps {
|
|||
height: number;
|
||||
};
|
||||
onScale?: (scale: number) => any;
|
||||
children: Element;
|
||||
}
|
||||
|
||||
export const Panner = (props: PannerProps) => {
|
||||
export const Panner = (props: ParentProps<PannerProps>) => {
|
||||
const [scale, setScale] = createSignal(0);
|
||||
const [translateX, setTranslateX] = createSignal(0);
|
||||
const [translateY, setTranslateY] = createSignal(0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue