0.1.15 • Published 5 years ago

@psychological-components/plutchik v0.1.15

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

Plutchik Emotion Wheel

Examples

Usage

<script type="text/javascript" src="https://unpkg.com/@psychological-components/plutchik/umd/plutchik.js"></script>
<link rel="stylesheet" href="https://unpkg.com/@psychological-components/plutchik/lib/theme-core.css">
<div id="drawer"></div>
<script>
    Plutchik.default({
      element: '#drawer'
    });
</script>

Parameters

NameTypeDefault ValueDescription
elementstring#drawerDOM element for component rendering
maxElementsnumber32Number of max checked elements
checkedElementsArray <string>[]Array of checked elements
labelsArray<Array<string>>[]example
isMobilebooleanfalseFlag for render mobile version (without white spaces)
langstringenavailable: 'en', 'pl'

labels

[
   ["ecstasy", "admiration", "terror", "amazement", "grief", "loathing", "rage", "vigilance"],
   ["joy", "trust", "fear", "surprise", "sadness", "disgust", "anger", "anticipation"],
   ["serenity", "acceptance", "apprehension", "distraction", "pensiveness", "boredom", "annoyance", "interest"],
   ["optimistm", "love", "submission", "awe", "disapproval", "emorse", "contempt", "aggressiveness"]
 ];

API

elementClick

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.11

6 years ago

0.1.10

6 years ago

0.1.9

6 years ago

0.1.8

6 years ago

0.1.5

6 years ago