Skip to content

Commit

Permalink
feat(core): add enabled state to components with ui
Browse files Browse the repository at this point in the history
  • Loading branch information
agviegas committed Oct 28, 2024
1 parent 1abbea3 commit 0a56f67
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@thatopen/components",
"description": "Collection of core functionalities to author BIM apps.",
"version": "2.4.0-alpha.13",
"version": "2.4.0-alpha.14",
"author": "That Open Company",
"contributors": [
"Antonio Gonzalez Viegas (https://github.com/agviegas)",
Expand Down
1 change: 1 addition & 0 deletions packages/core/src/core/Types/src/component-with-ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { Component } from "./component";

export type ComponentUIElement = {
name: string;
enabled: boolean;
componentID: string;
attributes: { [name: string]: string };
get: () => HTMLElement;
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/fragments/Classifier/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { FragmentsManager } from "../FragmentsManager";
// for dynamic, we just need to add a queryGroup as shown below

// TODO: Make the groups a class to have a getter that gets the combined FragmentIdMap
// combined from the cherry picked elements and the elements found in the group
// combined from the cherry p<icked elements and the elements found in the group

/**
* Interface representing a classification system. The classification is organized by system and class name, and each class contains a map of fragment IDs with extra information.
Expand All @@ -38,7 +38,7 @@ export interface Classification {
interface ExportedClassification {
[system: string]: {
[groupName: string]: {
map: string;
map: { [name: string]: number[] };
name: string;
id: number | null;
};
Expand Down

0 comments on commit 0a56f67

Please sign in to comment.