Skip to content
This repository was archived by the owner on Nov 26, 2024. It is now read-only.

Commit 9e60065

Browse files
chris-cooperkatrin.schmid
authored and
katrin.schmid
committed
All propeller changes in a single commit
types
1 parent ea8ba5e commit 9e60065

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+24431
-73
lines changed

.github/dependabot.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Dependabot config file. Enables updates for internal packages and schedules checks outside of office hours.
2+
# https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/configuration-options-for-dependency-updates
3+
4+
version: 2
5+
registries:
6+
npm-npmjs: # Define registry for private access
7+
type: npm-registry
8+
url: https://registry.npmjs.org
9+
token: ${{secrets.NPM_TOKEN}}
10+
11+
updates:
12+
# Keep npm dependencies up to date
13+
- package-ecosystem: "npm"
14+
directory: "/"
15+
# Allow version updates for dependencies in these registries
16+
registries:
17+
- npm-npmjs
18+
# Check the npm registry for updates on Sunday 7pm UTC / Monday 5am AEST. This should be out of
19+
# office hours so as to not block CI but not too long before people wake up, in case the updates
20+
# cause issues.
21+
schedule:
22+
interval: "weekly"
23+
day: "sunday"
24+
time: "19:00"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Automatically merge dependabot PRs that upgrade to patch or minor versions. Adapted from:
2+
# https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/automating-dependabot-with-github-actions#enable-auto-merge-on-a-pull-request
3+
name: dependabot-auto-merge
4+
on: pull_request
5+
6+
permissions:
7+
pull-requests: write
8+
contents: write
9+
10+
jobs:
11+
auto-merge-dependabot-pr:
12+
runs-on: ubuntu-latest
13+
if: ${{ github.actor == 'dependabot[bot]' }}
14+
steps:
15+
- name: Get Dependabot metadata
16+
id: metadata
17+
uses: dependabot/fetch-metadata@v1.3.3
18+
with:
19+
github-token: "${{ secrets.GITHUB_TOKEN }}"
20+
21+
- name: Approve PR
22+
run: gh pr review --approve "$PR_URL"
23+
env:
24+
PR_URL: ${{github.event.pull_request.html_url}}
25+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
26+
27+
- name: Auto-merge Dependabot PR
28+
if: ${{steps.metadata.outputs.update-type == 'version-update:semver-patch' || steps.metadata.outputs.update-type == 'version-update:semver-minor'}}
29+
run: gh pr merge --auto --merge "$PR_URL"
30+
env:
31+
PR_URL: ${{github.event.pull_request.html_url}}
32+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Automatically creates a Product Release PR when anything is committed to main.
2+
name: production-release-pr
3+
4+
on:
5+
push:
6+
branches: [main]
7+
8+
jobs:
9+
create-draft-release-pr:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
14+
- uses: actions/checkout@v2
15+
16+
- name: auto-create-pr-action
17+
uses: PropellerAero/auto-create-pr-action@master
18+
env:
19+
BRANCH_PREFIX: "main"
20+
BASE_BRANCH: "main"
21+
PULL_REQUEST_TITLE: "[Production Release]"
22+
PULL_REQUEST_DRAFT: "false"
23+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

+9-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
.DS_Store
88
Thumbs.db
99
.eslintcache
10+
.env
1011

1112
/Apps/CesiumViewer/Gallery/gallery-index.js
1213

@@ -27,12 +28,19 @@ Thumbs.db
2728
/Tools/jsdoc/cesium_template/static/styles/prism.css
2829

2930
/node_modules
31+
/engine/node_modules/
32+
/widgets/node_modules/
33+
/packages/engine/node_modules
34+
/packages/widgets/node_modules
3035
npm-debug.log
3136
npm-debug.log.*
3237
package-lock.json
33-
yarn.lock
3438

3539
# WebStorm user-specific
3640
.idea/workspace.xml
3741
.idea/tasks.xml
3842
.idea/shelf
43+
44+
# Codeship
45+
deployment/secrets
46+
*.aes

.npmignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,5 @@
3636
/ThirdParty
3737
/Tools
3838
/web.config
39-
39+
/deployment
4040
Thumbs.db

README-PROPELLER.md

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
git add # Updating the Propeller fork of Cesium
2+
3+
"The best way in my eyes is, to rebase because that fetches the latest changes of the upstream branch and replay your work on top of that." - [Stefan Bauer](https://stefanbauer.me/articles/how-to-keep-your-git-fork-up-to-date)
4+
5+
The ideal git history should have all Propeller modifications in a single most recent commit, followed by the full history from upstream CesiumGS.
6+
7+
e.g.
8+
9+
```
10+
commit c6fc9cb205e387781c5269b95e350f61a8815d08
11+
Author: Chris Cooper <chris@propelleraero.com>
12+
Date: Mon Sep 21 15:19:02 2020 +1000
13+
14+
All the Propeller mods in a single commit
15+
16+
commit da4ddc58830606d89f762dc7d79b3dfe4103c6d1
17+
Merge: 9c61508 6c0a0f8
18+
Author: Kevin Ring <kevin@kotachrome.com>
19+
Date: Tue Sep 1 15:47:38 2020 +1000
20+
21+
Updates for 1.73 release
22+
23+
...
24+
```
25+
26+
To maintain this going forward, use a `git rebase`.
27+
28+
```
29+
# Make sure your main branch is up to date
30+
git checkout main
31+
git pull
32+
33+
# Fetch the upstream tags
34+
git fetch upstream --tags
35+
36+
# Interactive rebase to the CesiumGS release tag
37+
# Squash all propeller commits into a single commit
38+
git rebase -i 1.74
39+
40+
# Fix all the broken stuff :)
41+
42+
# You've just re-written the history so you'll have to force
43+
git push origin main --force
44+
```

Specs/BadGeometry.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { queryToObject, RuntimeError } from "@cesium/engine";
1+
import { queryToObject, RuntimeError } from "@propelleraero/cesium-engine"; // PROPELLER HACK
22

33
function BadGeometry() {
44
this._workerName = "../../Specs/TestWorkers/createBadGeometry";

Specs/Cesium3DTilesTester.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
Cesium3DTileContentFactory,
88
Cesium3DTileset,
99
TileBoundingSphere,
10-
} from "@cesium/engine";
10+
} from "@propelleraero/cesium-engine"; // PROPELLER HACK
1111

1212
import pollToPromise from "./pollToPromise.js";
1313

Specs/DomEventSimulator.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { defaultValue, FeatureDetection } from "@cesium/engine";
1+
import { defaultValue, FeatureDetection } from "@propelleraero/cesium-engine"; // PROPELLER HACK
22

33
function createMouseEvent(type, options) {
44
options = defaultValue(options, defaultValue.EMPTY_OBJECT);

Specs/ImplicitTilingTester.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { defined, defaultValue } from "@cesium/engine";
1+
import { defined, defaultValue } from "@propelleraero/cesium-engine"; // PROPELLER HACK
22
import concatTypedArrays from "./concatTypedArrays.js";
33
import MetadataTester from "./MetadataTester.js";
44

Specs/MetadataTester.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
MetadataEnum,
1010
MetadataTable,
1111
MetadataType,
12-
} from "@cesium/engine";
12+
} from "@propelleraero/cesium-engine"; // PROPELLER HACK
1313

1414
function MetadataTester() {}
1515

Specs/MockDataSource.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
import { Event, EntityCluster, EntityCollection } from "@cesium/engine";
1+
import {
2+
Event,
3+
EntityCluster,
4+
EntityCollection,
5+
} from "@propelleraero/cesium-engine"; // PROPELLER HACK
26

37
function MockDataSource() {
48
//Values to be fiddled with by the test

Specs/MockImageryProvider.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
GeographicTilingScheme,
66
Resource,
77
RuntimeError,
8-
} from "@cesium/engine";
8+
} from "@propelleraero/cesium-engine"; // PROPELLER HACK
99

1010
function MockImageryProvider() {
1111
this.tilingScheme = new GeographicTilingScheme();

Specs/MockTerrainProvider.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
HeightmapTerrainData,
88
RuntimeError,
99
TerrainProvider,
10-
} from "@cesium/engine";
10+
} from "@propelleraero/cesium-engine"; // PROPELLER HACK
1111

1212
function MockTerrainProvider() {
1313
this.tilingScheme = new GeographicTilingScheme();

Specs/TerrainTileProcessor.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
GlobeSurfaceTile,
55
TerrainState,
66
Texture,
7-
} from "@cesium/engine";
7+
} from "@propelleraero/cesium-engine"; // PROPELLER HACK
88

99
function TerrainTileProcessor(
1010
frameState,

Specs/TypeScript/index.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ import {
9999
WebMapServiceImageryProvider,
100100
WebMapTileServiceImageryProvider,
101101
writeTextToCanvas,
102-
} from "cesium";
102+
} from "@propelleraero/cesium-engine";
103+
//PROPELLER HACK
103104

104105
// Verify ImageryProvider instances conform to the expected interface
105106
let imageryProvider: ImageryProvider;

Specs/ViewportPrimitive.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
import { defined, destroyObject, Pass, RenderState } from "@cesium/engine";
1+
import {
2+
defined,
3+
destroyObject,
4+
Pass,
5+
RenderState,
6+
} from "@propelleraero/cesium-engine"; // PROPELLER HACK
27

38
const ViewportPrimitive = function (fragmentShader) {
49
this._fs = fragmentShader;

Specs/addDefaultMatchers.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
ShaderProgram,
1313
VertexArray,
1414
Math as CesiumMath,
15-
} from "@cesium/engine";
15+
} from "@propelleraero/cesium-engine"; // PROPELLER HACK
1616
import equals from "./equals.js";
1717

1818
function createMissingFunctionMessageFunction(

Specs/createCamera.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
GeographicProjection,
66
Matrix4,
77
Camera,
8-
} from "@cesium/engine";
8+
} from "@propelleraero/cesium-engine"; // PROPELLER HACK
99

1010
function MockScene(canvas) {
1111
canvas = defaultValue(canvas, {

Specs/createCanvas.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { defaultValue } from "@cesium/engine";
1+
import { defaultValue } from "@propelleraero/cesium-engine"; // PROPELLER HACK
22

33
let canvasCount = 0;
44

Specs/createContext.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { clone, defaultValue, Context } from "@cesium/engine";
1+
import { clone, defaultValue, Context } from "@propelleraero/cesium-engine"; // PROPELLER HACK
22

33
import createCanvas from "./createCanvas.js";
44
import createFrameState from "./createFrameState.js";

Specs/createDynamicGeometryUpdaterSpecs.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
EllipsoidGeometryUpdater,
66
PrimitiveCollection,
77
Math as CesiumMath,
8-
} from "@cesium/engine";
8+
} from "@propelleraero/cesium-engine"; // PROPELLER HACK
99

1010
import createDynamicProperty from "./createDynamicProperty.js";
1111
import pollToPromise from "./pollToPromise.js";

Specs/createDynamicProperty.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ConstantProperty } from "@cesium/engine";
1+
import { ConstantProperty } from "@propelleraero/cesium-engine"; // PROPELLER HACK
22

33
function createDynamicProperty(value) {
44
const property = new ConstantProperty(value);

Specs/createFrameState.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
CreditDisplay,
77
FrameState,
88
JobScheduler,
9-
} from "@cesium/engine";
9+
} from "@propelleraero/cesium-engine"; // PROPELLER HACK
1010

1111
function createFrameState(context, camera, frameNumber, time) {
1212
// Mock frame-state for testing.

Specs/createGeometryUpdaterGroundGeometrySpecs.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
GroundPrimitive,
1010
HeightReference,
1111
PrimitiveCollection,
12-
} from "@cesium/engine";
12+
} from "@propelleraero/cesium-engine"; // PROPELLER HACK
1313

1414
function createGeometryUpdaterGroundGeometrySpecs(
1515
Updater,

Specs/createGeometryUpdaterSpecs.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
SampledProperty,
1515
TimeIntervalCollectionProperty,
1616
ShadowMode,
17-
} from "@cesium/engine";
17+
} from "@propelleraero/cesium-engine"; // PROPELLER HACK
1818

1919
function createGeometryUpdaterSpecs(
2020
Updater,

Specs/createGlobe.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { defaultValue, Ellipsoid, Event } from "@cesium/engine";
1+
import { defaultValue, Ellipsoid, Event } from "@propelleraero/cesium-engine"; // PROPELLER HACK
22

33
function createGlobe(ellipsoid) {
44
ellipsoid = defaultValue(ellipsoid, Ellipsoid.WGS84);

Specs/createPackableArraySpecs.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { defaultValue } from "@cesium/engine";
1+
import { defaultValue } from "@propelleraero/cesium-engine"; // PROPELLER HACK
22

33
function createPackableArraySpecs(
44
packable,

Specs/createPackableSpecs.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
import { defaultValue, defined, Math as CesiumMath } from "@cesium/engine";
1+
import {
2+
defaultValue,
3+
defined,
4+
Math as CesiumMath,
5+
} from "@propelleraero/cesium-engine"; // PROPELLER HACK
26

37
function createPackableSpecs(packable, instance, packedInstance, namePrefix) {
48
namePrefix = defaultValue(namePrefix, "");

Specs/createScene.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
defaultValue,
55
defined,
66
Scene,
7-
} from "@cesium/engine";
7+
} from "@propelleraero/cesium-engine"; // PROPELLER HACK
88

99
import createCanvas from "./createCanvas.js";
1010
import getWebGLStub from "./getWebGLStub.js";

Specs/createTileKey.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { defined, DeveloperError } from "@cesium/engine";
1+
import { defined, DeveloperError } from "@propelleraero/cesium-engine"; // PROPELLER HACK
22

33
function createTileKey(xOrTile, y, level) {
44
if (!defined(xOrTile)) {

Specs/equals.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { FeatureDetection } from "@cesium/engine";
1+
import { FeatureDetection } from "@propelleraero/cesium-engine"; // PROPELLER HACK
22

33
function isTypedArray(o) {
44
return FeatureDetection.typedArrayTypes.some(function (type) {

Specs/equalsMethodEqualityTester.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { defined } from "@cesium/engine";
1+
import { defined } from "@propelleraero/cesium-engine"; // PROPELLER HACK
22

33
function equalsMethodEqualityTester(a, b) {
44
let to_run;

Specs/generateJsonBuffer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { defaultValue } from "@cesium/engine";
1+
import { defaultValue } from "@propelleraero/cesium-engine"; // PROPELLER HACK
22

33
function generateJsonBuffer(json, byteOffset, boundary) {
44
let i;

Specs/getWebGLStub.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
defined,
55
DeveloperError,
66
WebGLConstants,
7-
} from "@cesium/engine";
7+
} from "@propelleraero/cesium-engine"; // PROPELLER HACK
88

99
function getWebGLStub(canvas, options) {
1010
const stub = clone(WebGLConstants);

0 commit comments

Comments
 (0)