diff --git a/Thermo.Active/wwwroot/config.development.json b/Thermo.Active/wwwroot/config.development.json
index 8c7723c2..58ce0f2f 100644
--- a/Thermo.Active/wwwroot/config.development.json
+++ b/Thermo.Active/wwwroot/config.development.json
@@ -2,7 +2,7 @@
"env": "development",
"api": {
"enabled": true,
- "apiServerUrl": "http://localhost:9000/"
+ "apiServerUrl": "http://seriate.steamware.net:9000/"
},
"allUIVisible": true
}
\ No newline at end of file
diff --git a/Thermo.Active/wwwroot/index.html b/Thermo.Active/wwwroot/index.html
index ef830a90..dbc47d4e 100644
--- a/Thermo.Active/wwwroot/index.html
+++ b/Thermo.Active/wwwroot/index.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/processo/components/gantt/gantt-row.ts b/Thermo.Active/wwwroot/src/app_modules_thermo/processo/components/gantt/gantt-row.ts
index 2e0f82e1..72f11b94 100644
--- a/Thermo.Active/wwwroot/src/app_modules_thermo/processo/components/gantt/gantt-row.ts
+++ b/Thermo.Active/wwwroot/src/app_modules_thermo/processo/components/gantt/gantt-row.ts
@@ -10,6 +10,9 @@ export default class GanttRow extends Vue {
@InjectReactive()
ganttOptions: IGanttOptions;
+ @Prop({ default: 0 })
+ paddingHorizontal: number;
+
@Prop({ default: "" })
header: string;
diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/processo/components/gantt/gantt-row.vue b/Thermo.Active/wwwroot/src/app_modules_thermo/processo/components/gantt/gantt-row.vue
index 06063005..14168e57 100644
--- a/Thermo.Active/wwwroot/src/app_modules_thermo/processo/components/gantt/gantt-row.vue
+++ b/Thermo.Active/wwwroot/src/app_modules_thermo/processo/components/gantt/gantt-row.vue
@@ -1,5 +1,5 @@
-
+
diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/processo/components/gantt/gantt.ts b/Thermo.Active/wwwroot/src/app_modules_thermo/processo/components/gantt/gantt.ts
index 105b6e3d..4085430f 100644
--- a/Thermo.Active/wwwroot/src/app_modules_thermo/processo/components/gantt/gantt.ts
+++ b/Thermo.Active/wwwroot/src/app_modules_thermo/processo/components/gantt/gantt.ts
@@ -46,8 +46,60 @@ export default class Gantt extends Vue {
mounted() {
}
+
+ startPan(event: MouseEvent | TouchEvent) {
+ this.lastPosition = this.getSvgCoords(event);
+ }
+
+ stopPan() {
+ this.lastPosition = null;
+ }
+
+ lastPosition: movePoint = null;
+ doPan(event: MouseEvent | TouchEvent) {
+ if (this.lastPosition)
+ if (event.type == "touchmove" || (event.type == "mousemove" && (event as MouseEvent).buttons)) {
+ let p = this.getSvgCoords(event)
+
+ this.padX += p.x - this.lastPosition.x;
+ this.padY += this.lastPosition.y - p.y;
+ }
+ }
+
+
+ getSvgCoords(evt: MouseEvent | TouchEvent): movePoint {
+ var e = this.$el;
+ var dim = e.getBoundingClientRect();
+
+ var x = null;
+ var y = null;
+
+ if ((evt as TouchEvent).touches)
+ for (const touch of Array.from((evt as TouchEvent).touches).slice(0, 1)) {
+ x = touch.clientX - dim.left;
+ y = touch.clientY - dim.top;
+ }
+ else {
+ x = (evt as MouseEvent).clientX - dim.left;
+ y = (evt as MouseEvent).clientY - dim.top;
+ }
+ // let sizes = this.zoomController?.getSizes();
+ // let pan = this.zoomController?.getPan();
+ // x -= pan.x;
+ // y -= pan.y;
+ // return {
+ // x: x / sizes.realZoom, y: y / sizes.realZoom
+ // };
+ return { x, y };
+ }
+
+
}
+interface movePoint {
+ x: number;
+ y: number;
+}
export interface IGanttElement {
from: Date,
to?: Date,
diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/processo/components/gantt/gantt.vue b/Thermo.Active/wwwroot/src/app_modules_thermo/processo/components/gantt/gantt.vue
index f963e340..fc115ff5 100644
--- a/Thermo.Active/wwwroot/src/app_modules_thermo/processo/components/gantt/gantt.vue
+++ b/Thermo.Active/wwwroot/src/app_modules_thermo/processo/components/gantt/gantt.vue
@@ -1,5 +1,16 @@
-