Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.9.4 release #299

Merged
merged 52 commits into from
Aug 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
2991a6f
Add quaternion support in GeoMath
sskk-ethan Apr 18, 2023
f907cfa
Fixed jest regex in package.json
sskk-ethan Apr 19, 2023
4e0db94
Add quaternion test
sskk-ethan Apr 21, 2023
b0e450e
Add KFQuatLinearCurve and support quaternion in ModelEntity
sskk-ethan May 9, 2023
ae964c9
Add quaternion demo in debug/animation
masa-sony May 16, 2023
63c9c52
add edge bending for flake
sc-onishi Dec 8, 2022
7321f39
Fixed firefox rendering issue in vectile
masa-sony May 22, 2023
90130ac
fix decision at startFlyCamera target_clamp option
sc-onishi Jun 12, 2023
1c0cb07
updated rollup and typescript, and fixed development environment
daisuke201 Feb 10, 2023
6f01807
added some dependencies and modified settings due to upgare of Jest
masa-sony Jun 7, 2023
1ed95bb
fixed settings of debug apps due to the version up of the core module
daisuke201 Jun 7, 2023
94f274c
added inclusion restrictions to the InjectProcessEnv plugin.
masa-sony Jun 21, 2023
18b5eca
change cloud image origin in CloudVisualizer
sc-onishi Jun 16, 2023
b979418
refactoring of TileTextureCache 1
sc-onishi Jun 30, 2023
dc1fbbf
refactoring of TileTextureCache 2
sc-onishi Jun 30, 2023
e1732e8
refactoring of Globe
sc-onishi Jul 11, 2023
6258bb8
add changing feature of image provider and pole info
sc-onishi Jun 23, 2023
ee4c6ef
added TOption in debug common
masa-sony Jul 12, 2023
25cf844
added a new module for switching ImageProvider in debug app
sc-onishi Feb 3, 2023
3ff06cf
Minor bugfix of color util
masa-sony May 29, 2023
a594178
minor improvement of Option and TOption class in debug-common
masa-sony May 24, 2023
511df6a
minor bugfixes related to Attribution
sc-onishi May 30, 2023
c35a10b
fixed code formatting related to Attribution
masa-sony Jul 12, 2023
20c4b87
improved attribution module
hondayoshimi Jan 18, 2023
485ca2f
Separated the capture feature from Viewer and supported attribution s…
masa-sony Jul 12, 2023
ef31a72
Added debug app for attribution and minor update for the new capture …
masa-sony May 24, 2023
fac7bfe
fix endFrame in Globe
sc-onishi Jul 20, 2023
e8d8ac8
Change default webgl to WebGL2
sskk-ethan Jul 24, 2023
8a34276
Add support for render to float buffer
sskk-ethan Jun 26, 2023
965e0c3
Disabled depth texture extension
sskk-ethan Jun 28, 2023
918f917
removed LineType from AbstractLineEntity
masa-sony Aug 10, 2022
9208993
typescript(rename): LineMaterial
masa-sony Aug 10, 2022
4ec2201
typescript: LineMaterial
masa-sony Jun 22, 2022
6925d32
Minor refactoring of AbstractLineEntity, MarkerLineEntity and PathEntity
masa-sony Aug 10, 2022
43af702
Changed num_float of LineEntity to num_points
masa-sony Jun 22, 2022
04c3cad
Correct calculation method of line segment direction
tanioka-gis Dec 30, 2022
c897984
typescript(rename): PolygonMaterial
masa-sony Apr 4, 2023
812b13f
typescript: PolygonMaterial
masa-sony Apr 6, 2023
e42a2ae
fixed eslint setting files
sc-onishi Aug 8, 2023
55efe37
updated eslint rules
masa-sony Aug 9, 2023
0c6da46
minor fixes for new eslint rules
masa-sony Aug 9, 2023
42758fe
fixed the slow performance issue with the rollup watch command
sc-onishi Aug 8, 2023
71b5ff8
improved build command of the debug apps
masa-sony Aug 9, 2023
3f02c54
Support sdf option in sprite.json
sskk-harada Jul 12, 2023
6a535e5
fixed example apps
masa-sony Aug 10, 2023
8765ce3
added eslint rule
masa-sony Aug 10, 2023
b9b0fb3
added start-all command in debug app
masa-sony Aug 10, 2023
2d40020
fixed settings to retain typedoc explanations in type definitions
masa-sony Aug 16, 2023
febb5bf
exported mapray.css
daisuke201 Aug 18, 2023
ab48c76
updated package version
masa-sony Jul 28, 2023
65bbd16
updated versions of resources
masa-sony Jul 28, 2023
efe7b4d
update change log for v0.9.4
masa-sony Aug 24, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ doc/typedoc-devel/
node_modules/
yarn-error.log
package-lock.json
build-info.json

.idea
.vscode
Expand Down
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,22 @@
# Change Log

## 0.9.4
### Features and improvements
- Add Quaternion to GeoMath [#288](https://github.com/sony/mapray-js/issues/288)
- Issue regarding gaps at tile image boundaries [#298](https://github.com/sony/mapray-js/issues/298)
- Addition of ImageProvider switching functionality [#295](https://github.com/sony/mapray-js/issues/295)
- Bug report: Incorrect endFrame processing [#293](https://github.com/sony/mapray-js/issues/293)
- Support loading sprite images as SDF-enabled images [#290](https://github.com/sony/mapray-js/issues/290)
- Issue with target_clamp parameter evaluation in startFlyCamera function [#297](https://github.com/sony/mapray-js/issues/297)
- Issue regarding slow watch processing [#292](https://github.com/sony/mapray-js/issues/292)
- Proposal to implement Linter for code quality enhancement [#291](https://github.com/sony/mapray-js/issues/291)

### Breaking Changes
- Upgrade to rollup 3 and update typescript version [#273](https://github.com/sony/mapray-js/issues/273)
- Improvement of AttributionController [#274](https://github.com/sony/mapray-js/issues/274)
- Changed WebGL version to WebGL2 and supported float buffer [#289](https://github.com/sony/mapray-js/issues/289)
- Issue regarding clouds image origin location modification. [#296](https://github.com/sony/mapray-js/issues/296)

## 0.9.3
### Features and improvements
- add operation text and fix mouse control in example [#284](https://github.com/sony/mapray-js/issues/284)
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ maprayJS is a JavaScript library for a high quality interactive 3D globes and di
### Script Tag
#### core packages
```html
<script src="https://resource.mapray.com/mapray-js/v0.9.3/mapray.min.js"></script>
<script src="https://resource.mapray.com/mapray-js/v0.9.4/mapray.min.js"></script>
```
#### ui packages
```html
<script src="https://resource.mapray.com/mapray-js/v0.9.3/maprayui.min.js"></script>
<script src="https://resource.mapray.com/mapray-js/v0.9.4/maprayui.min.js"></script>
```

### NPM module
Expand Down Expand Up @@ -53,7 +53,7 @@ Mapray Cloud managed by [Sony Group Corporation.](https://www.sony.com/) If you
<div id="mapray-container"></div>
</body>
</html>
<script src="https://resource.mapray.com/mapray-js/v0.9.3/mapray.min.js"></script>
<script src="https://resource.mapray.com/mapray-js/v0.9.4/mapray.min.js"></script>
<script>
// Set Access Token for mapray cloud
var accessToken = "<your access token here>";
Expand Down Expand Up @@ -101,7 +101,7 @@ Mapray Cloud managed by [Sony Group Corporation.](https://www.sony.com/) If you

## Documentation
- [Mapray Document(Japanese)](https://mapray.com/documents/index.html)
- [API Reference](https://resource.mapray.com/doc/api/v0.9.3/index.html)
- [API Reference](https://resource.mapray.com/doc/api/v0.9.4/index.html)
- [Contribution Guide (English)](/CONTRIBUTING.md)

**API documents**
Expand Down
6 changes: 5 additions & 1 deletion debug/animation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,8 @@ Key binding

4: Easy Binding Animation

5: StandardUIViewer.startFlyCamera()
5: Heading-Tilt-Roll Interpolated Animation

6: Quaternion Interpolated Animation

7: StandardUIViewer.startFlyCamera()
2 changes: 2 additions & 0 deletions debug/animation/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
<li>Keyframe Step Animation
<li>Simple Curve Animation
<li>Easy Binding Animation
<li>Heading-Tilt-Roll Interpolated Animation
<li>Quaternion Interpolated Animation
<li>StandardUIViewer.startFlyCamera()
</ol>
</div>
Expand Down
18 changes: 10 additions & 8 deletions debug/animation/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"name": "render-stage",
"name": "animation-debug-app",
"version": "0.0.0",
"license": "Apache-2.0",
"type": "module",
"scripts": {
"start": "run-p server build-watch",
"build": "rollup -c",
Expand All @@ -10,17 +11,18 @@
"server": "st --no-cache -H 0.0.0.0 --port 7776 --index index.html --dir ."
},
"devDependencies": {
"@rollup/plugin-node-resolve": "^15.0.2",
"@rollup/plugin-terser": "^0.4.3",
"npm-run-all": "^4.1.5",
"postcss": "^8.4.16",
"rollup": "^2.78.1",
"postcss": "^8.4.23",
"rollup": "^3.23.0",
"rollup-plugin-inject-process-env": "^1.3.1",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-postcss": "^4.0.2",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "0.33.0",
"rollup-plugin-sourcemaps": "^0.6.3",
"rollup-plugin-typescript2": "^0.34.1",
"st": "^3.0.0",
"tslib": "^2.2.0",
"typescript": "^4.3.2"
"tslib": "^2.5.2",
"typescript": "^5.0.4"
},
"dependencies": {}
}
28 changes: 15 additions & 13 deletions debug/animation/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { terser } from 'rollup-plugin-terser';
import terser from '@rollup/plugin-terser';
import postcss from 'rollup-plugin-postcss';
import resolve from 'rollup-plugin-node-resolve';
import pluginNodeResolve from '@rollup/plugin-node-resolve';
import injectProcessEnv from 'rollup-plugin-inject-process-env';
import typescript from 'rollup-plugin-typescript2';


import sourcemaps from 'rollup-plugin-sourcemaps';

const outdir = "dist/";

Expand All @@ -13,6 +12,9 @@ const env = {
BINGMAP_ACCESS_TOKEN: process.env.BINGMAP_ACCESS_TOKEN,
};

const { BUILD } = process.env;
const production = BUILD === 'production';

[
"MAPRAY_ACCESS_TOKEN",
]
Expand All @@ -28,22 +30,22 @@ export default function() {
file: outdir + 'bundle.js',
format: 'iife',
indent: false,
sourcemap: process.env.BUILD !== 'production',
sourcemap: production ? true : 'inline',
name: "App",
},
plugins: [
postcss(),
injectProcessEnv( env ),
resolve(),
injectProcessEnv( env, {
// This plugin inserts a line into all included source codes.
// The following option prevents the effect from being applied to the core library.
include: ["./src/**/*.ts"],
}),
sourcemaps(),
pluginNodeResolve(),
typescript({
tsconfig: './tsconfig.json',
tsconfigOverride: {
compilerOptions: {
sourceMap: true,
}
}
}),
(process.env.BUILD === 'production' ?
(production ?
terser({
compress: {
unused: false,
Expand Down
108 changes: 103 additions & 5 deletions debug/animation/src/App.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import mapray from "@mapray/mapray-js";
import mapray, { GeoMath } from "@mapray/mapray-js";
import maprayui from "@mapray/ui";

import CosCurve from "./CosCurve";
Expand Down Expand Up @@ -93,8 +93,16 @@ export default class App extends maprayui.StandardUIViewer {
this._startAnimation4();
} break;
case "5": {
console.log( 'start animation 5' );
this._startAnimation5();
console.log( 'start Heading Tilt Roll animation' );
this.startHeadingTiltRollAnimation();
} break;
case "6": {
console.log( 'start Quaternion animation' );
this.startQuaternionAnimation();
} break;
case "7": {
console.log( 'camera animation' );
this._startCameraAnimation();
} break;
default: {
super.onKeyDown( event );
Expand Down Expand Up @@ -392,9 +400,9 @@ export default class App extends maprayui.StandardUIViewer {


/**
* Animation Example 5
* Camera Animation Example
*/
async _startAnimation5() {
async _startCameraAnimation() {
await this.startFlyCamera({
end_altitude: 800,
end_from_lookat: 300,
Expand All @@ -404,6 +412,96 @@ export default class App extends maprayui.StandardUIViewer {
console.log( "done" );
}


/**
* Heading Tilt Roll Animation Example
*/
async startHeadingTiltRollAnimation() {
// Entityのクリア
this.viewer.scene.clearEntities();

const SCENE_3D_URL = "https://resource.mapray.com/assets/www/model/mapray-box-with-texture/scene.json";
const sceneResource = new mapray.URLResource( SCENE_3D_URL, {
transform: ( url, type ) => {
if (type.id === "IMAGE" ) {
return { url, init: { crossOrigin: mapray.CredentialMode.SAME_ORIGIN } };
}
else return { url }
}
});

await new mapray.SceneLoader( this.viewer.scene, sceneResource, {
onEntity: (loader, entity, props) => {
if ( entity instanceof mapray.ModelEntity ) {
const position = new mapray.GeoPoint(139.699985, 35.690777, 300);
entity.setPosition(position);
entity.setScale([2.0, 2.0, 2.0]);
loader.scene.addEntity(entity);

const vector3 = mapray.animation.Type.find( "vector3" );
let curve = new mapray.animation.KFLinearCurve( vector3 );
const keyframes = [];
keyframes.push( mapray.animation.Time.fromNumber( 0 ) );
keyframes.push( mapray.GeoMath.createVector3([0,30,0]));
keyframes.push( mapray.animation.Time.fromNumber( 3 ));
keyframes.push( mapray.GeoMath.createVector3([180,-30,0]));
curve.setKeyFrames( keyframes );

// 経過時間の初期化
this._total_time = 0;
entity.animation.bind("orientation", this._animation_updater, curve);

// Animation開始
this._is_animation_start = true;
}
}
} ).load();
}


/**
* Quaternion Animation Example
*/
async startQuaternionAnimation() {
// Entityのクリア
this.viewer.scene.clearEntities();

const SCENE_3D_URL = "https://resource.mapray.com/assets/www/model/mapray-box-with-texture/scene.json";
const sceneResource = new mapray.URLResource( SCENE_3D_URL, {
transform: ( url, type ) => {
if (type.id === "IMAGE" ) {
return { url, init: { crossOrigin: mapray.CredentialMode.SAME_ORIGIN } };
}
else return { url }
}
});

await new mapray.SceneLoader( this.viewer.scene, sceneResource, {
onEntity: (loader, entity, props) => {
if ( entity instanceof mapray.ModelEntity ) {
const position = new mapray.GeoPoint(139.699985, 35.690777, 300);
entity.setPosition(position);
entity.setScale([2.0, 2.0, 2.0]);
loader.scene.addEntity(entity);

let curve = new mapray.animation.KFQuatLinearCurve();
const keyframes = [];
keyframes.push( mapray.animation.Time.fromNumber( 0 ) );
keyframes.push( mapray.GeoMath.createVector4([-0.183013, 0.183013, 0.683013, 0.683013]));
keyframes.push( mapray.animation.Time.fromNumber( 3 ));
keyframes.push( mapray.GeoMath.createVector4([-0.183013, -0.183013, -0.683013, 0.683012]));
curve.setKeyFrames( keyframes );

// 経過時間の初期化
this._total_time = 0;
entity.animation.bind("orientation", this._animation_updater, curve);

// Animation開始
this._is_animation_start = true;
}
}
} ).load();
}
}


Expand Down
12 changes: 9 additions & 3 deletions debug/animation/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,13 @@
"esModuleInterop": true,

"allowJs": true,
"removeComments": true,
"removeComments": false,
"downlevelIteration": true,

"sourceMap": true,
"declaration": true,
"declarationMap": true,

"strict": true,
"strictNullChecks": true,
"noImplicitReturns": true,
Expand All @@ -20,12 +24,14 @@
"noFallthroughCasesInSwitch": true,

"outDir": "dist",
"rootDir": "src",
"baseUrl": "src/"
},
"include": [
"src/**/*",
],
"exclude": [
"node_module",
"dist",
"node_modules/**/*",
"dist/**/*"
]
}
Loading
Loading