Merge branch 'spaceParse_pr' of https://gitee.com/BearCAD/WebThreeJs into spaceParse_pr

pull/88/head
ChenX 6 years ago
commit f0d7dc0b88

@ -116,3 +116,11 @@ export async function readClipboardText()
return await navigator["clipboard"].readText();
return "";
}
export function Sleep(time: number)
{
return new Promise(res =>
{
setTimeout(res, time);
})
}

@ -174,6 +174,8 @@ export class GetEntityServices implements EditorService
}
private Retun(result: PromptEntityResult)
{
if (!this.m_promisResolve)
return;
this.RestState();
this.m_promisResolve(result);
}

@ -151,6 +151,8 @@ export class GetKeyWordsServices implements EditorService
}
_Return(result: PromptResult)
{
if (!this.m_PromisResolve)
return;
this.IsReady = false;
this.m_Editor.m_InputState &= ~InputState.GetKeyWord;
this.removeCalls.forEach(f => f());

@ -10,6 +10,7 @@ import { Editor } from '../../../Editor/Editor';
import { PointPick } from '../../../Editor/PointPick';
import { LightModal } from './LightModal';
import './Modal.less';
import { Sleep } from '../../../Common/Utils';
export enum ModalPosition
{
@ -159,7 +160,11 @@ export class ModalManage
if (app.m_Editor.m_CommandStore.isCmdIng)
{
app.m_Editor.Canel();
await Sleep(10);
}
if (app.m_Editor.m_CommandStore.isCmdIng)
return;
app.m_Editor.m_CommandStore.isCmdIng = true;
app.m_Database.hm.StartCmd("draw");
await this.Callback();

Loading…
Cancel
Save