Commit Graph

11 Commits

Author SHA1 Message Date
Developer
8a253132bb feat: 对称方式可选 - 垂直翻转 / 180° 旋转
为 JQK 人物图和大小王素材添加 symmetry_mode 字段:
- 'flip'(默认):下半身用垂直镜像(沿水平中线翻转,左右不变)
- 'rotate':下半身用 180° 旋转(上下颠倒 + 左右镜像)

改动:
- 后端 draw_face_card / draw_joker:根据 symmetry_mode 选不同的 PIL transpose
- 前端 cardRenderer.js:face card 和 joker 都用统一的分支:
  - flip: translate + scale(1, -1)
  - rotate: translate + rotate(Math.PI)
- DesignPanel.vue:JQK/大小王面板加下拉选择器,存到 card_overrides
2026-06-02 09:52:17 +08:00
Poker Design Developer
10eb05e675 fix: 对齐前后端 joker 渲染,消除预览与导出不一致 2026-06-01 22:23:15 +08:00
Poker Design Developer
35529e3738 fix: 大小王角标不显示 & 导出整副牌失效 2026-06-01 22:20:57 +08:00
Poker Design Developer
b0cdd8c3ad feat: 背面图案支持 + 大小王素材位置微调 + 10号牌pip修复 2026-06-01 21:48:51 +08:00
Developer
f4b834840a 清理:移除旧management目录(旧位置) 2026-06-01 17:21:50 +08:00
Developer
2a36aa593c 重构扑克牌设计系统:修复后端渲染bug,重写前端编辑器 2026-06-01 17:11:06 +08:00
Poker Design Developer
670ac0a917 Rebuild Home and Editor pages with simplified inline styles
- Replace Element Plus components with pure HTML/CSS
- Use inline styles for reliable rendering
- Fix templates URL duplicate path issue
- Insert template data (4 templates) via Django shell
- Clear Vite cache and restart both servers
2026-05-31 22:07:39 +08:00
Poker Design Developer
d10ee0e0fe Fix Django API routing and authentication issues
- Add django.contrib.auth to INSTALLED_APPS
- Fix URL routing structure for proper API endpoints
- Add API root endpoint with endpoint information
- Verify all API endpoints working correctly
2026-05-31 17:26:45 +08:00
Poker Design Developer
3aa2eadc52 Fix Django migration issues and add missing URLs
- Create missing templates app urls.py
- Fix REST_FRAMEWORK pagination settings
- Add DEFAULT_AUTO_FIELD configuration
- Create migration files for all apps
- Fix auto-generated model warnings
- Verify database setup with test project
2026-05-31 16:01:00 +08:00
Poker Design Developer
0370e4018a Implement asset upload API and utility functions
- Add Asset and CardLayer model updates
- Create asset upload API endpoints
- Add AssetUploadDialog component
- Create card layout algorithms
- Implement symmetry generation utils
- Add template configurations
2026-05-31 15:33:50 +08:00
Poker Design Developer
48629736f4 Implement Django backend and Vue frontend structure
- Django backend with projects, templates, exports apps
- SQLite database models for Project, Asset, CardLayer
- REST API endpoints for project management
- Vue frontend with Vite, Element Plus, Fabric.js
- Home page for project selection
- Editor page with Fabric.js canvas integration
2026-05-31 14:55:01 +08:00