@tarsis/toolkit 0.7.3 → 0.7.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Container-BVX2MW1U.cjs → Container-DBXALrl1.cjs} +1 -1
- package/dist/{SelectBase-BC6WKZVF.cjs → SelectBase-CKsJgF0R.cjs} +3 -7
- package/dist/{SelectBase-DPcXvMTa.js → SelectBase-CdQKpIjl.js} +2 -6
- package/dist/components/Accordions/Expand/Expand.d.ts +8 -0
- package/dist/components/Accordions/GridAccordion/GridAccordion.d.ts +1 -0
- package/dist/components/Accordions/MinimalisticAccordion/MinimalisticAccordion.d.ts +10 -0
- package/dist/components/Accordions/index.d.ts +3 -0
- package/dist/components/Backgrounds/BackgroundCircles/BackgroundCircles.d.ts +1 -0
- package/dist/components/Backgrounds/ComplexGradient/ComplexGradient.d.ts +1 -0
- package/dist/components/Backgrounds/RaysBackground/RaysBackground.d.ts +1 -0
- package/dist/components/Backgrounds/Texture/Texture.d.ts +5 -0
- package/dist/components/Backgrounds/WebGLSmoke/WebGLSmoke.d.ts +1 -0
- package/dist/components/Backgrounds/index.d.ts +5 -0
- package/dist/components/Badges/ComingSoonBadge/ComingSoonBadge.d.ts +1 -0
- package/dist/components/Badges/index.d.ts +1 -0
- package/dist/components/Buttons/ActivateButton/ActivateButton.d.ts +1 -0
- package/dist/components/Buttons/AirplaneAnimation/AirplaneAnimation.d.ts +1 -0
- package/dist/components/Buttons/AnimatedHoverButton/AnimatedHoverButton.d.ts +7 -0
- package/dist/components/Buttons/AnimatedHoverGlowButton/AnimatedHoverGlowButton.d.ts +1 -0
- package/dist/components/Buttons/AuroraButton/AuroraButton.d.ts +1 -0
- package/dist/components/Buttons/BubblyParticlesButton/BubblyParticlesButton.d.ts +1 -0
- package/dist/components/Buttons/BurningButton/BurningButton.d.ts +1 -0
- package/dist/components/Buttons/ButtonBase/ButtonBase.d.ts +25 -0
- package/dist/components/Buttons/ButtonHoverFill/ButtonHoverFill.d.ts +1 -0
- package/dist/components/Buttons/ButtonShimmer/ButtonShimmer.d.ts +1 -0
- package/dist/components/Buttons/ButtonWithDot/ButtonWithDot.d.ts +1 -0
- package/dist/components/Buttons/ClaymorphicHeart/ClaymorphicHeart.d.ts +5 -0
- package/dist/components/Buttons/ClickButtonParticles/ClickButtonParticles.d.ts +1 -0
- package/dist/components/Buttons/ColorfulButtons/ColorfulButtons.d.ts +1 -0
- package/dist/components/Buttons/ConfettiButton/ConfettiButton.d.ts +7 -0
- package/dist/components/Buttons/DDDButton/DDDButton.d.ts +8 -0
- package/dist/components/Buttons/DarkMatterButton/DarkMatterButton.d.ts +1 -0
- package/dist/components/Buttons/DockButton/DockButton.d.ts +8 -0
- package/dist/components/Buttons/DoubleArrowButton/DoubleArrowButton.d.ts +1 -0
- package/dist/components/Buttons/DoubleArrowCollabButton/DoubleArrowCollabButton.d.ts +7 -0
- package/dist/components/Buttons/DoubleStateButton/DoubleStateButton.d.ts +8 -0
- package/dist/components/Buttons/DynamicIconButton/DynamicIconButton.d.ts +1 -0
- package/dist/components/Buttons/EchoClickButton/EchoClickButton.d.ts +1 -0
- package/dist/components/Buttons/ElectrifiedButton/ElectrifiedButton.d.ts +1 -0
- package/dist/components/Buttons/ElectrifiedButtonGS/ElectrifiedButtonGS.d.ts +1 -0
- package/dist/components/Buttons/FailedDownloadButton/FailedDownloadButton.d.ts +1 -0
- package/dist/components/Buttons/FootprintButton/FootprintButton.d.ts +1 -0
- package/dist/components/Buttons/GalaxyButton/GalaxyButton.d.ts +1 -0
- package/dist/components/Buttons/GlassToolbar/GlassToolbar.d.ts +11 -0
- package/dist/components/Buttons/GlowButton/GlowButton.d.ts +7 -0
- package/dist/components/Buttons/GoHoverButton/GoHoverButton.d.ts +1 -0
- package/dist/components/Buttons/GodRaysButton/GodRaysButton.d.ts +1 -0
- package/dist/components/Buttons/GooeyButton/GooeyButton.d.ts +1 -0
- package/dist/components/Buttons/GravityButton/GravityButton.d.ts +1 -0
- package/dist/components/Buttons/HeartFoldButton/HeartFoldButton.d.ts +1 -0
- package/dist/components/Buttons/HoldSubmitButton/HoldSubmitButton.d.ts +1 -0
- package/dist/components/Buttons/HoverGlowButton/HoverGlowButton.d.ts +7 -0
- package/dist/components/Buttons/HoverGlowButton/HoverGlowButton.utils.d.ts +1 -0
- package/dist/components/Buttons/Ios15Button/Ios15Button.d.ts +1 -0
- package/dist/components/Buttons/MagneticButton/MagneticButton.d.ts +1 -0
- package/dist/components/Buttons/MinimalisticGlassButton/MinimalisticGlassButton.d.ts +1 -0
- package/dist/components/Buttons/MorphingSubmitButton/MorphingSubmitButton.d.ts +1 -0
- package/dist/components/Buttons/MultiStageButton/MultiStageButton.d.ts +1 -0
- package/dist/components/Buttons/NeonButton/NeonButton.d.ts +7 -0
- package/dist/components/Buttons/NoisyButton/NoisyButton.d.ts +1 -0
- package/dist/components/Buttons/OrbitalSubmitButton/OrbitalSubmitButton.d.ts +1 -0
- package/dist/components/Buttons/PaperPlanButton/PaperPlanButton.d.ts +1 -0
- package/dist/components/Buttons/PlayPauseButton/PlayPauseButton.d.ts +1 -0
- package/dist/components/Buttons/PlayPauseMusicButton/PlayPauseMusicButton.d.ts +1 -0
- package/dist/components/Buttons/PositionHover/PositionHover.d.ts +1 -0
- package/dist/components/Buttons/PredictionButton/PredictionButton.d.ts +1 -0
- package/dist/components/Buttons/PredictionButton/PredictionButton.helpers.d.ts +5 -0
- package/dist/components/Buttons/ProgressButton/ProgressButton.d.ts +7 -0
- package/dist/components/Buttons/PsychedelicButton/PsychedelicButton.d.ts +5 -0
- package/dist/components/Buttons/ReflectiveButton/MacCursor.d.ts +1 -0
- package/dist/components/Buttons/ReflectiveButton/ReflectiveButton.d.ts +23 -0
- package/dist/components/Buttons/ReflectiveButton/ReflectiveButton.helpers.d.ts +2 -0
- package/dist/components/Buttons/ReflectiveButton/reflectiveButtonTestUtils.d.ts +2 -0
- package/dist/components/Buttons/ReflectiveButton/useUserMediaVideo.d.ts +12 -0
- package/dist/components/Buttons/RepostButton/RepostButton.d.ts +1 -0
- package/dist/components/Buttons/RubberButton/RubberButton.d.ts +1 -0
- package/dist/components/Buttons/RunningButton/RunningButton.d.ts +1 -0
- package/dist/components/Buttons/ShimmerButton/ShimmerButton.d.ts +1 -0
- package/dist/components/Buttons/ShimmeringBorderGradient/ShimmeringBorderGradient.d.ts +1 -0
- package/dist/components/Buttons/ShinyCtaButton/ShinyCtaButton.d.ts +7 -0
- package/dist/components/Buttons/SkeuomorphicLikeButton/SkeuomorphicLikeButton.d.ts +1 -0
- package/dist/components/Buttons/SlidingButton/SlidingButton.d.ts +1 -0
- package/dist/components/Buttons/SlidingStepper/SlidingStepper.d.ts +1 -0
- package/dist/components/Buttons/SparkleButton/SparkleButton.d.ts +1 -0
- package/dist/components/Buttons/SparklyButton/SparklyButton.d.ts +1 -0
- package/dist/components/Buttons/SquishButton/SquishButton.d.ts +7 -0
- package/dist/components/Buttons/SuccessLoadingButton/SuccessLoadingButton.d.ts +10 -0
- package/dist/components/Buttons/ThreadsLikeButton/ThreadsLikeButton.d.ts +1 -0
- package/dist/components/Buttons/ThumbsUpButton/ThumbsUpButton.d.ts +1 -0
- package/dist/components/Buttons/TicklishButton/TicklishButton.d.ts +1 -0
- package/dist/components/Buttons/TrickButton/TrickButton.d.ts +1 -0
- package/dist/components/Buttons/index.d.ts +70 -0
- package/dist/components/Cards/AccentShardCard/AccentShardCard.d.ts +1 -0
- package/dist/components/Cards/AnimatedBlendedCard/AnimatedBlendedCard.d.ts +1 -0
- package/dist/components/Cards/BrandCard/BrandCard.d.ts +10 -0
- package/dist/components/Cards/BrandCard/FigmaLogo/FigmaLogo.d.ts +1 -0
- package/dist/components/Cards/CaptionCard/CaptionCard.d.ts +10 -0
- package/dist/components/Cards/CardGlow/CardGlow.d.ts +1 -0
- package/dist/components/Cards/CardTile/CardTile.d.ts +8 -0
- package/dist/components/Cards/ChequeredCard/ChequeredCard.d.ts +1 -0
- package/dist/components/Cards/DDDHoverCard/DDDHoverCard.d.ts +1 -0
- package/dist/components/Cards/EnvelopeTile/EnvelopeTile.d.ts +8 -0
- package/dist/components/Cards/GlowingTile/GlowingTile.d.ts +1 -0
- package/dist/components/Cards/GradientGlowingTile/GradientGlowingTile.d.ts +1 -0
- package/dist/components/Cards/HoverTile/HoverTile.d.ts +8 -0
- package/dist/components/Cards/Hoverable3DCard/Hoverable3DCard.d.ts +1 -0
- package/dist/components/Cards/ImageCard/ImageCard.d.ts +1 -0
- package/dist/components/Cards/InvertedRadius/InvertedRadius.d.ts +9 -0
- package/dist/components/Cards/PhotoCard/PhotoCard.d.ts +1 -0
- package/dist/components/Cards/ProductTile/ProductTile.d.ts +8 -0
- package/dist/components/Cards/ProfileCard/ProfileCard.d.ts +1 -0
- package/dist/components/Cards/ShineAnimation/ShineAnimation.d.ts +1 -0
- package/dist/components/Cards/ShineCard/ShineCard.d.ts +17 -0
- package/dist/components/Cards/StackingCards/StackingCards.d.ts +1 -0
- package/dist/components/Cards/index.d.ts +22 -0
- package/dist/components/Carousels/BulletsCarousel/BulletsCarousel.d.ts +1 -0
- package/dist/components/Carousels/CardCarousel/CardCarousel.d.ts +6 -0
- package/dist/components/Carousels/CardCarousel/CardCarousel.helpers.d.ts +10 -0
- package/dist/components/Carousels/CardCarousel/CardCarouselItem.d.ts +6 -0
- package/dist/components/Carousels/CoverFlowGallery/CoverFlowGallery.d.ts +1 -0
- package/dist/components/Carousels/FullScreenImageCarousel/FullScreenImageCarousel.d.ts +1 -0
- package/dist/components/Carousels/GalleryReverseScroll/GalleryReverseScroll.d.ts +1 -0
- package/dist/components/Carousels/GlideImageGallery/GlideImageGallery.d.ts +1 -0
- package/dist/components/Carousels/ListItemHover/ListItemHover.d.ts +1 -0
- package/dist/components/Carousels/RotatedCardsCarousel/RotatedCardsCarousel.d.ts +1 -0
- package/dist/components/Carousels/RotatedCardsCarousel/RotatedCardsCarousel.helpers.d.ts +6 -0
- package/dist/components/Carousels/Scroller/Scroller.d.ts +9 -0
- package/dist/components/Carousels/Scroller/Scroller.utils.d.ts +1 -0
- package/dist/components/Carousels/ShadowedCardsList/ShadowedCardsList.d.ts +1 -0
- package/dist/components/Carousels/SlidingImages/SlidingImages.d.ts +1 -0
- package/dist/components/Carousels/index.d.ts +11 -0
- package/dist/components/Checkboxes/Checkbox/Checkbox.d.ts +10 -0
- package/dist/components/Checkboxes/CheckboxBase/CheckboxBase.d.ts +23 -0
- package/dist/components/Checkboxes/IndeterminateCheckboxes/IndeterminateCheckboxes.d.ts +1 -0
- package/dist/components/Checkboxes/StrikethroughCheckboxes/StrikethroughCheckbox.d.ts +8 -0
- package/dist/components/Checkboxes/StrikethroughCheckboxes/StrikethroughCheckboxes.d.ts +1 -0
- package/dist/components/Checkboxes/index.d.ts +5 -0
- package/dist/components/Chipses/Chips/Chips.d.ts +1 -0
- package/dist/components/Chipses/FlipChips/Chip.d.ts +7 -0
- package/dist/components/Chipses/FlipChips/FlipChips.d.ts +1 -0
- package/dist/components/Chipses/index.d.ts +2 -0
- package/dist/components/Clocks/DailClock/DailClock.d.ts +1 -0
- package/dist/components/Clocks/MotionClock/MotionClock.d.ts +1 -0
- package/dist/components/Clocks/NeumorphicAnalogClock/NeumorphicAnalogClock.d.ts +5 -0
- package/dist/components/Clocks/index.d.ts +3 -0
- package/dist/components/Cursors/CircleTextHover/CircleTextHover.d.ts +1 -0
- package/dist/components/Cursors/ClickSpark/ClickSpark.d.ts +1 -0
- package/dist/components/Cursors/DarkMatterMouseEffect/DarkMatterMouseEffect.d.ts +1 -0
- package/dist/components/Cursors/ElasticCursor/ElasticCursor.d.ts +1 -0
- package/dist/components/Cursors/MagicMouseEffect/MagicMouseEffect.d.ts +1 -0
- package/dist/components/Cursors/SplashCursor/SplashCursor.d.ts +5 -0
- package/dist/components/Cursors/index.d.ts +6 -0
- package/dist/components/Dials/DialControl/DialControl.d.ts +5 -0
- package/dist/components/Dials/DialFuturistic/DialFuturistic.d.ts +1 -0
- package/dist/components/Dials/MetalCircleController/MetalCircleController.d.ts +1 -0
- package/dist/components/Dials/index.d.ts +3 -0
- package/dist/components/Docks/Dock/Dock.d.ts +1 -0
- package/dist/components/Docks/DockHas/DockHas.d.ts +1 -0
- package/dist/components/Docks/DockMotion/DockMotion.d.ts +17 -0
- package/dist/components/Docks/DockMotion/DockMotionDivider.d.ts +1 -0
- package/dist/components/Docks/DockMotion/DockMotionEmbedded.d.ts +4 -0
- package/dist/components/Docks/DockMotion/DockMotionItem.d.ts +55 -0
- package/dist/components/Docks/DockMotion/audioCache.d.ts +2 -0
- package/dist/components/Docks/DockMotion/index.d.ts +140 -0
- package/dist/components/Docks/index.d.ts +3 -0
- package/dist/components/Grids/AutoMasonryGrid/AutoMasonryGrid.d.ts +1 -0
- package/dist/components/Grids/DenseGrid/DenseGrid.d.ts +1 -0
- package/dist/components/Grids/Grid3DCards/Grid3DCards.d.ts +1 -0
- package/dist/components/Grids/Grid3DCards/PhotoCard.d.ts +6 -0
- package/dist/components/Grids/GridHover/GridHover.d.ts +1 -0
- package/dist/components/Grids/GridViewTransition/GridViewTransition.d.ts +1 -0
- package/dist/components/Grids/LeaningCards/LeaningCards.d.ts +1 -0
- package/dist/components/Grids/index.d.ts +6 -0
- package/dist/components/Hamburgers/BoldHamburger/BoldHamburger.d.ts +1 -0
- package/dist/components/Hamburgers/HamburgerMusic/HamburgerMusic.d.ts +1 -0
- package/dist/components/Hamburgers/HamburgerX/HamburgerX.d.ts +7 -0
- package/dist/components/Hamburgers/index.d.ts +3 -0
- package/dist/components/Headers/Header/Header.d.ts +8 -0
- package/dist/components/Headers/StickyHeader/StickyHeader.d.ts +1 -0
- package/dist/components/Headers/index.d.ts +2 -0
- package/dist/components/Heros/AnimatedHeroTitle/AnimatedHeroTitle.d.ts +1 -0
- package/dist/components/Heros/ContrastBackgroundText/ContrastBackgroundText.d.ts +1 -0
- package/dist/components/Heros/FluidGooeyTextBackground/FluidGooeyTextBackground.d.ts +1 -0
- package/dist/components/Heros/index.d.ts +3 -0
- package/dist/components/Icons/GlassIcon/GlassIcon.d.ts +1 -0
- package/dist/components/Icons/NeumorphicLogo/NeumorphicLogo.d.ts +1 -0
- package/dist/components/Icons/SlidingIcon/SlidingIcon.d.ts +1 -0
- package/dist/components/Icons/SquircleAvatar/SquircleAvatar.d.ts +1 -0
- package/dist/components/Icons/index.d.ts +4 -0
- package/dist/components/Inputs/ClearInput/ClearInput.d.ts +1 -0
- package/dist/components/Inputs/EmailInput/EmailInput.d.ts +1 -0
- package/dist/components/Inputs/FloatingLabelInput/FloatingLabelInput.d.ts +1 -0
- package/dist/components/Inputs/GlowingInput/GlowingInput.d.ts +1 -0
- package/dist/components/Inputs/InputBase/InputBase.d.ts +21 -0
- package/dist/components/Inputs/InputFirework/InputFirework.d.ts +1 -0
- package/dist/components/Inputs/NewsletterInput/NewsletterInput.d.ts +1 -0
- package/dist/components/Inputs/PasswordInput/PasswordInput.d.ts +1 -0
- package/dist/components/Inputs/SearchInput/SearchInput.d.ts +1 -0
- package/dist/components/Inputs/ShadowedClick/ShadowedClick.d.ts +1 -0
- package/dist/components/Inputs/SignatureAnimation/SignatureAnimation.d.ts +6 -0
- package/dist/components/Inputs/SignatureAnimation/SignatureAnimation.letters.d.ts +20 -0
- package/dist/components/Inputs/index.d.ts +12 -0
- package/dist/components/Links/BorderLink/BorderLink.d.ts +4 -0
- package/dist/components/Links/CircleLink/CircleLink.d.ts +4 -0
- package/dist/components/Links/ForwardArrowLink/ForwardArrowLink.d.ts +1 -0
- package/dist/components/Links/PaintedLink/PaintedLink.d.ts +1 -0
- package/dist/components/Links/RegularLink/RegularLink.d.ts +6 -0
- package/dist/components/Links/ShakyLine/ShakyLine.d.ts +1 -0
- package/dist/components/Links/UnderlinedLink/UnderlinedLink.d.ts +6 -0
- package/dist/components/Links/UnderlinedLink2/UnderlinedLink2.d.ts +1 -0
- package/dist/components/Links/index.d.ts +8 -0
- package/dist/components/Loaders/AcrobaticPreloader/AcrobaticPreloader.d.ts +1 -0
- package/dist/components/Loaders/AlienSkeuomorphicLoaders/AlienSkeuomorphicLoaders.d.ts +1 -0
- package/dist/components/Loaders/CanOfDigits/CanOfDigits.d.ts +7 -0
- package/dist/components/Loaders/ChaseLoader/ChaseLoader.d.ts +1 -0
- package/dist/components/Loaders/CircleDotsLoader/CircleDotsLoader.d.ts +5 -0
- package/dist/components/Loaders/CubeLoader/CubeLoader.d.ts +1 -0
- package/dist/components/Loaders/EndlessLoader/EndlessLoader.d.ts +5 -0
- package/dist/components/Loaders/EndlessLoader/gl.d.ts +30 -0
- package/dist/components/Loaders/EndlessLoader/shaders.d.ts +2 -0
- package/dist/components/Loaders/InfiniteLoader/InfiniteLoader.d.ts +1 -0
- package/dist/components/Loaders/LoaderGenerator/LoaderGenerator.d.ts +1 -0
- package/dist/components/Loaders/LoadingBook/LoadingBook.d.ts +1 -0
- package/dist/components/Loaders/LoadingWave/LoadingWave.d.ts +1 -0
- package/dist/components/Loaders/LoadingWave/LoadingWave.utils.d.ts +1 -0
- package/dist/components/Loaders/OffTrackPreloader/OffTrackPreloader.d.ts +1 -0
- package/dist/components/Loaders/PieLoader/PieLoader.d.ts +1 -0
- package/dist/components/Loaders/PulseInLoader/PulseInLoader.d.ts +1 -0
- package/dist/components/Loaders/PulseOutLoader/PulseOutLoader.d.ts +1 -0
- package/dist/components/Loaders/RingLoader/RingLoader.d.ts +6 -0
- package/dist/components/Loaders/RoundScaleLoader/RoundScaleLoader.d.ts +1 -0
- package/dist/components/Loaders/SkateboardPreloader/SkateboardPreloader.d.ts +1 -0
- package/dist/components/Loaders/SmileyPreloader/SmileyPreloader.d.ts +1 -0
- package/dist/components/Loaders/SnowballPreloader/SnowballPreloader.d.ts +1 -0
- package/dist/components/Loaders/SpinningClickAnimation/SpinningClickAnimation.d.ts +8 -0
- package/dist/components/Loaders/StretchyLoader/StretchyLoader.d.ts +1 -0
- package/dist/components/Loaders/StuntPreloader/StuntPreloader.d.ts +1 -0
- package/dist/components/Loaders/SubtleBorderAnimation/SubtleBorderAnimation.d.ts +1 -0
- package/dist/components/Loaders/SuccessLoader/SuccessLoader.d.ts +5 -0
- package/dist/components/Loaders/ThreeDotsLoader/ThreeDotsLoader.d.ts +1 -0
- package/dist/components/Loaders/TimeCirclesLoader/TimeCirclesLoader.d.ts +1 -0
- package/dist/components/Loaders/index.d.ts +27 -0
- package/dist/components/Marquees/CardMarquee/CardMarquee.d.ts +1 -0
- package/dist/components/Marquees/Ticker/Ticker.d.ts +1 -0
- package/dist/components/Marquees/index.d.ts +2 -0
- package/dist/components/Menus/AnimatedIconsNav/AnimatedIconsNav.d.ts +1 -0
- package/dist/components/Menus/AnimatedShareMenu/AnimatedShareMenu.d.ts +1 -0
- package/dist/components/Menus/CurtainRevealMenu/CurtainRevealMenu.d.ts +5 -0
- package/dist/components/Menus/DetachedMenu/DetachedMenu.d.ts +1 -0
- package/dist/components/Menus/DropdownMenu/DropdownMenu.d.ts +11 -0
- package/dist/components/Menus/Futuristic3DHoverMenu/Futuristic3DHoverMenu.d.ts +1 -0
- package/dist/components/Menus/GlowingDropdown/GlowingDropdown.d.ts +1 -0
- package/dist/components/Menus/GlowingDropdown/GlowingSelect.d.ts +6 -0
- package/dist/components/Menus/GlowingTabs/GlowingTab.d.ts +9 -0
- package/dist/components/Menus/GlowingTabs/GlowingTabs.d.ts +1 -0
- package/dist/components/Menus/GlowingTabs2/GlowingTab2.d.ts +10 -0
- package/dist/components/Menus/GlowingTabs2/GlowingTabs2.d.ts +1 -0
- package/dist/components/Menus/MagnifiedNavItems/MagnifiedNavItems.d.ts +1 -0
- package/dist/components/Menus/MobileNavBar/MobileNavBar.d.ts +1 -0
- package/dist/components/Menus/NavigationMenu/NavigationMenu.d.ts +1 -0
- package/dist/components/Menus/ParallaxMenu/ParallaxMenu.d.ts +1 -0
- package/dist/components/Menus/PianoNav/PianoNav.d.ts +1 -0
- package/dist/components/Menus/PinDropdown/PinDropdown.d.ts +1 -0
- package/dist/components/Menus/RadialMenu/RadialMenu.d.ts +1 -0
- package/dist/components/Menus/RadialNavigation/RadialNavigation.d.ts +18 -0
- package/dist/components/Menus/SinglePopoverMenu/SinglePopoverMenu.d.ts +1 -0
- package/dist/components/Menus/TabBarAnimation/TabBarAnimation.d.ts +14 -0
- package/dist/components/Menus/WavyMenu/WavyMenu.d.ts +1 -0
- package/dist/components/Menus/WavyMenu/WavyMenuItem.d.ts +10 -0
- package/dist/components/Menus/index.d.ts +20 -0
- package/dist/components/Pages/BugsPage/BugsPage.d.ts +7 -0
- package/dist/components/Pages/RedirectPage/RedirectPage.d.ts +1 -0
- package/dist/components/Pages/index.d.ts +2 -0
- package/dist/components/Parallax/ParallaxEmoji/ParallaxEmoji.d.ts +7 -0
- package/dist/components/Parallax/index.d.ts +1 -0
- package/dist/components/Players/ApertureVideo/ApertureVideo.d.ts +1 -0
- package/dist/components/Players/GlassMusicPlayer/GlassMusicPlayer.d.ts +13 -0
- package/dist/components/Players/index.d.ts +2 -0
- package/dist/components/Radios/RadioHopping/RadioHopping.d.ts +1 -0
- package/dist/components/Radios/RadioParticles/RadioParticles.d.ts +1 -0
- package/dist/components/Radios/RadioRolling/RadioRolling.d.ts +1 -0
- package/dist/components/Radios/RadioSlidingFocus/RadioSlidingFocus.d.ts +13 -0
- package/dist/components/Radios/index.d.ts +4 -0
- package/dist/components/Scrolls/ScrollCountdown/ScrollCountdown.d.ts +1 -0
- package/dist/components/Scrolls/ScrollDrivenTextBlowOut/ScrollDrivenTextBlowOut.d.ts +1 -0
- package/dist/components/Scrolls/ScrollTextHighlight/ScrollTextHighlight.d.ts +1 -0
- package/dist/components/Scrolls/ScrollTimeline/ScrollTimeline.d.ts +1 -0
- package/dist/components/Scrolls/ScrollWithLight/ScrollWithLight.d.ts +1 -0
- package/dist/components/Scrolls/ScrollingTextReveal/ScrollingTextReveal.d.ts +1 -0
- package/dist/components/Scrolls/index.d.ts +6 -0
- package/dist/components/Sliders/DDDRangeSlider/DDDRangeSlider.d.ts +1 -0
- package/dist/components/Sliders/GlowSlider/GlowSlider.d.ts +1 -0
- package/dist/components/Sliders/NeumorphicSlider/NeumorphicSlider.d.ts +1 -0
- package/dist/components/Sliders/index.d.ts +3 -0
- package/dist/components/Stars/FeedbackReactions/FeedbackReactions.d.ts +1 -0
- package/dist/components/Stars/index.d.ts +1 -0
- package/dist/components/Switches/DaySwitch/DaySwitch.d.ts +1 -0
- package/dist/components/Switches/GlassSwitch/GlassSwitch.d.ts +1 -0
- package/dist/components/Switches/IosSwitch/IosSwitch.d.ts +6 -0
- package/dist/components/Switches/NeonToggleSwitch/NeonToggleSwitch.d.ts +1 -0
- package/dist/components/Switches/NeuromorphicToggle/NeuromorphicToggle.d.ts +5 -0
- package/dist/components/Switches/SegmentedToggle/SegmentedToggle.d.ts +1 -0
- package/dist/components/Switches/StretchToggle/StretchToggle.d.ts +1 -0
- package/dist/components/Switches/SwitchBase/SwitchBase.d.ts +21 -0
- package/dist/components/Switches/TippingSwitch/TippingSwitch.d.ts +5 -0
- package/dist/components/Switches/ToggleBubble/ToggleBubble.d.ts +1 -0
- package/dist/components/Switches/ToggleClipPath/ToggleClipPath.d.ts +1 -0
- package/dist/components/Switches/index.d.ts +11 -0
- package/dist/components/Texts/EnlightenedText/EnlightenedText.d.ts +6 -0
- package/dist/components/Texts/GlowingText/GlowingText.d.ts +1 -0
- package/dist/components/Texts/GrainyGradientText/GrainyGradientText.d.ts +1 -0
- package/dist/components/Texts/JellyText/JellyText.d.ts +6 -0
- package/dist/components/Texts/MagicalText/MagicalText.d.ts +5 -0
- package/dist/components/Texts/ScrambledText/ScrambledText.d.ts +6 -0
- package/dist/components/Texts/ScrambledText/ScrambledText.helpers.d.ts +1 -0
- package/dist/components/Texts/ScramblingLetters/ScramblingLetters.d.ts +1 -0
- package/dist/components/Texts/ShakingText/ShakingText.d.ts +5 -0
- package/dist/components/Texts/ShiningText/ShiningText.d.ts +6 -0
- package/dist/components/Texts/SpiralLoadingText/SpiralLoadingText.d.ts +6 -0
- package/dist/components/Texts/TextMorphing/TextMorphing.d.ts +1 -0
- package/dist/components/Texts/TextOutline/TextOutline.d.ts +1 -0
- package/dist/components/Texts/TextShadow/TextShadow.d.ts +1 -0
- package/dist/components/Texts/WeightText/WeightText.d.ts +5 -0
- package/dist/components/Texts/index.d.ts +14 -0
- package/dist/components/Toasts/Toast.d.ts +6 -0
- package/dist/components/Toasts/Toasts.d.ts +6 -0
- package/dist/components/Tooltips/Tooltip/Tooltip.d.ts +15 -0
- package/dist/components/Tooltips/TooltipRangeSlider/TooltipRangeSlider.d.ts +1 -0
- package/dist/components/Tooltips/index.d.ts +2 -0
- package/dist/components/index.d.ts +123 -0
- package/dist/components/primitives/Cluster/Cluster.d.ts +14 -0
- package/dist/components/primitives/Container/Container.d.ts +13 -0
- package/dist/components/primitives/DialogBase/DialogBase.d.ts +18 -0
- package/dist/components/primitives/FormField/FormField.d.ts +33 -0
- package/dist/components/primitives/FormField/FormFieldContext.d.ts +4 -0
- package/dist/components/primitives/PopoverBase/PopoverBase.d.ts +18 -0
- package/dist/components/primitives/Portal/Portal.d.ts +8 -0
- package/dist/components/primitives/SelectBase/SelectBase.d.ts +23 -0
- package/dist/components/primitives/Slot/Slot.d.ts +12 -0
- package/dist/components/primitives/Stack/Stack.d.ts +14 -0
- package/dist/components/primitives/ThemeProvider/ThemeContext.d.ts +12 -0
- package/dist/components/primitives/ThemeProvider/ThemeProvider.d.ts +18 -0
- package/dist/components/primitives/ThemeProvider/themeDom.d.ts +11 -0
- package/dist/components/primitives/TooltipBase/TooltipBase.d.ts +17 -0
- package/dist/components/primitives/VisuallyHidden/VisuallyHidden.d.ts +7 -0
- package/dist/components/shared/contracts.d.ts +4 -0
- package/dist/components/shared/polymorphic.d.ts +6 -0
- package/dist/components/unsorted/AdjoinedFilters/AdjoinedFilters.d.ts +1 -0
- package/dist/components/unsorted/Appearance/Appearance.d.ts +5 -0
- package/dist/components/unsorted/AreaLight/AreaLight.d.ts +1 -0
- package/dist/components/unsorted/AvatarHover/AvatarHover.d.ts +1 -0
- package/dist/components/unsorted/BackgroundSlider/BackgroundSlider.d.ts +2 -0
- package/dist/components/unsorted/BlurVignette/BlurVignette.d.ts +10 -0
- package/dist/components/unsorted/BlurredBackground/BlurredBackground.d.ts +1 -0
- package/dist/components/unsorted/BorderGradient/BorderGradient.d.ts +1 -0
- package/dist/components/unsorted/BouncyClock/BouncyClock.d.ts +1 -0
- package/dist/components/unsorted/BreakingProgress/BreakingProgress.d.ts +5 -0
- package/dist/components/unsorted/BrownianMotion/BrownianMotion.d.ts +1 -0
- package/dist/components/unsorted/CardDetails/CardDetails.d.ts +1 -0
- package/dist/components/unsorted/ChromaticAberration/ChromaticAberration.d.ts +1 -0
- package/dist/components/unsorted/CircleLinesAnimation/CircleLinesAnimation.d.ts +1 -0
- package/dist/components/unsorted/CircleParticles/CircleParticles.d.ts +1 -0
- package/dist/components/unsorted/CollapseAnimation/CollapseAnimation.d.ts +1 -0
- package/dist/components/unsorted/ContactList/ContactList.d.ts +1 -0
- package/dist/components/unsorted/CookieBanner/CookieBanner.d.ts +1 -0
- package/dist/components/unsorted/Counter/Counter.d.ts +1 -0
- package/dist/components/unsorted/DissolveElementEffect/DissolveElementEffect.d.ts +11 -0
- package/dist/components/unsorted/Duck/Duck.d.ts +1 -0
- package/dist/components/unsorted/DynamicIsland/DynamicIsland.d.ts +5 -0
- package/dist/components/unsorted/FadeUp/FadeUp.d.ts +7 -0
- package/dist/components/unsorted/FileIcons/FileIcons.d.ts +1 -0
- package/dist/components/unsorted/Fingerprint/Fingerprint.d.ts +5 -0
- package/dist/components/unsorted/GlidingReveal/GlidingReveal.d.ts +1 -0
- package/dist/components/unsorted/GlitterCard/GlitterCard.d.ts +1 -0
- package/dist/components/unsorted/GlowingShadows/GlowingShadows.d.ts +1 -0
- package/dist/components/unsorted/GradientBorder/GradientBorder.d.ts +1 -0
- package/dist/components/unsorted/Illumination/Illumination.d.ts +1 -0
- package/dist/components/unsorted/ImageClipping/ImageClipping.d.ts +1 -0
- package/dist/components/unsorted/LandingXYScroll/LandingXYScroll.d.ts +1 -0
- package/dist/components/unsorted/LayeredComponents/LayeredComponents.d.ts +1 -0
- package/dist/components/unsorted/Lock/Lock.d.ts +3 -0
- package/dist/components/unsorted/LoveGlow/LoveGlow.d.ts +1 -0
- package/dist/components/unsorted/Mathober/Mathober.d.ts +1 -0
- package/dist/components/unsorted/MotionDigits/MotionDigits.d.ts +1 -0
- package/dist/components/unsorted/MouseMoveGallery/MouseMoveGallery.d.ts +1 -0
- package/dist/components/unsorted/MouseMoveGallery/MouseMoveGallery.helpers.d.ts +1 -0
- package/dist/components/unsorted/MultiGradientBackground/MultiGradientBackground.d.ts +1 -0
- package/dist/components/unsorted/MultipathSvgAnimation/MultipathSvgAnimation.d.ts +1 -0
- package/dist/components/unsorted/NamedPointer/NamedPointer.d.ts +6 -0
- package/dist/components/unsorted/NotificationBell/NotificationBell.d.ts +1 -0
- package/dist/components/unsorted/PhotoZoom/PhotoZoom.d.ts +1 -0
- package/dist/components/unsorted/PolaroidStack/PolaroidStack.d.ts +1 -0
- package/dist/components/unsorted/QuickTimeClock/QuickTimeClock.d.ts +1 -0
- package/dist/components/unsorted/RealisticSmoke/RealisticSmoke.d.ts +1 -0
- package/dist/components/unsorted/RevealImageAnimation/RevealImageAnimation.d.ts +1 -0
- package/dist/components/unsorted/RhombusGallery/RhombusGallery.d.ts +1 -0
- package/dist/components/unsorted/SchrodingerFormControls/SchrodingerFormControls.d.ts +1 -0
- package/dist/components/unsorted/SegmentedControls/SegmentedControls.d.ts +12 -0
- package/dist/components/unsorted/ShapeSelection/ShapeSelection.d.ts +6 -0
- package/dist/components/unsorted/SlideIn/SlideIn.d.ts +18 -0
- package/dist/components/unsorted/SmokeTextDisappearance/SmokeTextDisappearance.d.ts +5 -0
- package/dist/components/unsorted/SmoothScroll/SmoothScroll.d.ts +1 -0
- package/dist/components/unsorted/SolarEclipse/BaileysBead.d.ts +15 -0
- package/dist/components/unsorted/SolarEclipse/SolarEclipse.d.ts +1 -0
- package/dist/components/unsorted/SolarEclipse/SolarEclipse.helpers.d.ts +12 -0
- package/dist/components/unsorted/SpeechToText/SpeechToText.d.ts +22 -0
- package/dist/components/unsorted/StaticSolarEclipse/StaticSolarEclipse.d.ts +1 -0
- package/dist/components/unsorted/StickyList/StickyList.d.ts +1 -0
- package/dist/components/unsorted/TextImageHover/TextImageHover.d.ts +1 -0
- package/dist/components/unsorted/ThanosDisappearEffect/ThanosDisappearEffect.d.ts +6 -0
- package/dist/components/unsorted/ThanosDisappearEffectList/ThanosDisappearEffectList.d.ts +1 -0
- package/dist/components/unsorted/ThanosDissolve/ThanosDissolve.d.ts +9 -0
- package/dist/components/unsorted/TranslucentBackdrop/TranslucentBackdrop.d.ts +1 -0
- package/dist/components/unsorted/TurbulenceFilter/TurbulenceFilter.d.ts +1 -0
- package/dist/components/unsorted/ViewTransitionAddToCard/ViewTransitionAddToCard.d.ts +1 -0
- package/dist/components/unsorted/ViewTransitionImageGallery/ViewTransitionImageGallery.d.ts +1 -0
- package/dist/components/unsorted/VoiceAnimation/VoiceAnimation.d.ts +1 -0
- package/dist/dat.gui.module-C-Oxsf3K.cjs +2198 -0
- package/dist/dat.gui.module-DscbDI-N.js +2198 -0
- package/dist/{gl-B0NhVYRl.cjs → gl-DEE7rq9M.cjs} +5 -5
- package/dist/global.d.ts +87 -0
- package/dist/hooks/index.d.ts +20 -0
- package/dist/hooks/useAnimatedText/index.d.ts +1 -0
- package/dist/hooks/useAnimatedText/useAnimatedText.d.ts +1 -0
- package/dist/hooks/useBowser.d.ts +11 -0
- package/dist/hooks/useControllableState.d.ts +2 -0
- package/dist/hooks/useDebounce.d.ts +50 -0
- package/dist/hooks/useEffectEvent.d.ts +16 -0
- package/dist/hooks/useFormField.d.ts +36 -0
- package/dist/hooks/useGsapContext.d.ts +20 -0
- package/dist/hooks/useInterval.d.ts +25 -0
- package/dist/hooks/useLiveRef.d.ts +1 -0
- package/dist/hooks/useMatchMedia.d.ts +1 -0
- package/dist/hooks/useMergeRefs.d.ts +5 -0
- package/dist/hooks/useOklch.d.ts +1 -0
- package/dist/hooks/useOutsideClick.d.ts +22 -0
- package/dist/hooks/usePrevious.d.ts +2 -0
- package/dist/hooks/useRaf.d.ts +24 -0
- package/dist/hooks/useReducedMotion.d.ts +2 -0
- package/dist/hooks/useThrottle.d.ts +20 -0
- package/dist/hooks/useTimeout.d.ts +25 -0
- package/dist/hooks/useWindowReady.d.ts +1 -0
- package/dist/hooks.cjs +21 -35
- package/dist/hooks.js +19 -33
- package/dist/index.cjs +317 -2807
- package/dist/index.d.ts +5 -2588
- package/dist/index.js +310 -2800
- package/dist/internal/assets.d.ts +18 -0
- package/dist/layout.cjs +1 -1
- package/dist/layout.d.ts +7 -45
- package/dist/primitives.cjs +1 -1
- package/dist/primitives.d.ts +18 -178
- package/dist/primitives.js +1 -1
- package/dist/server.d.ts +5 -70
- package/dist/styles.css +483 -483
- package/dist/test/a11y.d.ts +5 -0
- package/dist/test/setup.d.ts +2 -0
- package/dist/tokens/animation.d.ts +38 -0
- package/dist/tokens/colorValidation.d.ts +18 -0
- package/dist/tokens/index.d.ts +8 -0
- package/dist/tokens/spring.d.ts +39 -0
- package/dist/tokens/tokens.d.ts +333 -0
- package/dist/tokens.d.ts +2 -436
- package/dist/utils/array/index.d.ts +2 -0
- package/dist/utils/array/move.d.ts +1 -0
- package/dist/utils/array/times.d.ts +1 -0
- package/dist/utils/collections/BoundedMap.d.ts +19 -0
- package/dist/utils/collections/index.d.ts +2 -0
- package/dist/utils/common/index.d.ts +2 -0
- package/dist/utils/common/logger.d.ts +36 -0
- package/dist/utils/common/noop.d.ts +1 -0
- package/dist/utils/conditional/index.d.ts +3 -0
- package/dist/utils/conditional/is.d.ts +3 -0
- package/dist/utils/conditional/isNonNullable.d.ts +1 -0
- package/dist/utils/conditional/notReachable.d.ts +1 -0
- package/dist/utils/error.d.ts +6 -0
- package/dist/utils/format.d.ts +10 -0
- package/dist/utils/index.d.ts +14 -0
- package/dist/utils/math.d.ts +6 -0
- package/dist/utils/object/index.d.ts +2 -0
- package/dist/utils/object/keys.d.ts +1 -0
- package/dist/utils/object/values.d.ts +1 -0
- package/dist/utils/presence.d.ts +16 -0
- package/dist/utils/promise.d.ts +2 -0
- package/dist/utils/svg.d.ts +1 -0
- package/dist/utils/ui/chain.d.ts +2 -0
- package/dist/utils/ui/index.d.ts +1 -0
- package/dist/utils/viewTransition.d.ts +17 -0
- package/package.json +25 -25
- package/dist/hooks.d.ts +0 -291
- package/dist/utils.d.ts +0 -165
- /package/dist/{gl-BipoEx9s.js → gl-D6wtjXIm.js} +0 -0
package/dist/index.cjs
CHANGED
|
@@ -7,19 +7,19 @@ const require_values = require("./values-BqSJ0h9o.cjs");
|
|
|
7
7
|
const require_utils = require("./utils-BGgmkNY4.cjs");
|
|
8
8
|
const require_animation = require("./animation-BauloIgQ.cjs");
|
|
9
9
|
const require_assets = require("./assets-BMqH4phf.cjs");
|
|
10
|
-
const require_SelectBase = require("./SelectBase-
|
|
11
|
-
const require_Container = require("./Container-
|
|
10
|
+
const require_SelectBase = require("./SelectBase-CKsJgF0R.cjs");
|
|
11
|
+
const require_Container = require("./Container-DBXALrl1.cjs");
|
|
12
12
|
const require_tokens = require("./tokens-Nhzxtwvl.cjs");
|
|
13
13
|
let clsx = require("clsx");
|
|
14
|
-
clsx = require_chunk.__toESM(clsx);
|
|
14
|
+
clsx = require_chunk.__toESM(clsx, 1);
|
|
15
15
|
let react = require("react");
|
|
16
16
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
17
17
|
let three = require("three");
|
|
18
|
-
three = require_chunk.__toESM(three);
|
|
18
|
+
three = require_chunk.__toESM(three, 1);
|
|
19
19
|
let gsap = require("gsap");
|
|
20
|
-
gsap = require_chunk.__toESM(gsap);
|
|
20
|
+
gsap = require_chunk.__toESM(gsap, 1);
|
|
21
21
|
let canvas_confetti = require("canvas-confetti");
|
|
22
|
-
canvas_confetti = require_chunk.__toESM(canvas_confetti);
|
|
22
|
+
canvas_confetti = require_chunk.__toESM(canvas_confetti, 1);
|
|
23
23
|
let motion_react = require("motion/react");
|
|
24
24
|
let react_icons_im = require("react-icons/im");
|
|
25
25
|
let gsap_DrawSVGPlugin = require("gsap/DrawSVGPlugin");
|
|
@@ -29,14 +29,14 @@ let react_icons_go = require("react-icons/go");
|
|
|
29
29
|
let react_icons_rx = require("react-icons/rx");
|
|
30
30
|
let _floating_ui_react = require("@floating-ui/react");
|
|
31
31
|
let react_dom = require("react-dom");
|
|
32
|
-
react_dom = require_chunk.__toESM(react_dom);
|
|
32
|
+
react_dom = require_chunk.__toESM(react_dom, 1);
|
|
33
33
|
let swiper_react = require("swiper/react");
|
|
34
34
|
let howler = require("howler");
|
|
35
35
|
let react_icons_md = require("react-icons/md");
|
|
36
36
|
let _react_spring_web = require("@react-spring/web");
|
|
37
37
|
let _use_gesture_react = require("@use-gesture/react");
|
|
38
38
|
let html2canvas = require("html2canvas");
|
|
39
|
-
html2canvas = require_chunk.__toESM(html2canvas);
|
|
39
|
+
html2canvas = require_chunk.__toESM(html2canvas, 1);
|
|
40
40
|
var Expand_module_default = {
|
|
41
41
|
root: "_root_1k8u7_1",
|
|
42
42
|
isExpanded: "_isExpanded_1k8u7_9",
|
|
@@ -695,20 +695,13 @@ var AnimatedHoverGlowButton = () => {
|
|
|
695
695
|
})]
|
|
696
696
|
});
|
|
697
697
|
};
|
|
698
|
-
//#endregion
|
|
699
|
-
//#region src/components/Buttons/AuroraButton/AuroraButton.module.scss
|
|
700
|
-
var root$283 = "_root_1r19c_1";
|
|
701
|
-
var background$6 = "_background_1r19c_9";
|
|
702
|
-
var inner$1 = "_inner_1r19c_45";
|
|
703
|
-
var label$17 = "_label_1r19c_48";
|
|
704
|
-
var labelBackground = "_labelBackground_1r19c_112";
|
|
705
698
|
var AuroraButton_module_default = {
|
|
706
|
-
root:
|
|
707
|
-
background:
|
|
699
|
+
root: "_root_1r19c_1",
|
|
700
|
+
background: "_background_1r19c_9",
|
|
708
701
|
"btn-glow": "_btn-glow_1r19c_1",
|
|
709
|
-
inner:
|
|
710
|
-
label:
|
|
711
|
-
labelBackground,
|
|
702
|
+
inner: "_inner_1r19c_45",
|
|
703
|
+
label: "_label_1r19c_48",
|
|
704
|
+
labelBackground: "_labelBackground_1r19c_112",
|
|
712
705
|
"noise-background": "_noise-background_1r19c_1"
|
|
713
706
|
};
|
|
714
707
|
//#endregion
|
|
@@ -766,31 +759,31 @@ var BubblyParticlesButton = () => {
|
|
|
766
759
|
});
|
|
767
760
|
};
|
|
768
761
|
var BurningButton_module_default = {
|
|
769
|
-
root: "
|
|
770
|
-
button: "
|
|
771
|
-
p: "
|
|
772
|
-
text: "
|
|
773
|
-
rise1: "
|
|
774
|
-
rise2: "
|
|
775
|
-
rise3: "
|
|
776
|
-
rise4: "
|
|
777
|
-
rise5: "
|
|
778
|
-
rise6: "
|
|
779
|
-
rise7: "
|
|
780
|
-
rise8: "
|
|
781
|
-
rise9: "
|
|
782
|
-
rise10: "
|
|
783
|
-
rise11: "
|
|
784
|
-
rise12: "
|
|
785
|
-
rise13: "
|
|
786
|
-
rise14: "
|
|
787
|
-
rise15: "
|
|
788
|
-
rise16: "
|
|
789
|
-
rise17: "
|
|
790
|
-
rise18: "
|
|
791
|
-
rise19: "
|
|
792
|
-
rise20: "
|
|
793
|
-
effects: "
|
|
762
|
+
root: "_root_3m8e4_1",
|
|
763
|
+
button: "_button_3m8e4_11",
|
|
764
|
+
p: "_p_3m8e4_24",
|
|
765
|
+
text: "_text_3m8e4_24",
|
|
766
|
+
rise1: "_rise1_3m8e4_1",
|
|
767
|
+
rise2: "_rise2_3m8e4_1",
|
|
768
|
+
rise3: "_rise3_3m8e4_1",
|
|
769
|
+
rise4: "_rise4_3m8e4_1",
|
|
770
|
+
rise5: "_rise5_3m8e4_1",
|
|
771
|
+
rise6: "_rise6_3m8e4_1",
|
|
772
|
+
rise7: "_rise7_3m8e4_1",
|
|
773
|
+
rise8: "_rise8_3m8e4_1",
|
|
774
|
+
rise9: "_rise9_3m8e4_1",
|
|
775
|
+
rise10: "_rise10_3m8e4_1",
|
|
776
|
+
rise11: "_rise11_3m8e4_1",
|
|
777
|
+
rise12: "_rise12_3m8e4_1",
|
|
778
|
+
rise13: "_rise13_3m8e4_1",
|
|
779
|
+
rise14: "_rise14_3m8e4_1",
|
|
780
|
+
rise15: "_rise15_3m8e4_1",
|
|
781
|
+
rise16: "_rise16_3m8e4_1",
|
|
782
|
+
rise17: "_rise17_3m8e4_1",
|
|
783
|
+
rise18: "_rise18_3m8e4_1",
|
|
784
|
+
rise19: "_rise19_3m8e4_1",
|
|
785
|
+
rise20: "_rise20_3m8e4_1",
|
|
786
|
+
effects: "_effects_3m8e4_238"
|
|
794
787
|
};
|
|
795
788
|
//#endregion
|
|
796
789
|
//#region src/components/Buttons/BurningButton/BurningButton.tsx
|
|
@@ -2831,18 +2824,12 @@ var GodRaysButton = () => {
|
|
|
2831
2824
|
})]
|
|
2832
2825
|
});
|
|
2833
2826
|
};
|
|
2834
|
-
//#endregion
|
|
2835
|
-
//#region src/components/Buttons/GoHoverButton/GoHoverButton.module.scss
|
|
2836
|
-
var root$260 = "_root_1ct4r_1";
|
|
2837
|
-
var arrow$3 = "_arrow_1ct4r_17";
|
|
2838
|
-
var arrowItem = "_arrowItem_1ct4r_32";
|
|
2839
|
-
var label$16 = "_label_1ct4r_62";
|
|
2840
2827
|
var GoHoverButton_module_default = {
|
|
2841
|
-
root:
|
|
2842
|
-
arrow:
|
|
2843
|
-
arrowItem,
|
|
2828
|
+
root: "_root_1ct4r_1",
|
|
2829
|
+
arrow: "_arrow_1ct4r_17",
|
|
2830
|
+
arrowItem: "_arrowItem_1ct4r_32",
|
|
2844
2831
|
"move-right": "_move-right_1ct4r_1",
|
|
2845
|
-
label:
|
|
2832
|
+
label: "_label_1ct4r_62"
|
|
2846
2833
|
};
|
|
2847
2834
|
//#endregion
|
|
2848
2835
|
//#region src/components/Buttons/GoHoverButton/GoHoverButton.tsx
|
|
@@ -3842,10 +3829,10 @@ var NeonButton = ({ className, ...rest }) => {
|
|
|
3842
3829
|
});
|
|
3843
3830
|
};
|
|
3844
3831
|
var NoisyButton_module_default = {
|
|
3845
|
-
root: "
|
|
3846
|
-
i: "
|
|
3847
|
-
noise: "
|
|
3848
|
-
text: "
|
|
3832
|
+
root: "_root_1ne5x_2",
|
|
3833
|
+
i: "_i_1ne5x_22",
|
|
3834
|
+
noise: "_noise_1ne5x_1",
|
|
3835
|
+
text: "_text_1ne5x_482"
|
|
3849
3836
|
};
|
|
3850
3837
|
//#endregion
|
|
3851
3838
|
//#region src/components/Buttons/NoisyButton/NoisyButton.tsx
|
|
@@ -4050,19 +4037,13 @@ var PlayPauseButton = () => {
|
|
|
4050
4037
|
})
|
|
4051
4038
|
});
|
|
4052
4039
|
};
|
|
4053
|
-
//#endregion
|
|
4054
|
-
//#region src/components/Buttons/PlayPauseMusicButton/PlayPauseMusicButton.module.scss
|
|
4055
|
-
var root$246 = "_root_1hxbd_1";
|
|
4056
|
-
var paused = "_paused_1hxbd_58";
|
|
4057
|
-
var playing = "_playing_1hxbd_69";
|
|
4058
|
-
var char$3 = "_char_1hxbd_81";
|
|
4059
4040
|
var PlayPauseMusicButton_module_default = {
|
|
4060
|
-
root:
|
|
4061
|
-
paused,
|
|
4041
|
+
root: "_root_1hxbd_1",
|
|
4042
|
+
paused: "_paused_1hxbd_58",
|
|
4062
4043
|
"to-play": "_to-play_1hxbd_1",
|
|
4063
|
-
playing,
|
|
4044
|
+
playing: "_playing_1hxbd_69",
|
|
4064
4045
|
"to-pause": "_to-pause_1hxbd_1",
|
|
4065
|
-
char:
|
|
4046
|
+
char: "_char_1hxbd_81",
|
|
4066
4047
|
"background-paused": "_background-paused_1hxbd_1",
|
|
4067
4048
|
"background-playing": "_background-playing_1hxbd_1"
|
|
4068
4049
|
};
|
|
@@ -4557,18 +4538,12 @@ var PsychedelicButton = ({ variant }) => {
|
|
|
4557
4538
|
})
|
|
4558
4539
|
})] });
|
|
4559
4540
|
};
|
|
4560
|
-
//#endregion
|
|
4561
|
-
//#region src/components/Buttons/RepostButton/RepostButton.module.scss
|
|
4562
|
-
var root$241 = "_root_qhbgz_1";
|
|
4563
|
-
var button$15 = "_button_qhbgz_8";
|
|
4564
|
-
var img$11 = "_img_qhbgz_29";
|
|
4565
|
-
var sr$7 = "_sr_qhbgz_53";
|
|
4566
4541
|
var RepostButton_module_default = {
|
|
4567
|
-
root:
|
|
4568
|
-
button:
|
|
4569
|
-
img:
|
|
4542
|
+
root: "_root_qhbgz_1",
|
|
4543
|
+
button: "_button_qhbgz_8",
|
|
4544
|
+
img: "_img_qhbgz_29",
|
|
4570
4545
|
"sprite-play": "_sprite-play_qhbgz_1",
|
|
4571
|
-
sr:
|
|
4546
|
+
sr: "_sr_qhbgz_53"
|
|
4572
4547
|
};
|
|
4573
4548
|
//#endregion
|
|
4574
4549
|
//#region src/components/Buttons/RepostButton/RepostButton.tsx
|
|
@@ -4615,28 +4590,17 @@ var RubberButton = () => {
|
|
|
4615
4590
|
})]
|
|
4616
4591
|
});
|
|
4617
4592
|
};
|
|
4618
|
-
//#endregion
|
|
4619
|
-
//#region src/components/Buttons/RunningButton/RunningButton.module.scss
|
|
4620
|
-
var running = "_running_vg306_1";
|
|
4621
|
-
var outer$1 = "_outer_vg306_7";
|
|
4622
|
-
var body = "_body_vg306_11";
|
|
4623
|
-
var arm = "_arm_vg306_31";
|
|
4624
|
-
var leg = "_leg_vg306_33";
|
|
4625
|
-
var front = "_front_vg306_51";
|
|
4626
|
-
var behind = "_behind_vg306_59";
|
|
4627
|
-
var runningButton = "_runningButton_vg306_105";
|
|
4628
|
-
var active$27 = "_active_vg306_141";
|
|
4629
4593
|
var RunningButton_module_default = {
|
|
4630
|
-
running,
|
|
4631
|
-
outer:
|
|
4632
|
-
body,
|
|
4633
|
-
arm,
|
|
4634
|
-
leg,
|
|
4635
|
-
front,
|
|
4636
|
-
behind,
|
|
4637
|
-
runningButton,
|
|
4594
|
+
running: "_running_vg306_1",
|
|
4595
|
+
outer: "_outer_vg306_7",
|
|
4596
|
+
body: "_body_vg306_11",
|
|
4597
|
+
arm: "_arm_vg306_31",
|
|
4598
|
+
leg: "_leg_vg306_33",
|
|
4599
|
+
front: "_front_vg306_51",
|
|
4600
|
+
behind: "_behind_vg306_59",
|
|
4601
|
+
runningButton: "_runningButton_vg306_105",
|
|
4638
4602
|
"default": "_default_vg306_138",
|
|
4639
|
-
active:
|
|
4603
|
+
active: "_active_vg306_141",
|
|
4640
4604
|
"arm-leg": "_arm-leg_vg306_1",
|
|
4641
4605
|
"arm-b": "_arm-b_vg306_1"
|
|
4642
4606
|
};
|
|
@@ -4822,12 +4786,14 @@ function MacCursor() {
|
|
|
4822
4786
|
var scale$2 = (number, inMin, inMax, outMin, outMax) => {
|
|
4823
4787
|
return (number - inMin) * (outMax - outMin) / (inMax - inMin) + outMin;
|
|
4824
4788
|
};
|
|
4789
|
+
var CAMERA_WIDTH = 600;
|
|
4790
|
+
var CAMERA_HEIGHT = 600;
|
|
4825
4791
|
function getDefaultReflectiveButtonVideoConstraints() {
|
|
4826
4792
|
return {
|
|
4827
4793
|
audio: false,
|
|
4828
4794
|
video: {
|
|
4829
|
-
width: { ideal:
|
|
4830
|
-
height: { ideal:
|
|
4795
|
+
width: { ideal: CAMERA_WIDTH },
|
|
4796
|
+
height: { ideal: CAMERA_HEIGHT },
|
|
4831
4797
|
facingMode: "user"
|
|
4832
4798
|
}
|
|
4833
4799
|
};
|
|
@@ -5196,16 +5162,11 @@ function ReflectiveButton({ children, className, style, disabled = false, roughn
|
|
|
5196
5162
|
})]
|
|
5197
5163
|
});
|
|
5198
5164
|
}
|
|
5199
|
-
//#endregion
|
|
5200
|
-
//#region src/components/Buttons/ShinyCtaButton/ShinyCtaButton.module.scss
|
|
5201
|
-
var shinyCta = "_shinyCta_y36is_33";
|
|
5202
|
-
var shimmer = "_shimmer_y36is_1";
|
|
5203
|
-
var breathe = "_breathe_y36is_1";
|
|
5204
5165
|
var ShinyCtaButton_module_default = {
|
|
5205
|
-
shinyCta,
|
|
5166
|
+
shinyCta: "_shinyCta_y36is_33",
|
|
5206
5167
|
"gradient-angle": "_gradient-angle_y36is_1",
|
|
5207
|
-
shimmer,
|
|
5208
|
-
breathe
|
|
5168
|
+
shimmer: "_shimmer_y36is_1",
|
|
5169
|
+
breathe: "_breathe_y36is_1"
|
|
5209
5170
|
};
|
|
5210
5171
|
//#endregion
|
|
5211
5172
|
//#region src/components/Buttons/ShinyCtaButton/ShinyCtaButton.tsx
|
|
@@ -5378,35 +5339,21 @@ var SlidingStepper = () => {
|
|
|
5378
5339
|
]
|
|
5379
5340
|
});
|
|
5380
5341
|
};
|
|
5381
|
-
//#endregion
|
|
5382
|
-
//#region src/components/Buttons/SparkleButton/SparkleButton.module.scss
|
|
5383
|
-
var root$234 = "_root_noa3x_1";
|
|
5384
|
-
var button$12 = "_button_noa3x_8";
|
|
5385
|
-
var bounce$2 = "_bounce_noa3x_1";
|
|
5386
|
-
var bodydrop = "_bodydrop_noa3x_54";
|
|
5387
|
-
var sparkle = "_sparkle_noa3x_69";
|
|
5388
|
-
var spark = "_spark_noa3x_69";
|
|
5389
|
-
var flip$2 = "_flip_noa3x_1";
|
|
5390
|
-
var rotate$5 = "_rotate_noa3x_1";
|
|
5391
|
-
var backdrop = "_backdrop_noa3x_127";
|
|
5392
|
-
var particlePen = "_particlePen_noa3x_156";
|
|
5393
|
-
var particle$2 = "_particle_noa3x_54";
|
|
5394
|
-
var text$23 = "_text_noa3x_190";
|
|
5395
5342
|
var SparkleButton_module_default = {
|
|
5396
|
-
root:
|
|
5397
|
-
button:
|
|
5398
|
-
bounce:
|
|
5399
|
-
bodydrop,
|
|
5343
|
+
root: "_root_noa3x_1",
|
|
5344
|
+
button: "_button_noa3x_8",
|
|
5345
|
+
bounce: "_bounce_noa3x_1",
|
|
5346
|
+
bodydrop: "_bodydrop_noa3x_54",
|
|
5400
5347
|
"particle-pen": "_particle-pen_noa3x_54",
|
|
5401
|
-
sparkle,
|
|
5402
|
-
spark,
|
|
5403
|
-
flip:
|
|
5404
|
-
rotate:
|
|
5405
|
-
backdrop,
|
|
5406
|
-
particlePen,
|
|
5407
|
-
particle:
|
|
5348
|
+
sparkle: "_sparkle_noa3x_69",
|
|
5349
|
+
spark: "_spark_noa3x_69",
|
|
5350
|
+
flip: "_flip_noa3x_1",
|
|
5351
|
+
rotate: "_rotate_noa3x_1",
|
|
5352
|
+
backdrop: "_backdrop_noa3x_127",
|
|
5353
|
+
particlePen: "_particlePen_noa3x_156",
|
|
5354
|
+
particle: "_particle_noa3x_54",
|
|
5408
5355
|
"float-out": "_float-out_noa3x_1",
|
|
5409
|
-
text:
|
|
5356
|
+
text: "_text_noa3x_190"
|
|
5410
5357
|
};
|
|
5411
5358
|
//#endregion
|
|
5412
5359
|
//#region src/components/Buttons/SparkleButton/SparkleButton.tsx
|
|
@@ -6359,34 +6306,21 @@ var EnvelopeTile = ({ className = "", header, children }) => /* @__PURE__ */ (0,
|
|
|
6359
6306
|
children
|
|
6360
6307
|
]
|
|
6361
6308
|
});
|
|
6362
|
-
//#endregion
|
|
6363
|
-
//#region src/components/Cards/GlowingTile/GlowingTile.module.scss
|
|
6364
|
-
var root$215 = "_root_y27fb_1";
|
|
6365
|
-
var card$10 = "_card_y27fb_30";
|
|
6366
|
-
var contentWrapper = "_contentWrapper_y27fb_43";
|
|
6367
|
-
var glow$9 = "_glow_y27fb_49";
|
|
6368
|
-
var content$13 = "_content_y27fb_43";
|
|
6369
|
-
var reset = "_reset_y27fb_99";
|
|
6370
|
-
var speed$1 = "_speed_y27fb_112";
|
|
6371
|
-
var button$10 = "_button_y27fb_119";
|
|
6372
|
-
var minus = "_minus_y27fb_127";
|
|
6373
|
-
var plus = "_plus_y27fb_127";
|
|
6374
|
-
var rotate$3 = "_rotate_y27fb_1";
|
|
6375
6309
|
var GlowingTile_module_default = {
|
|
6376
|
-
root:
|
|
6377
|
-
card:
|
|
6378
|
-
contentWrapper,
|
|
6310
|
+
root: "_root_y27fb_1",
|
|
6311
|
+
card: "_card_y27fb_30",
|
|
6312
|
+
contentWrapper: "_contentWrapper_y27fb_43",
|
|
6379
6313
|
"shadow-pulse": "_shadow-pulse_y27fb_1",
|
|
6380
|
-
glow:
|
|
6381
|
-
content:
|
|
6382
|
-
reset,
|
|
6383
|
-
speed:
|
|
6384
|
-
button:
|
|
6385
|
-
minus,
|
|
6386
|
-
plus,
|
|
6314
|
+
glow: "_glow_y27fb_49",
|
|
6315
|
+
content: "_content_y27fb_43",
|
|
6316
|
+
reset: "_reset_y27fb_99",
|
|
6317
|
+
speed: "_speed_y27fb_112",
|
|
6318
|
+
button: "_button_y27fb_119",
|
|
6319
|
+
minus: "_minus_y27fb_127",
|
|
6320
|
+
plus: "_plus_y27fb_127",
|
|
6387
6321
|
"hue-animation": "_hue-animation_y27fb_1",
|
|
6388
6322
|
"rotate-bg": "_rotate-bg_y27fb_1",
|
|
6389
|
-
rotate:
|
|
6323
|
+
rotate: "_rotate_y27fb_1"
|
|
6390
6324
|
};
|
|
6391
6325
|
//#endregion
|
|
6392
6326
|
//#region src/components/Cards/GlowingTile/GlowingTile.tsx
|
|
@@ -6437,20 +6371,13 @@ var GlowingTile = () => {
|
|
|
6437
6371
|
})
|
|
6438
6372
|
});
|
|
6439
6373
|
};
|
|
6440
|
-
//#endregion
|
|
6441
|
-
//#region src/components/Cards/GradientGlowingTile/GradientGlowingTile.module.scss
|
|
6442
|
-
var root$214 = "_root_1r9v7_1";
|
|
6443
|
-
var glow$8 = "_glow_1r9v7_52";
|
|
6444
|
-
var rotate$2 = "_rotate_1r9v7_1";
|
|
6445
|
-
var content$12 = "_content_1r9v7_95";
|
|
6446
|
-
var highlight$3 = "_highlight_1r9v7_112";
|
|
6447
6374
|
var GradientGlowingTile_module_default = {
|
|
6448
|
-
root:
|
|
6449
|
-
glow:
|
|
6450
|
-
rotate:
|
|
6375
|
+
root: "_root_1r9v7_1",
|
|
6376
|
+
glow: "_glow_1r9v7_52",
|
|
6377
|
+
rotate: "_rotate_1r9v7_1",
|
|
6451
6378
|
"hue-animation": "_hue-animation_1r9v7_1",
|
|
6452
|
-
content:
|
|
6453
|
-
highlight:
|
|
6379
|
+
content: "_content_1r9v7_95",
|
|
6380
|
+
highlight: "_highlight_1r9v7_112",
|
|
6454
6381
|
"rotate-bg": "_rotate-bg_1r9v7_1",
|
|
6455
6382
|
"shadow-pulse": "_shadow-pulse_1r9v7_1"
|
|
6456
6383
|
};
|
|
@@ -7081,22 +7008,14 @@ var StackingCards = () => {
|
|
|
7081
7008
|
]
|
|
7082
7009
|
});
|
|
7083
7010
|
};
|
|
7084
|
-
//#endregion
|
|
7085
|
-
//#region src/components/Carousels/BulletsCarousel/BulletsCarousel.module.scss
|
|
7086
|
-
var root$205 = "_root_kzbpe_1";
|
|
7087
|
-
var carousel$1 = "_carousel_kzbpe_10";
|
|
7088
|
-
var entries = "_entries_kzbpe_18";
|
|
7089
|
-
var bullets = "_bullets_kzbpe_49";
|
|
7090
|
-
var bullet = "_bullet_kzbpe_49";
|
|
7091
|
-
var srOnly$4 = "_srOnly_kzbpe_92";
|
|
7092
7011
|
var BulletsCarousel_module_default = {
|
|
7093
|
-
root:
|
|
7094
|
-
carousel:
|
|
7095
|
-
entries,
|
|
7096
|
-
bullets,
|
|
7012
|
+
root: "_root_kzbpe_1",
|
|
7013
|
+
carousel: "_carousel_kzbpe_10",
|
|
7014
|
+
entries: "_entries_kzbpe_18",
|
|
7015
|
+
bullets: "_bullets_kzbpe_49",
|
|
7097
7016
|
"colorize-dot": "_colorize-dot_kzbpe_1",
|
|
7098
|
-
bullet,
|
|
7099
|
-
srOnly:
|
|
7017
|
+
bullet: "_bullet_kzbpe_49",
|
|
7018
|
+
srOnly: "_srOnly_kzbpe_92"
|
|
7100
7019
|
};
|
|
7101
7020
|
//#endregion
|
|
7102
7021
|
//#region src/components/Carousels/BulletsCarousel/BulletsCarousel.tsx
|
|
@@ -7314,20 +7233,13 @@ var CardCarousel = ({ items = MOCK_CARD_CAROUSEL_ITEMS }) => {
|
|
|
7314
7233
|
}, item.id))]
|
|
7315
7234
|
});
|
|
7316
7235
|
};
|
|
7317
|
-
//#endregion
|
|
7318
|
-
//#region src/components/Carousels/CoverFlowGallery/CoverFlowGallery.module.scss
|
|
7319
|
-
var root$203 = "_root_m3ecj_1";
|
|
7320
|
-
var cards$1 = "_cards_m3ecj_15";
|
|
7321
|
-
var active$22 = "_active_m3ecj_29";
|
|
7322
|
-
var card$7 = "_card_m3ecj_15";
|
|
7323
|
-
var image$15 = "_image_m3ecj_55";
|
|
7324
7236
|
var CoverFlowGallery_module_default = {
|
|
7325
|
-
root:
|
|
7326
|
-
cards:
|
|
7327
|
-
active:
|
|
7328
|
-
card:
|
|
7237
|
+
root: "_root_m3ecj_1",
|
|
7238
|
+
cards: "_cards_m3ecj_15",
|
|
7239
|
+
active: "_active_m3ecj_29",
|
|
7240
|
+
card: "_card_m3ecj_15",
|
|
7329
7241
|
"adjust-z-index": "_adjust-z-index_m3ecj_1",
|
|
7330
|
-
image:
|
|
7242
|
+
image: "_image_m3ecj_55",
|
|
7331
7243
|
"rotate-cover": "_rotate-cover_m3ecj_1"
|
|
7332
7244
|
};
|
|
7333
7245
|
//#endregion
|
|
@@ -7496,22 +7408,14 @@ var FullScreenImageCarousel = () => {
|
|
|
7496
7408
|
})]
|
|
7497
7409
|
});
|
|
7498
7410
|
};
|
|
7499
|
-
//#endregion
|
|
7500
|
-
//#region src/components/Carousels/GalleryReverseScroll/GalleryReverseScroll.module.scss
|
|
7501
|
-
var root$201 = "_root_19n3c_1";
|
|
7502
|
-
var column = "_column_19n3c_11";
|
|
7503
|
-
var reverse = "_reverse_19n3c_17";
|
|
7504
|
-
var columnItem = "_columnItem_19n3c_24";
|
|
7505
|
-
var itemImgWrap = "_itemImgWrap_19n3c_32";
|
|
7506
|
-
var itemCaption = "_itemCaption_19n3c_47";
|
|
7507
7411
|
var GalleryReverseScroll_module_default = {
|
|
7508
|
-
root:
|
|
7509
|
-
column,
|
|
7510
|
-
reverse,
|
|
7412
|
+
root: "_root_19n3c_1",
|
|
7413
|
+
column: "_column_19n3c_11",
|
|
7414
|
+
reverse: "_reverse_19n3c_17",
|
|
7511
7415
|
"adjust-position": "_adjust-position_19n3c_1",
|
|
7512
|
-
columnItem,
|
|
7513
|
-
itemImgWrap,
|
|
7514
|
-
itemCaption
|
|
7416
|
+
columnItem: "_columnItem_19n3c_24",
|
|
7417
|
+
itemImgWrap: "_itemImgWrap_19n3c_32",
|
|
7418
|
+
itemCaption: "_itemCaption_19n3c_47"
|
|
7515
7419
|
};
|
|
7516
7420
|
//#endregion
|
|
7517
7421
|
//#region src/components/Carousels/GalleryReverseScroll/GalleryReverseScroll.tsx
|
|
@@ -9222,23 +9126,15 @@ var SplashCursor = ({ onClick = require_values.noop }) => {
|
|
|
9222
9126
|
className: SplashCursor_module_default.root
|
|
9223
9127
|
});
|
|
9224
9128
|
};
|
|
9225
|
-
//#endregion
|
|
9226
|
-
//#region src/components/Cursors/MagicMouseEffect/MagicMouseEffect.module.scss
|
|
9227
|
-
var root$182 = "_root_im3gj_1";
|
|
9228
|
-
var glow$7 = "_glow_im3gj_5";
|
|
9229
|
-
var star$2 = "_star_im3gj_12";
|
|
9230
|
-
var fall1 = "_fall1_im3gj_25";
|
|
9231
|
-
var fall2 = "_fall2_im3gj_29";
|
|
9232
|
-
var fall3 = "_fall3_im3gj_33";
|
|
9233
9129
|
var MagicMouseEffect_module_default = {
|
|
9234
|
-
root:
|
|
9235
|
-
glow:
|
|
9236
|
-
star:
|
|
9237
|
-
fall1,
|
|
9130
|
+
root: "_root_im3gj_1",
|
|
9131
|
+
glow: "_glow_im3gj_5",
|
|
9132
|
+
star: "_star_im3gj_12",
|
|
9133
|
+
fall1: "_fall1_im3gj_25",
|
|
9238
9134
|
"fall-1": "_fall-1_im3gj_1",
|
|
9239
|
-
fall2,
|
|
9135
|
+
fall2: "_fall2_im3gj_29",
|
|
9240
9136
|
"fall-2": "_fall-2_im3gj_1",
|
|
9241
|
-
fall3,
|
|
9137
|
+
fall3: "_fall3_im3gj_33",
|
|
9242
9138
|
"fall-3": "_fall-3_im3gj_1"
|
|
9243
9139
|
};
|
|
9244
9140
|
//#endregion
|
|
@@ -10988,35 +10884,22 @@ var Header = ({ children, className = "", contentClassName = "" }) => /* @__PURE
|
|
|
10988
10884
|
children
|
|
10989
10885
|
})
|
|
10990
10886
|
});
|
|
10991
|
-
//#endregion
|
|
10992
|
-
//#region src/components/Headers/StickyHeader/StickyHeader.module.scss
|
|
10993
|
-
var root$163 = "_root_m9k88_1";
|
|
10994
|
-
var main$4 = "_main_m9k88_6";
|
|
10995
|
-
var col$1 = "_col_m9k88_13";
|
|
10996
|
-
var avatar$2 = "_avatar_m9k88_19";
|
|
10997
|
-
var meta = "_meta_m9k88_27";
|
|
10998
|
-
var box$1 = "_box_m9k88_37";
|
|
10999
|
-
var limited = "_limited_m9k88_44";
|
|
11000
|
-
var info$3 = "_info_m9k88_51";
|
|
11001
|
-
var header$2 = "_header_m9k88_64";
|
|
11002
|
-
var editButton = "_editButton_m9k88_74";
|
|
11003
|
-
var bg$5 = "_bg_m9k88_93";
|
|
11004
10887
|
var StickyHeader_module_default = {
|
|
11005
|
-
root:
|
|
11006
|
-
main:
|
|
11007
|
-
col:
|
|
11008
|
-
avatar:
|
|
11009
|
-
meta,
|
|
11010
|
-
box:
|
|
11011
|
-
limited,
|
|
11012
|
-
info:
|
|
10888
|
+
root: "_root_m9k88_1",
|
|
10889
|
+
main: "_main_m9k88_6",
|
|
10890
|
+
col: "_col_m9k88_13",
|
|
10891
|
+
avatar: "_avatar_m9k88_19",
|
|
10892
|
+
meta: "_meta_m9k88_27",
|
|
10893
|
+
box: "_box_m9k88_37",
|
|
10894
|
+
limited: "_limited_m9k88_44",
|
|
10895
|
+
info: "_info_m9k88_51",
|
|
11013
10896
|
"adjust-info": "_adjust-info_m9k88_1",
|
|
11014
10897
|
"shrink-name": "_shrink-name_m9k88_1",
|
|
11015
|
-
header:
|
|
10898
|
+
header: "_header_m9k88_64",
|
|
11016
10899
|
"add-shadow": "_add-shadow_m9k88_1",
|
|
11017
|
-
editButton,
|
|
10900
|
+
editButton: "_editButton_m9k88_74",
|
|
11018
10901
|
"move-button": "_move-button_m9k88_1",
|
|
11019
|
-
bg:
|
|
10902
|
+
bg: "_bg_m9k88_93",
|
|
11020
10903
|
"move-and-fade-background": "_move-and-fade-background_m9k88_1"
|
|
11021
10904
|
};
|
|
11022
10905
|
//#endregion
|
|
@@ -11094,39 +10977,25 @@ var StickyHeader = () => {
|
|
|
11094
10977
|
})]
|
|
11095
10978
|
});
|
|
11096
10979
|
};
|
|
11097
|
-
//#endregion
|
|
11098
|
-
//#region src/components/Heros/AnimatedHeroTitle/AnimatedHeroTitle.module.scss
|
|
11099
|
-
var root$162 = "_root_ki7je_1";
|
|
11100
|
-
var bg$4 = "_bg_ki7je_30";
|
|
11101
|
-
var shadow$2 = "_shadow_ki7je_37";
|
|
11102
|
-
var bg1 = "_bg1_ki7je_55";
|
|
11103
|
-
var fg1 = "_fg1_ki7je_59";
|
|
11104
|
-
var bg2 = "_bg2_ki7je_63";
|
|
11105
|
-
var fg2 = "_fg2_ki7je_67";
|
|
11106
|
-
var bg3 = "_bg3_ki7je_71";
|
|
11107
|
-
var fg3 = "_fg3_ki7je_75";
|
|
11108
|
-
var stop = "_stop_ki7je_79";
|
|
11109
|
-
var fg = "_fg_ki7je_59";
|
|
11110
|
-
var button$8 = "_button_ki7je_151";
|
|
11111
10980
|
var AnimatedHeroTitle_module_default = {
|
|
11112
|
-
root:
|
|
11113
|
-
bg:
|
|
11114
|
-
shadow:
|
|
11115
|
-
bg1,
|
|
10981
|
+
root: "_root_ki7je_1",
|
|
10982
|
+
bg: "_bg_ki7je_30",
|
|
10983
|
+
shadow: "_shadow_ki7je_37",
|
|
10984
|
+
bg1: "_bg1_ki7je_55",
|
|
11116
10985
|
"fade-bg1": "_fade-bg1_ki7je_1",
|
|
11117
|
-
fg1,
|
|
10986
|
+
fg1: "_fg1_ki7je_59",
|
|
11118
10987
|
"fade-fg1": "_fade-fg1_ki7je_1",
|
|
11119
|
-
bg2,
|
|
10988
|
+
bg2: "_bg2_ki7je_63",
|
|
11120
10989
|
"fade-bg2": "_fade-bg2_ki7je_1",
|
|
11121
|
-
fg2,
|
|
10990
|
+
fg2: "_fg2_ki7je_67",
|
|
11122
10991
|
"fade-fg2": "_fade-fg2_ki7je_1",
|
|
11123
|
-
bg3,
|
|
10992
|
+
bg3: "_bg3_ki7je_71",
|
|
11124
10993
|
"fade-bg3": "_fade-bg3_ki7je_1",
|
|
11125
|
-
fg3,
|
|
10994
|
+
fg3: "_fg3_ki7je_75",
|
|
11126
10995
|
"fade-fg3": "_fade-fg3_ki7je_1",
|
|
11127
|
-
stop,
|
|
11128
|
-
fg,
|
|
11129
|
-
button:
|
|
10996
|
+
stop: "_stop_ki7je_79",
|
|
10997
|
+
fg: "_fg_ki7je_59",
|
|
10998
|
+
button: "_button_ki7je_151"
|
|
11130
10999
|
};
|
|
11131
11000
|
//#endregion
|
|
11132
11001
|
//#region src/components/Heros/AnimatedHeroTitle/AnimatedHeroTitle.tsx
|
|
@@ -13186,14 +13055,10 @@ var CanOfDigits = ({ className = "", controls = false, initialValue = 1e3 }) =>
|
|
|
13186
13055
|
]
|
|
13187
13056
|
});
|
|
13188
13057
|
};
|
|
13189
|
-
//#endregion
|
|
13190
|
-
//#region src/components/Loaders/ChaseLoader/ChaseLoader.module.scss
|
|
13191
|
-
var root$135 = "_root_1i4gp_1";
|
|
13192
|
-
var dot$4 = "_dot_1i4gp_8";
|
|
13193
13058
|
var ChaseLoader_module_default = {
|
|
13194
|
-
root:
|
|
13059
|
+
root: "_root_1i4gp_1",
|
|
13195
13060
|
"sk-chase": "_sk-chase_1i4gp_1",
|
|
13196
|
-
dot:
|
|
13061
|
+
dot: "_dot_1i4gp_8",
|
|
13197
13062
|
"dot-before": "_dot-before_1i4gp_1"
|
|
13198
13063
|
};
|
|
13199
13064
|
//#endregion
|
|
@@ -13230,20 +13095,13 @@ var CircleDotsLoader = ({ type = "fade" }) => {
|
|
|
13230
13095
|
children: Array.from({ length: 12 }, (_, i) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { className: (0, clsx.default)(CircleDotsLoader_module_default[`circle${i + 1}`], CircleDotsLoader_module_default.child) }, i))
|
|
13231
13096
|
});
|
|
13232
13097
|
};
|
|
13233
|
-
//#endregion
|
|
13234
|
-
//#region src/components/Loaders/CubeLoader/CubeLoader.module.scss
|
|
13235
|
-
var root$133 = "_root_aw2sz_1";
|
|
13236
|
-
var cube = "_cube_aw2sz_9";
|
|
13237
|
-
var cube2 = "_cube2_aw2sz_29";
|
|
13238
|
-
var cube3 = "_cube3_aw2sz_33";
|
|
13239
|
-
var cube4 = "_cube4_aw2sz_37";
|
|
13240
13098
|
var CubeLoader_module_default = {
|
|
13241
|
-
root:
|
|
13242
|
-
cube,
|
|
13099
|
+
root: "_root_aw2sz_1",
|
|
13100
|
+
cube: "_cube_aw2sz_9",
|
|
13243
13101
|
"sk-foldCubeAngle": "_sk-foldCubeAngle_aw2sz_1",
|
|
13244
|
-
cube2,
|
|
13245
|
-
cube3,
|
|
13246
|
-
cube4
|
|
13102
|
+
cube2: "_cube2_aw2sz_29",
|
|
13103
|
+
cube3: "_cube3_aw2sz_33",
|
|
13104
|
+
cube4: "_cube4_aw2sz_37"
|
|
13247
13105
|
};
|
|
13248
13106
|
//#endregion
|
|
13249
13107
|
//#region src/components/Loaders/CubeLoader/CubeLoader.tsx
|
|
@@ -13277,7 +13135,7 @@ var EndlessLoader = ({ container }) => {
|
|
|
13277
13135
|
return;
|
|
13278
13136
|
}
|
|
13279
13137
|
try {
|
|
13280
|
-
const GLModule = await Promise.resolve().then(() => require("./gl-
|
|
13138
|
+
const GLModule = await Promise.resolve().then(() => require("./gl-DEE7rq9M.cjs"));
|
|
13281
13139
|
if (!isActiveRef.current) return;
|
|
13282
13140
|
const glInstance = new GLModule.GL(capturedContainer);
|
|
13283
13141
|
glInstance.init();
|
|
@@ -13644,16 +13502,11 @@ var RingLoader = ({ className = "", children = "Max Tarsis" }) => {
|
|
|
13644
13502
|
})]
|
|
13645
13503
|
});
|
|
13646
13504
|
};
|
|
13647
|
-
//#endregion
|
|
13648
|
-
//#region src/components/Loaders/RoundScaleLoader/RoundScaleLoader.module.scss
|
|
13649
|
-
var root$123 = "_root_cdkpc_1";
|
|
13650
|
-
var dot1 = "_dot1_cdkpc_10";
|
|
13651
|
-
var dot2 = "_dot2_cdkpc_11";
|
|
13652
13505
|
var RoundScaleLoader_module_default = {
|
|
13653
|
-
root:
|
|
13506
|
+
root: "_root_cdkpc_1",
|
|
13654
13507
|
"sk-rotate": "_sk-rotate_cdkpc_1",
|
|
13655
|
-
dot1,
|
|
13656
|
-
dot2,
|
|
13508
|
+
dot1: "_dot1_cdkpc_10",
|
|
13509
|
+
dot2: "_dot2_cdkpc_11",
|
|
13657
13510
|
"sk-bounce": "_sk-bounce_cdkpc_1"
|
|
13658
13511
|
};
|
|
13659
13512
|
//#endregion
|
|
@@ -14794,38 +14647,22 @@ var AnimatedIconsNav = () => {
|
|
|
14794
14647
|
})]
|
|
14795
14648
|
});
|
|
14796
14649
|
};
|
|
14797
|
-
//#endregion
|
|
14798
|
-
//#region src/components/Menus/AnimatedShareMenu/AnimatedShareMenu.module.scss
|
|
14799
|
-
var root$110 = "_root_1siik_1";
|
|
14800
|
-
var share = "_share_1siik_15";
|
|
14801
|
-
var btn = "_btn_1siik_21";
|
|
14802
|
-
var links = "_links_1siik_22";
|
|
14803
|
-
var link$7 = "_link_1siik_22";
|
|
14804
|
-
var linkIcon = "_linkIcon_1siik_55";
|
|
14805
|
-
var btnIcon1a = "_btnIcon1a_1siik_65";
|
|
14806
|
-
var btnIcon1b = "_btnIcon1b_1siik_66";
|
|
14807
|
-
var btnIcon1c = "_btnIcon1c_1siik_67";
|
|
14808
|
-
var btnIcon2a = "_btnIcon2a_1siik_68";
|
|
14809
|
-
var btnIcon2b = "_btnIcon2b_1siik_69";
|
|
14810
|
-
var btnIcon2c = "_btnIcon2c_1siik_70";
|
|
14811
|
-
var linkItem = "_linkItem_1siik_114";
|
|
14812
|
-
var open$1 = "_open_1siik_161";
|
|
14813
14650
|
var AnimatedShareMenu_module_default = {
|
|
14814
|
-
root:
|
|
14815
|
-
share,
|
|
14816
|
-
btn,
|
|
14817
|
-
links,
|
|
14818
|
-
link:
|
|
14651
|
+
root: "_root_1siik_1",
|
|
14652
|
+
share: "_share_1siik_15",
|
|
14653
|
+
btn: "_btn_1siik_21",
|
|
14654
|
+
links: "_links_1siik_22",
|
|
14655
|
+
link: "_link_1siik_22",
|
|
14819
14656
|
"btn-icon": "_btn-icon_1siik_54",
|
|
14820
|
-
linkIcon,
|
|
14821
|
-
btnIcon1a,
|
|
14822
|
-
btnIcon1b,
|
|
14823
|
-
btnIcon1c,
|
|
14824
|
-
btnIcon2a,
|
|
14825
|
-
btnIcon2b,
|
|
14826
|
-
btnIcon2c,
|
|
14827
|
-
linkItem,
|
|
14828
|
-
open:
|
|
14657
|
+
linkIcon: "_linkIcon_1siik_55",
|
|
14658
|
+
btnIcon1a: "_btnIcon1a_1siik_65",
|
|
14659
|
+
btnIcon1b: "_btnIcon1b_1siik_66",
|
|
14660
|
+
btnIcon1c: "_btnIcon1c_1siik_67",
|
|
14661
|
+
btnIcon2a: "_btnIcon2a_1siik_68",
|
|
14662
|
+
btnIcon2b: "_btnIcon2b_1siik_69",
|
|
14663
|
+
btnIcon2c: "_btnIcon2c_1siik_70",
|
|
14664
|
+
linkItem: "_linkItem_1siik_114",
|
|
14665
|
+
open: "_open_1siik_161"
|
|
14829
14666
|
};
|
|
14830
14667
|
//#endregion
|
|
14831
14668
|
//#region src/components/Menus/AnimatedShareMenu/AnimatedShareMenu.tsx
|
|
@@ -16477,26 +16314,16 @@ var PinDropdown = () => {
|
|
|
16477
16314
|
})]
|
|
16478
16315
|
});
|
|
16479
16316
|
};
|
|
16480
|
-
//#endregion
|
|
16481
|
-
//#region src/components/Menus/RadialMenu/RadialMenu.module.scss
|
|
16482
|
-
var root$96 = "_root_1eccn_1";
|
|
16483
|
-
var menu = "_menu_1eccn_9";
|
|
16484
|
-
var isActive = "_isActive_1eccn_17";
|
|
16485
|
-
var dots = "_dots_1eccn_22";
|
|
16486
|
-
var dot$3 = "_dot_1eccn_22";
|
|
16487
|
-
var items$2 = "_items_1eccn_73";
|
|
16488
|
-
var item$6 = "_item_1eccn_73";
|
|
16489
|
-
var content$3 = "_content_1eccn_155";
|
|
16490
16317
|
var RadialMenu_module_default = {
|
|
16491
|
-
root:
|
|
16492
|
-
menu,
|
|
16493
|
-
isActive,
|
|
16494
|
-
dots,
|
|
16495
|
-
dot:
|
|
16496
|
-
items:
|
|
16497
|
-
item:
|
|
16318
|
+
root: "_root_1eccn_1",
|
|
16319
|
+
menu: "_menu_1eccn_9",
|
|
16320
|
+
isActive: "_isActive_1eccn_17",
|
|
16321
|
+
dots: "_dots_1eccn_22",
|
|
16322
|
+
dot: "_dot_1eccn_22",
|
|
16323
|
+
items: "_items_1eccn_73",
|
|
16324
|
+
item: "_item_1eccn_73",
|
|
16498
16325
|
"overlay-closer": "_overlay-closer_1eccn_139",
|
|
16499
|
-
content:
|
|
16326
|
+
content: "_content_1eccn_155"
|
|
16500
16327
|
};
|
|
16501
16328
|
//#endregion
|
|
16502
16329
|
//#region src/components/Menus/RadialMenu/RadialMenu.tsx
|
|
@@ -16694,42 +16521,24 @@ var RadialMenu = () => {
|
|
|
16694
16521
|
})
|
|
16695
16522
|
});
|
|
16696
16523
|
};
|
|
16697
|
-
//#endregion
|
|
16698
|
-
//#region src/components/Menus/RadialNavigation/RadialNavigation.module.scss
|
|
16699
|
-
var root$95 = "_root_1cdat_1";
|
|
16700
|
-
var mobile = "_mobile_1cdat_23";
|
|
16701
|
-
var opposite = "_opposite_1cdat_26";
|
|
16702
|
-
var active$8 = "_active_1cdat_34";
|
|
16703
|
-
var highlighted = "_highlighted_1cdat_60";
|
|
16704
|
-
var item$5 = "_item_1cdat_69";
|
|
16705
|
-
var Untouchable = "_Untouchable_1cdat_1";
|
|
16706
|
-
var icon$5 = "_icon_1cdat_147";
|
|
16707
|
-
var name$1 = "_name_1cdat_164";
|
|
16708
|
-
var title$3 = "_title_1cdat_184";
|
|
16709
|
-
var activeItem = "_activeItem_1cdat_193";
|
|
16710
|
-
var subtitle = "_subtitle_1cdat_202";
|
|
16711
|
-
var ScaleIn$1 = "_ScaleIn_1cdat_1";
|
|
16712
|
-
var dot$2 = "_dot_1cdat_215";
|
|
16713
|
-
var texture$1 = "_texture_1cdat_334";
|
|
16714
|
-
var Mask = "_Mask_1cdat_1";
|
|
16715
16524
|
var RadialNavigation_module_default = {
|
|
16716
|
-
root:
|
|
16525
|
+
root: "_root_1cdat_1",
|
|
16717
16526
|
"static": "_static_1cdat_20",
|
|
16718
|
-
mobile,
|
|
16719
|
-
opposite,
|
|
16720
|
-
active:
|
|
16721
|
-
highlighted,
|
|
16722
|
-
item:
|
|
16723
|
-
Untouchable,
|
|
16724
|
-
icon:
|
|
16725
|
-
name:
|
|
16726
|
-
title:
|
|
16727
|
-
activeItem,
|
|
16728
|
-
subtitle,
|
|
16729
|
-
ScaleIn:
|
|
16730
|
-
dot:
|
|
16731
|
-
texture:
|
|
16732
|
-
Mask
|
|
16527
|
+
mobile: "_mobile_1cdat_23",
|
|
16528
|
+
opposite: "_opposite_1cdat_26",
|
|
16529
|
+
active: "_active_1cdat_34",
|
|
16530
|
+
highlighted: "_highlighted_1cdat_60",
|
|
16531
|
+
item: "_item_1cdat_69",
|
|
16532
|
+
Untouchable: "_Untouchable_1cdat_1",
|
|
16533
|
+
icon: "_icon_1cdat_147",
|
|
16534
|
+
name: "_name_1cdat_164",
|
|
16535
|
+
title: "_title_1cdat_184",
|
|
16536
|
+
activeItem: "_activeItem_1cdat_193",
|
|
16537
|
+
subtitle: "_subtitle_1cdat_202",
|
|
16538
|
+
ScaleIn: "_ScaleIn_1cdat_1",
|
|
16539
|
+
dot: "_dot_1cdat_215",
|
|
16540
|
+
texture: "_texture_1cdat_334",
|
|
16541
|
+
Mask: "_Mask_1cdat_1"
|
|
16733
16542
|
};
|
|
16734
16543
|
//#endregion
|
|
16735
16544
|
//#region src/components/Menus/RadialNavigation/RadialNavigation.tsx
|
|
@@ -16792,69 +16601,39 @@ var RadialNavigation = ({ onClick, items, direction = "left", className = "", is
|
|
|
16792
16601
|
}, item.id)), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Texture, { className: RadialNavigation_module_default.texture })]
|
|
16793
16602
|
});
|
|
16794
16603
|
};
|
|
16795
|
-
//#endregion
|
|
16796
|
-
//#region src/components/Menus/SinglePopoverMenu/SinglePopoverMenu.module.scss
|
|
16797
|
-
var root$94 = "_root_15cj5_1";
|
|
16798
|
-
var item$4 = "_item_15cj5_18";
|
|
16799
|
-
var menuText = "_menuText_15cj5_33";
|
|
16800
|
-
var subMenuHolder = "_subMenuHolder_15cj5_64";
|
|
16801
|
-
var subMenuContainer = "_subMenuContainer_15cj5_84";
|
|
16802
|
-
var subMenuBottom = "_subMenuBottom_15cj5_92";
|
|
16803
|
-
var clipPath = "_clipPath_15cj5_1";
|
|
16804
|
-
var subMenu = "_subMenu_15cj5_64";
|
|
16805
|
-
var double = "_double_15cj5_155";
|
|
16806
|
-
var triple = "_triple_15cj5_161";
|
|
16807
|
-
var title$2 = "_title_15cj5_189";
|
|
16808
|
-
var iconBox = "_iconBox_15cj5_195";
|
|
16809
|
-
var flat = "_flat_15cj5_204";
|
|
16810
|
-
var space = "_space_15cj5_208";
|
|
16811
|
-
var icon$4 = "_icon_15cj5_195";
|
|
16812
|
-
var text$12 = "_text_15cj5_217";
|
|
16813
|
-
var gb = "_gb_15cj5_240";
|
|
16814
|
-
var a$2 = "_a_15cj5_248";
|
|
16815
|
-
var b = "_b_15cj5_252";
|
|
16816
|
-
var c$1 = "_c_15cj5_256";
|
|
16817
|
-
var d = "_d_15cj5_155";
|
|
16818
|
-
var e = "_e_15cj5_264";
|
|
16819
|
-
var f = "_f_15cj5_204";
|
|
16820
|
-
var highlight$2 = "_highlight_15cj5_278";
|
|
16821
|
-
var bottomContainer = "_bottomContainer_15cj5_282";
|
|
16822
|
-
var topContainer = "_topContainer_15cj5_304";
|
|
16823
|
-
var box = "_box_15cj5_317";
|
|
16824
|
-
var big = "_big_15cj5_332";
|
|
16825
16604
|
var SinglePopoverMenu_module_default = {
|
|
16826
|
-
root:
|
|
16827
|
-
item:
|
|
16828
|
-
menuText,
|
|
16829
|
-
subMenuHolder,
|
|
16830
|
-
subMenuContainer,
|
|
16831
|
-
subMenuBottom,
|
|
16832
|
-
clipPath,
|
|
16833
|
-
subMenu,
|
|
16834
|
-
double,
|
|
16835
|
-
triple,
|
|
16836
|
-
title:
|
|
16837
|
-
iconBox,
|
|
16838
|
-
flat,
|
|
16839
|
-
space,
|
|
16840
|
-
icon:
|
|
16841
|
-
text:
|
|
16842
|
-
gb,
|
|
16843
|
-
a:
|
|
16844
|
-
b,
|
|
16845
|
-
c:
|
|
16846
|
-
d,
|
|
16847
|
-
e,
|
|
16848
|
-
f,
|
|
16605
|
+
root: "_root_15cj5_1",
|
|
16606
|
+
item: "_item_15cj5_18",
|
|
16607
|
+
menuText: "_menuText_15cj5_33",
|
|
16608
|
+
subMenuHolder: "_subMenuHolder_15cj5_64",
|
|
16609
|
+
subMenuContainer: "_subMenuContainer_15cj5_84",
|
|
16610
|
+
subMenuBottom: "_subMenuBottom_15cj5_92",
|
|
16611
|
+
clipPath: "_clipPath_15cj5_1",
|
|
16612
|
+
subMenu: "_subMenu_15cj5_64",
|
|
16613
|
+
double: "_double_15cj5_155",
|
|
16614
|
+
triple: "_triple_15cj5_161",
|
|
16615
|
+
title: "_title_15cj5_189",
|
|
16616
|
+
iconBox: "_iconBox_15cj5_195",
|
|
16617
|
+
flat: "_flat_15cj5_204",
|
|
16618
|
+
space: "_space_15cj5_208",
|
|
16619
|
+
icon: "_icon_15cj5_195",
|
|
16620
|
+
text: "_text_15cj5_217",
|
|
16621
|
+
gb: "_gb_15cj5_240",
|
|
16622
|
+
a: "_a_15cj5_248",
|
|
16623
|
+
b: "_b_15cj5_252",
|
|
16624
|
+
c: "_c_15cj5_256",
|
|
16625
|
+
d: "_d_15cj5_155",
|
|
16626
|
+
e: "_e_15cj5_264",
|
|
16627
|
+
f: "_f_15cj5_204",
|
|
16849
16628
|
"menu-item": "_menu-item_15cj5_272",
|
|
16850
16629
|
"icon-box": "_icon-box_15cj5_272",
|
|
16851
16630
|
"sub-text": "_sub-text_15cj5_274",
|
|
16852
|
-
highlight:
|
|
16631
|
+
highlight: "_highlight_15cj5_278",
|
|
16853
16632
|
"sub-menu-bottom": "_sub-menu-bottom_15cj5_1",
|
|
16854
|
-
bottomContainer,
|
|
16855
|
-
topContainer,
|
|
16856
|
-
box,
|
|
16857
|
-
big
|
|
16633
|
+
bottomContainer: "_bottomContainer_15cj5_282",
|
|
16634
|
+
topContainer: "_topContainer_15cj5_304",
|
|
16635
|
+
box: "_box_15cj5_317",
|
|
16636
|
+
big: "_big_15cj5_332"
|
|
16858
16637
|
};
|
|
16859
16638
|
//#endregion
|
|
16860
16639
|
//#region src/components/Menus/SinglePopoverMenu/SinglePopoverMenu.tsx
|
|
@@ -18119,20 +17898,13 @@ var RadioHopping = () => {
|
|
|
18119
17898
|
]
|
|
18120
17899
|
});
|
|
18121
17900
|
};
|
|
18122
|
-
//#endregion
|
|
18123
|
-
//#region src/components/Radios/RadioSlidingFocus/RadioSlidingFocus.module.scss
|
|
18124
|
-
var form$2 = "_form_ut3jq_1";
|
|
18125
|
-
var label$3 = "_label_ut3jq_16";
|
|
18126
|
-
var input$14 = "_input_ut3jq_17";
|
|
18127
|
-
var selection = "_selection_ut3jq_87";
|
|
18128
|
-
var truncate = "_truncate_ut3jq_122";
|
|
18129
17901
|
var RadioSlidingFocus_module_default = {
|
|
18130
|
-
form:
|
|
18131
|
-
label:
|
|
18132
|
-
input:
|
|
18133
|
-
selection,
|
|
17902
|
+
form: "_form_ut3jq_1",
|
|
17903
|
+
label: "_label_ut3jq_16",
|
|
17904
|
+
input: "_input_ut3jq_17",
|
|
17905
|
+
selection: "_selection_ut3jq_87",
|
|
18134
17906
|
"fade-in": "_fade-in_ut3jq_1",
|
|
18135
|
-
truncate
|
|
17907
|
+
truncate: "_truncate_ut3jq_122"
|
|
18136
17908
|
};
|
|
18137
17909
|
//#endregion
|
|
18138
17910
|
//#region src/components/Radios/RadioSlidingFocus/RadioSlidingFocus.tsx
|
|
@@ -18221,44 +17993,26 @@ var ScrollCountdown = () => {
|
|
|
18221
17993
|
}, slides.length + slide + i))
|
|
18222
17994
|
});
|
|
18223
17995
|
};
|
|
18224
|
-
//#endregion
|
|
18225
|
-
//#region src/components/Scrolls/ScrollDrivenTextBlowOut/ScrollDrivenTextBlowOut.module.scss
|
|
18226
|
-
var root$83 = "_root_122a3_1";
|
|
18227
|
-
var section$2 = "_section_122a3_9";
|
|
18228
|
-
var h2$2 = "_h2_122a3_75";
|
|
18229
|
-
var sectionContent = "_sectionContent_122a3_79";
|
|
18230
|
-
var svg$5 = "_svg_122a3_94";
|
|
18231
|
-
var videoWrap = "_videoWrap_122a3_99";
|
|
18232
|
-
var video$1 = "_video_122a3_99";
|
|
18233
|
-
var nav = "_nav_122a3_118";
|
|
18234
|
-
var navContent = "_navContent_122a3_143";
|
|
18235
|
-
var signature = "_signature_122a3_154";
|
|
18236
|
-
var eye$1 = "_eye_122a3_160";
|
|
18237
|
-
var nose = "_nose_122a3_160";
|
|
18238
|
-
var draw = "_draw_122a3_1";
|
|
18239
|
-
var fill$1 = "_fill_122a3_1";
|
|
18240
|
-
var ear = "_ear_122a3_200";
|
|
18241
|
-
var fade = "_fade_122a3_1";
|
|
18242
17996
|
var ScrollDrivenTextBlowOut_module_default = {
|
|
18243
|
-
root:
|
|
18244
|
-
section:
|
|
18245
|
-
h2:
|
|
18246
|
-
sectionContent,
|
|
18247
|
-
svg:
|
|
18248
|
-
videoWrap,
|
|
18249
|
-
video:
|
|
18250
|
-
nav,
|
|
18251
|
-
navContent,
|
|
18252
|
-
signature,
|
|
18253
|
-
eye:
|
|
18254
|
-
nose,
|
|
17997
|
+
root: "_root_122a3_1",
|
|
17998
|
+
section: "_section_122a3_9",
|
|
17999
|
+
h2: "_h2_122a3_75",
|
|
18000
|
+
sectionContent: "_sectionContent_122a3_79",
|
|
18001
|
+
svg: "_svg_122a3_94",
|
|
18002
|
+
videoWrap: "_videoWrap_122a3_99",
|
|
18003
|
+
video: "_video_122a3_99",
|
|
18004
|
+
nav: "_nav_122a3_118",
|
|
18005
|
+
navContent: "_navContent_122a3_143",
|
|
18006
|
+
signature: "_signature_122a3_154",
|
|
18007
|
+
eye: "_eye_122a3_160",
|
|
18008
|
+
nose: "_nose_122a3_160",
|
|
18255
18009
|
"blow-out": "_blow-out_122a3_1",
|
|
18256
18010
|
"fade-in": "_fade-in_122a3_1",
|
|
18257
18011
|
"fade-out": "_fade-out_122a3_1",
|
|
18258
|
-
draw,
|
|
18259
|
-
fill:
|
|
18260
|
-
ear,
|
|
18261
|
-
fade
|
|
18012
|
+
draw: "_draw_122a3_1",
|
|
18013
|
+
fill: "_fill_122a3_1",
|
|
18014
|
+
ear: "_ear_122a3_200",
|
|
18015
|
+
fade: "_fade_122a3_1"
|
|
18262
18016
|
};
|
|
18263
18017
|
//#endregion
|
|
18264
18018
|
//#region src/components/Scrolls/ScrollDrivenTextBlowOut/ScrollDrivenTextBlowOut.tsx
|
|
@@ -18568,16 +18322,11 @@ var ScrollTimeline = () => {
|
|
|
18568
18322
|
]
|
|
18569
18323
|
});
|
|
18570
18324
|
};
|
|
18571
|
-
//#endregion
|
|
18572
|
-
//#region src/components/Scrolls/ScrollWithLight/ScrollWithLight.module.scss
|
|
18573
|
-
var root$79 = "_root_1dqvs_56";
|
|
18574
|
-
var scrollbar = "_scrollbar_1dqvs_69";
|
|
18575
|
-
var container$9 = "_container_1dqvs_79";
|
|
18576
18325
|
var ScrollWithLight_module_default = {
|
|
18577
|
-
root:
|
|
18578
|
-
scrollbar,
|
|
18326
|
+
root: "_root_1dqvs_56",
|
|
18327
|
+
scrollbar: "_scrollbar_1dqvs_69",
|
|
18579
18328
|
"on-scrolling": "_on-scrolling_1dqvs_1",
|
|
18580
|
-
container:
|
|
18329
|
+
container: "_container_1dqvs_79"
|
|
18581
18330
|
};
|
|
18582
18331
|
//#endregion
|
|
18583
18332
|
//#region src/components/Scrolls/ScrollWithLight/ScrollWithLight.tsx
|
|
@@ -18985,48 +18734,26 @@ var DaySwitch = () => {
|
|
|
18985
18734
|
})]
|
|
18986
18735
|
});
|
|
18987
18736
|
};
|
|
18988
|
-
//#endregion
|
|
18989
|
-
//#region src/components/Switches/GlassSwitch/GlassSwitch.module.scss
|
|
18990
|
-
var root$74 = "_root_a8q8m_1";
|
|
18991
|
-
var surface = "_surface_a8q8m_23";
|
|
18992
|
-
var bg$2 = "_bg_a8q8m_29";
|
|
18993
|
-
var outerShadow = "_outerShadow_a8q8m_56";
|
|
18994
|
-
var innerShadow = "_innerShadow_a8q8m_85";
|
|
18995
|
-
var activeLight = "_activeLight_a8q8m_94";
|
|
18996
|
-
var innerSurface = "_innerSurface_a8q8m_105";
|
|
18997
|
-
var darkShadow = "_darkShadow_a8q8m_115";
|
|
18998
|
-
var lightShadow = "_lightShadow_a8q8m_116";
|
|
18999
|
-
var balls = "_balls_a8q8m_166";
|
|
19000
|
-
var inactiveBall = "_inactiveBall_a8q8m_171";
|
|
19001
|
-
var whiteball = "_whiteball_a8q8m_1";
|
|
19002
|
-
var activeBall = "_activeBall_a8q8m_182";
|
|
19003
|
-
var lightball = "_lightball_a8q8m_1";
|
|
19004
|
-
var glass = "_glass_a8q8m_193";
|
|
19005
|
-
var lights = "_lights_a8q8m_213";
|
|
19006
|
-
var activeBallLight = "_activeBallLight_a8q8m_218";
|
|
19007
|
-
var inactiveBallLight = "_inactiveBallLight_a8q8m_219";
|
|
19008
|
-
var input$11 = "_input_a8q8m_240";
|
|
19009
|
-
var ratio = "_ratio_a8q8m_1";
|
|
19010
18737
|
var GlassSwitch_module_default = {
|
|
19011
|
-
root:
|
|
19012
|
-
surface,
|
|
19013
|
-
bg:
|
|
19014
|
-
outerShadow,
|
|
19015
|
-
innerShadow,
|
|
19016
|
-
activeLight,
|
|
19017
|
-
innerSurface,
|
|
19018
|
-
darkShadow,
|
|
19019
|
-
lightShadow,
|
|
19020
|
-
balls,
|
|
19021
|
-
inactiveBall,
|
|
19022
|
-
whiteball,
|
|
19023
|
-
activeBall,
|
|
19024
|
-
lightball,
|
|
19025
|
-
glass,
|
|
19026
|
-
lights,
|
|
19027
|
-
activeBallLight,
|
|
19028
|
-
inactiveBallLight,
|
|
19029
|
-
input:
|
|
18738
|
+
root: "_root_a8q8m_1",
|
|
18739
|
+
surface: "_surface_a8q8m_23",
|
|
18740
|
+
bg: "_bg_a8q8m_29",
|
|
18741
|
+
outerShadow: "_outerShadow_a8q8m_56",
|
|
18742
|
+
innerShadow: "_innerShadow_a8q8m_85",
|
|
18743
|
+
activeLight: "_activeLight_a8q8m_94",
|
|
18744
|
+
innerSurface: "_innerSurface_a8q8m_105",
|
|
18745
|
+
darkShadow: "_darkShadow_a8q8m_115",
|
|
18746
|
+
lightShadow: "_lightShadow_a8q8m_116",
|
|
18747
|
+
balls: "_balls_a8q8m_166",
|
|
18748
|
+
inactiveBall: "_inactiveBall_a8q8m_171",
|
|
18749
|
+
whiteball: "_whiteball_a8q8m_1",
|
|
18750
|
+
activeBall: "_activeBall_a8q8m_182",
|
|
18751
|
+
lightball: "_lightball_a8q8m_1",
|
|
18752
|
+
glass: "_glass_a8q8m_193",
|
|
18753
|
+
lights: "_lights_a8q8m_213",
|
|
18754
|
+
activeBallLight: "_activeBallLight_a8q8m_218",
|
|
18755
|
+
inactiveBallLight: "_inactiveBallLight_a8q8m_219",
|
|
18756
|
+
input: "_input_a8q8m_240",
|
|
19030
18757
|
"switch": "_switch_a8q8m_244",
|
|
19031
18758
|
"ratio-reverse": "_ratio-reverse_a8q8m_1",
|
|
19032
18759
|
"active-light-reverse": "_active-light-reverse_a8q8m_1",
|
|
@@ -19034,7 +18761,7 @@ var GlassSwitch_module_default = {
|
|
|
19034
18761
|
"active-ball-next": "_active-ball-next_a8q8m_1",
|
|
19035
18762
|
"inactive-ball-light-next": "_inactive-ball-light-next_a8q8m_1",
|
|
19036
18763
|
"active-ball-light-next": "_active-ball-light-next_a8q8m_1",
|
|
19037
|
-
ratio,
|
|
18764
|
+
ratio: "_ratio_a8q8m_1",
|
|
19038
18765
|
"active-light": "_active-light_a8q8m_1",
|
|
19039
18766
|
"inactive-ball": "_inactive-ball_a8q8m_1",
|
|
19040
18767
|
"active-ball": "_active-ball_a8q8m_1",
|
|
@@ -19369,18 +19096,12 @@ var ToggleBubble = () => {
|
|
|
19369
19096
|
})
|
|
19370
19097
|
});
|
|
19371
19098
|
};
|
|
19372
|
-
//#endregion
|
|
19373
|
-
//#region src/components/Switches/ToggleClipPath/ToggleClipPath.module.scss
|
|
19374
|
-
var root$68 = "_root_x6h1h_1";
|
|
19375
|
-
var input$4 = "_input_x6h1h_31";
|
|
19376
|
-
var sr$1 = "_sr_x6h1h_46";
|
|
19377
|
-
var focus = "_focus_x6h1h_47";
|
|
19378
19099
|
var ToggleClipPath_module_default = {
|
|
19379
|
-
root:
|
|
19100
|
+
root: "_root_x6h1h_1",
|
|
19380
19101
|
"switch": "_switch_x6h1h_30",
|
|
19381
|
-
input:
|
|
19382
|
-
sr:
|
|
19383
|
-
focus
|
|
19102
|
+
input: "_input_x6h1h_31",
|
|
19103
|
+
sr: "_sr_x6h1h_46",
|
|
19104
|
+
focus: "_focus_x6h1h_47"
|
|
19384
19105
|
};
|
|
19385
19106
|
//#endregion
|
|
19386
19107
|
//#region src/components/Switches/ToggleClipPath/ToggleClipPath.tsx
|
|
@@ -19747,12 +19468,12 @@ var ScrambledText = ({ children, reveal = false }) => {
|
|
|
19747
19468
|
});
|
|
19748
19469
|
};
|
|
19749
19470
|
var ScramblingLetters_module_default = {
|
|
19750
|
-
root: "
|
|
19751
|
-
line: "
|
|
19752
|
-
word: "
|
|
19753
|
-
link: "
|
|
19754
|
-
letter: "
|
|
19755
|
-
wobble: "
|
|
19471
|
+
root: "_root_1lky6_1",
|
|
19472
|
+
line: "_line_1lky6_9",
|
|
19473
|
+
word: "_word_1lky6_14",
|
|
19474
|
+
link: "_link_1lky6_18",
|
|
19475
|
+
letter: "_letter_1lky6_22",
|
|
19476
|
+
wobble: "_wobble_1lky6_1"
|
|
19756
19477
|
};
|
|
19757
19478
|
//#endregion
|
|
19758
19479
|
//#region src/components/Texts/ScramblingLetters/ScramblingLetters.tsx
|
|
@@ -20342,26 +20063,16 @@ var Duck = () => {
|
|
|
20342
20063
|
})
|
|
20343
20064
|
});
|
|
20344
20065
|
};
|
|
20345
|
-
//#endregion
|
|
20346
|
-
//#region src/components/unsorted/DynamicIsland/DynamicIsland.module.scss
|
|
20347
|
-
var root$51 = "_root_f1fmy_1";
|
|
20348
|
-
var island = "_island_f1fmy_17";
|
|
20349
|
-
var bar$1 = "_bar_f1fmy_24";
|
|
20350
|
-
var ball = "_ball_f1fmy_33";
|
|
20351
|
-
var svg$4 = "_svg_f1fmy_54";
|
|
20352
|
-
var ScaleIn = "_ScaleIn_f1fmy_1";
|
|
20353
|
-
var notch = "_notch_f1fmy_66";
|
|
20354
|
-
var lens = "_lens_f1fmy_78";
|
|
20355
20066
|
var DynamicIsland_module_default = {
|
|
20356
|
-
root:
|
|
20067
|
+
root: "_root_f1fmy_1",
|
|
20357
20068
|
"static": "_static_f1fmy_12",
|
|
20358
|
-
island,
|
|
20359
|
-
bar:
|
|
20360
|
-
ball,
|
|
20361
|
-
svg:
|
|
20362
|
-
ScaleIn,
|
|
20363
|
-
notch,
|
|
20364
|
-
lens
|
|
20069
|
+
island: "_island_f1fmy_17",
|
|
20070
|
+
bar: "_bar_f1fmy_24",
|
|
20071
|
+
ball: "_ball_f1fmy_33",
|
|
20072
|
+
svg: "_svg_f1fmy_54",
|
|
20073
|
+
ScaleIn: "_ScaleIn_f1fmy_1",
|
|
20074
|
+
notch: "_notch_f1fmy_66",
|
|
20075
|
+
lens: "_lens_f1fmy_78"
|
|
20365
20076
|
};
|
|
20366
20077
|
//#endregion
|
|
20367
20078
|
//#region src/components/unsorted/DynamicIsland/DynamicIsland.tsx
|
|
@@ -20659,34 +20370,20 @@ var AvatarHover = () => {
|
|
|
20659
20370
|
alt: ""
|
|
20660
20371
|
});
|
|
20661
20372
|
};
|
|
20662
|
-
//#endregion
|
|
20663
|
-
//#region src/components/unsorted/BackgroundSlider/BackgroundSlider.module.scss
|
|
20664
|
-
var root$43 = "_root_15zmr_1";
|
|
20665
|
-
var hero = "_hero_15zmr_10";
|
|
20666
|
-
var swiper = "_swiper_15zmr_19";
|
|
20667
|
-
var swiperSlide = "_swiperSlide_15zmr_24";
|
|
20668
|
-
var title = "_title_15zmr_34";
|
|
20669
|
-
var slide1 = "_slide1_15zmr_52";
|
|
20670
|
-
var slide5 = "_slide5_15zmr_53";
|
|
20671
|
-
var slide2 = "_slide2_15zmr_60";
|
|
20672
|
-
var slide3 = "_slide3_15zmr_61";
|
|
20673
|
-
var slide4 = "_slide4_15zmr_62";
|
|
20674
|
-
var slide6 = "_slide6_15zmr_63";
|
|
20675
|
-
var image$7 = "_image_15zmr_70";
|
|
20676
20373
|
var BackgroundSlider_module_default = {
|
|
20677
|
-
root:
|
|
20678
|
-
hero,
|
|
20679
|
-
swiper,
|
|
20680
|
-
swiperSlide,
|
|
20681
|
-
title,
|
|
20374
|
+
root: "_root_15zmr_1",
|
|
20375
|
+
hero: "_hero_15zmr_10",
|
|
20376
|
+
swiper: "_swiper_15zmr_19",
|
|
20377
|
+
swiperSlide: "_swiperSlide_15zmr_24",
|
|
20378
|
+
title: "_title_15zmr_34",
|
|
20682
20379
|
"animated-text": "_animated-text_15zmr_1",
|
|
20683
|
-
slide1,
|
|
20684
|
-
slide5,
|
|
20685
|
-
slide2,
|
|
20686
|
-
slide3,
|
|
20687
|
-
slide4,
|
|
20688
|
-
slide6,
|
|
20689
|
-
image:
|
|
20380
|
+
slide1: "_slide1_15zmr_52",
|
|
20381
|
+
slide5: "_slide5_15zmr_53",
|
|
20382
|
+
slide2: "_slide2_15zmr_60",
|
|
20383
|
+
slide3: "_slide3_15zmr_61",
|
|
20384
|
+
slide4: "_slide4_15zmr_62",
|
|
20385
|
+
slide6: "_slide6_15zmr_63",
|
|
20386
|
+
image: "_image_15zmr_70"
|
|
20690
20387
|
};
|
|
20691
20388
|
//#endregion
|
|
20692
20389
|
//#region src/components/unsorted/BackgroundSlider/BackgroundSlider.tsx
|
|
@@ -23177,2203 +22874,6 @@ var CircleParticles = () => {
|
|
|
23177
22874
|
children: particles
|
|
23178
22875
|
});
|
|
23179
22876
|
};
|
|
23180
|
-
//#endregion
|
|
23181
|
-
//#region node_modules/dat.gui/build/dat.gui.module.js
|
|
23182
|
-
/**
|
|
23183
|
-
* dat-gui JavaScript Controller Library
|
|
23184
|
-
* https://github.com/dataarts/dat.gui
|
|
23185
|
-
*
|
|
23186
|
-
* Copyright 2011 Data Arts Team, Google Creative Lab
|
|
23187
|
-
*
|
|
23188
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
23189
|
-
* you may not use this file except in compliance with the License.
|
|
23190
|
-
* You may obtain a copy of the License at
|
|
23191
|
-
*
|
|
23192
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
23193
|
-
*/
|
|
23194
|
-
function ___$insertStyle(css) {
|
|
23195
|
-
if (!css) return;
|
|
23196
|
-
if (typeof window === "undefined") return;
|
|
23197
|
-
var style = document.createElement("style");
|
|
23198
|
-
style.setAttribute("type", "text/css");
|
|
23199
|
-
style.innerHTML = css;
|
|
23200
|
-
document.head.appendChild(style);
|
|
23201
|
-
return css;
|
|
23202
|
-
}
|
|
23203
|
-
function colorToString(color, forceCSSHex) {
|
|
23204
|
-
var colorFormat = color.__state.conversionName.toString();
|
|
23205
|
-
var r = Math.round(color.r);
|
|
23206
|
-
var g = Math.round(color.g);
|
|
23207
|
-
var b = Math.round(color.b);
|
|
23208
|
-
var a = color.a;
|
|
23209
|
-
var h = Math.round(color.h);
|
|
23210
|
-
var s = color.s.toFixed(1);
|
|
23211
|
-
var v = color.v.toFixed(1);
|
|
23212
|
-
if (forceCSSHex || colorFormat === "THREE_CHAR_HEX" || colorFormat === "SIX_CHAR_HEX") {
|
|
23213
|
-
var str = color.hex.toString(16);
|
|
23214
|
-
while (str.length < 6) str = "0" + str;
|
|
23215
|
-
return "#" + str;
|
|
23216
|
-
} else if (colorFormat === "CSS_RGB") return "rgb(" + r + "," + g + "," + b + ")";
|
|
23217
|
-
else if (colorFormat === "CSS_RGBA") return "rgba(" + r + "," + g + "," + b + "," + a + ")";
|
|
23218
|
-
else if (colorFormat === "HEX") return "0x" + color.hex.toString(16);
|
|
23219
|
-
else if (colorFormat === "RGB_ARRAY") return "[" + r + "," + g + "," + b + "]";
|
|
23220
|
-
else if (colorFormat === "RGBA_ARRAY") return "[" + r + "," + g + "," + b + "," + a + "]";
|
|
23221
|
-
else if (colorFormat === "RGB_OBJ") return "{r:" + r + ",g:" + g + ",b:" + b + "}";
|
|
23222
|
-
else if (colorFormat === "RGBA_OBJ") return "{r:" + r + ",g:" + g + ",b:" + b + ",a:" + a + "}";
|
|
23223
|
-
else if (colorFormat === "HSV_OBJ") return "{h:" + h + ",s:" + s + ",v:" + v + "}";
|
|
23224
|
-
else if (colorFormat === "HSVA_OBJ") return "{h:" + h + ",s:" + s + ",v:" + v + ",a:" + a + "}";
|
|
23225
|
-
return "unknown format";
|
|
23226
|
-
}
|
|
23227
|
-
var ARR_EACH = Array.prototype.forEach;
|
|
23228
|
-
var ARR_SLICE = Array.prototype.slice;
|
|
23229
|
-
var Common = {
|
|
23230
|
-
BREAK: {},
|
|
23231
|
-
extend: function extend(target) {
|
|
23232
|
-
this.each(ARR_SLICE.call(arguments, 1), function(obj) {
|
|
23233
|
-
(this.isObject(obj) ? Object.keys(obj) : []).forEach(function(key) {
|
|
23234
|
-
if (!this.isUndefined(obj[key])) target[key] = obj[key];
|
|
23235
|
-
}.bind(this));
|
|
23236
|
-
}, this);
|
|
23237
|
-
return target;
|
|
23238
|
-
},
|
|
23239
|
-
defaults: function defaults(target) {
|
|
23240
|
-
this.each(ARR_SLICE.call(arguments, 1), function(obj) {
|
|
23241
|
-
(this.isObject(obj) ? Object.keys(obj) : []).forEach(function(key) {
|
|
23242
|
-
if (this.isUndefined(target[key])) target[key] = obj[key];
|
|
23243
|
-
}.bind(this));
|
|
23244
|
-
}, this);
|
|
23245
|
-
return target;
|
|
23246
|
-
},
|
|
23247
|
-
compose: function compose() {
|
|
23248
|
-
var toCall = ARR_SLICE.call(arguments);
|
|
23249
|
-
return function() {
|
|
23250
|
-
var args = ARR_SLICE.call(arguments);
|
|
23251
|
-
for (var i = toCall.length - 1; i >= 0; i--) args = [toCall[i].apply(this, args)];
|
|
23252
|
-
return args[0];
|
|
23253
|
-
};
|
|
23254
|
-
},
|
|
23255
|
-
each: function each(obj, itr, scope) {
|
|
23256
|
-
if (!obj) return;
|
|
23257
|
-
if (ARR_EACH && obj.forEach && obj.forEach === ARR_EACH) obj.forEach(itr, scope);
|
|
23258
|
-
else if (obj.length === obj.length + 0) {
|
|
23259
|
-
var key = void 0;
|
|
23260
|
-
var l = void 0;
|
|
23261
|
-
for (key = 0, l = obj.length; key < l; key++) if (key in obj && itr.call(scope, obj[key], key) === this.BREAK) return;
|
|
23262
|
-
} else for (var _key in obj) if (itr.call(scope, obj[_key], _key) === this.BREAK) return;
|
|
23263
|
-
},
|
|
23264
|
-
defer: function defer(fnc) {
|
|
23265
|
-
setTimeout(fnc, 0);
|
|
23266
|
-
},
|
|
23267
|
-
debounce: function debounce(func, threshold, callImmediately) {
|
|
23268
|
-
var timeout = void 0;
|
|
23269
|
-
return function() {
|
|
23270
|
-
var obj = this;
|
|
23271
|
-
var args = arguments;
|
|
23272
|
-
function delayed() {
|
|
23273
|
-
timeout = null;
|
|
23274
|
-
if (!callImmediately) func.apply(obj, args);
|
|
23275
|
-
}
|
|
23276
|
-
var callNow = callImmediately || !timeout;
|
|
23277
|
-
clearTimeout(timeout);
|
|
23278
|
-
timeout = setTimeout(delayed, threshold);
|
|
23279
|
-
if (callNow) func.apply(obj, args);
|
|
23280
|
-
};
|
|
23281
|
-
},
|
|
23282
|
-
toArray: function toArray(obj) {
|
|
23283
|
-
if (obj.toArray) return obj.toArray();
|
|
23284
|
-
return ARR_SLICE.call(obj);
|
|
23285
|
-
},
|
|
23286
|
-
isUndefined: function isUndefined(obj) {
|
|
23287
|
-
return obj === void 0;
|
|
23288
|
-
},
|
|
23289
|
-
isNull: function isNull(obj) {
|
|
23290
|
-
return obj === null;
|
|
23291
|
-
},
|
|
23292
|
-
isNaN: function(_isNaN) {
|
|
23293
|
-
function isNaN(_x) {
|
|
23294
|
-
return _isNaN.apply(this, arguments);
|
|
23295
|
-
}
|
|
23296
|
-
isNaN.toString = function() {
|
|
23297
|
-
return _isNaN.toString();
|
|
23298
|
-
};
|
|
23299
|
-
return isNaN;
|
|
23300
|
-
}(function(obj) {
|
|
23301
|
-
return isNaN(obj);
|
|
23302
|
-
}),
|
|
23303
|
-
isArray: Array.isArray || function(obj) {
|
|
23304
|
-
return obj.constructor === Array;
|
|
23305
|
-
},
|
|
23306
|
-
isObject: function isObject(obj) {
|
|
23307
|
-
return obj === Object(obj);
|
|
23308
|
-
},
|
|
23309
|
-
isNumber: function isNumber(obj) {
|
|
23310
|
-
return obj === obj + 0;
|
|
23311
|
-
},
|
|
23312
|
-
isString: function isString(obj) {
|
|
23313
|
-
return obj === obj + "";
|
|
23314
|
-
},
|
|
23315
|
-
isBoolean: function isBoolean(obj) {
|
|
23316
|
-
return obj === false || obj === true;
|
|
23317
|
-
},
|
|
23318
|
-
isFunction: function isFunction(obj) {
|
|
23319
|
-
return obj instanceof Function;
|
|
23320
|
-
}
|
|
23321
|
-
};
|
|
23322
|
-
var INTERPRETATIONS = [
|
|
23323
|
-
{
|
|
23324
|
-
litmus: Common.isString,
|
|
23325
|
-
conversions: {
|
|
23326
|
-
THREE_CHAR_HEX: {
|
|
23327
|
-
read: function read(original) {
|
|
23328
|
-
var test = original.match(/^#([A-F0-9])([A-F0-9])([A-F0-9])$/i);
|
|
23329
|
-
if (test === null) return false;
|
|
23330
|
-
return {
|
|
23331
|
-
space: "HEX",
|
|
23332
|
-
hex: parseInt("0x" + test[1].toString() + test[1].toString() + test[2].toString() + test[2].toString() + test[3].toString() + test[3].toString(), 0)
|
|
23333
|
-
};
|
|
23334
|
-
},
|
|
23335
|
-
write: colorToString
|
|
23336
|
-
},
|
|
23337
|
-
SIX_CHAR_HEX: {
|
|
23338
|
-
read: function read(original) {
|
|
23339
|
-
var test = original.match(/^#([A-F0-9]{6})$/i);
|
|
23340
|
-
if (test === null) return false;
|
|
23341
|
-
return {
|
|
23342
|
-
space: "HEX",
|
|
23343
|
-
hex: parseInt("0x" + test[1].toString(), 0)
|
|
23344
|
-
};
|
|
23345
|
-
},
|
|
23346
|
-
write: colorToString
|
|
23347
|
-
},
|
|
23348
|
-
CSS_RGB: {
|
|
23349
|
-
read: function read(original) {
|
|
23350
|
-
var test = original.match(/^rgb\(\s*(\S+)\s*,\s*(\S+)\s*,\s*(\S+)\s*\)/);
|
|
23351
|
-
if (test === null) return false;
|
|
23352
|
-
return {
|
|
23353
|
-
space: "RGB",
|
|
23354
|
-
r: parseFloat(test[1]),
|
|
23355
|
-
g: parseFloat(test[2]),
|
|
23356
|
-
b: parseFloat(test[3])
|
|
23357
|
-
};
|
|
23358
|
-
},
|
|
23359
|
-
write: colorToString
|
|
23360
|
-
},
|
|
23361
|
-
CSS_RGBA: {
|
|
23362
|
-
read: function read(original) {
|
|
23363
|
-
var test = original.match(/^rgba\(\s*(\S+)\s*,\s*(\S+)\s*,\s*(\S+)\s*,\s*(\S+)\s*\)/);
|
|
23364
|
-
if (test === null) return false;
|
|
23365
|
-
return {
|
|
23366
|
-
space: "RGB",
|
|
23367
|
-
r: parseFloat(test[1]),
|
|
23368
|
-
g: parseFloat(test[2]),
|
|
23369
|
-
b: parseFloat(test[3]),
|
|
23370
|
-
a: parseFloat(test[4])
|
|
23371
|
-
};
|
|
23372
|
-
},
|
|
23373
|
-
write: colorToString
|
|
23374
|
-
}
|
|
23375
|
-
}
|
|
23376
|
-
},
|
|
23377
|
-
{
|
|
23378
|
-
litmus: Common.isNumber,
|
|
23379
|
-
conversions: { HEX: {
|
|
23380
|
-
read: function read(original) {
|
|
23381
|
-
return {
|
|
23382
|
-
space: "HEX",
|
|
23383
|
-
hex: original,
|
|
23384
|
-
conversionName: "HEX"
|
|
23385
|
-
};
|
|
23386
|
-
},
|
|
23387
|
-
write: function write(color) {
|
|
23388
|
-
return color.hex;
|
|
23389
|
-
}
|
|
23390
|
-
} }
|
|
23391
|
-
},
|
|
23392
|
-
{
|
|
23393
|
-
litmus: Common.isArray,
|
|
23394
|
-
conversions: {
|
|
23395
|
-
RGB_ARRAY: {
|
|
23396
|
-
read: function read(original) {
|
|
23397
|
-
if (original.length !== 3) return false;
|
|
23398
|
-
return {
|
|
23399
|
-
space: "RGB",
|
|
23400
|
-
r: original[0],
|
|
23401
|
-
g: original[1],
|
|
23402
|
-
b: original[2]
|
|
23403
|
-
};
|
|
23404
|
-
},
|
|
23405
|
-
write: function write(color) {
|
|
23406
|
-
return [
|
|
23407
|
-
color.r,
|
|
23408
|
-
color.g,
|
|
23409
|
-
color.b
|
|
23410
|
-
];
|
|
23411
|
-
}
|
|
23412
|
-
},
|
|
23413
|
-
RGBA_ARRAY: {
|
|
23414
|
-
read: function read(original) {
|
|
23415
|
-
if (original.length !== 4) return false;
|
|
23416
|
-
return {
|
|
23417
|
-
space: "RGB",
|
|
23418
|
-
r: original[0],
|
|
23419
|
-
g: original[1],
|
|
23420
|
-
b: original[2],
|
|
23421
|
-
a: original[3]
|
|
23422
|
-
};
|
|
23423
|
-
},
|
|
23424
|
-
write: function write(color) {
|
|
23425
|
-
return [
|
|
23426
|
-
color.r,
|
|
23427
|
-
color.g,
|
|
23428
|
-
color.b,
|
|
23429
|
-
color.a
|
|
23430
|
-
];
|
|
23431
|
-
}
|
|
23432
|
-
}
|
|
23433
|
-
}
|
|
23434
|
-
},
|
|
23435
|
-
{
|
|
23436
|
-
litmus: Common.isObject,
|
|
23437
|
-
conversions: {
|
|
23438
|
-
RGBA_OBJ: {
|
|
23439
|
-
read: function read(original) {
|
|
23440
|
-
if (Common.isNumber(original.r) && Common.isNumber(original.g) && Common.isNumber(original.b) && Common.isNumber(original.a)) return {
|
|
23441
|
-
space: "RGB",
|
|
23442
|
-
r: original.r,
|
|
23443
|
-
g: original.g,
|
|
23444
|
-
b: original.b,
|
|
23445
|
-
a: original.a
|
|
23446
|
-
};
|
|
23447
|
-
return false;
|
|
23448
|
-
},
|
|
23449
|
-
write: function write(color) {
|
|
23450
|
-
return {
|
|
23451
|
-
r: color.r,
|
|
23452
|
-
g: color.g,
|
|
23453
|
-
b: color.b,
|
|
23454
|
-
a: color.a
|
|
23455
|
-
};
|
|
23456
|
-
}
|
|
23457
|
-
},
|
|
23458
|
-
RGB_OBJ: {
|
|
23459
|
-
read: function read(original) {
|
|
23460
|
-
if (Common.isNumber(original.r) && Common.isNumber(original.g) && Common.isNumber(original.b)) return {
|
|
23461
|
-
space: "RGB",
|
|
23462
|
-
r: original.r,
|
|
23463
|
-
g: original.g,
|
|
23464
|
-
b: original.b
|
|
23465
|
-
};
|
|
23466
|
-
return false;
|
|
23467
|
-
},
|
|
23468
|
-
write: function write(color) {
|
|
23469
|
-
return {
|
|
23470
|
-
r: color.r,
|
|
23471
|
-
g: color.g,
|
|
23472
|
-
b: color.b
|
|
23473
|
-
};
|
|
23474
|
-
}
|
|
23475
|
-
},
|
|
23476
|
-
HSVA_OBJ: {
|
|
23477
|
-
read: function read(original) {
|
|
23478
|
-
if (Common.isNumber(original.h) && Common.isNumber(original.s) && Common.isNumber(original.v) && Common.isNumber(original.a)) return {
|
|
23479
|
-
space: "HSV",
|
|
23480
|
-
h: original.h,
|
|
23481
|
-
s: original.s,
|
|
23482
|
-
v: original.v,
|
|
23483
|
-
a: original.a
|
|
23484
|
-
};
|
|
23485
|
-
return false;
|
|
23486
|
-
},
|
|
23487
|
-
write: function write(color) {
|
|
23488
|
-
return {
|
|
23489
|
-
h: color.h,
|
|
23490
|
-
s: color.s,
|
|
23491
|
-
v: color.v,
|
|
23492
|
-
a: color.a
|
|
23493
|
-
};
|
|
23494
|
-
}
|
|
23495
|
-
},
|
|
23496
|
-
HSV_OBJ: {
|
|
23497
|
-
read: function read(original) {
|
|
23498
|
-
if (Common.isNumber(original.h) && Common.isNumber(original.s) && Common.isNumber(original.v)) return {
|
|
23499
|
-
space: "HSV",
|
|
23500
|
-
h: original.h,
|
|
23501
|
-
s: original.s,
|
|
23502
|
-
v: original.v
|
|
23503
|
-
};
|
|
23504
|
-
return false;
|
|
23505
|
-
},
|
|
23506
|
-
write: function write(color) {
|
|
23507
|
-
return {
|
|
23508
|
-
h: color.h,
|
|
23509
|
-
s: color.s,
|
|
23510
|
-
v: color.v
|
|
23511
|
-
};
|
|
23512
|
-
}
|
|
23513
|
-
}
|
|
23514
|
-
}
|
|
23515
|
-
}
|
|
23516
|
-
];
|
|
23517
|
-
var result = void 0;
|
|
23518
|
-
var toReturn = void 0;
|
|
23519
|
-
var interpret = function interpret() {
|
|
23520
|
-
toReturn = false;
|
|
23521
|
-
var original = arguments.length > 1 ? Common.toArray(arguments) : arguments[0];
|
|
23522
|
-
Common.each(INTERPRETATIONS, function(family) {
|
|
23523
|
-
if (family.litmus(original)) {
|
|
23524
|
-
Common.each(family.conversions, function(conversion, conversionName) {
|
|
23525
|
-
result = conversion.read(original);
|
|
23526
|
-
if (toReturn === false && result !== false) {
|
|
23527
|
-
toReturn = result;
|
|
23528
|
-
result.conversionName = conversionName;
|
|
23529
|
-
result.conversion = conversion;
|
|
23530
|
-
return Common.BREAK;
|
|
23531
|
-
}
|
|
23532
|
-
});
|
|
23533
|
-
return Common.BREAK;
|
|
23534
|
-
}
|
|
23535
|
-
});
|
|
23536
|
-
return toReturn;
|
|
23537
|
-
};
|
|
23538
|
-
var tmpComponent = void 0;
|
|
23539
|
-
var ColorMath = {
|
|
23540
|
-
hsv_to_rgb: function hsv_to_rgb(h, s, v) {
|
|
23541
|
-
var hi = Math.floor(h / 60) % 6;
|
|
23542
|
-
var f = h / 60 - Math.floor(h / 60);
|
|
23543
|
-
var p = v * (1 - s);
|
|
23544
|
-
var q = v * (1 - f * s);
|
|
23545
|
-
var t = v * (1 - (1 - f) * s);
|
|
23546
|
-
var c = [
|
|
23547
|
-
[
|
|
23548
|
-
v,
|
|
23549
|
-
t,
|
|
23550
|
-
p
|
|
23551
|
-
],
|
|
23552
|
-
[
|
|
23553
|
-
q,
|
|
23554
|
-
v,
|
|
23555
|
-
p
|
|
23556
|
-
],
|
|
23557
|
-
[
|
|
23558
|
-
p,
|
|
23559
|
-
v,
|
|
23560
|
-
t
|
|
23561
|
-
],
|
|
23562
|
-
[
|
|
23563
|
-
p,
|
|
23564
|
-
q,
|
|
23565
|
-
v
|
|
23566
|
-
],
|
|
23567
|
-
[
|
|
23568
|
-
t,
|
|
23569
|
-
p,
|
|
23570
|
-
v
|
|
23571
|
-
],
|
|
23572
|
-
[
|
|
23573
|
-
v,
|
|
23574
|
-
p,
|
|
23575
|
-
q
|
|
23576
|
-
]
|
|
23577
|
-
][hi];
|
|
23578
|
-
return {
|
|
23579
|
-
r: c[0] * 255,
|
|
23580
|
-
g: c[1] * 255,
|
|
23581
|
-
b: c[2] * 255
|
|
23582
|
-
};
|
|
23583
|
-
},
|
|
23584
|
-
rgb_to_hsv: function rgb_to_hsv(r, g, b) {
|
|
23585
|
-
var min = Math.min(r, g, b);
|
|
23586
|
-
var max = Math.max(r, g, b);
|
|
23587
|
-
var delta = max - min;
|
|
23588
|
-
var h = void 0;
|
|
23589
|
-
var s = void 0;
|
|
23590
|
-
if (max !== 0) s = delta / max;
|
|
23591
|
-
else return {
|
|
23592
|
-
h: NaN,
|
|
23593
|
-
s: 0,
|
|
23594
|
-
v: 0
|
|
23595
|
-
};
|
|
23596
|
-
if (r === max) h = (g - b) / delta;
|
|
23597
|
-
else if (g === max) h = 2 + (b - r) / delta;
|
|
23598
|
-
else h = 4 + (r - g) / delta;
|
|
23599
|
-
h /= 6;
|
|
23600
|
-
if (h < 0) h += 1;
|
|
23601
|
-
return {
|
|
23602
|
-
h: h * 360,
|
|
23603
|
-
s,
|
|
23604
|
-
v: max / 255
|
|
23605
|
-
};
|
|
23606
|
-
},
|
|
23607
|
-
rgb_to_hex: function rgb_to_hex(r, g, b) {
|
|
23608
|
-
var hex = this.hex_with_component(0, 2, r);
|
|
23609
|
-
hex = this.hex_with_component(hex, 1, g);
|
|
23610
|
-
hex = this.hex_with_component(hex, 0, b);
|
|
23611
|
-
return hex;
|
|
23612
|
-
},
|
|
23613
|
-
component_from_hex: function component_from_hex(hex, componentIndex) {
|
|
23614
|
-
return hex >> componentIndex * 8 & 255;
|
|
23615
|
-
},
|
|
23616
|
-
hex_with_component: function hex_with_component(hex, componentIndex, value) {
|
|
23617
|
-
return value << (tmpComponent = componentIndex * 8) | hex & ~(255 << tmpComponent);
|
|
23618
|
-
}
|
|
23619
|
-
};
|
|
23620
|
-
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function(obj) {
|
|
23621
|
-
return typeof obj;
|
|
23622
|
-
} : function(obj) {
|
|
23623
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
23624
|
-
};
|
|
23625
|
-
var classCallCheck = function(instance, Constructor) {
|
|
23626
|
-
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
23627
|
-
};
|
|
23628
|
-
var createClass = function() {
|
|
23629
|
-
function defineProperties(target, props) {
|
|
23630
|
-
for (var i = 0; i < props.length; i++) {
|
|
23631
|
-
var descriptor = props[i];
|
|
23632
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
23633
|
-
descriptor.configurable = true;
|
|
23634
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
23635
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
23636
|
-
}
|
|
23637
|
-
}
|
|
23638
|
-
return function(Constructor, protoProps, staticProps) {
|
|
23639
|
-
if (protoProps) defineProperties(Constructor.prototype, protoProps);
|
|
23640
|
-
if (staticProps) defineProperties(Constructor, staticProps);
|
|
23641
|
-
return Constructor;
|
|
23642
|
-
};
|
|
23643
|
-
}();
|
|
23644
|
-
var get = function get(object, property, receiver) {
|
|
23645
|
-
if (object === null) object = Function.prototype;
|
|
23646
|
-
var desc = Object.getOwnPropertyDescriptor(object, property);
|
|
23647
|
-
if (desc === void 0) {
|
|
23648
|
-
var parent = Object.getPrototypeOf(object);
|
|
23649
|
-
if (parent === null) return;
|
|
23650
|
-
else return get(parent, property, receiver);
|
|
23651
|
-
} else if ("value" in desc) return desc.value;
|
|
23652
|
-
else {
|
|
23653
|
-
var getter = desc.get;
|
|
23654
|
-
if (getter === void 0) return;
|
|
23655
|
-
return getter.call(receiver);
|
|
23656
|
-
}
|
|
23657
|
-
};
|
|
23658
|
-
var inherits = function(subClass, superClass) {
|
|
23659
|
-
if (typeof superClass !== "function" && superClass !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
|
|
23660
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: {
|
|
23661
|
-
value: subClass,
|
|
23662
|
-
enumerable: false,
|
|
23663
|
-
writable: true,
|
|
23664
|
-
configurable: true
|
|
23665
|
-
} });
|
|
23666
|
-
if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
|
|
23667
|
-
};
|
|
23668
|
-
var possibleConstructorReturn = function(self, call) {
|
|
23669
|
-
if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
23670
|
-
return call && (typeof call === "object" || typeof call === "function") ? call : self;
|
|
23671
|
-
};
|
|
23672
|
-
var Color = function() {
|
|
23673
|
-
function Color() {
|
|
23674
|
-
classCallCheck(this, Color);
|
|
23675
|
-
this.__state = interpret.apply(this, arguments);
|
|
23676
|
-
if (this.__state === false) throw new Error("Failed to interpret color arguments");
|
|
23677
|
-
this.__state.a = this.__state.a || 1;
|
|
23678
|
-
}
|
|
23679
|
-
createClass(Color, [
|
|
23680
|
-
{
|
|
23681
|
-
key: "toString",
|
|
23682
|
-
value: function toString() {
|
|
23683
|
-
return colorToString(this);
|
|
23684
|
-
}
|
|
23685
|
-
},
|
|
23686
|
-
{
|
|
23687
|
-
key: "toHexString",
|
|
23688
|
-
value: function toHexString() {
|
|
23689
|
-
return colorToString(this, true);
|
|
23690
|
-
}
|
|
23691
|
-
},
|
|
23692
|
-
{
|
|
23693
|
-
key: "toOriginal",
|
|
23694
|
-
value: function toOriginal() {
|
|
23695
|
-
return this.__state.conversion.write(this);
|
|
23696
|
-
}
|
|
23697
|
-
}
|
|
23698
|
-
]);
|
|
23699
|
-
return Color;
|
|
23700
|
-
}();
|
|
23701
|
-
function defineRGBComponent(target, component, componentHexIndex) {
|
|
23702
|
-
Object.defineProperty(target, component, {
|
|
23703
|
-
get: function get$$1() {
|
|
23704
|
-
if (this.__state.space === "RGB") return this.__state[component];
|
|
23705
|
-
Color.recalculateRGB(this, component, componentHexIndex);
|
|
23706
|
-
return this.__state[component];
|
|
23707
|
-
},
|
|
23708
|
-
set: function set$$1(v) {
|
|
23709
|
-
if (this.__state.space !== "RGB") {
|
|
23710
|
-
Color.recalculateRGB(this, component, componentHexIndex);
|
|
23711
|
-
this.__state.space = "RGB";
|
|
23712
|
-
}
|
|
23713
|
-
this.__state[component] = v;
|
|
23714
|
-
}
|
|
23715
|
-
});
|
|
23716
|
-
}
|
|
23717
|
-
function defineHSVComponent(target, component) {
|
|
23718
|
-
Object.defineProperty(target, component, {
|
|
23719
|
-
get: function get$$1() {
|
|
23720
|
-
if (this.__state.space === "HSV") return this.__state[component];
|
|
23721
|
-
Color.recalculateHSV(this);
|
|
23722
|
-
return this.__state[component];
|
|
23723
|
-
},
|
|
23724
|
-
set: function set$$1(v) {
|
|
23725
|
-
if (this.__state.space !== "HSV") {
|
|
23726
|
-
Color.recalculateHSV(this);
|
|
23727
|
-
this.__state.space = "HSV";
|
|
23728
|
-
}
|
|
23729
|
-
this.__state[component] = v;
|
|
23730
|
-
}
|
|
23731
|
-
});
|
|
23732
|
-
}
|
|
23733
|
-
Color.recalculateRGB = function(color, component, componentHexIndex) {
|
|
23734
|
-
if (color.__state.space === "HEX") color.__state[component] = ColorMath.component_from_hex(color.__state.hex, componentHexIndex);
|
|
23735
|
-
else if (color.__state.space === "HSV") Common.extend(color.__state, ColorMath.hsv_to_rgb(color.__state.h, color.__state.s, color.__state.v));
|
|
23736
|
-
else throw new Error("Corrupted color state");
|
|
23737
|
-
};
|
|
23738
|
-
Color.recalculateHSV = function(color) {
|
|
23739
|
-
var result = ColorMath.rgb_to_hsv(color.r, color.g, color.b);
|
|
23740
|
-
Common.extend(color.__state, {
|
|
23741
|
-
s: result.s,
|
|
23742
|
-
v: result.v
|
|
23743
|
-
});
|
|
23744
|
-
if (!Common.isNaN(result.h)) color.__state.h = result.h;
|
|
23745
|
-
else if (Common.isUndefined(color.__state.h)) color.__state.h = 0;
|
|
23746
|
-
};
|
|
23747
|
-
Color.COMPONENTS = [
|
|
23748
|
-
"r",
|
|
23749
|
-
"g",
|
|
23750
|
-
"b",
|
|
23751
|
-
"h",
|
|
23752
|
-
"s",
|
|
23753
|
-
"v",
|
|
23754
|
-
"hex",
|
|
23755
|
-
"a"
|
|
23756
|
-
];
|
|
23757
|
-
defineRGBComponent(Color.prototype, "r", 2);
|
|
23758
|
-
defineRGBComponent(Color.prototype, "g", 1);
|
|
23759
|
-
defineRGBComponent(Color.prototype, "b", 0);
|
|
23760
|
-
defineHSVComponent(Color.prototype, "h");
|
|
23761
|
-
defineHSVComponent(Color.prototype, "s");
|
|
23762
|
-
defineHSVComponent(Color.prototype, "v");
|
|
23763
|
-
Object.defineProperty(Color.prototype, "a", {
|
|
23764
|
-
get: function get$$1() {
|
|
23765
|
-
return this.__state.a;
|
|
23766
|
-
},
|
|
23767
|
-
set: function set$$1(v) {
|
|
23768
|
-
this.__state.a = v;
|
|
23769
|
-
}
|
|
23770
|
-
});
|
|
23771
|
-
Object.defineProperty(Color.prototype, "hex", {
|
|
23772
|
-
get: function get$$1() {
|
|
23773
|
-
if (this.__state.space !== "HEX") {
|
|
23774
|
-
this.__state.hex = ColorMath.rgb_to_hex(this.r, this.g, this.b);
|
|
23775
|
-
this.__state.space = "HEX";
|
|
23776
|
-
}
|
|
23777
|
-
return this.__state.hex;
|
|
23778
|
-
},
|
|
23779
|
-
set: function set$$1(v) {
|
|
23780
|
-
this.__state.space = "HEX";
|
|
23781
|
-
this.__state.hex = v;
|
|
23782
|
-
}
|
|
23783
|
-
});
|
|
23784
|
-
var Controller = function() {
|
|
23785
|
-
function Controller(object, property) {
|
|
23786
|
-
classCallCheck(this, Controller);
|
|
23787
|
-
this.initialValue = object[property];
|
|
23788
|
-
this.domElement = document.createElement("div");
|
|
23789
|
-
this.object = object;
|
|
23790
|
-
this.property = property;
|
|
23791
|
-
this.__onChange = void 0;
|
|
23792
|
-
this.__onFinishChange = void 0;
|
|
23793
|
-
}
|
|
23794
|
-
createClass(Controller, [
|
|
23795
|
-
{
|
|
23796
|
-
key: "onChange",
|
|
23797
|
-
value: function onChange(fnc) {
|
|
23798
|
-
this.__onChange = fnc;
|
|
23799
|
-
return this;
|
|
23800
|
-
}
|
|
23801
|
-
},
|
|
23802
|
-
{
|
|
23803
|
-
key: "onFinishChange",
|
|
23804
|
-
value: function onFinishChange(fnc) {
|
|
23805
|
-
this.__onFinishChange = fnc;
|
|
23806
|
-
return this;
|
|
23807
|
-
}
|
|
23808
|
-
},
|
|
23809
|
-
{
|
|
23810
|
-
key: "setValue",
|
|
23811
|
-
value: function setValue(newValue) {
|
|
23812
|
-
this.object[this.property] = newValue;
|
|
23813
|
-
if (this.__onChange) this.__onChange.call(this, newValue);
|
|
23814
|
-
this.updateDisplay();
|
|
23815
|
-
return this;
|
|
23816
|
-
}
|
|
23817
|
-
},
|
|
23818
|
-
{
|
|
23819
|
-
key: "getValue",
|
|
23820
|
-
value: function getValue() {
|
|
23821
|
-
return this.object[this.property];
|
|
23822
|
-
}
|
|
23823
|
-
},
|
|
23824
|
-
{
|
|
23825
|
-
key: "updateDisplay",
|
|
23826
|
-
value: function updateDisplay() {
|
|
23827
|
-
return this;
|
|
23828
|
-
}
|
|
23829
|
-
},
|
|
23830
|
-
{
|
|
23831
|
-
key: "isModified",
|
|
23832
|
-
value: function isModified() {
|
|
23833
|
-
return this.initialValue !== this.getValue();
|
|
23834
|
-
}
|
|
23835
|
-
}
|
|
23836
|
-
]);
|
|
23837
|
-
return Controller;
|
|
23838
|
-
}();
|
|
23839
|
-
var EVENT_MAP = {
|
|
23840
|
-
HTMLEvents: ["change"],
|
|
23841
|
-
MouseEvents: [
|
|
23842
|
-
"click",
|
|
23843
|
-
"mousemove",
|
|
23844
|
-
"mousedown",
|
|
23845
|
-
"mouseup",
|
|
23846
|
-
"mouseover"
|
|
23847
|
-
],
|
|
23848
|
-
KeyboardEvents: ["keydown"]
|
|
23849
|
-
};
|
|
23850
|
-
var EVENT_MAP_INV = {};
|
|
23851
|
-
Common.each(EVENT_MAP, function(v, k) {
|
|
23852
|
-
Common.each(v, function(e) {
|
|
23853
|
-
EVENT_MAP_INV[e] = k;
|
|
23854
|
-
});
|
|
23855
|
-
});
|
|
23856
|
-
var CSS_VALUE_PIXELS = /(\d+(\.\d+)?)px/;
|
|
23857
|
-
function cssValueToPixels(val) {
|
|
23858
|
-
if (val === "0" || Common.isUndefined(val)) return 0;
|
|
23859
|
-
var match = val.match(CSS_VALUE_PIXELS);
|
|
23860
|
-
if (!Common.isNull(match)) return parseFloat(match[1]);
|
|
23861
|
-
return 0;
|
|
23862
|
-
}
|
|
23863
|
-
var dom = {
|
|
23864
|
-
makeSelectable: function makeSelectable(elem, selectable) {
|
|
23865
|
-
if (elem === void 0 || elem.style === void 0) return;
|
|
23866
|
-
elem.onselectstart = selectable ? function() {
|
|
23867
|
-
return false;
|
|
23868
|
-
} : function() {};
|
|
23869
|
-
elem.style.MozUserSelect = selectable ? "auto" : "none";
|
|
23870
|
-
elem.style.KhtmlUserSelect = selectable ? "auto" : "none";
|
|
23871
|
-
elem.unselectable = selectable ? "on" : "off";
|
|
23872
|
-
},
|
|
23873
|
-
makeFullscreen: function makeFullscreen(elem, hor, vert) {
|
|
23874
|
-
var vertical = vert;
|
|
23875
|
-
var horizontal = hor;
|
|
23876
|
-
if (Common.isUndefined(horizontal)) horizontal = true;
|
|
23877
|
-
if (Common.isUndefined(vertical)) vertical = true;
|
|
23878
|
-
elem.style.position = "absolute";
|
|
23879
|
-
if (horizontal) {
|
|
23880
|
-
elem.style.left = 0;
|
|
23881
|
-
elem.style.right = 0;
|
|
23882
|
-
}
|
|
23883
|
-
if (vertical) {
|
|
23884
|
-
elem.style.top = 0;
|
|
23885
|
-
elem.style.bottom = 0;
|
|
23886
|
-
}
|
|
23887
|
-
},
|
|
23888
|
-
fakeEvent: function fakeEvent(elem, eventType, pars, aux) {
|
|
23889
|
-
var params = pars || {};
|
|
23890
|
-
var className = EVENT_MAP_INV[eventType];
|
|
23891
|
-
if (!className) throw new Error("Event type " + eventType + " not supported.");
|
|
23892
|
-
var evt = document.createEvent(className);
|
|
23893
|
-
switch (className) {
|
|
23894
|
-
case "MouseEvents":
|
|
23895
|
-
var clientX = params.x || params.clientX || 0;
|
|
23896
|
-
var clientY = params.y || params.clientY || 0;
|
|
23897
|
-
evt.initMouseEvent(eventType, params.bubbles || false, params.cancelable || true, window, params.clickCount || 1, 0, 0, clientX, clientY, false, false, false, false, 0, null);
|
|
23898
|
-
break;
|
|
23899
|
-
case "KeyboardEvents":
|
|
23900
|
-
var init = evt.initKeyboardEvent || evt.initKeyEvent;
|
|
23901
|
-
Common.defaults(params, {
|
|
23902
|
-
cancelable: true,
|
|
23903
|
-
ctrlKey: false,
|
|
23904
|
-
altKey: false,
|
|
23905
|
-
shiftKey: false,
|
|
23906
|
-
metaKey: false,
|
|
23907
|
-
keyCode: void 0,
|
|
23908
|
-
charCode: void 0
|
|
23909
|
-
});
|
|
23910
|
-
init(eventType, params.bubbles || false, params.cancelable, window, params.ctrlKey, params.altKey, params.shiftKey, params.metaKey, params.keyCode, params.charCode);
|
|
23911
|
-
break;
|
|
23912
|
-
default:
|
|
23913
|
-
evt.initEvent(eventType, params.bubbles || false, params.cancelable || true);
|
|
23914
|
-
break;
|
|
23915
|
-
}
|
|
23916
|
-
Common.defaults(evt, aux);
|
|
23917
|
-
elem.dispatchEvent(evt);
|
|
23918
|
-
},
|
|
23919
|
-
bind: function bind(elem, event, func, newBool) {
|
|
23920
|
-
var bool = newBool || false;
|
|
23921
|
-
if (elem.addEventListener) elem.addEventListener(event, func, bool);
|
|
23922
|
-
else if (elem.attachEvent) elem.attachEvent("on" + event, func);
|
|
23923
|
-
return dom;
|
|
23924
|
-
},
|
|
23925
|
-
unbind: function unbind(elem, event, func, newBool) {
|
|
23926
|
-
var bool = newBool || false;
|
|
23927
|
-
if (elem.removeEventListener) elem.removeEventListener(event, func, bool);
|
|
23928
|
-
else if (elem.detachEvent) elem.detachEvent("on" + event, func);
|
|
23929
|
-
return dom;
|
|
23930
|
-
},
|
|
23931
|
-
addClass: function addClass(elem, className) {
|
|
23932
|
-
if (elem.className === void 0) elem.className = className;
|
|
23933
|
-
else if (elem.className !== className) {
|
|
23934
|
-
var classes = elem.className.split(/ +/);
|
|
23935
|
-
if (classes.indexOf(className) === -1) {
|
|
23936
|
-
classes.push(className);
|
|
23937
|
-
elem.className = classes.join(" ").replace(/^\s+/, "").replace(/\s+$/, "");
|
|
23938
|
-
}
|
|
23939
|
-
}
|
|
23940
|
-
return dom;
|
|
23941
|
-
},
|
|
23942
|
-
removeClass: function removeClass(elem, className) {
|
|
23943
|
-
if (className) if (elem.className === className) elem.removeAttribute("class");
|
|
23944
|
-
else {
|
|
23945
|
-
var classes = elem.className.split(/ +/);
|
|
23946
|
-
var index = classes.indexOf(className);
|
|
23947
|
-
if (index !== -1) {
|
|
23948
|
-
classes.splice(index, 1);
|
|
23949
|
-
elem.className = classes.join(" ");
|
|
23950
|
-
}
|
|
23951
|
-
}
|
|
23952
|
-
else elem.className = void 0;
|
|
23953
|
-
return dom;
|
|
23954
|
-
},
|
|
23955
|
-
hasClass: function hasClass(elem, className) {
|
|
23956
|
-
return new RegExp("(?:^|\\s+)" + className + "(?:\\s+|$)").test(elem.className) || false;
|
|
23957
|
-
},
|
|
23958
|
-
getWidth: function getWidth(elem) {
|
|
23959
|
-
var style = getComputedStyle(elem);
|
|
23960
|
-
return cssValueToPixels(style["border-left-width"]) + cssValueToPixels(style["border-right-width"]) + cssValueToPixels(style["padding-left"]) + cssValueToPixels(style["padding-right"]) + cssValueToPixels(style.width);
|
|
23961
|
-
},
|
|
23962
|
-
getHeight: function getHeight(elem) {
|
|
23963
|
-
var style = getComputedStyle(elem);
|
|
23964
|
-
return cssValueToPixels(style["border-top-width"]) + cssValueToPixels(style["border-bottom-width"]) + cssValueToPixels(style["padding-top"]) + cssValueToPixels(style["padding-bottom"]) + cssValueToPixels(style.height);
|
|
23965
|
-
},
|
|
23966
|
-
getOffset: function getOffset(el) {
|
|
23967
|
-
var elem = el;
|
|
23968
|
-
var offset = {
|
|
23969
|
-
left: 0,
|
|
23970
|
-
top: 0
|
|
23971
|
-
};
|
|
23972
|
-
if (elem.offsetParent) do {
|
|
23973
|
-
offset.left += elem.offsetLeft;
|
|
23974
|
-
offset.top += elem.offsetTop;
|
|
23975
|
-
elem = elem.offsetParent;
|
|
23976
|
-
} while (elem);
|
|
23977
|
-
return offset;
|
|
23978
|
-
},
|
|
23979
|
-
isActive: function isActive(elem) {
|
|
23980
|
-
return elem === document.activeElement && (elem.type || elem.href);
|
|
23981
|
-
}
|
|
23982
|
-
};
|
|
23983
|
-
var BooleanController = function(_Controller) {
|
|
23984
|
-
inherits(BooleanController, _Controller);
|
|
23985
|
-
function BooleanController(object, property) {
|
|
23986
|
-
classCallCheck(this, BooleanController);
|
|
23987
|
-
var _this2 = possibleConstructorReturn(this, (BooleanController.__proto__ || Object.getPrototypeOf(BooleanController)).call(this, object, property));
|
|
23988
|
-
var _this = _this2;
|
|
23989
|
-
_this2.__prev = _this2.getValue();
|
|
23990
|
-
_this2.__checkbox = document.createElement("input");
|
|
23991
|
-
_this2.__checkbox.setAttribute("type", "checkbox");
|
|
23992
|
-
function onChange() {
|
|
23993
|
-
_this.setValue(!_this.__prev);
|
|
23994
|
-
}
|
|
23995
|
-
dom.bind(_this2.__checkbox, "change", onChange, false);
|
|
23996
|
-
_this2.domElement.appendChild(_this2.__checkbox);
|
|
23997
|
-
_this2.updateDisplay();
|
|
23998
|
-
return _this2;
|
|
23999
|
-
}
|
|
24000
|
-
createClass(BooleanController, [{
|
|
24001
|
-
key: "setValue",
|
|
24002
|
-
value: function setValue(v) {
|
|
24003
|
-
var toReturn = get(BooleanController.prototype.__proto__ || Object.getPrototypeOf(BooleanController.prototype), "setValue", this).call(this, v);
|
|
24004
|
-
if (this.__onFinishChange) this.__onFinishChange.call(this, this.getValue());
|
|
24005
|
-
this.__prev = this.getValue();
|
|
24006
|
-
return toReturn;
|
|
24007
|
-
}
|
|
24008
|
-
}, {
|
|
24009
|
-
key: "updateDisplay",
|
|
24010
|
-
value: function updateDisplay() {
|
|
24011
|
-
if (this.getValue() === true) {
|
|
24012
|
-
this.__checkbox.setAttribute("checked", "checked");
|
|
24013
|
-
this.__checkbox.checked = true;
|
|
24014
|
-
this.__prev = true;
|
|
24015
|
-
} else {
|
|
24016
|
-
this.__checkbox.checked = false;
|
|
24017
|
-
this.__prev = false;
|
|
24018
|
-
}
|
|
24019
|
-
return get(BooleanController.prototype.__proto__ || Object.getPrototypeOf(BooleanController.prototype), "updateDisplay", this).call(this);
|
|
24020
|
-
}
|
|
24021
|
-
}]);
|
|
24022
|
-
return BooleanController;
|
|
24023
|
-
}(Controller);
|
|
24024
|
-
var OptionController = function(_Controller) {
|
|
24025
|
-
inherits(OptionController, _Controller);
|
|
24026
|
-
function OptionController(object, property, opts) {
|
|
24027
|
-
classCallCheck(this, OptionController);
|
|
24028
|
-
var _this2 = possibleConstructorReturn(this, (OptionController.__proto__ || Object.getPrototypeOf(OptionController)).call(this, object, property));
|
|
24029
|
-
var options = opts;
|
|
24030
|
-
var _this = _this2;
|
|
24031
|
-
_this2.__select = document.createElement("select");
|
|
24032
|
-
if (Common.isArray(options)) {
|
|
24033
|
-
var map = {};
|
|
24034
|
-
Common.each(options, function(element) {
|
|
24035
|
-
map[element] = element;
|
|
24036
|
-
});
|
|
24037
|
-
options = map;
|
|
24038
|
-
}
|
|
24039
|
-
Common.each(options, function(value, key) {
|
|
24040
|
-
var opt = document.createElement("option");
|
|
24041
|
-
opt.innerHTML = key;
|
|
24042
|
-
opt.setAttribute("value", value);
|
|
24043
|
-
_this.__select.appendChild(opt);
|
|
24044
|
-
});
|
|
24045
|
-
_this2.updateDisplay();
|
|
24046
|
-
dom.bind(_this2.__select, "change", function() {
|
|
24047
|
-
var desiredValue = this.options[this.selectedIndex].value;
|
|
24048
|
-
_this.setValue(desiredValue);
|
|
24049
|
-
});
|
|
24050
|
-
_this2.domElement.appendChild(_this2.__select);
|
|
24051
|
-
return _this2;
|
|
24052
|
-
}
|
|
24053
|
-
createClass(OptionController, [{
|
|
24054
|
-
key: "setValue",
|
|
24055
|
-
value: function setValue(v) {
|
|
24056
|
-
var toReturn = get(OptionController.prototype.__proto__ || Object.getPrototypeOf(OptionController.prototype), "setValue", this).call(this, v);
|
|
24057
|
-
if (this.__onFinishChange) this.__onFinishChange.call(this, this.getValue());
|
|
24058
|
-
return toReturn;
|
|
24059
|
-
}
|
|
24060
|
-
}, {
|
|
24061
|
-
key: "updateDisplay",
|
|
24062
|
-
value: function updateDisplay() {
|
|
24063
|
-
if (dom.isActive(this.__select)) return this;
|
|
24064
|
-
this.__select.value = this.getValue();
|
|
24065
|
-
return get(OptionController.prototype.__proto__ || Object.getPrototypeOf(OptionController.prototype), "updateDisplay", this).call(this);
|
|
24066
|
-
}
|
|
24067
|
-
}]);
|
|
24068
|
-
return OptionController;
|
|
24069
|
-
}(Controller);
|
|
24070
|
-
var StringController = function(_Controller) {
|
|
24071
|
-
inherits(StringController, _Controller);
|
|
24072
|
-
function StringController(object, property) {
|
|
24073
|
-
classCallCheck(this, StringController);
|
|
24074
|
-
var _this2 = possibleConstructorReturn(this, (StringController.__proto__ || Object.getPrototypeOf(StringController)).call(this, object, property));
|
|
24075
|
-
var _this = _this2;
|
|
24076
|
-
function onChange() {
|
|
24077
|
-
_this.setValue(_this.__input.value);
|
|
24078
|
-
}
|
|
24079
|
-
function onBlur() {
|
|
24080
|
-
if (_this.__onFinishChange) _this.__onFinishChange.call(_this, _this.getValue());
|
|
24081
|
-
}
|
|
24082
|
-
_this2.__input = document.createElement("input");
|
|
24083
|
-
_this2.__input.setAttribute("type", "text");
|
|
24084
|
-
dom.bind(_this2.__input, "keyup", onChange);
|
|
24085
|
-
dom.bind(_this2.__input, "change", onChange);
|
|
24086
|
-
dom.bind(_this2.__input, "blur", onBlur);
|
|
24087
|
-
dom.bind(_this2.__input, "keydown", function(e) {
|
|
24088
|
-
if (e.keyCode === 13) this.blur();
|
|
24089
|
-
});
|
|
24090
|
-
_this2.updateDisplay();
|
|
24091
|
-
_this2.domElement.appendChild(_this2.__input);
|
|
24092
|
-
return _this2;
|
|
24093
|
-
}
|
|
24094
|
-
createClass(StringController, [{
|
|
24095
|
-
key: "updateDisplay",
|
|
24096
|
-
value: function updateDisplay() {
|
|
24097
|
-
if (!dom.isActive(this.__input)) this.__input.value = this.getValue();
|
|
24098
|
-
return get(StringController.prototype.__proto__ || Object.getPrototypeOf(StringController.prototype), "updateDisplay", this).call(this);
|
|
24099
|
-
}
|
|
24100
|
-
}]);
|
|
24101
|
-
return StringController;
|
|
24102
|
-
}(Controller);
|
|
24103
|
-
function numDecimals(x) {
|
|
24104
|
-
var _x = x.toString();
|
|
24105
|
-
if (_x.indexOf(".") > -1) return _x.length - _x.indexOf(".") - 1;
|
|
24106
|
-
return 0;
|
|
24107
|
-
}
|
|
24108
|
-
var NumberController = function(_Controller) {
|
|
24109
|
-
inherits(NumberController, _Controller);
|
|
24110
|
-
function NumberController(object, property, params) {
|
|
24111
|
-
classCallCheck(this, NumberController);
|
|
24112
|
-
var _this = possibleConstructorReturn(this, (NumberController.__proto__ || Object.getPrototypeOf(NumberController)).call(this, object, property));
|
|
24113
|
-
var _params = params || {};
|
|
24114
|
-
_this.__min = _params.min;
|
|
24115
|
-
_this.__max = _params.max;
|
|
24116
|
-
_this.__step = _params.step;
|
|
24117
|
-
if (Common.isUndefined(_this.__step)) if (_this.initialValue === 0) _this.__impliedStep = 1;
|
|
24118
|
-
else _this.__impliedStep = Math.pow(10, Math.floor(Math.log(Math.abs(_this.initialValue)) / Math.LN10)) / 10;
|
|
24119
|
-
else _this.__impliedStep = _this.__step;
|
|
24120
|
-
_this.__precision = numDecimals(_this.__impliedStep);
|
|
24121
|
-
return _this;
|
|
24122
|
-
}
|
|
24123
|
-
createClass(NumberController, [
|
|
24124
|
-
{
|
|
24125
|
-
key: "setValue",
|
|
24126
|
-
value: function setValue(v) {
|
|
24127
|
-
var _v = v;
|
|
24128
|
-
if (this.__min !== void 0 && _v < this.__min) _v = this.__min;
|
|
24129
|
-
else if (this.__max !== void 0 && _v > this.__max) _v = this.__max;
|
|
24130
|
-
if (this.__step !== void 0 && _v % this.__step !== 0) _v = Math.round(_v / this.__step) * this.__step;
|
|
24131
|
-
return get(NumberController.prototype.__proto__ || Object.getPrototypeOf(NumberController.prototype), "setValue", this).call(this, _v);
|
|
24132
|
-
}
|
|
24133
|
-
},
|
|
24134
|
-
{
|
|
24135
|
-
key: "min",
|
|
24136
|
-
value: function min(minValue) {
|
|
24137
|
-
this.__min = minValue;
|
|
24138
|
-
return this;
|
|
24139
|
-
}
|
|
24140
|
-
},
|
|
24141
|
-
{
|
|
24142
|
-
key: "max",
|
|
24143
|
-
value: function max(maxValue) {
|
|
24144
|
-
this.__max = maxValue;
|
|
24145
|
-
return this;
|
|
24146
|
-
}
|
|
24147
|
-
},
|
|
24148
|
-
{
|
|
24149
|
-
key: "step",
|
|
24150
|
-
value: function step(stepValue) {
|
|
24151
|
-
this.__step = stepValue;
|
|
24152
|
-
this.__impliedStep = stepValue;
|
|
24153
|
-
this.__precision = numDecimals(stepValue);
|
|
24154
|
-
return this;
|
|
24155
|
-
}
|
|
24156
|
-
}
|
|
24157
|
-
]);
|
|
24158
|
-
return NumberController;
|
|
24159
|
-
}(Controller);
|
|
24160
|
-
function roundToDecimal(value, decimals) {
|
|
24161
|
-
var tenTo = Math.pow(10, decimals);
|
|
24162
|
-
return Math.round(value * tenTo) / tenTo;
|
|
24163
|
-
}
|
|
24164
|
-
var NumberControllerBox = function(_NumberController) {
|
|
24165
|
-
inherits(NumberControllerBox, _NumberController);
|
|
24166
|
-
function NumberControllerBox(object, property, params) {
|
|
24167
|
-
classCallCheck(this, NumberControllerBox);
|
|
24168
|
-
var _this2 = possibleConstructorReturn(this, (NumberControllerBox.__proto__ || Object.getPrototypeOf(NumberControllerBox)).call(this, object, property, params));
|
|
24169
|
-
_this2.__truncationSuspended = false;
|
|
24170
|
-
var _this = _this2;
|
|
24171
|
-
var prevY = void 0;
|
|
24172
|
-
function onChange() {
|
|
24173
|
-
var attempted = parseFloat(_this.__input.value);
|
|
24174
|
-
if (!Common.isNaN(attempted)) _this.setValue(attempted);
|
|
24175
|
-
}
|
|
24176
|
-
function onFinish() {
|
|
24177
|
-
if (_this.__onFinishChange) _this.__onFinishChange.call(_this, _this.getValue());
|
|
24178
|
-
}
|
|
24179
|
-
function onBlur() {
|
|
24180
|
-
onFinish();
|
|
24181
|
-
}
|
|
24182
|
-
function onMouseDrag(e) {
|
|
24183
|
-
var diff = prevY - e.clientY;
|
|
24184
|
-
_this.setValue(_this.getValue() + diff * _this.__impliedStep);
|
|
24185
|
-
prevY = e.clientY;
|
|
24186
|
-
}
|
|
24187
|
-
function onMouseUp() {
|
|
24188
|
-
dom.unbind(window, "mousemove", onMouseDrag);
|
|
24189
|
-
dom.unbind(window, "mouseup", onMouseUp);
|
|
24190
|
-
onFinish();
|
|
24191
|
-
}
|
|
24192
|
-
function onMouseDown(e) {
|
|
24193
|
-
dom.bind(window, "mousemove", onMouseDrag);
|
|
24194
|
-
dom.bind(window, "mouseup", onMouseUp);
|
|
24195
|
-
prevY = e.clientY;
|
|
24196
|
-
}
|
|
24197
|
-
_this2.__input = document.createElement("input");
|
|
24198
|
-
_this2.__input.setAttribute("type", "text");
|
|
24199
|
-
dom.bind(_this2.__input, "change", onChange);
|
|
24200
|
-
dom.bind(_this2.__input, "blur", onBlur);
|
|
24201
|
-
dom.bind(_this2.__input, "mousedown", onMouseDown);
|
|
24202
|
-
dom.bind(_this2.__input, "keydown", function(e) {
|
|
24203
|
-
if (e.keyCode === 13) {
|
|
24204
|
-
_this.__truncationSuspended = true;
|
|
24205
|
-
this.blur();
|
|
24206
|
-
_this.__truncationSuspended = false;
|
|
24207
|
-
onFinish();
|
|
24208
|
-
}
|
|
24209
|
-
});
|
|
24210
|
-
_this2.updateDisplay();
|
|
24211
|
-
_this2.domElement.appendChild(_this2.__input);
|
|
24212
|
-
return _this2;
|
|
24213
|
-
}
|
|
24214
|
-
createClass(NumberControllerBox, [{
|
|
24215
|
-
key: "updateDisplay",
|
|
24216
|
-
value: function updateDisplay() {
|
|
24217
|
-
this.__input.value = this.__truncationSuspended ? this.getValue() : roundToDecimal(this.getValue(), this.__precision);
|
|
24218
|
-
return get(NumberControllerBox.prototype.__proto__ || Object.getPrototypeOf(NumberControllerBox.prototype), "updateDisplay", this).call(this);
|
|
24219
|
-
}
|
|
24220
|
-
}]);
|
|
24221
|
-
return NumberControllerBox;
|
|
24222
|
-
}(NumberController);
|
|
24223
|
-
function map(v, i1, i2, o1, o2) {
|
|
24224
|
-
return o1 + (o2 - o1) * ((v - i1) / (i2 - i1));
|
|
24225
|
-
}
|
|
24226
|
-
var NumberControllerSlider = function(_NumberController) {
|
|
24227
|
-
inherits(NumberControllerSlider, _NumberController);
|
|
24228
|
-
function NumberControllerSlider(object, property, min, max, step) {
|
|
24229
|
-
classCallCheck(this, NumberControllerSlider);
|
|
24230
|
-
var _this2 = possibleConstructorReturn(this, (NumberControllerSlider.__proto__ || Object.getPrototypeOf(NumberControllerSlider)).call(this, object, property, {
|
|
24231
|
-
min,
|
|
24232
|
-
max,
|
|
24233
|
-
step
|
|
24234
|
-
}));
|
|
24235
|
-
var _this = _this2;
|
|
24236
|
-
_this2.__background = document.createElement("div");
|
|
24237
|
-
_this2.__foreground = document.createElement("div");
|
|
24238
|
-
dom.bind(_this2.__background, "mousedown", onMouseDown);
|
|
24239
|
-
dom.bind(_this2.__background, "touchstart", onTouchStart);
|
|
24240
|
-
dom.addClass(_this2.__background, "slider");
|
|
24241
|
-
dom.addClass(_this2.__foreground, "slider-fg");
|
|
24242
|
-
function onMouseDown(e) {
|
|
24243
|
-
document.activeElement.blur();
|
|
24244
|
-
dom.bind(window, "mousemove", onMouseDrag);
|
|
24245
|
-
dom.bind(window, "mouseup", onMouseUp);
|
|
24246
|
-
onMouseDrag(e);
|
|
24247
|
-
}
|
|
24248
|
-
function onMouseDrag(e) {
|
|
24249
|
-
e.preventDefault();
|
|
24250
|
-
var bgRect = _this.__background.getBoundingClientRect();
|
|
24251
|
-
_this.setValue(map(e.clientX, bgRect.left, bgRect.right, _this.__min, _this.__max));
|
|
24252
|
-
return false;
|
|
24253
|
-
}
|
|
24254
|
-
function onMouseUp() {
|
|
24255
|
-
dom.unbind(window, "mousemove", onMouseDrag);
|
|
24256
|
-
dom.unbind(window, "mouseup", onMouseUp);
|
|
24257
|
-
if (_this.__onFinishChange) _this.__onFinishChange.call(_this, _this.getValue());
|
|
24258
|
-
}
|
|
24259
|
-
function onTouchStart(e) {
|
|
24260
|
-
if (e.touches.length !== 1) return;
|
|
24261
|
-
dom.bind(window, "touchmove", onTouchMove);
|
|
24262
|
-
dom.bind(window, "touchend", onTouchEnd);
|
|
24263
|
-
onTouchMove(e);
|
|
24264
|
-
}
|
|
24265
|
-
function onTouchMove(e) {
|
|
24266
|
-
var clientX = e.touches[0].clientX;
|
|
24267
|
-
var bgRect = _this.__background.getBoundingClientRect();
|
|
24268
|
-
_this.setValue(map(clientX, bgRect.left, bgRect.right, _this.__min, _this.__max));
|
|
24269
|
-
}
|
|
24270
|
-
function onTouchEnd() {
|
|
24271
|
-
dom.unbind(window, "touchmove", onTouchMove);
|
|
24272
|
-
dom.unbind(window, "touchend", onTouchEnd);
|
|
24273
|
-
if (_this.__onFinishChange) _this.__onFinishChange.call(_this, _this.getValue());
|
|
24274
|
-
}
|
|
24275
|
-
_this2.updateDisplay();
|
|
24276
|
-
_this2.__background.appendChild(_this2.__foreground);
|
|
24277
|
-
_this2.domElement.appendChild(_this2.__background);
|
|
24278
|
-
return _this2;
|
|
24279
|
-
}
|
|
24280
|
-
createClass(NumberControllerSlider, [{
|
|
24281
|
-
key: "updateDisplay",
|
|
24282
|
-
value: function updateDisplay() {
|
|
24283
|
-
var pct = (this.getValue() - this.__min) / (this.__max - this.__min);
|
|
24284
|
-
this.__foreground.style.width = pct * 100 + "%";
|
|
24285
|
-
return get(NumberControllerSlider.prototype.__proto__ || Object.getPrototypeOf(NumberControllerSlider.prototype), "updateDisplay", this).call(this);
|
|
24286
|
-
}
|
|
24287
|
-
}]);
|
|
24288
|
-
return NumberControllerSlider;
|
|
24289
|
-
}(NumberController);
|
|
24290
|
-
var FunctionController = function(_Controller) {
|
|
24291
|
-
inherits(FunctionController, _Controller);
|
|
24292
|
-
function FunctionController(object, property, text) {
|
|
24293
|
-
classCallCheck(this, FunctionController);
|
|
24294
|
-
var _this2 = possibleConstructorReturn(this, (FunctionController.__proto__ || Object.getPrototypeOf(FunctionController)).call(this, object, property));
|
|
24295
|
-
var _this = _this2;
|
|
24296
|
-
_this2.__button = document.createElement("div");
|
|
24297
|
-
_this2.__button.innerHTML = text === void 0 ? "Fire" : text;
|
|
24298
|
-
dom.bind(_this2.__button, "click", function(e) {
|
|
24299
|
-
e.preventDefault();
|
|
24300
|
-
_this.fire();
|
|
24301
|
-
return false;
|
|
24302
|
-
});
|
|
24303
|
-
dom.addClass(_this2.__button, "button");
|
|
24304
|
-
_this2.domElement.appendChild(_this2.__button);
|
|
24305
|
-
return _this2;
|
|
24306
|
-
}
|
|
24307
|
-
createClass(FunctionController, [{
|
|
24308
|
-
key: "fire",
|
|
24309
|
-
value: function fire() {
|
|
24310
|
-
if (this.__onChange) this.__onChange.call(this);
|
|
24311
|
-
this.getValue().call(this.object);
|
|
24312
|
-
if (this.__onFinishChange) this.__onFinishChange.call(this, this.getValue());
|
|
24313
|
-
}
|
|
24314
|
-
}]);
|
|
24315
|
-
return FunctionController;
|
|
24316
|
-
}(Controller);
|
|
24317
|
-
var ColorController = function(_Controller) {
|
|
24318
|
-
inherits(ColorController, _Controller);
|
|
24319
|
-
function ColorController(object, property) {
|
|
24320
|
-
classCallCheck(this, ColorController);
|
|
24321
|
-
var _this2 = possibleConstructorReturn(this, (ColorController.__proto__ || Object.getPrototypeOf(ColorController)).call(this, object, property));
|
|
24322
|
-
_this2.__color = new Color(_this2.getValue());
|
|
24323
|
-
_this2.__temp = new Color(0);
|
|
24324
|
-
var _this = _this2;
|
|
24325
|
-
_this2.domElement = document.createElement("div");
|
|
24326
|
-
dom.makeSelectable(_this2.domElement, false);
|
|
24327
|
-
_this2.__selector = document.createElement("div");
|
|
24328
|
-
_this2.__selector.className = "selector";
|
|
24329
|
-
_this2.__saturation_field = document.createElement("div");
|
|
24330
|
-
_this2.__saturation_field.className = "saturation-field";
|
|
24331
|
-
_this2.__field_knob = document.createElement("div");
|
|
24332
|
-
_this2.__field_knob.className = "field-knob";
|
|
24333
|
-
_this2.__field_knob_border = "2px solid ";
|
|
24334
|
-
_this2.__hue_knob = document.createElement("div");
|
|
24335
|
-
_this2.__hue_knob.className = "hue-knob";
|
|
24336
|
-
_this2.__hue_field = document.createElement("div");
|
|
24337
|
-
_this2.__hue_field.className = "hue-field";
|
|
24338
|
-
_this2.__input = document.createElement("input");
|
|
24339
|
-
_this2.__input.type = "text";
|
|
24340
|
-
_this2.__input_textShadow = "0 1px 1px ";
|
|
24341
|
-
dom.bind(_this2.__input, "keydown", function(e) {
|
|
24342
|
-
if (e.keyCode === 13) onBlur.call(this);
|
|
24343
|
-
});
|
|
24344
|
-
dom.bind(_this2.__input, "blur", onBlur);
|
|
24345
|
-
dom.bind(_this2.__selector, "mousedown", function() {
|
|
24346
|
-
dom.addClass(this, "drag").bind(window, "mouseup", function() {
|
|
24347
|
-
dom.removeClass(_this.__selector, "drag");
|
|
24348
|
-
});
|
|
24349
|
-
});
|
|
24350
|
-
dom.bind(_this2.__selector, "touchstart", function() {
|
|
24351
|
-
dom.addClass(this, "drag").bind(window, "touchend", function() {
|
|
24352
|
-
dom.removeClass(_this.__selector, "drag");
|
|
24353
|
-
});
|
|
24354
|
-
});
|
|
24355
|
-
var valueField = document.createElement("div");
|
|
24356
|
-
Common.extend(_this2.__selector.style, {
|
|
24357
|
-
width: "122px",
|
|
24358
|
-
height: "102px",
|
|
24359
|
-
padding: "3px",
|
|
24360
|
-
backgroundColor: "#222",
|
|
24361
|
-
boxShadow: "0px 1px 3px rgba(0,0,0,0.3)"
|
|
24362
|
-
});
|
|
24363
|
-
Common.extend(_this2.__field_knob.style, {
|
|
24364
|
-
position: "absolute",
|
|
24365
|
-
width: "12px",
|
|
24366
|
-
height: "12px",
|
|
24367
|
-
border: _this2.__field_knob_border + (_this2.__color.v < .5 ? "#fff" : "#000"),
|
|
24368
|
-
boxShadow: "0px 1px 3px rgba(0,0,0,0.5)",
|
|
24369
|
-
borderRadius: "12px",
|
|
24370
|
-
zIndex: 1
|
|
24371
|
-
});
|
|
24372
|
-
Common.extend(_this2.__hue_knob.style, {
|
|
24373
|
-
position: "absolute",
|
|
24374
|
-
width: "15px",
|
|
24375
|
-
height: "2px",
|
|
24376
|
-
borderRight: "4px solid #fff",
|
|
24377
|
-
zIndex: 1
|
|
24378
|
-
});
|
|
24379
|
-
Common.extend(_this2.__saturation_field.style, {
|
|
24380
|
-
width: "100px",
|
|
24381
|
-
height: "100px",
|
|
24382
|
-
border: "1px solid #555",
|
|
24383
|
-
marginRight: "3px",
|
|
24384
|
-
display: "inline-block",
|
|
24385
|
-
cursor: "pointer"
|
|
24386
|
-
});
|
|
24387
|
-
Common.extend(valueField.style, {
|
|
24388
|
-
width: "100%",
|
|
24389
|
-
height: "100%",
|
|
24390
|
-
background: "none"
|
|
24391
|
-
});
|
|
24392
|
-
linearGradient(valueField, "top", "rgba(0,0,0,0)", "#000");
|
|
24393
|
-
Common.extend(_this2.__hue_field.style, {
|
|
24394
|
-
width: "15px",
|
|
24395
|
-
height: "100px",
|
|
24396
|
-
border: "1px solid #555",
|
|
24397
|
-
cursor: "ns-resize",
|
|
24398
|
-
position: "absolute",
|
|
24399
|
-
top: "3px",
|
|
24400
|
-
right: "3px"
|
|
24401
|
-
});
|
|
24402
|
-
hueGradient(_this2.__hue_field);
|
|
24403
|
-
Common.extend(_this2.__input.style, {
|
|
24404
|
-
outline: "none",
|
|
24405
|
-
textAlign: "center",
|
|
24406
|
-
color: "#fff",
|
|
24407
|
-
border: 0,
|
|
24408
|
-
fontWeight: "bold",
|
|
24409
|
-
textShadow: _this2.__input_textShadow + "rgba(0,0,0,0.7)"
|
|
24410
|
-
});
|
|
24411
|
-
dom.bind(_this2.__saturation_field, "mousedown", fieldDown);
|
|
24412
|
-
dom.bind(_this2.__saturation_field, "touchstart", fieldDown);
|
|
24413
|
-
dom.bind(_this2.__field_knob, "mousedown", fieldDown);
|
|
24414
|
-
dom.bind(_this2.__field_knob, "touchstart", fieldDown);
|
|
24415
|
-
dom.bind(_this2.__hue_field, "mousedown", fieldDownH);
|
|
24416
|
-
dom.bind(_this2.__hue_field, "touchstart", fieldDownH);
|
|
24417
|
-
function fieldDown(e) {
|
|
24418
|
-
setSV(e);
|
|
24419
|
-
dom.bind(window, "mousemove", setSV);
|
|
24420
|
-
dom.bind(window, "touchmove", setSV);
|
|
24421
|
-
dom.bind(window, "mouseup", fieldUpSV);
|
|
24422
|
-
dom.bind(window, "touchend", fieldUpSV);
|
|
24423
|
-
}
|
|
24424
|
-
function fieldDownH(e) {
|
|
24425
|
-
setH(e);
|
|
24426
|
-
dom.bind(window, "mousemove", setH);
|
|
24427
|
-
dom.bind(window, "touchmove", setH);
|
|
24428
|
-
dom.bind(window, "mouseup", fieldUpH);
|
|
24429
|
-
dom.bind(window, "touchend", fieldUpH);
|
|
24430
|
-
}
|
|
24431
|
-
function fieldUpSV() {
|
|
24432
|
-
dom.unbind(window, "mousemove", setSV);
|
|
24433
|
-
dom.unbind(window, "touchmove", setSV);
|
|
24434
|
-
dom.unbind(window, "mouseup", fieldUpSV);
|
|
24435
|
-
dom.unbind(window, "touchend", fieldUpSV);
|
|
24436
|
-
onFinish();
|
|
24437
|
-
}
|
|
24438
|
-
function fieldUpH() {
|
|
24439
|
-
dom.unbind(window, "mousemove", setH);
|
|
24440
|
-
dom.unbind(window, "touchmove", setH);
|
|
24441
|
-
dom.unbind(window, "mouseup", fieldUpH);
|
|
24442
|
-
dom.unbind(window, "touchend", fieldUpH);
|
|
24443
|
-
onFinish();
|
|
24444
|
-
}
|
|
24445
|
-
function onBlur() {
|
|
24446
|
-
var i = interpret(this.value);
|
|
24447
|
-
if (i !== false) {
|
|
24448
|
-
_this.__color.__state = i;
|
|
24449
|
-
_this.setValue(_this.__color.toOriginal());
|
|
24450
|
-
} else this.value = _this.__color.toString();
|
|
24451
|
-
}
|
|
24452
|
-
function onFinish() {
|
|
24453
|
-
if (_this.__onFinishChange) _this.__onFinishChange.call(_this, _this.__color.toOriginal());
|
|
24454
|
-
}
|
|
24455
|
-
_this2.__saturation_field.appendChild(valueField);
|
|
24456
|
-
_this2.__selector.appendChild(_this2.__field_knob);
|
|
24457
|
-
_this2.__selector.appendChild(_this2.__saturation_field);
|
|
24458
|
-
_this2.__selector.appendChild(_this2.__hue_field);
|
|
24459
|
-
_this2.__hue_field.appendChild(_this2.__hue_knob);
|
|
24460
|
-
_this2.domElement.appendChild(_this2.__input);
|
|
24461
|
-
_this2.domElement.appendChild(_this2.__selector);
|
|
24462
|
-
_this2.updateDisplay();
|
|
24463
|
-
function setSV(e) {
|
|
24464
|
-
if (e.type.indexOf("touch") === -1) e.preventDefault();
|
|
24465
|
-
var fieldRect = _this.__saturation_field.getBoundingClientRect();
|
|
24466
|
-
var _ref = e.touches && e.touches[0] || e, clientX = _ref.clientX, clientY = _ref.clientY;
|
|
24467
|
-
var s = (clientX - fieldRect.left) / (fieldRect.right - fieldRect.left);
|
|
24468
|
-
var v = 1 - (clientY - fieldRect.top) / (fieldRect.bottom - fieldRect.top);
|
|
24469
|
-
if (v > 1) v = 1;
|
|
24470
|
-
else if (v < 0) v = 0;
|
|
24471
|
-
if (s > 1) s = 1;
|
|
24472
|
-
else if (s < 0) s = 0;
|
|
24473
|
-
_this.__color.v = v;
|
|
24474
|
-
_this.__color.s = s;
|
|
24475
|
-
_this.setValue(_this.__color.toOriginal());
|
|
24476
|
-
return false;
|
|
24477
|
-
}
|
|
24478
|
-
function setH(e) {
|
|
24479
|
-
if (e.type.indexOf("touch") === -1) e.preventDefault();
|
|
24480
|
-
var fieldRect = _this.__hue_field.getBoundingClientRect();
|
|
24481
|
-
var h = 1 - ((e.touches && e.touches[0] || e).clientY - fieldRect.top) / (fieldRect.bottom - fieldRect.top);
|
|
24482
|
-
if (h > 1) h = 1;
|
|
24483
|
-
else if (h < 0) h = 0;
|
|
24484
|
-
_this.__color.h = h * 360;
|
|
24485
|
-
_this.setValue(_this.__color.toOriginal());
|
|
24486
|
-
return false;
|
|
24487
|
-
}
|
|
24488
|
-
return _this2;
|
|
24489
|
-
}
|
|
24490
|
-
createClass(ColorController, [{
|
|
24491
|
-
key: "updateDisplay",
|
|
24492
|
-
value: function updateDisplay() {
|
|
24493
|
-
var i = interpret(this.getValue());
|
|
24494
|
-
if (i !== false) {
|
|
24495
|
-
var mismatch = false;
|
|
24496
|
-
Common.each(Color.COMPONENTS, function(component) {
|
|
24497
|
-
if (!Common.isUndefined(i[component]) && !Common.isUndefined(this.__color.__state[component]) && i[component] !== this.__color.__state[component]) {
|
|
24498
|
-
mismatch = true;
|
|
24499
|
-
return {};
|
|
24500
|
-
}
|
|
24501
|
-
}, this);
|
|
24502
|
-
if (mismatch) Common.extend(this.__color.__state, i);
|
|
24503
|
-
}
|
|
24504
|
-
Common.extend(this.__temp.__state, this.__color.__state);
|
|
24505
|
-
this.__temp.a = 1;
|
|
24506
|
-
var flip = this.__color.v < .5 || this.__color.s > .5 ? 255 : 0;
|
|
24507
|
-
var _flip = 255 - flip;
|
|
24508
|
-
Common.extend(this.__field_knob.style, {
|
|
24509
|
-
marginLeft: 100 * this.__color.s - 7 + "px",
|
|
24510
|
-
marginTop: 100 * (1 - this.__color.v) - 7 + "px",
|
|
24511
|
-
backgroundColor: this.__temp.toHexString(),
|
|
24512
|
-
border: this.__field_knob_border + "rgb(" + flip + "," + flip + "," + flip + ")"
|
|
24513
|
-
});
|
|
24514
|
-
this.__hue_knob.style.marginTop = (1 - this.__color.h / 360) * 100 + "px";
|
|
24515
|
-
this.__temp.s = 1;
|
|
24516
|
-
this.__temp.v = 1;
|
|
24517
|
-
linearGradient(this.__saturation_field, "left", "#fff", this.__temp.toHexString());
|
|
24518
|
-
this.__input.value = this.__color.toString();
|
|
24519
|
-
Common.extend(this.__input.style, {
|
|
24520
|
-
backgroundColor: this.__color.toHexString(),
|
|
24521
|
-
color: "rgb(" + flip + "," + flip + "," + flip + ")",
|
|
24522
|
-
textShadow: this.__input_textShadow + "rgba(" + _flip + "," + _flip + "," + _flip + ",.7)"
|
|
24523
|
-
});
|
|
24524
|
-
}
|
|
24525
|
-
}]);
|
|
24526
|
-
return ColorController;
|
|
24527
|
-
}(Controller);
|
|
24528
|
-
var vendors = [
|
|
24529
|
-
"-moz-",
|
|
24530
|
-
"-o-",
|
|
24531
|
-
"-webkit-",
|
|
24532
|
-
"-ms-",
|
|
24533
|
-
""
|
|
24534
|
-
];
|
|
24535
|
-
function linearGradient(elem, x, a, b) {
|
|
24536
|
-
elem.style.background = "";
|
|
24537
|
-
Common.each(vendors, function(vendor) {
|
|
24538
|
-
elem.style.cssText += "background: " + vendor + "linear-gradient(" + x + ", " + a + " 0%, " + b + " 100%); ";
|
|
24539
|
-
});
|
|
24540
|
-
}
|
|
24541
|
-
function hueGradient(elem) {
|
|
24542
|
-
elem.style.background = "";
|
|
24543
|
-
elem.style.cssText += "background: -moz-linear-gradient(top, #ff0000 0%, #ff00ff 17%, #0000ff 34%, #00ffff 50%, #00ff00 67%, #ffff00 84%, #ff0000 100%);";
|
|
24544
|
-
elem.style.cssText += "background: -webkit-linear-gradient(top, #ff0000 0%,#ff00ff 17%,#0000ff 34%,#00ffff 50%,#00ff00 67%,#ffff00 84%,#ff0000 100%);";
|
|
24545
|
-
elem.style.cssText += "background: -o-linear-gradient(top, #ff0000 0%,#ff00ff 17%,#0000ff 34%,#00ffff 50%,#00ff00 67%,#ffff00 84%,#ff0000 100%);";
|
|
24546
|
-
elem.style.cssText += "background: -ms-linear-gradient(top, #ff0000 0%,#ff00ff 17%,#0000ff 34%,#00ffff 50%,#00ff00 67%,#ffff00 84%,#ff0000 100%);";
|
|
24547
|
-
elem.style.cssText += "background: linear-gradient(top, #ff0000 0%,#ff00ff 17%,#0000ff 34%,#00ffff 50%,#00ff00 67%,#ffff00 84%,#ff0000 100%);";
|
|
24548
|
-
}
|
|
24549
|
-
var css = {
|
|
24550
|
-
load: function load(url, indoc) {
|
|
24551
|
-
var doc = indoc || document;
|
|
24552
|
-
var link = doc.createElement("link");
|
|
24553
|
-
link.type = "text/css";
|
|
24554
|
-
link.rel = "stylesheet";
|
|
24555
|
-
link.href = url;
|
|
24556
|
-
doc.getElementsByTagName("head")[0].appendChild(link);
|
|
24557
|
-
},
|
|
24558
|
-
inject: function inject(cssContent, indoc) {
|
|
24559
|
-
var doc = indoc || document;
|
|
24560
|
-
var injected = document.createElement("style");
|
|
24561
|
-
injected.type = "text/css";
|
|
24562
|
-
injected.innerHTML = cssContent;
|
|
24563
|
-
var head = doc.getElementsByTagName("head")[0];
|
|
24564
|
-
try {
|
|
24565
|
-
head.appendChild(injected);
|
|
24566
|
-
} catch (e) {}
|
|
24567
|
-
}
|
|
24568
|
-
};
|
|
24569
|
-
var saveDialogContents = "<div id=\"dg-save\" class=\"dg dialogue\">\n\n Here's the new load parameter for your <code>GUI</code>'s constructor:\n\n <textarea id=\"dg-new-constructor\"></textarea>\n\n <div id=\"dg-save-locally\">\n\n <input id=\"dg-local-storage\" type=\"checkbox\"/> Automatically save\n values to <code>localStorage</code> on exit.\n\n <div id=\"dg-local-explain\">The values saved to <code>localStorage</code> will\n override those passed to <code>dat.GUI</code>'s constructor. This makes it\n easier to work incrementally, but <code>localStorage</code> is fragile,\n and your friends may not see the same values you do.\n\n </div>\n\n </div>\n\n</div>";
|
|
24570
|
-
var ControllerFactory = function ControllerFactory(object, property) {
|
|
24571
|
-
var initialValue = object[property];
|
|
24572
|
-
if (Common.isArray(arguments[2]) || Common.isObject(arguments[2])) return new OptionController(object, property, arguments[2]);
|
|
24573
|
-
if (Common.isNumber(initialValue)) {
|
|
24574
|
-
if (Common.isNumber(arguments[2]) && Common.isNumber(arguments[3])) {
|
|
24575
|
-
if (Common.isNumber(arguments[4])) return new NumberControllerSlider(object, property, arguments[2], arguments[3], arguments[4]);
|
|
24576
|
-
return new NumberControllerSlider(object, property, arguments[2], arguments[3]);
|
|
24577
|
-
}
|
|
24578
|
-
if (Common.isNumber(arguments[4])) return new NumberControllerBox(object, property, {
|
|
24579
|
-
min: arguments[2],
|
|
24580
|
-
max: arguments[3],
|
|
24581
|
-
step: arguments[4]
|
|
24582
|
-
});
|
|
24583
|
-
return new NumberControllerBox(object, property, {
|
|
24584
|
-
min: arguments[2],
|
|
24585
|
-
max: arguments[3]
|
|
24586
|
-
});
|
|
24587
|
-
}
|
|
24588
|
-
if (Common.isString(initialValue)) return new StringController(object, property);
|
|
24589
|
-
if (Common.isFunction(initialValue)) return new FunctionController(object, property, "");
|
|
24590
|
-
if (Common.isBoolean(initialValue)) return new BooleanController(object, property);
|
|
24591
|
-
return null;
|
|
24592
|
-
};
|
|
24593
|
-
function requestAnimationFrame$1(callback) {
|
|
24594
|
-
setTimeout(callback, 1e3 / 60);
|
|
24595
|
-
}
|
|
24596
|
-
var requestAnimationFrame$1$1 = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || requestAnimationFrame$1;
|
|
24597
|
-
var CenteredDiv = function() {
|
|
24598
|
-
function CenteredDiv() {
|
|
24599
|
-
classCallCheck(this, CenteredDiv);
|
|
24600
|
-
this.backgroundElement = document.createElement("div");
|
|
24601
|
-
Common.extend(this.backgroundElement.style, {
|
|
24602
|
-
backgroundColor: "rgba(0,0,0,0.8)",
|
|
24603
|
-
top: 0,
|
|
24604
|
-
left: 0,
|
|
24605
|
-
display: "none",
|
|
24606
|
-
zIndex: "1000",
|
|
24607
|
-
opacity: 0,
|
|
24608
|
-
WebkitTransition: "opacity 0.2s linear",
|
|
24609
|
-
transition: "opacity 0.2s linear"
|
|
24610
|
-
});
|
|
24611
|
-
dom.makeFullscreen(this.backgroundElement);
|
|
24612
|
-
this.backgroundElement.style.position = "fixed";
|
|
24613
|
-
this.domElement = document.createElement("div");
|
|
24614
|
-
Common.extend(this.domElement.style, {
|
|
24615
|
-
position: "fixed",
|
|
24616
|
-
display: "none",
|
|
24617
|
-
zIndex: "1001",
|
|
24618
|
-
opacity: 0,
|
|
24619
|
-
WebkitTransition: "-webkit-transform 0.2s ease-out, opacity 0.2s linear",
|
|
24620
|
-
transition: "transform 0.2s ease-out, opacity 0.2s linear"
|
|
24621
|
-
});
|
|
24622
|
-
document.body.appendChild(this.backgroundElement);
|
|
24623
|
-
document.body.appendChild(this.domElement);
|
|
24624
|
-
var _this = this;
|
|
24625
|
-
dom.bind(this.backgroundElement, "click", function() {
|
|
24626
|
-
_this.hide();
|
|
24627
|
-
});
|
|
24628
|
-
}
|
|
24629
|
-
createClass(CenteredDiv, [
|
|
24630
|
-
{
|
|
24631
|
-
key: "show",
|
|
24632
|
-
value: function show() {
|
|
24633
|
-
var _this = this;
|
|
24634
|
-
this.backgroundElement.style.display = "block";
|
|
24635
|
-
this.domElement.style.display = "block";
|
|
24636
|
-
this.domElement.style.opacity = 0;
|
|
24637
|
-
this.domElement.style.webkitTransform = "scale(1.1)";
|
|
24638
|
-
this.layout();
|
|
24639
|
-
Common.defer(function() {
|
|
24640
|
-
_this.backgroundElement.style.opacity = 1;
|
|
24641
|
-
_this.domElement.style.opacity = 1;
|
|
24642
|
-
_this.domElement.style.webkitTransform = "scale(1)";
|
|
24643
|
-
});
|
|
24644
|
-
}
|
|
24645
|
-
},
|
|
24646
|
-
{
|
|
24647
|
-
key: "hide",
|
|
24648
|
-
value: function hide() {
|
|
24649
|
-
var _this = this;
|
|
24650
|
-
var hide = function hide() {
|
|
24651
|
-
_this.domElement.style.display = "none";
|
|
24652
|
-
_this.backgroundElement.style.display = "none";
|
|
24653
|
-
dom.unbind(_this.domElement, "webkitTransitionEnd", hide);
|
|
24654
|
-
dom.unbind(_this.domElement, "transitionend", hide);
|
|
24655
|
-
dom.unbind(_this.domElement, "oTransitionEnd", hide);
|
|
24656
|
-
};
|
|
24657
|
-
dom.bind(this.domElement, "webkitTransitionEnd", hide);
|
|
24658
|
-
dom.bind(this.domElement, "transitionend", hide);
|
|
24659
|
-
dom.bind(this.domElement, "oTransitionEnd", hide);
|
|
24660
|
-
this.backgroundElement.style.opacity = 0;
|
|
24661
|
-
this.domElement.style.opacity = 0;
|
|
24662
|
-
this.domElement.style.webkitTransform = "scale(1.1)";
|
|
24663
|
-
}
|
|
24664
|
-
},
|
|
24665
|
-
{
|
|
24666
|
-
key: "layout",
|
|
24667
|
-
value: function layout() {
|
|
24668
|
-
this.domElement.style.left = window.innerWidth / 2 - dom.getWidth(this.domElement) / 2 + "px";
|
|
24669
|
-
this.domElement.style.top = window.innerHeight / 2 - dom.getHeight(this.domElement) / 2 + "px";
|
|
24670
|
-
}
|
|
24671
|
-
}
|
|
24672
|
-
]);
|
|
24673
|
-
return CenteredDiv;
|
|
24674
|
-
}();
|
|
24675
|
-
var styleSheet = ___$insertStyle(".dg ul{list-style:none;margin:0;padding:0;width:100%;clear:both}.dg.ac{position:fixed;top:0;left:0;right:0;height:0;z-index:0}.dg:not(.ac) .main{overflow:hidden}.dg.main{-webkit-transition:opacity .1s linear;-o-transition:opacity .1s linear;-moz-transition:opacity .1s linear;transition:opacity .1s linear}.dg.main.taller-than-window{overflow-y:auto}.dg.main.taller-than-window .close-button{opacity:1;margin-top:-1px;border-top:1px solid #2c2c2c}.dg.main ul.closed .close-button{opacity:1 !important}.dg.main:hover .close-button,.dg.main .close-button.drag{opacity:1}.dg.main .close-button{-webkit-transition:opacity .1s linear;-o-transition:opacity .1s linear;-moz-transition:opacity .1s linear;transition:opacity .1s linear;border:0;line-height:19px;height:20px;cursor:pointer;text-align:center;background-color:#000}.dg.main .close-button.close-top{position:relative}.dg.main .close-button.close-bottom{position:absolute}.dg.main .close-button:hover{background-color:#111}.dg.a{float:right;margin-right:15px;overflow-y:visible}.dg.a.has-save>ul.close-top{margin-top:0}.dg.a.has-save>ul.close-bottom{margin-top:27px}.dg.a.has-save>ul.closed{margin-top:0}.dg.a .save-row{top:0;z-index:1002}.dg.a .save-row.close-top{position:relative}.dg.a .save-row.close-bottom{position:fixed}.dg li{-webkit-transition:height .1s ease-out;-o-transition:height .1s ease-out;-moz-transition:height .1s ease-out;transition:height .1s ease-out;-webkit-transition:overflow .1s linear;-o-transition:overflow .1s linear;-moz-transition:overflow .1s linear;transition:overflow .1s linear}.dg li:not(.folder){cursor:auto;height:27px;line-height:27px;padding:0 4px 0 5px}.dg li.folder{padding:0;border-left:4px solid rgba(0,0,0,0)}.dg li.title{cursor:pointer;margin-left:-4px}.dg .closed li:not(.title),.dg .closed ul li,.dg .closed ul li>*{height:0;overflow:hidden;border:0}.dg .cr{clear:both;padding-left:3px;height:27px;overflow:hidden}.dg .property-name{cursor:default;float:left;clear:left;width:40%;overflow:hidden;text-overflow:ellipsis}.dg .cr.function .property-name{width:100%}.dg .c{float:left;width:60%;position:relative}.dg .c input[type=text]{border:0;margin-top:4px;padding:3px;width:100%;float:right}.dg .has-slider input[type=text]{width:30%;margin-left:0}.dg .slider{float:left;width:66%;margin-left:-5px;margin-right:0;height:19px;margin-top:4px}.dg .slider-fg{height:100%}.dg .c input[type=checkbox]{margin-top:7px}.dg .c select{margin-top:5px}.dg .cr.function,.dg .cr.function .property-name,.dg .cr.function *,.dg .cr.boolean,.dg .cr.boolean *{cursor:pointer}.dg .cr.color{overflow:visible}.dg .selector{display:none;position:absolute;margin-left:-9px;margin-top:23px;z-index:10}.dg .c:hover .selector,.dg .selector.drag{display:block}.dg li.save-row{padding:0}.dg li.save-row .button{display:inline-block;padding:0px 6px}.dg.dialogue{background-color:#222;width:460px;padding:15px;font-size:13px;line-height:15px}#dg-new-constructor{padding:10px;color:#222;font-family:Monaco, monospace;font-size:10px;border:0;resize:none;box-shadow:inset 1px 1px 1px #888;word-wrap:break-word;margin:12px 0;display:block;width:440px;overflow-y:scroll;height:100px;position:relative}#dg-local-explain{display:none;font-size:11px;line-height:17px;border-radius:3px;background-color:#333;padding:8px;margin-top:10px}#dg-local-explain code{font-size:10px}#dat-gui-save-locally{display:none}.dg{color:#eee;font:11px 'Lucida Grande', sans-serif;text-shadow:0 -1px 0 #111}.dg.main::-webkit-scrollbar{width:5px;background:#1a1a1a}.dg.main::-webkit-scrollbar-corner{height:0;display:none}.dg.main::-webkit-scrollbar-thumb{border-radius:5px;background:#676767}.dg li:not(.folder){background:#1a1a1a;border-bottom:1px solid #2c2c2c}.dg li.save-row{line-height:25px;background:#dad5cb;border:0}.dg li.save-row select{margin-left:5px;width:108px}.dg li.save-row .button{margin-left:5px;margin-top:1px;border-radius:2px;font-size:9px;line-height:7px;padding:4px 4px 5px 4px;background:#c5bdad;color:#fff;text-shadow:0 1px 0 #b0a58f;box-shadow:0 -1px 0 #b0a58f;cursor:pointer}.dg li.save-row .button.gears{background:#c5bdad url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAANCAYAAAB/9ZQ7AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAQJJREFUeNpiYKAU/P//PwGIC/ApCABiBSAW+I8AClAcgKxQ4T9hoMAEUrxx2QSGN6+egDX+/vWT4e7N82AMYoPAx/evwWoYoSYbACX2s7KxCxzcsezDh3evFoDEBYTEEqycggWAzA9AuUSQQgeYPa9fPv6/YWm/Acx5IPb7ty/fw+QZblw67vDs8R0YHyQhgObx+yAJkBqmG5dPPDh1aPOGR/eugW0G4vlIoTIfyFcA+QekhhHJhPdQxbiAIguMBTQZrPD7108M6roWYDFQiIAAv6Aow/1bFwXgis+f2LUAynwoIaNcz8XNx3Dl7MEJUDGQpx9gtQ8YCueB+D26OECAAQDadt7e46D42QAAAABJRU5ErkJggg==) 2px 1px no-repeat;height:7px;width:8px}.dg li.save-row .button:hover{background-color:#bab19e;box-shadow:0 -1px 0 #b0a58f}.dg li.folder{border-bottom:0}.dg li.title{padding-left:16px;background:#000 url(data:image/gif;base64,R0lGODlhBQAFAJEAAP////Pz8////////yH5BAEAAAIALAAAAAAFAAUAAAIIlI+hKgFxoCgAOw==) 6px 10px no-repeat;cursor:pointer;border-bottom:1px solid rgba(255,255,255,0.2)}.dg .closed li.title{background-image:url(data:image/gif;base64,R0lGODlhBQAFAJEAAP////Pz8////////yH5BAEAAAIALAAAAAAFAAUAAAIIlGIWqMCbWAEAOw==)}.dg .cr.boolean{border-left:3px solid #806787}.dg .cr.color{border-left:3px solid}.dg .cr.function{border-left:3px solid #e61d5f}.dg .cr.number{border-left:3px solid #2FA1D6}.dg .cr.number input[type=text]{color:#2FA1D6}.dg .cr.string{border-left:3px solid #1ed36f}.dg .cr.string input[type=text]{color:#1ed36f}.dg .cr.function:hover,.dg .cr.boolean:hover{background:#111}.dg .c input[type=text]{background:#303030;outline:none}.dg .c input[type=text]:hover{background:#3c3c3c}.dg .c input[type=text]:focus{background:#494949;color:#fff}.dg .c .slider{background:#303030;cursor:ew-resize}.dg .c .slider-fg{background:#2FA1D6;max-width:100%}.dg .c .slider:hover{background:#3c3c3c}.dg .c .slider:hover .slider-fg{background:#44abda}\n");
|
|
24676
|
-
css.inject(styleSheet);
|
|
24677
|
-
var CSS_NAMESPACE = "dg";
|
|
24678
|
-
var HIDE_KEY_CODE = 72;
|
|
24679
|
-
var CLOSE_BUTTON_HEIGHT = 20;
|
|
24680
|
-
var DEFAULT_DEFAULT_PRESET_NAME = "Default";
|
|
24681
|
-
var SUPPORTS_LOCAL_STORAGE = function() {
|
|
24682
|
-
try {
|
|
24683
|
-
return !!window.localStorage;
|
|
24684
|
-
} catch (e) {
|
|
24685
|
-
return false;
|
|
24686
|
-
}
|
|
24687
|
-
}();
|
|
24688
|
-
var SAVE_DIALOGUE = void 0;
|
|
24689
|
-
var autoPlaceVirgin = true;
|
|
24690
|
-
var autoPlaceContainer = void 0;
|
|
24691
|
-
var hide = false;
|
|
24692
|
-
var hideableGuis = [];
|
|
24693
|
-
var GUI = function GUI(pars) {
|
|
24694
|
-
var _this = this;
|
|
24695
|
-
var params = pars || {};
|
|
24696
|
-
this.domElement = document.createElement("div");
|
|
24697
|
-
this.__ul = document.createElement("ul");
|
|
24698
|
-
this.domElement.appendChild(this.__ul);
|
|
24699
|
-
dom.addClass(this.domElement, CSS_NAMESPACE);
|
|
24700
|
-
this.__folders = {};
|
|
24701
|
-
this.__controllers = [];
|
|
24702
|
-
this.__rememberedObjects = [];
|
|
24703
|
-
this.__rememberedObjectIndecesToControllers = [];
|
|
24704
|
-
this.__listening = [];
|
|
24705
|
-
params = Common.defaults(params, {
|
|
24706
|
-
closeOnTop: false,
|
|
24707
|
-
autoPlace: true,
|
|
24708
|
-
width: GUI.DEFAULT_WIDTH
|
|
24709
|
-
});
|
|
24710
|
-
params = Common.defaults(params, {
|
|
24711
|
-
resizable: params.autoPlace,
|
|
24712
|
-
hideable: params.autoPlace
|
|
24713
|
-
});
|
|
24714
|
-
if (!Common.isUndefined(params.load)) {
|
|
24715
|
-
if (params.preset) params.load.preset = params.preset;
|
|
24716
|
-
} else params.load = { preset: DEFAULT_DEFAULT_PRESET_NAME };
|
|
24717
|
-
if (Common.isUndefined(params.parent) && params.hideable) hideableGuis.push(this);
|
|
24718
|
-
params.resizable = Common.isUndefined(params.parent) && params.resizable;
|
|
24719
|
-
if (params.autoPlace && Common.isUndefined(params.scrollable)) params.scrollable = true;
|
|
24720
|
-
var useLocalStorage = SUPPORTS_LOCAL_STORAGE && localStorage.getItem(getLocalStorageHash(this, "isLocal")) === "true";
|
|
24721
|
-
var saveToLocalStorage = void 0;
|
|
24722
|
-
var titleRow = void 0;
|
|
24723
|
-
Object.defineProperties(this, {
|
|
24724
|
-
parent: { get: function get$$1() {
|
|
24725
|
-
return params.parent;
|
|
24726
|
-
} },
|
|
24727
|
-
scrollable: { get: function get$$1() {
|
|
24728
|
-
return params.scrollable;
|
|
24729
|
-
} },
|
|
24730
|
-
autoPlace: { get: function get$$1() {
|
|
24731
|
-
return params.autoPlace;
|
|
24732
|
-
} },
|
|
24733
|
-
closeOnTop: { get: function get$$1() {
|
|
24734
|
-
return params.closeOnTop;
|
|
24735
|
-
} },
|
|
24736
|
-
preset: {
|
|
24737
|
-
get: function get$$1() {
|
|
24738
|
-
if (_this.parent) return _this.getRoot().preset;
|
|
24739
|
-
return params.load.preset;
|
|
24740
|
-
},
|
|
24741
|
-
set: function set$$1(v) {
|
|
24742
|
-
if (_this.parent) _this.getRoot().preset = v;
|
|
24743
|
-
else params.load.preset = v;
|
|
24744
|
-
setPresetSelectIndex(this);
|
|
24745
|
-
_this.revert();
|
|
24746
|
-
}
|
|
24747
|
-
},
|
|
24748
|
-
width: {
|
|
24749
|
-
get: function get$$1() {
|
|
24750
|
-
return params.width;
|
|
24751
|
-
},
|
|
24752
|
-
set: function set$$1(v) {
|
|
24753
|
-
params.width = v;
|
|
24754
|
-
setWidth(_this, v);
|
|
24755
|
-
}
|
|
24756
|
-
},
|
|
24757
|
-
name: {
|
|
24758
|
-
get: function get$$1() {
|
|
24759
|
-
return params.name;
|
|
24760
|
-
},
|
|
24761
|
-
set: function set$$1(v) {
|
|
24762
|
-
params.name = v;
|
|
24763
|
-
if (titleRow) titleRow.innerHTML = params.name;
|
|
24764
|
-
}
|
|
24765
|
-
},
|
|
24766
|
-
closed: {
|
|
24767
|
-
get: function get$$1() {
|
|
24768
|
-
return params.closed;
|
|
24769
|
-
},
|
|
24770
|
-
set: function set$$1(v) {
|
|
24771
|
-
params.closed = v;
|
|
24772
|
-
if (params.closed) dom.addClass(_this.__ul, GUI.CLASS_CLOSED);
|
|
24773
|
-
else dom.removeClass(_this.__ul, GUI.CLASS_CLOSED);
|
|
24774
|
-
this.onResize();
|
|
24775
|
-
if (_this.__closeButton) _this.__closeButton.innerHTML = v ? GUI.TEXT_OPEN : GUI.TEXT_CLOSED;
|
|
24776
|
-
}
|
|
24777
|
-
},
|
|
24778
|
-
load: { get: function get$$1() {
|
|
24779
|
-
return params.load;
|
|
24780
|
-
} },
|
|
24781
|
-
useLocalStorage: {
|
|
24782
|
-
get: function get$$1() {
|
|
24783
|
-
return useLocalStorage;
|
|
24784
|
-
},
|
|
24785
|
-
set: function set$$1(bool) {
|
|
24786
|
-
if (SUPPORTS_LOCAL_STORAGE) {
|
|
24787
|
-
useLocalStorage = bool;
|
|
24788
|
-
if (bool) dom.bind(window, "unload", saveToLocalStorage);
|
|
24789
|
-
else dom.unbind(window, "unload", saveToLocalStorage);
|
|
24790
|
-
localStorage.setItem(getLocalStorageHash(_this, "isLocal"), bool);
|
|
24791
|
-
}
|
|
24792
|
-
}
|
|
24793
|
-
}
|
|
24794
|
-
});
|
|
24795
|
-
if (Common.isUndefined(params.parent)) {
|
|
24796
|
-
this.closed = params.closed || false;
|
|
24797
|
-
dom.addClass(this.domElement, GUI.CLASS_MAIN);
|
|
24798
|
-
dom.makeSelectable(this.domElement, false);
|
|
24799
|
-
if (SUPPORTS_LOCAL_STORAGE) {
|
|
24800
|
-
if (useLocalStorage) {
|
|
24801
|
-
_this.useLocalStorage = true;
|
|
24802
|
-
var savedGui = localStorage.getItem(getLocalStorageHash(this, "gui"));
|
|
24803
|
-
if (savedGui) params.load = JSON.parse(savedGui);
|
|
24804
|
-
}
|
|
24805
|
-
}
|
|
24806
|
-
this.__closeButton = document.createElement("div");
|
|
24807
|
-
this.__closeButton.innerHTML = GUI.TEXT_CLOSED;
|
|
24808
|
-
dom.addClass(this.__closeButton, GUI.CLASS_CLOSE_BUTTON);
|
|
24809
|
-
if (params.closeOnTop) {
|
|
24810
|
-
dom.addClass(this.__closeButton, GUI.CLASS_CLOSE_TOP);
|
|
24811
|
-
this.domElement.insertBefore(this.__closeButton, this.domElement.childNodes[0]);
|
|
24812
|
-
} else {
|
|
24813
|
-
dom.addClass(this.__closeButton, GUI.CLASS_CLOSE_BOTTOM);
|
|
24814
|
-
this.domElement.appendChild(this.__closeButton);
|
|
24815
|
-
}
|
|
24816
|
-
dom.bind(this.__closeButton, "click", function() {
|
|
24817
|
-
_this.closed = !_this.closed;
|
|
24818
|
-
});
|
|
24819
|
-
} else {
|
|
24820
|
-
if (params.closed === void 0) params.closed = true;
|
|
24821
|
-
var titleRowName = document.createTextNode(params.name);
|
|
24822
|
-
dom.addClass(titleRowName, "controller-name");
|
|
24823
|
-
titleRow = addRow(_this, titleRowName);
|
|
24824
|
-
var onClickTitle = function onClickTitle(e) {
|
|
24825
|
-
e.preventDefault();
|
|
24826
|
-
_this.closed = !_this.closed;
|
|
24827
|
-
return false;
|
|
24828
|
-
};
|
|
24829
|
-
dom.addClass(this.__ul, GUI.CLASS_CLOSED);
|
|
24830
|
-
dom.addClass(titleRow, "title");
|
|
24831
|
-
dom.bind(titleRow, "click", onClickTitle);
|
|
24832
|
-
if (!params.closed) this.closed = false;
|
|
24833
|
-
}
|
|
24834
|
-
if (params.autoPlace) {
|
|
24835
|
-
if (Common.isUndefined(params.parent)) {
|
|
24836
|
-
if (autoPlaceVirgin) {
|
|
24837
|
-
autoPlaceContainer = document.createElement("div");
|
|
24838
|
-
dom.addClass(autoPlaceContainer, CSS_NAMESPACE);
|
|
24839
|
-
dom.addClass(autoPlaceContainer, GUI.CLASS_AUTO_PLACE_CONTAINER);
|
|
24840
|
-
document.body.appendChild(autoPlaceContainer);
|
|
24841
|
-
autoPlaceVirgin = false;
|
|
24842
|
-
}
|
|
24843
|
-
autoPlaceContainer.appendChild(this.domElement);
|
|
24844
|
-
dom.addClass(this.domElement, GUI.CLASS_AUTO_PLACE);
|
|
24845
|
-
}
|
|
24846
|
-
if (!this.parent) setWidth(_this, params.width);
|
|
24847
|
-
}
|
|
24848
|
-
this.__resizeHandler = function() {
|
|
24849
|
-
_this.onResizeDebounced();
|
|
24850
|
-
};
|
|
24851
|
-
dom.bind(window, "resize", this.__resizeHandler);
|
|
24852
|
-
dom.bind(this.__ul, "webkitTransitionEnd", this.__resizeHandler);
|
|
24853
|
-
dom.bind(this.__ul, "transitionend", this.__resizeHandler);
|
|
24854
|
-
dom.bind(this.__ul, "oTransitionEnd", this.__resizeHandler);
|
|
24855
|
-
this.onResize();
|
|
24856
|
-
if (params.resizable) addResizeHandle(this);
|
|
24857
|
-
saveToLocalStorage = function saveToLocalStorage() {
|
|
24858
|
-
if (SUPPORTS_LOCAL_STORAGE && localStorage.getItem(getLocalStorageHash(_this, "isLocal")) === "true") localStorage.setItem(getLocalStorageHash(_this, "gui"), JSON.stringify(_this.getSaveObject()));
|
|
24859
|
-
};
|
|
24860
|
-
this.saveToLocalStorageIfPossible = saveToLocalStorage;
|
|
24861
|
-
function resetWidth() {
|
|
24862
|
-
var root = _this.getRoot();
|
|
24863
|
-
root.width += 1;
|
|
24864
|
-
Common.defer(function() {
|
|
24865
|
-
root.width -= 1;
|
|
24866
|
-
});
|
|
24867
|
-
}
|
|
24868
|
-
if (!params.parent) resetWidth();
|
|
24869
|
-
};
|
|
24870
|
-
GUI.toggleHide = function() {
|
|
24871
|
-
hide = !hide;
|
|
24872
|
-
Common.each(hideableGuis, function(gui) {
|
|
24873
|
-
gui.domElement.style.display = hide ? "none" : "";
|
|
24874
|
-
});
|
|
24875
|
-
};
|
|
24876
|
-
GUI.CLASS_AUTO_PLACE = "a";
|
|
24877
|
-
GUI.CLASS_AUTO_PLACE_CONTAINER = "ac";
|
|
24878
|
-
GUI.CLASS_MAIN = "main";
|
|
24879
|
-
GUI.CLASS_CONTROLLER_ROW = "cr";
|
|
24880
|
-
GUI.CLASS_TOO_TALL = "taller-than-window";
|
|
24881
|
-
GUI.CLASS_CLOSED = "closed";
|
|
24882
|
-
GUI.CLASS_CLOSE_BUTTON = "close-button";
|
|
24883
|
-
GUI.CLASS_CLOSE_TOP = "close-top";
|
|
24884
|
-
GUI.CLASS_CLOSE_BOTTOM = "close-bottom";
|
|
24885
|
-
GUI.CLASS_DRAG = "drag";
|
|
24886
|
-
GUI.DEFAULT_WIDTH = 245;
|
|
24887
|
-
GUI.TEXT_CLOSED = "Close Controls";
|
|
24888
|
-
GUI.TEXT_OPEN = "Open Controls";
|
|
24889
|
-
GUI._keydownHandler = function(e) {
|
|
24890
|
-
if (document.activeElement.type !== "text" && (e.which === HIDE_KEY_CODE || e.keyCode === HIDE_KEY_CODE)) GUI.toggleHide();
|
|
24891
|
-
};
|
|
24892
|
-
dom.bind(window, "keydown", GUI._keydownHandler, false);
|
|
24893
|
-
Common.extend(GUI.prototype, {
|
|
24894
|
-
add: function add(object, property) {
|
|
24895
|
-
return _add(this, object, property, { factoryArgs: Array.prototype.slice.call(arguments, 2) });
|
|
24896
|
-
},
|
|
24897
|
-
addColor: function addColor(object, property) {
|
|
24898
|
-
return _add(this, object, property, { color: true });
|
|
24899
|
-
},
|
|
24900
|
-
remove: function remove(controller) {
|
|
24901
|
-
this.__ul.removeChild(controller.__li);
|
|
24902
|
-
this.__controllers.splice(this.__controllers.indexOf(controller), 1);
|
|
24903
|
-
var _this = this;
|
|
24904
|
-
Common.defer(function() {
|
|
24905
|
-
_this.onResize();
|
|
24906
|
-
});
|
|
24907
|
-
},
|
|
24908
|
-
destroy: function destroy() {
|
|
24909
|
-
if (this.parent) throw new Error("Only the root GUI should be removed with .destroy(). For subfolders, use gui.removeFolder(folder) instead.");
|
|
24910
|
-
if (this.autoPlace) autoPlaceContainer.removeChild(this.domElement);
|
|
24911
|
-
var _this = this;
|
|
24912
|
-
Common.each(this.__folders, function(subfolder) {
|
|
24913
|
-
_this.removeFolder(subfolder);
|
|
24914
|
-
});
|
|
24915
|
-
dom.unbind(window, "keydown", GUI._keydownHandler, false);
|
|
24916
|
-
removeListeners(this);
|
|
24917
|
-
},
|
|
24918
|
-
addFolder: function addFolder(name) {
|
|
24919
|
-
if (this.__folders[name] !== void 0) throw new Error("You already have a folder in this GUI by the name \"" + name + "\"");
|
|
24920
|
-
var newGuiParams = {
|
|
24921
|
-
name,
|
|
24922
|
-
parent: this
|
|
24923
|
-
};
|
|
24924
|
-
newGuiParams.autoPlace = this.autoPlace;
|
|
24925
|
-
if (this.load && this.load.folders && this.load.folders[name]) {
|
|
24926
|
-
newGuiParams.closed = this.load.folders[name].closed;
|
|
24927
|
-
newGuiParams.load = this.load.folders[name];
|
|
24928
|
-
}
|
|
24929
|
-
var gui = new GUI(newGuiParams);
|
|
24930
|
-
this.__folders[name] = gui;
|
|
24931
|
-
var li = addRow(this, gui.domElement);
|
|
24932
|
-
dom.addClass(li, "folder");
|
|
24933
|
-
return gui;
|
|
24934
|
-
},
|
|
24935
|
-
removeFolder: function removeFolder(folder) {
|
|
24936
|
-
this.__ul.removeChild(folder.domElement.parentElement);
|
|
24937
|
-
delete this.__folders[folder.name];
|
|
24938
|
-
if (this.load && this.load.folders && this.load.folders[folder.name]) delete this.load.folders[folder.name];
|
|
24939
|
-
removeListeners(folder);
|
|
24940
|
-
var _this = this;
|
|
24941
|
-
Common.each(folder.__folders, function(subfolder) {
|
|
24942
|
-
folder.removeFolder(subfolder);
|
|
24943
|
-
});
|
|
24944
|
-
Common.defer(function() {
|
|
24945
|
-
_this.onResize();
|
|
24946
|
-
});
|
|
24947
|
-
},
|
|
24948
|
-
open: function open() {
|
|
24949
|
-
this.closed = false;
|
|
24950
|
-
},
|
|
24951
|
-
close: function close() {
|
|
24952
|
-
this.closed = true;
|
|
24953
|
-
},
|
|
24954
|
-
hide: function hide() {
|
|
24955
|
-
this.domElement.style.display = "none";
|
|
24956
|
-
},
|
|
24957
|
-
show: function show() {
|
|
24958
|
-
this.domElement.style.display = "";
|
|
24959
|
-
},
|
|
24960
|
-
onResize: function onResize() {
|
|
24961
|
-
var root = this.getRoot();
|
|
24962
|
-
if (root.scrollable) {
|
|
24963
|
-
var top = dom.getOffset(root.__ul).top;
|
|
24964
|
-
var h = 0;
|
|
24965
|
-
Common.each(root.__ul.childNodes, function(node) {
|
|
24966
|
-
if (!(root.autoPlace && node === root.__save_row)) h += dom.getHeight(node);
|
|
24967
|
-
});
|
|
24968
|
-
if (window.innerHeight - top - CLOSE_BUTTON_HEIGHT < h) {
|
|
24969
|
-
dom.addClass(root.domElement, GUI.CLASS_TOO_TALL);
|
|
24970
|
-
root.__ul.style.height = window.innerHeight - top - CLOSE_BUTTON_HEIGHT + "px";
|
|
24971
|
-
} else {
|
|
24972
|
-
dom.removeClass(root.domElement, GUI.CLASS_TOO_TALL);
|
|
24973
|
-
root.__ul.style.height = "auto";
|
|
24974
|
-
}
|
|
24975
|
-
}
|
|
24976
|
-
if (root.__resize_handle) Common.defer(function() {
|
|
24977
|
-
root.__resize_handle.style.height = root.__ul.offsetHeight + "px";
|
|
24978
|
-
});
|
|
24979
|
-
if (root.__closeButton) root.__closeButton.style.width = root.width + "px";
|
|
24980
|
-
},
|
|
24981
|
-
onResizeDebounced: Common.debounce(function() {
|
|
24982
|
-
this.onResize();
|
|
24983
|
-
}, 50),
|
|
24984
|
-
remember: function remember() {
|
|
24985
|
-
if (Common.isUndefined(SAVE_DIALOGUE)) {
|
|
24986
|
-
SAVE_DIALOGUE = new CenteredDiv();
|
|
24987
|
-
SAVE_DIALOGUE.domElement.innerHTML = saveDialogContents;
|
|
24988
|
-
}
|
|
24989
|
-
if (this.parent) throw new Error("You can only call remember on a top level GUI.");
|
|
24990
|
-
var _this = this;
|
|
24991
|
-
Common.each(Array.prototype.slice.call(arguments), function(object) {
|
|
24992
|
-
if (_this.__rememberedObjects.length === 0) addSaveMenu(_this);
|
|
24993
|
-
if (_this.__rememberedObjects.indexOf(object) === -1) _this.__rememberedObjects.push(object);
|
|
24994
|
-
});
|
|
24995
|
-
if (this.autoPlace) setWidth(this, this.width);
|
|
24996
|
-
},
|
|
24997
|
-
getRoot: function getRoot() {
|
|
24998
|
-
var gui = this;
|
|
24999
|
-
while (gui.parent) gui = gui.parent;
|
|
25000
|
-
return gui;
|
|
25001
|
-
},
|
|
25002
|
-
getSaveObject: function getSaveObject() {
|
|
25003
|
-
var toReturn = this.load;
|
|
25004
|
-
toReturn.closed = this.closed;
|
|
25005
|
-
if (this.__rememberedObjects.length > 0) {
|
|
25006
|
-
toReturn.preset = this.preset;
|
|
25007
|
-
if (!toReturn.remembered) toReturn.remembered = {};
|
|
25008
|
-
toReturn.remembered[this.preset] = getCurrentPreset(this);
|
|
25009
|
-
}
|
|
25010
|
-
toReturn.folders = {};
|
|
25011
|
-
Common.each(this.__folders, function(element, key) {
|
|
25012
|
-
toReturn.folders[key] = element.getSaveObject();
|
|
25013
|
-
});
|
|
25014
|
-
return toReturn;
|
|
25015
|
-
},
|
|
25016
|
-
save: function save() {
|
|
25017
|
-
if (!this.load.remembered) this.load.remembered = {};
|
|
25018
|
-
this.load.remembered[this.preset] = getCurrentPreset(this);
|
|
25019
|
-
markPresetModified(this, false);
|
|
25020
|
-
this.saveToLocalStorageIfPossible();
|
|
25021
|
-
},
|
|
25022
|
-
saveAs: function saveAs(presetName) {
|
|
25023
|
-
if (!this.load.remembered) {
|
|
25024
|
-
this.load.remembered = {};
|
|
25025
|
-
this.load.remembered[DEFAULT_DEFAULT_PRESET_NAME] = getCurrentPreset(this, true);
|
|
25026
|
-
}
|
|
25027
|
-
this.load.remembered[presetName] = getCurrentPreset(this);
|
|
25028
|
-
this.preset = presetName;
|
|
25029
|
-
addPresetOption(this, presetName, true);
|
|
25030
|
-
this.saveToLocalStorageIfPossible();
|
|
25031
|
-
},
|
|
25032
|
-
revert: function revert(gui) {
|
|
25033
|
-
Common.each(this.__controllers, function(controller) {
|
|
25034
|
-
if (!this.getRoot().load.remembered) controller.setValue(controller.initialValue);
|
|
25035
|
-
else recallSavedValue(gui || this.getRoot(), controller);
|
|
25036
|
-
if (controller.__onFinishChange) controller.__onFinishChange.call(controller, controller.getValue());
|
|
25037
|
-
}, this);
|
|
25038
|
-
Common.each(this.__folders, function(folder) {
|
|
25039
|
-
folder.revert(folder);
|
|
25040
|
-
});
|
|
25041
|
-
if (!gui) markPresetModified(this.getRoot(), false);
|
|
25042
|
-
},
|
|
25043
|
-
listen: function listen(controller) {
|
|
25044
|
-
var init = this.__listening.length === 0;
|
|
25045
|
-
this.__listening.push(controller);
|
|
25046
|
-
if (init) updateDisplays(this.__listening);
|
|
25047
|
-
},
|
|
25048
|
-
updateDisplay: function updateDisplay() {
|
|
25049
|
-
Common.each(this.__controllers, function(controller) {
|
|
25050
|
-
controller.updateDisplay();
|
|
25051
|
-
});
|
|
25052
|
-
Common.each(this.__folders, function(folder) {
|
|
25053
|
-
folder.updateDisplay();
|
|
25054
|
-
});
|
|
25055
|
-
}
|
|
25056
|
-
});
|
|
25057
|
-
function addRow(gui, newDom, liBefore) {
|
|
25058
|
-
var li = document.createElement("li");
|
|
25059
|
-
if (newDom) li.appendChild(newDom);
|
|
25060
|
-
if (liBefore) gui.__ul.insertBefore(li, liBefore);
|
|
25061
|
-
else gui.__ul.appendChild(li);
|
|
25062
|
-
gui.onResize();
|
|
25063
|
-
return li;
|
|
25064
|
-
}
|
|
25065
|
-
function removeListeners(gui) {
|
|
25066
|
-
dom.unbind(window, "resize", gui.__resizeHandler);
|
|
25067
|
-
if (gui.saveToLocalStorageIfPossible) dom.unbind(window, "unload", gui.saveToLocalStorageIfPossible);
|
|
25068
|
-
}
|
|
25069
|
-
function markPresetModified(gui, modified) {
|
|
25070
|
-
var opt = gui.__preset_select[gui.__preset_select.selectedIndex];
|
|
25071
|
-
if (modified) opt.innerHTML = opt.value + "*";
|
|
25072
|
-
else opt.innerHTML = opt.value;
|
|
25073
|
-
}
|
|
25074
|
-
function augmentController(gui, li, controller) {
|
|
25075
|
-
controller.__li = li;
|
|
25076
|
-
controller.__gui = gui;
|
|
25077
|
-
Common.extend(controller, {
|
|
25078
|
-
options: function options(_options) {
|
|
25079
|
-
if (arguments.length > 1) {
|
|
25080
|
-
var nextSibling = controller.__li.nextElementSibling;
|
|
25081
|
-
controller.remove();
|
|
25082
|
-
return _add(gui, controller.object, controller.property, {
|
|
25083
|
-
before: nextSibling,
|
|
25084
|
-
factoryArgs: [Common.toArray(arguments)]
|
|
25085
|
-
});
|
|
25086
|
-
}
|
|
25087
|
-
if (Common.isArray(_options) || Common.isObject(_options)) {
|
|
25088
|
-
var _nextSibling = controller.__li.nextElementSibling;
|
|
25089
|
-
controller.remove();
|
|
25090
|
-
return _add(gui, controller.object, controller.property, {
|
|
25091
|
-
before: _nextSibling,
|
|
25092
|
-
factoryArgs: [_options]
|
|
25093
|
-
});
|
|
25094
|
-
}
|
|
25095
|
-
},
|
|
25096
|
-
name: function name(_name) {
|
|
25097
|
-
controller.__li.firstElementChild.firstElementChild.innerHTML = _name;
|
|
25098
|
-
return controller;
|
|
25099
|
-
},
|
|
25100
|
-
listen: function listen() {
|
|
25101
|
-
controller.__gui.listen(controller);
|
|
25102
|
-
return controller;
|
|
25103
|
-
},
|
|
25104
|
-
remove: function remove() {
|
|
25105
|
-
controller.__gui.remove(controller);
|
|
25106
|
-
return controller;
|
|
25107
|
-
}
|
|
25108
|
-
});
|
|
25109
|
-
if (controller instanceof NumberControllerSlider) {
|
|
25110
|
-
var box = new NumberControllerBox(controller.object, controller.property, {
|
|
25111
|
-
min: controller.__min,
|
|
25112
|
-
max: controller.__max,
|
|
25113
|
-
step: controller.__step
|
|
25114
|
-
});
|
|
25115
|
-
Common.each([
|
|
25116
|
-
"updateDisplay",
|
|
25117
|
-
"onChange",
|
|
25118
|
-
"onFinishChange",
|
|
25119
|
-
"step",
|
|
25120
|
-
"min",
|
|
25121
|
-
"max"
|
|
25122
|
-
], function(method) {
|
|
25123
|
-
var pc = controller[method];
|
|
25124
|
-
var pb = box[method];
|
|
25125
|
-
controller[method] = box[method] = function() {
|
|
25126
|
-
var args = Array.prototype.slice.call(arguments);
|
|
25127
|
-
pb.apply(box, args);
|
|
25128
|
-
return pc.apply(controller, args);
|
|
25129
|
-
};
|
|
25130
|
-
});
|
|
25131
|
-
dom.addClass(li, "has-slider");
|
|
25132
|
-
controller.domElement.insertBefore(box.domElement, controller.domElement.firstElementChild);
|
|
25133
|
-
} else if (controller instanceof NumberControllerBox) {
|
|
25134
|
-
var r = function r(returned) {
|
|
25135
|
-
if (Common.isNumber(controller.__min) && Common.isNumber(controller.__max)) {
|
|
25136
|
-
var oldName = controller.__li.firstElementChild.firstElementChild.innerHTML;
|
|
25137
|
-
var wasListening = controller.__gui.__listening.indexOf(controller) > -1;
|
|
25138
|
-
controller.remove();
|
|
25139
|
-
var newController = _add(gui, controller.object, controller.property, {
|
|
25140
|
-
before: controller.__li.nextElementSibling,
|
|
25141
|
-
factoryArgs: [
|
|
25142
|
-
controller.__min,
|
|
25143
|
-
controller.__max,
|
|
25144
|
-
controller.__step
|
|
25145
|
-
]
|
|
25146
|
-
});
|
|
25147
|
-
newController.name(oldName);
|
|
25148
|
-
if (wasListening) newController.listen();
|
|
25149
|
-
return newController;
|
|
25150
|
-
}
|
|
25151
|
-
return returned;
|
|
25152
|
-
};
|
|
25153
|
-
controller.min = Common.compose(r, controller.min);
|
|
25154
|
-
controller.max = Common.compose(r, controller.max);
|
|
25155
|
-
} else if (controller instanceof BooleanController) {
|
|
25156
|
-
dom.bind(li, "click", function() {
|
|
25157
|
-
dom.fakeEvent(controller.__checkbox, "click");
|
|
25158
|
-
});
|
|
25159
|
-
dom.bind(controller.__checkbox, "click", function(e) {
|
|
25160
|
-
e.stopPropagation();
|
|
25161
|
-
});
|
|
25162
|
-
} else if (controller instanceof FunctionController) {
|
|
25163
|
-
dom.bind(li, "click", function() {
|
|
25164
|
-
dom.fakeEvent(controller.__button, "click");
|
|
25165
|
-
});
|
|
25166
|
-
dom.bind(li, "mouseover", function() {
|
|
25167
|
-
dom.addClass(controller.__button, "hover");
|
|
25168
|
-
});
|
|
25169
|
-
dom.bind(li, "mouseout", function() {
|
|
25170
|
-
dom.removeClass(controller.__button, "hover");
|
|
25171
|
-
});
|
|
25172
|
-
} else if (controller instanceof ColorController) {
|
|
25173
|
-
dom.addClass(li, "color");
|
|
25174
|
-
controller.updateDisplay = Common.compose(function(val) {
|
|
25175
|
-
li.style.borderLeftColor = controller.__color.toString();
|
|
25176
|
-
return val;
|
|
25177
|
-
}, controller.updateDisplay);
|
|
25178
|
-
controller.updateDisplay();
|
|
25179
|
-
}
|
|
25180
|
-
controller.setValue = Common.compose(function(val) {
|
|
25181
|
-
if (gui.getRoot().__preset_select && controller.isModified()) markPresetModified(gui.getRoot(), true);
|
|
25182
|
-
return val;
|
|
25183
|
-
}, controller.setValue);
|
|
25184
|
-
}
|
|
25185
|
-
function recallSavedValue(gui, controller) {
|
|
25186
|
-
var root = gui.getRoot();
|
|
25187
|
-
var matchedIndex = root.__rememberedObjects.indexOf(controller.object);
|
|
25188
|
-
if (matchedIndex !== -1) {
|
|
25189
|
-
var controllerMap = root.__rememberedObjectIndecesToControllers[matchedIndex];
|
|
25190
|
-
if (controllerMap === void 0) {
|
|
25191
|
-
controllerMap = {};
|
|
25192
|
-
root.__rememberedObjectIndecesToControllers[matchedIndex] = controllerMap;
|
|
25193
|
-
}
|
|
25194
|
-
controllerMap[controller.property] = controller;
|
|
25195
|
-
if (root.load && root.load.remembered) {
|
|
25196
|
-
var presetMap = root.load.remembered;
|
|
25197
|
-
var preset = void 0;
|
|
25198
|
-
if (presetMap[gui.preset]) preset = presetMap[gui.preset];
|
|
25199
|
-
else if (presetMap[DEFAULT_DEFAULT_PRESET_NAME]) preset = presetMap[DEFAULT_DEFAULT_PRESET_NAME];
|
|
25200
|
-
else return;
|
|
25201
|
-
if (preset[matchedIndex] && preset[matchedIndex][controller.property] !== void 0) {
|
|
25202
|
-
var value = preset[matchedIndex][controller.property];
|
|
25203
|
-
controller.initialValue = value;
|
|
25204
|
-
controller.setValue(value);
|
|
25205
|
-
}
|
|
25206
|
-
}
|
|
25207
|
-
}
|
|
25208
|
-
}
|
|
25209
|
-
function _add(gui, object, property, params) {
|
|
25210
|
-
if (object[property] === void 0) throw new Error("Object \"" + object + "\" has no property \"" + property + "\"");
|
|
25211
|
-
var controller = void 0;
|
|
25212
|
-
if (params.color) controller = new ColorController(object, property);
|
|
25213
|
-
else {
|
|
25214
|
-
var factoryArgs = [object, property].concat(params.factoryArgs);
|
|
25215
|
-
controller = ControllerFactory.apply(gui, factoryArgs);
|
|
25216
|
-
}
|
|
25217
|
-
if (params.before instanceof Controller) params.before = params.before.__li;
|
|
25218
|
-
recallSavedValue(gui, controller);
|
|
25219
|
-
dom.addClass(controller.domElement, "c");
|
|
25220
|
-
var name = document.createElement("span");
|
|
25221
|
-
dom.addClass(name, "property-name");
|
|
25222
|
-
name.innerHTML = controller.property;
|
|
25223
|
-
var container = document.createElement("div");
|
|
25224
|
-
container.appendChild(name);
|
|
25225
|
-
container.appendChild(controller.domElement);
|
|
25226
|
-
var li = addRow(gui, container, params.before);
|
|
25227
|
-
dom.addClass(li, GUI.CLASS_CONTROLLER_ROW);
|
|
25228
|
-
if (controller instanceof ColorController) dom.addClass(li, "color");
|
|
25229
|
-
else dom.addClass(li, _typeof(controller.getValue()));
|
|
25230
|
-
augmentController(gui, li, controller);
|
|
25231
|
-
gui.__controllers.push(controller);
|
|
25232
|
-
return controller;
|
|
25233
|
-
}
|
|
25234
|
-
function getLocalStorageHash(gui, key) {
|
|
25235
|
-
return document.location.href + "." + key;
|
|
25236
|
-
}
|
|
25237
|
-
function addPresetOption(gui, name, setSelected) {
|
|
25238
|
-
var opt = document.createElement("option");
|
|
25239
|
-
opt.innerHTML = name;
|
|
25240
|
-
opt.value = name;
|
|
25241
|
-
gui.__preset_select.appendChild(opt);
|
|
25242
|
-
if (setSelected) gui.__preset_select.selectedIndex = gui.__preset_select.length - 1;
|
|
25243
|
-
}
|
|
25244
|
-
function showHideExplain(gui, explain) {
|
|
25245
|
-
explain.style.display = gui.useLocalStorage ? "block" : "none";
|
|
25246
|
-
}
|
|
25247
|
-
function addSaveMenu(gui) {
|
|
25248
|
-
var div = gui.__save_row = document.createElement("li");
|
|
25249
|
-
dom.addClass(gui.domElement, "has-save");
|
|
25250
|
-
gui.__ul.insertBefore(div, gui.__ul.firstChild);
|
|
25251
|
-
dom.addClass(div, "save-row");
|
|
25252
|
-
var gears = document.createElement("span");
|
|
25253
|
-
gears.innerHTML = " ";
|
|
25254
|
-
dom.addClass(gears, "button gears");
|
|
25255
|
-
var button = document.createElement("span");
|
|
25256
|
-
button.innerHTML = "Save";
|
|
25257
|
-
dom.addClass(button, "button");
|
|
25258
|
-
dom.addClass(button, "save");
|
|
25259
|
-
var button2 = document.createElement("span");
|
|
25260
|
-
button2.innerHTML = "New";
|
|
25261
|
-
dom.addClass(button2, "button");
|
|
25262
|
-
dom.addClass(button2, "save-as");
|
|
25263
|
-
var button3 = document.createElement("span");
|
|
25264
|
-
button3.innerHTML = "Revert";
|
|
25265
|
-
dom.addClass(button3, "button");
|
|
25266
|
-
dom.addClass(button3, "revert");
|
|
25267
|
-
var select = gui.__preset_select = document.createElement("select");
|
|
25268
|
-
if (gui.load && gui.load.remembered) Common.each(gui.load.remembered, function(value, key) {
|
|
25269
|
-
addPresetOption(gui, key, key === gui.preset);
|
|
25270
|
-
});
|
|
25271
|
-
else addPresetOption(gui, DEFAULT_DEFAULT_PRESET_NAME, false);
|
|
25272
|
-
dom.bind(select, "change", function() {
|
|
25273
|
-
for (var index = 0; index < gui.__preset_select.length; index++) gui.__preset_select[index].innerHTML = gui.__preset_select[index].value;
|
|
25274
|
-
gui.preset = this.value;
|
|
25275
|
-
});
|
|
25276
|
-
div.appendChild(select);
|
|
25277
|
-
div.appendChild(gears);
|
|
25278
|
-
div.appendChild(button);
|
|
25279
|
-
div.appendChild(button2);
|
|
25280
|
-
div.appendChild(button3);
|
|
25281
|
-
if (SUPPORTS_LOCAL_STORAGE) {
|
|
25282
|
-
var explain = document.getElementById("dg-local-explain");
|
|
25283
|
-
var localStorageCheckBox = document.getElementById("dg-local-storage");
|
|
25284
|
-
var saveLocally = document.getElementById("dg-save-locally");
|
|
25285
|
-
saveLocally.style.display = "block";
|
|
25286
|
-
if (localStorage.getItem(getLocalStorageHash(gui, "isLocal")) === "true") localStorageCheckBox.setAttribute("checked", "checked");
|
|
25287
|
-
showHideExplain(gui, explain);
|
|
25288
|
-
dom.bind(localStorageCheckBox, "change", function() {
|
|
25289
|
-
gui.useLocalStorage = !gui.useLocalStorage;
|
|
25290
|
-
showHideExplain(gui, explain);
|
|
25291
|
-
});
|
|
25292
|
-
}
|
|
25293
|
-
var newConstructorTextArea = document.getElementById("dg-new-constructor");
|
|
25294
|
-
dom.bind(newConstructorTextArea, "keydown", function(e) {
|
|
25295
|
-
if (e.metaKey && (e.which === 67 || e.keyCode === 67)) SAVE_DIALOGUE.hide();
|
|
25296
|
-
});
|
|
25297
|
-
dom.bind(gears, "click", function() {
|
|
25298
|
-
newConstructorTextArea.innerHTML = JSON.stringify(gui.getSaveObject(), void 0, 2);
|
|
25299
|
-
SAVE_DIALOGUE.show();
|
|
25300
|
-
newConstructorTextArea.focus();
|
|
25301
|
-
newConstructorTextArea.select();
|
|
25302
|
-
});
|
|
25303
|
-
dom.bind(button, "click", function() {
|
|
25304
|
-
gui.save();
|
|
25305
|
-
});
|
|
25306
|
-
dom.bind(button2, "click", function() {
|
|
25307
|
-
var presetName = prompt("Enter a new preset name.");
|
|
25308
|
-
if (presetName) gui.saveAs(presetName);
|
|
25309
|
-
});
|
|
25310
|
-
dom.bind(button3, "click", function() {
|
|
25311
|
-
gui.revert();
|
|
25312
|
-
});
|
|
25313
|
-
}
|
|
25314
|
-
function addResizeHandle(gui) {
|
|
25315
|
-
var pmouseX = void 0;
|
|
25316
|
-
gui.__resize_handle = document.createElement("div");
|
|
25317
|
-
Common.extend(gui.__resize_handle.style, {
|
|
25318
|
-
width: "6px",
|
|
25319
|
-
marginLeft: "-3px",
|
|
25320
|
-
height: "200px",
|
|
25321
|
-
cursor: "ew-resize",
|
|
25322
|
-
position: "absolute"
|
|
25323
|
-
});
|
|
25324
|
-
function drag(e) {
|
|
25325
|
-
e.preventDefault();
|
|
25326
|
-
gui.width += pmouseX - e.clientX;
|
|
25327
|
-
gui.onResize();
|
|
25328
|
-
pmouseX = e.clientX;
|
|
25329
|
-
return false;
|
|
25330
|
-
}
|
|
25331
|
-
function dragStop() {
|
|
25332
|
-
dom.removeClass(gui.__closeButton, GUI.CLASS_DRAG);
|
|
25333
|
-
dom.unbind(window, "mousemove", drag);
|
|
25334
|
-
dom.unbind(window, "mouseup", dragStop);
|
|
25335
|
-
}
|
|
25336
|
-
function dragStart(e) {
|
|
25337
|
-
e.preventDefault();
|
|
25338
|
-
pmouseX = e.clientX;
|
|
25339
|
-
dom.addClass(gui.__closeButton, GUI.CLASS_DRAG);
|
|
25340
|
-
dom.bind(window, "mousemove", drag);
|
|
25341
|
-
dom.bind(window, "mouseup", dragStop);
|
|
25342
|
-
return false;
|
|
25343
|
-
}
|
|
25344
|
-
dom.bind(gui.__resize_handle, "mousedown", dragStart);
|
|
25345
|
-
dom.bind(gui.__closeButton, "mousedown", dragStart);
|
|
25346
|
-
gui.domElement.insertBefore(gui.__resize_handle, gui.domElement.firstElementChild);
|
|
25347
|
-
}
|
|
25348
|
-
function setWidth(gui, w) {
|
|
25349
|
-
gui.domElement.style.width = w + "px";
|
|
25350
|
-
if (gui.__save_row && gui.autoPlace) gui.__save_row.style.width = w + "px";
|
|
25351
|
-
if (gui.__closeButton) gui.__closeButton.style.width = w + "px";
|
|
25352
|
-
}
|
|
25353
|
-
function getCurrentPreset(gui, useInitialValues) {
|
|
25354
|
-
var toReturn = {};
|
|
25355
|
-
Common.each(gui.__rememberedObjects, function(val, index) {
|
|
25356
|
-
var savedValues = {};
|
|
25357
|
-
var controllerMap = gui.__rememberedObjectIndecesToControllers[index];
|
|
25358
|
-
Common.each(controllerMap, function(controller, property) {
|
|
25359
|
-
savedValues[property] = useInitialValues ? controller.initialValue : controller.getValue();
|
|
25360
|
-
});
|
|
25361
|
-
toReturn[index] = savedValues;
|
|
25362
|
-
});
|
|
25363
|
-
return toReturn;
|
|
25364
|
-
}
|
|
25365
|
-
function setPresetSelectIndex(gui) {
|
|
25366
|
-
for (var index = 0; index < gui.__preset_select.length; index++) if (gui.__preset_select[index].value === gui.preset) gui.__preset_select.selectedIndex = index;
|
|
25367
|
-
}
|
|
25368
|
-
function updateDisplays(controllerArray) {
|
|
25369
|
-
if (controllerArray.length !== 0) requestAnimationFrame$1$1.call(window, function() {
|
|
25370
|
-
updateDisplays(controllerArray);
|
|
25371
|
-
});
|
|
25372
|
-
Common.each(controllerArray, function(c) {
|
|
25373
|
-
c.updateDisplay();
|
|
25374
|
-
});
|
|
25375
|
-
}
|
|
25376
|
-
var GUI$1 = GUI;
|
|
25377
22877
|
var Counter_module_default = {
|
|
25378
22878
|
root: "_root_9xpag_1",
|
|
25379
22879
|
h2: "_h2_9xpag_192",
|
|
@@ -25469,7 +22969,10 @@ var Counter = () => {
|
|
|
25469
22969
|
const valueController = (0, react.useRef)(null);
|
|
25470
22970
|
const easeController = (0, react.useRef)(null);
|
|
25471
22971
|
(0, react.useEffect)(() => {
|
|
22972
|
+
let ctrl = null;
|
|
22973
|
+
let isCancelled = false;
|
|
25472
22974
|
const UPDATE = () => {
|
|
22975
|
+
if (!valueController.current || typeof document === "undefined") return;
|
|
25473
22976
|
valueController.current.max(CONFIG.max);
|
|
25474
22977
|
valueController.current.min(CONFIG.min);
|
|
25475
22978
|
valueController.current.step(CONFIG.step);
|
|
@@ -25479,19 +22982,26 @@ var Counter = () => {
|
|
|
25479
22982
|
document.documentElement.style.setProperty("--transition", String(CONFIG.transition));
|
|
25480
22983
|
document.documentElement.style.setProperty("--ease", `var(--${CONFIG.ease})`);
|
|
25481
22984
|
};
|
|
25482
|
-
const
|
|
25483
|
-
|
|
25484
|
-
|
|
25485
|
-
|
|
25486
|
-
|
|
25487
|
-
|
|
25488
|
-
|
|
25489
|
-
|
|
25490
|
-
|
|
25491
|
-
|
|
25492
|
-
|
|
22985
|
+
const initialize = async () => {
|
|
22986
|
+
if (typeof window === "undefined") return;
|
|
22987
|
+
const { GUI } = await Promise.resolve().then(() => require("./dat.gui.module-C-Oxsf3K.cjs"));
|
|
22988
|
+
if (isCancelled) return;
|
|
22989
|
+
ctrl = new GUI({
|
|
22990
|
+
width: 320,
|
|
22991
|
+
closed: true
|
|
22992
|
+
});
|
|
22993
|
+
const valueFolder = ctrl.addFolder("Config");
|
|
22994
|
+
padController.current = valueFolder.add(CONFIG, "pad").name("Pad").onChange(UPDATE);
|
|
22995
|
+
currencyController.current = valueFolder.add(CONFIG, "currency", CONFIG.currencyOptions).name("Currency").onChange(UPDATE);
|
|
22996
|
+
transitionController.current = ctrl.add(CONFIG, "transition", 0, 5, .05).name("Transition (s)").onChange(UPDATE);
|
|
22997
|
+
easeController.current = ctrl.add(CONFIG, "ease", CONFIG.easeOptions).name("Easing").onChange(UPDATE);
|
|
22998
|
+
valueController.current = ctrl.add(CONFIG, "value", CONFIG.min, CONFIG.max, CONFIG.step).name("Value").onChange(UPDATE);
|
|
22999
|
+
UPDATE();
|
|
23000
|
+
};
|
|
23001
|
+
initialize();
|
|
25493
23002
|
return () => {
|
|
25494
|
-
|
|
23003
|
+
isCancelled = true;
|
|
23004
|
+
ctrl?.destroy();
|
|
25495
23005
|
};
|
|
25496
23006
|
}, []);
|
|
25497
23007
|
const padCount = pad ? CONFIG.max.toFixed(2).toString().length - value.toString().length : 0;
|