MCPcopy Create free account

hub / github.com/NaitLee/kitty-printer / functions

Functions97 in github.com/NaitLee/kitty-printer

↓ 18 callersFunctionmkmodifynumber
(stuffkey: keyof StuffData, value?: string | number)
components/StuffWidget.tsx:39
↓ 13 callersMethodsend
(data: Uint8Array)
common/cat-protocol.ts:165
↓ 12 callersMethodmake
(command: Command, payload: Uint8Array, type: CommandType = CommandType.Transfer)
common/cat-protocol.ts:141
↓ 12 callersFunctionmkmodify
(stuffkey: keyof StuffData, value?: string | number)
components/StuffWidget.tsx:25
↓ 9 callersFunctionbytes
(i: number, length?: number, big_endian?: boolean)
common/cat-protocol.ts:43
↓ 6 callersMethodsetSpeed
(value: number)
common/cat-protocol.ts:217
↓ 5 callersMethodflush
()
common/cat-protocol.ts:154
↓ 5 callersFunctionmkmodifyboolean
(stuffkey: keyof StuffData, value?: boolean)
components/StuffWidget.tsx:32
↓ 3 callersMethodappend
* Put this language as a fallback. Useful for initializing languages from like `navigator.languages` * @param lang Language code
i18nx/i18n.ts:76
↓ 3 callersFunctiondelay
(msecs: number)
common/cat-protocol.ts:57
↓ 3 callersMethodfeed
(points: number)
common/cat-protocol.ts:213
↓ 3 callersFunctionmkset
(f: (value: number) => void)
components/Settings.tsx:11
↓ 3 callersFunctionproperStuff
(stuff: StuffData)
islands/KittyPrinter.tsx:13
↓ 3 callersFunctionstart
()
static/accessibility.js:101
↓ 3 callersFunctionuseLocalStorage
(key: string, initialValue: T)
common/hooks.ts:2
↓ 2 callersMethodadd
* Initialize this language. Do this before updating/extending/using it. * @param lang Language code
i18nx/i18n.ts:61
↓ 2 callersMethoddraw
(line: Uint8Array)
common/cat-protocol.ts:172
↓ 2 callersMethodgetDeviceState
()
common/cat-protocol.ts:185
↓ 2 callersFunctioni18nReady
(f: () => void)
common/i18n.tsx:20
↓ 2 callersFunctionnextsize
(size: number)
components/StuffWidget.tsx:14
↓ 2 callersFunctionprevsize
(size: number)
components/StuffWidget.tsx:15
↓ 2 callersMethodremove
* Don’t use this language (primarily or as fallback) anymore. Existing i18n data is untouched. * @param lang Language code
i18nx/i18n.ts:52
↓ 2 callersMethodreset
* Reset language preference stack.
i18nx/i18n.ts:91
↓ 2 callersFunctionrotate
(before, w, h, turn)
static/image_worker.js:150
↓ 2 callersFunctionround_to
(n: number, d: number)
common/utility.ts:10
↓ 2 callersMethodupdate
* Add/Update i18n data for this language. Existing strings are overwritten. * @param lang Language code * @param data JavaScript Object for
i18nx/i18n.ts:99
↓ 2 callersFunctionuse_pic
(url: string)
components/StuffWidget.tsx:60
↓ 1 callersFunctionStuffWidget
(props: StuffProps)
components/StuffWidget.tsx:17
↓ 1 callersMethodapplyEnergy
()
common/cat-protocol.ts:181
↓ 1 callersFunctioncrc8
(data: Uint8Array)
common/cat-protocol.ts:30
↓ 1 callersFunctionditherAtkinson
(mono, w, h)
static/image_worker.js:119
↓ 1 callersFunctionditherBayer
(mono, w, h)
static/image_worker.js:86
↓ 1 callersFunctionditherHalftone
(mono, w, h)
static/image_worker.js:59
↓ 1 callersFunctionditherSteinberg
(mono, w, h)
static/image_worker.js:41
↓ 1 callersFunctionditherThreshold
(mono, _w, _h)
static/image_worker.js:34
↓ 1 callersFunctiondynamicManifest
()
common/dynamic-manifest.ts:4
↓ 1 callersMethodendLattice
()
common/cat-protocol.ts:205
↓ 1 callersMethodfinish
(extra_feed: number)
common/cat-protocol.ts:243
↓ 1 callersFunctionflip
(before, w, h, mode)
static/image_worker.js:180
↓ 1 callersFunctiongrayToRgba
(mono, white_as_transparent)
static/image_worker.js:24
↓ 1 callersFunctionicon
(label: keyof typeof Icons)
common/icons.tsx:83
↓ 1 callersFunctioninitKeyboardShortcuts
()
static/accessibility.js:54
↓ 1 callersFunctionisHidden
(element)
static/accessibility.js:9
↓ 1 callersMethodisNewModel
()
common/cat-protocol.ts:133
↓ 1 callersFunctionkeyFromCode
(code)
static/accessibility.js:47
↓ 1 callersFunctionkeyToLetter
(key)
static/accessibility.js:38
↓ 1 callersFunctionmark_keys
()
static/accessibility.js:61
↓ 1 callersFunctionmkcanvas
(width: number)
common/utility.ts:2
↓ 1 callersFunctionmknumberfmtext
Make a number formatter Extension for this language
i18nx/i18n.ts:19
↓ 1 callersFunctionmkpluralext
Make a plural selector Extension for this language
i18nx/i18n.ts:7
↓ 1 callersFunctionmktranslate
()
common/i18n.tsx:38
↓ 1 callersFunctionpaste
()
components/StuffWidget.tsx:84
↓ 1 callersMethodpend
(data: Uint8Array)
common/cat-protocol.ts:149
↓ 1 callersMethodprepare
(speed: number, energy: number)
common/cat-protocol.ts:230
↓ 1 callersMethodprepareCamera
()
common/cat-protocol.ts:225
↓ 1 callersMethodretract
(points: number)
common/cat-protocol.ts:209
↓ 1 callersFunctionrgbaToBits
(data: Uint32Array)
components/Preview.tsx:27
↓ 1 callersFunctionrgbaToGray
(rgba, brightness, alpha_as_white)
static/image_worker.js:2
↓ 1 callersMethodsetDpi
(_dpi = 200)
common/cat-protocol.ts:197
↓ 1 callersMethodsetEnergy
(value: number)
common/cat-protocol.ts:221
↓ 1 callersMethodstartLattice
()
common/cat-protocol.ts:201
↓ 1 callersFunctiontoLocaleKey
(key)
static/accessibility.js:27
↓ 1 callersFunctionunit_label
(dots: number)
components/Settings.tsx:12
↓ 1 callersMethodupdateDevice
()
common/cat-protocol.ts:193
↓ 1 callersFunctionupdateI18nFromRequest
(request: Request)
common/i18n.tsx:75
FunctionApp
(req: Request, ctx: FreshContext)
routes/_app.tsx:7
FunctionDynamicManifest
()
islands/DynamicManifest.tsx:6
FunctionError404
()
routes/_404.tsx:4
FunctionFontSelector
(props: { class?: string, value: string, onChange: (event: Event) => void })
components/FontSelector.tsx:12
FunctionGET
(request, context)
common/i18n.tsx:83
FunctionHome
(request: Request)
routes/index.tsx:10
FunctionKittyPrinter
(props: KittyPrinterProps)
islands/KittyPrinter.tsx:48
FunctionNavBar
(props: NavProps)
islands/Nav.tsx:7
FunctionPreview
(props: PrinterProps)
components/Preview.tsx:39
FunctionPwaUpdate
()
islands/PwaUpdate.tsx:5
FunctionStuffPreview
(props: StuffPainterProps)
components/StuffPreview.tsx:19
Methodapply_variants
(v: Variant, t: Thing, i: number)
i18nx/i18n.ts:140
FunctionarrayEqual
(a: T, b: T)
components/Preview.tsx:18
Functioncallback
(event: MessageEvent<ImageWorkerMessage>)
components/StuffPreview.tsx:145
Functionchange_type
(event: JSX.TargetedEvent<HTMLSelectElement, Event>)
components/StuffWidget.tsx:117
Functionchoose_pic
(event: Event)
components/StuffWidget.tsx:48
MethodcompressOk
()
common/cat-protocol.ts:137
Methodconstructor
( public model: string, public write: (command: Uint8Array) => Promise<void>,
common/cat-protocol.ts:107
Methodconstructor
* Initialize i18nx class * @param use_preset_exts There are some extensions built in: plural rules, number representation, etc. Use `true` to ena
i18nx/i18n.ts:43
MethoddrawPbm
(line: Uint8Array)
common/cat-protocol.ts:177
Functionen
(thing, v)
i18nx/common-extensions.ts:4
Methodextend
* Add a function for this language as an Extension. With highest priority. * @param lang Language code * @param ext An Extension
i18nx/i18n.ts:109
MethodgetDeviceInfo
()
common/cat-protocol.ts:189
Functionhandler
(request: Request)
routes/api/lang.ts:3
Methodholdplace
(s: string, i: number, p: string)
i18nx/i18n.ts:136
Functionnotifier
(event: Event)
components/Preview.tsx:81
Methodprepend
* Put this language as the first to use. Useful for setting user language on demand. * @param lang Language code
i18nx/i18n.ts:84
Functionprint
()
components/Preview.tsx:60
FunctionreverseBits
(i: number)
common/cat-protocol.ts:37
FunctionsetValue
(value: any)
common/hooks.ts:24
Functiontimestamp
()
islands/KittyPrinter.tsx:9
Methodtranslate
* Translate a string to certain language by priority with existing data. * @param string string to be translated * @param things arguments,
i18nx/i18n.ts:119