@canvas-components/print-design 0.1.17 → 0.1.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +3 -2
- package/dist/index.d.cts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +3 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -6090,7 +6090,7 @@ var PrintDesignInteraction = class extends PrintDesignRenderer {
|
|
|
6090
6090
|
);
|
|
6091
6091
|
const target = { x: -bounded.x, y: -bounded.y };
|
|
6092
6092
|
const view = this.container.ownerDocument.defaultView;
|
|
6093
|
-
if (!this.mounted || !view || shouldPanImmediately(event)) {
|
|
6093
|
+
if (!this.mounted || !view || !this.wheelPanTarget && shouldPanImmediately(event)) {
|
|
6094
6094
|
this.stopWheelPan();
|
|
6095
6095
|
this.panX = -target.x || 0;
|
|
6096
6096
|
this.panY = -target.y || 0;
|
|
@@ -8353,7 +8353,7 @@ function isPrintDesignRecordCollection(value) {
|
|
|
8353
8353
|
}
|
|
8354
8354
|
|
|
8355
8355
|
// package.json
|
|
8356
|
-
var version = "0.1.
|
|
8356
|
+
var version = "0.1.18";
|
|
8357
8357
|
|
|
8358
8358
|
exports.DEFAULT_PRINT_DESIGN_DEBUG_OPTIONS = DEFAULT_PRINT_DESIGN_DEBUG_OPTIONS;
|
|
8359
8359
|
exports.PRINT_DESIGN_CSS_DPI = PRINT_DESIGN_CSS_DPI;
|
|
@@ -8408,6 +8408,7 @@ exports.renderPrintDesignHtmlFrame = renderPrintDesignHtmlFrame;
|
|
|
8408
8408
|
exports.renderPrintDesignPageToCanvas = renderPrintDesignPageToCanvas;
|
|
8409
8409
|
exports.resolveDesignText = resolveDesignText;
|
|
8410
8410
|
exports.resolvePrintDesignBinding = resolvePrintDesignBinding;
|
|
8411
|
+
exports.resolvePrintDesignComponentData = resolvePrintDesignComponentData;
|
|
8411
8412
|
exports.resolvePrintDesignDataPath = resolvePrintDesignDataPath;
|
|
8412
8413
|
exports.resolvePrintDesignDebugOptions = resolvePrintDesignDebugOptions;
|
|
8413
8414
|
exports.resolvePrintDesignElementData = resolvePrintDesignElementData;
|
package/dist/index.d.cts
CHANGED
|
@@ -1058,6 +1058,8 @@ interface PrintDesignPluginRenderer<Element extends PrintDesignElementBase, Crop
|
|
|
1058
1058
|
}
|
|
1059
1059
|
/** 注册插件本地元素模型,并将绘制及交互回调作为同一个定义提交。 */
|
|
1060
1060
|
declare function definePrintDesignPluginRenderer<Element extends PrintDesignElementBase, Crop extends PrintDesignCropRect = PrintDesignCropRect>(renderer: PrintDesignPluginRenderer<Element, Crop>): PrintDesignPluginRenderer<Element, Crop>;
|
|
1061
|
+
/** 内置字段绑定与插件预处理共用一个解析入口。 */
|
|
1062
|
+
declare function resolvePrintDesignComponentData<Element extends PrintDesignElementBase>(element: Element, data: Record<string, unknown>, renderer: PrintDesignComponentRenderer): Element;
|
|
1061
1063
|
/** 让每个注册项的绘制函数按自身 type 获得准确的元素类型。 */
|
|
1062
1064
|
declare function definePrintDesignComponentRenderer<Type extends PrintDesignElement["type"]>(type: Type, drawCanvas: PrintDesignComponentRenderer<Type>["drawCanvas"], renderHtml?: PrintDesignComponentRenderer<Type>["renderHtml"], behavior?: Pick<PrintDesignComponentRenderer<Type>, "hitTest" | "handleDrag" | "sourceCreate" | "transformHandleDrag" | "boundaryResize" | "cellHit" | "cellSelection" | "cellEditor" | "commands" | "drawCellSelection" | "pathDrawing" | "selectors" | "resolveData" | "dataFields" | "listResources" | "replaceResourceUri" | "allowSignedSize" | "htmlCss" | "htmlCssForElement" | "prepareHtml" | "prepareCanvas" | "needsCanvasPreparation" | "preparePagination" | "defaultOverflowPolicy" | "onPhysicalPageLayout" | "measureFlowHeight" | "truncateOverflow" | "inlineTextEditor" | "canvasMode" | "clipCanvas" | "transformRaster" | "drawTransformedCanvas" | "measureHeight" | "onResize" | "materializeDocument" | "paginate" | "onUpdate" | "beforeUpdate" | "onElementsRemoved" | "translatePageCoordinates" | "animateWhenSelected" | "refreshIntervalMs" | "bounds" | "alignmentBounds" | "connection" | "transformReset" | "onClick" | "pointerStroke" | "crop" | "debugRegions" | "drawDebugOverlay" | "drawSelectionOverlay" | "drawEditHandles" | "drawConnectionAnchors" | "drawConnectionCreateHandles">): PrintDesignComponentRenderer;
|
|
1063
1065
|
/** 不可变组件注册表,实例可复用同一份内置配置并按需覆盖注册项。 */
|
|
@@ -2336,6 +2338,6 @@ interface PrintDesignRecordCollection {
|
|
|
2336
2338
|
/** 识别包含记录数组的对象,不把普通对象当作数据行。 */
|
|
2337
2339
|
declare function isPrintDesignRecordCollection(value: unknown): value is PrintDesignRecordCollection;
|
|
2338
2340
|
|
|
2339
|
-
var version = "0.1.
|
|
2341
|
+
var version = "0.1.18";
|
|
2340
2342
|
|
|
2341
|
-
export { DEFAULT_PRINT_DESIGN_DEBUG_OPTIONS, type ElementDrawContext, PRINT_DESIGN_CSS_DPI, PRINT_DESIGN_DEFAULT_FONT_FAMILY, PRINT_DESIGN_MM_PER_INCH, PRINT_DESIGN_SCHEMA_VERSION, PRINT_DESIGN_UNIT_MM, version as PRINT_DESIGN_VERSION, PrintDesign, type PrintDesignAgentApi, type PrintDesignAgentComponentCatalog, type PrintDesignAgentToolDefinition, type PrintDesignComponentBoundaryResize, type PrintDesignComponentCellContextTarget, type PrintDesignComponentCellEditor, type PrintDesignComponentCellHit, type PrintDesignComponentCellSelection, type PrintDesignComponentCellSelectionBehavior, type PrintDesignComponentCellSelectionContext, type PrintDesignComponentCellSelectionState, type PrintDesignComponentClickContext, type PrintDesignComponentCommands, type PrintDesignComponentConnection, type PrintDesignComponentCrop, type PrintDesignComponentDebugContext, type PrintDesignComponentDebugRegion, type PrintDesignComponentEditHandleContext, type PrintDesignComponentHandleContext, type PrintDesignComponentHandleDrag, type PrintDesignComponentHitContext, type PrintDesignComponentPathDrawing, type PrintDesignComponentPointerContext, type PrintDesignComponentPointerStroke, PrintDesignComponentRegistry, type PrintDesignComponentRenderer, type PrintDesignComponentResource, type PrintDesignComponentSelectionContext, type PrintDesignComponentSelector, type PrintDesignComponentSelectorDrawContext, type PrintDesignComponentSourceCreate, type PrintDesignConnectionAnchorContext, type PrintDesignConnectionCreateHandle, type PrintDesignCropRect, type PrintDesignDataField, type PrintDesignDebugOptions, type PrintDesignDocument, type PrintDesignElement, type PrintDesignElementBase, type PrintDesignElementTypeMap, type PrintDesignExportOptions, type PrintDesignHtmlOptions, type PrintDesignInlineTextEditor, type PrintDesignInlineTextPresentation, type PrintDesignLayerAlignment, type PrintDesignLayerNode, type PrintDesignOptions, type PrintDesignOrientation, type PrintDesignPage, type PrintDesignPageMargins, type PrintDesignPluginRenderer, type PrintDesignRecordCollection, type PrintDesignSelection, type PrintDesignToolDebugContribution, type PrintDesignToolDebugRegion, type PrintDesignUnit, type TransformPoint, buildPrintDesignLayerTree, builtinPrintDesignComponentRegistry, canvasPointToPageMillimeters, clonePrintDesignDocument, createPrintDesignAgentApi, createPrintDesignDocument, createPrintDesignId, createPrintDesignPage, createPrintDesignPrintFrame, cssColor, cssFont, cssNumber, definePrintDesignComponentRenderer, definePrintDesignPluginRenderer, drawPrintDesignElement, drawPrintDesignPage, elementTransformCss, elementTransformHomography, escapeHtml, formatDisplayUnit, fromDisplayUnit, getPrintDesignAlignmentUnits, getPrintDesignDataFields, getPrintDesignElementDataConfig, getPrintDesignPageSize, getSelectionRect, hitTestPrintDesignPage, inverseTransformPoint, isPrintDesignColorValue, isPrintDesignRecordCollection, materializePrintDesignDocument, millimetersToPixels, paginatePrintDesignDocument, parsePrintDesignDocument, pixelsToMillimeters, preparePrintDesignCanvasPage, printDesignAgentTools, printPrintDesignHtml, printPrintDesignHtmlInFrame, projectTransformPoint, renderPrintDesignHtmlFrame, renderPrintDesignPageToCanvas, resolveDesignText, resolvePrintDesignBinding, resolvePrintDesignDataPath, resolvePrintDesignDebugOptions, resolvePrintDesignElementData, resolvePrintDesignElementVisible, resolvePrintDesignFontFamily, resolvePrintDesignPageVisible, rotatePoint, serializePrintDesignDocument, stringifyPrintDesignBinding, toDisplayUnit, transformPrintDesignToHtml, transformPrintDesignToHtmlAsync, transformPrintDesignToHtmlBatches, transformRect };
|
|
2343
|
+
export { DEFAULT_PRINT_DESIGN_DEBUG_OPTIONS, type ElementDrawContext, PRINT_DESIGN_CSS_DPI, PRINT_DESIGN_DEFAULT_FONT_FAMILY, PRINT_DESIGN_MM_PER_INCH, PRINT_DESIGN_SCHEMA_VERSION, PRINT_DESIGN_UNIT_MM, version as PRINT_DESIGN_VERSION, PrintDesign, type PrintDesignAgentApi, type PrintDesignAgentComponentCatalog, type PrintDesignAgentToolDefinition, type PrintDesignComponentBoundaryResize, type PrintDesignComponentCellContextTarget, type PrintDesignComponentCellEditor, type PrintDesignComponentCellHit, type PrintDesignComponentCellSelection, type PrintDesignComponentCellSelectionBehavior, type PrintDesignComponentCellSelectionContext, type PrintDesignComponentCellSelectionState, type PrintDesignComponentClickContext, type PrintDesignComponentCommands, type PrintDesignComponentConnection, type PrintDesignComponentCrop, type PrintDesignComponentDebugContext, type PrintDesignComponentDebugRegion, type PrintDesignComponentEditHandleContext, type PrintDesignComponentHandleContext, type PrintDesignComponentHandleDrag, type PrintDesignComponentHitContext, type PrintDesignComponentPathDrawing, type PrintDesignComponentPointerContext, type PrintDesignComponentPointerStroke, PrintDesignComponentRegistry, type PrintDesignComponentRenderer, type PrintDesignComponentResource, type PrintDesignComponentSelectionContext, type PrintDesignComponentSelector, type PrintDesignComponentSelectorDrawContext, type PrintDesignComponentSourceCreate, type PrintDesignConnectionAnchorContext, type PrintDesignConnectionCreateHandle, type PrintDesignCropRect, type PrintDesignDataField, type PrintDesignDebugOptions, type PrintDesignDocument, type PrintDesignElement, type PrintDesignElementBase, type PrintDesignElementTypeMap, type PrintDesignExportOptions, type PrintDesignHtmlOptions, type PrintDesignInlineTextEditor, type PrintDesignInlineTextPresentation, type PrintDesignLayerAlignment, type PrintDesignLayerNode, type PrintDesignOptions, type PrintDesignOrientation, type PrintDesignPage, type PrintDesignPageMargins, type PrintDesignPluginRenderer, type PrintDesignRecordCollection, type PrintDesignSelection, type PrintDesignToolDebugContribution, type PrintDesignToolDebugRegion, type PrintDesignUnit, type TransformPoint, buildPrintDesignLayerTree, builtinPrintDesignComponentRegistry, canvasPointToPageMillimeters, clonePrintDesignDocument, createPrintDesignAgentApi, createPrintDesignDocument, createPrintDesignId, createPrintDesignPage, createPrintDesignPrintFrame, cssColor, cssFont, cssNumber, definePrintDesignComponentRenderer, definePrintDesignPluginRenderer, drawPrintDesignElement, drawPrintDesignPage, elementTransformCss, elementTransformHomography, escapeHtml, formatDisplayUnit, fromDisplayUnit, getPrintDesignAlignmentUnits, getPrintDesignDataFields, getPrintDesignElementDataConfig, getPrintDesignPageSize, getSelectionRect, hitTestPrintDesignPage, inverseTransformPoint, isPrintDesignColorValue, isPrintDesignRecordCollection, materializePrintDesignDocument, millimetersToPixels, paginatePrintDesignDocument, parsePrintDesignDocument, pixelsToMillimeters, preparePrintDesignCanvasPage, printDesignAgentTools, printPrintDesignHtml, printPrintDesignHtmlInFrame, projectTransformPoint, renderPrintDesignHtmlFrame, renderPrintDesignPageToCanvas, resolveDesignText, resolvePrintDesignBinding, resolvePrintDesignComponentData, resolvePrintDesignDataPath, resolvePrintDesignDebugOptions, resolvePrintDesignElementData, resolvePrintDesignElementVisible, resolvePrintDesignFontFamily, resolvePrintDesignPageVisible, rotatePoint, serializePrintDesignDocument, stringifyPrintDesignBinding, toDisplayUnit, transformPrintDesignToHtml, transformPrintDesignToHtmlAsync, transformPrintDesignToHtmlBatches, transformRect };
|
package/dist/index.d.ts
CHANGED
|
@@ -1058,6 +1058,8 @@ interface PrintDesignPluginRenderer<Element extends PrintDesignElementBase, Crop
|
|
|
1058
1058
|
}
|
|
1059
1059
|
/** 注册插件本地元素模型,并将绘制及交互回调作为同一个定义提交。 */
|
|
1060
1060
|
declare function definePrintDesignPluginRenderer<Element extends PrintDesignElementBase, Crop extends PrintDesignCropRect = PrintDesignCropRect>(renderer: PrintDesignPluginRenderer<Element, Crop>): PrintDesignPluginRenderer<Element, Crop>;
|
|
1061
|
+
/** 内置字段绑定与插件预处理共用一个解析入口。 */
|
|
1062
|
+
declare function resolvePrintDesignComponentData<Element extends PrintDesignElementBase>(element: Element, data: Record<string, unknown>, renderer: PrintDesignComponentRenderer): Element;
|
|
1061
1063
|
/** 让每个注册项的绘制函数按自身 type 获得准确的元素类型。 */
|
|
1062
1064
|
declare function definePrintDesignComponentRenderer<Type extends PrintDesignElement["type"]>(type: Type, drawCanvas: PrintDesignComponentRenderer<Type>["drawCanvas"], renderHtml?: PrintDesignComponentRenderer<Type>["renderHtml"], behavior?: Pick<PrintDesignComponentRenderer<Type>, "hitTest" | "handleDrag" | "sourceCreate" | "transformHandleDrag" | "boundaryResize" | "cellHit" | "cellSelection" | "cellEditor" | "commands" | "drawCellSelection" | "pathDrawing" | "selectors" | "resolveData" | "dataFields" | "listResources" | "replaceResourceUri" | "allowSignedSize" | "htmlCss" | "htmlCssForElement" | "prepareHtml" | "prepareCanvas" | "needsCanvasPreparation" | "preparePagination" | "defaultOverflowPolicy" | "onPhysicalPageLayout" | "measureFlowHeight" | "truncateOverflow" | "inlineTextEditor" | "canvasMode" | "clipCanvas" | "transformRaster" | "drawTransformedCanvas" | "measureHeight" | "onResize" | "materializeDocument" | "paginate" | "onUpdate" | "beforeUpdate" | "onElementsRemoved" | "translatePageCoordinates" | "animateWhenSelected" | "refreshIntervalMs" | "bounds" | "alignmentBounds" | "connection" | "transformReset" | "onClick" | "pointerStroke" | "crop" | "debugRegions" | "drawDebugOverlay" | "drawSelectionOverlay" | "drawEditHandles" | "drawConnectionAnchors" | "drawConnectionCreateHandles">): PrintDesignComponentRenderer;
|
|
1063
1065
|
/** 不可变组件注册表,实例可复用同一份内置配置并按需覆盖注册项。 */
|
|
@@ -2336,6 +2338,6 @@ interface PrintDesignRecordCollection {
|
|
|
2336
2338
|
/** 识别包含记录数组的对象,不把普通对象当作数据行。 */
|
|
2337
2339
|
declare function isPrintDesignRecordCollection(value: unknown): value is PrintDesignRecordCollection;
|
|
2338
2340
|
|
|
2339
|
-
var version = "0.1.
|
|
2341
|
+
var version = "0.1.18";
|
|
2340
2342
|
|
|
2341
|
-
export { DEFAULT_PRINT_DESIGN_DEBUG_OPTIONS, type ElementDrawContext, PRINT_DESIGN_CSS_DPI, PRINT_DESIGN_DEFAULT_FONT_FAMILY, PRINT_DESIGN_MM_PER_INCH, PRINT_DESIGN_SCHEMA_VERSION, PRINT_DESIGN_UNIT_MM, version as PRINT_DESIGN_VERSION, PrintDesign, type PrintDesignAgentApi, type PrintDesignAgentComponentCatalog, type PrintDesignAgentToolDefinition, type PrintDesignComponentBoundaryResize, type PrintDesignComponentCellContextTarget, type PrintDesignComponentCellEditor, type PrintDesignComponentCellHit, type PrintDesignComponentCellSelection, type PrintDesignComponentCellSelectionBehavior, type PrintDesignComponentCellSelectionContext, type PrintDesignComponentCellSelectionState, type PrintDesignComponentClickContext, type PrintDesignComponentCommands, type PrintDesignComponentConnection, type PrintDesignComponentCrop, type PrintDesignComponentDebugContext, type PrintDesignComponentDebugRegion, type PrintDesignComponentEditHandleContext, type PrintDesignComponentHandleContext, type PrintDesignComponentHandleDrag, type PrintDesignComponentHitContext, type PrintDesignComponentPathDrawing, type PrintDesignComponentPointerContext, type PrintDesignComponentPointerStroke, PrintDesignComponentRegistry, type PrintDesignComponentRenderer, type PrintDesignComponentResource, type PrintDesignComponentSelectionContext, type PrintDesignComponentSelector, type PrintDesignComponentSelectorDrawContext, type PrintDesignComponentSourceCreate, type PrintDesignConnectionAnchorContext, type PrintDesignConnectionCreateHandle, type PrintDesignCropRect, type PrintDesignDataField, type PrintDesignDebugOptions, type PrintDesignDocument, type PrintDesignElement, type PrintDesignElementBase, type PrintDesignElementTypeMap, type PrintDesignExportOptions, type PrintDesignHtmlOptions, type PrintDesignInlineTextEditor, type PrintDesignInlineTextPresentation, type PrintDesignLayerAlignment, type PrintDesignLayerNode, type PrintDesignOptions, type PrintDesignOrientation, type PrintDesignPage, type PrintDesignPageMargins, type PrintDesignPluginRenderer, type PrintDesignRecordCollection, type PrintDesignSelection, type PrintDesignToolDebugContribution, type PrintDesignToolDebugRegion, type PrintDesignUnit, type TransformPoint, buildPrintDesignLayerTree, builtinPrintDesignComponentRegistry, canvasPointToPageMillimeters, clonePrintDesignDocument, createPrintDesignAgentApi, createPrintDesignDocument, createPrintDesignId, createPrintDesignPage, createPrintDesignPrintFrame, cssColor, cssFont, cssNumber, definePrintDesignComponentRenderer, definePrintDesignPluginRenderer, drawPrintDesignElement, drawPrintDesignPage, elementTransformCss, elementTransformHomography, escapeHtml, formatDisplayUnit, fromDisplayUnit, getPrintDesignAlignmentUnits, getPrintDesignDataFields, getPrintDesignElementDataConfig, getPrintDesignPageSize, getSelectionRect, hitTestPrintDesignPage, inverseTransformPoint, isPrintDesignColorValue, isPrintDesignRecordCollection, materializePrintDesignDocument, millimetersToPixels, paginatePrintDesignDocument, parsePrintDesignDocument, pixelsToMillimeters, preparePrintDesignCanvasPage, printDesignAgentTools, printPrintDesignHtml, printPrintDesignHtmlInFrame, projectTransformPoint, renderPrintDesignHtmlFrame, renderPrintDesignPageToCanvas, resolveDesignText, resolvePrintDesignBinding, resolvePrintDesignDataPath, resolvePrintDesignDebugOptions, resolvePrintDesignElementData, resolvePrintDesignElementVisible, resolvePrintDesignFontFamily, resolvePrintDesignPageVisible, rotatePoint, serializePrintDesignDocument, stringifyPrintDesignBinding, toDisplayUnit, transformPrintDesignToHtml, transformPrintDesignToHtmlAsync, transformPrintDesignToHtmlBatches, transformRect };
|
|
2343
|
+
export { DEFAULT_PRINT_DESIGN_DEBUG_OPTIONS, type ElementDrawContext, PRINT_DESIGN_CSS_DPI, PRINT_DESIGN_DEFAULT_FONT_FAMILY, PRINT_DESIGN_MM_PER_INCH, PRINT_DESIGN_SCHEMA_VERSION, PRINT_DESIGN_UNIT_MM, version as PRINT_DESIGN_VERSION, PrintDesign, type PrintDesignAgentApi, type PrintDesignAgentComponentCatalog, type PrintDesignAgentToolDefinition, type PrintDesignComponentBoundaryResize, type PrintDesignComponentCellContextTarget, type PrintDesignComponentCellEditor, type PrintDesignComponentCellHit, type PrintDesignComponentCellSelection, type PrintDesignComponentCellSelectionBehavior, type PrintDesignComponentCellSelectionContext, type PrintDesignComponentCellSelectionState, type PrintDesignComponentClickContext, type PrintDesignComponentCommands, type PrintDesignComponentConnection, type PrintDesignComponentCrop, type PrintDesignComponentDebugContext, type PrintDesignComponentDebugRegion, type PrintDesignComponentEditHandleContext, type PrintDesignComponentHandleContext, type PrintDesignComponentHandleDrag, type PrintDesignComponentHitContext, type PrintDesignComponentPathDrawing, type PrintDesignComponentPointerContext, type PrintDesignComponentPointerStroke, PrintDesignComponentRegistry, type PrintDesignComponentRenderer, type PrintDesignComponentResource, type PrintDesignComponentSelectionContext, type PrintDesignComponentSelector, type PrintDesignComponentSelectorDrawContext, type PrintDesignComponentSourceCreate, type PrintDesignConnectionAnchorContext, type PrintDesignConnectionCreateHandle, type PrintDesignCropRect, type PrintDesignDataField, type PrintDesignDebugOptions, type PrintDesignDocument, type PrintDesignElement, type PrintDesignElementBase, type PrintDesignElementTypeMap, type PrintDesignExportOptions, type PrintDesignHtmlOptions, type PrintDesignInlineTextEditor, type PrintDesignInlineTextPresentation, type PrintDesignLayerAlignment, type PrintDesignLayerNode, type PrintDesignOptions, type PrintDesignOrientation, type PrintDesignPage, type PrintDesignPageMargins, type PrintDesignPluginRenderer, type PrintDesignRecordCollection, type PrintDesignSelection, type PrintDesignToolDebugContribution, type PrintDesignToolDebugRegion, type PrintDesignUnit, type TransformPoint, buildPrintDesignLayerTree, builtinPrintDesignComponentRegistry, canvasPointToPageMillimeters, clonePrintDesignDocument, createPrintDesignAgentApi, createPrintDesignDocument, createPrintDesignId, createPrintDesignPage, createPrintDesignPrintFrame, cssColor, cssFont, cssNumber, definePrintDesignComponentRenderer, definePrintDesignPluginRenderer, drawPrintDesignElement, drawPrintDesignPage, elementTransformCss, elementTransformHomography, escapeHtml, formatDisplayUnit, fromDisplayUnit, getPrintDesignAlignmentUnits, getPrintDesignDataFields, getPrintDesignElementDataConfig, getPrintDesignPageSize, getSelectionRect, hitTestPrintDesignPage, inverseTransformPoint, isPrintDesignColorValue, isPrintDesignRecordCollection, materializePrintDesignDocument, millimetersToPixels, paginatePrintDesignDocument, parsePrintDesignDocument, pixelsToMillimeters, preparePrintDesignCanvasPage, printDesignAgentTools, printPrintDesignHtml, printPrintDesignHtmlInFrame, projectTransformPoint, renderPrintDesignHtmlFrame, renderPrintDesignPageToCanvas, resolveDesignText, resolvePrintDesignBinding, resolvePrintDesignComponentData, resolvePrintDesignDataPath, resolvePrintDesignDebugOptions, resolvePrintDesignElementData, resolvePrintDesignElementVisible, resolvePrintDesignFontFamily, resolvePrintDesignPageVisible, rotatePoint, serializePrintDesignDocument, stringifyPrintDesignBinding, toDisplayUnit, transformPrintDesignToHtml, transformPrintDesignToHtmlAsync, transformPrintDesignToHtmlBatches, transformRect };
|
package/dist/index.js
CHANGED
|
@@ -6088,7 +6088,7 @@ var PrintDesignInteraction = class extends PrintDesignRenderer {
|
|
|
6088
6088
|
);
|
|
6089
6089
|
const target = { x: -bounded.x, y: -bounded.y };
|
|
6090
6090
|
const view = this.container.ownerDocument.defaultView;
|
|
6091
|
-
if (!this.mounted || !view || shouldPanImmediately(event)) {
|
|
6091
|
+
if (!this.mounted || !view || !this.wheelPanTarget && shouldPanImmediately(event)) {
|
|
6092
6092
|
this.stopWheelPan();
|
|
6093
6093
|
this.panX = -target.x || 0;
|
|
6094
6094
|
this.panY = -target.y || 0;
|
|
@@ -8351,6 +8351,6 @@ function isPrintDesignRecordCollection(value) {
|
|
|
8351
8351
|
}
|
|
8352
8352
|
|
|
8353
8353
|
// package.json
|
|
8354
|
-
var version = "0.1.
|
|
8354
|
+
var version = "0.1.18";
|
|
8355
8355
|
|
|
8356
|
-
export { DEFAULT_PRINT_DESIGN_DEBUG_OPTIONS, PRINT_DESIGN_CSS_DPI, PRINT_DESIGN_DEFAULT_FONT_FAMILY, PRINT_DESIGN_MM_PER_INCH, PRINT_DESIGN_SCHEMA_VERSION, PRINT_DESIGN_UNIT_MM, version as PRINT_DESIGN_VERSION, PrintDesign, PrintDesignComponentRegistry, buildPrintDesignLayerTree, builtinPrintDesignComponentRegistry, canvasPointToPageMillimeters, clonePrintDesignDocument, createPrintDesignAgentApi, createPrintDesignDocument, createPrintDesignId, createPrintDesignPage, createPrintDesignPrintFrame, cssColor, cssFont, cssNumber, definePrintDesignComponentRenderer, definePrintDesignPluginRenderer, drawPrintDesignElement, drawPrintDesignPage, elementTransformCss, elementTransformHomography, escapeHtml, formatDisplayUnit, fromDisplayUnit, getPrintDesignAlignmentUnits, getPrintDesignDataFields, getPrintDesignElementDataConfig, getPrintDesignPageSize, getSelectionRect, hitTestPrintDesignPage, inverseTransformPoint, isPrintDesignColorValue, isPrintDesignRecordCollection, materializePrintDesignDocument, millimetersToPixels, paginatePrintDesignDocument, parsePrintDesignDocument, pixelsToMillimeters, preparePrintDesignCanvasPage, printDesignAgentTools, printPrintDesignHtml, printPrintDesignHtmlInFrame, projectTransformPoint, renderPrintDesignHtmlFrame, renderPrintDesignPageToCanvas, resolveDesignText, resolvePrintDesignBinding, resolvePrintDesignDataPath, resolvePrintDesignDebugOptions, resolvePrintDesignElementData, resolvePrintDesignElementVisible, resolvePrintDesignFontFamily, resolvePrintDesignPageVisible, rotatePoint2 as rotatePoint, serializePrintDesignDocument, stringifyPrintDesignBinding, toDisplayUnit, transformPrintDesignToHtml, transformPrintDesignToHtmlAsync, transformPrintDesignToHtmlBatches, transformRect };
|
|
8356
|
+
export { DEFAULT_PRINT_DESIGN_DEBUG_OPTIONS, PRINT_DESIGN_CSS_DPI, PRINT_DESIGN_DEFAULT_FONT_FAMILY, PRINT_DESIGN_MM_PER_INCH, PRINT_DESIGN_SCHEMA_VERSION, PRINT_DESIGN_UNIT_MM, version as PRINT_DESIGN_VERSION, PrintDesign, PrintDesignComponentRegistry, buildPrintDesignLayerTree, builtinPrintDesignComponentRegistry, canvasPointToPageMillimeters, clonePrintDesignDocument, createPrintDesignAgentApi, createPrintDesignDocument, createPrintDesignId, createPrintDesignPage, createPrintDesignPrintFrame, cssColor, cssFont, cssNumber, definePrintDesignComponentRenderer, definePrintDesignPluginRenderer, drawPrintDesignElement, drawPrintDesignPage, elementTransformCss, elementTransformHomography, escapeHtml, formatDisplayUnit, fromDisplayUnit, getPrintDesignAlignmentUnits, getPrintDesignDataFields, getPrintDesignElementDataConfig, getPrintDesignPageSize, getSelectionRect, hitTestPrintDesignPage, inverseTransformPoint, isPrintDesignColorValue, isPrintDesignRecordCollection, materializePrintDesignDocument, millimetersToPixels, paginatePrintDesignDocument, parsePrintDesignDocument, pixelsToMillimeters, preparePrintDesignCanvasPage, printDesignAgentTools, printPrintDesignHtml, printPrintDesignHtmlInFrame, projectTransformPoint, renderPrintDesignHtmlFrame, renderPrintDesignPageToCanvas, resolveDesignText, resolvePrintDesignBinding, resolvePrintDesignComponentData, resolvePrintDesignDataPath, resolvePrintDesignDebugOptions, resolvePrintDesignElementData, resolvePrintDesignElementVisible, resolvePrintDesignFontFamily, resolvePrintDesignPageVisible, rotatePoint2 as rotatePoint, serializePrintDesignDocument, stringifyPrintDesignBinding, toDisplayUnit, transformPrintDesignToHtml, transformPrintDesignToHtmlAsync, transformPrintDesignToHtmlBatches, transformRect };
|