plot styles: the CTB/STB model and codec come from the codec crate

Cargo: codec d36331d, kernel 60f086b, graph 74aac56.

The table model and its file codec now live in `codec::plot_style`
(opencadcodec#53) and are re-exported here. What stays is where tables
come from: the plot styles folder, the session registry, the shipped
tables, and saving to disk, as the `PlotStyleTableExt` trait.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Hakan SevenandClaude Opus 5.5 committed 2026-10-15 10:58:26 +03:00
1 parent 1070361c0a
commit 74df9ff84a
15 files changed
+55 -981

No files matched your search

+2
View File
@@ -1,4 +1,6 @@
use super::*;
#[cfg(target_arch = "wasm32")]
use crate::io::plot_style::PlotStyleTableExt as _;
impl OpenCADStudio {
pub(super) fn dispatch_fileops(&mut self, cmd: &str, i: usize) -> Option<Task<Message>> {
+2
View File
@@ -1,3 +1,5 @@
#[cfg(not(target_arch = "wasm32"))]
use crate::io::plot_style::PlotStyleTableExt as _;
use super::*;
use crate::scene::model::object::PropValue;
+1
View File
@@ -66,6 +66,7 @@ pub use settings::MAX_SELECTED_GRIPS;
/// as they are; only these two names are reachable externally.
pub use settings::{CursorType, IsoPlane};
use crate::io::plot_style::PlotStyleTableExt as _;
use document::DocumentTab;
use crate::modules::ModuleEvent;
+1
View File
@@ -1,6 +1,7 @@
//! `file` arms and helpers, split out of the original `update.rs` (#mechanical decomposition).
#![allow(unused_imports)]
use crate::io::plot_style::PlotStyleTableExt as _;
use super::util::*;
use super::{format_size, VIEWCUBE_HIT_SIZE};
use crate::app::helpers::{
+1
View File
@@ -1,3 +1,4 @@
use crate::io::plot_style::PlotStyleTableExt as _;
use super::{ArrowKey, Message, OpenCADStudio, TextEntryMode};
use crate::command::CadCommand;
use crate::scene::VIEWCUBE_DRAW_PX;
+2
View File
@@ -51,6 +51,8 @@ pub mod windows_media;
pub mod xref;
pub mod xref_model;
#[cfg(not(target_arch = "wasm32"))]
use crate::io::plot_style::PlotStyleTableExt as _;
use crate::scene::DerivedCaches;
use codec::entities::EntityType;
// The path-based readers are native-only; web parsing runs through the
+1
View File
@@ -2700,6 +2700,7 @@ pub(crate) fn pdf_stream_text(bytes: &[u8]) -> String {
#[cfg(all(test, not(target_arch = "wasm32")))]
mod tests {
use crate::io::plot_style::PlotStyleTableExt as _;
use super::*;
fn test_page(wires: Vec<PlotWire>) -> PdfPageInput {
+31 -968
View File
File diff suppressed because it is too large. Load diff
+1
View File
@@ -1,6 +1,7 @@
// GPU rendering primitives, shader::Program / shader::Primitive impls,
// and entity render-style helpers for the Scene.
use crate::io::plot_style::PlotStyleTableExt as _;
use codec::tables::LineType;
use codec::types::{Color as AcadColor, LineWeight};
use codec::{CadDocument, EntityType, Handle};