mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-21 12:06:35 +08:00
@@ -1,14 +1,3 @@
|
||||
import type {
|
||||
BaseElementProps,
|
||||
PointTestOptions,
|
||||
} from '@blocksuite/block-std/gfx';
|
||||
import {
|
||||
convert,
|
||||
derive,
|
||||
field,
|
||||
GfxPrimitiveElementModel,
|
||||
watch,
|
||||
} from '@blocksuite/block-std/gfx';
|
||||
import {
|
||||
Bound,
|
||||
getBoundFromPoints,
|
||||
@@ -27,6 +16,14 @@ import {
|
||||
transformPointsToNewBound,
|
||||
Vec,
|
||||
} from '@blocksuite/global/gfx';
|
||||
import type { BaseElementProps, PointTestOptions } from '@blocksuite/std/gfx';
|
||||
import {
|
||||
convert,
|
||||
derive,
|
||||
field,
|
||||
GfxPrimitiveElementModel,
|
||||
watch,
|
||||
} from '@blocksuite/std/gfx';
|
||||
|
||||
import { type Color, DefaultTheme } from '../../themes/index';
|
||||
|
||||
|
||||
@@ -1,14 +1,3 @@
|
||||
import type {
|
||||
BaseElementProps,
|
||||
PointTestOptions,
|
||||
SerializedElement,
|
||||
} from '@blocksuite/block-std/gfx';
|
||||
import {
|
||||
derive,
|
||||
field,
|
||||
GfxPrimitiveElementModel,
|
||||
local,
|
||||
} from '@blocksuite/block-std/gfx';
|
||||
import type { IVec, SerializedXYWH, XYWH } from '@blocksuite/global/gfx';
|
||||
import {
|
||||
Bound,
|
||||
@@ -23,6 +12,17 @@ import {
|
||||
polyLineNearestPoint,
|
||||
Vec,
|
||||
} from '@blocksuite/global/gfx';
|
||||
import type {
|
||||
BaseElementProps,
|
||||
PointTestOptions,
|
||||
SerializedElement,
|
||||
} from '@blocksuite/std/gfx';
|
||||
import {
|
||||
derive,
|
||||
field,
|
||||
GfxPrimitiveElementModel,
|
||||
local,
|
||||
} from '@blocksuite/std/gfx';
|
||||
import * as Y from 'yjs';
|
||||
|
||||
import {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { GfxLocalElementModel } from '@blocksuite/block-std/gfx';
|
||||
import type { PointLocation } from '@blocksuite/global/gfx';
|
||||
import { GfxLocalElementModel } from '@blocksuite/std/gfx';
|
||||
|
||||
import {
|
||||
ConnectorMode,
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
import type { IVec, PointLocation } from '@blocksuite/global/gfx';
|
||||
import { Bound, linePolygonIntersects } from '@blocksuite/global/gfx';
|
||||
import type {
|
||||
BaseElementProps,
|
||||
GfxModel,
|
||||
SerializedElement,
|
||||
} from '@blocksuite/block-std/gfx';
|
||||
} from '@blocksuite/std/gfx';
|
||||
import {
|
||||
canSafeAddToContainer,
|
||||
field,
|
||||
GfxGroupLikeElementModel,
|
||||
local,
|
||||
observe,
|
||||
} from '@blocksuite/block-std/gfx';
|
||||
import type { IVec, PointLocation } from '@blocksuite/global/gfx';
|
||||
import { Bound, linePolygonIntersects } from '@blocksuite/global/gfx';
|
||||
} from '@blocksuite/std/gfx';
|
||||
import * as Y from 'yjs';
|
||||
|
||||
type GroupElementProps = BaseElementProps & {
|
||||
|
||||
@@ -1,14 +1,3 @@
|
||||
import type {
|
||||
BaseElementProps,
|
||||
PointTestOptions,
|
||||
} from '@blocksuite/block-std/gfx';
|
||||
import {
|
||||
convert,
|
||||
derive,
|
||||
field,
|
||||
GfxPrimitiveElementModel,
|
||||
watch,
|
||||
} from '@blocksuite/block-std/gfx';
|
||||
import {
|
||||
Bound,
|
||||
getBoundFromPoints,
|
||||
@@ -27,6 +16,14 @@ import {
|
||||
transformPointsToNewBound,
|
||||
Vec,
|
||||
} from '@blocksuite/global/gfx';
|
||||
import type { BaseElementProps, PointTestOptions } from '@blocksuite/std/gfx';
|
||||
import {
|
||||
convert,
|
||||
derive,
|
||||
field,
|
||||
GfxPrimitiveElementModel,
|
||||
watch,
|
||||
} from '@blocksuite/std/gfx';
|
||||
|
||||
import { DEFAULT_HIGHLIGHTER_LINE_WIDTH } from '../../consts';
|
||||
import { type Color, DefaultTheme } from '../../themes/index';
|
||||
|
||||
@@ -1,20 +1,20 @@
|
||||
import type { Bound, SerializedXYWH, XYWH } from '@blocksuite/global/gfx';
|
||||
import { deserializeXYWH } from '@blocksuite/global/gfx';
|
||||
import { assertType, noop } from '@blocksuite/global/utils';
|
||||
import type {
|
||||
BaseElementProps,
|
||||
GfxModel,
|
||||
GfxPrimitiveElementModel,
|
||||
PointTestOptions,
|
||||
SerializedElement,
|
||||
} from '@blocksuite/block-std/gfx';
|
||||
} from '@blocksuite/std/gfx';
|
||||
import {
|
||||
convert,
|
||||
field,
|
||||
GfxGroupLikeElementModel,
|
||||
observe,
|
||||
watch,
|
||||
} from '@blocksuite/block-std/gfx';
|
||||
import type { Bound, SerializedXYWH, XYWH } from '@blocksuite/global/gfx';
|
||||
import { deserializeXYWH } from '@blocksuite/global/gfx';
|
||||
import { assertType, noop } from '@blocksuite/global/utils';
|
||||
} from '@blocksuite/std/gfx';
|
||||
import { generateKeyBetween } from 'fractional-indexing';
|
||||
import last from 'lodash-es/last';
|
||||
import pick from 'lodash-es/pick';
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import type { PointTestOptions } from '@blocksuite/block-std/gfx';
|
||||
import type { IBound, IVec } from '@blocksuite/global/gfx';
|
||||
import {
|
||||
Bound,
|
||||
@@ -12,6 +11,7 @@ import {
|
||||
polygonNearestPoint,
|
||||
rotatePoints,
|
||||
} from '@blocksuite/global/gfx';
|
||||
import type { PointTestOptions } from '@blocksuite/std/gfx';
|
||||
|
||||
import { DEFAULT_CENTRAL_AREA_RATIO } from '../../../consts/index.js';
|
||||
import type { ShapeElementModel } from '../shape.js';
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import type { PointTestOptions } from '@blocksuite/block-std/gfx';
|
||||
import {
|
||||
Bound,
|
||||
clamp,
|
||||
@@ -13,6 +12,7 @@ import {
|
||||
toRadian,
|
||||
Vec,
|
||||
} from '@blocksuite/global/gfx';
|
||||
import type { PointTestOptions } from '@blocksuite/std/gfx';
|
||||
|
||||
import { DEFAULT_CENTRAL_AREA_RATIO } from '../../../consts/index.js';
|
||||
import type { ShapeElementModel } from '../shape.js';
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import type { PointTestOptions } from '@blocksuite/block-std/gfx';
|
||||
import type { IBound, IVec } from '@blocksuite/global/gfx';
|
||||
import {
|
||||
Bound,
|
||||
@@ -12,6 +11,7 @@ import {
|
||||
polygonNearestPoint,
|
||||
rotatePoints,
|
||||
} from '@blocksuite/global/gfx';
|
||||
import type { PointTestOptions } from '@blocksuite/std/gfx';
|
||||
|
||||
import { DEFAULT_CENTRAL_AREA_RATIO } from '../../../consts/index.js';
|
||||
import type { ShapeElementModel } from '../shape.js';
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import type { PointTestOptions } from '@blocksuite/block-std/gfx';
|
||||
import type { IBound, IVec } from '@blocksuite/global/gfx';
|
||||
import {
|
||||
Bound,
|
||||
@@ -12,6 +11,7 @@ import {
|
||||
polygonNearestPoint,
|
||||
rotatePoints,
|
||||
} from '@blocksuite/global/gfx';
|
||||
import type { PointTestOptions } from '@blocksuite/std/gfx';
|
||||
|
||||
import { DEFAULT_CENTRAL_AREA_RATIO } from '../../../consts/index.js';
|
||||
import type { ShapeElementModel } from '../shape.js';
|
||||
|
||||
@@ -1,14 +1,3 @@
|
||||
import type {
|
||||
BaseElementProps,
|
||||
PointTestOptions,
|
||||
} from '@blocksuite/block-std/gfx';
|
||||
import {
|
||||
field,
|
||||
GfxLocalElementModel,
|
||||
GfxPrimitiveElementModel,
|
||||
local,
|
||||
prop,
|
||||
} from '@blocksuite/block-std/gfx';
|
||||
import type {
|
||||
Bound,
|
||||
IBound,
|
||||
@@ -16,6 +5,14 @@ import type {
|
||||
PointLocation,
|
||||
SerializedXYWH,
|
||||
} from '@blocksuite/global/gfx';
|
||||
import type { BaseElementProps, PointTestOptions } from '@blocksuite/std/gfx';
|
||||
import {
|
||||
field,
|
||||
GfxLocalElementModel,
|
||||
GfxPrimitiveElementModel,
|
||||
local,
|
||||
prop,
|
||||
} from '@blocksuite/std/gfx';
|
||||
import * as Y from 'yjs';
|
||||
|
||||
import {
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import type { BaseElementProps } from '@blocksuite/block-std/gfx';
|
||||
import { field, GfxPrimitiveElementModel } from '@blocksuite/block-std/gfx';
|
||||
import type { IVec, SerializedXYWH } from '@blocksuite/global/gfx';
|
||||
import {
|
||||
Bound,
|
||||
@@ -8,6 +6,8 @@ import {
|
||||
pointInPolygon,
|
||||
polygonNearestPoint,
|
||||
} from '@blocksuite/global/gfx';
|
||||
import type { BaseElementProps } from '@blocksuite/std/gfx';
|
||||
import { field, GfxPrimitiveElementModel } from '@blocksuite/std/gfx';
|
||||
import * as Y from 'yjs';
|
||||
|
||||
import {
|
||||
|
||||
Reference in New Issue
Block a user