#![doc = include_str!("../README.md")]
pub mod adapters;
pub mod core;
pub mod interaction;
pub mod locator;
pub mod render;
pub mod snapping;
pub mod tokens;
pub use adapters::{
AnnotationDragMode, BBoxDragState, CanvasTool, CanvasViewMode, DragSessionTransients,
DrawingToolState, GradientDragState, GrafiaCanvasResponse, GrafiaCanvasState,
GrafiaCanvasWidget, GuideDragState, KnifeDragState, MeasurementDragState,
PenInteractionTransients, PencilDragState, PixelDragState, PrimitiveDragState,
TextInteractionTransients,
};
pub use core::{
add_extremes_to_contours, add_inflection_points_to_contours, align_collinear_opposite,
align_selected_nodes, apply_gradient_handle_drag, apply_gradient_spread, bresenham_pixel_cells,
build_circle_contour_nodes, build_rectangle_contour_nodes, close_open_contours_in_layer,
collect_reference_frame_snap_lines, compute_glyph_tsb_and_bsb, compute_hoi_overlay_geometry,
compute_knife_intersections, compute_layer_extra_nodes, compute_layer_measurement_labels,
compute_measurement_ray_intersections, compute_measurement_typographic_angle_deg,
compute_pixel_preview_cells_upm, compute_primitive_rect_upm, compute_selection_bounds,
compute_signed_area, compute_subdivision_grid_lines_upm,
compute_vertical_kerning_indicator_quads, connect_selected_open_endpoints_in_contours,
constrain_knife_endpoint, contour_signed_area, contour_to_bezpath_with_splines,
correct_path_direction_layer, cut_open_delete_nodes, evaluate_color_layer_paint_at_upm,
evaluate_euler_spiro_chain_to_cubics, evaluate_hobby_chain_to_cubics,
extract_clipboard_contours, extract_segments, find_contour_node_upm,
find_duplicate_warning_nodes, find_pixel_cell_contour_index, fit_freehand_contour_nodes,
format_measurement_value, gradient_control_segment_upm, gradient_stop_position_upm,
gradient_stops_slice, grid_fit_contour_nodes, grid_fit_coord_upm, heal_delete_nodes,
hit_test_annotation_body, hit_test_annotation_handle, hit_test_bbox_knobs,
hit_test_gradient_handle, hit_test_segments, hobby_velocity_rho, intersect_contours,
knife_add_nodes_in_layer, knife_cut_paths_in_layer, make_node_first_or_reverse_open,
next_zoom_step, paste_clipboard_into_contours, pixel_cell_bounds_upm, point_in_polygon,
porter_duff_src_over, prev_zoom_step, project_point_to_background_contours,
project_pointer_onto_smart_handle, recompute_vertical_slot_origins, reference_frame_center_upm,
remove_overlap_in_contours, resolve_vertical_caret_index_at_upm, resolve_vertical_slot_at_upm,
sample_gradient_stops, select_nodes_in_lasso_polygon, simplify_polyline_rdp,
smart_handle_track_endpoints_upm, smart_handle_upm_position, snap_to_pixel_cell,
snap_vector_45_degrees, split_contour_segment, subtract_contours, tidy_up_contours,
trace_background_image, truetype_upm_per_px, Affine2D, AnchorId, AnchorSelectionInfo,
AnnotationId, AnnotationKind, AnnotationSubTool, AutoTraceConfig, AutoTraceThresholdMode,
BBoxAction, BackgroundImageInfo, BackgroundImageMutation, CanvasAnchor, CanvasAnnotation,
CanvasBackgroundImage, CanvasClipboard, CanvasColorSublayer, CanvasComponent,
CanvasDocumentScene, CanvasGuideSet, CanvasHintingAndHoiScene, CanvasHostRequest,
CanvasLayerAttachments, CanvasSmartHandle, CanvasTextStream, ClipboardContour, ColorLayerPaint,
ColorSublayerMutation, CompanionMasterLayer, ComponentId, ComponentSelectionInfo, ContourId,
ContourSegment, ContourStrokeStyle, CustomReferenceFrame, DuplicateWarningKind, ExtraNodeKey,
FitCurveConfig, FontPoint, FontUnit, GhostMarkPath, Glyph, GlyphBaseInfo, GlyphContour,
GlyphHierarchy, GlyphSlot, GradientExtend, GradientHandleKind, GradientSpread, GradientStop,
GuideAlignment, GuideInfo, HobbyDirConstraint, HobbyNodeInfo, HoiCubicLayerSet, HoiDiamondRole,
HoiOverlayGeometry, HoiSiblingContours, KerningDelta, KerningIndicatorQuad, LayerPathOp,
LineCapStyle, LineJoinStyle, MasterCompatibilityReport, MeasurementLayerLabels, MetricsAxis,
MetricsOrigin, MultiNodeInfo, Node, NodeId, NodeType, PostScriptHint, PostScriptHintAxis,
PostScriptHintMutation, PrimitiveSubTool, RectUpm, ReferenceBandLine, ScreenDp, ScreenPoint,
SegmentHit, SelectionBounds, SelectionInfo, SelectionInfoAction, Shape, ShapeBooleanRole,
ShapeId, SingleOffCurveInfo, SingleOnCurveInfo, SlotScanlineMeasurement, SnapTargetKind,
SnapTargetMask, SolvedSplineSegment, SpacingDelta, StrokePosition, TextStreamEditKind,
TextStreamEditRequest, ToolDialogRequest, TouchInteractionState, TransformGridAnchor,
TransformOriginSpec, TrueTypeInstructionKind, TrueTypeInstructionMutation,
TrueTypeRoundingGrid, TrueTypeVisualInstruction, ViewportTransform, VirtualExtraNode,
WritingDirection, MAX_INTERACTIVE_DRAG_PIXMAP_DIM,
};
pub use interaction::{
CanvasGesture, CommandHistory, GlyphSnapshot, Modifiers, PenToolState, SelectToolState,
SnapshotHintingAndHoiState, SnapshotLayerAttachments,
};
pub use locator::{ShapeLocatorRenderer, ShapeLocatorStyle, ShapeLocatorWidget};
pub use render::{
compute_ruler_tick_steps_upm, render_colored_thumbnail, render_preview_strip_rgba,
tessellate_contours_even_odd, tessellate_contours_nonzero, tessellate_glyph_contours_nonzero,
GrafiaPreviewWidget, PreviewFilledProjection, PreviewPanelConfig, PreviewRenderConfig,
PreviewStripCache, ProjectedNode, ReferenceFramePalette, RulerTickRangeUpm,
ShapeThumbnailProjection,
};
pub use snapping::{
calculate_guide_intersections, classify_node_alignment, normalize_guide_angle,
smart_two_node_guide_geometry, ActiveSnapper, AlignmentBadgeMode, AlignmentZone, GlyphMetrics,
Guide, GuideHitKind, GuideId, GuideMeasurementRay, GuideMeasurementSegment, GuideThickness,
SelectedGuideRef, SnapEngine, SnapGuideContext, SnapResult,
};
pub use tokens::{
AppearanceMode, CanvasActionId, EditCanvasTokens, GrafiaKeymap, GrafiaPreferences, GrafiaTheme,
KeyChord, OffCurveHandleShape, RgbaColorToken, ANCHOR_DIAMOND_RADIUS_DP,
ANCHOR_DIAMOND_SELECTED_RADIUS_DP, ANCHOR_HIT_RADIUS_DP, BACKGROUND_LAYER_STROKE_DARK,
BACKGROUND_LAYER_STROKE_LIGHT, BACKGROUND_STROKE_WIDTH_DP, FIT_CURVE_DEFAULT_MAX_RATIO,
FIT_CURVE_DEFAULT_MIN_RATIO, FIT_CURVE_MAX_INTERSECTION_CHORD_MULTIPLE,
KERNING_INCREMENT_HIGH_UPM, KERNING_INCREMENT_LOW_UPM, KERNING_NEGATIVE_FILL_DARK,
KERNING_NEGATIVE_FILL_LIGHT, KERNING_POSITIVE_FILL_DARK, KERNING_POSITIVE_FILL_LIGHT,
PASSIVE_GLYPH_FILL_DARK, PASSIVE_GLYPH_FILL_LIGHT, PREVIEW_BG_INVERTED_DARK,
PREVIEW_BG_INVERTED_LIGHT, PREVIEW_BG_NORMAL_DARK, PREVIEW_BG_NORMAL_LIGHT,
PREVIEW_BLUR_ACTIVE_THRESHOLD_PX, PREVIEW_BLUR_DEFAULT_RADIUS_PX, PREVIEW_BLUR_MAX_RADIUS_PX,
PREVIEW_BLUR_MIN_RADIUS_PX, PREVIEW_BOTH_EXTRA_SPACE_SCALE, PREVIEW_DEFAULT_EXTRA_SPACING,
PREVIEW_FG_INVERTED_DARK, PREVIEW_FG_INVERTED_LIGHT, PREVIEW_FG_NORMAL_DARK,
PREVIEW_FG_NORMAL_LIGHT, PREVIEW_ONE_EXTRA_SPACE_SCALE, RULER_BG_FILL_DARK,
RULER_BG_FILL_LIGHT, RULER_BORDER_STROKE_DARK, RULER_BORDER_STROKE_LIGHT,
RULER_HAIRLINE_COLOR_DARK, RULER_HAIRLINE_COLOR_LIGHT, RULER_THICKNESS_DP,
RULER_TICK_COLOR_DARK, RULER_TICK_COLOR_LIGHT, SPACING_INCREMENT_HIGH_UPM,
SPACING_INCREMENT_LOW_UPM, TEXT_CARET_COLOR_DARK, TEXT_CARET_COLOR_LIGHT,
TEXT_MEASUREMENT_KNOB_FILL_DARK, TEXT_MEASUREMENT_KNOB_FILL_LIGHT,
TEXT_MEASUREMENT_LINE_COLOR_DARK, TEXT_MEASUREMENT_LINE_COLOR_LIGHT,
TEXT_MEASUREMENT_LINE_DEFAULT_Y_UPM, TEXT_METRICS_NUMBER_COLOR_DARK,
TEXT_METRICS_NUMBER_COLOR_LIGHT, TEXT_MODE_NUMBERS_THRESHOLD_DEFAULT,
TEXT_SELECTION_DRAG_THRESHOLD_DP, TEXT_SELECTION_FILL_DARK, TEXT_SELECTION_FILL_LIGHT,
};