@arisbh/marqueeck
Advanced tools
Comparing version 0.2.1 to 0.3.0
@@ -25,5 +25,4 @@ export type TranslateOptions = { | ||
export declare const hasHoverState: (mergedOptions: Partial<MarqueeckOptions>) => boolean; | ||
export declare const isMouseIn: import("svelte/store").Writable<boolean>; | ||
export declare const stickyPos: (mergedOptions: Partial<MarqueeckOptions>) => "left: 0;" | "right: 0;"; | ||
export declare const setOpacity: (node: HTMLElement, value: number) => string; | ||
export declare const debugState: (state: boolean) => "show-debug" | ""; |
@@ -1,2 +0,1 @@ | ||
import { writable } from "svelte/store"; | ||
import { quadInOut } from 'svelte/easing'; | ||
@@ -6,3 +5,3 @@ //* DEFAULTS | ||
export const defaultOptions = { | ||
speed: 80, | ||
speed: 75, | ||
direction: 'left', | ||
@@ -22,4 +21,2 @@ gap: 20, | ||
export const hasHoverState = (mergedOptions) => mergedOptions.onHover === 'stop' || mergedOptions.onHover === 'customSpeed' ? true : false; | ||
// Create a store for hoverState bool | ||
export const isMouseIn = writable(false); | ||
// Define sticky element style position depending on stickyPosition options | ||
@@ -26,0 +23,0 @@ export const stickyPos = (mergedOptions) => mergedOptions.stickyPosition === 'start' ? 'left: 0;' : 'right: 0;'; |
{ | ||
"name": "@arisbh/marqueeck", | ||
"version": "0.2.1", | ||
"version": "0.3.0", | ||
"description": "Marqueeck is a performant full-featured marquee component for Svelte, style-free, highly customizable and dependency-less.", | ||
@@ -36,13 +36,13 @@ "author": { | ||
"@arisbh/marqueeck": "0.1.12", | ||
"@skeletonlabs/skeleton": "^1.5.1", | ||
"@sveltejs/adapter-auto": "^2.0.1", | ||
"@sveltejs/kit": "^1.16.3", | ||
"@skeletonlabs/skeleton": "^1.6.2", | ||
"@sveltejs/adapter-auto": "^2.1.0", | ||
"@sveltejs/kit": "^1.19.0", | ||
"@sveltejs/package": "^2.0.2", | ||
"@types/node": "^20.1.3", | ||
"@typescript-eslint/eslint-plugin": "^5.59.5", | ||
"@typescript-eslint/parser": "^5.59.5", | ||
"@types/node": "^20.2.4", | ||
"@typescript-eslint/eslint-plugin": "^5.59.7", | ||
"@typescript-eslint/parser": "^5.59.7", | ||
"autoprefixer": "^10.4.14", | ||
"eslint": "^8.40.0", | ||
"eslint": "^8.41.0", | ||
"eslint-config-prettier": "^8.8.0", | ||
"eslint-plugin-svelte": "^2.28.0", | ||
"eslint-plugin-svelte": "^2.29.0", | ||
"highlight.js": "^11.8.0", | ||
@@ -53,3 +53,3 @@ "postcss": "^8.4.23", | ||
"prettier-plugin-svelte": "^2.10.0", | ||
"publint": "^0.1.11", | ||
"publint": "^0.1.12", | ||
"svelte": "^3.59.1", | ||
@@ -59,5 +59,5 @@ "svelte-check": "^3.3.2", | ||
"tailwindcss": "^3.3.2", | ||
"tslib": "^2.5.0", | ||
"tslib": "^2.5.2", | ||
"typescript": "^5.0.4", | ||
"vite": "^4.3.5" | ||
"vite": "^4.3.8" | ||
}, | ||
@@ -64,0 +64,0 @@ "svelte": "./dist/index.js", |
Sorry, the diff of this file is not supported yet
17592
228