dazscript-framework 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/common/log.ts +1 -1
- package/common/trace.ts +1 -1
- package/dialog/builders/splitter-builder.ts +2 -3
- package/helpers/action-helper.ts +1 -1
- package/helpers/camera-helper.ts +1 -2
- package/helpers/custom-action-helper.ts +2 -2
- package/helpers/menu-helper.ts +1 -1
- package/helpers/node-helper.ts +1 -1
- package/helpers/numeric-property-helper.ts +1 -1
- package/helpers/pane-helper.ts +1 -1
- package/helpers/property-helper.ts +1 -1
- package/helpers/scene-helper.ts +1 -1
- package/helpers/viewport-helper.ts +1 -1
- package/package.json +3 -6
- package/shared/set-keyboard-shortcut.ts +0 -1
- package/common/core.ts +0 -2
- package/shared/dsf-init.js +0 -34
- /package/{lib → common}/dz-dump.ts +0 -0
- /package/{babel → config}/babel.config.js +0 -0
- /package/{webpack.config.js → config/webpack.config.js} +0 -0
- /package/{shared → core}/base-script.ts +0 -0
- /package/{models → core}/custom-action.ts +0 -0
- /package/{lib → core}/global.ts +0 -0
- /package/{models → lib}/frame-keys.ts +0 -0
- /package/{shared → scripts}/install-generator.js +0 -0
package/common/log.ts
CHANGED
package/common/trace.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getState, restoreState } from '@dsf/helpers/splitter-helper';
|
|
2
|
+
import { Observable } from '@dsf/lib/observable';
|
|
2
3
|
import { WidgetBuilderBase, createWidget } from './widget-builder';
|
|
3
4
|
import { WidgetBuilderContext } from './widgets-builder';
|
|
4
|
-
import { Observable } from '@dsf/lib/observable';
|
|
5
|
-
import { getState, restoreState } from '@dsf/helpers/splitter-helper';
|
|
6
5
|
|
|
7
6
|
export class SplitterBuilder extends WidgetBuilderBase<DzSplitter> {
|
|
8
7
|
private _items: DzWidget[] = []
|
package/helpers/action-helper.ts
CHANGED
package/helpers/camera-helper.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { mainWindow } from '@dsf/lib/global';
|
|
1
|
+
import { mainWindow } from '@dsf/core/global';
|
|
3
2
|
|
|
4
3
|
export const getActiveCamera = (): DzCamera => {
|
|
5
4
|
return mainWindow.getViewportMgr().getActiveViewport().get3DViewport().getCamera()
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { debug } from '@dsf/common/log'
|
|
2
|
+
import { CustomAction } from '@dsf/core/custom-action'
|
|
3
|
+
import { mainWindow } from '@dsf/core/global'
|
|
2
4
|
import * as array from '@dsf/helpers/array-helper'
|
|
3
|
-
import { mainWindow } from '@dsf/lib/global'
|
|
4
|
-
import { CustomAction } from '@dsf/models/custom-action'
|
|
5
5
|
import { getMenu } from './menu-helper'
|
|
6
6
|
import { keys } from './object-helper'
|
|
7
7
|
import { progress } from './progress-helper'
|
package/helpers/menu-helper.ts
CHANGED
package/helpers/node-helper.ts
CHANGED
package/helpers/pane-helper.ts
CHANGED
package/helpers/scene-helper.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dazscript-framework",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"author": "Freddy Diaz",
|
|
5
5
|
"license": "MPL-2.0",
|
|
6
6
|
"description": "",
|
|
@@ -12,12 +12,9 @@
|
|
|
12
12
|
"dsa",
|
|
13
13
|
"dse"
|
|
14
14
|
],
|
|
15
|
-
"scripts": {
|
|
16
|
-
"dsf-init": "node ./shared/dsf-init.js"
|
|
17
|
-
},
|
|
18
15
|
"exports": {
|
|
19
|
-
"./webpack": "./webpack.config.js",
|
|
20
|
-
"./babel": "./
|
|
16
|
+
"./webpack": "./config/webpack.config.js",
|
|
17
|
+
"./babel": "./config/babel.config.js",
|
|
21
18
|
"./babel/trace-babel-plugin": "./babel/trace-babel-plugin.js",
|
|
22
19
|
"./babel/trace-log-babel-plugin": "./babel/trace-log-babel-plugin.js"
|
|
23
20
|
},
|
package/common/core.ts
DELETED
package/shared/dsf-init.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
const fs = require('fs');
|
|
2
|
-
const path = require('path');
|
|
3
|
-
|
|
4
|
-
const packageJsonPath = path.resolve(process.cwd(), 'package.json');
|
|
5
|
-
|
|
6
|
-
const newScripts = {
|
|
7
|
-
build: 'webpack',
|
|
8
|
-
watch: 'webpack --watch',
|
|
9
|
-
icons: 'copyfiles -u 1 src/**/*.png dist/',
|
|
10
|
-
installers:
|
|
11
|
-
'node ./node_modules/dazscript-framework/shared/install-generator.js -p ./src/scripts -m /My Scripts',
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
fs.readFile(packageJsonPath, 'utf8', (err, data) => {
|
|
15
|
-
if (err) {
|
|
16
|
-
console.error('Error reading package.json', err);
|
|
17
|
-
return;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
const packageJson = JSON.parse(data);
|
|
21
|
-
|
|
22
|
-
// If scripts already exist, merge them
|
|
23
|
-
packageJson.scripts = packageJson.scripts || {};
|
|
24
|
-
Object.assign(packageJson.scripts, newScripts);
|
|
25
|
-
|
|
26
|
-
// Write the updated package.json back
|
|
27
|
-
fs.writeFile(packageJsonPath, JSON.stringify(packageJson, null, 2), (err) => {
|
|
28
|
-
if (err) {
|
|
29
|
-
console.error('Error writing package.json', err);
|
|
30
|
-
} else {
|
|
31
|
-
console.log('Scripts successfully added to package.json');
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
});
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{lib → core}/global.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|