| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 776fbfa commit 40f8418
17 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,7 +6,7 @@ | |||
| 6 | 6 | * @LastEditors: zk | |
| 7 | 7 | * @LastEditTime: 2022-06-28 09:52:39 | |
| 8 | 8 | */ | |
| 9 | - import SimpleFactory from "../../../service/PlotUtilBase/SimpleFactory"; | ||
| 9 | + import SimpleFactory from "../../PlotUtilBase/SimpleFactory"; | ||
| 10 | 10 | import DrawPoint from "./DrawPoint"; | |
| 11 | 11 | import DrawPolyline from "./DrawPolyline"; | |
| 12 | 12 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,4 @@ | |||
| 1 | - import DrawObject from "../../../service/PlotBase/Draw/DrawObject"; | ||
| 1 | + import DrawObject from "../../PlotBase/Draw/DrawObject"; | ||
| 2 | 2 | import {PrimitiveFactory} from "../Primitive/PrimitiveFactory"; | |
| 3 | 3 | import {CesiumUtil} from "../Utils/CesiumUtil"; | |
| 4 | 4 | import {addExtendLayersPlot} from "../Utils/PlotUtil"; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,8 +1,8 @@ | |||
| 1 | - import DrawObject from "../../../service/PlotBase/Draw/DrawObject"; | ||
| 1 | + import DrawObject from "../../PlotBase/Draw/DrawObject"; | ||
| 2 | 2 | import PrimitiveFactory from "../Primitive/index"; | |
| 3 | 3 | import {CesiumUtil} from "../Utils/CesiumUtil"; | |
| 4 | - import GeomUtil from "../../../service/PlotUtilBase/Geometry/GeomUtil"; | ||
| 5 | - import Point from "../../../service/PlotUtilBase/Geometry/Point"; | ||
| 4 | + import GeomUtil from "../../PlotUtilBase/Geometry/GeomUtil"; | ||
| 5 | + import Point from "../../PlotUtilBase/Geometry/Point"; | ||
| 6 | 6 | import {addExtendLayersPlot} from "../Utils/PlotUtil"; | |
| 7 | 7 | ||
| 8 | 8 | function look(viewer, center, offset) { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,15 +1,15 @@ | |||
| 1 | 1 | import {defined} from "../PlotUtilBase/Check"; | |
| 2 | - import SymbolManager from "../../service/PlotBase/SymbolManager/SymbolManager"; | ||
| 2 | + import SymbolManager from "../PlotBase/SymbolManager/SymbolManager"; | ||
| 3 | 3 | import {DrawPlotObjectFactory3D} from "./Draw"; | |
| 4 | 4 | import {CesiumUtil} from "./Utils/CesiumUtil"; | |
| 5 | - import Observable from "../../service/PlotUtilBase/Observable"; | ||
| 5 | + import Observable from "../PlotUtilBase/Observable"; | ||
| 6 | 6 | import EditTool from "./EditTool/EditTool"; | |
| 7 | 7 | import {PrimitiveFactory} from "./Primitive/PrimitiveFactory"; | |
| 8 | 8 | import * as turf from "@turf/turf"; | |
| 9 | 9 | import Point from "../PlotUtilBase/Geometry/Point"; | |
| 10 | 10 | import GeomUtil from "../PlotUtilBase/Geometry/GeomUtil"; | |
| 11 | 11 | import {addExtendLayersPlot, removeExtendLayersPlot} from "./Utils/PlotUtil"; | |
| 12 | - import { Zondy } from "../common/Base"; | ||
| 12 | + import { Zondy } from "../common"; | ||
| 13 | 13 | ||
| 14 | 14 | /** | |
| 15 | 15 | * @class module:3DPlot.PlotLayer3D | |
@@ -197,7 +197,7 @@ class PlotLayer3D extends Observable { | |||
| 197 | 197 | */ | |
| 198 | 198 | removeAll() { | |
| 199 | 199 | let plotLayer = this._getPlotLayer(); | |
| 200 | - plotLayer.removeAll(); | ||
| 200 | + plotLayer && plotLayer.removeAll(); | ||
| 201 | 201 | } | |
| 202 | 202 | ||
| 203 | 203 | /** | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -48,6 +48,7 @@ class BasePlotPrimitive { | |||
| 48 | 48 | * @private | |
| 49 | 49 | */ | |
| 50 | 50 | _elemPropsUpdateHandler(event) { | |
| 51 | + console.log("event.type",event.type) | ||
| 51 | 52 | if (event.type === 'positions') { | |
| 52 | 53 | let { _positionBillboards, _shapeBillboards } = this; | |
| 53 | 54 | const positions = event.value; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,6 @@ | |||
| 1 | 1 | import { defined } from "../../../PlotUtilBase/Check"; | |
| 2 | 2 | import RegularLineElementInstance from "./RegularLineElementInstance"; | |
| 3 | - import GeomUtil from "../../../../service/PlotUtilBase/Geometry/GeomUtil"; | ||
| 3 | + import GeomUtil from "../../../PlotUtilBase/Geometry/GeomUtil"; | ||
| 4 | 4 | ||
| 5 | 5 | /** | |
| 6 | 6 | * @class module:3DPlot.IrregularElementInstance | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,5 @@ | |||
| 1 | 1 | import { CesiumGeomUtil, CesiumUtil } from "../../Utils/CesiumUtil"; | |
| 2 | - import MainElement from "../../../../service/PlotBase/SvgLoader/element/extend/MainElement"; | ||
| 2 | + import MainElement from "../../../PlotBase/SvgLoader/element/extend/MainElement"; | ||
| 3 | 3 | import RegularLineElementInstance from "./RegularLineElementInstance"; | |
| 4 | 4 | ||
| 5 | 5 | /** | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,6 @@ | |||
| 1 | 1 | import SvgElementInstance from "./SvgElementInstance"; | |
| 2 | 2 | import { CesiumGeomUtil, CesiumUtil } from "../../Utils/CesiumUtil"; | |
| 3 | - import MainElement from "../../../../service/PlotBase/SvgLoader/element/extend/MainElement"; | ||
| 3 | + import MainElement from "../../../PlotBase/SvgLoader/element/extend/MainElement"; | ||
| 4 | 4 | import { defined } from "../../../PlotUtilBase/Check"; | |
| 5 | 5 | ||
| 6 | 6 | /** | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,4 @@ | |||
| 1 | - import Bounds from "../../../../service/PlotUtilBase/Geometry/Bound"; | ||
| 1 | + import Bounds from "../../../PlotUtilBase/Geometry/Bound"; | ||
| 2 | 2 | import {CesiumUtil} from "../../Utils/CesiumUtil"; | |
| 3 | 3 | import SvgElementInstance from "./SvgElementInstance"; | |
| 4 | 4 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,5 @@ | |||
| 1 | 1 | import { CesiumGeomUtil, CesiumUtil } from '../../Utils/CesiumUtil'; | |
| 2 | - import MainElement from '../../../../service/PlotBase/SvgLoader/element/extend/MainElement'; | ||
| 2 | + import MainElement from '../../../PlotBase/SvgLoader/element/extend/MainElement'; | ||
| 3 | 3 | import RegularLineElementInstance from './RegularLineElementInstance'; | |
| 4 | 4 | ||
| 5 | 5 | /** | |
| Back | FazBrowse Home | New Git URL |
0 commit comments