Parcourir la source

修改注释 删除无用引用

haojianlong il y a 5 ans
Parent
commit
171ca74ab7

+ 7 - 7
src/FloorScene.ts

@@ -281,7 +281,7 @@ export class FloorScene extends SGraphyScene {
     /**
      *  添加空间到scene 中
      *
-     *  @param  space   空间list
+     *  @param  space   空间item
      */
     addSpace(space: Space): void {
         let item = new SpaceItem(null, space);
@@ -295,7 +295,7 @@ export class FloorScene extends SGraphyScene {
     /**
      *  添加柱子到scene 中
      *
-     *  @param  column   柱子list
+     *  @param  column   柱子item
      */
     addColumn(column: Column): void {
         let item = new ColumnItem(null, column);
@@ -307,7 +307,7 @@ export class FloorScene extends SGraphyScene {
     /**
      *  添加墙到scene 中
      *
-     *  @param  wall   墙list
+     *  @param  wall   墙item
      */
     addWall(wall: Wall): void {
         let item = new WallItem(null, wall);
@@ -317,9 +317,9 @@ export class FloorScene extends SGraphyScene {
     } // Function addWall
 
     /**
-     *  添加所有虚拟墙到scene 
+     *  添加所有虚拟墙到scene中
      *
-     *  @param  virtualWall   虚拟墙list
+     *  @param  virtualWall   虚拟墙item
      */
     addVirtualWall(virtualWall: VirtualWall): void {
         let item = new VirtualWallItem(null, virtualWall);
@@ -331,7 +331,7 @@ export class FloorScene extends SGraphyScene {
     /**
      *  添加门到scene 中
      *
-     *  @param  doors   门list
+     *  @param  doors   门item
      */
     addDoor(door: Door): void {
         let item = new DoorItem(null, door);
@@ -344,7 +344,7 @@ export class FloorScene extends SGraphyScene {
     /**
      *  添加窗户到scene 中
      *
-     *  @param  windows   窗户list
+     *  @param  windows   窗户item
      */
     addCasement(casement: Casement): void {
         let item = new WindowItem(null, casement);

+ 0 - 1
src/items/ColumnItem.ts

@@ -42,7 +42,6 @@ export class ColumnItem extends SGraphyItem {
     /** 柱子轮廓线坐标list  */
     private readonly pointArr: SPoint[][] = [];
 
-
     /**
      * 构造函数
      *

+ 1 - 1
src/items/DoorItem.ts

@@ -19,7 +19,7 @@
  */
 
 import { SGraphyItem } from "@sybotan-web/graphy/lib";
-import { SColor, SPainter, SPoint, SRect } from "@sybotan-web/draw/lib";
+import { SPainter, SPoint, SRect } from "@sybotan-web/draw/lib";
 import { Door } from "../types/Door";
 import { Opt } from "../types/Opt";
 

+ 1 - 1
src/items/MarkItem.ts

@@ -19,7 +19,7 @@
  */
 
 import { SGraphyItem } from "@sybotan-web/graphy/lib";
-import { SColor, SPainter, SPoint, SRect } from "@sybotan-web/draw/lib";
+import { SPainter, SRect } from "@sybotan-web/draw/lib";
 import { Marker } from "../types/Marker";
 import { SMouseEvent } from "@sybotan-web/base/lib";
 

+ 2 - 2
src/items/SpaceItem.ts

@@ -49,9 +49,9 @@ export class SpaceItem extends SGraphyItem {
     private minY = 0;
     /** Y坐标最大值  */
     private maxY = 0;
-    /** */
+    /** path对象     */
     private path = new SPath2D();
-    /** */
+    /** 选中时颜色   */
     private selectColor = new SColor("#1abc9c");
     /**
      * 构造函数

+ 1 - 1
src/items/VirtualWallItem.ts

@@ -19,7 +19,7 @@
  */
 
 import { SGraphyItem } from "@sybotan-web/graphy/lib";
-import { SColor, SPainter, SPoint, SRect } from "@sybotan-web/draw/lib";
+import { SPainter, SPoint, SRect } from "@sybotan-web/draw/lib";
 import { VirtualWall } from "../types/VirtualWall";
 import { Opt } from "../types/Opt";
 

+ 1 - 1
src/items/WallItem.ts

@@ -19,7 +19,7 @@
  */
 
 import { SGraphyItem } from "@sybotan-web/graphy/lib";
-import { SColor, SPainter, SPoint, SRect } from "@sybotan-web/draw/lib";
+import { SPainter, SPoint, SRect } from "@sybotan-web/draw/lib";
 import { Wall } from "../types/Wall";
 import { Opt } from "../types/Opt";
 

+ 1 - 1
src/items/WindowItem.ts

@@ -19,7 +19,7 @@
  */
 
 import { SGraphyItem } from "@sybotan-web/graphy/lib";
-import { SColor, SPainter, SPoint, SRect } from "@sybotan-web/draw/lib";
+import { SPainter, SPoint, SRect } from "@sybotan-web/draw/lib";
 import { Casement } from "../types/Casement";
 import { Opt } from "../types/Opt";
 

+ 1 - 1
src/items/ZoneItem.ts

@@ -52,7 +52,7 @@ export class ZoneItem extends SGraphyItem {
     private maxY = 0;
     /** path    */
     private pathList: SPath2D[] = [];
-    /** location中心list*/
+    /** 点击位置坐标  */
     private clickPoint: SPoint | undefined;
     /** 选中时的颜色  */
     private selectColor = new SColor("#1abc9c");