Merge branch '正交' of gitee.com:BearCAD/WebThreeJs into 正交

pull/7/head
ChenX 7 years ago
commit 82005556b2

@ -1,7 +1,8 @@
import * as console from 'console';
import { autorun } from 'mobx'; import { autorun } from 'mobx';
import * as mst from 'mobx-state-tree'; import * as mst from 'mobx-state-tree';
import { EntityData, IEntityData, LineData } from './EntityData'; import { EntityData, IEntityData, LineData } from '../src/DatabaseServices/EntityData';
class E class E
{ {
@ -78,8 +79,9 @@ function add(a, b)
{ {
lst: mst.types.array(mst.types.number) lst: mst.types.array(mst.types.number)
}) })
.actions(self =>{ .actions(self =>
return{ {
return {
remove(a) remove(a)
{ {
this.lst.remove(a) this.lst.remove(a)
@ -88,7 +90,7 @@ function add(a, b)
}) })
let l = L.create({ lst: [1, 2, 3] }) let l = L.create({ lst: [1, 2, 3] })
mst.onPatch(l, (p,rp) => mst.onPatch(l, (p, rp) =>
{ {
console.log(p); console.log(p);
}) })

@ -1,10 +1,11 @@
import { observable, runInAction, autorun } from 'mobx'; import { observable } from 'mobx';
import { app } from '../../ApplicationServices/Application';
import * as xaop from 'xaop'; import * as xaop from 'xaop';
import { app } from '../../ApplicationServices/Application';
import { IsChar, IsNumble } from '../../Common/Utils';
import { commandMachine } from '../../Editor/CommandMachine';
import { Editor } from '../../Editor/Editor'; import { Editor } from '../../Editor/Editor';
import { IsNumble, IsChar } from '../../Common/Utils';
import { KeyBoardControls } from '../../Editor/KeyBoardControls'; import { KeyBoardControls } from '../../Editor/KeyBoardControls';
import { commandMachine } from '../../Editor/CommandMachine';
export interface CommandMsg export interface CommandMsg
{ {

@ -1,8 +1,9 @@
import { app } from '../../ApplicationServices/Application';
import { Vector3 } from 'three';
import { observable } from 'mobx'; import { observable } from 'mobx';
import { Vector3 } from 'three';
import * as xaop from 'xaop'; import * as xaop from 'xaop';
import { app } from '../../ApplicationServices/Application';
//点转换为字符串. //点转换为字符串.
function PointToString(pt: Vector3): string function PointToString(pt: Vector3): string

Loading…
Cancel
Save