@chamn/engine 0.0.7 → 0.0.8
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/CHANGELOG.md +12 -0
- package/README.md +2 -2
- package/build.config.js +16 -2
- package/dist/component/Workbench/style.module.scss.d.ts +0 -1
- package/dist/index.cjs.js +90 -362
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.es.js +17539 -45541
- package/dist/index.es.js.map +1 -1
- package/dist/plugins/Designer/util.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/utils/defaultEngineConfig.d.ts +5 -0
- package/package.json +10 -9
- package/public/component/Workbench/style.module.scss.d.ts +0 -1
- package/src/_dev_/index.css +10 -0
- package/src/_dev_/page/Editor/index.tsx +9 -86
- package/src/_dev_/page/Editor/indexCustom.tsx +274 -0
- package/src/_dev_/router.tsx +0 -1
- package/src/component/Workbench/index.tsx +0 -2
- package/src/component/Workbench/style.module.scss +0 -8
- package/src/component/Workbench/style.module.scss.d.ts +0 -1
- package/src/index.tsx +12 -4
- package/src/plugins/Designer/util.ts +1 -1
- package/src/plugins/Designer/view.tsx +5 -3
- package/src/utils/defaultEngineConfig.tsx +55 -0
- package/dist/monacoeditorwork/css.worker.bundle.js +0 -45072
- package/dist/monacoeditorwork/editor.worker.bundle.js +0 -8294
- package/dist/monacoeditorwork/html.worker.bundle.js +0 -24321
- package/dist/monacoeditorwork/json.worker.bundle.js +0 -15550
- package/dist/monacoeditorwork/ts.worker.bundle.js +0 -169967
package/dist/index.d.ts
CHANGED
|
@@ -11,12 +11,13 @@ export type EngineProps = {
|
|
|
11
11
|
plugins: CPlugin[];
|
|
12
12
|
schema: CPageDataType;
|
|
13
13
|
material?: CMaterialType[];
|
|
14
|
-
assets?: AssetPackage[];
|
|
15
14
|
assetPackagesList?: AssetPackage[];
|
|
16
15
|
beforePluginRun?: (options: {
|
|
17
16
|
pluginManager: PluginManager;
|
|
18
17
|
}) => void;
|
|
19
18
|
onReady?: (ctx: EnginContext) => void;
|
|
19
|
+
/** 渲染器 umd 格式 js 地址, 默认 ./render.umd.js */
|
|
20
|
+
renderJSUrl?: string;
|
|
20
21
|
};
|
|
21
22
|
export declare class Engine extends React.Component<EngineProps> {
|
|
22
23
|
currentSelectNode: CNode | CRootNode | null;
|