ducjs - v4.0.4

Namespaces

vc

Enumerations

AXIS
BEZIER_MIRRORING
BLENDING
BOOLEAN_OPERATION
ELEMENT_CONTENT_PREFERENCE
HANDLE_TYPE
HATCH_STYLE
IMAGE_STATUS
LINE_HEAD
LINE_SPACING_TYPE
STROKE_CAP
STROKE_JOIN
STROKE_PLACEMENT
STROKE_PREFERENCE
STROKE_SIDE_PREFERENCE
TEXT_ALIGN
UNIT_SYSTEM
VERTICAL_ALIGN
YOUTUBE_STATES

Classes

BrowserDucDocument
GestureEvent

Interfaces

Actor
BlockLocalizationEntry
BoundsResult
Checkpoint
Delta
DucBlockMetadata
DucCharter
DucCharterConstraint
DucCharterDecision
DucCharterRequirement
DucIssue
DucIssueMessage
DucPointPosition
ExportedDataState
ExportedLibraryData
ExtendedBoundsResult
ImportedLibraryData
SchemaMigration
UnitDefinition
VersionBase
VersionChain
VersionGraph
VersionGraphMetadata

Type Aliases

_DucElementBase
_DucElementStylesBase
_DucLinearElementBase
_DucStackBase
_DucStackElementBase
Assert
Axis
BaseExportedDataState
BezierMirroring
Blending
BlockId
BlockLocalizationMap
BlockSource
BooleanOperation
BoundElement
Bounds
BrowserDucDocumentOptions
CallableType
CombinedMeasure
Curve
CustomHatchPattern
Dictionary
DocumentGridConfig
DucArrowElement
DucBindableElement
DucBinderElement
DucBlock
DucBlockCollection
DucBlockDuplicationArray
DucBlockInstance
DucCharterPhase
DucCommonStyle
DucDocElement
DucDocStyle
DucElbowArrowElement
DucElement
DucElementCommunicationDenyField
DucElementSelectableField
DucElementsIncludingDeleted
DucElementType
DucElementTypes
DucEllipseElement
DucEmbeddableElement
DucExternalFile
DucExternalFiles
DucFlowchartNodeElement
DucFrameElement
DucFrameLikeElement
DucFreeDrawEasing
DucFreeDrawElement
DucFreeDrawEnds
DucGenericElement
DucGlobalState
DucGroup
DucHatchStyle
DucHead
DucIframeLikeElement
DucImageElement
DucImageFilter
DucIssueAnchor
DucIssueStatus
DucLayer
DucLine
DucLinearElement
DucLinearLikeElement
DucLineReference
DucLocalState
DucModelElement
DucNonSelectionElement
DucPath
DucPdfElement
DucPdfLikeElement
DucPlotElement
DucPlotStyle
DucPoint
DucPointBinding
DucPolygonElement
DucRectangleElement
DucRegion
DucSelectionElement
DucStackLikeElement
DucStackLikeStyles
DucStreamImportOptions
DucStreamImportProgress
DucTableElement
DucTextContainer
DucTextElement
DucTextElementWithContainer
DucTextStyle
ElementAbsoluteCoords
ElementBackground
ElementConstructorOpts
ElementContentBase
ElementOrToolType
ElementsConfig
ElementsMap
ElementsMapOrArray
ElementsPendingErasure
ElementsSegmentsMap
ElementStroke
ElementUpdate
Ellipse
EmbedsValidationStatus
ExportedDataStateContent
ExternalFileId
ExternalFileLoaded
ExternalFileRevisionMeta
ExternalFilesData
ExtractSetType
FillStyle
FixedPoint
FixedPointBinding
FontFamilyKeys
FontFamilyValues
FontString
ForwardRef
FractionalIndex
FreeDrawEasingNames
GADirection
GALine
GAPoint
GATransform
GeometricPoint
GeometricShape
GeometricVector
Gesture
GroupId
HandleInfo
HandleType
HatchPatternLine
HatchStyle
Heading
ImageCrop
ImageStatus
ImperialMeasure
ImportedDataState
InitializedDucImageElement
InstanceId
JSONValue
LayerId
LibraryItem
LibraryItem_v1
LibraryItems
LibraryItems_anyVersion
LibraryItems_v1
LibraryItemsSource
Line
LineHead
LineSegment
LineSpacingType
MakeBrand
MarkNonNullable
MarkOptional
MarkRequired
MaybePromise
Merge
MetricMeasure
Mutable
NestedKeyOf
NonDeleted
NonDeletedDucElement
NonDeletedElementsMap
NonDeletedSceneElementsMap
NonOptional
NormalizedZoomValue
NullableGridSize
NVector
OpfsChunkImporter
OptionalDucElementBase
OptionalDucGroup
Ordered
OrderedDucElement
PendingDucElements
Percentage
PlotLayout
PointerCoords
PointerType
PolarCoords
Polycurve
Polygon
Polyline
PrecisionValue
Primitive
Radian
RawValue
ReadonlySetLike
RectangularElement
RegionId
ResolutionType
ResolvedFileData
RestoreConfig
RestoredDataState
RestoredLocalState
SameType
ScaledZoom
ScaleFactor
SceneElementsMap
Scope
ScopedValue
ScopedZoomValue
SetLike
SignatureType
StrokeCap
StrokeJoin
StrokePlacement
StrokePreference
StrokeSidePreference
StrokeSides
StrokeStyle
SubtypeOf
SuggestedBinding
SuggestedPointBinding
SupportedMeasures
SV
SymmetricArc
TextAlign
TilingProperties
ToolType
TuplePoint
UnitSystem
ValueOf
VersionId
VerticalAlign
Viewer3DCamera
Viewer3DClipping
Viewer3DClipPlane
Viewer3DDisplay
Viewer3DExplode
Viewer3DGrid
Viewer3DGridPlanes
Viewer3DMaterial
Viewer3DState
Viewer3DZebra
Zoom
ZoomDirection

Variables

ARROW_LABEL_FONT_SIZE_TO_MIN_WIDTH_RATIO
ARROW_LABEL_WIDTH_FRACTION
BOUND_TEXT_PADDING
charWidth
COLOR_PALETTE
DEFAULT_ADAPTIVE_RADIUS
DEFAULT_ELEMENT_PROPS
DEFAULT_ELLIPSE_ELEMENT
DEFAULT_FILENAME
DEFAULT_FONT_FAMILY
DEFAULT_FONT_SIZE
DEFAULT_FRAME_STYLE
DEFAULT_FREEDRAW_ELEMENT
DEFAULT_GRID_SIZE
DEFAULT_IFRAME_LIKE_NO_STYLE
DEFAULT_LINE_HEIGHT
DEFAULT_LINEAR_ELEMENT_STROKE
DEFAULT_POLYGON_SIDES
DEFAULT_PROPORTIONAL_RADIUS
DEFAULT_TEXT_ALIGN
DEFAULT_VERSION
DEFAULT_VERTICAL_ALIGN
DEFAULT_ZOOM_STEP
DRAGGING_THRESHOLD
DUC_ELEMENT_COMMUNICATION_DENY_FIELD_SET
DUC_ELEMENT_COMMUNICATION_DENY_FIELDS
DUC_ELEMENT_SELECTABLE_FIELDS
DUC_ELEMENT_TYPE_VALUES
DUC_VERSION
DucOpfsDocument
E0
E01
E012
E1
E12
E2
E20
EASINGS
ELEMENT_READY_TO_ERASE_OPACITY
ELEMENT_SHIFT_TRANSLATE_AMOUNT
ELEMENT_TRANSLATE_AMOUNT
EXPORT_DATA_TYPES
EXPORT_IMAGE_TYPES
FIXED_BINDING_DISTANCE
FONT_FAMILY
FREEDRAW_EASINGS
HIDE_FRAME_NAME_ZOOM_THRESHOLD
I
IMAGE_MIME_TYPES
imperialMeasures
imperialUnits
LEGACY_FONT_ID_TO_NAME
LIBRARY_DISABLED_TYPES
LINE_CONFIRM_THRESHOLD
MAX_ZOOM
MAX_ZOOM_STEP
metricMeasures
metricUnits
MIME_TYPES
MIN_FONT_SIZE
MIN_WIDTH_OR_HEIGHT
MIN_ZOOM
MIN_ZOOM_STEP
NEUTRAL_SCOPE
NO_PEER_POINTS
PREDEFINED_HATCH_PATTERNS
ScaleFactors
SHIFT_LOCKING_ANGLE
SUPPORTED_DATA_TYPES
SVG_NS
TEXT_AUTOWRAP_THRESHOLD
TEXT_TO_CENTER_SNAP_THRESHOLD
VERSIONS
WINDOWS_EMOJI_FALLBACK_FONT

Functions

aabbForElement
aabbsOverlapping
abs
add
addVectors
adjustXYWithRotation
angle
angleReflect
angleToDegrees
angleToRadians
apply
arePointsEqual
arrayToMap
assertNever
base64ToUint8Array
bumpVersion
calculateCurvature
calculateCurveComplexity
calculateGeometricPointsBounds
calculatePointsBounds
calculatePointsBoundsWithCenter
calculateScope
calculateScopeIndex
calculateShapeBounds
canFrameLikeContainElement
carthesian2Polar
centerPoint
clamp
clampZoom
close
compose
computeBoundTextPosition
computeContainerDimensionForBoundText
conjugate
convertPointToTuple
convertShapeToLinearElement
coordinateToRealMeasure
cross
crossProduct
cubicBezierDistance
cubicBezierEquation
cubicBezierPoint
curveRotate
curveToBezier
deepCopyElement
degreeToRadian
detectLineHeight
direction
directionOrthogonal
distance
distance2d
distanceFromPointToLine
distanceSq
distanceSq2d
distanceToCurveSegment
distanceToLine
distanceToLineSegment
distanceToLineSegmentSq
distanceToPoint
distanceToSegment
doBBoxesIntersect
doLineSegmentsIntersect
dot
dual
ellipseAxes
ellipseExtremes
ellipseFocusToCenter
encodeFunctionString
ensureWasm
equation
evaluateBezier
fastRound
filterElementsByScope
fromDataURL
fromDirection
fromDistance
fromPoint
fromTo
geometryDot
getAdjustedDimensions
getAdjustedZoomForMainScopeChange
getApproxMinLineHeight
getApproxMinLineWidth
getBaseElementProps
getBBox
getBezierCurveArcLengths
getBezierCurveLength
getBezierPoint
getBezierXY
getBoundsFromPoints
getBoundTextElement
getBoundTextElementId
getBoundTextElementPosition
getBoundTextMaxHeight
getBoundTextMaxWidth
getCenterForBounds
getCenterForElement
getConnectedPoints
getContainerCenter
getContainerCoords
getContainerElement
getContainingFrame
getControlPointsForBezierCurve
getCorrectedOrthodoxElementPoints
getCubicBezierBoundingBox
getCubicBezierCurveBound
getCurrentScopeExponentLowerBound
getCurrentScopeExponentUpperBound
getCurrentScopeLowerZoomBound
getCurrentScopeUpperZoomBound
getCurrentUnitDefinition
getDefaultCharter
getDefaultGlobalState
getDefaultIssues
getDefaultLocalState
getDefaultStackProperties
getDefaultTableData
getDefaultTextStyle
getDegreesFromRadian
getElementAbsoluteCoords
getElementPointsCoords
getElementRelativePoints
getElementsSortedByZIndex
getElementTranslationFactor
getExponentForMeasure
getFontFamilyString
getFontString
getFrameLikeElements
getFrameLikeTitle
getFreeDrawElementAbsoluteCoords
getFreeDrawStrokePoints
getFreeDrawSvgPath
getGridPoint
getLinearElementAbsoluteCoords
getLineHeightInPx
getMainScopeInfluence
getMaxCharWidth
getMeasureForExponent
getMinCharWidth
getMinMaxXYWithBoundText
getMinTextElementWidth
getNeutralScopedValue
getNextScopeDirection
getNonDeletedElements
getNormalizedDimensions
getNormalizedPoints
getNormalizedZoom
getPercentageFromPercentage
getPercentageValueFromPercentage
getPhysicalDevicePixelSizeInMm
getPointGlobalCoordinates
getPointHandles
getPointOnAPath
getPointsGlobalCoordinates
getPointsInBezierCurve
getPrecisionPointsFromScoped
getPrecisionScope
getPrecisionValueForScope
getPrecisionValueFromRaw
getPrecisionValueFromScoped
getProximityToScopeChange
getQuadraticBezierBoundingBox
getRadianFromDegrees
getRawZoomFromScaledZoom
getRenderablePdfFileId
getResizedElementAbsoluteCoords
getScaledBarZoomValue
getScaledZoomValueForScope
getScopedBezierPointFromDucPoint
getScopedZoomValue
getScopeThroughPercentage
getSegmentMidPoint
getSizeFromPoints
getStandardExponents
getTextElementAngle
getTextElementPositionOffsets
getTextFromElements
getTextHeight
getTextWidth
getTranslationFactor
getUnitDefinitions
getUnitSystemForMeasure
getUpdatedTimestamp
getWasmBinary
getZoom
getZoomDirectionChange
hasBoundTextElement
headingToPoint
importDucStreamToOpfs
inorm
inormalized
intersect
involute
isArrowElement
isBindableElement
isBindingElement
isBindingElementType
isBounds
isBoundToContainer
isClosed
isDucElement
isElbowArrow
isEllipseElement
isEmbeddableElement
isEncodedFunctionString
isFiniteNumber
isFixedPointBinding
isFlowchartNodeElement
isFrameElement
isFrameLikeElement
isFreeDrawElement
isFreeDrawElementType
isIframeLikeElement
isImageElement
isInitializedImageElement
isInvisiblySmallElement
isLinearElement
isLinearElementType
isLineSegment
isLineSegmentTouchingOrCrossingLine
isLocalLink
isMeasureTextSupported
isMetricMeasure
isNonDeletedElement
isPathALoop
isPdfElement
isPdfLikeElement
isPlotElement
isPoint
isPointCurved
isPointInPolygon
isPointOnLine
isPointOnSymmetricArc
isPointRightOfLine
isPointWithinBounds
isPolygonElement
isPrecisionValue
isRectangularElement
isRectanguloidElement
isRightAngle
isRTL
isShapeToLinearElementPossible
isTable
isTableElement
isTextBindableContainer
isTextElement
isUsingAdaptiveRadius
isUsingProportionalRadius
isValidAppStateScopeExponentThresholdValue
isValidAppStateScopeValue
isValidBezierMirroringValue
isValidBlendingValue
isValidBlockId
isValidBoolean
isValidColor
isValidDecimalPlacesValue
isValidDucHead
isValidElementScopeValue
isValidEnumValue
isValidExternalFileId
isValidFillStyleValue
isValidFinitePositiveByteValue
isValidFreeDrawEasingValue
isValidFunction
isValidImageScaleValue
isValidImageStatusValue
isValidLineHeadValue
isValidNumber
isValidPercentageValue
isValidPolygonSides
isValidPrecisionScopeValue
isValidRadianValue
isValidScopeValue
isValidString
isValidStrokeCapValue
isValidStrokeDashValue
isValidStrokeJoinValue
isValidStrokeMiterLimitValue
isValidStrokePreferenceValue
isValidStrokeSidePreferenceValue
isValidTextAlignValue
isValidTextContainer
isValidUint8Array
isValidVerticalAlignValue
isValidZoomStepValue
isValueInRange
join
joinScalar
lineAngle
lineInterpolate
lineIntersectsLine
lineIntersectsPolygon
lineLength
lineMidpoint
lineRotate
lineTranslate
magnitude
magnitudeSq
mapIntervalToBezierT
measureText
med
meet
mergeOverlappingPoints
migrateArrayOrderToZIndex
migratePoints
mul
mulScalar
newArrowElement
newDocElement
newElement
newElementWith
newEllipseElement
newEmbeddableElement
newFrameElement
newFreeDrawElement
newImageElement
newLinearElement
newModelElement
newPdfElement
newPlotElement
newPolygonElement
newTableElement
newTextElement
norm
normalize
normalized
normalizeEOL
normalizeFixedPoint
normalizeForSerializationScope
normalizeLink
normalizeText
nvector
offset
omitKeys
origin
orthogonal
orthogonalThrough
orthogonalToLine
parallel
parallelThrough
parseTokens
point
pointAdd
pointFrom
pointInBezierEquation
pointInEllipse
pointInPolygon
pointInsideBounds
PointInTriangle
pointInverse
pointLeftofLine
pointOnCurve
pointOnEllipse
pointOnLine
pointOnPolycurve
pointOnPolygon
pointOnPolyline
pointRelativeToCenter
pointRightofLine
pointRotate
pointRotateRads
pointToVector
pointTranslate
polygonBounds
polygonCentroid
polygonIncludesPointNonZero
polygonInPolygon
polygonIntersectPolygon
polygonReflectX
polygonReflectY
polygonRotate
polygonScale
polygonScaleX
polygonScaleY
polygonTranslate
polyLineFromCurve
processBezierCurveBounds
processRelativeBezierBounds
processRotatedAbsoluteBezierBounds
project
radianToDegree
randomId
randomInteger
randomSeed
rangeIntersection
rangesOverlap
realMeasureToCoordinate
refreshTextDimensions
regenerateId
rescaleLines
rescalePoints
reseed
restore
restoreBlockCollections
restoreBlockInstances
restoreBlocks
restoreCharter
restoreCheckpoint
restoreDelta
restoreDictionary
restoreDucStackProperties
restoreElements
restoreFiles
restoreFilesData
restoreGlobalState
restoreGroups
restoreIssue
restoreIssues
restoreLayers
restoreLocalState
restorePoint
restorePrecisionValue
restoreRegions
restoreVersionGraph
reverse
reverseExponent
reviveEncodedFunction
reviveFunctionsDeep
rotate
rotatePoint
rotation
round
sampleBezierCurve
sampleBezierCurveForBounds
sampleCubic
sampleCubicBezier
sampleQuadratic
sampleQuadraticBezier
sanitizeHTMLAttribute
scalePointFromOrigin
scaleVector
segmentIntersectRectangleElement
segmentsIntersectAt
serializeDucToBlob
serializeDucToStream
shouldAllowVerticalAlign
sign
splitIntoLines
sub
subtractVectors
suppportsHorizontalAlign
through
toDataURL
toString
toTuple
toValidURL
transformFromRust
transformToRust
translate
translatePoint
translation
translationAlong
translationOrthogonal
traverseAndUpdatePrecisionValues
tryDecodeFunctionString
uint8ArrayToBase64
uint8ArrayToFile
validateBackground
validateClosedPath
validateElementContent
validateStroke
validateStrokeStyle
vector
vectorToPoint
wrapText