MCPcopy Create free account

hub / github.com/PatWie/drafft-ink / functions

Functions1,090 in github.com/PatWie/drafft-ink

Methodnew
Create a new disconnected WebSocket client.
crates/drafftink-core/src/sync.rs:211
Methodnew
Create a new empty document.
crates/drafftink-core/src/canvas.rs:53
Methodnew
Create a new tool manager.
crates/drafftink-core/src/tools/mod.rs:122
Methodnew
Create a new ellipse.
crates/drafftink-core/src/shapes/ellipse.rs:27
Methodnew
(r: u8, g: u8, b: u8, a: u8)
crates/drafftink-core/src/shapes/mod.rs:38
Methodnew
Create a new group from a list of shapes.
crates/drafftink-core/src/shapes/group.rs:24
Methodnew
Create a new arrow.
crates/drafftink-core/src/shapes/arrow.rs:34
Methodnew
Create a new text shape.
crates/drafftink-core/src/shapes/text.rs:136
Methodnew
Create a new empty freehand shape.
crates/drafftink-core/src/shapes/freehand.rs:26
Methodnew
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
Methodnew
Create a new line.
crates/drafftink-core/src/shapes/line.rs:46
Methodnew
Create a new rectangle.
crates/drafftink-core/src/shapes/rectangle.rs:37
Methodnew
(position: Point, latex: String)
crates/drafftink-core/src/shapes/math.rs:46
Methodnew
Create a new empty CRDT document.
crates/drafftink-core/src/crdt/schema.rs:29
Methodnew
Create a new handle.
crates/drafftink-core/src/widget/handles.rs:52
Methodnew
Create a new widget manager.
crates/drafftink-core/src/widget/manager.rs:27
Methodnew
Create a new auto-save manager with the given storage backend.
crates/drafftink-core/src/storage/autosave.rs:37
Methodnew
Create a new IndexedDB storage.
crates/drafftink-core/src/storage/indexeddb.rs:16
Methodnew
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
Methodnew
Create a new empty memory storage.
crates/drafftink-core/src/storage/memory.rs:16
Methodnew
()
crates/drafftink-server/src/main.rs:116
Methodnew
Create a new TailwindColor from RGB tuples.
crates/drafftink-widgets/src/colors.rs:22
Methodnew
Create a new icon button.
crates/drafftink-widgets/src/buttons.rs:101
Methodnew
Create a new event handler.
crates/drafftink-app/src/event_handler.rs:167
Methodnew
Create a new application with default configuration.
crates/drafftink-app/src/app.rs:1785
Methodnew
( key: &'static str, ctrl: bool, shift: bool, description: &'static str, )
crates/drafftink-app/src/shortcuts.rs:13
Methodnew_duplicate
Create a new multi-move state for duplication (Alt+drag).
crates/drafftink-core/src/selection.rs:312
Methodnew_events
(&mut self, _event_loop: &ActiveEventLoop, _cause: winit::event::StartCause)
crates/drafftink-app/src/app.rs:5471
Methodnext_blink_time
Calculate the next blink time.
crates/drafftink-render/src/text_editor.rs:185
Functionno_op
(_: *const ())
crates/drafftink-core/src/storage/autosave.rs:201
Functionno_op
(_: *const ())
crates/drafftink-core/src/storage/file.rs:158
Functionno_op
(_: *const ())
crates/drafftink-core/src/storage/memory.rs:89
Methodnone
Create a result with no snapping.
crates/drafftink-core/src/snap.rs:433
Functionnormalize_label_converts_breaks_and_quotes
()
crates/drafftink-core/src/mermaid/mod.rs:301
Functionparse_css_color
Parse a CSS color string (e.g., "#6366f1") to Color32.
crates/drafftink-widgets/src/colors.rs:1008
Functionparses_all_participants_in_order
()
crates/drafftink-core/src/mermaid/sequence.rs:485
Functionparses_direction
()
crates/drafftink-core/src/mermaid/flowchart.rs:1278
Functionparses_dotted_and_thick_and_plain_links
()
crates/drafftink-core/src/mermaid/flowchart.rs:1361
Functionparses_edges_with_quoted_labels
()
crates/drafftink-core/src/mermaid/flowchart.rs:1295
Functionparses_item_name_and_wraps_in_one_group
()
crates/drafftink-core/src/excalidraw.rs:526
Functionparses_messages_and_notes
()
crates/drafftink-core/src/mermaid/sequence.rs:494
Functionparses_nodes_with_labels_and_shapes
()
crates/drafftink-core/src/mermaid/flowchart.rs:1286
Functionparses_various_node_shapes
()
crates/drafftink-core/src/mermaid/flowchart.rs:1344
Functionpipe_label_syntax_is_parsed
()
crates/drafftink-core/src/mermaid/flowchart.rs:1392
Functionplain_link_does_not_swallow_target_node
()
crates/drafftink-core/src/mermaid/flowchart.rs:1372
Functionplain_link_into_shaped_node_is_not_a_label
()
crates/drafftink-core/src/mermaid/flowchart.rs:1380
Functionpreserves_icon_and_text_as_separate_groups
()
crates/drafftink-core/src/excalidraw.rs:534
Methodprimary
Get the 500-level color (primary shade, index 6)
crates/drafftink-widgets/src/colors.rs:43
Methodprint_all
Print all shortcuts to console.
crates/drafftink-app/src/shortcuts.rs:81
Methodprocess_device_event
Process a device event.
crates/drafftink-core/src/input.rs:121
Methodquick_colors
Get quick selection colors (commonly used subset) Returns indices into the TAILWIND_COLORS array
crates/drafftink-widgets/src/colors.rs:74
Methodreconstruct
Reconstruct an ellipse with a specific ID (for CRDT/storage).
crates/drafftink-core/src/shapes/ellipse.rs:39
Methodreconstruct
Reconstruct a group with a specific ID (for CRDT/storage).
crates/drafftink-core/src/shapes/group.rs:34
Methodreconstruct
Reconstruct an arrow with a specific ID (for CRDT/storage).
crates/drafftink-core/src/shapes/arrow.rs:48
Methodreconstruct
( id: ShapeId, position: Point, content: String, font_size: f64, font_
crates/drafftink-core/src/shapes/text.rs:225
Methodreconstruct
Reconstruct a freehand with a specific ID (for CRDT/storage).
crates/drafftink-core/src/shapes/freehand.rs:59
Methodreconstruct
( id: ShapeId, position: Point, width: f64, height: f64, source_width:
crates/drafftink-core/src/shapes/image.rs:124
Methodreconstruct
Reconstruct a line with a specific ID (for CRDT/storage).
crates/drafftink-core/src/shapes/line.rs:60
Methodreconstruct
Reconstruct a rectangle with a specific ID (for CRDT/storage).
crates/drafftink-core/src/shapes/rectangle.rs:50
Methodreconstruct
( id: ShapeId, position: Point, latex: String, font_size: f64, rotatio
crates/drafftink-core/src/shapes/math.rs:58
Methodrecord_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
Methodredo
Redo the last undone change.
crates/drafftink-core/src/collaboration.rs:207
Methodredo
Redo the last undone change. Returns true if redo was performed, false if nothing to redo.
crates/drafftink-core/src/crdt/schema.rs:374
Methodredo_count
Get the number of available redo steps.
crates/drafftink-core/src/crdt/schema.rs:394
Functionrejects_non_library_json
()
crates/drafftink-core/src/excalidraw.rs:519
Methodrender_debug_anchor
DEBUG: Render anchor point visualization
crates/drafftink-render/src/vello_impl.rs:1431
Methodrender_grid
(&mut self, viewport: Rect, transform: Affine, grid_size: f64)
crates/drafftink-render/src/vello_impl.rs:2485
Methodrender_selection_handles
(&mut self, bounds: Rect, transform: Affine)
crates/drafftink-render/src/vello_impl.rs:2339
Functionreset_rotation
Reset rotation to a specific angle (0° or 90°).
crates/drafftink-core/src/selection.rs:580
Methodresumed
(&mut self, event_loop: &ActiveEventLoop)
crates/drafftink-app/src/app.rs:2041
Methodrule
(&mut self, pos: Cursor, width: f64, height: f64)
crates/drafftink-render/src/rex_backend.rs:195
Functionrun_wasm
()
crates/drafftink-app/src/web.rs:117
Methodsave
(&self, id: &str, document: &CanvasDocument)
crates/drafftink-core/src/storage/indexeddb.rs:41
Methodscene
Get the built scene for rendering.
crates/drafftink-render/src/vello_impl.rs:366
Methodscroll_delta
(&self)
crates/drafftink-core/src/input.rs:150
Functionsection_label
Draw a section label (small, muted text).
crates/drafftink-widgets/src/layout.rs:35
Methodselect
Select a single shape (clears other selections).
crates/drafftink-core/src/widget/manager.rs:105
Methodselected
Get all selected shape IDs.
crates/drafftink-core/src/widget/manager.rs:66
Methodselected
Set whether the button is selected/active.
crates/drafftink-widgets/src/buttons.rs:112
Functionself_message_is_supported
()
crates/drafftink-core/src/mermaid/sequence.rs:560
Methodsend_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
Functionseparator
Draw a horizontal separator line.
crates/drafftink-widgets/src/layout.rs:8
Functionsequence_imports_as_one_editable_group
()
crates/drafftink-core/src/mermaid/mod.rs:333
Methodset_cached_size
(&self, width: f64, height: f64, depth: f64)
crates/drafftink-core/src/shapes/math.rs:77
Methodset_content
Set the text content.
crates/drafftink-core/src/shapes/text.rs:269
Methodset_document_id
Set the current document ID.
crates/drafftink-core/src/storage/autosave.rs:68
Methodset_fill
Set the fill color from a peniko Color.
crates/drafftink-core/src/shapes/mod.rs:248
Methodset_hovered
Set the hovered shape.
crates/drafftink-core/src/widget/manager.rs:81
Methodset_interval
Set the auto-save interval.
crates/drafftink-core/src/storage/autosave.rs:48
Methodset_stroke
Set the stroke color from a peniko Color.
crates/drafftink-core/src/shapes/mod.rs:243
Methodshade
Get shade by index (0=25, 1=50, ..., 6=500, ..., 11=950)
crates/drafftink-widgets/src/colors.rs:48
Methodshades
Set which shade indices to show.
crates/drafftink-widgets/src/colors.rs:786
Methodshape_count
Get the number of shapes in the document.
crates/drafftink-core/src/crdt/schema.rs:69
Methodshape_ids
Get the shape IDs being moved.
crates/drafftink-core/src/selection.rs:334
Methodshapes_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
Methodshapes_ordered
Get all shapes in z-order.
crates/drafftink-core/src/crdt/schema.rs:158
Methodshow
Show the button and return true if clicked.
crates/drafftink-widgets/src/buttons.rs:142
Methodsign
Point in triangle test
crates/drafftink-core/src/shapes/arrow.rs:184
Functionsingle_shape_item_is_still_wrapped_in_a_group
()
crates/drafftink-core/src/excalidraw.rs:575
Functionsnap_point
Snap a point to grid if enabled.
crates/drafftink-core/src/snap.rs:571
← previousnext →801–900 of 1,090, ranked by callers