Skip to content

BlockSuite API Documentation / @blocksuite/blocks / CommonUtils

Variable: CommonUtils

const CommonUtils: object

Type declaration

almostEqual

almostEqual: typeof __type

clamp

clamp: typeof __type

generateElementId

generateElementId: typeof __type

generateKeyBetween

generateKeyBetween: typeof __type

getPointFromBoundsWithRotation

getPointFromBoundsWithRotation: typeof __type

getStroke

getStroke: typeof __type

getSvgPathFromStroke

getSvgPathFromStroke: typeof __type

intersects

intersects: typeof __type

isOverlap

isOverlap: typeof __type

isPointIn

isPointIn: typeof __type

lineIntersects

lineIntersects: typeof __type

linePolygonIntersects

linePolygonIntersects: typeof __type

normalizeDegAngle

normalizeDegAngle: typeof __type

normalizeWheelDeltaY

normalizeWheelDeltaY: typeof __type

polygonGetPointTangent

polygonGetPointTangent: typeof __type

polygonNearestPoint

polygonNearestPoint: typeof __type

polygonPointDistance

polygonPointDistance: typeof __type

polyLineNearestPoint

polyLineNearestPoint: typeof __type

rotatePoints

rotatePoints: typeof __type

sign

sign: typeof __type

toDegree

toDegree: typeof __type

toRadian

toRadian: typeof __type

Defined in

packages/affine/block-surface/dist/index.d.ts:48