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 CHANGED
@@ -1,4 +1,4 @@
1
- import * as global from '@dsf/lib/global'
1
+ import * as global from '@dsf/core/global'
2
2
 
3
3
  export const debug = (message: any) => {
4
4
  App.debug(format(message))
package/common/trace.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { app } from '@dsf/lib/global';
1
+ import { app } from '@dsf/core/global';
2
2
 
3
3
  export function trace(enabled: boolean = true) {
4
4
  return function (target: any, key?: string, descriptor?: PropertyDescriptor) {
@@ -1,8 +1,7 @@
1
- import { debug } from '@dsf/common/log';
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[] = []
@@ -1,5 +1,5 @@
1
1
  import { debug, warn } from '@dsf/common/log'
2
- import { mainWindow } from '@dsf/lib/global'
2
+ import { mainWindow } from '@dsf/core/global'
3
3
  import { isGUID } from './string-helper'
4
4
 
5
5
  const actionMgr = mainWindow.getActionMgr()
@@ -1,5 +1,4 @@
1
- import * as global from '@dsf/lib/global'
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'
@@ -1,4 +1,4 @@
1
- import { mainWindow } from '@dsf/lib/global'
1
+ import { mainWindow } from '@dsf/core/global'
2
2
 
3
3
  const actionMgr = mainWindow.getActionMgr()
4
4
  const paneMgr = mainWindow.getPaneMgr()
@@ -1,4 +1,4 @@
1
- import { app, sceneHelper } from '@dsf/lib/global';
1
+ import { app, sceneHelper } from '@dsf/core/global';
2
2
  import { TreeNode } from 'shared/models/tree-node';
3
3
  import { group } from './array-helper';
4
4
  import { entries } from './record-helper';
@@ -1,4 +1,4 @@
1
- import { scene } from '@dsf/lib/global';
1
+ import { scene } from '@dsf/core/global';
2
2
  import { PropertyKey, PropertyKeys } from '@dsf/models/frame-keys';
3
3
  import { isNumeric, toFloat } from './property-helper';
4
4
  import { timeToFrame } from './scene-helper';
@@ -1,4 +1,4 @@
1
- import { mainWindow } from '@dsf/lib/global'
1
+ import { mainWindow } from '@dsf/core/global'
2
2
 
3
3
  const findPane = <T extends DzPane>(className: string): T => {
4
4
  return mainWindow.getPaneMgr().findPane(className) as T
@@ -1,4 +1,4 @@
1
- import { sceneHelper } from '@dsf/lib/global'
1
+ import { sceneHelper } from '@dsf/core/global'
2
2
 
3
3
  /**
4
4
  * Sets the DzPropertyGroup path (and appropriate geometryregion_dz) for the given property.
@@ -1,4 +1,4 @@
1
- import { scene } from '@dsf/lib/global'
1
+ import { scene } from '@dsf/core/global'
2
2
  import { contains, distinct } from './array-helper'
3
3
  import { getRoot } from './node-helper'
4
4
  import { getParametersPane } from './pane-helper'
@@ -1,4 +1,4 @@
1
- import { mainWindow } from '@dsf/lib/global'
1
+ import { mainWindow } from '@dsf/core/global'
2
2
 
3
3
  export const selectUniversalRotateTool = (coordinateSpace?: number): DzUniversalRotateTool => {
4
4
  const viewportMgr = mainWindow.getViewportMgr()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dazscript-framework",
3
- "version": "0.1.5",
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": "./babel/babel.config.js",
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
  },
@@ -25,7 +25,6 @@ const keys = [
25
25
  'F20', 'F21', 'F22', 'F23', 'F24',
26
26
  ];
27
27
 
28
-
29
28
  class KeyboardShortcutDialog extends BasicDialog {
30
29
  private key = new Observable('')
31
30
 
package/common/core.ts DELETED
@@ -1,2 +0,0 @@
1
- // import '@dsf/polyfills/array-polyfill'
2
- // export { Array } from '@dsf/polyfills/array-polyfill'
@@ -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
File without changes
File without changes
File without changes