@ibodr/draw 0.1.13 → 0.1.14

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.d.ts CHANGED
@@ -2103,6 +2103,8 @@ interface ArrowShapeOptions extends ShapeOptionsWithDisplayValues<DrArrowShape,
2103
2103
  shouldIgnoreTargets(editor: Editor): boolean;
2104
2104
  /** Whether to show the outline of the arrow shape's label (using the same color as the canvas). This helps with overlapping shapes. It does not show up on Safari, where text outline is a performance issues. */
2105
2105
  readonly showTextOutline: boolean;
2106
+ /** Whether clicking a link inside the arrow's label opens it in a new tab. Defaults to `true`. */
2107
+ readonly openLinksOnClick: boolean;
2106
2108
  }
2107
2109
  /** @public */
2108
2110
  interface DrArrowPoint {
package/dist/index.mjs CHANGED
@@ -25319,6 +25319,7 @@ var ArrowShapeUtil = class extends ShapeUtil {
25319
25319
  return editor.inputs.getCtrlKey();
25320
25320
  },
25321
25321
  showTextOutline: true,
25322
+ openLinksOnClick: true,
25322
25323
  getDefaultDisplayValues(_editor, shape, theme, colorMode) {
25323
25324
  const { color, fill, labelColor, size, font } = shape.props;
25324
25325
  const colors = theme.colors[colorMode];
@@ -25869,6 +25870,7 @@ var ArrowShapeUtil = class extends ShapeUtil {
25869
25870
  isSelected,
25870
25871
  padding: 0,
25871
25872
  showTextOutline: this.options.showTextOutline,
25873
+ openLinksOnClick: this.options.openLinksOnClick,
25872
25874
  style: {
25873
25875
  transform: `translate(${labelPosition.box.center.x}px, ${labelPosition.box.center.y}px)${shape.props.scale !== 1 ? ` scale(${shape.props.scale})` : ""}`
25874
25876
  }
@@ -37241,7 +37243,7 @@ async function extractAssets(editor, snapshot, msg, addToast) {
37241
37243
  // src/index.ts
37242
37244
  registerDrawLibraryVersion(
37243
37245
  "@ibodr/draw",
37244
- "0.1.13",
37246
+ "0.1.14",
37245
37247
  "esm"
37246
37248
  );
37247
37249
  /*!