daily: 2021-09-26

This commit is contained in:
2021-09-27 00:40:21 +08:00
parent 93e19c05af
commit fb671cd62a
22 changed files with 2295 additions and 64 deletions
+28
View File
@@ -0,0 +1,28 @@
export default function Row({
children,
type,
editable,
offset,
offsetX,
offsetY,
...props
}) {
offsetX = (offset?.x ?? offsetX) | 0;
offsetY = (offset?.y ?? offsetY) | 0;
return (
<g
type={type}
transform={`translate(${offsetX},${offsetY})`}
style={
editable
? {
cursor: "pointer",
}
: null
}
{...props}
>
{children}
</g>
);
}