@blocksuite/affine-model
Advanced tools
Comparing version 0.0.0-canary-20240904094417 to 0.0.0-canary-20240905001306
@@ -1,2 +0,2 @@ | ||
import type { GfxBlockElementModel } from '@blocksuite/block-std/gfx'; | ||
import type { GfxBlockElementModel, GfxModel } from '@blocksuite/block-std/gfx'; | ||
import { type GfxContainerElement, type GfxElementGeometry, type PointTestOptions, gfxContainerSymbol } from '@blocksuite/block-std/gfx'; | ||
@@ -33,2 +33,3 @@ import { Bound, type SerializedXYWH } from '@blocksuite/global/utils'; | ||
addChild(element: BlockSuite.EdgelessModel | string): void; | ||
hasDescendant(element: string | GfxModel): boolean; | ||
containsBound(bound: Bound): boolean; | ||
@@ -38,3 +39,3 @@ includesPoint(x: number, y: number, _: PointTestOptions): boolean; | ||
removeChild(element: BlockSuite.EdgelessModel | string): void; | ||
get childElements(): import("@blocksuite/block-std/gfx").GfxModel[]; | ||
get childElements(): GfxModel[]; | ||
get childIds(): string[]; | ||
@@ -41,0 +42,0 @@ } |
@@ -39,2 +39,6 @@ var _a; | ||
} | ||
hasDescendant(element) { | ||
const id = typeof element === 'string' ? element : element.id; | ||
return !!this.childElementIds?.[id]; | ||
} | ||
containsBound(bound) { | ||
@@ -41,0 +45,0 @@ return this.elementBound.contains(bound); |
{ | ||
"name": "@blocksuite/affine-model", | ||
"version": "0.0.0-canary-20240904094417", | ||
"version": "0.0.0-canary-20240905001306", | ||
"description": "Default BlockSuite editable blocks.", | ||
@@ -12,6 +12,6 @@ "type": "module", | ||
"zod": "^3.23.8", | ||
"@blocksuite/block-std": "0.0.0-canary-20240904094417", | ||
"@blocksuite/global": "0.0.0-canary-20240904094417", | ||
"@blocksuite/store": "0.0.0-canary-20240904094417", | ||
"@blocksuite/inline": "0.0.0-canary-20240904094417" | ||
"@blocksuite/block-std": "0.0.0-canary-20240905001306", | ||
"@blocksuite/store": "0.0.0-canary-20240905001306", | ||
"@blocksuite/inline": "0.0.0-canary-20240905001306", | ||
"@blocksuite/global": "0.0.0-canary-20240905001306" | ||
}, | ||
@@ -18,0 +18,0 @@ "exports": { |
@@ -1,2 +0,2 @@ | ||
import type { GfxBlockElementModel } from '@blocksuite/block-std/gfx'; | ||
import type { GfxBlockElementModel, GfxModel } from '@blocksuite/block-std/gfx'; | ||
@@ -59,2 +59,7 @@ import { | ||
hasDescendant(element: string | GfxModel): boolean { | ||
const id = typeof element === 'string' ? element : element.id; | ||
return !!this.childElementIds?.[id]; | ||
} | ||
override containsBound(bound: Bound): boolean { | ||
@@ -61,0 +66,0 @@ return this.elementBound.contains(bound); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
555886
7668
+ Added@blocksuite/block-std@0.0.0-canary-20240905001306(transitive)
+ Added@blocksuite/global@0.0.0-canary-20240905001306(transitive)
+ Added@blocksuite/inline@0.0.0-canary-20240905001306(transitive)
+ Added@blocksuite/store@0.0.0-canary-20240905001306(transitive)
+ Added@blocksuite/sync@0.0.0-canary-20240905001306(transitive)
+ Addedfractional-indexing@3.2.0(transitive)
- Removed@blocksuite/block-std@0.0.0-canary-20240904094417(transitive)
- Removed@blocksuite/global@0.0.0-canary-20240904094417(transitive)
- Removed@blocksuite/inline@0.0.0-canary-20240904094417(transitive)
- Removed@blocksuite/store@0.0.0-canary-20240904094417(transitive)
- Removed@blocksuite/sync@0.0.0-canary-20240904094417(transitive)