@sienci/gviewer 0.1.26 → 0.1.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -24,7 +24,9 @@ npm install react react-dom # required for the React component
24
24
  | `@sienci/gviewer` | Parser, virtualizer, geometry builders, `WorkerGeometryData`, shared types |
25
25
  | `@sienci/gviewer/viewer` | `GCodeViewer`, `GCodeSVGRenderer`, themes, viewer types, `WorkerGeometryData` |
26
26
  | `@sienci/gviewer/react` | `GCodeVisualizer`, `GCodeSVGVisualizer` React components |
27
- | `@sienci/gviewer/viewer/viewcube.css` | Stylesheet for the ViewCube overlay |
27
+ | `@sienci/gviewer/viewer/viewcube.css` | Raw ViewCube stylesheet, kept for advanced overriding/inspection only — the ViewCube self-injects an identical `<style>` tag at runtime, so importing this is optional |
28
+
29
+ As of 0.1.27, the ViewCube's styles are injected automatically; you no longer need to import `viewcube.css` yourself.
28
30
 
29
31
  ---
30
32
 
@@ -36,7 +38,6 @@ npm install react react-dom # required for the React component
36
38
  import { useRef } from "react";
37
39
  import { GCodeVisualizer } from "@sienci/gviewer/react";
38
40
  import type { GCodeViewerHandle } from "@sienci/gviewer/viewer";
39
- import "@sienci/gviewer/viewer/viewcube.css";
40
41
 
41
42
  export function App() {
42
43
  const ref = useRef<GCodeViewerHandle>(null);
@@ -299,7 +300,6 @@ Full 3D viewer with orbit controls, grid, bounding box, bit marker, and ViewCube
299
300
 
300
301
  ```ts
301
302
  import { GCodeViewer } from "@sienci/gviewer/viewer";
302
- import "@sienci/gviewer/viewer/viewcube.css";
303
303
 
304
304
  const viewer = new GCodeViewer({
305
305
  id: "my-viewer",
@@ -570,7 +570,6 @@ renderer.setOptions({
570
570
  ```tsx
571
571
  import { GCodeVisualizer } from "@sienci/gviewer/react";
572
572
  import type { GCodeViewerHandle, GCodeViewerOptions } from "@sienci/gviewer/viewer";
573
- import "@sienci/gviewer/viewer/viewcube.css";
574
573
  ```
575
574
 
576
575
  #### Props