mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-28 02:18:11 +08:00
WIP
This commit is contained in:
@@ -13,11 +13,17 @@ vello = ["dep:vello", "bezier-rs/kurbo"]
|
||||
# Local dependencies
|
||||
dyn-any = { workspace = true }
|
||||
graphene-core = { workspace = true }
|
||||
graphene-raster = { workspace = true }
|
||||
graphene-element = { workspace = true }
|
||||
graphene-vector = { workspace = true }
|
||||
node-macro = { workspace = true }
|
||||
bezier-rs = { workspace = true }
|
||||
|
||||
# Workspace dependencies
|
||||
glam = { workspace = true }
|
||||
specta = { workspace = true }
|
||||
serde = { workspace = true }
|
||||
serde_json = { workspace = true }
|
||||
base64 = { workspace = true }
|
||||
log = { workspace = true }
|
||||
num-traits = { workspace = true }
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
use bezier_rs::{ManipulatorGroup, Subpath};
|
||||
use glam::DVec2;
|
||||
use graphene_core::vector::PointId;
|
||||
use graphene_vector::PointId;
|
||||
|
||||
pub fn convert_usvg_path(path: &usvg::Path) -> Vec<Subpath<PointId>> {
|
||||
let mut subpaths = Vec::new();
|
||||
|
||||
@@ -3,8 +3,8 @@ use glam::{DAffine2, DVec2};
|
||||
use graphene_core::consts::{LAYER_OUTLINE_STROKE_COLOR, LAYER_OUTLINE_STROKE_WEIGHT};
|
||||
use graphene_core::gradient::{Gradient, GradientType};
|
||||
use graphene_core::uuid::generate_uuid;
|
||||
use graphene_core::vector::style::{Fill, PaintOrder, PathStyle, Stroke, StrokeAlign, StrokeCap, StrokeJoin, ViewMode};
|
||||
use std::fmt::Write;
|
||||
use graphene_core::view_mode::ViewMode;
|
||||
use graphene_vector::style::{Fill, PaintOrder, PathStyle, Stroke, StrokeAlign, StrokeCap, StrokeJoin};
|
||||
|
||||
pub trait RenderExt {
|
||||
type Output;
|
||||
|
||||
@@ -1,21 +1,22 @@
|
||||
use crate::render_ext::RenderExt;
|
||||
use crate::to_peniko::BlendModeExt;
|
||||
use base64::Engine;
|
||||
use bezier_rs::Subpath;
|
||||
use dyn_any::DynAny;
|
||||
use glam::{DAffine2, DVec2};
|
||||
use graphene_core::blending::BlendMode;
|
||||
use graphene_core::bounds::BoundingBox;
|
||||
use graphene_core::color::Color;
|
||||
use graphene_core::instances::Instance;
|
||||
use graphene_core::math::quad::Quad;
|
||||
use graphene_core::raster::Image;
|
||||
use graphene_core::raster_types::{CPU, GPU, RasterDataTable};
|
||||
use graphene_core::math::rect::Rect;
|
||||
use graphene_core::transform::{Footprint, Transform};
|
||||
use graphene_core::uuid::{NodeId, generate_uuid};
|
||||
use graphene_core::vector::VectorDataTable;
|
||||
use graphene_core::vector::click_target::{ClickTarget, FreePoint};
|
||||
use graphene_core::vector::style::{Fill, Stroke, StrokeAlign, ViewMode};
|
||||
use graphene_core::{AlphaBlending, Artboard, ArtboardGroupTable, GraphicElement, GraphicGroupTable};
|
||||
use graphene_core::view_mode::ViewMode;
|
||||
use graphene_element::{Artboard, ArtboardGroupTable, GraphicElement, GraphicGroupTable};
|
||||
use graphene_raster::image::Image;
|
||||
use graphene_raster::{CPU, GPU, RasterDataTable};
|
||||
use graphene_vector::VectorDataTable;
|
||||
use graphene_vector::click_target::{ClickTarget, FreePoint};
|
||||
use graphene_vector::style::{Fill, Stroke, StrokeAlign};
|
||||
use num_traits::Zero;
|
||||
use std::collections::{HashMap, HashSet};
|
||||
use std::fmt::Write;
|
||||
|
||||
Reference in New Issue
Block a user