Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/0xMH/fichero-printer
/ functions
Functions
251 in github.com/0xMH/fichero-printer
⨍
Functions
251
◇
Types & classes
83
↓ 33 callers
Method
push
(fabricCanvas: fabric.Canvas, labelProps: LabelProps)
web/src/utils/undo_redo.ts:39
↓ 18 callers
Method
send
(self, data: bytes, wait: bool = False, timeout: float = 2.0)
fichero/printer.py:219
↓ 17 callers
Method
sleep
(ms: number)
web/src/lib/fichero/utils.ts:9
↓ 10 callers
Method
loadAndValidateObject
* @throws {z.ZodError}
web/src/utils/persistence.ts:86
↓ 10 callers
Method
validateAndSaveObject
( key: string, data: any, schema: z.ZodType<T>, )
web/src/utils/persistence.ts:96
↓ 9 callers
Method
error
(e: any)
web/src/utils/toasts.ts:5
↓ 9 callers
Method
on
(event: K, listener: Listener<EventMap[K]>)
web/src/lib/fichero/emitter.ts:7
↓ 8 callers
Function
connect
Discover printer, connect, and yield a ready PrinterClient.
fichero/printer.py:362
↓ 8 callers
Method
emit
(event: K, data: EventMap[K])
web/src/lib/fichero/emitter.ts:18
↓ 8 callers
Method
sendCommand
( data: readonly number[] | number[] | Uint8Array, wait = false, timeout = 2000, )
web/src/lib/fichero/client.ts:171
↓ 6 callers
Method
timestamp
()
web/src/utils/file_utils.ts:21
↓ 5 callers
Method
getLabelBounds
Get label bounds without tail
web/src/fabric-object/custom_canvas.ts:103
↓ 4 callers
Method
centerObjectV
Centers object vertically in the canvas or label part
web/src/fabric-object/custom_canvas.ts:436
↓ 4 callers
Method
getFoldInfo
Get fold line position for splitted labels
web/src/fabric-object/custom_canvas.ts:126
↓ 4 callers
Method
virtualZoom
(newZoom: number)
web/src/fabric-object/custom_canvas.ts:62
↓ 4 callers
Function
writablePersisted
( key: string, schema: z.ZodType<T>, initialValue: T, )
web/src/utils/persistence.ts:20
↓ 4 callers
Method
write_gatt_char
(self, _uuid: str, data: bytes, response: bool = False)
fichero/printer.py:182
↓ 3 callers
Method
base64toBytes
Convert base64 string to bytes
web/src/utils/file_utils.ts:75
↓ 3 callers
Method
decodeResponse
(buf: number[] | Uint8Array)
web/src/lib/fichero/client.ts:212
↓ 3 callers
Method
disconnect
()
web/src/lib/fichero/web-bluetooth.d.ts:20
↓ 3 callers
Method
downloadBase64
(filename: string, mime: string, base64Data: string)
web/src/utils/file_utils.ts:139
↓ 3 callers
Method
equalSpacingFillText
(ctx: CanvasRenderingContext2D, text: string, x: number, y: number, printWidth: number)
web/src/utils/canvas_utils.ts:6
↓ 3 callers
Method
get_status
(self)
fichero/printer.py:268
↓ 3 callers
Method
pickFileAsync
* Open file picker and return file contents * * fixme: never ends if dialog closed *
web/src/utils/file_utils.ts:216
↓ 3 callers
Function
preprocessString
(input: string, variables?: { [v: string]: string })
web/src/utils/canvas_preprocess.ts:17
↓ 3 callers
Method
renderError
(ctx: CanvasRenderingContext2D)
web/src/fabric-object/qrcode.ts:98
↓ 3 callers
Method
start_notify
(self, _uuid: str, callback)
fichero/printer.py:186
↓ 3 callers
Method
stopHeartbeat
()
web/src/lib/fichero/client.ts:297
↓ 3 callers
Method
updateState
()
web/src/utils/undo_redo.ts:17
↓ 2 callers
Method
__aexit__
(self, *exc)
fichero/printer.py:170
↓ 2 callers
Function
_add_paper_arg
Add --paper argument to a subparser.
fichero/cli.py:163
↓ 2 callers
Method
_createBandCode
()
web/src/fabric-object/barcode.ts:136
↓ 2 callers
Method
_getFont
()
web/src/fabric-object/barcode.ts:147
↓ 2 callers
Method
_measureLetterWidth
()
web/src/fabric-object/barcode.ts:152
↓ 2 callers
Function
_resolve_label_height
Return label height in pixels from --label-length (mm) or --label-height (px).
fichero/cli.py:27
↓ 2 callers
Method
addEventListener
(type: "gattserverdisconnected", listener: (event: Event) => void)
web/src/lib/fichero/web-bluetooth.d.ts:50
↓ 2 callers
Method
addImageFile
(canvas: fabric.Canvas, file: File)
web/src/utils/label_designer_object_helper.ts:25
↓ 2 callers
Method
addText
(canvas: fabric.Canvas, text?: string, options?: Partial<TextboxExtProps>)
web/src/utils/label_designer_object_helper.ts:85
↓ 2 callers
Method
base64buf
Convert object to base64 string
web/src/utils/file_utils.ts:43
↓ 2 callers
Method
base64obj
Convert object to base64 string
web/src/utils/file_utils.ts:37
↓ 2 callers
Method
blobToDataUrl
(file: Blob)
web/src/utils/file_utils.ts:84
↓ 2 callers
Method
bufToHex
(buf: Uint8Array | number[], separator: string = " ")
web/src/lib/fichero/utils.ts:4
↓ 2 callers
Method
createUidForLabel
(label: ExportedLabelTemplate)
web/src/utils/persistence.ts:124
↓ 2 callers
Method
decompressData
(buf: BufferSource)
web/src/utils/file_utils.ts:58
↓ 2 callers
Function
do_print
( pc: PrinterClient, img: Image.Image, density: int = 1, paper: int = PAPER_GAP, copies: i
fichero/cli.py:34
↓ 2 callers
Method
fitObjectIntoCanvas
(canvas: fabric.Canvas, obj: fabric.FabricObject, xMargin: number, yMarin: number)
web/src/utils/canvas_utils.ts:51
↓ 2 callers
Function
fmt
(n: number)
web/vite.config.ts:7
↓ 2 callers
Method
getCharacteristic
( characteristic: BluetoothCharacteristicUUID, )
web/src/lib/fichero/web-bluetooth.d.ts:27
↓ 2 callers
Method
getMirroredObjectCoords
* Return new object positions (origin is center) if object needs mirroring
web/src/fabric-object/custom_canvas.ts:339
↓ 2 callers
Function
makePacket
(data: readonly number[] | number[] | Uint8Array)
web/src/lib/fichero/client.ts:37
↓ 2 callers
Method
onDisconnected
()
web/src/lib/fichero/client.ts:139
↓ 2 callers
Method
saveObject
(key: string, data: any)
web/src/utils/persistence.ts:64
↓ 2 callers
Method
sendChunked
(data: Uint8Array)
web/src/lib/fichero/client.ts:202
↓ 2 callers
Method
set_density
0=light, 1=medium, 2=thick. Returns True if printer responded OK.
fichero/printer.py:304
↓ 2 callers
Method
set_paper_type
0=gap/label, 1=black mark, 2=continuous.
fichero/printer.py:309
↓ 2 callers
Method
start
(self)
fichero/printer.py:216
↓ 2 callers
Method
toBytes
()
web/src/lib/fichero/types.ts:92
↓ 2 callers
Method
writeValueWithoutResponse
(value: Uint8Array | ArrayBuffer)
web/src/lib/fichero/web-bluetooth.d.ts:38
↓ 1 callers
Method
__aenter__
(self)
fichero/printer.py:145
↓ 1 callers
Function
_parse_paper
Convert paper string/int to protocol value.
fichero/cli.py:171
↓ 1 callers
Method
_reader_loop
(self, callback)
fichero/printer.py:189
↓ 1 callers
Method
addBarcode
(canvas: fabric.Canvas)
web/src/utils/label_designer_object_helper.ts:150
↓ 1 callers
Method
addCircle
(canvas: fabric.Canvas)
web/src/utils/label_designer_object_helper.ts:120
↓ 1 callers
Method
addHLine
(canvas: fabric.Canvas)
web/src/utils/label_designer_object_helper.ts:105
↓ 1 callers
Method
addImageWithFilePicker
(fabricCanvas: fabric.Canvas)
web/src/utils/label_designer_object_helper.ts:43
↓ 1 callers
Method
addQrCode
(canvas: fabric.Canvas)
web/src/utils/label_designer_object_helper.ts:140
↓ 1 callers
Method
addRect
(canvas: fabric.Canvas)
web/src/utils/label_designer_object_helper.ts:130
↓ 1 callers
Method
addSvg
(canvas: fabric.Canvas, svgCode: string)
web/src/utils/label_designer_object_helper.ts:12
↓ 1 callers
Method
base64str
Convert string to base64 string
web/src/utils/file_utils.ts:30
↓ 1 callers
Method
canvasToRaster
(canvas: HTMLCanvasElement)
web/src/lib/fichero/image_encoder.ts:31
↓ 1 callers
Method
centerObjectH
Centers object horizontally in the canvas or label part
web/src/fabric-object/custom_canvas.ts:412
↓ 1 callers
Function
code128b
(data: string)
web/src/utils/barcode.ts:205
↓ 1 callers
Method
compressData
(buf: BufferSource)
web/src/utils/file_utils.ts:66
↓ 1 callers
Function
configureFabric
()
web/src/defaults.ts:5
↓ 1 callers
Method
connect
()
web/src/lib/fichero/web-bluetooth.d.ts:19
↓ 1 callers
Method
downloadBase64Capacitor
(filename: string, base64Data: string)
web/src/utils/file_utils.ts:122
↓ 1 callers
Method
downloadBase64Web
(filename: string, mime: string, base64Data: string)
web/src/utils/file_utils.ts:100
↓ 1 callers
Function
ean13
(data: string)
web/src/utils/barcode.ts:36
↓ 1 callers
Method
enable
AiYin enable: 10 FF FE 01 (NOT 10 FF F1 03).
fichero/printer.py:329
↓ 1 callers
Method
fetchPrinterInfo
()
web/src/lib/fichero/client.ts:216
↓ 1 callers
Function
find_printer
Scan BLE for a Fichero/D11s printer. Returns the address.
fichero/printer.py:79
↓ 1 callers
Method
fixFabricObjectScale
(obj: fabric.FabricObject)
web/src/utils/canvas_utils.ts:26
↓ 1 callers
Function
floyd_steinberg_dither
Floyd-Steinberg error-diffusion dithering to 1-bit. Same algorithm as PrinterImageProcessor.ditherFloydSteinberg() in the decompiled Fichero
fichero/imaging.py:13
↓ 1 callers
Method
form_feed
Position to next label.
fichero/printer.py:337
↓ 1 callers
Function
getDate
()
web/vite.config.ts:5
↓ 1 callers
Method
getModelMetadata
()
web/src/lib/fichero/client.ts:255
↓ 1 callers
Method
getPrimaryService
(service: BluetoothServiceUUID)
web/src/lib/fichero/web-bluetooth.d.ts:21
↓ 1 callers
Method
getVirtualZoom
()
web/src/fabric-object/custom_canvas.ts:81
↓ 1 callers
Method
get_all_info
10 FF 70: returns pipe-delimited string with all device info.
fichero/printer.py:285
↓ 1 callers
Method
get_battery
(self)
fichero/printer.py:262
↓ 1 callers
Method
get_boot_version
(self)
fichero/printer.py:258
↓ 1 callers
Method
get_firmware
(self)
fichero/printer.py:250
↓ 1 callers
Method
get_info
(self)
fichero/printer.py:348
↓ 1 callers
Method
get_model
(self)
fichero/printer.py:246
↓ 1 callers
Method
get_serial
(self)
fichero/printer.py:254
↓ 1 callers
Method
get_shutdown_time
Returns auto-shutdown timeout in minutes.
fichero/printer.py:278
↓ 1 callers
Function
guessBrowserLanguage
()
web/src/utils/i18n.ts:8
↓ 1 callers
Function
image_to_raster
Pack 1-bit image into raw raster bytes, MSB first.
fichero/imaging.py:71
↓ 1 callers
Function
instantiateClient
(_type?: string)
web/src/lib/fichero/client.ts:307
↓ 1 callers
Method
loadAutomation
* @throws {z.ZodError}
web/src/utils/persistence.ts:294
next →
1–100 of 251, ranked by callers