Bump label resolution

main
radex 2024-02-02 12:38:38 +01:00
parent 61a70e898a
commit 48e94958f1
Signed by: radex
SSH Key Fingerprint: SHA256:hvqRXAGG1h89yqnS+cyFTLKQbzjWD4uXIqw7Y+0ws30
3 changed files with 11 additions and 11 deletions

View File

@ -154,12 +154,12 @@
<label data-title="Change canvas width" class="draginput">
<input id="canvas_width" type="text" pattern="[0-9]*" value="600" />
<input id="canvas_width" type="text" pattern="[0-9]*" value="1200" />
<span class="icon_label">Width</span>
</label>
<label data-title="Change canvas height" class="draginput">
<input id="canvas_height" type="text" pattern="[0-9]*" value="400" />
<input id="canvas_height" type="text" pattern="[0-9]*" value="800" />
<span class="icon_label">Height</span>
</label>
@ -183,9 +183,9 @@
<option id="fitToContent" value="content">Fit to Content</option>
<optgroup label="HSWAW">
<option value="356x144">Small Label / DYMO (89 × 36mm)</option>
<option value="600x400" selected="selected">Large Label Landscape / 4x6 / Zebra (150 × 100mm)</option>
<option value="400x600">Large Label Portrait / 4x6 / Zebra (100 × 150mm)</option>
<option value="1080x432">Small Label / DYMO (89 × 36mm)</option>
<option value="1200x800" selected="selected">Large Label Landscape / 4x6 / Zebra (150 × 100mm)</option>
<option value="800x1200">Large Label Portrait / 4x6 / Zebra (100 × 150mm)</option>
</optgroup>
<optgroup label="Social Media">
@ -242,7 +242,7 @@
</optgroup>
</select>
<div class="caret"></div>
<label id="resolution_label">600x400</label>
<label id="resolution_label">Default</label>
</div>
</div>

View File

@ -24,7 +24,7 @@ const dao = [
name: "canvasSize",
label: "Canvas Size",
type: "array",
default: [600, 400],
default: [1200, 800],
private: false,
save: true
},
@ -60,10 +60,10 @@ const dao = [
name: "canvasContent",
label: "Canvas Content",
type: "string",
default: `<svg xmlns='http://www.w3.org/2000/svg' width='600' height='400' viewBox='0 0 600 400'>
default: `<svg xmlns='http://www.w3.org/2000/svg' width='1200' height='800' viewBox='0 0 1200 800'>
<g>
<title>Layer 1</title>
<text font-weight="normal" font-style="normal" stroke="#000" xml:space="preserve" text-anchor="start" font-family="'Open Sans'" font-size="42" id="svg_1" y="54.90625" x="10" stroke-width="0" fill="#000000">Sample text</text>
<text font-weight="normal" font-style="normal" stroke="#000" xml:space="preserve" text-anchor="center" font-family="'Open Sans'" font-size="84" id="svg_1" y="120" x="80" stroke-width="0" fill="#000000">Sample text</text>
</g>
</svg>`,
private: true,

View File

@ -45,7 +45,7 @@ var svgns = "http://www.w3.org/2000/svg",
var curConfig = {
show_outside_canvas: true,
selectNew: true,
dimensions: [600, 400],
dimensions: [1200, 800],
initFill: {color: 'fff', opacity: 1},
initStroke: {width: 3, color: '000', opacity: 1},
imgPath: 'images/',
@ -146,7 +146,7 @@ all_properties.text = $.extend(true, {}, all_properties.shape);
$.extend(all_properties.text, {
fill: "#000000",
stroke_width: 0,
font_size: 42,
font_size: 84,
font_family: curConfig.defaultFont
});