Skip to content

BlockSuite API Documentation / @blocksuite/blocks / CommonUtils

Variable: CommonUtils

const CommonUtils: object

Type declaration

almostEqual

almostEqual: typeof almostEqual

clamp

clamp: typeof clamp

generateElementId

generateElementId: typeof generateElementId

generateKeyBetween

generateKeyBetween: typeof generateKeyBetween

getBoundsWithRotation

getBoundsWithRotation: typeof getBoundsWithRotation

getPointFromBoundsWithRotation

getPointFromBoundsWithRotation: typeof getPointFromBoundsWithRotation

getPointsFromBoundsWithRotation

getPointsFromBoundsWithRotation: typeof getPointsFromBoundsWithRotation

getQuadBoundsWithRotation

getQuadBoundsWithRotation: typeof getQuadBoundsWithRotation

getStroke

getStroke: typeof getStroke

getSvgPathFromStroke

getSvgPathFromStroke: typeof getSvgPathFromStroke

intersects

intersects: typeof intersects

isOverlap

isOverlap: typeof isOverlap

isPointIn

isPointIn: typeof isPointIn

lineIntersects

lineIntersects: typeof lineIntersects

linePolygonIntersects

linePolygonIntersects: typeof linePolygonIntersects

normalizeDegAngle

normalizeDegAngle: typeof normalizeDegAngle

normalizeWheelDeltaY

normalizeWheelDeltaY: typeof normalizeWheelDeltaY

polygonGetPointTangent

polygonGetPointTangent: typeof polygonGetPointTangent

polygonNearestPoint

polygonNearestPoint: typeof polygonNearestPoint

polygonPointDistance

polygonPointDistance: typeof polygonPointDistance

polyLineNearestPoint

polyLineNearestPoint: typeof polyLineNearestPoint

rotatePoints

rotatePoints: typeof rotatePoints

sign

sign: typeof sign

toDegree

toDegree: typeof toDegree

toRadian

toRadian: typeof toRadian

Defined in

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