Skip to content

Commit

Permalink
Merge pull request #13 from papaseppo/main
Browse files Browse the repository at this point in the history
Added Scales and Units
  • Loading branch information
papauorg authored Jan 5, 2025
2 parents b632e81 + da6786d commit ec8a342
Show file tree
Hide file tree
Showing 10 changed files with 259 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/ISSUE_TEMPLATE/new-scale-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ body:
options:
- "l"
- "gal (U.S.)"
- "ml"
- "cl"
- "dl"
default: 0
- type: input
id: diameter
Expand Down
37 changes: 37 additions & 0 deletions scales/definitions/cylinder_mm_d070_h080_1-200ml_i20.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"$schema": "./schemas/scale-config",
"scale-config": {
"containerForm": "cylinder",
"lengthUnit": "mm",
"volumeUnit": "ml",
"diameter": 70,
"height": 82,
"minVolume": 10,
"maxVolume": 200,
"output": "./scales/svgs/{0}.svg",
"description": "Scale for 70 mm diameter cylindric container. 1-200 ml in 20 ml intervals with text every 100 ml.",
"sucessfullyAppliedTo": "Steel Mug",
"requiresTransferTape": false,
"graduationMarkSettings": [
{
"interval": 20,
"length": 8,
"height": 1.3,
"indentation": 0,
"textTemplate": ""
},
{
"interval": 100,
"length": 30,
"height": 1.3,
"font": {
"family": "./fonts/BigShoulderStencilText/static/BigShouldersStencilText-ExtraBold.ttf",
"size": 8,
"offsetX": -2,
"offsetY": -5,
"textAlignment": "Right"
}
}
]
}
}
37 changes: 37 additions & 0 deletions scales/definitions/cylinder_mm_d138_h110_2-15dl_i1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"$schema": "./schemas/scale-config",
"scale-config": {
"containerForm": "cylinder",
"lengthUnit": "mm",
"volumeUnit": "dl",
"diameter": 138,
"height": 110,
"minVolume": 2,
"maxVolume": 15,
"output": "./scales/svgs/{0}.svg",
"description": "Scale for 138 mm diameter cylindric container. 1-15 dl in 1 dl intervals with text every 5 dl.",
"sucessfullyAppliedTo": "Wenco Milkpot",
"requiresTransferTape": false,
"graduationMarkSettings": [
{
"interval": 1,
"length": 10,
"height": 1.5,
"indentation": 0,
"textTemplate": ""
},
{
"interval": 5,
"length": 30,
"height": 1.5,
"font": {
"family": "./fonts/BigShoulderStencilText/static/BigShouldersStencilText-ExtraBold.ttf",
"size": 8,
"offsetX": -2,
"offsetY": -5,
"textAlignment": "Right"
}
}
]
}
}
37 changes: 37 additions & 0 deletions scales/definitions/cylinder_mm_d281_h180_1-10L_i1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"$schema": "./schemas/scale-config",
"scale-config": {
"containerForm": "cylinder",
"lengthUnit": "mm",
"volumeUnit": "l",
"diameter": 281,
"height": 180,
"minVolume": 1,
"maxVolume": 10,
"output": "./scales/svgs/{0}.svg",
"description": "Scale for 281 diameter cylindric container. 1-10 l in 1 l intervals with text every 2 l.",
"sucessfullyAppliedTo": "10 liter non-induction Ikea pot",
"requiresTransferTape": false,
"graduationMarkSettings": [
{
"interval": 1,
"length": 10,
"height": 1.5,
"indentation": 0,
"textTemplate": ""
},
{
"interval": 2,
"length": 27,
"height": 1.5,
"font": {
"family": "./fonts/BigShoulderStencilText/static/BigShouldersStencilText-ExtraBold.ttf",
"size": 8,
"offsetX": -2,
"offsetY": -5,
"textAlignment": "Right"
}
}
]
}
}
37 changes: 37 additions & 0 deletions scales/definitions/cylinder_mm_d370_h330_1-30l_i1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"$schema": "./schemas/scale-config",
"scale-config": {
"containerForm": "cylinder",
"lengthUnit": "mm",
"volumeUnit": "l",
"diameter": 370,
"height": 330,
"minVolume": 2,
"maxVolume": 30,
"output": "./scales/svgs/{0}.svg",
"description": "Scale for 370 mm diameter cylindric container. 1-30 l in 1 l intervals with text every 5 l.",
"sucessfullyAppliedTo": "Sansone Edelstahlbehälter 18/10 30 Liter",
"requiresTransferTape": false,
"graduationMarkSettings": [
{
"interval": 1,
"length": 10,
"height": 1.5,
"indentation": 0,
"textTemplate": ""
},
{
"interval": 5,
"length": 30,
"height": 1.5,
"font": {
"family": "./fonts/BigShoulderStencilText/static/BigShouldersStencilText-ExtraBold.ttf",
"size": 8,
"offsetX": -2,
"offsetY": -5,
"textAlignment": "Right"
}
}
]
}
}
2 changes: 1 addition & 1 deletion scales/definitions/schemas/scale-config
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
},
"volumeUnit": {
"type": "string",
"enum": ["l", "gal (U.S.)"],
"enum": ["l", "gal (U.S.)", "ml", "cl", "dl"],
"description": "Unit of volume for the given measurements and output on scale."
},
"diameter": {
Expand Down
19 changes: 19 additions & 0 deletions scales/svgs/cylinder_mm_d070_h080_1-200ml_i20.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 24 additions & 0 deletions scales/svgs/cylinder_mm_d138_h110_2-15dl_i1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions scales/svgs/cylinder_mm_d281_h180_1-10L_i1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit ec8a342

Please sign in to comment.