dxf-viewer
Advanced tools
Comparing version 1.0.27 to 1.0.28
{ | ||
"name": "dxf-viewer", | ||
"version": "1.0.27", | ||
"version": "1.0.28", | ||
"description": "JavaScript DXF file viewer", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -348,3 +348,3 @@ import * as three from "three" | ||
/** @return {Camera} three.js camera for the viewer. */ | ||
/** @return {OrthographicCamera} three.js camera for the viewer. */ | ||
GetCamera() { | ||
@@ -351,0 +351,0 @@ return this.camera |
@@ -56,3 +56,3 @@ /** See TextRenderer.DefaultOptions for default values and documentation. */ | ||
FitView(minX: number, maxX: number, minY: number, maxY: number, padding: number): void | ||
GetCamera(): THREE.Camera | ||
GetCamera(): THREE.OrthographicCamera | ||
GetCanvas(): HTMLCanvasElement | ||
@@ -59,0 +59,0 @@ GetLayers(): Iterable<LayerInfo> |
@@ -330,2 +330,3 @@ import * as helpers from '../ParseHelpers' | ||
} | ||
break; | ||
default: | ||
@@ -332,0 +333,0 @@ scanner.rewind(); |
@@ -15,6 +15,10 @@ import { Vector2 } from "three" | ||
* @param {PatternLineDef[]} lines | ||
* @param {boolean} offsetInLineSpace Line offset is defined in line space when true, in pattern | ||
* space when false. Pattern space offset is the observed behavior of AutoDesk viewer for | ||
* patterns defined in hatch entity itself. | ||
*/ | ||
constructor(lines, name = null) { | ||
constructor(lines, name = null, offsetInLineSpace = true) { | ||
this.lines = lines | ||
this.name = name | ||
this.offsetInLineSpace = offsetInLineSpace | ||
} | ||
@@ -21,0 +25,0 @@ |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
773871
18848