/dports/games/abstreet/abstreet-0.2.9-49-g74aca40c0/cargo-crates/usvg-0.11.0/src/svgtree/ |
H A D | names.rs | 157 pub enum AId { enum 339 ("cy", AId::Cy), 340 ("dy", AId::Dy), 349 ("id", AId::Id), 353 ("k3", AId::K3), 361 ("d", AId::D), 368 ("z", AId::Z), 398 ("y", AId::Y), 433 ("x", AId::X), 459 ("r", AId::R), [all …]
|
H A D | mod.rs | 161 pub name: AId, 737 impl AId { impl 747 | AId::Fill in is_presentation() 764 | AId::Mask in is_presentation() 803 | AId::Fill in allows_inherit_value() 820 | AId::Mask in allows_inherit_value() 846 | AId::ClipPath in is_non_inheritable() 847 | AId::Display in is_non_inheritable() 848 | AId::Filter in is_non_inheritable() 851 | AId::Mask in is_non_inheritable() [all …]
|
H A D | parse.rs | 273 aid: AId, in append_attribute() argument 313 AId::X | AId::Y in parse_svg_attribute() 314 | AId::Dx | AId::Dy => { in parse_svg_attribute() 332 AId::X1 | AId::Y1 in parse_svg_attribute() 333 | AId::X2 | AId::Y2 in parse_svg_attribute() 335 | AId::Rx | AId::Ry in parse_svg_attribute() 336 | AId::Cx | AId::Cy in parse_svg_attribute() 337 | AId::Fx | AId::Fy in parse_svg_attribute() 338 | AId::RefX | AId::RefY in parse_svg_attribute() 339 | AId::Width | AId::Height in parse_svg_attribute() [all …]
|
/dports/textproc/cast2gif/cast2gif-0.1.0/cargo-crates/usvg-0.9.0/src/svgtree/ |
H A D | names.rs | 157 pub enum AId { enum 339 ("cy", AId::Cy), 340 ("dy", AId::Dy), 349 ("id", AId::Id), 353 ("k3", AId::K3), 361 ("d", AId::D), 368 ("z", AId::Z), 398 ("y", AId::Y), 433 ("x", AId::X), 459 ("r", AId::R), [all …]
|
H A D | mod.rs | 161 pub name: AId, 737 impl AId { impl 747 | AId::Fill in is_presentation() 764 | AId::Mask in is_presentation() 803 | AId::Fill in allows_inherit_value() 820 | AId::Mask in allows_inherit_value() 846 | AId::ClipPath in is_non_inheritable() 847 | AId::Display in is_non_inheritable() 848 | AId::Filter in is_non_inheritable() 851 | AId::Mask in is_non_inheritable() [all …]
|
H A D | parse.rs | 273 aid: AId, in append_attribute() argument 313 AId::X | AId::Y in parse_svg_attribute() 314 | AId::Dx | AId::Dy => { in parse_svg_attribute() 332 AId::X1 | AId::Y1 in parse_svg_attribute() 333 | AId::X2 | AId::Y2 in parse_svg_attribute() 335 | AId::Rx | AId::Ry in parse_svg_attribute() 336 | AId::Cx | AId::Cy in parse_svg_attribute() 337 | AId::Fx | AId::Fy in parse_svg_attribute() 338 | AId::RefX | AId::RefY in parse_svg_attribute() 339 | AId::Width | AId::Height in parse_svg_attribute() [all …]
|
/dports/games/abstreet/abstreet-0.2.9-49-g74aca40c0/cargo-crates/usvg-0.11.0/src/tree/ |
H A D | export.rs | 13 use crate::{geom::*, svgtree::{EId, AId}, IsDefault}; 462 xml.write_func_iri(AId::Mask, id); in conv_element() 528 AId::ViewBox.to_str(), in write_viewbox() 560 let id = AId::EnableBackground.to_str(); in write_enable_background() 587 self.write_svg_attribute(AId::X, &r.x()); in write_rect_attrs() 588 self.write_svg_attribute(AId::Y, &r.y()); in write_rect_attrs() 763 xml.write_func_iri(AId::ClipPath, id); in write_path() 820 write_paint(AId::Fill, &fill.paint, xml); in write_fill() 828 AId::ClipRule in write_fill() 830 AId::FillRule in write_fill() [all …]
|
/dports/textproc/cast2gif/cast2gif-0.1.0/cargo-crates/usvg-0.9.0/src/tree/ |
H A D | export.rs | 13 use crate::{geom::*, svgtree::{EId, AId}, IsDefault}; 462 xml.write_func_iri(AId::Mask, id); in conv_element() 528 AId::ViewBox.to_str(), in write_viewbox() 560 let id = AId::EnableBackground.to_str(); in write_enable_background() 587 self.write_svg_attribute(AId::X, &r.x()); in write_rect_attrs() 588 self.write_svg_attribute(AId::Y, &r.y()); in write_rect_attrs() 760 xml.write_func_iri(AId::ClipPath, id); in write_path() 817 write_paint(AId::Fill, &fill.paint, xml); in write_fill() 825 AId::ClipRule in write_fill() 827 AId::FillRule in write_fill() [all …]
|
/dports/games/abstreet/abstreet-0.2.9-49-g74aca40c0/cargo-crates/usvg-0.11.0/src/convert/ |
H A D | paint_server.rs | 203 name: AId, in convert_units() argument 379 name: AId, in resolve_attr() argument 396 name: AId, in resolve_lg_attr() argument 404 (AId::X1, EId::LinearGradient) in resolve_lg_attr() 405 | (AId::Y1, EId::LinearGradient) in resolve_lg_attr() 406 | (AId::X2, EId::LinearGradient) in resolve_lg_attr() 407 | (AId::Y2, EId::LinearGradient) in resolve_lg_attr() 429 name: AId, in resolve_rg_attr() argument 437 (AId::Cx, EId::RadialGradient) in resolve_rg_attr() 463 name: AId, in resolve_pattern_attr() argument [all …]
|
H A D | filter.rs | 134 x: fe.try_convert_length(AId::X, units, state), in convert_primitive() 135 y: fe.try_convert_length(AId::Y, units, state), in convert_primitive() 168 input: resolve_input(fe, AId::In, primitives), in convert_fe_gaussian_blur() 180 input: resolve_input(fe, AId::In, primitives), in convert_fe_offset() 269 .find_attribute(AId::ImageRendering) in convert_fe_image() 286 let href = match fe.attribute(AId::Href) { in convert_fe_image() 312 input: resolve_input(fe, AId::In, primitives), in convert_fe_tile() 346 match node.attribute(AId::Type)? { in convert_transfer_function() 393 match fe.attribute(AId::Type) { in convert_color_matrix_kind() 724 aid: AId, in resolve_input() argument [all …]
|
H A D | style.rs | 20 rule: node.find_attribute(AId::ClipRule).unwrap_or_default(), in resolve_fill() 25 let paint = if let Some(n) = node.find_node_with_attribute(AId::Fill) { in resolve_fill() 26 convert_paint(n, AId::Fill, has_bbox, state, &mut sub_opacity, tree)? in resolve_fill() 34 rule: node.find_attribute(AId::FillRule).unwrap_or_default(), in resolve_fill() 50 let paint = if let Some(n) = node.find_node_with_attribute(AId::Stroke) { in resolve_stroke() 51 convert_paint(n, AId::Stroke, has_bbox, state, &mut sub_opacity, tree)? in resolve_stroke() 56 let width = node.resolve_valid_length(AId::StrokeWidth, state, 1.0)?; in resolve_stroke() 59 let miterlimit = node.find_attribute(AId::StrokeMiterlimit).unwrap_or(4.0); in resolve_stroke() 70 linecap: node.find_attribute(AId::StrokeLinecap).unwrap_or_default(), in resolve_stroke() 79 aid: AId, in convert_paint() argument [all …]
|
H A D | shapes.rs | 28 node.attribute::<tree::SharedPathData>(AId::D) in convert_path() 47 let x = node.convert_user_length(AId::X, state, Length::zero()); in convert_rect() 48 let y = node.convert_user_length(AId::Y, state, Length::zero()); in convert_rect() 51 let mut rx_opt = node.attribute::<Length>(AId::Rx); in convert_rect() 52 let mut ry_opt = node.attribute::<Length>(AId::Ry); in convert_rect() 114 let x1 = node.convert_user_length(AId::X1, state, Length::zero()); in convert_line() 115 let y1 = node.convert_user_length(AId::Y1, state, Length::zero()); in convert_line() 116 let x2 = node.convert_user_length(AId::X2, state, Length::zero()); in convert_line() 117 let y2 = node.convert_user_length(AId::Y2, state, Length::zero()); in convert_line() 145 match node.attribute::<&str>(AId::Points) { in points_to_path() [all …]
|
H A D | mask.rs | 21 if let Some(id) = node.attribute(AId::Id) { in convert() 27 let units = node.attribute(AId::MaskUnits).unwrap_or(tree::Units::ObjectBoundingBox); in convert() 28 … let content_units = node.attribute(AId::MaskContentUnits).unwrap_or(tree::Units::UserSpaceOnUse); in convert() 31 node.convert_length(AId::X, units, state, Length::new(-10.0, Unit::Percent)), in convert() 32 node.convert_length(AId::Y, units, state, Length::new(-10.0, Unit::Percent)), in convert() 33 node.convert_length(AId::Width, units, state, Length::new(120.0, Unit::Percent)), in convert() 34 node.convert_length(AId::Height, units, state, Length::new(120.0, Unit::Percent)), in convert() 43 if let Some(link) = node.attribute::<svgtree::Node>(AId::Mask) { in convert()
|
H A D | mod.rs | 116 svg.convert_user_length(AId::Width, &state, def) in resolve_svg_size() 122 svg.convert_user_length(AId::Height, &state, def) in resolve_svg_size() 128 svg.convert_user_length(AId::Width, &state, def), in resolve_svg_size() 129 svg.convert_user_length(AId::Height, &state, def), in resolve_svg_size() 293 node.attribute(AId::Opacity).unwrap_or_default() in convert_group() 321 resolve_link!(AId::Mask, mask::convert) in convert_group() 338 } else if node.has_attribute(AId::Filter) { in convert_group() 695 .find_attribute(AId::ShapeRendering) in convert_path() 741 debug_assert!(!matches!(aid, AId::BaselineShift | AId::FontSize), in resolve_length() 775 self.attribute(AId::Display) != Some("none") in is_visible_element() [all …]
|
H A D | units.rs | 13 aid: AId, in convert_length() argument 35 AId::X | AId::Cx | AId::Width => { in convert_length() 38 AId::Y | AId::Cy | AId::Height => { in convert_length() 58 aid: AId, in convert_list() argument 84 if let Some(length) = n.attribute::<Length>(AId::FontSize) { in resolve_font_size() 102 } else if let Some(name) = n.attribute(AId::FontSize) { in resolve_font_size()
|
H A D | use_node.rs | 27 let mut orig_ts: tree::Transform = node.attribute(AId::Transform).unwrap_or_default(); in convert() 31 let x = node.convert_user_length(AId::X, state, Length::zero()); in convert() 32 let y = node.convert_user_length(AId::Y, state, Length::zero()); in convert() 70 let x = node.convert_user_length(AId::X, state, Length::zero()); in convert_svg() 71 let y = node.convert_user_length(AId::Y, state, Length::zero()); in convert_svg() 171 if matches!(symbol_node.attribute(AId::Overflow), Some("visible") | Some("auto")) { in get_clip_rect() 176 let x = use_node.convert_user_length(AId::X, state, Length::zero()); in get_clip_rect() 177 let y = use_node.convert_user_length(AId::Y, state, Length::zero()); in get_clip_rect() 220 let w = node.convert_user_length(AId::Width, state, def); in viewbox_transform() 221 let h = node.convert_user_length(AId::Height, state, def); in viewbox_transform() [all …]
|
/dports/textproc/cast2gif/cast2gif-0.1.0/cargo-crates/usvg-0.9.0/src/convert/ |
H A D | paint_server.rs | 203 name: AId, in convert_units() argument 379 name: AId, in resolve_attr() argument 396 name: AId, in resolve_lg_attr() argument 404 (AId::X1, EId::LinearGradient) in resolve_lg_attr() 405 | (AId::Y1, EId::LinearGradient) in resolve_lg_attr() 406 | (AId::X2, EId::LinearGradient) in resolve_lg_attr() 407 | (AId::Y2, EId::LinearGradient) in resolve_lg_attr() 429 name: AId, in resolve_rg_attr() argument 437 (AId::Cx, EId::RadialGradient) in resolve_rg_attr() 463 name: AId, in resolve_pattern_attr() argument [all …]
|
H A D | filter.rs | 134 x: fe.try_convert_length(AId::X, units, state), in convert_primitive() 135 y: fe.try_convert_length(AId::Y, units, state), in convert_primitive() 168 input: resolve_input(fe, AId::In, primitives), in convert_fe_gaussian_blur() 180 input: resolve_input(fe, AId::In, primitives), in convert_fe_offset() 269 .find_attribute(AId::ImageRendering) in convert_fe_image() 286 let href = match fe.attribute(AId::Href) { in convert_fe_image() 312 input: resolve_input(fe, AId::In, primitives), in convert_fe_tile() 346 match node.attribute(AId::Type)? { in convert_transfer_function() 393 match fe.attribute(AId::Type) { in convert_color_matrix_kind() 724 aid: AId, in resolve_input() argument [all …]
|
H A D | style.rs | 20 rule: node.find_attribute(AId::ClipRule).unwrap_or_default(), in resolve_fill() 25 let paint = if let Some(n) = node.find_node_with_attribute(AId::Fill) { in resolve_fill() 26 convert_paint(n, AId::Fill, has_bbox, state, &mut sub_opacity, tree)? in resolve_fill() 34 rule: node.find_attribute(AId::FillRule).unwrap_or_default(), in resolve_fill() 50 let paint = if let Some(n) = node.find_node_with_attribute(AId::Stroke) { in resolve_stroke() 51 convert_paint(n, AId::Stroke, has_bbox, state, &mut sub_opacity, tree)? in resolve_stroke() 56 let width = node.resolve_valid_length(AId::StrokeWidth, state, 1.0)?; in resolve_stroke() 59 let miterlimit = node.find_attribute(AId::StrokeMiterlimit).unwrap_or(4.0); in resolve_stroke() 70 linecap: node.find_attribute(AId::StrokeLinecap).unwrap_or_default(), in resolve_stroke() 79 aid: AId, in convert_paint() argument [all …]
|
H A D | shapes.rs | 28 node.attribute::<tree::SharedPathData>(AId::D) in convert_path() 47 let x = node.convert_user_length(AId::X, state, Length::zero()); in convert_rect() 48 let y = node.convert_user_length(AId::Y, state, Length::zero()); in convert_rect() 51 let mut rx_opt = node.attribute::<Length>(AId::Rx); in convert_rect() 52 let mut ry_opt = node.attribute::<Length>(AId::Ry); in convert_rect() 114 let x1 = node.convert_user_length(AId::X1, state, Length::zero()); in convert_line() 115 let y1 = node.convert_user_length(AId::Y1, state, Length::zero()); in convert_line() 116 let x2 = node.convert_user_length(AId::X2, state, Length::zero()); in convert_line() 117 let y2 = node.convert_user_length(AId::Y2, state, Length::zero()); in convert_line() 145 match node.attribute::<&str>(AId::Points) { in points_to_path() [all …]
|
H A D | clip_and_mask.rs | 20 if !node.has_valid_transform(AId::Transform) { in convert_clip() 25 if let Some(id) = node.attribute(AId::Id) { in convert_clip() 33 if let Some(link) = node.attribute::<svgtree::Node>(AId::ClipPath) { in convert_clip() 42 let units = node.attribute(AId::ClipPathUnits).unwrap_or(tree::Units::UserSpaceOnUse); in convert_clip() 47 transform: node.attribute(AId::Transform).unwrap_or_default(), in convert_clip() 76 if let Some(id) = node.attribute(AId::Id) { in convert_mask() 82 let units = node.attribute(AId::MaskUnits).unwrap_or(tree::Units::ObjectBoundingBox); in convert_mask() 86 node.convert_length(AId::X, units, state, Length::new(-10.0, Unit::Percent)), in convert_mask() 87 node.convert_length(AId::Y, units, state, Length::new(-10.0, Unit::Percent)), in convert_mask() 88 node.convert_length(AId::Width, units, state, Length::new(120.0, Unit::Percent)), in convert_mask() [all …]
|
H A D | units.rs | 13 aid: AId, in convert_length() argument 35 AId::X | AId::Cx | AId::Width => { in convert_length() 38 AId::Y | AId::Cy | AId::Height => { in convert_length() 58 aid: AId, in convert_list() argument 84 if let Some(length) = n.attribute::<Length>(AId::FontSize) { in resolve_font_size() 102 } else if let Some(name) = n.attribute(AId::FontSize) { in resolve_font_size()
|
H A D | use_node.rs | 27 let mut orig_ts: tree::Transform = node.attribute(AId::Transform).unwrap_or_default(); in convert() 31 let x = node.convert_user_length(AId::X, state, Length::zero()); in convert() 32 let y = node.convert_user_length(AId::Y, state, Length::zero()); in convert() 70 let x = node.convert_user_length(AId::X, state, Length::zero()); in convert_svg() 71 let y = node.convert_user_length(AId::Y, state, Length::zero()); in convert_svg() 171 if matches!(symbol_node.attribute(AId::Overflow), Some("visible") | Some("auto")) { in get_clip_rect() 176 let x = use_node.convert_user_length(AId::X, state, Length::zero()); in get_clip_rect() 177 let y = use_node.convert_user_length(AId::Y, state, Length::zero()); in get_clip_rect() 220 let w = node.convert_user_length(AId::Width, state, def); in viewbox_transform() 221 let h = node.convert_user_length(AId::Height, state, def); in viewbox_transform() [all …]
|
/dports/games/abstreet/abstreet-0.2.9-49-g74aca40c0/cargo-crates/usvg-0.11.0/src/convert/text/ |
H A D | convert.rs | 315 let path_node = node.attribute::<svgtree::Node>(AId::Href)?; in resolve_text_flow() 339 node.resolve_length(AId::StartOffset, state, 0.0) in resolve_text_flow() 354 .find_attribute(AId::TextRendering) in resolve_rendering_mode() 422 match n.attribute(AId::FontStretch).unwrap_or("") { in conv_font_stretch() 535 push_list!(AId::X, x); in resolve_positions_list() 536 push_list!(AId::Y, y); in resolve_positions_list() 537 push_list!(AId::Dx, dx); in resolve_positions_list() 538 push_list!(AId::Dy, dy); in resolve_positions_list() 654 let s = tspan.attribute(AId::TextDecoration); in conv_text_decoration2() 677 } else if let Some(s) = n.attribute(AId::BaselineShift) { in resolve_baseline_shift() [all …]
|
/dports/textproc/cast2gif/cast2gif-0.1.0/cargo-crates/usvg-0.9.0/src/convert/text/ |
H A D | convert.rs | 302 let path_node = node.attribute::<svgtree::Node>(AId::Href)?; in resolve_text_flow() 317 node.resolve_length(AId::StartOffset, state, 0.0) in resolve_text_flow() 331 .find_attribute(AId::TextRendering) in resolve_rendering_mode() 380 match n.attribute(AId::FontStretch).unwrap_or("") { in conv_font_stretch() 493 push_list!(AId::X, x); in resolve_positions_list() 494 push_list!(AId::Y, y); in resolve_positions_list() 495 push_list!(AId::Dx, dx); in resolve_positions_list() 496 push_list!(AId::Dy, dy); in resolve_positions_list() 612 let s = tspan.attribute(AId::TextDecoration); in conv_text_decoration2() 635 } else if let Some(s) = n.attribute(AId::BaselineShift) { in resolve_baseline_shift() [all …]
|