@puneet_epigraph/epigraph_configurator_core

1.5.5 • Public • Published

#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:

<epigraph-configurator-core id="mcc" />

You can write following script to add event listeners and do your function calls:

<script></script>

Readme

Keywords

none

Package Sidebar

Install

npm i @puneet_epigraph/epigraph_configurator_core

Weekly Downloads

4

Version

1.5.5

License

Apache-2.0

Unpacked Size

1.34 MB

Total Files

4

Last publish

Collaborators

  • puneet_epigraph