Initial commit: 大陆架零部件智能生产线数字孪生系统

- 实现TV1和TV2双大屏展示
- 集成ECharts数据可视化
- 实现实时数据刷新机制
- 添加刀具寿命管理模块
- 添加工单加工时长统计模块
- 添加加工中心7日工作时长统计模块
- 添加OEE分析、设备状态监控等功能
- 创建技术文档和使用说明书
This commit is contained in:
DaLuJia Developer
2026-05-21 09:19:09 +08:00
commit 2abd286d42
243 changed files with 48859 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
export function isSharedArrayBufferSupported() {
return typeof SharedArrayBuffer !== 'undefined';
}
export function convertToBufferType( array, BufferConstructor ) {
if ( array === null ) {
return array;
} else if ( array.buffer ) {
const buffer = array.buffer;
if ( buffer.constructor === BufferConstructor ) {
return array;
}
const ArrayConstructor = array.constructor;
const result = new ArrayConstructor( new BufferConstructor( buffer.byteLength ) );
result.set( array );
return result;
} else {
if ( array.constructor === BufferConstructor ) {
return array;
}
const result = new BufferConstructor( array.byteLength );
new Uint8Array( result ).set( new Uint8Array( array ) );
return result;
}
}