Skip to content

Commit

Permalink
Feature: Refactor code, add colored boxes, information icons, and lon…
Browse files Browse the repository at this point in the history
…ger line animation duration (#881)

* Extend box component to support box colors

* Color some boxes

* Add color to no browser boxes

* Update Progress line component to support noanimation and update Branch component

* Refactor code and remove additional code for app.isRevisitingNodeInInteractiveMode

* Rename filename

* Manage delay and increase Branch speed

* Add info icon

* Reduce info icon size

* Introduce new event listener system

* Add throttle package to reduce number of calls

* Remove self dependency

* Create separate file for info

* Refactor code

* Refactor code

* Add function for remove event listener

* Remove .js from file names

* Refactor folder structure and move  components to protectedAudience
  • Loading branch information
mohdsayed authored Dec 6, 2024
1 parent 0f32763 commit 89055ad
Show file tree
Hide file tree
Showing 37 changed files with 891 additions and 470 deletions.
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion packages/explorable-explanations/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
},
"homepage": "https://github.com/GoogleChromeLabs/ps-analysis-tool",
"dependencies": {
"just-throttle": "^4.2.0",
"p5": "^1.11.0"
}
}
}
Empty file.
60 changes: 0 additions & 60 deletions packages/explorable-explanations/src/components/box.js

This file was deleted.

3 changes: 2 additions & 1 deletion packages/explorable-explanations/src/icons.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
"play": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAAAAXNSR0IArs4c6QAAAqhJREFUeF7tm1FuwkAMRDcnKz0JSPCRW5Tego8ilZNAT0a7KEh8FBQnseyZnf7W2GSeZ9e4tCv6CVWgC62u4kUAgptAAAQgWIHg8nKAAAQrEFxeDhCAYAWCy8sBAhCsQHB5OUAAghUILi8HCECwAsHl5QABCFYguLwcIADBCgSXlwNaB7DZ9fvvr8M+WIew8uEOWG/7a336riufLYJIA6BVCKkA3M+BltyQEsAA4tJ15Yf9WMoM4MaB3Q3pAbAfSzAAWN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MjcgOTNabTAtMzIwWiIvPjwvc3ZnPg=="
}
6 changes: 3 additions & 3 deletions packages/explorable-explanations/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export * from './components';
export * from './protectedAudience/components';
export {
app,
userSketch,
interestGroupSketch,
sketch,
} from './protectedAudience.js';
export { default as config } from './config.js';
} from './protectedAudience';
export { default as config } from './protectedAudience/config.js';
Loading

0 comments on commit 89055ad

Please sign in to comment.