dxf-viewer
Advanced tools
Comparing version 1.0.10 to 1.0.11
{ | ||
"name": "dxf-viewer", | ||
"version": "1.0.10", | ||
"version": "1.0.11", | ||
"description": "JavaScript DXF file viewer", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -61,2 +61,3 @@ # DXF viewer | ||
* Infilled polygons - everything is drawn with outlines now. | ||
* Projected 3D mesh rendering (3DFACE entities). | ||
* Block instancing in a grid. Grid attributes are ignored now. | ||
@@ -63,0 +64,0 @@ * Dimensions |
@@ -1465,9 +1465,9 @@ import {DynamicBuffer, NativeType} from "./DynamicBuffer" | ||
const mInsert = new Matrix3().translate(-this.origin.x, -this.origin.y) | ||
let yScale = entity.yScale || 1 | ||
const xScale = entity.xScale || 1 | ||
const yScale = entity.yScale || 1 | ||
let xScale = entity.xScale || 1 | ||
const rotation = -(entity.rotation || 0) * Math.PI / 180 | ||
let x = entity.position.x | ||
const y = entity.position.y | ||
if (entity.zScale < 0) { | ||
yScale = -yScale | ||
let y = entity.position.y | ||
if (entity.extrusionDirection && entity.extrusionDirection.z < 0) { | ||
xScale = -xScale | ||
x = -x | ||
@@ -1474,0 +1474,0 @@ } |
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
252145
67