From 90e03e21604d694e7e8e9022f7f68ef734f3c016 Mon Sep 17 00:00:00 2001 From: Alessio Date: Mon, 15 Jun 2020 15:45:35 +0200 Subject: [PATCH 1/2] add data bounding on the svg images --- ...no-termosuperiore.svg => disegno-termo.svg} | 0 .../SVG_Components/controstampoSVG.ts | 2 +- .../SVG_Components/controstampoSVG.vue | 2 +- .../components/SVG_Components/corniceSVG.ts | 5 +---- .../components/SVG_Components/corniceSVG.vue | 4 ++-- .../components/SVG_Components/lastraSVG.ts | 6 +----- .../components/SVG_Components/lastraSVG.vue | 6 +++--- .../components/SVG_Components/piastraSVG.ts | 4 +--- .../components/SVG_Components/piastraSVG.vue | 4 ++-- .../components/SVG_Components/stampoSVG.ts | 10 +--------- .../components/SVG_Components/stampoSVG.vue | 10 +++++----- .../SVG_Components/SVG-termo-inferiore.vue | 14 +++++++------- .../SVG_Components/SVG-termo-superiore.vue | 12 ++++++------ .../SVG_Components/quote-velocita.vue | 14 +++++++------- .../components/SVG_Components/stampo.vue | 18 +++++++++--------- .../SVG_Components/svgcontrostampo.vue | 16 ++++++++-------- 16 files changed, 55 insertions(+), 72 deletions(-) rename Thermo.Active/wwwroot/assets/svg/{disegno-termosuperiore.svg => disegno-termo.svg} (100%) diff --git a/Thermo.Active/wwwroot/assets/svg/disegno-termosuperiore.svg b/Thermo.Active/wwwroot/assets/svg/disegno-termo.svg similarity index 100% rename from Thermo.Active/wwwroot/assets/svg/disegno-termosuperiore.svg rename to Thermo.Active/wwwroot/assets/svg/disegno-termo.svg diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/setup/formato/components/SVG_Components/controstampoSVG.ts b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/formato/components/SVG_Components/controstampoSVG.ts index 9658a4a4..2c389ec8 100644 --- a/Thermo.Active/wwwroot/src/app_modules_thermo/setup/formato/components/SVG_Components/controstampoSVG.ts +++ b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/formato/components/SVG_Components/controstampoSVG.ts @@ -6,5 +6,5 @@ import {Prop} from 'vue-property-decorator'; export default class ControstampoSVG extends Vue{ @Prop({}) - alt:Recipe.IValue; + recipe:Recipe.IRecipe; } \ No newline at end of file diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/setup/formato/components/SVG_Components/controstampoSVG.vue b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/formato/components/SVG_Components/controstampoSVG.vue index 36868f28..8371d378 100644 --- a/Thermo.Active/wwwroot/src/app_modules_thermo/setup/formato/components/SVG_Components/controstampoSVG.vue +++ b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/formato/components/SVG_Components/controstampoSVG.vue @@ -4,7 +4,7 @@
- 00 + {{recipe.general_sizes_upperplate_max_height.valueAct}} mm
diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/setup/formato/components/SVG_Components/corniceSVG.ts b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/formato/components/SVG_Components/corniceSVG.ts index ad0c5422..4cc627de 100644 --- a/Thermo.Active/wwwroot/src/app_modules_thermo/setup/formato/components/SVG_Components/corniceSVG.ts +++ b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/formato/components/SVG_Components/corniceSVG.ts @@ -4,9 +4,6 @@ import {Prop} from 'vue-property-decorator'; @Component({}) export default class CorniceSVG extends Vue{ - @Prop({}) - x:Recipe.IValue; - @Prop({}) - y:Recipe.IValue; + recipe:Recipe.IRecipe; } \ No newline at end of file diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/setup/formato/components/SVG_Components/corniceSVG.vue b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/formato/components/SVG_Components/corniceSVG.vue index 1e4ce3cf..6912af06 100644 --- a/Thermo.Active/wwwroot/src/app_modules_thermo/setup/formato/components/SVG_Components/corniceSVG.vue +++ b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/formato/components/SVG_Components/corniceSVG.vue @@ -4,14 +4,14 @@
- 00 + {{recipe.general_sizes_frame_dim_y.valueAct}} mm
- 00 + {{recipe.general_sizes_frame_dim_x.valueAct}} mm
diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/setup/formato/components/SVG_Components/lastraSVG.ts b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/formato/components/SVG_Components/lastraSVG.ts index 84e88ad1..677830ae 100644 --- a/Thermo.Active/wwwroot/src/app_modules_thermo/setup/formato/components/SVG_Components/lastraSVG.ts +++ b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/formato/components/SVG_Components/lastraSVG.ts @@ -6,10 +6,6 @@ import {Prop} from 'vue-property-decorator'; export default class LastraSVG extends Vue{ @Prop({}) - x:Recipe.IValue; - @Prop({}) - y:Recipe.IValue; - @Prop({}) - spes:Recipe.IValue; + recipe:Recipe.IRecipe; } \ No newline at end of file diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/setup/formato/components/SVG_Components/lastraSVG.vue b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/formato/components/SVG_Components/lastraSVG.vue index 5b9af153..a66d2198 100644 --- a/Thermo.Active/wwwroot/src/app_modules_thermo/setup/formato/components/SVG_Components/lastraSVG.vue +++ b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/formato/components/SVG_Components/lastraSVG.vue @@ -4,21 +4,21 @@
- 00 + {{recipe.general_sizes_sheet_dim_x.valueAct}} mm
- 00 + {{recipe.general_sizes_sheet_dim_y.valueAct}} mm
- 00 + {{recipe.general_sizes_sheet_thickness.valueAct}} mm
diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/setup/formato/components/SVG_Components/piastraSVG.ts b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/formato/components/SVG_Components/piastraSVG.ts index bf216419..cce7001c 100644 --- a/Thermo.Active/wwwroot/src/app_modules_thermo/setup/formato/components/SVG_Components/piastraSVG.ts +++ b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/formato/components/SVG_Components/piastraSVG.ts @@ -6,7 +6,5 @@ import {Prop} from 'vue-property-decorator'; export default class PiastraSVG extends Vue{ @Prop({}) - x:Recipe.IValue; - @Prop({}) - y:Recipe.IValue; + recipe:Recipe.IRecipe; } \ No newline at end of file diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/setup/formato/components/SVG_Components/piastraSVG.vue b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/formato/components/SVG_Components/piastraSVG.vue index 51b04e45..d9a38422 100644 --- a/Thermo.Active/wwwroot/src/app_modules_thermo/setup/formato/components/SVG_Components/piastraSVG.vue +++ b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/formato/components/SVG_Components/piastraSVG.vue @@ -4,14 +4,14 @@
- 00 + {{recipe.general_sizes_plate_dim_y.valueAct}} mm
- 00 + {{recipe.general_sizes_plate_dim_x.valueAct}} mm
diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/setup/formato/components/SVG_Components/stampoSVG.ts b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/formato/components/SVG_Components/stampoSVG.ts index ac3502b1..72bac7be 100644 --- a/Thermo.Active/wwwroot/src/app_modules_thermo/setup/formato/components/SVG_Components/stampoSVG.ts +++ b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/formato/components/SVG_Components/stampoSVG.ts @@ -6,13 +6,5 @@ import { Prop } from 'vue-property-decorator'; export default class StampoSVG extends Vue { @Prop({}) - x: Recipe.IValue; - @Prop({}) - y: Recipe.IValue; - @Prop({}) - alt: number; - @Prop({}) - altB: Recipe.IValue; - @Prop({}) - stampoNeg: number; + recipe:Recipe.IRecipe; } \ No newline at end of file diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/setup/formato/components/SVG_Components/stampoSVG.vue b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/formato/components/SVG_Components/stampoSVG.vue index d6654fe0..4961c4f8 100644 --- a/Thermo.Active/wwwroot/src/app_modules_thermo/setup/formato/components/SVG_Components/stampoSVG.vue +++ b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/formato/components/SVG_Components/stampoSVG.vue @@ -4,35 +4,35 @@
- 00 + {{recipe.general_sizes_mould_dim_x.valueAct}} mm
- 00 + {{recipe.general_sizes_mould_dim_y.valueAct}} mm
- 00 + {{recipe.general_sizes_mould_max_height.valueAct}} mm
- 00 + {{recipe.general_sizes_mould_base_height.valueAct}} mm
- 00 + {{recipe.general_sizes_mould_min_height.valueAct}} mm
diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/setup/pirometro/components/base-components/SVG_Components/SVG-termo-inferiore.vue b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/pirometro/components/base-components/SVG_Components/SVG-termo-inferiore.vue index 4e2a02fe..378823ac 100644 --- a/Thermo.Active/wwwroot/src/app_modules_thermo/setup/pirometro/components/base-components/SVG_Components/SVG-termo-inferiore.vue +++ b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/pirometro/components/base-components/SVG_Components/SVG-termo-inferiore.vue @@ -1,35 +1,35 @@