|
@@ -34,6 +34,7 @@ export class SelectCtrl extends ModuleControl<EditorModule> {
|
|
|
};
|
|
|
|
|
|
transferStyle = reactive({
|
|
|
+ baseCardTop: "0px",
|
|
|
showGizmo: false,
|
|
|
width: 0,
|
|
|
height: 0,
|
|
@@ -141,11 +142,12 @@ export class SelectCtrl extends ModuleControl<EditorModule> {
|
|
|
if (!isOut) {
|
|
|
this._state = MODE_SEL_RECT;
|
|
|
}
|
|
|
- } else {
|
|
|
- this._state = MODE_MOVING;
|
|
|
- const obj = this.compMap[comps[0].id];
|
|
|
- this.selecteObjs([new CompObject(obj)]);
|
|
|
- }
|
|
|
+ }
|
|
|
+ //else {
|
|
|
+ // this._state = MODE_MOVING;
|
|
|
+ // const obj = this.compMap[comps[0].id];
|
|
|
+ // this.selecteObjs([new CompObject(obj)]);
|
|
|
+ // }
|
|
|
}
|
|
|
} else if (this._mouseDownFlag == "rotate") {
|
|
|
this._state = MODE_ROTATE;
|
|
@@ -379,7 +381,7 @@ export class SelectCtrl extends ModuleControl<EditorModule> {
|
|
|
|
|
|
upgateGizmoStyle() {
|
|
|
this.helper.extendStreamCard(this.store.currStreamCardId);
|
|
|
-
|
|
|
+
|
|
|
if (this.selected.length < 1) {
|
|
|
this.transferStyle.showGizmo = false;
|
|
|
return;
|
|
@@ -387,6 +389,10 @@ export class SelectCtrl extends ModuleControl<EditorModule> {
|
|
|
|
|
|
this.transferStyle.showGizmo = false;
|
|
|
|
|
|
+ //@ts-ignore
|
|
|
+ const yoff = this.store.currStreamCard.$el.getBoundingClientRect().top - this.pageEl?.getBoundingClientRect().top;
|
|
|
+ this.transferStyle.baseCardTop = yoff + "px";
|
|
|
+
|
|
|
const selector = this.objContainer as ObjsContainer;
|
|
|
if (!selector) {
|
|
|
return;
|