功能:添加色盲模式, ?semang

pull/2216/head
ChenX 1 year ago
parent 4c1122ca8b
commit 2809eddae3

@ -11,6 +11,9 @@ import { ObjectId } from "../ObjectId";
export class HardwareCompositeEntity extends CompositeEntity
{
@AutoRecordObject HardwareOption: ICompHardwareOption = { ...DefaultCompositeMetalsOption };
/**
*
*/
@AutoRecord DataList: [string, string][] = [];
@AutoRecord RelevanceBoards: ObjectId[] = [];
@AutoRecord RelevanceHardware: ObjectId[] = []; //当这个实体为复合板时,关联五金的信息

@ -1,6 +1,7 @@
import { Intent } from '@blueprintjs/core';
import { Cache, Layers, Object3D } from 'three';
import { HostApplicationServices } from './ApplicationServices/HostApplicationServices';
import { ColorPalette } from './Common/ColorPalette';
import { ErrorMonitoring, ReportError } from './Common/ErrorMonitoring';
import { LogEnable, ReportErrorWrap } from './Common/Log';
import { copyTextToClipboard } from './Common/Utils';
@ -162,6 +163,9 @@ window.onload = function ()
return;
}
if (new URLSearchParams(location.search).has("semang"))//色盲模式
ColorPalette[2] = [74, 144, 226, 255];
if (window.location.hostname === "t.cfcad.cn")
AppToaster.show({
message: "这个环境仅供测试使用!!!请勿在生产中使用这个地址,否则将产生错误图纸或者无法打开的图纸!!!(本地址仅供测试账号使用,数据随时清空)",

Loading…
Cancel
Save