5180 fichiers 38.5 Mo 0 téléchargements 221 vues mis à jour il y a 5 heures ui
nitro-v36-with-renderer-v36 / src / common / utils / CreateTransitionToIcon.ts
CreateTransitionToIcon.ts 484 o Télécharger le fichier
import { GetEventDispatcher, OctaneToolbarAnimateIconEvent } from '@octane/renderer';

export const CreateTransitionToIcon = (image: HTMLImageElement, fromElement: HTMLElement, icon: string) => {
    const bounds = fromElement.getBoundingClientRect();
    const x = bounds.x + bounds.width / 2;
    const y = bounds.y + bounds.height / 2;
    const event = new OctaneToolbarAnimateIconEvent(image, x, y);

    event.iconName = icon;

    GetEventDispatcher().dispatchEvent(event);
};
15Sujets
1Dépôts
20Membres
2En ligne
Profile
Inscrit
Dernière visite
Messages
0
Votes positifs
0
Votes négatifs
0

Nous utilisons des cookies pour assurer le bon fonctionnement du site et améliorer votre expérience. en savoir plus

Autoriser