2 Commits
Author SHA1 Message Date
JiDe Zhang 20aeba0db5 fix: Fix DCI Structure Preview node registration and simplify interface
1. Fixed DCI Structure Preview node registration in __init__.py
2. Simplified DCIStructureNode interface by removing all optional parameters
3. Node now defaults to showing all detailed information including tree structure
4. Updated test files to match simplified interface requirements
5. Ensured proper text output display in ComfyUI interface for preview nodes

This resolves the issue where DCI Structure Preview node was not visible
in ComfyUI interface and simplifies the user experience by removing
configuration complexity while providing comprehensive DCI file analysis.

fix: 修复DCI结构预览节点注册并简化界面

1. 修复了__init__.py中DCI结构预览节点的注册问题
2. 简化了DCIStructureNode界面,移除了所有可选参数
3. 节点现在默认显示所有详细信息,包括树状结构
4. 更新了测试文件以匹配简化的界面要求
5. 确保在ComfyUI界面中正确显示预览节点的文本输出

这解决了DCI结构预览节点在ComfyUI界面中不可见的问题,并通过
移除配置复杂性简化了用户体验,同时提供全面的DCI文件分析。
2025-06-10 16:42:47 +08:00
JiDe Zhang b5e4f6fa98 Add DCI Structure Preview node for detailed file analysis
- Added new DCIStructureNode for tree-structured DCI file analysis
- Provides comprehensive statistics and metadata display
- Features intelligent layer filename parsing according to DCI specification
- Supports configurable display options (compact mode, metadata toggle)
- Includes detailed tree structure visualization with Unicode icons
- Parses layer metadata: priority, padding, palette, color adjustments
- Recognizes Alpha8 format and simplified filename formats
- Displays human-readable file sizes and comprehensive statistics
- Added comprehensive test coverage for all functionality
- Updated README with detailed node documentation and usage examples

The new node enables users to:
- Analyze DCI file internal structure in detail
- Debug and verify DCI file generation
- Learn DCI specification through real file examples
- Compare different DCI file structures
- Validate layer metadata settings
- Optimize DCI file performance

新增DCI结构预览节点,用于详细的文件分析

- 新增DCIStructureNode节点,提供树状结构的DCI文件分析
- 提供全面的统计信息和元数据显示
- 具备按照DCI规范的智能图层文件名解析功能
- 支持可配置的显示选项(紧凑模式、元数据切换)
- 包含带Unicode图标的详细树状结构可视化
- 解析图层元数据:优先级、外边框、调色板、颜色调整
- 识别Alpha8格式和简化文件名格式
- 显示人性化的文件大小和全面的统计信息
- 添加了全面的测试覆盖
- 更新README,包含详细的节点文档和使用示例

新节点使用户能够:
- 详细分析DCI文件内部结构
- 调试和验证DCI文件生成
- 通过实际文件示例学习DCI规范
- 比较不同DCI文件的结构
- 验证图层元数据设置
- 优化DCI文件性能
2025-06-10 15:23:49 +08:00