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.
| 1234567891011121314 |
- import { useSelector } from 'state'
- import { getShapeUtils } from 'state/shape-utils'
- import { deepCompareArrays } from 'utils'
- import tld from 'utils/tld'
-
- export default function useShapesToRender(): string[] {
- return useSelector(
- (s) =>
- Object.values(tld.getPage(s.data).shapes)
- .filter((shape) => shape && !getShapeUtils(shape).isForeignObject)
- .map((shape) => shape.id),
- deepCompareArrays
- )
- }
|