dxf-viewer
Advanced tools
Comparing version 1.0.9 to 1.0.10
{ | ||
"name": "dxf-viewer", | ||
"version": "1.0.9", | ||
"version": "1.0.10", | ||
"description": "JavaScript DXF file viewer", | ||
@@ -18,3 +18,3 @@ "main": "src/index.js", | ||
"dependencies": { | ||
"three": "^0.127.0", | ||
"three": "^0.128.0", | ||
"loglevel": "^1.7.1", | ||
@@ -21,0 +21,0 @@ "opentype.js": "^1.3.3" |
@@ -63,2 +63,4 @@ # DXF viewer | ||
* Dimensions | ||
* Non-UTF-8 file encoding support. Currently, such files are displayed incorrectly. `$DWGCODEPAGE` | ||
parameter is ignored. | ||
* Many less commonly used DXF features. |
@@ -600,3 +600,3 @@ import DxfArrayScanner from './DxfArrayScanner'; | ||
case 70: // frozen layer | ||
layer.frozen = ((curr.value & 1) != 0 || (curr.value & 2) != 0); | ||
layer.frozen = ((curr.value & 1) !== 0 || (curr.value & 2) !== 0); | ||
curr = scanner.next(); | ||
@@ -603,0 +603,0 @@ break; |
@@ -28,3 +28,3 @@ import AUTO_CAD_COLOR_INDEX from './AutoCadColorIndex'; | ||
curr = scanner.next(); | ||
if(curr.code != code) | ||
if(curr.code !== code) | ||
throw new Error('Expected code for point value to be ' + code + | ||
@@ -36,3 +36,3 @@ ' but got ' + curr.code + '.'); | ||
curr = scanner.next(); | ||
if(curr.code != code) | ||
if(curr.code !== code) | ||
{ | ||
@@ -46,3 +46,3 @@ // Only the x and y are specified. Don't read z. | ||
return point; | ||
}; | ||
} | ||
@@ -114,2 +114,2 @@ /** | ||
return true; | ||
}; | ||
} |
@@ -54,4 +54,4 @@ import {DxfScene, Entity} from "./DxfScene" | ||
let charMissing = false | ||
for (const char of Array.from(text)) { | ||
if (char.charCodeAt(0) < 0x20) { | ||
for (const char of text) { | ||
if (char.codePointAt(0) < 0x20) { | ||
/* Control character. */ | ||
@@ -110,3 +110,3 @@ continue | ||
const block = new TextBlock(size) | ||
for (const char of Array.from(text)) { | ||
for (const char of text) { | ||
const shape = this._GetCharShape(char) | ||
@@ -239,3 +239,3 @@ if (!shape) { | ||
} | ||
this.charMap.set(String.fromCharCode(glyph.unicode), glyph) | ||
this.charMap.set(String.fromCodePoint(glyph.unicode), glyph) | ||
} | ||
@@ -242,0 +242,0 @@ /* Scale to transform the paths to size 1. */ |
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
252054
66
+ Addedthree@0.128.0(transitive)
- Removedthree@0.127.0(transitive)
Updatedthree@^0.128.0