Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GraphiteEditor/Graphite
/ functions
Functions
5,973 in github.com/GraphiteEditor/Graphite
⨍
Functions
5,973
◇
Types & classes
1,421
↓ 2 callers
Method
cef_modifiers
(&self, location: &KeyLocation, is_repeat: bool)
desktop/src/cef/input/state.rs:48
↓ 2 callers
Method
cef_mouse_modifiers
(&self)
desktop/src/cef/input/state.rs:52
↓ 2 callers
Function
cef_path
()
desktop/bundle/src/common.rs:27
↓ 2 callers
Method
center
Gets the center of a quad
node-graph/libraries/core-types/src/math/quad.rs:70
↓ 2 callers
Method
check_end_handle_type
Check whether target handle is primary, end, or `self.handle_end`
editor/src/messages/tool/tool_messages/pen_tool.rs:512
↓ 2 callers
Method
check_snapping
(&self, new_sweep_angle: f64)
editor/src/messages/tool/common_functionality/gizmos/shape_gizmos/sweep_angle_gizmo.rs:347
↓ 2 callers
Function
checked_entry_size
(total: &mut u64, size: u64)
document/container/src/archive.rs:22
↓ 2 callers
Method
chroma_range
(&self)
node-graph/libraries/no-std-types/src/color/color_types.rs:616
↓ 2 callers
Method
circle
(&mut self, position: DVec2, radius: f64, color_fill: Option<&str>, color_stroke: Option<&str>)
editor/src/messages/portfolio/document/overlays/utility_types_native.rs:311
↓ 2 callers
Method
circle
(&mut self, position: DVec2, radius: f64, color_fill: Option<&str>, color_stroke: Option<&str>)
editor/src/messages/portfolio/document/overlays/utility_types_web.rs:453
↓ 2 callers
Function
clean_dir
(dir: &Path)
desktop/bundle/src/common.rs:54
↓ 2 callers
Method
cleanup
(&mut self)
editor/src/messages/tool/tool_messages/spline_tool.rs:273
↓ 2 callers
Method
clear_points
(&mut self)
editor/src/messages/tool/common_functionality/shape_editor.rs:115
↓ 2 callers
Method
click_list_no_parents
(&'a self, ipp: &InputPreprocessorMessageHandler, viewport: &ViewportMessageHandler)
editor/src/messages/portfolio/document/document_message_handler.rs:1963
↓ 2 callers
Function
clip_simple_bezpaths
TODO: If a segment curls back on itself tightly enough it could intersect again at the portion that should be trimmed. This could cause the Subpaths t
node-graph/libraries/vector-types/src/vector/algorithms/bezpath_algorithms.rs:435
↓ 2 callers
Method
clone_value
Clones the value at the given index into a boxed scalar attribute value.
node-graph/libraries/core-types/src/list.rs:344
↓ 2 callers
Method
closest_point_to_viewport
(&self)
editor/src/messages/tool/common_functionality/shape_editor.rs:219
↓ 2 callers
Method
closest_style
Finds the closest style to the given weight and italic setting. Aims to find the nearest weight while maintaining the italic setting if possible, but
editor/src/messages/portfolio/fonts/utility_types.rs:116
↓ 2 callers
Method
collect_anchors
(&mut self, snap_data: &mut SnapData, first_point: bool)
editor/src/messages/tool/common_functionality/snapping/layer_snapper.rs:193
↓ 2 callers
Method
collect_bounding_box_points
(&mut self, snap_data: &mut SnapData, first_point: bool, bbox_to_snap: Rect)
editor/src/messages/tool/common_functionality/snapping/distribution_snapper.rs:67
↓ 2 callers
Method
collect_garbage
(&mut self, used: &[ResourceId])
editor/src/messages/portfolio/document/resource/resource_message_handler.rs:229
↓ 2 callers
Function
collect_input_resource
(input: &GraphCraftNodeInput, referenced: &mut std::collections::HashSet<ResourceId>)
document/graph-storage/src/from_runtime.rs:236
↓ 2 callers
Function
collect_network_resources
(network: &NodeNetwork, out: &mut HashSet<ResourceId>)
editor/src/messages/portfolio/document/utility_types/network_interface.rs:7028
↓ 2 callers
Function
collect_network_view_settings
Collect the per-network, per-peer view state (node-graph nav + previewing) from `interface` into a `session.json` map keyed by the stable storage [`Ne
editor/src/messages/portfolio/document/utility_types/network_interface/storage_metadata.rs:194
↓ 2 callers
Method
collect_paths
(&mut self, snap_data: &mut SnapData, first_point: bool)
editor/src/messages/tool/common_functionality/snapping/layer_snapper.rs:57
↓ 2 callers
Function
collect_timestamps
(registry: &Registry)
document/graph-storage/src/registry.rs:122
↓ 2 callers
Method
collect_used_resources
Add the resources referenced by every snapshot in both history stacks into `resources`, so history-only resources stay alive for legacy undo/redo.
editor/src/messages/portfolio/document/document_history.rs:64
↓ 2 callers
Function
color_graphic
(alpha: f64)
node-graph/libraries/graphic-types/src/graphic.rs:686
↓ 2 callers
Method
compass_rose
(&self)
editor/src/messages/portfolio/document/overlays/utility_types_web.rs:106
↓ 2 callers
Method
compass_rose_state
(&self, mouse: DVec2, angle: f64)
editor/src/messages/tool/common_functionality/compass_rose.rs:49
↓ 2 callers
Method
compile
(&self, mut network: NodeNetwork)
node-graph/graph-craft/src/graphene_compiler.rs:8
↓ 2 callers
Function
compute_checkbox_id
Computes a deterministic CheckboxId based on the same WidgetId algorithm.
editor/src/messages/layout/utility_types/layout_widget.rs:162
↓ 2 callers
Function
compute_selected_target
(tool_data: &GradientToolData)
editor/src/messages/tool/tool_messages/gradient_tool.rs:1815
↓ 2 callers
Method
compute_snapped_resize_points
Calculates two points in viewport space from a drag, applying snapping, optional center mode, and aspect ratio locking.
editor/src/messages/tool/common_functionality/resize.rs:102
↓ 2 callers
Method
connected
(&self)
node-graph/libraries/vector-types/src/vector/vector_attributes.rs:1357
↓ 2 callers
Method
connected_linear_segments
Returns the number of linear segments connected to the given point.
node-graph/libraries/vector-types/src/vector/vector_types.rs:380
↓ 2 callers
Method
constrain_axis
(&mut self, axis: Axis, selected: &mut Selected, state: &TransformationState, document: &DocumentMessageHandle
editor/src/messages/portfolio/document/utility_types/transformation.rs:363
↓ 2 callers
Method
construct_faces
(&self)
node-graph/libraries/vector-types/src/vector/vector_attributes.rs:1250
↓ 2 callers
Method
contains
(&self, hash: &ResourceHash)
node-graph/graph-craft/src/application_io/resource/mmap.rs:112
↓ 2 callers
Method
contains
(&self, hash: &ResourceHash)
document/document-format/src/resource.rs:125
↓ 2 callers
Function
contentHash
(filePath: string)
frontend/vite.config.ts:159
↓ 2 callers
Method
context
(&mut self)
node-graph/libraries/canvas-utils/src/wasm.rs:46
↓ 2 callers
Method
contrainted_to_axis
(self, target: Axis, local: bool)
editor/src/messages/portfolio/document/utility_types/transformation.rs:143
↓ 2 callers
Function
contrasting_outline_factor
Returns a 0..1 outline strength for the comparison swatch, growing toward 1 as the color's luminance and saturation both approach the popover backgrou
editor/src/messages/color_picker/color_picker_message_handler.rs:668
↓ 2 callers
Method
control_points
(&self)
node-graph/libraries/vector-types/src/vector/misc.rs:309
↓ 2 callers
Function
convert_input
(input: &GraphCraftNodeInput, parent_path: Option<&NodePath>, network_id: NetworkId, peer: PeerId)
document/graph-storage/src/from_runtime.rs:489
↓ 2 callers
Function
convert_input
(registry: &Registry, network_id: NetworkId, input: &NodeInput, input_attributes: &crate::Attributes)
document/graph-storage/src/to_runtime.rs:319
↓ 2 callers
Function
convert_menu_bar_entry_children_to_menu_items
(children: &[Vec<MenuListEntry>], root_widget_id: u64, path: Vec<String>)
desktop/wrapper/src/utils.rs:116
↓ 2 callers
Function
convert_network
( node_network: &NodeNetwork, network_id: NetworkId, parent_path: Option<&NodePath>, metadata_path: &[Runt
document/graph-storage/src/from_runtime.rs:264
↓ 2 callers
Function
convert_network
( context: &ConversionContext, network_id: NetworkId, metadata_path: &[RuntimeNodeId], node_collector: &mu
document/graph-storage/src/to_runtime.rs:161
↓ 2 callers
Function
convert_spread_method
(spread_method: usvg::SpreadMethod)
editor/src/messages/portfolio/document/graph_operation/graph_operation_message_handler.rs:802
↓ 2 callers
Method
copy_all_navigation_metadata
(&mut self, other_interface: &NodeNetworkInterface)
editor/src/messages/portfolio/document/utility_types/network_interface.rs:3483
↓ 2 callers
Function
copy_dir
(src: &Path, dst: &Path)
desktop/bundle/src/common.rs:61
↓ 2 callers
Method
count_ones
(&self)
editor/src/messages/input_mapper/utility_types/input_keyboard.rs:506
↓ 2 callers
Method
create
(self, event_handler: H, wgpu_context: WgpuContext, disable_gpu_acceleration: bool)
desktop/src/cef/context/builder.rs:71
↓ 2 callers
Function
createSRgba8
(red: number, green: number, blue: number, alpha: number)
frontend/src/utility-functions/colors.ts:9
↓ 2 callers
Function
create_app
(app_dir: &Path, id: &str, name: &str, bin: &Path, is_helper: bool)
desktop/bundle/src/mac.rs:65
↓ 2 callers
Function
create_bounding_box_transform
Bounding boxes are unfortunately not axis aligned. The bounding boxes are found after a transformation is applied to all of the layers. This uses some
editor/src/messages/tool/tool_messages/select_tool.rs:715
↓ 2 callers
Function
create_browser
(event_handler: H, wgpu_context: WgpuContext, instance_dir: TempDir, accelerated_paint: bool)
desktop/src/cef/context/builder.rs:153
↓ 2 callers
Function
create_brush_texture
(brush_style: &BrushStyle)
node-graph/nodes/brush/src/brush.rs:137
↓ 2 callers
Function
create_fill_gradient_chain_layer
(editor: &mut EditorTestUtils)
editor/src/messages/tool/tool_messages/gradient_tool.rs:2168
↓ 2 callers
Function
create_gradient_list_layer
(editor: &mut EditorTestUtils)
editor/src/messages/tool/tool_messages/gradient_tool.rs:2132
↓ 2 callers
Method
create_node
Create a new node inside the layer
editor/src/messages/portfolio/document/graph_operation/utility_types.rs:429
↓ 2 callers
Method
create_node_template
Create a node template from an existing node.
editor/src/messages/portfolio/document/utility_types/network_interface.rs:449
↓ 2 callers
Function
create_or_modify_point
Updates the index so that it points at a point with the position. If nobody else will look at the index, the original point is updated. Otherwise a ne
node-graph/nodes/vector/src/vector_nodes.rs:2847
↓ 2 callers
Function
create_peniko_gradient_brush
(gradient_list: &List<GradientStops>, multiplied_transform: &DAffine2)
node-graph/libraries/rendering/src/renderer.rs:399
↓ 2 callers
Method
create_raster_image
(&mut self, image: graphene_std::raster::Image<Color>, mouse: Option<(f64, f64)>)
editor/src/test_utils.rs:251
↓ 2 callers
Method
create_surface
(&self, instance: &wgpu::Instance)
desktop/src/window.rs:89
↓ 2 callers
Function
cubic_cubic_intersections_lyon
Fast cubic-cubic intersection using lyon_geom's analytical approach
node-graph/libraries/vector-types/src/vector/algorithms/intersection.rs:16
↓ 2 callers
Function
currentClosestImageIndex
* @param {Carousel} carousel
website/static/js/component/carousel.js:403
↓ 2 callers
Method
current_hash
(&self)
editor/src/messages/portfolio/document/utility_types/network_interface/memo_network.rs:48
↓ 2 callers
Method
cursor_move
(&mut self, position: &PhysicalPosition<f64>)
desktop/src/cef/input/state.rs:34
↓ 2 callers
Method
deactivate
(&self, responses: &mut VecDeque<Message>)
editor/src/messages/tool/utility_types.rs:187
↓ 2 callers
Method
declarations
Rebuild the [`Declarations`](crate::Declarations) map (`ResourceId` → [`ProtoNode`]) from the extracted bytes, for callers that keep the bytes in hand
document/graph-storage/src/from_runtime.rs:108
↓ 2 callers
Function
decode_declaration
Decode a [`ProtoNode`] declaration from the bytes [`encode_declaration`] produced.
document/graph-storage/src/from_runtime.rs:128
↓ 2 callers
Method
decrease_or_increase_sides
(&self, document: &DocumentMessageHandler, shape_type: ShapeType, responses: &mut VecDeque<Message>, decrease:
editor/src/messages/tool/tool_messages/shape_tool.rs:828
↓ 2 callers
Method
delete_empty_layer
(&mut self, fonts: &FontsMessageHandler, responses: &mut VecDeque<Message>)
editor/src/messages/tool/tool_messages/text_tool.rs:474
↓ 2 callers
Method
delete_point_and_break_path
Delete point(s) and adjacent segments. Note: this also adds a history transaction if there is some change in state, and true is returned if so.
editor/src/messages/tool/common_functionality/shape_editor.rs:1666
↓ 2 callers
Function
delete_preview
(tool_data: &mut SplineToolData, responses: &mut VecDeque<Message>)
editor/src/messages/tool/tool_messages/spline_tool.rs:614
↓ 2 callers
Method
delete_selected_segments
(&mut self, document: &DocumentMessageHandler, responses: &mut VecDeque<Message>, start_transaction: bool)
editor/src/messages/tool/common_functionality/shape_editor.rs:1567
↓ 2 callers
Method
derivative
Computes the polynomial's derivative.
node-graph/libraries/core-types/src/math/polynomial.rs:81
↓ 2 callers
Function
derive_buffer_struct_struct
see [`BufferStruct`] docs This is also largely copied from my (@firestar99) project and adjusted [`BufferStruct`]: `no_std_types::shaders::buffer_st
node-graph/node-macro/src/buffer_struct.rs:66
↓ 2 callers
Method
deselect_segment
(&mut self, segment: SegmentId)
editor/src/messages/tool/common_functionality/shape_editor.rs:103
↓ 2 callers
Method
destroy
(&self)
desktop/src/window/win/native_handle.rs:144
↓ 2 callers
Method
diff_and_send_layout_to_frontend
Diff the update and send to the frontend where necessary
editor/src/messages/layout/layout_message_handler.rs:462
↓ 2 callers
Function
dismiss_color_stop_color_picker
(tool_data: &mut GradientToolData, responses: &mut VecDeque<Message>)
editor/src/messages/tool/tool_messages/gradient_tool.rs:1747
↓ 2 callers
Function
dispatch_gradient_chain_writes
Send the four per-attribute graph operations that mirror the in-memory `Gradient` onto the chain feeding the layer.
editor/src/messages/tool/tool_messages/gradient_tool.rs:823
↓ 2 callers
Method
dispatch_gradient_measurement
( &mut self, document: &mut DocumentMessageHandler, document_id: DocumentId, network_path: Vec<NodeId>
editor/src/node_graph_executor.rs:516
↓ 2 callers
Method
dissolve_segment
(&self, responses: &mut VecDeque<Message>, layer: LayerNodeIdentifier, vector: &Vector, segment: SegmentId, po
editor/src/messages/tool/common_functionality/shape_editor.rs:1404
↓ 2 callers
Function
doBinaryStep
()
website/static/js/page/contributor-guide/bisect-tool.js:422
↓ 2 callers
Function
document_migration_string_preprocessing
(document_serialized_content: String)
editor/src/messages/portfolio/document_migration.rs:974
↓ 2 callers
Method
document_network_mut
(&mut self)
editor/src/messages/portfolio/document/utility_types/network_interface.rs:106
↓ 2 callers
Function
document_split_share
The share of the slot that should go to the old side when splitting it with a new side.
editor/src/messages/portfolio/utility_types.rs:438
↓ 2 callers
Method
document_transform_from_mouse
Translates a viewport mouse position to a document-space transform, or uses the viewport center if no mouse position is given.
editor/src/messages/portfolio/document/document_message_handler.rs:1828
↓ 2 callers
Method
dowel_pin
(&mut self, position: DVec2, angle: f64, color: Option<&str>)
editor/src/messages/portfolio/document/overlays/utility_types_web.rs:820
↓ 2 callers
Function
downcast
(i: Box<dyn DynAny<'a> + 'a>)
libraries/dyn-any/src/lib.rs:104
↓ 2 callers
Function
downloadFile
(filename: string, content: Uint8Array)
frontend/src/utility-functions/files.ts:21
↓ 2 callers
Function
downloadFileBlob
(filename: string, blob: Blob)
frontend/src/utility-functions/files.ts:13
↓ 2 callers
Method
download_url
(&self, font: &Font)
editor/src/messages/portfolio/fonts/utility_types.rs:76
↓ 2 callers
Method
drag_tool_cancel_rmb
(&mut self, typ: ToolType)
editor/src/test_utils.rs:145
← previous
next →
1,501–1,600 of 5,973, ranked by callers