CurveLine.js 638 B

1234567891011121314151617181920
  1. import VectorType from "../enum/VectorType.js";
  2. import SelectState from "../enum/SelectState.js";
  3. import Geometry from "./Geometry";
  4. import Constant from "../Constant.js";
  5. import VectorStyle from "../enum/VectorStyle.js";
  6. import VectorWight from "../enum/VectorWeight.js";
  7. export default class CurveLine extends Geometry {
  8. constructor(startId, endId, vectorId) {
  9. super();
  10. this.startId = startId;
  11. this.endId = endId;
  12. this.points = null;
  13. this.style = VectorStyle.SingleSolidLine;
  14. this.weight = VectorWight.Thinning;
  15. this.curves = null;
  16. this.geoType = VectorType.CurveLine;
  17. this.setId(vectorId);
  18. }
  19. }