Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
45 changes: 0 additions & 45 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,13 @@
"@playcanvas/eslint-config": "2.1.0",
"@playcanvas/observer": "1.6.6",
"@playcanvas/pcui": "5.4.1",
"@rollup/plugin-alias": "6.0.0",
"@rollup/plugin-json": "6.1.0",
"@rollup/plugin-node-resolve": "16.0.3",
"@rollup/plugin-typescript": "12.1.4",
"@types/react": "19.2.7",
"@typescript-eslint/eslint-plugin": "8.51.0",
"@typescript-eslint/parser": "8.51.0",
"concurrently": "9.2.1",
"cross-env": "10.1.0",
"eslint": "9.39.2",
"eslint-import-resolver-typescript": "4.4.4",
"globals": "17.0.0",
Expand All @@ -48,7 +46,6 @@
"build": "rollup -c",
"build:watch": "rollup -c -w",
"develop": "concurrently --kill-others \"npm run build:watch\" \"npm run serve\"",
"develop:local": "cross-env ENGINE_PATH=../engine npm run develop",
"lint": "eslint src",
"serve": "serve dist"
}
Expand Down
18 changes: 1 addition & 17 deletions rollup.config.mjs
Original file line number Diff line number Diff line change
@@ -1,25 +1,10 @@
import path from 'path';
import { copyAndWatch } from './plugins/copy-and-watch.mjs';
import resolve from '@rollup/plugin-node-resolve';
import alias from '@rollup/plugin-alias';
import json from '@rollup/plugin-json';
import sass from 'rollup-plugin-sass';
import typescript from '@rollup/plugin-typescript';

const PROD_BUILD = process.env.BUILD_TYPE === 'prod';
const HREF = process.env.BASE_HREF || '';
const ENGINE_DIR = process.env.ENGINE_PATH || 'node_modules/playcanvas';
const PCUI_DIR = process.env.PCUI_PATH || 'node_modules/@playcanvas/pcui';

const ENGINE_NAME = PROD_BUILD ? 'playcanvas.mjs' : 'playcanvas.dbg.mjs';
const ENGINE_PATH = path.resolve(ENGINE_DIR, 'build', ENGINE_NAME);
const PCUI_PATH = path.resolve(PCUI_DIR, 'dist/module/src/index.mjs');

// define supported module overrides
const aliasEntries = {
'playcanvas': ENGINE_PATH,
'pcui': PCUI_PATH
};
const HREF = process.env.BASE_HREF || '';

const TARGETS = [
{
Expand All @@ -46,7 +31,6 @@ export default {
},
plugins: [
copyAndWatch(TARGETS),
alias({ entries: aliasEntries }),
resolve(),
typescript({
tsconfig: './tsconfig.json'
Expand Down
2 changes: 1 addition & 1 deletion src/export-panel.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Button, Panel, Container } from 'pcui';
import { Button, Panel, Container } from '@playcanvas/pcui';
import { RenderTarget, Texture, WebglGraphicsDevice } from 'playcanvas';
import type { EventHandle } from '@playcanvas/observer';

Expand Down
2 changes: 1 addition & 1 deletion src/feedback-panel.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Container, Button } from 'pcui';
import { Container, Button } from '@playcanvas/pcui';

class FeedbackPanel extends Container {
constructor(args: Record<string, any> = {}) {
Expand Down
2 changes: 1 addition & 1 deletion src/file-tabs.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Container, Label } from 'pcui';
import { Container, Label } from '@playcanvas/pcui';
import type { TextureManager } from './texture-manager';
import type { TextureDoc } from './texture-doc';

Expand Down
2 changes: 1 addition & 1 deletion src/files-browser-panel.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Panel, Container, Button, TreeView, TreeViewItem, TextInput } from 'pcui';
import { Panel, Container, Button, TreeView, TreeViewItem, TextInput } from '@playcanvas/pcui';
import { path } from 'playcanvas';
import type { TextureManager } from './texture-manager';
import type { TextureDoc } from './texture-doc';
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import './main';
import './style.scss';

import { version as pcuiVersion, revision as pcuiRevision } from 'pcui';
import { version as pcuiVersion, revision as pcuiRevision } from '@playcanvas/pcui';
import { version as engineVersion, revision as engineRevision } from 'playcanvas';

import { version as textureToolVersion } from '../package.json';
Expand Down
2 changes: 1 addition & 1 deletion src/info-panel.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Panel, Label } from 'pcui';
import { Panel, Label } from '@playcanvas/pcui';

import { PixelFormatTable, TextureTypeTable } from './const';
import type { TextureManager } from './texture-manager';
Expand Down
2 changes: 1 addition & 1 deletion src/inspector-panel.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Container } from 'pcui';
import { Container } from '@playcanvas/pcui';

import { TextureExportPanel } from './export-panel';
import { FeedbackPanel } from './feedback-panel';
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Container } from 'pcui';
import { Container } from '@playcanvas/pcui';
import { path } from 'playcanvas';

import { DropHandler } from './drop-handler';
Expand Down
2 changes: 1 addition & 1 deletion src/render-canvas.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Container } from 'pcui';
import { Container } from '@playcanvas/pcui';
import type { LayerComposition } from 'playcanvas';
import type { Renderer } from './renderer';

Expand Down
2 changes: 1 addition & 1 deletion src/reproject-panel.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Button, Panel, Container, SelectInput, LabelGroup, NumericInput } from 'pcui';
import { Button, Panel, Container, SelectInput, LabelGroup, NumericInput } from '@playcanvas/pcui';
import {
Texture, Asset, reprojectTexture,
PIXELFORMAT_R8_G8_B8_A8, PIXELFORMAT_RGBA16F, PIXELFORMAT_RGBA32F,
Expand Down
2 changes: 1 addition & 1 deletion src/show-panel.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Panel, Button, Container, LabelGroup, SelectInput, SliderInput, BooleanInput } from 'pcui';
import { Panel, Button, Container, LabelGroup, SelectInput, SliderInput, BooleanInput } from '@playcanvas/pcui';
import type { EventHandle } from '@playcanvas/observer';
import type { TextureManager } from './texture-manager';
import type { TextureDoc } from './texture-doc';
Expand Down
2 changes: 1 addition & 1 deletion src/viewport-panel.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Container } from 'pcui';
import { Container } from '@playcanvas/pcui';
import type { EventHandle } from '@playcanvas/observer';

import { InfoPanel } from './info-panel';
Expand Down
6 changes: 1 addition & 5 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,7 @@
"resolveJsonModule": true,
"sourceMap": true,
"target": "es2022",
"skipLibCheck": true,
"paths": {
"pcui": ["node_modules/@playcanvas/pcui/types/index.d.ts"],
"playcanvas": ["node_modules/playcanvas/build/playcanvas.d.ts"]
}
"skipLibCheck": true
},
"include": ["src/**/*.ts"],
"exclude": ["node_modules", "dist"]
Expand Down