12345678910111213141516 |
- import { CollocationModule } from "..";
- export const helper = CollocationModule.helper({
- findMatById(matId: string) {
- // TODO use queditor source
- const source = this.store.designDetail.scenePack.source;
- return source?.mats?.find((element: IMaterial) => element.id == matId);
- },
- findProductById(productId: string) {
- // todo use queditor source
- const source = this.store.designDetail.scenePack.source;
- return source?.products?.find(
- (element: PackProduct) => element.id == productId
- );
- },
- });
|