mirror of
https://github.com/storytold/figcraft.git
synced 2026-10-24 10:27:00 -06:00
#1009: explicit imports
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
use serde_json::{Value, json};
|
||||
|
||||
use crate::cmd::CommandSpec;
|
||||
use crate::params::*;
|
||||
use crate::params::{get, id, id_of, num_or, string};
|
||||
use crate::{Result, Session, bad, spec};
|
||||
|
||||
const CMD: &str = "data.fill";
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
use crate::Session;
|
||||
use crate::components::tests::{ex, idv};
|
||||
use figcraft_doc::*;
|
||||
use figcraft_doc::{NodeId, NodeKind};
|
||||
use serde_json::json;
|
||||
|
||||
/// A 1080×1350 "Post" with "Title" and "Price" texts and a "Badge" rectangle. Returns the frame.
|
||||
|
||||
@@ -5,11 +5,11 @@
|
||||
//! with a no-break space. Every style run scales by the same factor, so mixed sizes keep their
|
||||
//! proportions.
|
||||
|
||||
use figcraft_doc::*;
|
||||
use figcraft_doc::{NodeKind, TextAutoResize, TextData};
|
||||
use serde_json::{Value, json};
|
||||
|
||||
use crate::cmd::CommandSpec;
|
||||
use crate::params::*;
|
||||
use crate::params::{boolean, num, req_targets};
|
||||
use crate::{Result, Session, bad, spec};
|
||||
|
||||
const CMD: &str = "text.fit";
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
use crate::Session;
|
||||
use crate::components::tests::{ex, idv};
|
||||
use figcraft_doc::*;
|
||||
use figcraft_doc::{NodeId, NodeKind};
|
||||
use serde_json::json;
|
||||
|
||||
/// A fixed-width (auto-height) headline of `width` px at 64px. Returns its id.
|
||||
|
||||
Reference in New Issue
Block a user