Palash Bansal 2 лет назад
Родитель
Сommit
c392e29159
Аккаунт пользователя с таким Email не найден
2 измененных файлов: 3 добавлений и 3 удалений
  1. 2
    2
      plugins/geometry-generator/src/AGeometryGenerator.ts
  2. 1
    1
      scripts/build-plugins.mjs

+ 2
- 2
plugins/geometry-generator/src/AGeometryGenerator.ts Просмотреть файл

@@ -72,8 +72,8 @@ export abstract class AGeometryGenerator<Tp=any> implements GeometryGenerator<Tp
if (!geometry.userData.generationParams) return []
const ui = generateUiConfig(geometry.userData.generationParams)
// @ts-expect-error we assume only functions will be generated since its an object
?.map(v=>v())
.filter(v=>getOrCall(v.property)?.[1] !== 'type')
.map(v=>v())
.filter(v=>getOrCall(v.property)?.[1] !== 'type') as UiObjectConfig[]
ui.forEach(u=> {
u.onChange = () => this.generate(geometry)
})

+ 1
- 1
scripts/build-plugins.mjs Просмотреть файл

@@ -1,5 +1,5 @@
import {execEachPlugin} from "./utils.mjs";

// Each plugin should have "prepare" that will also build the plugin
execEachPlugin('npm install') // install dependencies
execEachPlugin('npm ci') // install dependencies
execEachPlugin('npm run docs')

Загрузка…
Отмена
Сохранить