|
|
|
@ -1,6 +1,8 @@
|
|
|
|
|
import { Alignment, Button, Classes, HTMLSelect, Intent, Navbar, Position, ProgressBar, Switch, Tooltip } from '@blueprintjs/core';
|
|
|
|
|
import { observable } from 'mobx';
|
|
|
|
|
import { inject, observer } from 'mobx-react';
|
|
|
|
|
import * as React from 'react';
|
|
|
|
|
import { end } from 'xaop';
|
|
|
|
|
import { SendFile } from '../../Add-on/SendCADFileOnKF';
|
|
|
|
|
import { app } from '../../ApplicationServices/Application';
|
|
|
|
|
import { CommandNames } from '../../Common/CommandNames';
|
|
|
|
@ -28,6 +30,7 @@ import { userConfigStore } from '../Store/UserConfigStore';
|
|
|
|
|
import { BoardModalType } from "./Board/BoardModalType";
|
|
|
|
|
import { ChatButton, IsOpenChat } from './ChatButton';
|
|
|
|
|
import { AppConfirm } from './Common/Confirm';
|
|
|
|
|
import { SwitchServerStore } from './Modal/SwitchServerStore';
|
|
|
|
|
import { SettingPanel } from './SettingPanel/SettingPanel';
|
|
|
|
|
import SoucePanel from './SourceManage/SoucePanel';
|
|
|
|
|
import { AppToaster } from './Toaster';
|
|
|
|
@ -244,6 +247,7 @@ export class TopPanel extends React.Component<{ store?: TopPanelStore; }, {}>
|
|
|
|
|
@observer
|
|
|
|
|
export class DownPanel extends React.Component<{ store: DownPanelStore; }, {}>
|
|
|
|
|
{
|
|
|
|
|
@observable showHideSyncEnable = false; //显隐同步显示
|
|
|
|
|
rStore: RightPanelStore = RightPanelStore.GetInstance();
|
|
|
|
|
private downStore = DownPanelStore.GetInstance() as DownPanelStore;
|
|
|
|
|
private handleChange = async (e: React.FormEvent<HTMLInputElement>) =>
|
|
|
|
@ -380,8 +384,11 @@ export class DownPanel extends React.Component<{ store: DownPanelStore; }, {}>
|
|
|
|
|
else if (ent instanceof PointLight)
|
|
|
|
|
return LightDataModeType.P;
|
|
|
|
|
}
|
|
|
|
|
componentDidMount()
|
|
|
|
|
|
|
|
|
|
componentDidMount(): void
|
|
|
|
|
{
|
|
|
|
|
let gws = SwitchServerStore.GetInstance()._gangplankWs;
|
|
|
|
|
end(gws, gws.OnLinkEvent, () => { this.showHideSyncEnable = gws.IsLink ? true : false; });
|
|
|
|
|
}
|
|
|
|
|
render()
|
|
|
|
|
{
|
|
|
|
@ -553,6 +560,21 @@ export class DownPanel extends React.Component<{ store: DownPanelStore; }, {}>
|
|
|
|
|
>
|
|
|
|
|
<LightsMenu GetLightType={this.GetLightType} />
|
|
|
|
|
</Switch>
|
|
|
|
|
{
|
|
|
|
|
userConfig.synchronousEnable && this.showHideSyncEnable &&
|
|
|
|
|
<Tooltip
|
|
|
|
|
content="CAD实体隐藏显示时,渲染器也会跟着隐藏显示"
|
|
|
|
|
position={Position.TOP}
|
|
|
|
|
><Switch
|
|
|
|
|
checked={this.downStore.showHideSync}
|
|
|
|
|
label="显隐同步"
|
|
|
|
|
style={switchStyle}
|
|
|
|
|
alignIndicator={Alignment.RIGHT}
|
|
|
|
|
data-key="showHideSync"
|
|
|
|
|
onChange={this.handleChange}
|
|
|
|
|
/>
|
|
|
|
|
</Tooltip>
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|