bt builder progress
This commit is contained in:
parent
5dec799002
commit
acc79df97d
22 changed files with 664 additions and 85 deletions
|
@ -4,6 +4,7 @@ import { StringExtensions } from "./string";
|
|||
|
||||
export type CallBackVoidFunction = <T>(value: T) => void;
|
||||
export type CallBackStringVoidFunction = (value: string) => void;
|
||||
export type CallBackEventTarget = (value: EventTarget) => void;
|
||||
|
||||
declare global {
|
||||
interface Array<T> {
|
||||
|
|
|
@ -19,6 +19,8 @@ import {
|
|||
GridHelper,
|
||||
CameraHelper,
|
||||
Quaternion,
|
||||
MeshBasicMaterial,
|
||||
PlaneGeometry,
|
||||
} from "three";
|
||||
import { TypedEvent } from "../helper/typed_event";
|
||||
import { Result } from "../helper/result";
|
||||
|
@ -244,6 +246,14 @@ export class CoreThreeRepository extends TypedEvent<BaseSceneItemModel> {
|
|||
floor.userData = {};
|
||||
floor.userData[UserData.cameraInitialization] = true;
|
||||
this.scene.add(floor);
|
||||
|
||||
const planeMesh = new Mesh(
|
||||
new PlaneGeometry(10, 10, 10, 10),
|
||||
new MeshBasicMaterial({ color: 0x808080, wireframe: true })
|
||||
);
|
||||
planeMesh.userData[UserData.selectedObject] = true;
|
||||
planeMesh.rotation.x = -Math.PI / 2;
|
||||
this.scene.add(planeMesh);
|
||||
}
|
||||
|
||||
render() {
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
// TODO(IDONTSUDO): нужно переписать все запросы под BaseStore
|
||||
|
||||
import { NavigateFunction } from "react-router-dom";
|
||||
import { Result } from "../helper/result";
|
||||
import { UiBaseError } from "../model/ui_base_error";
|
||||
|
|
15
ui/src/core/ui/text/text.tsx
Normal file
15
ui/src/core/ui/text/text.tsx
Normal file
|
@ -0,0 +1,15 @@
|
|||
import * as React from "react";
|
||||
|
||||
export enum CoreTextType {
|
||||
header,
|
||||
}
|
||||
|
||||
export interface ITextProps {
|
||||
text: string;
|
||||
type: CoreTextType;
|
||||
}
|
||||
|
||||
export function CoreText(props: ITextProps) {
|
||||
if (props.type === CoreTextType.header) return <div style={{ color: "white", fontSize: "20px" }}>{props.text}</div>;
|
||||
return <div>{props.text}</div>;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue