Skip to content
DGM.js
beta
Search
Cancel
GitHub
Twitter
Select theme
Dark
Light
Auto
Overview
Getting started
License
Guides
Introduction
Smart shape
Document and pages
Handlers
Selection
Factory
Mutating shapes
Plugins
Script Language
@dgmjs/react
DGMEditor
DGMEditorCore
DGMFloatingToolbarHolder
DGMTextInplaceEditor
DGMShapeView
DGMPageView
@dgmjs/core
Namespaces
geometry
functions
angle
assign
boundingPath
boundingRect
center
centroidPolygon
copy
copyRect
curvePathPoints
curveToBezier
distance
distanceToLine
distanceToPath
equalRect
equals
equalsPath
expandRect
findNearestOnLine
findNearestOnPath
fitScaleTo
generatePath
getNearSegment
getPointAtDistance
getPointOnLine
getPointOnPath
getPositionOnLine
getPositionOnPath
height
inCircle
includeRect
inPolygon
inRect
inSquare
intersect
isClosed
isHorz
isRectilinear
isVert
lineOverlapRect
mid
move
movePoints
normalizeAngle
normalizeRect
overlapRect
pathCopy
pathIntersect
pathLength
pointsOnBezier
pointsOnEllipse
projectPoints
quantize
rectToPolygon
reduceObliquePath
reduceRectilinearPath
rotate
scaleRect
square
toDegree
toRadian
unionRect
width
handlers
classes
ConnectorFactoryHandler
EllipseFactoryHandler
EmbedFactoryHandler
EraserHandler
FrameFactoryHandler
FreehandFactoryHandler
HandHandler
HighlighterFactoryHandler
ImageFactoryHandler
LineFactoryHandler
MirrorFactoryHandler
RectangleFactoryHandler
SelectHandler
TextFactoryHandler
macro
functions
addPage
addShape
adjustConnectorRoute
assignPath
bringForward
bringToFront
changeParent
deleteShapes
deleteSingleShape
groupShapes
moveAnchor
moveConnectorEnd
moveConnectorEndPoint
moveShapes
moveSingleShape
removePage
reorderPage
resizeShape
resolveAllConstraints
resolveShapeConstraints
sendBackward
sendToBack
setBottom
setFontColor
setFontFamily
setFontSize
setHeight
setHorzAlign
setLeft
setLeftRight
setPath
setRight
setTop
setTopBottom
setWidth
ungroupShapes
shapeUtils
functions
duplicateShapes
getAllBoundingRect
getAllConnectorsTo
getAllDescendant
getAllMirrors
getAllReferers
getAllViewport
textUtils
functions
convertStringToTextNode
convertTextNodeToString
extractTextFromShapes
getTextNodeFont
measureText
preprocessTextNode
renderTextDocNode
renderTextShape
splitWords
stripUnit
visitTextNodes
utils
functions
angleInCCS
boxInCCS
boxInGCS
ccs2gcs
ccs2lcs
gcs2ccs
gcs2dcs
gcs2lcs
getSvgPathFromStroke
lcs2ccs
lcs2gcs
toCssColor
toCssFont
Classes
Action
Actions
AssignMutation
AssignRefMutation
Box
Canvas
CanvasPointerEvent
Connector
Controller
CreateMutation
DeleteMutation
Doc
Editor
Ellipse
Embed
Frame
Freehand
Group
Handler
Highlighter
Icon
Image
InsertChildMutation
KeymapManager
Line
Manipulator
MemoizationCanvas
Mirror
Mutation
Obj
Page
Path
Plugin
Rectangle
RemoveChildMutation
ReorderChildMutation
SelectionManager
Shape
ShapeFactory
Store
Text
Transaction
Transform
TypedEvent
Interfaces
CanvasState
CanvasTextMetric
Constraint
DblClickEvent
Disposable
DragEvent
EditorOptions
FileDropEvent
HandlerOptions
Listener
Property
Script
Type Aliases
BorderPositionEnum
Colors
ConstraintFn
HorzAlignEnum
KeyMap
LineEndTypeEnum
LineTypeEnum
MovableEnum
PageSize
ScriptTypeEnum
ShapeProps
SizableEnum
SVGPath
SVGPathCommand
SVGPathItem
VertAlignEnum
Variables
ActionKind
BorderPosition
constraintManager
FillStyle
HorzAlign
LineEndType
LineType
manipulatorManager
Movable
MutationType
ScriptType
shapeInstantiator
Sizable
themeColors
VertAlign
Functions
basicSetup
drawShapesOnCanvas
outerRefMapExtractor
pathToString
@dgmjs/export
Type Aliases
ExportImageFormat
ExportImageOptions
Functions
copyToClipboard
exportImageAsFile
getImageBlob
getImageDataUrl
getSVGImageData
@dgmjs/pdf
Type Aliases
ExportPDFOptions
PDFFont
PDFPageFormat
PDFPageOrientation
Functions
exportPDFAsFile
getPDFBlob
getPDFData
GitHub
Twitter
Select theme
Dark
Light
Auto
ExportImageFormat
ExportImageFormat
:
"image/png"
|
"image/svg+xml"
Source
index.ts:9