Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PatWie/drafft-ink
/ functions
Functions
1,090 in github.com/PatWie/drafft-ink
⨍
Functions
1,090
◇
Types & classes
146
Method
new
Create a new disconnected WebSocket client.
crates/drafftink-core/src/sync.rs:211
Method
new
Create a new empty document.
crates/drafftink-core/src/canvas.rs:53
Method
new
Create a new tool manager.
crates/drafftink-core/src/tools/mod.rs:122
Method
new
Create a new ellipse.
crates/drafftink-core/src/shapes/ellipse.rs:27
Method
new
(r: u8, g: u8, b: u8, a: u8)
crates/drafftink-core/src/shapes/mod.rs:38
Method
new
Create a new group from a list of shapes.
crates/drafftink-core/src/shapes/group.rs:24
Method
new
Create a new arrow.
crates/drafftink-core/src/shapes/arrow.rs:34
Method
new
Create a new text shape.
crates/drafftink-core/src/shapes/text.rs:136
Method
new
Create a new empty freehand shape.
crates/drafftink-core/src/shapes/freehand.rs:26
Method
new
Create a new image shape from raw image data. # Arguments `position` - Top-left corner position `data` - Raw image bytes (PNG, JPEG, or WebP) `source
crates/drafftink-core/src/shapes/image.rs:99
Method
new
Create a new line.
crates/drafftink-core/src/shapes/line.rs:46
Method
new
Create a new rectangle.
crates/drafftink-core/src/shapes/rectangle.rs:37
Method
new
(position: Point, latex: String)
crates/drafftink-core/src/shapes/math.rs:46
Method
new
Create a new empty CRDT document.
crates/drafftink-core/src/crdt/schema.rs:29
Method
new
Create a new handle.
crates/drafftink-core/src/widget/handles.rs:52
Method
new
Create a new widget manager.
crates/drafftink-core/src/widget/manager.rs:27
Method
new
Create a new auto-save manager with the given storage backend.
crates/drafftink-core/src/storage/autosave.rs:37
Method
new
Create a new IndexedDB storage.
crates/drafftink-core/src/storage/indexeddb.rs:16
Method
new
Create a new file storage with the given base directory. Creates the directory if it doesn't exist.
crates/drafftink-core/src/storage/file.rs:20
Method
new
Create a new empty memory storage.
crates/drafftink-core/src/storage/memory.rs:16
Method
new
()
crates/drafftink-server/src/main.rs:116
Method
new
Create a new TailwindColor from RGB tuples.
crates/drafftink-widgets/src/colors.rs:22
Method
new
Create a new icon button.
crates/drafftink-widgets/src/buttons.rs:101
Method
new
Create a new event handler.
crates/drafftink-app/src/event_handler.rs:167
Method
new
Create a new application with default configuration.
crates/drafftink-app/src/app.rs:1785
Method
new
( key: &'static str, ctrl: bool, shift: bool, description: &'static str, )
crates/drafftink-app/src/shortcuts.rs:13
Method
new_duplicate
Create a new multi-move state for duplication (Alt+drag).
crates/drafftink-core/src/selection.rs:312
Method
new_events
(&mut self, _event_loop: &ActiveEventLoop, _cause: winit::event::StartCause)
crates/drafftink-app/src/app.rs:5471
Method
next_blink_time
Calculate the next blink time.
crates/drafftink-render/src/text_editor.rs:185
Function
no_op
(_: *const ())
crates/drafftink-core/src/storage/autosave.rs:201
Function
no_op
(_: *const ())
crates/drafftink-core/src/storage/file.rs:158
Function
no_op
(_: *const ())
crates/drafftink-core/src/storage/memory.rs:89
Method
none
Create a result with no snapping.
crates/drafftink-core/src/snap.rs:433
Function
normalize_label_converts_breaks_and_quotes
()
crates/drafftink-core/src/mermaid/mod.rs:301
Function
parse_css_color
Parse a CSS color string (e.g., "#6366f1") to Color32.
crates/drafftink-widgets/src/colors.rs:1008
Function
parses_all_participants_in_order
()
crates/drafftink-core/src/mermaid/sequence.rs:485
Function
parses_direction
()
crates/drafftink-core/src/mermaid/flowchart.rs:1278
Function
parses_dotted_and_thick_and_plain_links
()
crates/drafftink-core/src/mermaid/flowchart.rs:1361
Function
parses_edges_with_quoted_labels
()
crates/drafftink-core/src/mermaid/flowchart.rs:1295
Function
parses_item_name_and_wraps_in_one_group
()
crates/drafftink-core/src/excalidraw.rs:526
Function
parses_messages_and_notes
()
crates/drafftink-core/src/mermaid/sequence.rs:494
Function
parses_nodes_with_labels_and_shapes
()
crates/drafftink-core/src/mermaid/flowchart.rs:1286
Function
parses_various_node_shapes
()
crates/drafftink-core/src/mermaid/flowchart.rs:1344
Function
pipe_label_syntax_is_parsed
()
crates/drafftink-core/src/mermaid/flowchart.rs:1392
Function
plain_link_does_not_swallow_target_node
()
crates/drafftink-core/src/mermaid/flowchart.rs:1372
Function
plain_link_into_shaped_node_is_not_a_label
()
crates/drafftink-core/src/mermaid/flowchart.rs:1380
Function
preserves_icon_and_text_as_separate_groups
()
crates/drafftink-core/src/excalidraw.rs:534
Method
primary
Get the 500-level color (primary shade, index 6)
crates/drafftink-widgets/src/colors.rs:43
Method
print_all
Print all shortcuts to console.
crates/drafftink-app/src/shortcuts.rs:81
Method
process_device_event
Process a device event.
crates/drafftink-core/src/input.rs:121
Method
quick_colors
Get quick selection colors (commonly used subset) Returns indices into the TAILWIND_COLORS array
crates/drafftink-widgets/src/colors.rs:74
Method
reconstruct
Reconstruct an ellipse with a specific ID (for CRDT/storage).
crates/drafftink-core/src/shapes/ellipse.rs:39
Method
reconstruct
Reconstruct a group with a specific ID (for CRDT/storage).
crates/drafftink-core/src/shapes/group.rs:34
Method
reconstruct
Reconstruct an arrow with a specific ID (for CRDT/storage).
crates/drafftink-core/src/shapes/arrow.rs:48
Method
reconstruct
( id: ShapeId, position: Point, content: String, font_size: f64, font_
crates/drafftink-core/src/shapes/text.rs:225
Method
reconstruct
Reconstruct a freehand with a specific ID (for CRDT/storage).
crates/drafftink-core/src/shapes/freehand.rs:59
Method
reconstruct
( id: ShapeId, position: Point, width: f64, height: f64, source_width:
crates/drafftink-core/src/shapes/image.rs:124
Method
reconstruct
Reconstruct a line with a specific ID (for CRDT/storage).
crates/drafftink-core/src/shapes/line.rs:60
Method
reconstruct
Reconstruct a rectangle with a specific ID (for CRDT/storage).
crates/drafftink-core/src/shapes/rectangle.rs:50
Method
reconstruct
( id: ShapeId, position: Point, latex: String, font_size: f64, rotatio
crates/drafftink-core/src/shapes/math.rs:58
Method
record_checkpoint
Record a new checkpoint for undo grouping. All changes between checkpoints are grouped into a single undo step.
crates/drafftink-core/src/crdt/schema.rs:400
Method
redo
Redo the last undone change.
crates/drafftink-core/src/collaboration.rs:207
Method
redo
Redo the last undone change. Returns true if redo was performed, false if nothing to redo.
crates/drafftink-core/src/crdt/schema.rs:374
Method
redo_count
Get the number of available redo steps.
crates/drafftink-core/src/crdt/schema.rs:394
Function
rejects_non_library_json
()
crates/drafftink-core/src/excalidraw.rs:519
Method
render_debug_anchor
DEBUG: Render anchor point visualization
crates/drafftink-render/src/vello_impl.rs:1431
Method
render_grid
(&mut self, viewport: Rect, transform: Affine, grid_size: f64)
crates/drafftink-render/src/vello_impl.rs:2485
Method
render_selection_handles
(&mut self, bounds: Rect, transform: Affine)
crates/drafftink-render/src/vello_impl.rs:2339
Function
reset_rotation
Reset rotation to a specific angle (0° or 90°).
crates/drafftink-core/src/selection.rs:580
Method
resumed
(&mut self, event_loop: &ActiveEventLoop)
crates/drafftink-app/src/app.rs:2041
Method
rule
(&mut self, pos: Cursor, width: f64, height: f64)
crates/drafftink-render/src/rex_backend.rs:195
Function
run_wasm
()
crates/drafftink-app/src/web.rs:117
Method
save
(&self, id: &str, document: &CanvasDocument)
crates/drafftink-core/src/storage/indexeddb.rs:41
Method
scene
Get the built scene for rendering.
crates/drafftink-render/src/vello_impl.rs:366
Method
scroll_delta
(&self)
crates/drafftink-core/src/input.rs:150
Function
section_label
Draw a section label (small, muted text).
crates/drafftink-widgets/src/layout.rs:35
Method
select
Select a single shape (clears other selections).
crates/drafftink-core/src/widget/manager.rs:105
Method
selected
Get all selected shape IDs.
crates/drafftink-core/src/widget/manager.rs:66
Method
selected
Set whether the button is selected/active.
crates/drafftink-widgets/src/buttons.rs:112
Function
self_message_is_supported
()
crates/drafftink-core/src/mermaid/sequence.rs:560
Method
send_backward
Move a shape one layer backward (towards back). Returns true if the shape was moved, false if already at back.
crates/drafftink-core/src/crdt/schema.rs:256
Function
separator
Draw a horizontal separator line.
crates/drafftink-widgets/src/layout.rs:8
Function
sequence_imports_as_one_editable_group
()
crates/drafftink-core/src/mermaid/mod.rs:333
Method
set_cached_size
(&self, width: f64, height: f64, depth: f64)
crates/drafftink-core/src/shapes/math.rs:77
Method
set_content
Set the text content.
crates/drafftink-core/src/shapes/text.rs:269
Method
set_document_id
Set the current document ID.
crates/drafftink-core/src/storage/autosave.rs:68
Method
set_fill
Set the fill color from a peniko Color.
crates/drafftink-core/src/shapes/mod.rs:248
Method
set_hovered
Set the hovered shape.
crates/drafftink-core/src/widget/manager.rs:81
Method
set_interval
Set the auto-save interval.
crates/drafftink-core/src/storage/autosave.rs:48
Method
set_stroke
Set the stroke color from a peniko Color.
crates/drafftink-core/src/shapes/mod.rs:243
Method
shade
Get shade by index (0=25, 1=50, ..., 6=500, ..., 11=950)
crates/drafftink-widgets/src/colors.rs:48
Method
shades
Set which shade indices to show.
crates/drafftink-widgets/src/colors.rs:786
Method
shape_count
Get the number of shapes in the document.
crates/drafftink-core/src/crdt/schema.rs:69
Method
shape_ids
Get the shape IDs being moved.
crates/drafftink-core/src/selection.rs:334
Method
shapes_from_excalidraw_clipboard
Try to parse clipboard text as Excalidraw clipboard format. Returns shapes if the text is valid Excalidraw clipboard JSON.
crates/drafftink-core/src/canvas.rs:285
Method
shapes_ordered
Get all shapes in z-order.
crates/drafftink-core/src/crdt/schema.rs:158
Method
show
Show the button and return true if clicked.
crates/drafftink-widgets/src/buttons.rs:142
Method
sign
Point in triangle test
crates/drafftink-core/src/shapes/arrow.rs:184
Function
single_shape_item_is_still_wrapped_in_a_group
()
crates/drafftink-core/src/excalidraw.rs:575
Function
snap_point
Snap a point to grid if enabled.
crates/drafftink-core/src/snap.rs:571
← previous
next →
801–900 of 1,090, ranked by callers