File tree Expand file tree Collapse file tree 3 files changed +14
-6
lines changed
3DPlot/Primitive/ElementInstance
PlotBase/SvgLoader/element Expand file tree Collapse file tree 3 files changed +14
-6
lines changed Original file line number Diff line number Diff line change 11/*
22 * @Author : your name
33 * @Date : 2021-10-25 10:26:48
4- * @LastEditTime : 2022-03-31 14:41:20
5- * @LastEditors : Do not edit
4+ * @LastEditTime : 2022-05-18 20:29:50
5+ * @LastEditors : zk
66 * @Description : In User Settings Edit
77 * @FilePath : \MapGISPlotBase\src\3DPlot\Primitive\ElementInstance\RegularLine1ElementInstance.js
88 */
@@ -20,7 +20,7 @@ export default class RegularLine1ElementInstance extends RegularLineElementInsta
2020 transfromGeoCesium ( elem , cesgeo , options ) {
2121 super . transfromGeoCesium ( elem , cesgeo , options ) ;
2222 const { dimModAttitude} = options
23- if ( dimModAttitude === 1 ) {
23+ if ( dimModAttitude === 1 && elem . getAttitude ( ) ) {
2424 this . _rotatePart ( elem , cesgeo , options ) ;
2525 }
2626 }
Original file line number Diff line number Diff line change @@ -3,12 +3,13 @@ import Point from "../../../PlotUtilBase/Geometry/Point";
33 * @Description : element维度转换
44 * @Author : zk
55 * @Date : 2021-11-16 11:04:30
6- * @LastEditors : Do not edit
7- * @LastEditTime : 2021-11-16 14:16:03
6+ * @LastEditors : zk
7+ * @LastEditTime : 2022-05-18 20:28:14
88 */
99export default class DimModal {
1010 constructor ( ) {
1111 this . _3d = false ;
12+ this . _attitude = false
1213 this . lineAngle = null ;
1314 this . translatePoint = null ;
1415 this . translatePnt = null ;
@@ -19,6 +20,12 @@ export default class DimModal {
1920 set3D ( flag ) {
2021 this . _3d = ! ! flag ;
2122 }
23+ setAttitude ( flag ) {
24+ this . _attitude = flag
25+ }
26+ getAttitude ( ) {
27+ return this . _attitude
28+ }
2229 setLineAngle ( angle ) {
2330 this . lineAngle = angle
2431 }
Original file line number Diff line number Diff line change 33 * @Author : zk
44 * @Date : 2022-02-17 19:03:38
55 * @LastEditors : zk
6- * @LastEditTime : 2022-05-18 20:15:51
6+ * @LastEditTime : 2022-05-18 20:29:03
77 */
88import Point from "../../../../PlotUtilBase/Geometry/Point" ;
99import Matrix3 from "../../../../PlotUtilBase/Math/Matrix3" ;
@@ -208,6 +208,7 @@ export default class RegularLine1 extends BaseRegularElement {
208208 // 特殊处理线一
209209 if ( element . _dimModal ) {
210210 element . _dimModal . set3D ( true ) ;
211+ element . _dimModal . setAttitude ( arrowDir )
211212 element . _dimModal . setLineAngle ( lineangle ) ;
212213 element . _dimModal . setTranslatePoint ( origin . clone ( ) ) ;
213214 }
You can’t perform that action at this time.
0 commit comments