dsh-drawai 0.4.1 → 0.4.2

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.
@@ -0,0 +1,10 @@
1
+ // 由 tools/build-demo-assets-pack.mjs 生成,勿手改。
2
+ export const DEMO_ASSETS_LOCK = {
3
+ "version": "v1",
4
+ "file": "drawai-demo-assets-v1.tar.gz",
5
+ "bytes": 169794,
6
+ "sha256": "05a6fb947cb71bf51af309134d3d83a978dd5a6eb1ce1799779eb4346d519bce",
7
+ "files": 1,
8
+ "rawBytes": 549376,
9
+ "builtAt": "2026-11-08T16:48:01.972Z"
10
+ }
@@ -0,0 +1,28 @@
1
+ # vendored demo 依赖
2
+
3
+ `upstream/demos/*/index.html` 的 importmap 和 `<script src>` 指向 `/node_modules/*`。这些包不在
4
+ 视频运行时(`src/motion/runtime/package.json`)的依赖里,装到用户机器上就无从服务,于是
5
+ `mg_style action:"frames"` 直接报「依赖没装在本机」(issue #27)。
6
+
7
+ 这里按**原包内路径**放好被引用的构建产物,`src/motion/style-frames.js` 在服务 `/node_modules/*`
8
+ 时先查视频运行时、再回落到本目录,所以用户什么都不用装。
9
+
10
+ ```
11
+ modules/<包名>/<包内原路径>
12
+ ```
13
+
14
+ | 包 | 版本 | 文件 | 许可证 |
15
+ | --- | --- | --- | --- |
16
+ | d3 | 7.9.0 | `d3/dist/d3.min.js` | ISC(见 `d3/LICENSE`) |
17
+ | topojson-client | 3.1.0 | `topojson-client/dist/topojson-client.min.js` | ISC(见 `topojson-client/LICENSE`) |
18
+ | opentype.js | 1.3.4 | `opentype.js/dist/opentype.mjs` | MIT(见 `opentype.js/LICENSE`) |
19
+ | simplex-noise | 4.0.3 | `simplex-noise/dist/esm/simplex-noise.js` | MIT(见 `simplex-noise/LICENSE`) |
20
+
21
+ - 只用到的文件放进来了,没有整包拷(约 780 KB)。
22
+ - 目录叫 `modules` 而不是 `node_modules`:npm 打包会无条件跳过任何名为 `node_modules` 的目录,
23
+ 那样 vendored 文件进不了 tarball。`.gitignore` / `.npmignore` 里给了 `dist/` 的例外规则,
24
+ 否则这几个文件会被当成构建产物忽略。
25
+ - `opentype.js` 1.3.4 的 ESM 构建叫 `dist/opentype.module.js`,demo 按 `dist/opentype.mjs` 引用,
26
+ 所以这里用前者的内容放到后者的文件名下;升级时按同样规则替换。
27
+ - `three` 不在这里:视频运行时的依赖清单已包含 three 0.183.2,`/node_modules/three/*` 由运行时提供。
28
+ - 升级包时同步改本表版本号,并重跑 `node tools/check-package.mjs`(它校验这几个文件是否存在)。
@@ -0,0 +1,13 @@
1
+ Copyright 2010-2023 Mike Bostock
2
+
3
+ Permission to use, copy, modify, and/or distribute this software for any purpose
4
+ with or without fee is hereby granted, provided that the above copyright notice
5
+ and this permission notice appear in all copies.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
8
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
9
+ FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
10
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
11
+ OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
12
+ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
13
+ THIS SOFTWARE.