prepared new parameters margin x and margin y
This commit is contained in:
@@ -17,6 +17,10 @@
|
|||||||
export interface Config {
|
export interface Config {
|
||||||
width: number;
|
width: number;
|
||||||
height: number;
|
height: number;
|
||||||
|
margin: {
|
||||||
|
x: number;
|
||||||
|
y: number;
|
||||||
|
};
|
||||||
start: {
|
start: {
|
||||||
x: number;
|
x: number;
|
||||||
y: number;
|
y: number;
|
||||||
|
|||||||
@@ -6,6 +6,20 @@
|
|||||||
<div class="pb-5">
|
<div class="pb-5">
|
||||||
<h5>Grundfläche</h5>
|
<h5>Grundfläche</h5>
|
||||||
<hr>
|
<hr>
|
||||||
|
<ng-container formGroupName="margin">
|
||||||
|
<div class="form-group mb-4">
|
||||||
|
<label class="form-control-label">
|
||||||
|
X-Achse
|
||||||
|
</label>
|
||||||
|
<input type="number" class="form-control" min="0" formControlName="x">
|
||||||
|
</div>
|
||||||
|
<div class="form-group mb-4">
|
||||||
|
<label class="form-control-label">
|
||||||
|
Y-Achse
|
||||||
|
</label>
|
||||||
|
<input type="number" class="form-control" formControlName="y">
|
||||||
|
</div>
|
||||||
|
</ng-container>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="form-control-label">
|
<label class="form-control-label">
|
||||||
Breite
|
Breite
|
||||||
|
|||||||
@@ -19,6 +19,10 @@ import { FormBuilder, FormGroup, Validators } from '@angular/forms';
|
|||||||
const fb = new FormBuilder();
|
const fb = new FormBuilder();
|
||||||
|
|
||||||
export let ConfigForm: FormGroup = fb.group({
|
export let ConfigForm: FormGroup = fb.group({
|
||||||
|
margin: fb.group({
|
||||||
|
x: fb.control('', Validators.min(0)),
|
||||||
|
y: fb.control('', Validators.min(0))
|
||||||
|
}),
|
||||||
width: fb.control('', Validators.required),
|
width: fb.control('', Validators.required),
|
||||||
height: fb.control('', Validators.required),
|
height: fb.control('', Validators.required),
|
||||||
vectors: fb.group({
|
vectors: fb.group({
|
||||||
|
|||||||
@@ -26,6 +26,10 @@ export const environment = {
|
|||||||
autoHeight: false
|
autoHeight: false
|
||||||
},
|
},
|
||||||
formDefaults: {
|
formDefaults: {
|
||||||
|
margin: {
|
||||||
|
x: 0,
|
||||||
|
y: 0
|
||||||
|
},
|
||||||
width: 10,
|
width: 10,
|
||||||
height: 16,
|
height: 16,
|
||||||
scale: 0.4,
|
scale: 0.4,
|
||||||
|
|||||||
@@ -27,6 +27,10 @@ export const environment = {
|
|||||||
autoHeight: true
|
autoHeight: true
|
||||||
},
|
},
|
||||||
formDefaults: {
|
formDefaults: {
|
||||||
|
margin: {
|
||||||
|
x: 0,
|
||||||
|
y: 0
|
||||||
|
},
|
||||||
width: 1e-10,
|
width: 1e-10,
|
||||||
height: 1,
|
height: 1,
|
||||||
scale: 0.4,
|
scale: 0.4,
|
||||||
|
|||||||
Reference in New Issue
Block a user