Commit Graph

15 Commits

Author SHA1 Message Date
a1518
26d3717169 Fix GitHub Pages deploy workflow permissions and branch trigger
- Change trigger branch from main to 0.4.0
- Upgrade contents permission from read to write for gh-pages push
- Also trigger on workflow file changes

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-02 23:34:48 -07:00
a1518
bea6de3767 Add Docusaurus documentation site with i18n support
- Docusaurus 3.7.0 with both English and Chinese (zh-CN) locales
- Full API reference split into structured pages
- Homepage with hero, feature cards, and quick start section
- GitHub Actions workflow for auto-deployment to GitHub Pages

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-02 23:25:56 -07:00
a1518
f7fd70005d docs: add bilingual README (EN default, ZH-CN via switcher)
Split README into README.md (English) and README.zh-CN.md (Chinese)
with cross-links at the top of each file. All heading anchors in the
Chinese version use explicit <a id="..."> tags for reliable TOC
navigation on GitHub.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-02 22:50:32 -07:00
a1518
8bc66a4ee9 refactor: remove Chinese, add build obfuscation, polish README
Some checks failed
Publish to npm / publish (push) Has been cancelled
- Remove all Chinese characters from src/, example/, ios/, patches/, tests/
- Add esbuild-based build obfuscation (minify + identifier mangle + no sourcemaps)
- Drop src/ from npm publish, only ship minified dist/
- Remove source maps and declaration maps from build output
- Add README icons and visual polish throughout
- Fix broken Table of Contents anchor links in README

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-01 19:07:32 -07:00
a1518
843544b9e8 fix: align default pipeline config with docs and split large modules
- Fix DEFAULT_PIPELINE_CONFIG from PIPELINE_HIGH (1440) to PIPELINE_MEDIUM
  (720) to match documented performance estimates and test expectations
- Extract geometry/hit-detection utilities from MaskSegmentCanvas.tsx into
  canvasGeometry.ts (~380 lines)
- Extract outline path functions from maskSegmentation.ts into
  maskOutlinePaths.ts (~470 lines)
- Net reduction of ~1,700 lines across the two core files

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-01 02:13:38 -07:00
a1518
2dd744de0f ci: add npm publish workflow triggered on push to main
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-01 01:04:20 -07:00
a1518
1b3a6d5a4a docs: align Markdown table columns in README
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-01 00:53:21 -07:00
a1518
db572ee51d Merge branch 'main' into 0.2.0
Co-authored-by: Cursor <cursoragent@cursor.com>

# Conflicts:
#	App.tsx
#	README.md
#	dist/components/MaskSegmentCanvas.d.ts.map
#	dist/components/MaskSegmentCanvas.js
#	dist/components/MaskSegmentCanvas.js.map
#	dist/components/MaskSegmentCanvas.types.d.ts
#	dist/components/MaskSegmentCanvas.types.d.ts.map
#	dist/index.d.ts
#	dist/index.d.ts.map
#	dist/index.js
#	dist/index.js.map
#	dist/utils/freqLayerPrep.d.ts
#	dist/utils/freqLayerPrep.d.ts.map
#	dist/utils/freqLayerPrep.js
#	dist/utils/freqLayerPrep.js.map
#	dist/utils/maskSegmentRuntime.d.ts.map
#	dist/utils/maskSegmentRuntime.js
#	dist/utils/maskSegmentRuntime.js.map
#	dist/utils/maskSegmentation.d.ts
#	dist/utils/maskSegmentation.d.ts.map
#	dist/utils/maskSegmentation.js
#	dist/utils/maskSegmentation.js.map
#	dist/utils/maskSemanticPalette.d.ts.map
#	dist/utils/maskSemanticPalette.js
#	dist/utils/maskSemanticPalette.js.map
#	dist/utils/paintShaderRuntime.js
#	dist/utils/paintShaderRuntime.js.map
#	dist/utils/resolveImageUrl.d.ts
#	dist/utils/resolveImageUrl.d.ts.map
#	dist/utils/resolveImageUrl.js
#	dist/utils/resolveImageUrl.js.map
#	index.js
#	package.json
#	src/components/MaskSegmentCanvas.tsx
#	src/components/MaskSegmentCanvas.types.ts
#	src/index.ts
#	src/utils/freqLayerPrep.ts
#	src/utils/maskSegmentRuntime.ts
#	src/utils/maskSegmentation.ts
#	src/utils/maskSemanticPalette.ts
#	src/utils/paintShaderRuntime.tsx
#	src/utils/resolveImageUrl.ts
2026-07-01 00:51:55 -07:00
a1518
84b45ef24d refactor: simplify MaskSegmentCanvas core logic and reduce bundle size
Streamline the main canvas component, type definitions, and paint
shader runtime. Removes unused code paths and redundant logic across
src/ and example/, resulting in a net reduction of ~460 lines.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-30 23:56:13 -07:00
a1518
bf6b6cf502 fix: fallback to default semantic colors when config is incomplete
Prevent runtime crashes when custom semanticColors omit baseboard, cabinet, or wall entries.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-30 23:03:29 -07:00
a1518
70499176d6 Add splitWalls to subdivide wall regions by texture boundaries.
Enables optional wall-1/wall-2… sub-regions with independent paint and undo, plus example toggle and unit tests.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-30 22:41:17 -07:00
a1518
eb246efa8a Add example app and fix Android asset loading on image switch.
Introduce the example integration demo, export resolveAssetPath, harden resolveImageUrl for Android bundled assets, and update gitignore to exclude example build outputs.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-30 20:24:43 -07:00
a1518
acd6d3a73d feat: add MaskSegmentApp source code and config
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-26 00:27:28 -07:00
a1518
56738b1f06 feat: add MaskSegmentApp source code and config
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-26 00:23:52 -07:00
陈钰文
08280f38e3 Initial commit 2026-06-13 06:47:11 +08:00