dsh-chubby-whale 1.1.53 → 1.1.54
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/CHANGELOG.md +10 -0
- package/dist/client.js +6 -4
- package/docs//345/217/221/345/270/203/350/247/204/350/214/203.md +7 -7
- package/docs//346/250/241/345/235/227/346/216/245/345/217/243/346/270/205/345/215/225.md +2 -2
- package/docs//350/267/250/345/271/263/345/217/260/344/270/216/345/210/206/345/267/245.md +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,16 @@
|
|
|
4
4
|
|
|
5
5
|
## [未发布]
|
|
6
6
|
|
|
7
|
+
## [1.1.54] - 2026-11-07
|
|
8
|
+
|
|
9
|
+
### 修复(B68 主代理:缩放被拖拽抹掉)
|
|
10
|
+
- **「先缩放再拖」会丢缩放**:`client.ts` 的 `applyPos` 在拖动时直接写 `el.style.transform = translate3d(...)`、松手写 `transform = ''`,把 `stageStyle` 里的 `scale(...)` 整个覆盖;React 认为 style 没变不会写回,于是拖一次缩放就没了
|
|
11
|
+
- 新增 `styles.stageTransform(scale, tx, ty)` 作为**唯一**的 stage transform 构造函数(位移 + 缩放一起给),`stageStyle` 与 `applyPos` 共用;位移按屏幕像素走,不受缩放倍数影响
|
|
12
|
+
|
|
13
|
+
### 测试
|
|
14
|
+
- `scripts/test-render-layer.mjs` 补 7 条:合成顺序/NaN 位移归零/`stageStyle` 与构造器一致,以及 `client.ts` 三分支静态契约(拖动带 scale、静置保留 scale、不再清空 transform)
|
|
15
|
+
- 全链 **2173 项 0 失败**;接口清单 119 模块 / 717 导出
|
|
16
|
+
|
|
7
17
|
## [1.1.53] - 2026-11-07
|
|
8
18
|
|
|
9
19
|
### 修复(B66 缓存/存储分身)
|
package/dist/client.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
// src/client/version.ts
|
|
17
|
-
var VERSION = "1.1.
|
|
17
|
+
var VERSION = "1.1.54";
|
|
18
18
|
|
|
19
19
|
// src/client/styles.ts
|
|
20
20
|
var W = 240;
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
var CH = 426;
|
|
24
24
|
var SX = CW / 1696;
|
|
25
25
|
var SY = CH / 1504;
|
|
26
|
+
var stageTransform = (scale, tx = 0, ty = 0) => "translate3d(" + (tx || 0) + "px," + (ty || 0) + "px,0) scale(" + (scale || 1) + ")";
|
|
26
27
|
var stageStyle = (scale, hidden) => ({
|
|
27
28
|
position: "fixed",
|
|
28
29
|
left: 0,
|
|
@@ -34,7 +35,7 @@
|
|
|
34
35
|
zIndex: 9999,
|
|
35
36
|
cursor: "grab",
|
|
36
37
|
touchAction: "none",
|
|
37
|
-
transform:
|
|
38
|
+
transform: stageTransform(scale),
|
|
38
39
|
// 缩放原点用左上角:与 stage.ts 的 clampPos(按左上坐标 + W*s 宽高钳制)同口径;
|
|
39
40
|
// 原先 100% 100%(右下)会让缩放后的鱼贴边溢出约 96px。
|
|
40
41
|
transformOrigin: "0 0",
|
|
@@ -8204,15 +8205,16 @@
|
|
|
8204
8205
|
const p = clampPos(x, y, W * s, H * s, window.innerWidth, window.innerHeight);
|
|
8205
8206
|
x = p.x;
|
|
8206
8207
|
y = p.y;
|
|
8208
|
+
const vs = scaleRef.current || 1;
|
|
8207
8209
|
const d = dragRef.current;
|
|
8208
8210
|
if (d && d.dragging) {
|
|
8209
8211
|
const bx = typeof d.baseX === "number" ? d.baseX : x;
|
|
8210
8212
|
const by = typeof d.baseY === "number" ? d.baseY : y;
|
|
8211
|
-
el.style.transform =
|
|
8213
|
+
el.style.transform = stageTransform(vs, x - bx, y - by);
|
|
8212
8214
|
} else {
|
|
8213
8215
|
el.style.left = x + "px";
|
|
8214
8216
|
el.style.top = y + "px";
|
|
8215
|
-
el.style.transform =
|
|
8217
|
+
el.style.transform = stageTransform(vs);
|
|
8216
8218
|
}
|
|
8217
8219
|
posRef.current = { x, y };
|
|
8218
8220
|
}
|
|
@@ -12,14 +12,14 @@
|
|
|
12
12
|
|
|
13
13
|
| 项 | 值 |
|
|
14
14
|
| --- | --- |
|
|
15
|
-
| `package.json` version | 1.1.
|
|
16
|
-
| `src/client/version.ts` VERSION | 1.1.
|
|
17
|
-
| 最近 Gitee tag | `v1.1.
|
|
18
|
-
| Gitee `main` HEAD | `
|
|
19
|
-
| GitHub `main` | `
|
|
20
|
-
| npm latest | **1.1.
|
|
15
|
+
| `package.json` version | 1.1.53 |
|
|
16
|
+
| `src/client/version.ts` VERSION | 1.1.53(由 `scripts/gen-version.mjs` 生成) |
|
|
17
|
+
| 最近 Gitee tag | `v1.1.53`(提交 `ee4b3dd`) |
|
|
18
|
+
| Gitee `main` HEAD | `ee4b3dd` |
|
|
19
|
+
| GitHub `main` | `1c1d38c`;tag `v1.1.53` → `1c1d38c`(API 解包核对 1.1.53) |
|
|
20
|
+
| npm latest | **1.1.53**(2026-11-07 实读;发布返回 202,约 2–4 分钟后可见)。已发布版本:1.1.48 / 1.1.50 / 1.1.51 / 1.1.53;1.1.49、1.1.52 仅 Gitee+GitHub(跳档不影响 `latest`) |
|
|
21
21
|
| README 版本 | 无硬编码版本号 |
|
|
22
|
-
| `npm test` | **
|
|
22
|
+
| `npm test` | **2166 项**:861 单测 + 59 限额 + 58 流式 + 17 说书安全 + 110 行为回归 + 50 语音契约 + 18 客户端冒烟 + 18 宿主冒烟 + 171 语音队列 + 32 TTS 引擎 + 79 数据层 + 112 仓储 + 83 人格 + 57 说书 + 31 聊天路由 + 33 菜单动作 + 74 说书客户端 + 24 连播开关 + 88 内容路由 + 73 渲染层 + 86 缓存存储 + 32 平台 |
|
|
23
23
|
| `npm pack --dry-run` | **128 个文件 / 17.1 MB**(包);`data/cache`、运行数据、`config.json`、`src/`、`scripts/`、`tools/` 均不进包 |
|
|
24
24
|
## 一、版本号规则
|
|
25
25
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
> 架构宪章:**模块只对外暴露这些导出,外部不得读取模块内部实现**。
|
|
6
6
|
> 新增/修改导出 = 接口变更,必须同步调用点并在提交信息里写明。
|
|
7
7
|
|
|
8
|
-
> 统计:119 个模块文件,
|
|
8
|
+
> 统计:119 个模块文件,717 个导出项。
|
|
9
9
|
|
|
10
10
|
## 宿主(Node)(`src/host/`)
|
|
11
11
|
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
| `stage.ts` | `DragInputHandlers`、`DragState`、`INERTIA_DECAY`、`INERTIA_MAX`、`INERTIA_STOP`、`Pos`、`beginDrag`、`bindDragInput`、`clampPos`、`clampVelocity`、`createDragState`、`decayVelocity`、`endDrag`、`homePos`、`moveDrag`、`pickInputMode`、`pointOf` |
|
|
114
114
|
| `story-auto.ts` | `STORY_AUTO_KEY`、`hasStoryAutoStorage`、`isStoryAutoOn`、`setStoryAuto` |
|
|
115
115
|
| `story.ts` | `StoryController`、`StoryHost`、`StoryRefs`、`createStoryController` |
|
|
116
|
-
| `styles.ts` | `CH`、`CW`、`H`、`SX`、`SY`、`VERSION`、`W`、`bodyStyle`、`canvasStyle`、`chatPanelStyle`、`headStyle`、`inputRowStyle`、`inputStyle`、`menuItemStyle`、`menuStyle`、`menuSubStyle`、`msgStyle`、`recoverDotStyle`、`sendStyle`、`stageStyle` |
|
|
116
|
+
| `styles.ts` | `CH`、`CW`、`H`、`SX`、`SY`、`VERSION`、`W`、`bodyStyle`、`canvasStyle`、`chatPanelStyle`、`headStyle`、`inputRowStyle`、`inputStyle`、`menuItemStyle`、`menuStyle`、`menuSubStyle`、`msgStyle`、`recoverDotStyle`、`sendStyle`、`stageStyle`、`stageTransform` |
|
|
117
117
|
| `text.ts` | `Deduper`、`SentenceBuffer`、`collapsePoemBody`、`collapseText`、`createDeduper`、`createSentenceBuffer`、`echoKey`、`estimateSpeakMs`、`isShortEchoFragment`、`normalizePlain`、`stripStageDirections`、`taleParts` |
|
|
118
118
|
| `util.ts` | `clearI`、`clearT`、`evPrevent`、`evStop`、`str` |
|
|
119
119
|
| `version.ts` | `VERSION` |
|
|
@@ -110,3 +110,4 @@
|
|
|
110
110
|
| B65 | 2026-11-07 | 渲染层分身:`stage.dispose` 按 capture=true 撤监听(漏撤 4 个)/ `anim` 单帧异常续帧 + save/restore finally / `styles` 无 window 守卫 + NaN 坐标 + 窄视口面板溢出;新增 `test-render-layer.mjs`(73);版本 1.1.52 | 双 tsc 0 / build 0(+1751B) / 2080 项 0 失败 | 见 git |
|
|
111
111
|
| B66 | 2026-11-07 | 缓存/存储分身:`memSet` 补拷贝 / `getJson` 命中核对条目身份(防旧值复辟、`memBytes` 漂移)/ `setJson` 与 `writeFileAtomic` 写失败清 `.tmp`;新增 `test-store-cache.mjs`(86);版本 1.1.53 | 双 tsc 0 / build 0 / 2166 项 0 失败 | 见 git |
|
|
112
112
|
| B67 | 2026-11-07 | 封装基础设施:修 `check-boundaries` B5/B6 引号 bug(规则从未生效,已负向验证会拦)+ 补 `prefs.js`;`hashKey/shortHash/hashBytes` 上移 `shared/hash.ts`,路由不再为 hash 直连 cache;ADR 0002 增补 `chat-core` 受控例外;接口清单 119 模块/716 导出;版本 1.1.53 | 双 tsc 0 / build 0 / 2166 项 0 失败 / 检查器 exit 0(违规探针 exit 1) | 见 git |
|
|
113
|
+
| B68 | 2026-11-07 | 主代理:`styles.stageTransform(scale,tx,ty)` 收口 stage transform,修「先缩放再拖会丢缩放」(`applyPos` 曾用 `translate3d` 覆盖 `scale`、松手清空);`stageStyle` 与 `applyPos` 共用同一构造器;`test-render-layer` 补 7 条(含 client.ts 静态契约);版本 1.1.54 | 双 tsc 0 / build 0 / **2173 项 0 失败** / 119 模块 717 导出 | 见 git |
|