MCPcopy Create free account

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

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

Methodfind_shape
Find a shape by ID within this group (including nested groups).
crates/drafftink-core/src/shapes/group.rs:72
Methodfind_shape_mut
Find a mutable shape by ID within this group (including nested groups).
crates/drafftink-core/src/shapes/group.rs:87
Methodfit_to_content
Fit the view to show all shapes.
crates/drafftink-core/src/canvas.rs:520
Functionflowchart_imports_as_one_editable_group
()
crates/drafftink-core/src/mermaid/mod.rs:354
Methodfmt
(&self, f: &mut std::fmt::Formatter<'_>)
crates/drafftink-core/src/mermaid/mod.rs:98
Methodfor_tool
Create props for drawing tool mode (no selection, configuring new shapes).
crates/drafftink-app/src/ui.rs:170
Methodfrom
(color: Color)
crates/drafftink-core/src/shapes/mod.rs:56
Methodfrom_corners
Create a rectangle from two corner points.
crates/drafftink-core/src/shapes/rectangle.rs:71
Methodfrom_crdt
Create from an existing CRDT document (e.g., loaded from storage or network).
crates/drafftink-core/src/collaboration.rs:48
Methodfrom_excalidraw
Import from Excalidraw JSON format.
crates/drafftink-core/src/canvas.rs:264
Methodfrom_extension
Detect format from file extension.
crates/drafftink-core/src/shapes/image.rs:30
Methodfrom_json
Deserialize a document from JSON.
crates/drafftink-core/src/canvas.rs:259
Methodfrom_magic_bytes
Detect format from magic bytes.
crates/drafftink-core/src/shapes/image.rs:40
Methodfrom_points
Create an arrow from multiple points.
crates/drafftink-core/src/shapes/arrow.rs:71
Methodfrom_points
Create from existing points.
crates/drafftink-core/src/shapes/freehand.rs:37
Methodfrom_points
Create a polyline from multiple points.
crates/drafftink-core/src/shapes/line.rs:82
Methodfrom_points_with_pressure
Create from points with pressure values.
crates/drafftink-core/src/shapes/freehand.rs:48
Methodfrom_rect
Create an ellipse from a bounding rectangle.
crates/drafftink-core/src/shapes/ellipse.rs:63
Methodfrom_shape
Create from a selected shape.
crates/drafftink-app/src/ui.rs:76
Methodfrom_shape_with_count
Create from a selected shape with a specific count.
crates/drafftink-app/src/ui.rs:81
Methodfrom_snapshot
Create a CRDT document from a snapshot.
crates/drafftink-core/src/crdt/schema.rs:39
Methodgeneration
Get the current generation (for change detection).
crates/drafftink-render/src/text_editor.rs:210
Methodget_handles
Get handles for a shape based on its type and state.
crates/drafftink-core/src/widget/manager.rs:173
Functionget_room_from_url
Legacy function for backward compatibility.
crates/drafftink-app/src/web.rs:80
Functiongrid_layout_separates_items_without_overlap
()
crates/drafftink-core/src/excalidraw.rs:586
Methodhandle_double_click
Handle double-click to select word.
crates/drafftink-render/src/text_editor.rs:437
Methodhandle_message
Handle an incoming server message. Returns a SyncEvent describing what happened.
crates/drafftink-core/src/collaboration.rs:340
Methodhandle_triple_click
Handle triple-click to select line.
crates/drafftink-render/src/text_editor.rs:450
Functionhealth
Health check
crates/drafftink-server/src/main.rs:220
Methodhit_test
(&self, point: Point, tolerance: f64)
crates/drafftink-core/src/shapes/ellipse.rs:87
Methodhit_test
(&self, point: Point, tolerance: f64)
crates/drafftink-core/src/shapes/mod.rs:386
Methodhit_test
(&self, point: Point, tolerance: f64)
crates/drafftink-core/src/shapes/group.rs:119
Methodhit_test
(&self, point: Point, tolerance: f64)
crates/drafftink-core/src/shapes/arrow.rs:157
Methodhit_test
(&self, point: Point, tolerance: f64)
crates/drafftink-core/src/shapes/text.rs:355
Methodhit_test
(&self, point: Point, tolerance: f64)
crates/drafftink-core/src/shapes/freehand.rs:230
Methodhit_test
(&self, point: Point, tolerance: f64)
crates/drafftink-core/src/shapes/image.rs:207
Methodhit_test
(&self, point: Point, tolerance: f64)
crates/drafftink-core/src/shapes/line.rs:147
Methodhit_test
(&self, point: Point, tolerance: f64)
crates/drafftink-core/src/shapes/rectangle.rs:100
Methodhit_test
(&self, point: Point, tolerance: f64)
crates/drafftink-core/src/shapes/math.rs:148
Functionhit_test_handle
(shape: &Shape, point: Point, tolerance: f64)
crates/drafftink-core/src/widget/manager.rs:274
Functioni64_to_fill_pattern
(v: i64)
crates/drafftink-core/src/crdt/convert.rs:663
Functioni64_to_font_family
(v: i64)
crates/drafftink-core/src/crdt/convert.rs:610
Functioni64_to_font_weight
(v: i64)
crates/drafftink-core/src/crdt/convert.rs:627
Functioni64_to_image_format
(v: i64)
crates/drafftink-core/src/crdt/convert.rs:643
Functioni64_to_path_style
(v: i64)
crates/drafftink-core/src/crdt/convert.rs:577
Functioni64_to_sloppiness
(v: i64)
crates/drafftink-core/src/crdt/convert.rs:560
Functioni64_to_stroke_style
(v: i64)
crates/drafftink-core/src/crdt/convert.rs:593
Methodid
(&self)
crates/drafftink-core/src/shapes/ellipse.rs:74
Methodid
(&self)
crates/drafftink-core/src/shapes/arrow.rs:120
Methodid
(&self)
crates/drafftink-core/src/shapes/text.rs:328
Methodid
(&self)
crates/drafftink-core/src/shapes/freehand.rs:206
Methodid
(&self)
crates/drafftink-core/src/shapes/image.rs:199
Methodid
(&self)
crates/drafftink-core/src/shapes/line.rs:132
Methodid
(&self)
crates/drafftink-core/src/shapes/rectangle.rs:92
Methodid
(&self)
crates/drafftink-core/src/shapes/math.rs:100
Functionindex
Index page
crates/drafftink-server/src/main.rs:215
Methodinterval
Get the auto-save interval.
crates/drafftink-core/src/storage/autosave.rs:53
Methodis_connected
Check if connected.
crates/drafftink-core/src/sync.rs:361
Methodis_dirty
Check if the document has unsaved changes.
crates/drafftink-core/src/storage/autosave.rs:63
Methodis_dragging
Check if a drag is in progress.
crates/drafftink-render/src/text_editor.rs:432
Methodis_editing
Check if a shape is being edited.
crates/drafftink-core/src/canvas.rs:505
Methodis_editing
Check if widget is in editing mode.
crates/drafftink-core/src/widget/state.rs:24
Methodis_editing_text
(&self)
crates/drafftink-app/src/event_handler.rs:299
Methodis_enabled
Check if collaboration is enabled.
crates/drafftink-core/src/collaboration.rs:66
Methodis_image
Check if this shape is an image.
crates/drafftink-core/src/shapes/mod.rs:495
Methodis_key_just_pressed
(&self, key: KeyCode)
crates/drafftink-core/src/input.rs:166
Methodis_key_just_released
(&self, key: KeyCode)
crates/drafftink-core/src/input.rs:170
Methodis_key_pressed
(&self, key: KeyCode)
crates/drafftink-core/src/input.rs:162
Methodis_selected
Check if widget is selected (either just selected or editing).
crates/drafftink-core/src/widget/state.rs:19
Methodis_single_touch
Check if single touch is active (for drawing).
crates/drafftink-core/src/input.rs:303
Methodjoin_room
Add peer to room
crates/drafftink-server/src/main.rs:140
Methodlarge
Large swatch
crates/drafftink-widgets/src/colors.rs:506
Methodlarge
Create a large button style (36x36)
crates/drafftink-widgets/src/buttons.rs:81
Methodlayout_size
Get cached layout dimensions.
crates/drafftink-render/src/text_editor.rs:220
Methodlength
Get the length of the arrow shaft.
crates/drafftink-core/src/shapes/arrow.rs:112
Methodlist
(&self)
crates/drafftink-core/src/storage/indexeddb.rs:126
Methodload
(&self, id: &str)
crates/drafftink-core/src/storage/indexeddb.rs:73
Methodloro_doc_mut
Get a mutable reference to the underlying LoroDoc.
crates/drafftink-core/src/crdt/schema.rs:54
Functionmain
()
crates/drafftink-server/src/main.rs:188
Functionmain
()
crates/drafftink-app/src/main.rs:4
Methodmanipulation
(&self)
crates/drafftink-app/src/event_handler.rs:227
Methodmaybe_save
Save the document if needed (dirty + interval elapsed). Returns true if save was performed.
crates/drafftink-core/src/storage/autosave.rs:91
Functionmeasure_text_handles_multiline
()
crates/drafftink-core/src/mermaid/mod.rs:293
Functionmenu_item
Show a menu item with label and optional shortcut.
crates/drafftink-widgets/src/menu.rs:18
Functionmenu_item_enabled
Show a menu item that can be enabled/disabled.
crates/drafftink-widgets/src/menu.rs:23
Functionmenu_separator
Draw a menu separator line.
crates/drafftink-widgets/src/menu.rs:84
Methodmime_type
Get MIME type for this format.
crates/drafftink-core/src/shapes/image.rs:21
Methodmin_width
Set minimum width.
crates/drafftink-widgets/src/buttons.rs:220
Methodname
Get the document name.
crates/drafftink-core/src/crdt/schema.rs:318
Functionnested_diagram_imports_and_draws_cluster_boxes
()
crates/drafftink-core/src/mermaid/flowchart.rs:1452
Functionnested_layout_places_cluster_children_inside_the_cluster_box
()
crates/drafftink-core/src/mermaid/flowchart.rs:1420
Methodnew
( scene: &'a mut Scene, math_font: &'f TtfMathFont<'f>, primary_font: Option<&'p ttf_p
crates/drafftink-render/src/rex_backend.rs:60
Methodnew
Create a new render context.
crates/drafftink-render/src/renderer.rs:123
Methodnew
Create a new text edit state with the given text content.
crates/drafftink-render/src/text_editor.rs:86
Methodnew
(seed: u32)
crates/drafftink-render/src/vello_impl.rs:97
Methodnew
Create a new handle.
crates/drafftink-core/src/selection.rs:58
Methodnew
Create a new collaboration manager.
crates/drafftink-core/src/collaboration.rs:34
Methodnew
Create a new camera with default settings.
crates/drafftink-core/src/camera.rs:39
Methodnew
()
crates/drafftink-core/src/input.rs:54
Methodnew
(x: i32, y: i32, heading: Heading)
crates/drafftink-core/src/elbow.rs:50
← previousnext →701–800 of 1,090, ranked by callers