Closed dotnetdreamer closed 1 week ago
LocalStorage "automation" field full example:
{
"autoConnect":true,
"startPrint":"after_connect",
"autoConnectDeviceId":"............"
}
LocalStorage "default_template" field example (can be set in save/load menu):
{"canvas":{"version":"5.4.0","objects":[{"type":"text","version":"5.4.0","originX":"center","originY":"center","left":172,"top":100,"width":100,"height":113,"fill":"black","stroke":null,"strokeWidth":1,"strokeDashArray":null,"strokeLineCap":"butt","strokeDashOffset":0,"strokeLineJoin":"miter","strokeUniform":false,"strokeMiterLimit":4,"scaleX":1,"scaleY":1,"angle":0,"flipX":false,"flipY":false,"opacity":1,"shadow":null,"visible":true,"backgroundColor":"","fillRule":"nonzero","paintFirst":"fill","globalCompositeOperation":"source-over","skewX":0,"skewY":0,"fontFamily":"Material Icons","fontWeight":"normal","fontSize":100,"text":"юдÐ","underline":false,"overline":false,"linethrough":false,"textAlign":"center","fontStyle":"normal","lineHeight":1,"textBackgroundColor":"","charSpacing":0,"styles":[],"direction":"ltr","path":null,"pathStartOffset":0,"pathSide":"left","pathAlign":"baseline"}]},"label":{"printDirection":"top","size":{"width":344,"height":200}},"title":"","timestamp":1732214519}
Also "Make default" button added
have integrated these features in capacitor plugin https://github.com/dotnetdreamer/capacitor-niimbot-printer
Here is my case:
/index.html
);