0.1.15 • Published 5 years ago

@psychological-components/gew v0.1.15

Weekly downloads
3
License
MIT
Repository
-
Last release
5 years ago

The Geneva Emotion Wheel

Examples

Usage

<div id="drawing"></div>

<script type="text/javascript" src="dist/core-gew.js"></script>
<script>
    GEW({
      element: '#drawing'
    });
</script>

Parameters

NameTypeDefault ValueDescription
elementstringdrawerDOM reference for render component
maxElementsnumber20Number of max checked elements
checkedElementsArray<number>[]Predefined selected indexes (example: 1,2,3,4,5 - defined first five lines
labelsArray <string>click
Rnumber80
showLinesbooleanfalse
showBorderbooleantrue
showHeaderbooleantrue
classesObjectclickCSS classes for custom styling
headerTopstringNo emotionLabel for top part of white circle
headerBottomstringOther emotionLabel for bottom part of white circle

labels

[
   "Involvement\nInterest",
   "Amusement\nLaughter",
   "Pride\nElation",
   "Happiness\nJoy",
   "Enjoyment\nPleasure",
   "Tenderness\nFeeling love",
   "Wonderment\nFeeling awe",
   "Feeling disburdened\nRelief",
   "Astonishment\nSuprise",
   "Longing\nNostalgia",
   "Pity\nCompassion",
   "Sadness\nDespair",
   "Worry\nFear",
   "Embarrassment\nShame",
   "Guilt\nRemorse",
   "Disappointment\nRegreat",
   "Envy\nJealousy",
   "Disgust\nRepulsion",
   "Contempt\nScorn",
   "Irritation\nAnger"
  ];

clases

{
    mainGroup: "main_group",
    lineAxis: "line_axis",
    lineBorder: "line_border",
    line: "line",
    circlePrefix: "row_"
}

API

circleClick

isAllChecked

0.1.15

5 years ago

0.1.14

6 years ago

0.1.13

6 years ago

0.1.12

6 years ago

0.1.10

6 years ago

0.1.9

6 years ago

0.1.8

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago