You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
363 B
16 lines
363 B
import { toBounds } from "../../../utils";
|
|
import { Props } from "./";
|
|
|
|
export function useInit(props: Props) {
|
|
const { bounds, color, weight, opacity, lineStyle, fillColor, fillOpacity } = props;
|
|
const instance = new T.Rectangle(toBounds(bounds), {
|
|
color,
|
|
weight,
|
|
opacity,
|
|
lineStyle,
|
|
fillColor,
|
|
fillOpacity
|
|
});
|
|
return instance;
|
|
}
|