Removed nativeObject from the API
This commit is contained in:
parent
b63fcb9f1e
commit
6b373ccae5
8 changed files with 7 additions and 9 deletions
|
@ -19,7 +19,7 @@ const Box: React.FC<{
|
|||
selection: ISheetObject[]
|
||||
}> = ({id, sheet, selection}) => {
|
||||
// This is cheap to call and always returns the same value, so no need for useMemo()
|
||||
const obj = sheet.object(id, null, boxObjectConfig)
|
||||
const obj = sheet.object(id, boxObjectConfig)
|
||||
|
||||
const isSelected = selection.includes(obj)
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ const Box: React.FC<{
|
|||
selection: ISheetObject[]
|
||||
}> = ({id, sheet, selection: selection}) => {
|
||||
// This is cheap to call and always returns the same value, so no need for useMemo()
|
||||
const obj = sheet.object('object ' + id, null, boxObjectConfig)
|
||||
const obj = sheet.object('object ' + id, boxObjectConfig)
|
||||
|
||||
const isSelected = selection.includes(obj)
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ const TurtleRenderer: React.FC<{
|
|||
dimsRef.current = {width: props.width, height: props.height}
|
||||
|
||||
const obj = useMemo(() => {
|
||||
return props.sheet.object(props.objKey, null, objConfig)
|
||||
return props.sheet.object(props.objKey, objConfig)
|
||||
}, [props.sheet, props.objKey])
|
||||
|
||||
useEffect(() => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue