зеркало из https://github.com/microsoft/scenepic.git
Updating NPM dependencies (#42)
* Bumping npm package versions * Bumping the version * Adding exorcist back in * Adding a brief comment
This commit is contained in:
Родитель
e51a70d1d1
Коммит
64ce0124ec
|
@ -1,5 +1,8 @@
|
|||
# Changelog
|
||||
|
||||
## [2022-08-24 - Version 1.0.11](https://github.com/microsoft/scenepic/releases/tag/v1.0.11)
|
||||
Point release to bump versions of NPM packages.
|
||||
|
||||
## [2022-07-06 - Version 1.0.10](https://github.com/microsoft/scenepic/releases/tag/v1.0.10)
|
||||
Point release to fix issues introduced by v1.0.9.
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
Point release to fix issues introduced by v1.0.9.
|
||||
Point release to bump versions of NPM packages.
|
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
1.0.10
|
||||
1.0.11
|
11
bundle.js
11
bundle.js
|
@ -1,5 +1,6 @@
|
|||
let browserify = require("browserify")
|
||||
let tsify = require("tsify")
|
||||
let minify = require("minify-stream")
|
||||
let fs = require("fs")
|
||||
let exorcist = require("exorcist")
|
||||
let makeDir = require('make-dir')
|
||||
|
@ -13,7 +14,9 @@ version = fs.readFileSync("VERSION")
|
|||
stream.write("// " + version + "\n")
|
||||
|
||||
let b = browserify({
|
||||
debug: true
|
||||
// set this to true to produce a source map
|
||||
// for debugging the TypeScript library
|
||||
debug: false
|
||||
})
|
||||
.add([
|
||||
"tssrc/Canvas2D.ts",
|
||||
|
@ -31,7 +34,9 @@ let b = browserify({
|
|||
"tssrc/VertexBuffers.ts"
|
||||
])
|
||||
.plugin(tsify)
|
||||
.transform('uglifyify', { global: true })
|
||||
.bundle()
|
||||
.pipe(exorcist(mapFile))
|
||||
.pipe(minify())
|
||||
// commenting this line (i.e. disabling exorcist) can make debugging easier
|
||||
// by inlining the sourcemaps
|
||||
.pipe(exorcist(mapFile))
|
||||
.pipe(stream)
|
||||
|
|
|
@ -22,7 +22,7 @@ copyright = "2021, Microsoft"
|
|||
author = "ScenePic Team"
|
||||
|
||||
# The full version, including alpha/beta/rc tags
|
||||
release = "1.0.10"
|
||||
release = "1.0.11"
|
||||
|
||||
|
||||
# -- General configuration ---------------------------------------------------
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
29
package.json
29
package.json
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"_comment0": "This file is used by npm to specify the project and npm dependencies",
|
||||
"name": "scenepic",
|
||||
"version": "1.0.10",
|
||||
"version": "1.0.11",
|
||||
"description": "3D Visualization Made Easy",
|
||||
"author": "ScenePic Team",
|
||||
"license": "MIT",
|
||||
|
@ -20,26 +20,25 @@
|
|||
"watch": "node watch.js"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/file-saver": "^2.0.1",
|
||||
"@types/gl-matrix": "^2.4.5",
|
||||
"@types/jquery": "^3.3.32",
|
||||
"@types/node": "^13.13.5",
|
||||
"@types/pako": "^1.0.1",
|
||||
"browserify": "^16.5.0",
|
||||
"@types/file-saver": "^2.0.5",
|
||||
"@types/jquery": "^3.5.14",
|
||||
"@types/node": "^18.7.13",
|
||||
"@types/pako": "^2.0.0",
|
||||
"browserify": "^17.0.0",
|
||||
"exorcist": "^2.0.0",
|
||||
"file-saver": "^2.0.2",
|
||||
"file-saver": "^2.0.5",
|
||||
"fs": "0.0.2",
|
||||
"gl-matrix": "^3.1.0",
|
||||
"jquery": "^3.5.1",
|
||||
"jszip": "^3.7.1",
|
||||
"gl-matrix": "^3.4.3",
|
||||
"jquery": "^3.6.0",
|
||||
"jszip": "^3.10.1",
|
||||
"make-dir": "^3.1.0",
|
||||
"minify-stream": "^2.1.0",
|
||||
"pako": "^1.0.11",
|
||||
"tsify": "^4.0.1",
|
||||
"typescript": "^3.7.5",
|
||||
"uglifyify": "^5.0.2",
|
||||
"tsify": "^5.0.4",
|
||||
"typescript": "^4.7.4",
|
||||
"watchify": "^4.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"npm": "^8.2.0"
|
||||
"npm": "^8.18.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,4 +3,4 @@
|
|||
# Copyright (c) Microsoft Corporation.
|
||||
# Licensed under the MIT License.
|
||||
|
||||
__version__ = "1.0.10"
|
||||
__version__ = "1.0.11"
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{
|
||||
"comment": "This file is not used except by Code editor. gulpfile.js needs to be updated in tandem with this.",
|
||||
"include": [
|
||||
"tssrc/**/*.ts"
|
||||
],
|
||||
|
|
|
@ -491,7 +491,7 @@ export default class Canvas3D extends CanvasBase
|
|||
this.onCameraTrack = true;
|
||||
var currentFrame = this.currentFrameIndex;
|
||||
this.SetCamera(this.frameCameraParams[currentFrame]);
|
||||
this.currentFocusPoints[currentFrame] = <vec3>new Float32Array(this.initialFocusPoints[currentFrame]);
|
||||
this.currentFocusPoints[currentFrame] = new Float32Array(this.initialFocusPoints[currentFrame])
|
||||
}
|
||||
|
||||
ToggleLockView(translation : boolean, orientation : boolean)
|
||||
|
@ -511,7 +511,7 @@ export default class Canvas3D extends CanvasBase
|
|||
if (focusPoint == null) return;
|
||||
|
||||
this.initialFocusPoints[frameIndex] = focusPoint; // For reset support
|
||||
this.currentFocusPoints[frameIndex] = <vec3>new Float32Array(focusPoint); // Copy
|
||||
this.currentFocusPoints[frameIndex] = new Float32Array(focusPoint); // Copy
|
||||
}
|
||||
|
||||
SetPerFrameCamera(frameIndex : number, value : Object)
|
||||
|
|
|
@ -160,8 +160,10 @@ export default class WebGLMeshBuffers
|
|||
var labelDepth = Math.abs(v0V[2]);
|
||||
|
||||
// Transform with alignment translation and scale factor
|
||||
var translate = [this.labelTranslateScreenX * labelDepth / v2sMatrix[0] + this.labelTranslateWorldX, this.labelTranslateScreenY * labelDepth / v2sMatrix[5] + this.labelTranslateWorldY, 0.0];
|
||||
var scale = [scaleFactorX, scaleFactorY, 1.0];
|
||||
var translate = vec3.fromValues(this.labelTranslateScreenX * labelDepth / v2sMatrix[0] + this.labelTranslateWorldX,
|
||||
this.labelTranslateScreenY * labelDepth / v2sMatrix[5] + this.labelTranslateWorldY,
|
||||
0.0);
|
||||
var scale = vec3.fromValues(scaleFactorX, scaleFactorY, 1.0);
|
||||
var transform = mat4.create();
|
||||
mat4.fromRotationTranslationScale(transform, quat.create(), translate, scale);
|
||||
mat4.mul(m2vMatrix, m2vMatrix, transform);
|
||||
|
|
Загрузка…
Ссылка в новой задаче