Skip to content

Commit f2d33bd

Browse files
author
zhaokai
committed
三维状态
1 parent 7b2cf7b commit f2d33bd

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

src/service/PlotBase/SvgLoader/element/PathElement.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/*
44
* @Author: your name
55
* @Date: 2021-08-30 18:10:16
6-
* @LastEditTime: 2022-05-18 19:51:52
6+
* @LastEditTime: 2022-05-18 20:01:49
77
* @LastEditors: zk
88
* @Description: In User Settings Edit
99
* @FilePath: \MapGISPlotBase\src\svg-loader\PathElement.js
@@ -158,14 +158,14 @@ export default class PathElement extends RenderedElement {
158158
const tureMatrix = transformMatrix.clone().multiply(matrix);
159159
_coords = this._getCoords(tureMatrix);
160160
// 部件竖立 (特殊逻辑)
161-
// if (this._dimModal.is3DTran()) {
161+
if (this._dimModal.is3DTran()) {
162162
const _pnts = new Point(
163163
this._dimModal.getTranslatePoint().x,
164164
this._dimModal.getTranslatePoint().y
165165
);
166166
_pnts.applyMatrix3(tureMatrix);
167167
this._dimModal.setTranslatePnt(_pnts);
168-
// }
168+
}
169169
}
170170
} else {
171171
_coords = [];

src/service/PlotBase/SvgLoader/element/RegularElement/RegularLine1.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @Author: zk
44
* @Date: 2022-02-17 19:03:38
55
* @LastEditors: zk
6-
* @LastEditTime: 2022-05-17 08:52:05
6+
* @LastEditTime: 2022-05-18 20:15:51
77
*/
88
import Point from "../../../../PlotUtilBase/Geometry/Point";
99
import Matrix3 from "../../../../PlotUtilBase/Math/Matrix3";
@@ -207,7 +207,7 @@ export default class RegularLine1 extends BaseRegularElement {
207207

208208
// 特殊处理线一
209209
if (element._dimModal) {
210-
element._dimModal.set3D(arrowDir);
210+
element._dimModal.set3D(true);
211211
element._dimModal.setLineAngle(lineangle);
212212
element._dimModal.setTranslatePoint(origin.clone());
213213
}

src/service/PlotBase/SvgLoader/element/TSpanElement.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/*
33
* @Author: your name
44
* @Date: 2021-09-14 18:57:30
5-
* @LastEditTime: 2022-05-18 19:51:19
5+
* @LastEditTime: 2022-05-18 20:16:49
66
* @LastEditors: zk
77
* @Description: In User Settings Edit
88
* @FilePath: \MapGISPlotBase\src\svg-loader\element\TSapnElement.js
@@ -158,15 +158,16 @@ class TSpanElement extends TextElement {
158158
matrix4_2.setThreeMatrix(t2);
159159
textGeo.vertexArrayBuffer.applyMatrix4(matrix4_2);
160160

161-
// 处理文字对象的竖立(特殊逻辑)
162-
// if (this._dimModal.is3DTran()) {
161+
// 处理文字对象的竖立(特殊逻辑)\
162+
this._dimModal.set3D(true)
163+
if (this._dimModal.is3DTran()) {
163164
const _p = this._dimModal.getTranslatePoint();
164165
const tempY = -this._y;
165166
const p = new Point(_p.x, tempY);
166167
p.applyMatrix3(t1);
167168
p.applyMatrix3(t2);
168169
this._dimModal.setTranslatePnt(new Point(p.x, p.y));
169-
// }
170+
}
170171
}
171172

172173
getBoundingBox() {

0 commit comments

Comments
 (0)