MCPcopy Create free account

hub / github.com/0xMH/fichero-printer / functions

Functions251 in github.com/0xMH/fichero-printer

↓ 33 callersMethodpush
(fabricCanvas: fabric.Canvas, labelProps: LabelProps)
web/src/utils/undo_redo.ts:39
↓ 18 callersMethodsend
(self, data: bytes, wait: bool = False, timeout: float = 2.0)
fichero/printer.py:219
↓ 17 callersMethodsleep
(ms: number)
web/src/lib/fichero/utils.ts:9
↓ 10 callersMethodloadAndValidateObject
* @throws {z.ZodError}
web/src/utils/persistence.ts:86
↓ 10 callersMethodvalidateAndSaveObject
( key: string, data: any, schema: z.ZodType<T>, )
web/src/utils/persistence.ts:96
↓ 9 callersMethoderror
(e: any)
web/src/utils/toasts.ts:5
↓ 9 callersMethodon
(event: K, listener: Listener<EventMap[K]>)
web/src/lib/fichero/emitter.ts:7
↓ 8 callersFunctionconnect
Discover printer, connect, and yield a ready PrinterClient.
fichero/printer.py:362
↓ 8 callersMethodemit
(event: K, data: EventMap[K])
web/src/lib/fichero/emitter.ts:18
↓ 8 callersMethodsendCommand
( data: readonly number[] | number[] | Uint8Array, wait = false, timeout = 2000, )
web/src/lib/fichero/client.ts:171
↓ 6 callersMethodtimestamp
()
web/src/utils/file_utils.ts:21
↓ 5 callersMethodgetLabelBounds
Get label bounds without tail
web/src/fabric-object/custom_canvas.ts:103
↓ 4 callersMethodcenterObjectV
Centers object vertically in the canvas or label part
web/src/fabric-object/custom_canvas.ts:436
↓ 4 callersMethodgetFoldInfo
Get fold line position for splitted labels
web/src/fabric-object/custom_canvas.ts:126
↓ 4 callersMethodvirtualZoom
(newZoom: number)
web/src/fabric-object/custom_canvas.ts:62
↓ 4 callersFunctionwritablePersisted
( key: string, schema: z.ZodType<T>, initialValue: T, )
web/src/utils/persistence.ts:20
↓ 4 callersMethodwrite_gatt_char
(self, _uuid: str, data: bytes, response: bool = False)
fichero/printer.py:182
↓ 3 callersMethodbase64toBytes
Convert base64 string to bytes
web/src/utils/file_utils.ts:75
↓ 3 callersMethoddecodeResponse
(buf: number[] | Uint8Array)
web/src/lib/fichero/client.ts:212
↓ 3 callersMethoddisconnect
()
web/src/lib/fichero/web-bluetooth.d.ts:20
↓ 3 callersMethoddownloadBase64
(filename: string, mime: string, base64Data: string)
web/src/utils/file_utils.ts:139
↓ 3 callersMethodequalSpacingFillText
(ctx: CanvasRenderingContext2D, text: string, x: number, y: number, printWidth: number)
web/src/utils/canvas_utils.ts:6
↓ 3 callersMethodget_status
(self)
fichero/printer.py:268
↓ 3 callersMethodpickFileAsync
* Open file picker and return file contents * * fixme: never ends if dialog closed *
web/src/utils/file_utils.ts:216
↓ 3 callersFunctionpreprocessString
(input: string, variables?: { [v: string]: string })
web/src/utils/canvas_preprocess.ts:17
↓ 3 callersMethodrenderError
(ctx: CanvasRenderingContext2D)
web/src/fabric-object/qrcode.ts:98
↓ 3 callersMethodstart_notify
(self, _uuid: str, callback)
fichero/printer.py:186
↓ 3 callersMethodstopHeartbeat
()
web/src/lib/fichero/client.ts:297
↓ 3 callersMethodupdateState
()
web/src/utils/undo_redo.ts:17
↓ 2 callersMethod__aexit__
(self, *exc)
fichero/printer.py:170
↓ 2 callersFunction_add_paper_arg
Add --paper argument to a subparser.
fichero/cli.py:163
↓ 2 callersMethod_createBandCode
()
web/src/fabric-object/barcode.ts:136
↓ 2 callersMethod_getFont
()
web/src/fabric-object/barcode.ts:147
↓ 2 callersMethod_measureLetterWidth
()
web/src/fabric-object/barcode.ts:152
↓ 2 callersFunction_resolve_label_height
Return label height in pixels from --label-length (mm) or --label-height (px).
fichero/cli.py:27
↓ 2 callersMethodaddEventListener
(type: "gattserverdisconnected", listener: (event: Event) => void)
web/src/lib/fichero/web-bluetooth.d.ts:50
↓ 2 callersMethodaddImageFile
(canvas: fabric.Canvas, file: File)
web/src/utils/label_designer_object_helper.ts:25
↓ 2 callersMethodaddText
(canvas: fabric.Canvas, text?: string, options?: Partial<TextboxExtProps>)
web/src/utils/label_designer_object_helper.ts:85
↓ 2 callersMethodbase64buf
Convert object to base64 string
web/src/utils/file_utils.ts:43
↓ 2 callersMethodbase64obj
Convert object to base64 string
web/src/utils/file_utils.ts:37
↓ 2 callersMethodblobToDataUrl
(file: Blob)
web/src/utils/file_utils.ts:84
↓ 2 callersMethodbufToHex
(buf: Uint8Array | number[], separator: string = " ")
web/src/lib/fichero/utils.ts:4
↓ 2 callersMethodcreateUidForLabel
(label: ExportedLabelTemplate)
web/src/utils/persistence.ts:124
↓ 2 callersMethoddecompressData
(buf: BufferSource)
web/src/utils/file_utils.ts:58
↓ 2 callersFunctiondo_print
( pc: PrinterClient, img: Image.Image, density: int = 1, paper: int = PAPER_GAP, copies: i
fichero/cli.py:34
↓ 2 callersMethodfitObjectIntoCanvas
(canvas: fabric.Canvas, obj: fabric.FabricObject, xMargin: number, yMarin: number)
web/src/utils/canvas_utils.ts:51
↓ 2 callersFunctionfmt
(n: number)
web/vite.config.ts:7
↓ 2 callersMethodgetCharacteristic
( characteristic: BluetoothCharacteristicUUID, )
web/src/lib/fichero/web-bluetooth.d.ts:27
↓ 2 callersMethodgetMirroredObjectCoords
* Return new object positions (origin is center) if object needs mirroring
web/src/fabric-object/custom_canvas.ts:339
↓ 2 callersFunctionmakePacket
(data: readonly number[] | number[] | Uint8Array)
web/src/lib/fichero/client.ts:37
↓ 2 callersMethodonDisconnected
()
web/src/lib/fichero/client.ts:139
↓ 2 callersMethodsaveObject
(key: string, data: any)
web/src/utils/persistence.ts:64
↓ 2 callersMethodsendChunked
(data: Uint8Array)
web/src/lib/fichero/client.ts:202
↓ 2 callersMethodset_density
0=light, 1=medium, 2=thick. Returns True if printer responded OK.
fichero/printer.py:304
↓ 2 callersMethodset_paper_type
0=gap/label, 1=black mark, 2=continuous.
fichero/printer.py:309
↓ 2 callersMethodstart
(self)
fichero/printer.py:216
↓ 2 callersMethodtoBytes
()
web/src/lib/fichero/types.ts:92
↓ 2 callersMethodwriteValueWithoutResponse
(value: Uint8Array | ArrayBuffer)
web/src/lib/fichero/web-bluetooth.d.ts:38
↓ 1 callersMethod__aenter__
(self)
fichero/printer.py:145
↓ 1 callersFunction_parse_paper
Convert paper string/int to protocol value.
fichero/cli.py:171
↓ 1 callersMethod_reader_loop
(self, callback)
fichero/printer.py:189
↓ 1 callersMethodaddBarcode
(canvas: fabric.Canvas)
web/src/utils/label_designer_object_helper.ts:150
↓ 1 callersMethodaddCircle
(canvas: fabric.Canvas)
web/src/utils/label_designer_object_helper.ts:120
↓ 1 callersMethodaddHLine
(canvas: fabric.Canvas)
web/src/utils/label_designer_object_helper.ts:105
↓ 1 callersMethodaddImageWithFilePicker
(fabricCanvas: fabric.Canvas)
web/src/utils/label_designer_object_helper.ts:43
↓ 1 callersMethodaddQrCode
(canvas: fabric.Canvas)
web/src/utils/label_designer_object_helper.ts:140
↓ 1 callersMethodaddRect
(canvas: fabric.Canvas)
web/src/utils/label_designer_object_helper.ts:130
↓ 1 callersMethodaddSvg
(canvas: fabric.Canvas, svgCode: string)
web/src/utils/label_designer_object_helper.ts:12
↓ 1 callersMethodbase64str
Convert string to base64 string
web/src/utils/file_utils.ts:30
↓ 1 callersMethodcanvasToRaster
(canvas: HTMLCanvasElement)
web/src/lib/fichero/image_encoder.ts:31
↓ 1 callersMethodcenterObjectH
Centers object horizontally in the canvas or label part
web/src/fabric-object/custom_canvas.ts:412
↓ 1 callersFunctioncode128b
(data: string)
web/src/utils/barcode.ts:205
↓ 1 callersMethodcompressData
(buf: BufferSource)
web/src/utils/file_utils.ts:66
↓ 1 callersFunctionconfigureFabric
()
web/src/defaults.ts:5
↓ 1 callersMethodconnect
()
web/src/lib/fichero/web-bluetooth.d.ts:19
↓ 1 callersMethoddownloadBase64Capacitor
(filename: string, base64Data: string)
web/src/utils/file_utils.ts:122
↓ 1 callersMethoddownloadBase64Web
(filename: string, mime: string, base64Data: string)
web/src/utils/file_utils.ts:100
↓ 1 callersFunctionean13
(data: string)
web/src/utils/barcode.ts:36
↓ 1 callersMethodenable
AiYin enable: 10 FF FE 01 (NOT 10 FF F1 03).
fichero/printer.py:329
↓ 1 callersMethodfetchPrinterInfo
()
web/src/lib/fichero/client.ts:216
↓ 1 callersFunctionfind_printer
Scan BLE for a Fichero/D11s printer. Returns the address.
fichero/printer.py:79
↓ 1 callersMethodfixFabricObjectScale
(obj: fabric.FabricObject)
web/src/utils/canvas_utils.ts:26
↓ 1 callersFunctionfloyd_steinberg_dither
Floyd-Steinberg error-diffusion dithering to 1-bit. Same algorithm as PrinterImageProcessor.ditherFloydSteinberg() in the decompiled Fichero
fichero/imaging.py:13
↓ 1 callersMethodform_feed
Position to next label.
fichero/printer.py:337
↓ 1 callersFunctiongetDate
()
web/vite.config.ts:5
↓ 1 callersMethodgetModelMetadata
()
web/src/lib/fichero/client.ts:255
↓ 1 callersMethodgetPrimaryService
(service: BluetoothServiceUUID)
web/src/lib/fichero/web-bluetooth.d.ts:21
↓ 1 callersMethodgetVirtualZoom
()
web/src/fabric-object/custom_canvas.ts:81
↓ 1 callersMethodget_all_info
10 FF 70: returns pipe-delimited string with all device info.
fichero/printer.py:285
↓ 1 callersMethodget_battery
(self)
fichero/printer.py:262
↓ 1 callersMethodget_boot_version
(self)
fichero/printer.py:258
↓ 1 callersMethodget_firmware
(self)
fichero/printer.py:250
↓ 1 callersMethodget_info
(self)
fichero/printer.py:348
↓ 1 callersMethodget_model
(self)
fichero/printer.py:246
↓ 1 callersMethodget_serial
(self)
fichero/printer.py:254
↓ 1 callersMethodget_shutdown_time
Returns auto-shutdown timeout in minutes.
fichero/printer.py:278
↓ 1 callersFunctionguessBrowserLanguage
()
web/src/utils/i18n.ts:8
↓ 1 callersFunctionimage_to_raster
Pack 1-bit image into raw raster bytes, MSB first.
fichero/imaging.py:71
↓ 1 callersFunctioninstantiateClient
(_type?: string)
web/src/lib/fichero/client.ts:307
↓ 1 callersMethodloadAutomation
* @throws {z.ZodError}
web/src/utils/persistence.ts:294
next →1–100 of 251, ranked by callers