dsh-talk-map 0.1.50 → 0.1.52

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.
Files changed (2) hide show
  1. package/client/client.js +13 -8
  2. package/package.json +1 -1
package/client/client.js CHANGED
@@ -448,7 +448,7 @@ var zh = {
448
448
  "digest.empty": "这条对话还没有摘要,先刷新摘要再来看。",
449
449
  "digest.copy": "复制",
450
450
  "digest.close": "关闭",
451
- "global.searchPlaceholder": "b50 · 搜地图上的卡片(标题/正文)",
451
+ "global.searchPlaceholder": "b52 · 搜地图上的卡片(标题/正文)",
452
452
  "global.searchRun": "搜索",
453
453
  "global.searchTitle": "搜索地图",
454
454
  "font.group": "文字大小",
@@ -599,7 +599,7 @@ var en = {
599
599
  "menu.noGroup": "Remove from group (free card)",
600
600
  "menu.open": "Open conversation",
601
601
  "menu.markUnread": "Mark as unread",
602
- "global.searchPlaceholder": "b50 · Search cards on the map",
602
+ "global.searchPlaceholder": "b52 · Search cards on the map",
603
603
  "global.searchRun": "Search",
604
604
  "global.searchTitle": "Search the map",
605
605
  "font.group": "Text size",
@@ -13063,6 +13063,7 @@ function StackDrawer(props) {
13063
13063
  };
13064
13064
  });
13065
13065
  const next = [];
13066
+ let wireIndex = 0;
13066
13067
  for (const link2 of links) {
13067
13068
  const from = boxOf(link2.from);
13068
13069
  const to = boxOf(link2.to);
@@ -13226,23 +13227,26 @@ function StackDrawer(props) {
13226
13227
  const lanesX = bands2(cardsInDrawer.map((card) => ({ start: card.x, end: card.x + card.w }))).sort((a, b) => Math.abs(a - midX) - Math.abs(b - midX));
13227
13228
  const startStub = { x: startPoint.x + startNormal.x * 12, y: startPoint.y + startNormal.y * 12 };
13228
13229
  const endStub = { x: endPoint.x + endNormal.x * 12, y: endPoint.y + endNormal.y * 12 };
13230
+ const laneOffset = (wireIndex % 7 - 3) * 1.3;
13229
13231
  const shapes = [];
13230
13232
  for (const lane of lanesY) {
13233
+ const at = lane + laneOffset;
13231
13234
  shapes.push([
13232
13235
  startPoint,
13233
13236
  startStub,
13234
- { x: startStub.x, y: lane },
13235
- { x: endStub.x, y: lane },
13237
+ { x: startStub.x, y: at },
13238
+ { x: endStub.x, y: at },
13236
13239
  endStub,
13237
13240
  endPoint
13238
13241
  ]);
13239
13242
  }
13240
13243
  for (const lane of lanesX) {
13244
+ const at = lane + laneOffset;
13241
13245
  shapes.push([
13242
13246
  startPoint,
13243
13247
  startStub,
13244
- { x: lane, y: startStub.y },
13245
- { x: lane, y: endStub.y },
13248
+ { x: at, y: startStub.y },
13249
+ { x: at, y: endStub.y },
13246
13250
  endStub,
13247
13251
  endPoint
13248
13252
  ]);
@@ -13259,10 +13263,11 @@ function StackDrawer(props) {
13259
13263
  }
13260
13264
  const angle = Math.abs(arrival.x) < 0.5 && Math.abs(arrival.y) < 0.5 ? toSide === "l" ? 180 : toSide === "r" ? 0 : toSide === "t" ? -90 : 90 : Math.abs(arrival.x) >= Math.abs(arrival.y) ? arrival.x >= 0 ? 0 : 180 : arrival.y >= 0 ? 90 : -90;
13261
13265
  const arrowAngle = angle;
13266
+ wireIndex += 1;
13262
13267
  next.push({
13263
13268
  d: bestD ?? "M " + startPoint.x + " " + startPoint.y + " L " + endPoint.x + " " + endPoint.y,
13264
- ax: endPoint.x,
13265
- ay: endPoint.y,
13269
+ ax: endPoint.x - endNormal.x * 2.5,
13270
+ ay: endPoint.y - endNormal.y * 2.5,
13266
13271
  angle: arrowAngle,
13267
13272
  from: link2.from,
13268
13273
  to: link2.to
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-talk-map",
3
- "version": "0.1.50",
3
+ "version": "0.1.52",
4
4
  "description": "Visual conversation map for DeepSeek Harness: an infinite whiteboard where every session is a card — drag to arrange, double-click to start a chat in place, draw an edge to fork a new session with injected context. Built for ADHD-friendly spatial memory. · DSH 可视化对话地图:会话即卡片,双击即聊,连线分叉带上下文的新对话。",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",