Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rpg-convers

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rpg-convers - npm Package Compare versions

Comparing version 1.0.5 to 1.0.7

18

index.js

@@ -53,2 +53,18 @@ const generateStyle = require("./tools/generateStyle.js")

}
addClassNameToELement(elementType, newClassName){
switch(elementType){
case "container":
this.mainContainer.classList.add(newClassName)
break
case "text":
this.convText.classList.add(newClassName)
break
case "image":
this.convCharacImg.classList.add(newClassName)
break;
case "button":
this.convNextBtn.classList.add(newClassName)
break;
}
}
createElement(document,elementType, className, textInside){

@@ -61,3 +77,3 @@ const elem = document.createElement(elementType)

setImageOfSpeaker(imageDirectory,isLeft){
this.convCharacImg.style.left = isLeft ? "0" : "100%-300px"
this.convCharacImg.style.left = isLeft ? "90%" : "0"
if(imageDirectory){

@@ -64,0 +80,0 @@ this.convCharacImg.src = imageDirectory

4

package.json
{
"name": "rpg-convers",
"version": "1.0.5",
"description": "An rpg conversation maker, To use first call new Conversation([{name: '', message: '', isLeft: bool}], howfast The speaker is in miliseconds, callback function ) ",
"version": "1.0.7",
"description": "An rpg conversation maker, To use first call new Conversation([{name: '', message: '', isLeft: bool define if the speaker will be on left or right, imageDirectory: the file for your image if have}], howfast The speaker is in miliseconds, callback function ) ",
"main": "index.js",

@@ -6,0 +6,0 @@ "scripts": {

@@ -11,3 +11,3 @@ function generateStyle(element, style, elementType){

eStyle.transform = "translate(-50%,-50%) scale(1)"
eStyle.bottom = bottom ? bottom : "10%"
eStyle.bottom = bottom ? bottom : "5%"
eStyle.left= "50%"

@@ -14,0 +14,0 @@ eStyle.width = "80%"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc