also remove the masking thing

lu/remove-note-parenting-extras
Steve Ruiz 2024-04-08 15:18:32 +01:00
rodzic 5e050322a9
commit ca873978c8
1 zmienionych plików z 1 dodań i 7 usunięć

Wyświetl plik

@ -4048,13 +4048,7 @@ export class Editor extends EventEmitter<TLEventMap> {
/** @internal */
@computed private _getShapeMaskCache(): ComputedCache<Vec[], TLShape> {
return this.store.createComputedCache('pageMaskCache', (shape) => {
// todo: Consider adding a flag for this hardcoded behaviour
if (
isPageId(shape.parentId) ||
shape.type === 'note' ||
this.findShapeAncestor(shape, (v) => v.type === 'note')
)
return undefined
if (isPageId(shape.parentId)) return undefined
const frameAncestors = this.getShapeAncestors(shape.id).filter((shape) =>
this.isShapeOfType<TLFrameShape>(shape, 'frame')