Rename `pathfinder_flash` to `pathfinder_swf` for consistency with other crates

in the Rust Flash ecosystem
This commit is contained in:
Patrick Walton 2019-06-21 09:28:15 -07:00
parent 82b0826407
commit 336f2ca302
8 changed files with 40 additions and 20 deletions

26
Cargo.lock generated
View File

@ -1416,18 +1416,6 @@ dependencies = [
"usvg 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "pathfinder_flash"
version = "0.1.0"
dependencies = [
"pathfinder_geometry 0.3.0",
"pathfinder_gl 0.1.0",
"pathfinder_gpu 0.1.0",
"pathfinder_renderer 0.1.0",
"swf-parser 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
"swf-tree 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "pathfinder_geometry"
version = "0.3.0"
@ -1547,6 +1535,18 @@ dependencies = [
"usvg 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "pathfinder_swf"
version = "0.1.0"
dependencies = [
"pathfinder_geometry 0.3.0",
"pathfinder_gl 0.1.0",
"pathfinder_gpu 0.1.0",
"pathfinder_renderer 0.1.0",
"swf-parser 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
"swf-tree 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "pathfinder_text"
version = "0.1.0"
@ -2127,11 +2127,11 @@ name = "swf_basic"
version = "0.1.0"
dependencies = [
"gl 0.6.5 (registry+https://github.com/rust-lang/crates.io-index)",
"pathfinder_flash 0.1.0",
"pathfinder_geometry 0.3.0",
"pathfinder_gl 0.1.0",
"pathfinder_gpu 0.1.0",
"pathfinder_renderer 0.1.0",
"pathfinder_swf 0.1.0",
"sdl2 0.32.2 (registry+https://github.com/rust-lang/crates.io-index)",
"sdl2-sys 0.32.6 (registry+https://github.com/rust-lang/crates.io-index)",
"swf-parser 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",

View File

@ -16,12 +16,12 @@ members = [
"geometry",
"gl",
"gpu",
"flash",
"lottie",
"metal",
"renderer",
"simd",
"svg",
"swf",
"text",
"ui",
"utils/area-lut",

View File

@ -12,9 +12,6 @@ sdl2-sys = "0.32"
swf-parser = "0.7.0"
swf-tree = "0.7.0"
[dependencies.pathfinder_flash]
path = "../../flash"
[dependencies.pathfinder_geometry]
path = "../../geometry"
@ -26,3 +23,6 @@ path = "../../gpu"
[dependencies.pathfinder_renderer]
path = "../../renderer"
[dependencies.pathfinder_swf]
path = "../../swf"

View File

@ -21,7 +21,7 @@ use sdl2::event::Event;
use sdl2::keyboard::Keycode;
use sdl2::video::GLProfile;
use pathfinder_renderer::scene::Scene;
use pathfinder_flash::{draw_paths_into_scene, process_swf_tags};
use pathfinder_swf::{draw_paths_into_scene, process_swf_tags};
use std::env;
use std::fs::read;
use pathfinder_geometry::basic::transform2d::Transform2DF;

View File

@ -1,5 +1,5 @@
[package]
name = "pathfinder_flash"
name = "pathfinder_swf"
version = "0.1.0"
authors = ["Jon Hardie <jon@hardiesoft.com>"]
edition = "2018"

View File

@ -1,4 +1,4 @@
// pathfinder/flash/src/lib.rs
// pathfinder/swf/src/lib.rs
//
// Copyright © 2019 The Pathfinder Project Developers.
//

View File

@ -1,3 +1,13 @@
// pathfinder/swf/src/shapes.rs
//
// Copyright © 2019 The Pathfinder Project Developers.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use pathfinder_renderer::paint::Paint;
use pathfinder_geometry::stroke::{LineJoin, LineCap};
use crate::{Twips, Point2};

View File

@ -1,3 +1,13 @@
// pathfinder/swf/src/timeline.rs
//
// Copyright © 2019 The Pathfinder Project Developers.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
struct PlacementInfo {
symbol_id: u32,
translate_x: Twips,