open-index/open-npm huggingface dataset:
npm package: @puneet_epigraph/epigraph_configurator_core
Description: Code Level Structure and Responsibility
Author: puneet@epigraph.us
Latest version: 1.5.5

#Event Listeners

You can add the following listeners to this web component:

- openedContextMenu

This event will be fired whenever an item is clicked or selected in the 3D scene,
data packet will contain:
data.offsetX, data.offsetY : mouse position of the click
data.itemData contains skuID, guid, name, etc
data.hotspotData etc

- closedContextMenu
- configurator-core-ready
- itemChange
- saveButtonTrigger
- shareButtonTrigger
- hotspotClick
- hotspotExit

#Function Calls

These are the following function calls you can make on this webcomponent

##Available Functions

- fireUp()
- sendMessage()
- Used to communicate to the core webcomponent

###Available messages:

- begin
- loadConfig
- alert
- spawnGhosts
- removeAllGhosts
- clickHotspot
- exitHotspot
- removeItem
- spawnItem
- saveButtonFromUI
- closeContextMenu

##Example

You have your webcomponent:

```javascript
<epigraph-configurator-core id="mcc" />
```

You can write following script to add event listeners and do your function calls:

```javascript
<script></script>
```