MCPcopy Create free account
hub / github.com/GraphiteEditor/Graphite / snap

Method snap

editor/src/messages/tool/common_functionality/shape_editor.rs:566–620  ·  view source on GitHub ↗

Snap, returning a viewport delta

(
		&self,
		snap_manager: &mut SnapManager,
		snap_cache: &SnapCache,
		document: &DocumentMessageHandler,
		input: &InputPreprocessorMessageHandler,
		viewport: &ViewportMessageHandler,
		previous_m

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

dragMethod · 0.80

Calls 14

document_metadataMethod · 0.80
metadataMethod · 0.80
colinearMethod · 0.80
get_positionMethod · 0.80
as_anchorMethod · 0.80
is_point_selectedMethod · 0.80
position_from_idMethod · 0.80
other_snap_betterMethod · 0.80
update_indicatorMethod · 0.80
connected_pointsMethod · 0.45

Tested by

no test coverage detected