canvu-react 0.4.31 → 0.4.33

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.
@@ -1,5 +1,5 @@
1
1
  import { V as VectorSceneItem } from './types-BCCvY6ie.cjs';
2
- import { a as VectorViewportAssetStore } from './link-item-D870_X6P.cjs';
2
+ import { a as VectorViewportAssetStore } from './link-item-Dncuz2d_.cjs';
3
3
 
4
4
  declare class IndexedDbImageStore {
5
5
  private dbPromise;
@@ -1,5 +1,5 @@
1
1
  import { V as VectorSceneItem } from './types-BCCvY6ie.js';
2
- import { a as VectorViewportAssetStore } from './link-item-Bg5vj0RI.js';
2
+ import { a as VectorViewportAssetStore } from './link-item-voRU0Up9.js';
3
3
 
4
4
  declare class IndexedDbImageStore {
5
5
  private dbPromise;
@@ -1,9 +1,9 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { C as CanvasPlugin } from './types-Bw1SdC9v.cjs';
2
+ import { C as CanvasPlugin } from './types-BS-YG8Hx.cjs';
3
3
  import 'react';
4
4
  import './types-BCCvY6ie.cjs';
5
5
  import './shape-builders-CKEMjivV.cjs';
6
- import './link-item-D870_X6P.cjs';
6
+ import './link-item-Dncuz2d_.cjs';
7
7
 
8
8
  type ChatbotPluginPanelProps = {
9
9
  /**
package/dist/chatbot.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { C as CanvasPlugin } from './types-DeXFfs7Y.js';
2
+ import { C as CanvasPlugin } from './types-UZYYwK-v.js';
3
3
  import 'react';
4
4
  import './types-BCCvY6ie.js';
5
5
  import './shape-builders-Cyh8zvDG.js';
6
- import './link-item-Bg5vj0RI.js';
6
+ import './link-item-voRU0Up9.js';
7
7
 
8
8
  type ChatbotPluginPanelProps = {
9
9
  /**
package/dist/index.cjs CHANGED
@@ -990,11 +990,178 @@ function createCustomShapeItem(id, bounds, content) {
990
990
  };
991
991
  }
992
992
 
993
+ // src/scene/link-item.ts
994
+ var LINK_PLUGIN_KEY = "canvuLink";
995
+ var DEFAULT_LINK_CARD_WIDTH = 320;
996
+ var DEFAULT_LINK_CARD_HEIGHT = 70;
997
+ var LINK_CARD_MIN_SCALE = 0.6;
998
+ var LINK_CARD_MAX_SCALE = 6;
999
+ var LINK_CARD_BORDER = "oklch(0.918 0.008 255)";
1000
+ var LINK_CARD_BORDER_STRONG = "oklch(0.86 0.012 255)";
1001
+ var LINK_CARD_ACCENT = "oklch(0.55 0.19 264)";
1002
+ var LINK_CARD_ACCENT_DEEP = "oklch(0.46 0.18 264)";
1003
+ var LINK_CARD_TITLE_COLOR = "oklch(0.26 0.022 265)";
1004
+ var LINK_CARD_TEXT_COLOR = "oklch(0.55 0.022 265)";
1005
+ var clamp = (value, min, max) => Math.min(max, Math.max(min, value));
1006
+ var formatNumber = (value) => {
1007
+ const rounded = Math.round(value * 100) / 100;
1008
+ return Object.is(rounded, -0) ? "0" : String(rounded);
1009
+ };
1010
+ var escapeHtmlText = (value) => value.replaceAll("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;");
1011
+ var getLinkHostname = (href) => {
1012
+ try {
1013
+ return new URL(href).hostname.replace(/^www\./, "");
1014
+ } catch {
1015
+ return href;
1016
+ }
1017
+ };
1018
+ var buildLinkTextBand = (band) => {
1019
+ const lineHeight = band.height;
1020
+ const weight = band.fontWeight != null ? `font-weight:${band.fontWeight};` : "";
1021
+ return `<foreignObject x="${formatNumber(band.x)}" y="${formatNumber(band.y)}" width="${formatNumber(Math.max(1, band.width))}" height="${formatNumber(Math.max(1, band.height))}"><div xmlns="http://www.w3.org/1999/xhtml" style="box-sizing:border-box;width:100%;height:100%;margin:0;font-family:system-ui,sans-serif;font-size:${formatNumber(band.fontSize)}px;line-height:${formatNumber(lineHeight)}px;letter-spacing:-0.01em;color:${band.color};overflow:hidden;white-space:nowrap;text-overflow:ellipsis;${weight}">${escapeHtmlText(band.text)}</div></foreignObject>`;
1022
+ };
1023
+ var getLinkProtocol = (href) => {
1024
+ try {
1025
+ return new URL(href).protocol;
1026
+ } catch {
1027
+ return "";
1028
+ }
1029
+ };
1030
+ var getLinkInitial = (hostname) => {
1031
+ const first = hostname.trim().charAt(0).toUpperCase();
1032
+ return first || "L";
1033
+ };
1034
+ var getStableLinkIdSuffix = (value) => {
1035
+ let hash = 0;
1036
+ for (const char of value) {
1037
+ hash = hash * 31 + char.charCodeAt(0) >>> 0;
1038
+ }
1039
+ return hash.toString(36);
1040
+ };
1041
+ function buildLinkCardSvg(width, _height, link) {
1042
+ const cardWidth = Math.max(1, width);
1043
+ const scale = cardWidth / DEFAULT_LINK_CARD_WIDTH;
1044
+ const contentWidth = DEFAULT_LINK_CARD_WIDTH;
1045
+ const contentHeight = DEFAULT_LINK_CARD_HEIGHT;
1046
+ const padding = 14;
1047
+ const badgeSize = 42;
1048
+ const gap = 13;
1049
+ const buttonSize = 34;
1050
+ const textX = padding + badgeSize + gap;
1051
+ const textWidth = Math.max(1, contentWidth - textX - buttonSize - gap - padding);
1052
+ const hostname = getLinkHostname(link.href);
1053
+ const title = link.title?.trim() || hostname || "Link";
1054
+ const protocol = getLinkProtocol(link.href);
1055
+ const subtitle = hostname || link.href;
1056
+ const idSuffix = getStableLinkIdSuffix(`${hostname}:${link.href}`);
1057
+ const gradientId = `canvu-link-favicon-gradient-${idSuffix}`;
1058
+ const buttonX = contentWidth - padding - buttonSize;
1059
+ const buttonY = (contentHeight - buttonSize) / 2;
1060
+ const isSecure = protocol === "https:";
1061
+ const subtitleX = isSecure ? textX + 13 : textX;
1062
+ const subtitleWidth = isSecure ? textWidth - 13 : textWidth;
1063
+ return `
1064
+ <style>
1065
+ .canvu-link-card-root .canvu-link-card { transition: transform .18s ease, filter .18s ease, stroke .18s ease; }
1066
+ .canvu-link-card-root .canvu-link-open { opacity: 0; transform: translateX(-4px); transition: opacity .18s ease, transform .18s ease; }
1067
+ .canvu-link-card-root:hover .canvu-link-card { transform: translateY(-2px); filter: drop-shadow(0 4px 14px oklch(0.4 0.05 265 / .08)) drop-shadow(0 1px 3px oklch(0.4 0.05 265 / .06)); stroke: ${LINK_CARD_BORDER_STRONG}; }
1068
+ .canvu-link-card-root:hover .canvu-link-open { opacity: 1; transform: translateX(0); }
1069
+ </style>
1070
+ <g class="canvu-link-card-root" transform="scale(${formatNumber(scale)})">
1071
+ <rect class="canvu-link-card" width="${formatNumber(contentWidth)}" height="${formatNumber(contentHeight)}" rx="16" fill="#ffffff" stroke="${LINK_CARD_BORDER}" stroke-width="1" filter="drop-shadow(0 1px 2px oklch(0.4 0.03 265 / .05)) drop-shadow(0 1px 1px oklch(0.4 0.03 265 / .04))" />
1072
+ <defs>
1073
+ <linearGradient id="${gradientId}" x1="8" y1="48" x2="48" y2="8" gradientUnits="userSpaceOnUse">
1074
+ <stop stop-color="${LINK_CARD_ACCENT}" />
1075
+ <stop offset="1" stop-color="${LINK_CARD_ACCENT_DEEP}" />
1076
+ </linearGradient>
1077
+ </defs>
1078
+ <rect x="${formatNumber(padding)}" y="${formatNumber(padding)}" width="${formatNumber(badgeSize)}" height="${formatNumber(badgeSize)}" rx="11" fill="url(#${gradientId})" />
1079
+ <text x="${formatNumber(padding + badgeSize / 2)}" y="${formatNumber(padding + badgeSize / 2 + 5)}" text-anchor="middle" font-family="system-ui,sans-serif" font-size="17" font-weight="700" fill="#ffffff">${escapeHtmlText(getLinkInitial(hostname))}</text>
1080
+ ${buildLinkTextBand({ x: textX, y: 16, width: textWidth, height: 19, text: title, fontSize: 14.5, color: LINK_CARD_TITLE_COLOR, fontWeight: 700 })}
1081
+ ${isSecure ? `<g transform="translate(${formatNumber(textX)},40)" stroke="${LINK_CARD_TEXT_COLOR}" stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round" fill="none"><rect x="1.5" y="4.5" width="7" height="6" rx="1" /><path d="M3 4.5 V3 a2 2 0 0 1 4 0 v1.5" /></g>` : ""}
1082
+ ${buildLinkTextBand({ x: subtitleX, y: 36, width: subtitleWidth, height: 17, text: subtitle, fontSize: 12.5, color: LINK_CARD_TEXT_COLOR })}
1083
+ <g class="canvu-link-open" transform="translate(${formatNumber(buttonX)},${formatNumber(buttonY)})">
1084
+ <rect width="${formatNumber(buttonSize)}" height="${formatNumber(buttonSize)}" rx="10" fill="#ffffff" stroke="${LINK_CARD_BORDER}" stroke-width="1" />
1085
+ <g transform="translate(10,10)" stroke="${LINK_CARD_TEXT_COLOR}" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" fill="none">
1086
+ <path d="M8 2 H14 V8" />
1087
+ <path d="M14 2 L7 9" />
1088
+ <path d="M12 10 V13 a1 1 0 0 1 -1 1 H3 a1 1 0 0 1 -1 -1 V5 a1 1 0 0 1 1 -1 H6" />
1089
+ </g>
1090
+ </g>
1091
+ </g>
1092
+ `;
1093
+ }
1094
+ var isCanvuLinkData = (value) => {
1095
+ if (!value || typeof value !== "object") return false;
1096
+ const candidate = value;
1097
+ return typeof candidate.href === "string" && candidate.href.length > 0;
1098
+ };
1099
+ function getLinkData(item) {
1100
+ const entry = item.pluginData?.[LINK_PLUGIN_KEY];
1101
+ return isCanvuLinkData(entry) ? entry : null;
1102
+ }
1103
+ function isLinkItem(item) {
1104
+ return getLinkData(item) != null;
1105
+ }
1106
+ function rebuildLinkItemSvg(item) {
1107
+ const link = getLinkData(item);
1108
+ if (!link) return item;
1109
+ const scale = clamp(
1110
+ item.bounds.width / DEFAULT_LINK_CARD_WIDTH,
1111
+ LINK_CARD_MIN_SCALE,
1112
+ LINK_CARD_MAX_SCALE
1113
+ );
1114
+ const width = DEFAULT_LINK_CARD_WIDTH * scale;
1115
+ const height = DEFAULT_LINK_CARD_HEIGHT * scale;
1116
+ const bounds = {
1117
+ ...item.bounds,
1118
+ width,
1119
+ height
1120
+ };
1121
+ const customInnerSvg = buildLinkCardSvg(
1122
+ DEFAULT_LINK_CARD_WIDTH,
1123
+ DEFAULT_LINK_CARD_HEIGHT,
1124
+ link
1125
+ );
1126
+ return {
1127
+ ...item,
1128
+ x: bounds.x,
1129
+ y: bounds.y,
1130
+ bounds,
1131
+ customIntrinsicSize: {
1132
+ width: DEFAULT_LINK_CARD_WIDTH,
1133
+ height: DEFAULT_LINK_CARD_HEIGHT
1134
+ },
1135
+ customInnerSvg,
1136
+ childrenSvg: buildLinkCardSvg(width, height, link)
1137
+ };
1138
+ }
1139
+ function createLinkItem(id, bounds, link) {
1140
+ const width = bounds.width || DEFAULT_LINK_CARD_WIDTH;
1141
+ const height = bounds.height || DEFAULT_LINK_CARD_HEIGHT;
1142
+ const item = createCustomShapeItem(
1143
+ id,
1144
+ { ...bounds, width, height },
1145
+ { render: (size) => buildLinkCardSvg(size.width, size.height, link) }
1146
+ );
1147
+ return rebuildLinkItemSvg({
1148
+ ...item,
1149
+ pluginData: {
1150
+ ...item.pluginData ?? {},
1151
+ [LINK_PLUGIN_KEY]: link
1152
+ }
1153
+ });
1154
+ }
1155
+ var DEFAULT_LINK_CARD_SIZE = {
1156
+ width: DEFAULT_LINK_CARD_WIDTH,
1157
+ height: DEFAULT_LINK_CARD_HEIGHT
1158
+ };
1159
+
993
1160
  // src/scene/text-svg.ts
994
1161
  function escapeSvgTextContent(s) {
995
1162
  return s.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
996
1163
  }
997
- function escapeHtmlText(s) {
1164
+ function escapeHtmlText2(s) {
998
1165
  return s.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
999
1166
  }
1000
1167
  var DEFAULT_TEXT_FONT_SIZE = 18;
@@ -1102,9 +1269,9 @@ function buildTextFixedBoundsSvg(content, width, height, fillColor = "#1d1d1d",
1102
1269
  const trimmed = content.trim();
1103
1270
  const padTop = EDIT_TOP_PAD_RATIO * fontSize;
1104
1271
  if (trimmed.length === 0) {
1105
- return `<foreignObject width="${w}" height="${h}"><div xmlns="http://www.w3.org/1999/xhtml" style="box-sizing:border-box;width:100%;height:100%;margin:0;padding:${padTop}px 4px 0 4px;font-size:${fontSize}px;line-height:${lh}px;font-family:${TEXT_FONT_FAMILY};white-space:pre-wrap;word-wrap:break-word;overflow:hidden;color:#94a3b8;font-style:italic">${escapeHtmlText(PLACEHOLDER)}</div></foreignObject>`;
1272
+ return `<foreignObject width="${w}" height="${h}"><div xmlns="http://www.w3.org/1999/xhtml" style="box-sizing:border-box;width:100%;height:100%;margin:0;padding:${padTop}px 4px 0 4px;font-size:${fontSize}px;line-height:${lh}px;font-family:${TEXT_FONT_FAMILY};white-space:pre-wrap;word-wrap:break-word;overflow:hidden;color:#94a3b8;font-style:italic">${escapeHtmlText2(PLACEHOLDER)}</div></foreignObject>`;
1106
1273
  }
1107
- const body = escapeHtmlText(content);
1274
+ const body = escapeHtmlText2(content);
1108
1275
  return `<foreignObject width="${w}" height="${h}"><div xmlns="http://www.w3.org/1999/xhtml" style="box-sizing:border-box;width:100%;height:100%;margin:0;padding:${padTop}px 4px 0 4px;font-size:${fontSize}px;line-height:${lh}px;font-family:${TEXT_FONT_FAMILY};white-space:pre-wrap;word-wrap:break-word;overflow:hidden;color:${fillColor}">${body}</div></foreignObject>`;
1109
1276
  }
1110
1277
 
@@ -1702,6 +1869,9 @@ function rebuildItemSvg(item) {
1702
1869
  )
1703
1870
  };
1704
1871
  }
1872
+ if (getLinkData(item)) {
1873
+ return rebuildLinkItemSvg(item);
1874
+ }
1705
1875
  if (k === "custom" && item.customIntrinsicSize && item.customInnerSvg) {
1706
1876
  const b = normalizeRect(item.bounds);
1707
1877
  return {
@@ -2805,105 +2975,6 @@ function cloneVectorSceneItemsWithNewIds(items) {
2805
2975
  return items.map(cloneVectorSceneItemWithNewId);
2806
2976
  }
2807
2977
 
2808
- // src/scene/link-item.ts
2809
- var LINK_PLUGIN_KEY = "canvuLink";
2810
- var DEFAULT_LINK_CARD_WIDTH = 360;
2811
- var DEFAULT_LINK_CARD_HEIGHT = 132;
2812
- var LINK_CARD_BORDER = "#e2e8f0";
2813
- var LINK_CARD_ACCENT = "#2563eb";
2814
- var LINK_CARD_TITLE_COLOR = "#0f172a";
2815
- var LINK_CARD_TEXT_COLOR = "#475569";
2816
- var clamp = (value, min, max) => Math.min(max, Math.max(min, value));
2817
- var formatNumber = (value) => {
2818
- const rounded = Math.round(value * 100) / 100;
2819
- return Object.is(rounded, -0) ? "0" : String(rounded);
2820
- };
2821
- var escapeXmlAttribute = (value) => value.replaceAll("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;").replaceAll('"', "&quot;").replaceAll("'", "&#39;");
2822
- var escapeHtmlText2 = (value) => value.replaceAll("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;");
2823
- var getLinkHostname = (href) => {
2824
- try {
2825
- return new URL(href).hostname.replace(/^www\./, "");
2826
- } catch {
2827
- return href;
2828
- }
2829
- };
2830
- var buildLinkTextBand = (band) => {
2831
- const lineHeight = band.fontSize * 1.3;
2832
- const weight = band.fontWeight != null ? `font-weight:${band.fontWeight};` : "";
2833
- const lineClampStyle = band.clampLines ? `display:-webkit-box;-webkit-line-clamp:${band.clampLines};-webkit-box-orient:vertical;` : "";
2834
- return `<foreignObject x="${formatNumber(band.x)}" y="${formatNumber(band.y)}" width="${formatNumber(Math.max(1, band.width))}" height="${formatNumber(Math.max(1, band.height))}"><div xmlns="http://www.w3.org/1999/xhtml" style="box-sizing:border-box;width:100%;height:100%;margin:0;font-family:system-ui,sans-serif;font-size:${formatNumber(band.fontSize)}px;line-height:${formatNumber(lineHeight)}px;color:${band.color};overflow:hidden;word-break:break-word;${lineClampStyle}${weight}">${escapeHtmlText2(band.text)}</div></foreignObject>`;
2835
- };
2836
- function buildLinkCardSvg(width, height, link) {
2837
- const cardWidth = Math.max(1, width);
2838
- const cardHeight = Math.max(1, height);
2839
- const padding = 14;
2840
- const badgeSize = clamp(Math.min(72, cardHeight - padding * 2), 28, 96);
2841
- const textX = padding + badgeSize + 14;
2842
- const textWidth = Math.max(1, cardWidth - textX - padding);
2843
- const hostname = getLinkHostname(link.href);
2844
- const title = link.title?.trim() || hostname || "Link";
2845
- const description = link.description?.trim() || link.href;
2846
- const titleY = padding;
2847
- const titleHeight = clamp(cardHeight * 0.22, 18, 28);
2848
- const hostY = titleY + titleHeight + 2;
2849
- const hostHeight = 16;
2850
- const descY = hostY + hostHeight + 4;
2851
- const descHeight = Math.max(1, cardHeight - descY - padding);
2852
- const badge = link.favicon ? `<clipPath id="canvu-link-badge"><rect x="${formatNumber(padding)}" y="${formatNumber(padding)}" width="${formatNumber(badgeSize)}" height="${formatNumber(badgeSize)}" rx="12" /></clipPath>
2853
- <rect x="${formatNumber(padding)}" y="${formatNumber(padding)}" width="${formatNumber(badgeSize)}" height="${formatNumber(badgeSize)}" rx="12" fill="#f8fafc" stroke="${LINK_CARD_BORDER}" stroke-width="1" />
2854
- <image href="${escapeXmlAttribute(link.favicon)}" x="${formatNumber(padding)}" y="${formatNumber(padding)}" width="${formatNumber(badgeSize)}" height="${formatNumber(badgeSize)}" preserveAspectRatio="xMidYMid slice" clip-path="url(#canvu-link-badge)" />` : `<rect x="${formatNumber(padding)}" y="${formatNumber(padding)}" width="${formatNumber(badgeSize)}" height="${formatNumber(badgeSize)}" rx="12" fill="${LINK_CARD_ACCENT}" fill-opacity="0.1" stroke="${LINK_CARD_ACCENT}" stroke-opacity="0.3" stroke-width="1" />
2855
- <g transform="translate(${formatNumber(padding + badgeSize / 2)},${formatNumber(padding + badgeSize / 2)})" stroke="${LINK_CARD_ACCENT}" stroke-width="2.4" stroke-linecap="round" fill="none">
2856
- <path d="M-9 3 a6 6 0 0 1 0 -8 l4 -4 a6 6 0 0 1 8 8 l-2 2" />
2857
- <path d="M9 -3 a6 6 0 0 1 0 8 l-4 4 a6 6 0 0 1 -8 -8 l2 -2" />
2858
- </g>`;
2859
- const externalIconX = cardWidth - padding - 16;
2860
- const externalIcon = `<g transform="translate(${formatNumber(externalIconX)},${formatNumber(padding)})" stroke="${LINK_CARD_TEXT_COLOR}" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" fill="none">
2861
- <path d="M6 1 H11 V6" />
2862
- <path d="M11 1 L4.5 7.5" />
2863
- <path d="M9 7 V10 a1 1 0 0 1 -1 1 H2 a1 1 0 0 1 -1 -1 V4 a1 1 0 0 1 1 -1 H5" />
2864
- </g>`;
2865
- return `
2866
- <rect width="${formatNumber(cardWidth)}" height="${formatNumber(cardHeight)}" rx="16" fill="#ffffff" stroke="${LINK_CARD_BORDER}" stroke-width="1.5" />
2867
- ${badge}
2868
- ${externalIcon}
2869
- ${buildLinkTextBand({ x: textX, y: titleY, width: textWidth - 18, height: titleHeight, text: title, fontSize: 15, color: LINK_CARD_TITLE_COLOR, fontWeight: 700, clampLines: 1 })}
2870
- ${buildLinkTextBand({ x: textX, y: hostY, width: textWidth, height: hostHeight, text: hostname, fontSize: 12, color: LINK_CARD_ACCENT, clampLines: 1 })}
2871
- ${buildLinkTextBand({ x: textX, y: descY, width: textWidth, height: descHeight, text: description, fontSize: 12, color: LINK_CARD_TEXT_COLOR, clampLines: 2 })}
2872
- `;
2873
- }
2874
- var isCanvuLinkData = (value) => {
2875
- if (!value || typeof value !== "object") return false;
2876
- const candidate = value;
2877
- return typeof candidate.href === "string" && candidate.href.length > 0;
2878
- };
2879
- function getLinkData(item) {
2880
- const entry = item.pluginData?.[LINK_PLUGIN_KEY];
2881
- return isCanvuLinkData(entry) ? entry : null;
2882
- }
2883
- function isLinkItem(item) {
2884
- return getLinkData(item) != null;
2885
- }
2886
- function createLinkItem(id, bounds, link) {
2887
- const width = bounds.width || DEFAULT_LINK_CARD_WIDTH;
2888
- const height = bounds.height || DEFAULT_LINK_CARD_HEIGHT;
2889
- const item = createCustomShapeItem(
2890
- id,
2891
- { ...bounds, width, height },
2892
- { render: (size) => buildLinkCardSvg(size.width, size.height, link) }
2893
- );
2894
- return {
2895
- ...item,
2896
- pluginData: {
2897
- ...item.pluginData ?? {},
2898
- [LINK_PLUGIN_KEY]: link
2899
- }
2900
- };
2901
- }
2902
- var DEFAULT_LINK_CARD_SIZE = {
2903
- width: DEFAULT_LINK_CARD_WIDTH,
2904
- height: DEFAULT_LINK_CARD_HEIGHT
2905
- };
2906
-
2907
2978
  // src/scene/managed-images.ts
2908
2979
  var MANAGED_KEY = "managed";
2909
2980
  var STACK_GAP_WORLD = 16;