@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.js
CHANGED
|
@@ -5,7 +5,7 @@ import { C as move, S as times, _ as setLogLevel, a as is, b as storageLogger, c
|
|
|
5
5
|
import { _ as chain, a as wait, c as scalePresence, d as distance, f as lerp, g as normalizeError, h as formatTime, i as delay, l as slideDownPresence, m as formatDuration, n as supportsViewTransitions, o as createPresenceVariants, p as lineEq, r as getPath, s as fadePresence, t as startViewTransition, u as slideUpPresence, v as createBoundedMap } from "./utils-Dw5El_3G.js";
|
|
6
6
|
import { n as easing, r as staggerDelay, t as animationDuration } from "./animation-BFpILbqb.js";
|
|
7
7
|
import { i as lockAudioAssets, r as iconAssets, t as dockAudioAssets } from "./assets-huTvlamy.js";
|
|
8
|
-
import { a as FormField, c as VisuallyHidden, i as DialogBase, n as TooltipBase, o as useFormFieldContext, r as PopoverBase, s as Portal, t as SelectBase } from "./SelectBase-
|
|
8
|
+
import { a as FormField, c as VisuallyHidden, i as DialogBase, n as TooltipBase, o as useFormFieldContext, r as PopoverBase, s as Portal, t as SelectBase } from "./SelectBase-CdQKpIjl.js";
|
|
9
9
|
import { n as Cluster, r as Stack, t as Container } from "./Container-BirkN1fA.js";
|
|
10
10
|
import { a as getVarName, i as Token, n as validateColorScheme, o as resolveToken, r as springPreset, t as REQUIRED_SEMANTIC_VARS } from "./tokens-CDVSR49D.js";
|
|
11
11
|
import cn from "clsx";
|
|
@@ -687,20 +687,13 @@ var AnimatedHoverGlowButton = () => {
|
|
|
687
687
|
})]
|
|
688
688
|
});
|
|
689
689
|
};
|
|
690
|
-
//#endregion
|
|
691
|
-
//#region src/components/Buttons/AuroraButton/AuroraButton.module.scss
|
|
692
|
-
var root$283 = "_root_1r19c_1";
|
|
693
|
-
var background$6 = "_background_1r19c_9";
|
|
694
|
-
var inner$1 = "_inner_1r19c_45";
|
|
695
|
-
var label$17 = "_label_1r19c_48";
|
|
696
|
-
var labelBackground = "_labelBackground_1r19c_112";
|
|
697
690
|
var AuroraButton_module_default = {
|
|
698
|
-
root:
|
|
699
|
-
background:
|
|
691
|
+
root: "_root_1r19c_1",
|
|
692
|
+
background: "_background_1r19c_9",
|
|
700
693
|
"btn-glow": "_btn-glow_1r19c_1",
|
|
701
|
-
inner:
|
|
702
|
-
label:
|
|
703
|
-
labelBackground,
|
|
694
|
+
inner: "_inner_1r19c_45",
|
|
695
|
+
label: "_label_1r19c_48",
|
|
696
|
+
labelBackground: "_labelBackground_1r19c_112",
|
|
704
697
|
"noise-background": "_noise-background_1r19c_1"
|
|
705
698
|
};
|
|
706
699
|
//#endregion
|
|
@@ -758,31 +751,31 @@ var BubblyParticlesButton = () => {
|
|
|
758
751
|
});
|
|
759
752
|
};
|
|
760
753
|
var BurningButton_module_default = {
|
|
761
|
-
root: "
|
|
762
|
-
button: "
|
|
763
|
-
p: "
|
|
764
|
-
text: "
|
|
765
|
-
rise1: "
|
|
766
|
-
rise2: "
|
|
767
|
-
rise3: "
|
|
768
|
-
rise4: "
|
|
769
|
-
rise5: "
|
|
770
|
-
rise6: "
|
|
771
|
-
rise7: "
|
|
772
|
-
rise8: "
|
|
773
|
-
rise9: "
|
|
774
|
-
rise10: "
|
|
775
|
-
rise11: "
|
|
776
|
-
rise12: "
|
|
777
|
-
rise13: "
|
|
778
|
-
rise14: "
|
|
779
|
-
rise15: "
|
|
780
|
-
rise16: "
|
|
781
|
-
rise17: "
|
|
782
|
-
rise18: "
|
|
783
|
-
rise19: "
|
|
784
|
-
rise20: "
|
|
785
|
-
effects: "
|
|
754
|
+
root: "_root_820th_1",
|
|
755
|
+
button: "_button_820th_11",
|
|
756
|
+
p: "_p_820th_24",
|
|
757
|
+
text: "_text_820th_24",
|
|
758
|
+
rise1: "_rise1_820th_1",
|
|
759
|
+
rise2: "_rise2_820th_1",
|
|
760
|
+
rise3: "_rise3_820th_1",
|
|
761
|
+
rise4: "_rise4_820th_1",
|
|
762
|
+
rise5: "_rise5_820th_1",
|
|
763
|
+
rise6: "_rise6_820th_1",
|
|
764
|
+
rise7: "_rise7_820th_1",
|
|
765
|
+
rise8: "_rise8_820th_1",
|
|
766
|
+
rise9: "_rise9_820th_1",
|
|
767
|
+
rise10: "_rise10_820th_1",
|
|
768
|
+
rise11: "_rise11_820th_1",
|
|
769
|
+
rise12: "_rise12_820th_1",
|
|
770
|
+
rise13: "_rise13_820th_1",
|
|
771
|
+
rise14: "_rise14_820th_1",
|
|
772
|
+
rise15: "_rise15_820th_1",
|
|
773
|
+
rise16: "_rise16_820th_1",
|
|
774
|
+
rise17: "_rise17_820th_1",
|
|
775
|
+
rise18: "_rise18_820th_1",
|
|
776
|
+
rise19: "_rise19_820th_1",
|
|
777
|
+
rise20: "_rise20_820th_1",
|
|
778
|
+
effects: "_effects_820th_238"
|
|
786
779
|
};
|
|
787
780
|
//#endregion
|
|
788
781
|
//#region src/components/Buttons/BurningButton/BurningButton.tsx
|
|
@@ -2823,18 +2816,12 @@ var GodRaysButton = () => {
|
|
|
2823
2816
|
})]
|
|
2824
2817
|
});
|
|
2825
2818
|
};
|
|
2826
|
-
//#endregion
|
|
2827
|
-
//#region src/components/Buttons/GoHoverButton/GoHoverButton.module.scss
|
|
2828
|
-
var root$260 = "_root_1ct4r_1";
|
|
2829
|
-
var arrow$3 = "_arrow_1ct4r_17";
|
|
2830
|
-
var arrowItem = "_arrowItem_1ct4r_32";
|
|
2831
|
-
var label$16 = "_label_1ct4r_62";
|
|
2832
2819
|
var GoHoverButton_module_default = {
|
|
2833
|
-
root:
|
|
2834
|
-
arrow:
|
|
2835
|
-
arrowItem,
|
|
2820
|
+
root: "_root_1ct4r_1",
|
|
2821
|
+
arrow: "_arrow_1ct4r_17",
|
|
2822
|
+
arrowItem: "_arrowItem_1ct4r_32",
|
|
2836
2823
|
"move-right": "_move-right_1ct4r_1",
|
|
2837
|
-
label:
|
|
2824
|
+
label: "_label_1ct4r_62"
|
|
2838
2825
|
};
|
|
2839
2826
|
//#endregion
|
|
2840
2827
|
//#region src/components/Buttons/GoHoverButton/GoHoverButton.tsx
|
|
@@ -3834,10 +3821,10 @@ var NeonButton = ({ className, ...rest }) => {
|
|
|
3834
3821
|
});
|
|
3835
3822
|
};
|
|
3836
3823
|
var NoisyButton_module_default = {
|
|
3837
|
-
root: "
|
|
3838
|
-
i: "
|
|
3839
|
-
noise: "
|
|
3840
|
-
text: "
|
|
3824
|
+
root: "_root_19a9r_2",
|
|
3825
|
+
i: "_i_19a9r_22",
|
|
3826
|
+
noise: "_noise_19a9r_1",
|
|
3827
|
+
text: "_text_19a9r_482"
|
|
3841
3828
|
};
|
|
3842
3829
|
//#endregion
|
|
3843
3830
|
//#region src/components/Buttons/NoisyButton/NoisyButton.tsx
|
|
@@ -4042,19 +4029,13 @@ var PlayPauseButton = () => {
|
|
|
4042
4029
|
})
|
|
4043
4030
|
});
|
|
4044
4031
|
};
|
|
4045
|
-
//#endregion
|
|
4046
|
-
//#region src/components/Buttons/PlayPauseMusicButton/PlayPauseMusicButton.module.scss
|
|
4047
|
-
var root$246 = "_root_1hxbd_1";
|
|
4048
|
-
var paused = "_paused_1hxbd_58";
|
|
4049
|
-
var playing = "_playing_1hxbd_69";
|
|
4050
|
-
var char$3 = "_char_1hxbd_81";
|
|
4051
4032
|
var PlayPauseMusicButton_module_default = {
|
|
4052
|
-
root:
|
|
4053
|
-
paused,
|
|
4033
|
+
root: "_root_1hxbd_1",
|
|
4034
|
+
paused: "_paused_1hxbd_58",
|
|
4054
4035
|
"to-play": "_to-play_1hxbd_1",
|
|
4055
|
-
playing,
|
|
4036
|
+
playing: "_playing_1hxbd_69",
|
|
4056
4037
|
"to-pause": "_to-pause_1hxbd_1",
|
|
4057
|
-
char:
|
|
4038
|
+
char: "_char_1hxbd_81",
|
|
4058
4039
|
"background-paused": "_background-paused_1hxbd_1",
|
|
4059
4040
|
"background-playing": "_background-playing_1hxbd_1"
|
|
4060
4041
|
};
|
|
@@ -4549,18 +4530,12 @@ var PsychedelicButton = ({ variant }) => {
|
|
|
4549
4530
|
})
|
|
4550
4531
|
})] });
|
|
4551
4532
|
};
|
|
4552
|
-
//#endregion
|
|
4553
|
-
//#region src/components/Buttons/RepostButton/RepostButton.module.scss
|
|
4554
|
-
var root$241 = "_root_qhbgz_1";
|
|
4555
|
-
var button$15 = "_button_qhbgz_8";
|
|
4556
|
-
var img$11 = "_img_qhbgz_29";
|
|
4557
|
-
var sr$7 = "_sr_qhbgz_53";
|
|
4558
4533
|
var RepostButton_module_default = {
|
|
4559
|
-
root:
|
|
4560
|
-
button:
|
|
4561
|
-
img:
|
|
4534
|
+
root: "_root_qhbgz_1",
|
|
4535
|
+
button: "_button_qhbgz_8",
|
|
4536
|
+
img: "_img_qhbgz_29",
|
|
4562
4537
|
"sprite-play": "_sprite-play_qhbgz_1",
|
|
4563
|
-
sr:
|
|
4538
|
+
sr: "_sr_qhbgz_53"
|
|
4564
4539
|
};
|
|
4565
4540
|
//#endregion
|
|
4566
4541
|
//#region src/components/Buttons/RepostButton/RepostButton.tsx
|
|
@@ -4607,28 +4582,17 @@ var RubberButton = () => {
|
|
|
4607
4582
|
})]
|
|
4608
4583
|
});
|
|
4609
4584
|
};
|
|
4610
|
-
//#endregion
|
|
4611
|
-
//#region src/components/Buttons/RunningButton/RunningButton.module.scss
|
|
4612
|
-
var running = "_running_vg306_1";
|
|
4613
|
-
var outer$1 = "_outer_vg306_7";
|
|
4614
|
-
var body = "_body_vg306_11";
|
|
4615
|
-
var arm = "_arm_vg306_31";
|
|
4616
|
-
var leg = "_leg_vg306_33";
|
|
4617
|
-
var front = "_front_vg306_51";
|
|
4618
|
-
var behind = "_behind_vg306_59";
|
|
4619
|
-
var runningButton = "_runningButton_vg306_105";
|
|
4620
|
-
var active$27 = "_active_vg306_141";
|
|
4621
4585
|
var RunningButton_module_default = {
|
|
4622
|
-
running,
|
|
4623
|
-
outer:
|
|
4624
|
-
body,
|
|
4625
|
-
arm,
|
|
4626
|
-
leg,
|
|
4627
|
-
front,
|
|
4628
|
-
behind,
|
|
4629
|
-
runningButton,
|
|
4586
|
+
running: "_running_vg306_1",
|
|
4587
|
+
outer: "_outer_vg306_7",
|
|
4588
|
+
body: "_body_vg306_11",
|
|
4589
|
+
arm: "_arm_vg306_31",
|
|
4590
|
+
leg: "_leg_vg306_33",
|
|
4591
|
+
front: "_front_vg306_51",
|
|
4592
|
+
behind: "_behind_vg306_59",
|
|
4593
|
+
runningButton: "_runningButton_vg306_105",
|
|
4630
4594
|
"default": "_default_vg306_138",
|
|
4631
|
-
active:
|
|
4595
|
+
active: "_active_vg306_141",
|
|
4632
4596
|
"arm-leg": "_arm-leg_vg306_1",
|
|
4633
4597
|
"arm-b": "_arm-b_vg306_1"
|
|
4634
4598
|
};
|
|
@@ -4814,12 +4778,14 @@ function MacCursor() {
|
|
|
4814
4778
|
var scale$2 = (number, inMin, inMax, outMin, outMax) => {
|
|
4815
4779
|
return (number - inMin) * (outMax - outMin) / (inMax - inMin) + outMin;
|
|
4816
4780
|
};
|
|
4781
|
+
var CAMERA_WIDTH = 600;
|
|
4782
|
+
var CAMERA_HEIGHT = 600;
|
|
4817
4783
|
function getDefaultReflectiveButtonVideoConstraints() {
|
|
4818
4784
|
return {
|
|
4819
4785
|
audio: false,
|
|
4820
4786
|
video: {
|
|
4821
|
-
width: { ideal:
|
|
4822
|
-
height: { ideal:
|
|
4787
|
+
width: { ideal: CAMERA_WIDTH },
|
|
4788
|
+
height: { ideal: CAMERA_HEIGHT },
|
|
4823
4789
|
facingMode: "user"
|
|
4824
4790
|
}
|
|
4825
4791
|
};
|
|
@@ -5188,16 +5154,11 @@ function ReflectiveButton({ children, className, style, disabled = false, roughn
|
|
|
5188
5154
|
})]
|
|
5189
5155
|
});
|
|
5190
5156
|
}
|
|
5191
|
-
//#endregion
|
|
5192
|
-
//#region src/components/Buttons/ShinyCtaButton/ShinyCtaButton.module.scss
|
|
5193
|
-
var shinyCta = "_shinyCta_y36is_33";
|
|
5194
|
-
var shimmer = "_shimmer_y36is_1";
|
|
5195
|
-
var breathe = "_breathe_y36is_1";
|
|
5196
5157
|
var ShinyCtaButton_module_default = {
|
|
5197
|
-
shinyCta,
|
|
5158
|
+
shinyCta: "_shinyCta_y36is_33",
|
|
5198
5159
|
"gradient-angle": "_gradient-angle_y36is_1",
|
|
5199
|
-
shimmer,
|
|
5200
|
-
breathe
|
|
5160
|
+
shimmer: "_shimmer_y36is_1",
|
|
5161
|
+
breathe: "_breathe_y36is_1"
|
|
5201
5162
|
};
|
|
5202
5163
|
//#endregion
|
|
5203
5164
|
//#region src/components/Buttons/ShinyCtaButton/ShinyCtaButton.tsx
|
|
@@ -5370,35 +5331,21 @@ var SlidingStepper = () => {
|
|
|
5370
5331
|
]
|
|
5371
5332
|
});
|
|
5372
5333
|
};
|
|
5373
|
-
//#endregion
|
|
5374
|
-
//#region src/components/Buttons/SparkleButton/SparkleButton.module.scss
|
|
5375
|
-
var root$234 = "_root_noa3x_1";
|
|
5376
|
-
var button$12 = "_button_noa3x_8";
|
|
5377
|
-
var bounce$2 = "_bounce_noa3x_1";
|
|
5378
|
-
var bodydrop = "_bodydrop_noa3x_54";
|
|
5379
|
-
var sparkle = "_sparkle_noa3x_69";
|
|
5380
|
-
var spark = "_spark_noa3x_69";
|
|
5381
|
-
var flip$2 = "_flip_noa3x_1";
|
|
5382
|
-
var rotate$5 = "_rotate_noa3x_1";
|
|
5383
|
-
var backdrop = "_backdrop_noa3x_127";
|
|
5384
|
-
var particlePen = "_particlePen_noa3x_156";
|
|
5385
|
-
var particle$2 = "_particle_noa3x_54";
|
|
5386
|
-
var text$23 = "_text_noa3x_190";
|
|
5387
5334
|
var SparkleButton_module_default = {
|
|
5388
|
-
root:
|
|
5389
|
-
button:
|
|
5390
|
-
bounce:
|
|
5391
|
-
bodydrop,
|
|
5335
|
+
root: "_root_noa3x_1",
|
|
5336
|
+
button: "_button_noa3x_8",
|
|
5337
|
+
bounce: "_bounce_noa3x_1",
|
|
5338
|
+
bodydrop: "_bodydrop_noa3x_54",
|
|
5392
5339
|
"particle-pen": "_particle-pen_noa3x_54",
|
|
5393
|
-
sparkle,
|
|
5394
|
-
spark,
|
|
5395
|
-
flip:
|
|
5396
|
-
rotate:
|
|
5397
|
-
backdrop,
|
|
5398
|
-
particlePen,
|
|
5399
|
-
particle:
|
|
5340
|
+
sparkle: "_sparkle_noa3x_69",
|
|
5341
|
+
spark: "_spark_noa3x_69",
|
|
5342
|
+
flip: "_flip_noa3x_1",
|
|
5343
|
+
rotate: "_rotate_noa3x_1",
|
|
5344
|
+
backdrop: "_backdrop_noa3x_127",
|
|
5345
|
+
particlePen: "_particlePen_noa3x_156",
|
|
5346
|
+
particle: "_particle_noa3x_54",
|
|
5400
5347
|
"float-out": "_float-out_noa3x_1",
|
|
5401
|
-
text:
|
|
5348
|
+
text: "_text_noa3x_190"
|
|
5402
5349
|
};
|
|
5403
5350
|
//#endregion
|
|
5404
5351
|
//#region src/components/Buttons/SparkleButton/SparkleButton.tsx
|
|
@@ -6351,34 +6298,21 @@ var EnvelopeTile = ({ className = "", header, children }) => /* @__PURE__ */ jsx
|
|
|
6351
6298
|
children
|
|
6352
6299
|
]
|
|
6353
6300
|
});
|
|
6354
|
-
//#endregion
|
|
6355
|
-
//#region src/components/Cards/GlowingTile/GlowingTile.module.scss
|
|
6356
|
-
var root$215 = "_root_y27fb_1";
|
|
6357
|
-
var card$10 = "_card_y27fb_30";
|
|
6358
|
-
var contentWrapper = "_contentWrapper_y27fb_43";
|
|
6359
|
-
var glow$9 = "_glow_y27fb_49";
|
|
6360
|
-
var content$13 = "_content_y27fb_43";
|
|
6361
|
-
var reset = "_reset_y27fb_99";
|
|
6362
|
-
var speed$1 = "_speed_y27fb_112";
|
|
6363
|
-
var button$10 = "_button_y27fb_119";
|
|
6364
|
-
var minus = "_minus_y27fb_127";
|
|
6365
|
-
var plus = "_plus_y27fb_127";
|
|
6366
|
-
var rotate$3 = "_rotate_y27fb_1";
|
|
6367
6301
|
var GlowingTile_module_default = {
|
|
6368
|
-
root:
|
|
6369
|
-
card:
|
|
6370
|
-
contentWrapper,
|
|
6302
|
+
root: "_root_y27fb_1",
|
|
6303
|
+
card: "_card_y27fb_30",
|
|
6304
|
+
contentWrapper: "_contentWrapper_y27fb_43",
|
|
6371
6305
|
"shadow-pulse": "_shadow-pulse_y27fb_1",
|
|
6372
|
-
glow:
|
|
6373
|
-
content:
|
|
6374
|
-
reset,
|
|
6375
|
-
speed:
|
|
6376
|
-
button:
|
|
6377
|
-
minus,
|
|
6378
|
-
plus,
|
|
6306
|
+
glow: "_glow_y27fb_49",
|
|
6307
|
+
content: "_content_y27fb_43",
|
|
6308
|
+
reset: "_reset_y27fb_99",
|
|
6309
|
+
speed: "_speed_y27fb_112",
|
|
6310
|
+
button: "_button_y27fb_119",
|
|
6311
|
+
minus: "_minus_y27fb_127",
|
|
6312
|
+
plus: "_plus_y27fb_127",
|
|
6379
6313
|
"hue-animation": "_hue-animation_y27fb_1",
|
|
6380
6314
|
"rotate-bg": "_rotate-bg_y27fb_1",
|
|
6381
|
-
rotate:
|
|
6315
|
+
rotate: "_rotate_y27fb_1"
|
|
6382
6316
|
};
|
|
6383
6317
|
//#endregion
|
|
6384
6318
|
//#region src/components/Cards/GlowingTile/GlowingTile.tsx
|
|
@@ -6429,20 +6363,13 @@ var GlowingTile = () => {
|
|
|
6429
6363
|
})
|
|
6430
6364
|
});
|
|
6431
6365
|
};
|
|
6432
|
-
//#endregion
|
|
6433
|
-
//#region src/components/Cards/GradientGlowingTile/GradientGlowingTile.module.scss
|
|
6434
|
-
var root$214 = "_root_1r9v7_1";
|
|
6435
|
-
var glow$8 = "_glow_1r9v7_52";
|
|
6436
|
-
var rotate$2 = "_rotate_1r9v7_1";
|
|
6437
|
-
var content$12 = "_content_1r9v7_95";
|
|
6438
|
-
var highlight$3 = "_highlight_1r9v7_112";
|
|
6439
6366
|
var GradientGlowingTile_module_default = {
|
|
6440
|
-
root:
|
|
6441
|
-
glow:
|
|
6442
|
-
rotate:
|
|
6367
|
+
root: "_root_1r9v7_1",
|
|
6368
|
+
glow: "_glow_1r9v7_52",
|
|
6369
|
+
rotate: "_rotate_1r9v7_1",
|
|
6443
6370
|
"hue-animation": "_hue-animation_1r9v7_1",
|
|
6444
|
-
content:
|
|
6445
|
-
highlight:
|
|
6371
|
+
content: "_content_1r9v7_95",
|
|
6372
|
+
highlight: "_highlight_1r9v7_112",
|
|
6446
6373
|
"rotate-bg": "_rotate-bg_1r9v7_1",
|
|
6447
6374
|
"shadow-pulse": "_shadow-pulse_1r9v7_1"
|
|
6448
6375
|
};
|
|
@@ -7073,22 +7000,14 @@ var StackingCards = () => {
|
|
|
7073
7000
|
]
|
|
7074
7001
|
});
|
|
7075
7002
|
};
|
|
7076
|
-
//#endregion
|
|
7077
|
-
//#region src/components/Carousels/BulletsCarousel/BulletsCarousel.module.scss
|
|
7078
|
-
var root$205 = "_root_kzbpe_1";
|
|
7079
|
-
var carousel$1 = "_carousel_kzbpe_10";
|
|
7080
|
-
var entries = "_entries_kzbpe_18";
|
|
7081
|
-
var bullets = "_bullets_kzbpe_49";
|
|
7082
|
-
var bullet = "_bullet_kzbpe_49";
|
|
7083
|
-
var srOnly$4 = "_srOnly_kzbpe_92";
|
|
7084
7003
|
var BulletsCarousel_module_default = {
|
|
7085
|
-
root:
|
|
7086
|
-
carousel:
|
|
7087
|
-
entries,
|
|
7088
|
-
bullets,
|
|
7004
|
+
root: "_root_kzbpe_1",
|
|
7005
|
+
carousel: "_carousel_kzbpe_10",
|
|
7006
|
+
entries: "_entries_kzbpe_18",
|
|
7007
|
+
bullets: "_bullets_kzbpe_49",
|
|
7089
7008
|
"colorize-dot": "_colorize-dot_kzbpe_1",
|
|
7090
|
-
bullet,
|
|
7091
|
-
srOnly:
|
|
7009
|
+
bullet: "_bullet_kzbpe_49",
|
|
7010
|
+
srOnly: "_srOnly_kzbpe_92"
|
|
7092
7011
|
};
|
|
7093
7012
|
//#endregion
|
|
7094
7013
|
//#region src/components/Carousels/BulletsCarousel/BulletsCarousel.tsx
|
|
@@ -7306,20 +7225,13 @@ var CardCarousel = ({ items = MOCK_CARD_CAROUSEL_ITEMS }) => {
|
|
|
7306
7225
|
}, item.id))]
|
|
7307
7226
|
});
|
|
7308
7227
|
};
|
|
7309
|
-
//#endregion
|
|
7310
|
-
//#region src/components/Carousels/CoverFlowGallery/CoverFlowGallery.module.scss
|
|
7311
|
-
var root$203 = "_root_m3ecj_1";
|
|
7312
|
-
var cards$1 = "_cards_m3ecj_15";
|
|
7313
|
-
var active$22 = "_active_m3ecj_29";
|
|
7314
|
-
var card$7 = "_card_m3ecj_15";
|
|
7315
|
-
var image$15 = "_image_m3ecj_55";
|
|
7316
7228
|
var CoverFlowGallery_module_default = {
|
|
7317
|
-
root:
|
|
7318
|
-
cards:
|
|
7319
|
-
active:
|
|
7320
|
-
card:
|
|
7229
|
+
root: "_root_m3ecj_1",
|
|
7230
|
+
cards: "_cards_m3ecj_15",
|
|
7231
|
+
active: "_active_m3ecj_29",
|
|
7232
|
+
card: "_card_m3ecj_15",
|
|
7321
7233
|
"adjust-z-index": "_adjust-z-index_m3ecj_1",
|
|
7322
|
-
image:
|
|
7234
|
+
image: "_image_m3ecj_55",
|
|
7323
7235
|
"rotate-cover": "_rotate-cover_m3ecj_1"
|
|
7324
7236
|
};
|
|
7325
7237
|
//#endregion
|
|
@@ -7488,22 +7400,14 @@ var FullScreenImageCarousel = () => {
|
|
|
7488
7400
|
})]
|
|
7489
7401
|
});
|
|
7490
7402
|
};
|
|
7491
|
-
//#endregion
|
|
7492
|
-
//#region src/components/Carousels/GalleryReverseScroll/GalleryReverseScroll.module.scss
|
|
7493
|
-
var root$201 = "_root_19n3c_1";
|
|
7494
|
-
var column = "_column_19n3c_11";
|
|
7495
|
-
var reverse = "_reverse_19n3c_17";
|
|
7496
|
-
var columnItem = "_columnItem_19n3c_24";
|
|
7497
|
-
var itemImgWrap = "_itemImgWrap_19n3c_32";
|
|
7498
|
-
var itemCaption = "_itemCaption_19n3c_47";
|
|
7499
7403
|
var GalleryReverseScroll_module_default = {
|
|
7500
|
-
root:
|
|
7501
|
-
column,
|
|
7502
|
-
reverse,
|
|
7404
|
+
root: "_root_19n3c_1",
|
|
7405
|
+
column: "_column_19n3c_11",
|
|
7406
|
+
reverse: "_reverse_19n3c_17",
|
|
7503
7407
|
"adjust-position": "_adjust-position_19n3c_1",
|
|
7504
|
-
columnItem,
|
|
7505
|
-
itemImgWrap,
|
|
7506
|
-
itemCaption
|
|
7408
|
+
columnItem: "_columnItem_19n3c_24",
|
|
7409
|
+
itemImgWrap: "_itemImgWrap_19n3c_32",
|
|
7410
|
+
itemCaption: "_itemCaption_19n3c_47"
|
|
7507
7411
|
};
|
|
7508
7412
|
//#endregion
|
|
7509
7413
|
//#region src/components/Carousels/GalleryReverseScroll/GalleryReverseScroll.tsx
|
|
@@ -9214,23 +9118,15 @@ var SplashCursor = ({ onClick = noop }) => {
|
|
|
9214
9118
|
className: SplashCursor_module_default.root
|
|
9215
9119
|
});
|
|
9216
9120
|
};
|
|
9217
|
-
//#endregion
|
|
9218
|
-
//#region src/components/Cursors/MagicMouseEffect/MagicMouseEffect.module.scss
|
|
9219
|
-
var root$182 = "_root_im3gj_1";
|
|
9220
|
-
var glow$7 = "_glow_im3gj_5";
|
|
9221
|
-
var star$2 = "_star_im3gj_12";
|
|
9222
|
-
var fall1 = "_fall1_im3gj_25";
|
|
9223
|
-
var fall2 = "_fall2_im3gj_29";
|
|
9224
|
-
var fall3 = "_fall3_im3gj_33";
|
|
9225
9121
|
var MagicMouseEffect_module_default = {
|
|
9226
|
-
root:
|
|
9227
|
-
glow:
|
|
9228
|
-
star:
|
|
9229
|
-
fall1,
|
|
9122
|
+
root: "_root_im3gj_1",
|
|
9123
|
+
glow: "_glow_im3gj_5",
|
|
9124
|
+
star: "_star_im3gj_12",
|
|
9125
|
+
fall1: "_fall1_im3gj_25",
|
|
9230
9126
|
"fall-1": "_fall-1_im3gj_1",
|
|
9231
|
-
fall2,
|
|
9127
|
+
fall2: "_fall2_im3gj_29",
|
|
9232
9128
|
"fall-2": "_fall-2_im3gj_1",
|
|
9233
|
-
fall3,
|
|
9129
|
+
fall3: "_fall3_im3gj_33",
|
|
9234
9130
|
"fall-3": "_fall-3_im3gj_1"
|
|
9235
9131
|
};
|
|
9236
9132
|
//#endregion
|
|
@@ -10980,35 +10876,22 @@ var Header = ({ children, className = "", contentClassName = "" }) => /* @__PURE
|
|
|
10980
10876
|
children
|
|
10981
10877
|
})
|
|
10982
10878
|
});
|
|
10983
|
-
//#endregion
|
|
10984
|
-
//#region src/components/Headers/StickyHeader/StickyHeader.module.scss
|
|
10985
|
-
var root$163 = "_root_m9k88_1";
|
|
10986
|
-
var main$4 = "_main_m9k88_6";
|
|
10987
|
-
var col$1 = "_col_m9k88_13";
|
|
10988
|
-
var avatar$2 = "_avatar_m9k88_19";
|
|
10989
|
-
var meta = "_meta_m9k88_27";
|
|
10990
|
-
var box$1 = "_box_m9k88_37";
|
|
10991
|
-
var limited = "_limited_m9k88_44";
|
|
10992
|
-
var info$3 = "_info_m9k88_51";
|
|
10993
|
-
var header$2 = "_header_m9k88_64";
|
|
10994
|
-
var editButton = "_editButton_m9k88_74";
|
|
10995
|
-
var bg$5 = "_bg_m9k88_93";
|
|
10996
10879
|
var StickyHeader_module_default = {
|
|
10997
|
-
root:
|
|
10998
|
-
main:
|
|
10999
|
-
col:
|
|
11000
|
-
avatar:
|
|
11001
|
-
meta,
|
|
11002
|
-
box:
|
|
11003
|
-
limited,
|
|
11004
|
-
info:
|
|
10880
|
+
root: "_root_m9k88_1",
|
|
10881
|
+
main: "_main_m9k88_6",
|
|
10882
|
+
col: "_col_m9k88_13",
|
|
10883
|
+
avatar: "_avatar_m9k88_19",
|
|
10884
|
+
meta: "_meta_m9k88_27",
|
|
10885
|
+
box: "_box_m9k88_37",
|
|
10886
|
+
limited: "_limited_m9k88_44",
|
|
10887
|
+
info: "_info_m9k88_51",
|
|
11005
10888
|
"adjust-info": "_adjust-info_m9k88_1",
|
|
11006
10889
|
"shrink-name": "_shrink-name_m9k88_1",
|
|
11007
|
-
header:
|
|
10890
|
+
header: "_header_m9k88_64",
|
|
11008
10891
|
"add-shadow": "_add-shadow_m9k88_1",
|
|
11009
|
-
editButton,
|
|
10892
|
+
editButton: "_editButton_m9k88_74",
|
|
11010
10893
|
"move-button": "_move-button_m9k88_1",
|
|
11011
|
-
bg:
|
|
10894
|
+
bg: "_bg_m9k88_93",
|
|
11012
10895
|
"move-and-fade-background": "_move-and-fade-background_m9k88_1"
|
|
11013
10896
|
};
|
|
11014
10897
|
//#endregion
|
|
@@ -11086,39 +10969,25 @@ var StickyHeader = () => {
|
|
|
11086
10969
|
})]
|
|
11087
10970
|
});
|
|
11088
10971
|
};
|
|
11089
|
-
//#endregion
|
|
11090
|
-
//#region src/components/Heros/AnimatedHeroTitle/AnimatedHeroTitle.module.scss
|
|
11091
|
-
var root$162 = "_root_ki7je_1";
|
|
11092
|
-
var bg$4 = "_bg_ki7je_30";
|
|
11093
|
-
var shadow$2 = "_shadow_ki7je_37";
|
|
11094
|
-
var bg1 = "_bg1_ki7je_55";
|
|
11095
|
-
var fg1 = "_fg1_ki7je_59";
|
|
11096
|
-
var bg2 = "_bg2_ki7je_63";
|
|
11097
|
-
var fg2 = "_fg2_ki7je_67";
|
|
11098
|
-
var bg3 = "_bg3_ki7je_71";
|
|
11099
|
-
var fg3 = "_fg3_ki7je_75";
|
|
11100
|
-
var stop = "_stop_ki7je_79";
|
|
11101
|
-
var fg = "_fg_ki7je_59";
|
|
11102
|
-
var button$8 = "_button_ki7je_151";
|
|
11103
10972
|
var AnimatedHeroTitle_module_default = {
|
|
11104
|
-
root:
|
|
11105
|
-
bg:
|
|
11106
|
-
shadow:
|
|
11107
|
-
bg1,
|
|
10973
|
+
root: "_root_ki7je_1",
|
|
10974
|
+
bg: "_bg_ki7je_30",
|
|
10975
|
+
shadow: "_shadow_ki7je_37",
|
|
10976
|
+
bg1: "_bg1_ki7je_55",
|
|
11108
10977
|
"fade-bg1": "_fade-bg1_ki7je_1",
|
|
11109
|
-
fg1,
|
|
10978
|
+
fg1: "_fg1_ki7je_59",
|
|
11110
10979
|
"fade-fg1": "_fade-fg1_ki7je_1",
|
|
11111
|
-
bg2,
|
|
10980
|
+
bg2: "_bg2_ki7je_63",
|
|
11112
10981
|
"fade-bg2": "_fade-bg2_ki7je_1",
|
|
11113
|
-
fg2,
|
|
10982
|
+
fg2: "_fg2_ki7je_67",
|
|
11114
10983
|
"fade-fg2": "_fade-fg2_ki7je_1",
|
|
11115
|
-
bg3,
|
|
10984
|
+
bg3: "_bg3_ki7je_71",
|
|
11116
10985
|
"fade-bg3": "_fade-bg3_ki7je_1",
|
|
11117
|
-
fg3,
|
|
10986
|
+
fg3: "_fg3_ki7je_75",
|
|
11118
10987
|
"fade-fg3": "_fade-fg3_ki7je_1",
|
|
11119
|
-
stop,
|
|
11120
|
-
fg,
|
|
11121
|
-
button:
|
|
10988
|
+
stop: "_stop_ki7je_79",
|
|
10989
|
+
fg: "_fg_ki7je_59",
|
|
10990
|
+
button: "_button_ki7je_151"
|
|
11122
10991
|
};
|
|
11123
10992
|
//#endregion
|
|
11124
10993
|
//#region src/components/Heros/AnimatedHeroTitle/AnimatedHeroTitle.tsx
|
|
@@ -13178,14 +13047,10 @@ var CanOfDigits = ({ className = "", controls = false, initialValue = 1e3 }) =>
|
|
|
13178
13047
|
]
|
|
13179
13048
|
});
|
|
13180
13049
|
};
|
|
13181
|
-
//#endregion
|
|
13182
|
-
//#region src/components/Loaders/ChaseLoader/ChaseLoader.module.scss
|
|
13183
|
-
var root$135 = "_root_1i4gp_1";
|
|
13184
|
-
var dot$4 = "_dot_1i4gp_8";
|
|
13185
13050
|
var ChaseLoader_module_default = {
|
|
13186
|
-
root:
|
|
13051
|
+
root: "_root_1i4gp_1",
|
|
13187
13052
|
"sk-chase": "_sk-chase_1i4gp_1",
|
|
13188
|
-
dot:
|
|
13053
|
+
dot: "_dot_1i4gp_8",
|
|
13189
13054
|
"dot-before": "_dot-before_1i4gp_1"
|
|
13190
13055
|
};
|
|
13191
13056
|
//#endregion
|
|
@@ -13222,20 +13087,13 @@ var CircleDotsLoader = ({ type = "fade" }) => {
|
|
|
13222
13087
|
children: Array.from({ length: 12 }, (_, i) => /* @__PURE__ */ jsx("div", { className: cn(CircleDotsLoader_module_default[`circle${i + 1}`], CircleDotsLoader_module_default.child) }, i))
|
|
13223
13088
|
});
|
|
13224
13089
|
};
|
|
13225
|
-
//#endregion
|
|
13226
|
-
//#region src/components/Loaders/CubeLoader/CubeLoader.module.scss
|
|
13227
|
-
var root$133 = "_root_aw2sz_1";
|
|
13228
|
-
var cube = "_cube_aw2sz_9";
|
|
13229
|
-
var cube2 = "_cube2_aw2sz_29";
|
|
13230
|
-
var cube3 = "_cube3_aw2sz_33";
|
|
13231
|
-
var cube4 = "_cube4_aw2sz_37";
|
|
13232
13090
|
var CubeLoader_module_default = {
|
|
13233
|
-
root:
|
|
13234
|
-
cube,
|
|
13091
|
+
root: "_root_aw2sz_1",
|
|
13092
|
+
cube: "_cube_aw2sz_9",
|
|
13235
13093
|
"sk-foldCubeAngle": "_sk-foldCubeAngle_aw2sz_1",
|
|
13236
|
-
cube2,
|
|
13237
|
-
cube3,
|
|
13238
|
-
cube4
|
|
13094
|
+
cube2: "_cube2_aw2sz_29",
|
|
13095
|
+
cube3: "_cube3_aw2sz_33",
|
|
13096
|
+
cube4: "_cube4_aw2sz_37"
|
|
13239
13097
|
};
|
|
13240
13098
|
//#endregion
|
|
13241
13099
|
//#region src/components/Loaders/CubeLoader/CubeLoader.tsx
|
|
@@ -13269,7 +13127,7 @@ var EndlessLoader = ({ container }) => {
|
|
|
13269
13127
|
return;
|
|
13270
13128
|
}
|
|
13271
13129
|
try {
|
|
13272
|
-
const GLModule = await import("./gl-
|
|
13130
|
+
const GLModule = await import("./gl-D6wtjXIm.js");
|
|
13273
13131
|
if (!isActiveRef.current) return;
|
|
13274
13132
|
const glInstance = new GLModule.GL(capturedContainer);
|
|
13275
13133
|
glInstance.init();
|
|
@@ -13636,16 +13494,11 @@ var RingLoader = ({ className = "", children = "Max Tarsis" }) => {
|
|
|
13636
13494
|
})]
|
|
13637
13495
|
});
|
|
13638
13496
|
};
|
|
13639
|
-
//#endregion
|
|
13640
|
-
//#region src/components/Loaders/RoundScaleLoader/RoundScaleLoader.module.scss
|
|
13641
|
-
var root$123 = "_root_cdkpc_1";
|
|
13642
|
-
var dot1 = "_dot1_cdkpc_10";
|
|
13643
|
-
var dot2 = "_dot2_cdkpc_11";
|
|
13644
13497
|
var RoundScaleLoader_module_default = {
|
|
13645
|
-
root:
|
|
13498
|
+
root: "_root_cdkpc_1",
|
|
13646
13499
|
"sk-rotate": "_sk-rotate_cdkpc_1",
|
|
13647
|
-
dot1,
|
|
13648
|
-
dot2,
|
|
13500
|
+
dot1: "_dot1_cdkpc_10",
|
|
13501
|
+
dot2: "_dot2_cdkpc_11",
|
|
13649
13502
|
"sk-bounce": "_sk-bounce_cdkpc_1"
|
|
13650
13503
|
};
|
|
13651
13504
|
//#endregion
|
|
@@ -14786,38 +14639,22 @@ var AnimatedIconsNav = () => {
|
|
|
14786
14639
|
})]
|
|
14787
14640
|
});
|
|
14788
14641
|
};
|
|
14789
|
-
//#endregion
|
|
14790
|
-
//#region src/components/Menus/AnimatedShareMenu/AnimatedShareMenu.module.scss
|
|
14791
|
-
var root$110 = "_root_1siik_1";
|
|
14792
|
-
var share = "_share_1siik_15";
|
|
14793
|
-
var btn = "_btn_1siik_21";
|
|
14794
|
-
var links = "_links_1siik_22";
|
|
14795
|
-
var link$7 = "_link_1siik_22";
|
|
14796
|
-
var linkIcon = "_linkIcon_1siik_55";
|
|
14797
|
-
var btnIcon1a = "_btnIcon1a_1siik_65";
|
|
14798
|
-
var btnIcon1b = "_btnIcon1b_1siik_66";
|
|
14799
|
-
var btnIcon1c = "_btnIcon1c_1siik_67";
|
|
14800
|
-
var btnIcon2a = "_btnIcon2a_1siik_68";
|
|
14801
|
-
var btnIcon2b = "_btnIcon2b_1siik_69";
|
|
14802
|
-
var btnIcon2c = "_btnIcon2c_1siik_70";
|
|
14803
|
-
var linkItem = "_linkItem_1siik_114";
|
|
14804
|
-
var open$1 = "_open_1siik_161";
|
|
14805
14642
|
var AnimatedShareMenu_module_default = {
|
|
14806
|
-
root:
|
|
14807
|
-
share,
|
|
14808
|
-
btn,
|
|
14809
|
-
links,
|
|
14810
|
-
link:
|
|
14643
|
+
root: "_root_1siik_1",
|
|
14644
|
+
share: "_share_1siik_15",
|
|
14645
|
+
btn: "_btn_1siik_21",
|
|
14646
|
+
links: "_links_1siik_22",
|
|
14647
|
+
link: "_link_1siik_22",
|
|
14811
14648
|
"btn-icon": "_btn-icon_1siik_54",
|
|
14812
|
-
linkIcon,
|
|
14813
|
-
btnIcon1a,
|
|
14814
|
-
btnIcon1b,
|
|
14815
|
-
btnIcon1c,
|
|
14816
|
-
btnIcon2a,
|
|
14817
|
-
btnIcon2b,
|
|
14818
|
-
btnIcon2c,
|
|
14819
|
-
linkItem,
|
|
14820
|
-
open:
|
|
14649
|
+
linkIcon: "_linkIcon_1siik_55",
|
|
14650
|
+
btnIcon1a: "_btnIcon1a_1siik_65",
|
|
14651
|
+
btnIcon1b: "_btnIcon1b_1siik_66",
|
|
14652
|
+
btnIcon1c: "_btnIcon1c_1siik_67",
|
|
14653
|
+
btnIcon2a: "_btnIcon2a_1siik_68",
|
|
14654
|
+
btnIcon2b: "_btnIcon2b_1siik_69",
|
|
14655
|
+
btnIcon2c: "_btnIcon2c_1siik_70",
|
|
14656
|
+
linkItem: "_linkItem_1siik_114",
|
|
14657
|
+
open: "_open_1siik_161"
|
|
14821
14658
|
};
|
|
14822
14659
|
//#endregion
|
|
14823
14660
|
//#region src/components/Menus/AnimatedShareMenu/AnimatedShareMenu.tsx
|
|
@@ -16469,26 +16306,16 @@ var PinDropdown = () => {
|
|
|
16469
16306
|
})]
|
|
16470
16307
|
});
|
|
16471
16308
|
};
|
|
16472
|
-
//#endregion
|
|
16473
|
-
//#region src/components/Menus/RadialMenu/RadialMenu.module.scss
|
|
16474
|
-
var root$96 = "_root_1eccn_1";
|
|
16475
|
-
var menu = "_menu_1eccn_9";
|
|
16476
|
-
var isActive = "_isActive_1eccn_17";
|
|
16477
|
-
var dots = "_dots_1eccn_22";
|
|
16478
|
-
var dot$3 = "_dot_1eccn_22";
|
|
16479
|
-
var items$2 = "_items_1eccn_73";
|
|
16480
|
-
var item$6 = "_item_1eccn_73";
|
|
16481
|
-
var content$3 = "_content_1eccn_155";
|
|
16482
16309
|
var RadialMenu_module_default = {
|
|
16483
|
-
root:
|
|
16484
|
-
menu,
|
|
16485
|
-
isActive,
|
|
16486
|
-
dots,
|
|
16487
|
-
dot:
|
|
16488
|
-
items:
|
|
16489
|
-
item:
|
|
16310
|
+
root: "_root_1eccn_1",
|
|
16311
|
+
menu: "_menu_1eccn_9",
|
|
16312
|
+
isActive: "_isActive_1eccn_17",
|
|
16313
|
+
dots: "_dots_1eccn_22",
|
|
16314
|
+
dot: "_dot_1eccn_22",
|
|
16315
|
+
items: "_items_1eccn_73",
|
|
16316
|
+
item: "_item_1eccn_73",
|
|
16490
16317
|
"overlay-closer": "_overlay-closer_1eccn_139",
|
|
16491
|
-
content:
|
|
16318
|
+
content: "_content_1eccn_155"
|
|
16492
16319
|
};
|
|
16493
16320
|
//#endregion
|
|
16494
16321
|
//#region src/components/Menus/RadialMenu/RadialMenu.tsx
|
|
@@ -16686,42 +16513,24 @@ var RadialMenu = () => {
|
|
|
16686
16513
|
})
|
|
16687
16514
|
});
|
|
16688
16515
|
};
|
|
16689
|
-
//#endregion
|
|
16690
|
-
//#region src/components/Menus/RadialNavigation/RadialNavigation.module.scss
|
|
16691
|
-
var root$95 = "_root_1cdat_1";
|
|
16692
|
-
var mobile = "_mobile_1cdat_23";
|
|
16693
|
-
var opposite = "_opposite_1cdat_26";
|
|
16694
|
-
var active$8 = "_active_1cdat_34";
|
|
16695
|
-
var highlighted = "_highlighted_1cdat_60";
|
|
16696
|
-
var item$5 = "_item_1cdat_69";
|
|
16697
|
-
var Untouchable = "_Untouchable_1cdat_1";
|
|
16698
|
-
var icon$5 = "_icon_1cdat_147";
|
|
16699
|
-
var name$1 = "_name_1cdat_164";
|
|
16700
|
-
var title$3 = "_title_1cdat_184";
|
|
16701
|
-
var activeItem = "_activeItem_1cdat_193";
|
|
16702
|
-
var subtitle = "_subtitle_1cdat_202";
|
|
16703
|
-
var ScaleIn$1 = "_ScaleIn_1cdat_1";
|
|
16704
|
-
var dot$2 = "_dot_1cdat_215";
|
|
16705
|
-
var texture$1 = "_texture_1cdat_334";
|
|
16706
|
-
var Mask = "_Mask_1cdat_1";
|
|
16707
16516
|
var RadialNavigation_module_default = {
|
|
16708
|
-
root:
|
|
16517
|
+
root: "_root_1cdat_1",
|
|
16709
16518
|
"static": "_static_1cdat_20",
|
|
16710
|
-
mobile,
|
|
16711
|
-
opposite,
|
|
16712
|
-
active:
|
|
16713
|
-
highlighted,
|
|
16714
|
-
item:
|
|
16715
|
-
Untouchable,
|
|
16716
|
-
icon:
|
|
16717
|
-
name:
|
|
16718
|
-
title:
|
|
16719
|
-
activeItem,
|
|
16720
|
-
subtitle,
|
|
16721
|
-
ScaleIn:
|
|
16722
|
-
dot:
|
|
16723
|
-
texture:
|
|
16724
|
-
Mask
|
|
16519
|
+
mobile: "_mobile_1cdat_23",
|
|
16520
|
+
opposite: "_opposite_1cdat_26",
|
|
16521
|
+
active: "_active_1cdat_34",
|
|
16522
|
+
highlighted: "_highlighted_1cdat_60",
|
|
16523
|
+
item: "_item_1cdat_69",
|
|
16524
|
+
Untouchable: "_Untouchable_1cdat_1",
|
|
16525
|
+
icon: "_icon_1cdat_147",
|
|
16526
|
+
name: "_name_1cdat_164",
|
|
16527
|
+
title: "_title_1cdat_184",
|
|
16528
|
+
activeItem: "_activeItem_1cdat_193",
|
|
16529
|
+
subtitle: "_subtitle_1cdat_202",
|
|
16530
|
+
ScaleIn: "_ScaleIn_1cdat_1",
|
|
16531
|
+
dot: "_dot_1cdat_215",
|
|
16532
|
+
texture: "_texture_1cdat_334",
|
|
16533
|
+
Mask: "_Mask_1cdat_1"
|
|
16725
16534
|
};
|
|
16726
16535
|
//#endregion
|
|
16727
16536
|
//#region src/components/Menus/RadialNavigation/RadialNavigation.tsx
|
|
@@ -16784,69 +16593,39 @@ var RadialNavigation = ({ onClick, items, direction = "left", className = "", is
|
|
|
16784
16593
|
}, item.id)), /* @__PURE__ */ jsx(Texture, { className: RadialNavigation_module_default.texture })]
|
|
16785
16594
|
});
|
|
16786
16595
|
};
|
|
16787
|
-
//#endregion
|
|
16788
|
-
//#region src/components/Menus/SinglePopoverMenu/SinglePopoverMenu.module.scss
|
|
16789
|
-
var root$94 = "_root_15cj5_1";
|
|
16790
|
-
var item$4 = "_item_15cj5_18";
|
|
16791
|
-
var menuText = "_menuText_15cj5_33";
|
|
16792
|
-
var subMenuHolder = "_subMenuHolder_15cj5_64";
|
|
16793
|
-
var subMenuContainer = "_subMenuContainer_15cj5_84";
|
|
16794
|
-
var subMenuBottom = "_subMenuBottom_15cj5_92";
|
|
16795
|
-
var clipPath = "_clipPath_15cj5_1";
|
|
16796
|
-
var subMenu = "_subMenu_15cj5_64";
|
|
16797
|
-
var double = "_double_15cj5_155";
|
|
16798
|
-
var triple = "_triple_15cj5_161";
|
|
16799
|
-
var title$2 = "_title_15cj5_189";
|
|
16800
|
-
var iconBox = "_iconBox_15cj5_195";
|
|
16801
|
-
var flat = "_flat_15cj5_204";
|
|
16802
|
-
var space = "_space_15cj5_208";
|
|
16803
|
-
var icon$4 = "_icon_15cj5_195";
|
|
16804
|
-
var text$12 = "_text_15cj5_217";
|
|
16805
|
-
var gb = "_gb_15cj5_240";
|
|
16806
|
-
var a$1 = "_a_15cj5_248";
|
|
16807
|
-
var b = "_b_15cj5_252";
|
|
16808
|
-
var c$1 = "_c_15cj5_256";
|
|
16809
|
-
var d = "_d_15cj5_155";
|
|
16810
|
-
var e = "_e_15cj5_264";
|
|
16811
|
-
var f = "_f_15cj5_204";
|
|
16812
|
-
var highlight$2 = "_highlight_15cj5_278";
|
|
16813
|
-
var bottomContainer = "_bottomContainer_15cj5_282";
|
|
16814
|
-
var topContainer = "_topContainer_15cj5_304";
|
|
16815
|
-
var box = "_box_15cj5_317";
|
|
16816
|
-
var big = "_big_15cj5_332";
|
|
16817
16596
|
var SinglePopoverMenu_module_default = {
|
|
16818
|
-
root:
|
|
16819
|
-
item:
|
|
16820
|
-
menuText,
|
|
16821
|
-
subMenuHolder,
|
|
16822
|
-
subMenuContainer,
|
|
16823
|
-
subMenuBottom,
|
|
16824
|
-
clipPath,
|
|
16825
|
-
subMenu,
|
|
16826
|
-
double,
|
|
16827
|
-
triple,
|
|
16828
|
-
title:
|
|
16829
|
-
iconBox,
|
|
16830
|
-
flat,
|
|
16831
|
-
space,
|
|
16832
|
-
icon:
|
|
16833
|
-
text:
|
|
16834
|
-
gb,
|
|
16835
|
-
a:
|
|
16836
|
-
b,
|
|
16837
|
-
c:
|
|
16838
|
-
d,
|
|
16839
|
-
e,
|
|
16840
|
-
f,
|
|
16597
|
+
root: "_root_15cj5_1",
|
|
16598
|
+
item: "_item_15cj5_18",
|
|
16599
|
+
menuText: "_menuText_15cj5_33",
|
|
16600
|
+
subMenuHolder: "_subMenuHolder_15cj5_64",
|
|
16601
|
+
subMenuContainer: "_subMenuContainer_15cj5_84",
|
|
16602
|
+
subMenuBottom: "_subMenuBottom_15cj5_92",
|
|
16603
|
+
clipPath: "_clipPath_15cj5_1",
|
|
16604
|
+
subMenu: "_subMenu_15cj5_64",
|
|
16605
|
+
double: "_double_15cj5_155",
|
|
16606
|
+
triple: "_triple_15cj5_161",
|
|
16607
|
+
title: "_title_15cj5_189",
|
|
16608
|
+
iconBox: "_iconBox_15cj5_195",
|
|
16609
|
+
flat: "_flat_15cj5_204",
|
|
16610
|
+
space: "_space_15cj5_208",
|
|
16611
|
+
icon: "_icon_15cj5_195",
|
|
16612
|
+
text: "_text_15cj5_217",
|
|
16613
|
+
gb: "_gb_15cj5_240",
|
|
16614
|
+
a: "_a_15cj5_248",
|
|
16615
|
+
b: "_b_15cj5_252",
|
|
16616
|
+
c: "_c_15cj5_256",
|
|
16617
|
+
d: "_d_15cj5_155",
|
|
16618
|
+
e: "_e_15cj5_264",
|
|
16619
|
+
f: "_f_15cj5_204",
|
|
16841
16620
|
"menu-item": "_menu-item_15cj5_272",
|
|
16842
16621
|
"icon-box": "_icon-box_15cj5_272",
|
|
16843
16622
|
"sub-text": "_sub-text_15cj5_274",
|
|
16844
|
-
highlight:
|
|
16623
|
+
highlight: "_highlight_15cj5_278",
|
|
16845
16624
|
"sub-menu-bottom": "_sub-menu-bottom_15cj5_1",
|
|
16846
|
-
bottomContainer,
|
|
16847
|
-
topContainer,
|
|
16848
|
-
box,
|
|
16849
|
-
big
|
|
16625
|
+
bottomContainer: "_bottomContainer_15cj5_282",
|
|
16626
|
+
topContainer: "_topContainer_15cj5_304",
|
|
16627
|
+
box: "_box_15cj5_317",
|
|
16628
|
+
big: "_big_15cj5_332"
|
|
16850
16629
|
};
|
|
16851
16630
|
//#endregion
|
|
16852
16631
|
//#region src/components/Menus/SinglePopoverMenu/SinglePopoverMenu.tsx
|
|
@@ -18111,20 +17890,13 @@ var RadioHopping = () => {
|
|
|
18111
17890
|
]
|
|
18112
17891
|
});
|
|
18113
17892
|
};
|
|
18114
|
-
//#endregion
|
|
18115
|
-
//#region src/components/Radios/RadioSlidingFocus/RadioSlidingFocus.module.scss
|
|
18116
|
-
var form$2 = "_form_ut3jq_1";
|
|
18117
|
-
var label$3 = "_label_ut3jq_16";
|
|
18118
|
-
var input$14 = "_input_ut3jq_17";
|
|
18119
|
-
var selection = "_selection_ut3jq_87";
|
|
18120
|
-
var truncate = "_truncate_ut3jq_122";
|
|
18121
17893
|
var RadioSlidingFocus_module_default = {
|
|
18122
|
-
form:
|
|
18123
|
-
label:
|
|
18124
|
-
input:
|
|
18125
|
-
selection,
|
|
17894
|
+
form: "_form_ut3jq_1",
|
|
17895
|
+
label: "_label_ut3jq_16",
|
|
17896
|
+
input: "_input_ut3jq_17",
|
|
17897
|
+
selection: "_selection_ut3jq_87",
|
|
18126
17898
|
"fade-in": "_fade-in_ut3jq_1",
|
|
18127
|
-
truncate
|
|
17899
|
+
truncate: "_truncate_ut3jq_122"
|
|
18128
17900
|
};
|
|
18129
17901
|
//#endregion
|
|
18130
17902
|
//#region src/components/Radios/RadioSlidingFocus/RadioSlidingFocus.tsx
|
|
@@ -18213,44 +17985,26 @@ var ScrollCountdown = () => {
|
|
|
18213
17985
|
}, slides.length + slide + i))
|
|
18214
17986
|
});
|
|
18215
17987
|
};
|
|
18216
|
-
//#endregion
|
|
18217
|
-
//#region src/components/Scrolls/ScrollDrivenTextBlowOut/ScrollDrivenTextBlowOut.module.scss
|
|
18218
|
-
var root$83 = "_root_122a3_1";
|
|
18219
|
-
var section$2 = "_section_122a3_9";
|
|
18220
|
-
var h2$2 = "_h2_122a3_75";
|
|
18221
|
-
var sectionContent = "_sectionContent_122a3_79";
|
|
18222
|
-
var svg$5 = "_svg_122a3_94";
|
|
18223
|
-
var videoWrap = "_videoWrap_122a3_99";
|
|
18224
|
-
var video$1 = "_video_122a3_99";
|
|
18225
|
-
var nav = "_nav_122a3_118";
|
|
18226
|
-
var navContent = "_navContent_122a3_143";
|
|
18227
|
-
var signature = "_signature_122a3_154";
|
|
18228
|
-
var eye$1 = "_eye_122a3_160";
|
|
18229
|
-
var nose = "_nose_122a3_160";
|
|
18230
|
-
var draw = "_draw_122a3_1";
|
|
18231
|
-
var fill$1 = "_fill_122a3_1";
|
|
18232
|
-
var ear = "_ear_122a3_200";
|
|
18233
|
-
var fade = "_fade_122a3_1";
|
|
18234
17988
|
var ScrollDrivenTextBlowOut_module_default = {
|
|
18235
|
-
root:
|
|
18236
|
-
section:
|
|
18237
|
-
h2:
|
|
18238
|
-
sectionContent,
|
|
18239
|
-
svg:
|
|
18240
|
-
videoWrap,
|
|
18241
|
-
video:
|
|
18242
|
-
nav,
|
|
18243
|
-
navContent,
|
|
18244
|
-
signature,
|
|
18245
|
-
eye:
|
|
18246
|
-
nose,
|
|
17989
|
+
root: "_root_122a3_1",
|
|
17990
|
+
section: "_section_122a3_9",
|
|
17991
|
+
h2: "_h2_122a3_75",
|
|
17992
|
+
sectionContent: "_sectionContent_122a3_79",
|
|
17993
|
+
svg: "_svg_122a3_94",
|
|
17994
|
+
videoWrap: "_videoWrap_122a3_99",
|
|
17995
|
+
video: "_video_122a3_99",
|
|
17996
|
+
nav: "_nav_122a3_118",
|
|
17997
|
+
navContent: "_navContent_122a3_143",
|
|
17998
|
+
signature: "_signature_122a3_154",
|
|
17999
|
+
eye: "_eye_122a3_160",
|
|
18000
|
+
nose: "_nose_122a3_160",
|
|
18247
18001
|
"blow-out": "_blow-out_122a3_1",
|
|
18248
18002
|
"fade-in": "_fade-in_122a3_1",
|
|
18249
18003
|
"fade-out": "_fade-out_122a3_1",
|
|
18250
|
-
draw,
|
|
18251
|
-
fill:
|
|
18252
|
-
ear,
|
|
18253
|
-
fade
|
|
18004
|
+
draw: "_draw_122a3_1",
|
|
18005
|
+
fill: "_fill_122a3_1",
|
|
18006
|
+
ear: "_ear_122a3_200",
|
|
18007
|
+
fade: "_fade_122a3_1"
|
|
18254
18008
|
};
|
|
18255
18009
|
//#endregion
|
|
18256
18010
|
//#region src/components/Scrolls/ScrollDrivenTextBlowOut/ScrollDrivenTextBlowOut.tsx
|
|
@@ -18560,16 +18314,11 @@ var ScrollTimeline = () => {
|
|
|
18560
18314
|
]
|
|
18561
18315
|
});
|
|
18562
18316
|
};
|
|
18563
|
-
//#endregion
|
|
18564
|
-
//#region src/components/Scrolls/ScrollWithLight/ScrollWithLight.module.scss
|
|
18565
|
-
var root$79 = "_root_1dqvs_56";
|
|
18566
|
-
var scrollbar = "_scrollbar_1dqvs_69";
|
|
18567
|
-
var container$9 = "_container_1dqvs_79";
|
|
18568
18317
|
var ScrollWithLight_module_default = {
|
|
18569
|
-
root:
|
|
18570
|
-
scrollbar,
|
|
18318
|
+
root: "_root_1dqvs_56",
|
|
18319
|
+
scrollbar: "_scrollbar_1dqvs_69",
|
|
18571
18320
|
"on-scrolling": "_on-scrolling_1dqvs_1",
|
|
18572
|
-
container:
|
|
18321
|
+
container: "_container_1dqvs_79"
|
|
18573
18322
|
};
|
|
18574
18323
|
//#endregion
|
|
18575
18324
|
//#region src/components/Scrolls/ScrollWithLight/ScrollWithLight.tsx
|
|
@@ -18977,48 +18726,26 @@ var DaySwitch = () => {
|
|
|
18977
18726
|
})]
|
|
18978
18727
|
});
|
|
18979
18728
|
};
|
|
18980
|
-
//#endregion
|
|
18981
|
-
//#region src/components/Switches/GlassSwitch/GlassSwitch.module.scss
|
|
18982
|
-
var root$74 = "_root_a8q8m_1";
|
|
18983
|
-
var surface = "_surface_a8q8m_23";
|
|
18984
|
-
var bg$2 = "_bg_a8q8m_29";
|
|
18985
|
-
var outerShadow = "_outerShadow_a8q8m_56";
|
|
18986
|
-
var innerShadow = "_innerShadow_a8q8m_85";
|
|
18987
|
-
var activeLight = "_activeLight_a8q8m_94";
|
|
18988
|
-
var innerSurface = "_innerSurface_a8q8m_105";
|
|
18989
|
-
var darkShadow = "_darkShadow_a8q8m_115";
|
|
18990
|
-
var lightShadow = "_lightShadow_a8q8m_116";
|
|
18991
|
-
var balls = "_balls_a8q8m_166";
|
|
18992
|
-
var inactiveBall = "_inactiveBall_a8q8m_171";
|
|
18993
|
-
var whiteball = "_whiteball_a8q8m_1";
|
|
18994
|
-
var activeBall = "_activeBall_a8q8m_182";
|
|
18995
|
-
var lightball = "_lightball_a8q8m_1";
|
|
18996
|
-
var glass = "_glass_a8q8m_193";
|
|
18997
|
-
var lights = "_lights_a8q8m_213";
|
|
18998
|
-
var activeBallLight = "_activeBallLight_a8q8m_218";
|
|
18999
|
-
var inactiveBallLight = "_inactiveBallLight_a8q8m_219";
|
|
19000
|
-
var input$11 = "_input_a8q8m_240";
|
|
19001
|
-
var ratio = "_ratio_a8q8m_1";
|
|
19002
18729
|
var GlassSwitch_module_default = {
|
|
19003
|
-
root:
|
|
19004
|
-
surface,
|
|
19005
|
-
bg:
|
|
19006
|
-
outerShadow,
|
|
19007
|
-
innerShadow,
|
|
19008
|
-
activeLight,
|
|
19009
|
-
innerSurface,
|
|
19010
|
-
darkShadow,
|
|
19011
|
-
lightShadow,
|
|
19012
|
-
balls,
|
|
19013
|
-
inactiveBall,
|
|
19014
|
-
whiteball,
|
|
19015
|
-
activeBall,
|
|
19016
|
-
lightball,
|
|
19017
|
-
glass,
|
|
19018
|
-
lights,
|
|
19019
|
-
activeBallLight,
|
|
19020
|
-
inactiveBallLight,
|
|
19021
|
-
input:
|
|
18730
|
+
root: "_root_a8q8m_1",
|
|
18731
|
+
surface: "_surface_a8q8m_23",
|
|
18732
|
+
bg: "_bg_a8q8m_29",
|
|
18733
|
+
outerShadow: "_outerShadow_a8q8m_56",
|
|
18734
|
+
innerShadow: "_innerShadow_a8q8m_85",
|
|
18735
|
+
activeLight: "_activeLight_a8q8m_94",
|
|
18736
|
+
innerSurface: "_innerSurface_a8q8m_105",
|
|
18737
|
+
darkShadow: "_darkShadow_a8q8m_115",
|
|
18738
|
+
lightShadow: "_lightShadow_a8q8m_116",
|
|
18739
|
+
balls: "_balls_a8q8m_166",
|
|
18740
|
+
inactiveBall: "_inactiveBall_a8q8m_171",
|
|
18741
|
+
whiteball: "_whiteball_a8q8m_1",
|
|
18742
|
+
activeBall: "_activeBall_a8q8m_182",
|
|
18743
|
+
lightball: "_lightball_a8q8m_1",
|
|
18744
|
+
glass: "_glass_a8q8m_193",
|
|
18745
|
+
lights: "_lights_a8q8m_213",
|
|
18746
|
+
activeBallLight: "_activeBallLight_a8q8m_218",
|
|
18747
|
+
inactiveBallLight: "_inactiveBallLight_a8q8m_219",
|
|
18748
|
+
input: "_input_a8q8m_240",
|
|
19022
18749
|
"switch": "_switch_a8q8m_244",
|
|
19023
18750
|
"ratio-reverse": "_ratio-reverse_a8q8m_1",
|
|
19024
18751
|
"active-light-reverse": "_active-light-reverse_a8q8m_1",
|
|
@@ -19026,7 +18753,7 @@ var GlassSwitch_module_default = {
|
|
|
19026
18753
|
"active-ball-next": "_active-ball-next_a8q8m_1",
|
|
19027
18754
|
"inactive-ball-light-next": "_inactive-ball-light-next_a8q8m_1",
|
|
19028
18755
|
"active-ball-light-next": "_active-ball-light-next_a8q8m_1",
|
|
19029
|
-
ratio,
|
|
18756
|
+
ratio: "_ratio_a8q8m_1",
|
|
19030
18757
|
"active-light": "_active-light_a8q8m_1",
|
|
19031
18758
|
"inactive-ball": "_inactive-ball_a8q8m_1",
|
|
19032
18759
|
"active-ball": "_active-ball_a8q8m_1",
|
|
@@ -19361,18 +19088,12 @@ var ToggleBubble = () => {
|
|
|
19361
19088
|
})
|
|
19362
19089
|
});
|
|
19363
19090
|
};
|
|
19364
|
-
//#endregion
|
|
19365
|
-
//#region src/components/Switches/ToggleClipPath/ToggleClipPath.module.scss
|
|
19366
|
-
var root$68 = "_root_x6h1h_1";
|
|
19367
|
-
var input$4 = "_input_x6h1h_31";
|
|
19368
|
-
var sr$1 = "_sr_x6h1h_46";
|
|
19369
|
-
var focus = "_focus_x6h1h_47";
|
|
19370
19091
|
var ToggleClipPath_module_default = {
|
|
19371
|
-
root:
|
|
19092
|
+
root: "_root_x6h1h_1",
|
|
19372
19093
|
"switch": "_switch_x6h1h_30",
|
|
19373
|
-
input:
|
|
19374
|
-
sr:
|
|
19375
|
-
focus
|
|
19094
|
+
input: "_input_x6h1h_31",
|
|
19095
|
+
sr: "_sr_x6h1h_46",
|
|
19096
|
+
focus: "_focus_x6h1h_47"
|
|
19376
19097
|
};
|
|
19377
19098
|
//#endregion
|
|
19378
19099
|
//#region src/components/Switches/ToggleClipPath/ToggleClipPath.tsx
|
|
@@ -19739,12 +19460,12 @@ var ScrambledText = ({ children, reveal = false }) => {
|
|
|
19739
19460
|
});
|
|
19740
19461
|
};
|
|
19741
19462
|
var ScramblingLetters_module_default = {
|
|
19742
|
-
root: "
|
|
19743
|
-
line: "
|
|
19744
|
-
word: "
|
|
19745
|
-
link: "
|
|
19746
|
-
letter: "
|
|
19747
|
-
wobble: "
|
|
19463
|
+
root: "_root_1262b_1",
|
|
19464
|
+
line: "_line_1262b_9",
|
|
19465
|
+
word: "_word_1262b_14",
|
|
19466
|
+
link: "_link_1262b_18",
|
|
19467
|
+
letter: "_letter_1262b_22",
|
|
19468
|
+
wobble: "_wobble_1262b_1"
|
|
19748
19469
|
};
|
|
19749
19470
|
//#endregion
|
|
19750
19471
|
//#region src/components/Texts/ScramblingLetters/ScramblingLetters.tsx
|
|
@@ -20334,26 +20055,16 @@ var Duck = () => {
|
|
|
20334
20055
|
})
|
|
20335
20056
|
});
|
|
20336
20057
|
};
|
|
20337
|
-
//#endregion
|
|
20338
|
-
//#region src/components/unsorted/DynamicIsland/DynamicIsland.module.scss
|
|
20339
|
-
var root$51 = "_root_f1fmy_1";
|
|
20340
|
-
var island = "_island_f1fmy_17";
|
|
20341
|
-
var bar$1 = "_bar_f1fmy_24";
|
|
20342
|
-
var ball = "_ball_f1fmy_33";
|
|
20343
|
-
var svg$4 = "_svg_f1fmy_54";
|
|
20344
|
-
var ScaleIn = "_ScaleIn_f1fmy_1";
|
|
20345
|
-
var notch = "_notch_f1fmy_66";
|
|
20346
|
-
var lens = "_lens_f1fmy_78";
|
|
20347
20058
|
var DynamicIsland_module_default = {
|
|
20348
|
-
root:
|
|
20059
|
+
root: "_root_f1fmy_1",
|
|
20349
20060
|
"static": "_static_f1fmy_12",
|
|
20350
|
-
island,
|
|
20351
|
-
bar:
|
|
20352
|
-
ball,
|
|
20353
|
-
svg:
|
|
20354
|
-
ScaleIn,
|
|
20355
|
-
notch,
|
|
20356
|
-
lens
|
|
20061
|
+
island: "_island_f1fmy_17",
|
|
20062
|
+
bar: "_bar_f1fmy_24",
|
|
20063
|
+
ball: "_ball_f1fmy_33",
|
|
20064
|
+
svg: "_svg_f1fmy_54",
|
|
20065
|
+
ScaleIn: "_ScaleIn_f1fmy_1",
|
|
20066
|
+
notch: "_notch_f1fmy_66",
|
|
20067
|
+
lens: "_lens_f1fmy_78"
|
|
20357
20068
|
};
|
|
20358
20069
|
//#endregion
|
|
20359
20070
|
//#region src/components/unsorted/DynamicIsland/DynamicIsland.tsx
|
|
@@ -20651,34 +20362,20 @@ var AvatarHover = () => {
|
|
|
20651
20362
|
alt: ""
|
|
20652
20363
|
});
|
|
20653
20364
|
};
|
|
20654
|
-
//#endregion
|
|
20655
|
-
//#region src/components/unsorted/BackgroundSlider/BackgroundSlider.module.scss
|
|
20656
|
-
var root$43 = "_root_15zmr_1";
|
|
20657
|
-
var hero = "_hero_15zmr_10";
|
|
20658
|
-
var swiper = "_swiper_15zmr_19";
|
|
20659
|
-
var swiperSlide = "_swiperSlide_15zmr_24";
|
|
20660
|
-
var title = "_title_15zmr_34";
|
|
20661
|
-
var slide1 = "_slide1_15zmr_52";
|
|
20662
|
-
var slide5 = "_slide5_15zmr_53";
|
|
20663
|
-
var slide2 = "_slide2_15zmr_60";
|
|
20664
|
-
var slide3 = "_slide3_15zmr_61";
|
|
20665
|
-
var slide4 = "_slide4_15zmr_62";
|
|
20666
|
-
var slide6 = "_slide6_15zmr_63";
|
|
20667
|
-
var image$7 = "_image_15zmr_70";
|
|
20668
20365
|
var BackgroundSlider_module_default = {
|
|
20669
|
-
root:
|
|
20670
|
-
hero,
|
|
20671
|
-
swiper,
|
|
20672
|
-
swiperSlide,
|
|
20673
|
-
title,
|
|
20366
|
+
root: "_root_15zmr_1",
|
|
20367
|
+
hero: "_hero_15zmr_10",
|
|
20368
|
+
swiper: "_swiper_15zmr_19",
|
|
20369
|
+
swiperSlide: "_swiperSlide_15zmr_24",
|
|
20370
|
+
title: "_title_15zmr_34",
|
|
20674
20371
|
"animated-text": "_animated-text_15zmr_1",
|
|
20675
|
-
slide1,
|
|
20676
|
-
slide5,
|
|
20677
|
-
slide2,
|
|
20678
|
-
slide3,
|
|
20679
|
-
slide4,
|
|
20680
|
-
slide6,
|
|
20681
|
-
image:
|
|
20372
|
+
slide1: "_slide1_15zmr_52",
|
|
20373
|
+
slide5: "_slide5_15zmr_53",
|
|
20374
|
+
slide2: "_slide2_15zmr_60",
|
|
20375
|
+
slide3: "_slide3_15zmr_61",
|
|
20376
|
+
slide4: "_slide4_15zmr_62",
|
|
20377
|
+
slide6: "_slide6_15zmr_63",
|
|
20378
|
+
image: "_image_15zmr_70"
|
|
20682
20379
|
};
|
|
20683
20380
|
//#endregion
|
|
20684
20381
|
//#region src/components/unsorted/BackgroundSlider/BackgroundSlider.tsx
|
|
@@ -23169,2203 +22866,6 @@ var CircleParticles = () => {
|
|
|
23169
22866
|
children: particles
|
|
23170
22867
|
});
|
|
23171
22868
|
};
|
|
23172
|
-
//#endregion
|
|
23173
|
-
//#region node_modules/dat.gui/build/dat.gui.module.js
|
|
23174
|
-
/**
|
|
23175
|
-
* dat-gui JavaScript Controller Library
|
|
23176
|
-
* https://github.com/dataarts/dat.gui
|
|
23177
|
-
*
|
|
23178
|
-
* Copyright 2011 Data Arts Team, Google Creative Lab
|
|
23179
|
-
*
|
|
23180
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
23181
|
-
* you may not use this file except in compliance with the License.
|
|
23182
|
-
* You may obtain a copy of the License at
|
|
23183
|
-
*
|
|
23184
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
23185
|
-
*/
|
|
23186
|
-
function ___$insertStyle(css) {
|
|
23187
|
-
if (!css) return;
|
|
23188
|
-
if (typeof window === "undefined") return;
|
|
23189
|
-
var style = document.createElement("style");
|
|
23190
|
-
style.setAttribute("type", "text/css");
|
|
23191
|
-
style.innerHTML = css;
|
|
23192
|
-
document.head.appendChild(style);
|
|
23193
|
-
return css;
|
|
23194
|
-
}
|
|
23195
|
-
function colorToString(color, forceCSSHex) {
|
|
23196
|
-
var colorFormat = color.__state.conversionName.toString();
|
|
23197
|
-
var r = Math.round(color.r);
|
|
23198
|
-
var g = Math.round(color.g);
|
|
23199
|
-
var b = Math.round(color.b);
|
|
23200
|
-
var a = color.a;
|
|
23201
|
-
var h = Math.round(color.h);
|
|
23202
|
-
var s = color.s.toFixed(1);
|
|
23203
|
-
var v = color.v.toFixed(1);
|
|
23204
|
-
if (forceCSSHex || colorFormat === "THREE_CHAR_HEX" || colorFormat === "SIX_CHAR_HEX") {
|
|
23205
|
-
var str = color.hex.toString(16);
|
|
23206
|
-
while (str.length < 6) str = "0" + str;
|
|
23207
|
-
return "#" + str;
|
|
23208
|
-
} else if (colorFormat === "CSS_RGB") return "rgb(" + r + "," + g + "," + b + ")";
|
|
23209
|
-
else if (colorFormat === "CSS_RGBA") return "rgba(" + r + "," + g + "," + b + "," + a + ")";
|
|
23210
|
-
else if (colorFormat === "HEX") return "0x" + color.hex.toString(16);
|
|
23211
|
-
else if (colorFormat === "RGB_ARRAY") return "[" + r + "," + g + "," + b + "]";
|
|
23212
|
-
else if (colorFormat === "RGBA_ARRAY") return "[" + r + "," + g + "," + b + "," + a + "]";
|
|
23213
|
-
else if (colorFormat === "RGB_OBJ") return "{r:" + r + ",g:" + g + ",b:" + b + "}";
|
|
23214
|
-
else if (colorFormat === "RGBA_OBJ") return "{r:" + r + ",g:" + g + ",b:" + b + ",a:" + a + "}";
|
|
23215
|
-
else if (colorFormat === "HSV_OBJ") return "{h:" + h + ",s:" + s + ",v:" + v + "}";
|
|
23216
|
-
else if (colorFormat === "HSVA_OBJ") return "{h:" + h + ",s:" + s + ",v:" + v + ",a:" + a + "}";
|
|
23217
|
-
return "unknown format";
|
|
23218
|
-
}
|
|
23219
|
-
var ARR_EACH = Array.prototype.forEach;
|
|
23220
|
-
var ARR_SLICE = Array.prototype.slice;
|
|
23221
|
-
var Common = {
|
|
23222
|
-
BREAK: {},
|
|
23223
|
-
extend: function extend(target) {
|
|
23224
|
-
this.each(ARR_SLICE.call(arguments, 1), function(obj) {
|
|
23225
|
-
(this.isObject(obj) ? Object.keys(obj) : []).forEach(function(key) {
|
|
23226
|
-
if (!this.isUndefined(obj[key])) target[key] = obj[key];
|
|
23227
|
-
}.bind(this));
|
|
23228
|
-
}, this);
|
|
23229
|
-
return target;
|
|
23230
|
-
},
|
|
23231
|
-
defaults: function defaults(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(target[key])) target[key] = obj[key];
|
|
23235
|
-
}.bind(this));
|
|
23236
|
-
}, this);
|
|
23237
|
-
return target;
|
|
23238
|
-
},
|
|
23239
|
-
compose: function compose() {
|
|
23240
|
-
var toCall = ARR_SLICE.call(arguments);
|
|
23241
|
-
return function() {
|
|
23242
|
-
var args = ARR_SLICE.call(arguments);
|
|
23243
|
-
for (var i = toCall.length - 1; i >= 0; i--) args = [toCall[i].apply(this, args)];
|
|
23244
|
-
return args[0];
|
|
23245
|
-
};
|
|
23246
|
-
},
|
|
23247
|
-
each: function each(obj, itr, scope) {
|
|
23248
|
-
if (!obj) return;
|
|
23249
|
-
if (ARR_EACH && obj.forEach && obj.forEach === ARR_EACH) obj.forEach(itr, scope);
|
|
23250
|
-
else if (obj.length === obj.length + 0) {
|
|
23251
|
-
var key = void 0;
|
|
23252
|
-
var l = void 0;
|
|
23253
|
-
for (key = 0, l = obj.length; key < l; key++) if (key in obj && itr.call(scope, obj[key], key) === this.BREAK) return;
|
|
23254
|
-
} else for (var _key in obj) if (itr.call(scope, obj[_key], _key) === this.BREAK) return;
|
|
23255
|
-
},
|
|
23256
|
-
defer: function defer(fnc) {
|
|
23257
|
-
setTimeout(fnc, 0);
|
|
23258
|
-
},
|
|
23259
|
-
debounce: function debounce(func, threshold, callImmediately) {
|
|
23260
|
-
var timeout = void 0;
|
|
23261
|
-
return function() {
|
|
23262
|
-
var obj = this;
|
|
23263
|
-
var args = arguments;
|
|
23264
|
-
function delayed() {
|
|
23265
|
-
timeout = null;
|
|
23266
|
-
if (!callImmediately) func.apply(obj, args);
|
|
23267
|
-
}
|
|
23268
|
-
var callNow = callImmediately || !timeout;
|
|
23269
|
-
clearTimeout(timeout);
|
|
23270
|
-
timeout = setTimeout(delayed, threshold);
|
|
23271
|
-
if (callNow) func.apply(obj, args);
|
|
23272
|
-
};
|
|
23273
|
-
},
|
|
23274
|
-
toArray: function toArray(obj) {
|
|
23275
|
-
if (obj.toArray) return obj.toArray();
|
|
23276
|
-
return ARR_SLICE.call(obj);
|
|
23277
|
-
},
|
|
23278
|
-
isUndefined: function isUndefined(obj) {
|
|
23279
|
-
return obj === void 0;
|
|
23280
|
-
},
|
|
23281
|
-
isNull: function isNull(obj) {
|
|
23282
|
-
return obj === null;
|
|
23283
|
-
},
|
|
23284
|
-
isNaN: function(_isNaN) {
|
|
23285
|
-
function isNaN(_x) {
|
|
23286
|
-
return _isNaN.apply(this, arguments);
|
|
23287
|
-
}
|
|
23288
|
-
isNaN.toString = function() {
|
|
23289
|
-
return _isNaN.toString();
|
|
23290
|
-
};
|
|
23291
|
-
return isNaN;
|
|
23292
|
-
}(function(obj) {
|
|
23293
|
-
return isNaN(obj);
|
|
23294
|
-
}),
|
|
23295
|
-
isArray: Array.isArray || function(obj) {
|
|
23296
|
-
return obj.constructor === Array;
|
|
23297
|
-
},
|
|
23298
|
-
isObject: function isObject(obj) {
|
|
23299
|
-
return obj === Object(obj);
|
|
23300
|
-
},
|
|
23301
|
-
isNumber: function isNumber(obj) {
|
|
23302
|
-
return obj === obj + 0;
|
|
23303
|
-
},
|
|
23304
|
-
isString: function isString(obj) {
|
|
23305
|
-
return obj === obj + "";
|
|
23306
|
-
},
|
|
23307
|
-
isBoolean: function isBoolean(obj) {
|
|
23308
|
-
return obj === false || obj === true;
|
|
23309
|
-
},
|
|
23310
|
-
isFunction: function isFunction(obj) {
|
|
23311
|
-
return obj instanceof Function;
|
|
23312
|
-
}
|
|
23313
|
-
};
|
|
23314
|
-
var INTERPRETATIONS = [
|
|
23315
|
-
{
|
|
23316
|
-
litmus: Common.isString,
|
|
23317
|
-
conversions: {
|
|
23318
|
-
THREE_CHAR_HEX: {
|
|
23319
|
-
read: function read(original) {
|
|
23320
|
-
var test = original.match(/^#([A-F0-9])([A-F0-9])([A-F0-9])$/i);
|
|
23321
|
-
if (test === null) return false;
|
|
23322
|
-
return {
|
|
23323
|
-
space: "HEX",
|
|
23324
|
-
hex: parseInt("0x" + test[1].toString() + test[1].toString() + test[2].toString() + test[2].toString() + test[3].toString() + test[3].toString(), 0)
|
|
23325
|
-
};
|
|
23326
|
-
},
|
|
23327
|
-
write: colorToString
|
|
23328
|
-
},
|
|
23329
|
-
SIX_CHAR_HEX: {
|
|
23330
|
-
read: function read(original) {
|
|
23331
|
-
var test = original.match(/^#([A-F0-9]{6})$/i);
|
|
23332
|
-
if (test === null) return false;
|
|
23333
|
-
return {
|
|
23334
|
-
space: "HEX",
|
|
23335
|
-
hex: parseInt("0x" + test[1].toString(), 0)
|
|
23336
|
-
};
|
|
23337
|
-
},
|
|
23338
|
-
write: colorToString
|
|
23339
|
-
},
|
|
23340
|
-
CSS_RGB: {
|
|
23341
|
-
read: function read(original) {
|
|
23342
|
-
var test = original.match(/^rgb\(\s*(\S+)\s*,\s*(\S+)\s*,\s*(\S+)\s*\)/);
|
|
23343
|
-
if (test === null) return false;
|
|
23344
|
-
return {
|
|
23345
|
-
space: "RGB",
|
|
23346
|
-
r: parseFloat(test[1]),
|
|
23347
|
-
g: parseFloat(test[2]),
|
|
23348
|
-
b: parseFloat(test[3])
|
|
23349
|
-
};
|
|
23350
|
-
},
|
|
23351
|
-
write: colorToString
|
|
23352
|
-
},
|
|
23353
|
-
CSS_RGBA: {
|
|
23354
|
-
read: function read(original) {
|
|
23355
|
-
var test = original.match(/^rgba\(\s*(\S+)\s*,\s*(\S+)\s*,\s*(\S+)\s*,\s*(\S+)\s*\)/);
|
|
23356
|
-
if (test === null) return false;
|
|
23357
|
-
return {
|
|
23358
|
-
space: "RGB",
|
|
23359
|
-
r: parseFloat(test[1]),
|
|
23360
|
-
g: parseFloat(test[2]),
|
|
23361
|
-
b: parseFloat(test[3]),
|
|
23362
|
-
a: parseFloat(test[4])
|
|
23363
|
-
};
|
|
23364
|
-
},
|
|
23365
|
-
write: colorToString
|
|
23366
|
-
}
|
|
23367
|
-
}
|
|
23368
|
-
},
|
|
23369
|
-
{
|
|
23370
|
-
litmus: Common.isNumber,
|
|
23371
|
-
conversions: { HEX: {
|
|
23372
|
-
read: function read(original) {
|
|
23373
|
-
return {
|
|
23374
|
-
space: "HEX",
|
|
23375
|
-
hex: original,
|
|
23376
|
-
conversionName: "HEX"
|
|
23377
|
-
};
|
|
23378
|
-
},
|
|
23379
|
-
write: function write(color) {
|
|
23380
|
-
return color.hex;
|
|
23381
|
-
}
|
|
23382
|
-
} }
|
|
23383
|
-
},
|
|
23384
|
-
{
|
|
23385
|
-
litmus: Common.isArray,
|
|
23386
|
-
conversions: {
|
|
23387
|
-
RGB_ARRAY: {
|
|
23388
|
-
read: function read(original) {
|
|
23389
|
-
if (original.length !== 3) return false;
|
|
23390
|
-
return {
|
|
23391
|
-
space: "RGB",
|
|
23392
|
-
r: original[0],
|
|
23393
|
-
g: original[1],
|
|
23394
|
-
b: original[2]
|
|
23395
|
-
};
|
|
23396
|
-
},
|
|
23397
|
-
write: function write(color) {
|
|
23398
|
-
return [
|
|
23399
|
-
color.r,
|
|
23400
|
-
color.g,
|
|
23401
|
-
color.b
|
|
23402
|
-
];
|
|
23403
|
-
}
|
|
23404
|
-
},
|
|
23405
|
-
RGBA_ARRAY: {
|
|
23406
|
-
read: function read(original) {
|
|
23407
|
-
if (original.length !== 4) return false;
|
|
23408
|
-
return {
|
|
23409
|
-
space: "RGB",
|
|
23410
|
-
r: original[0],
|
|
23411
|
-
g: original[1],
|
|
23412
|
-
b: original[2],
|
|
23413
|
-
a: original[3]
|
|
23414
|
-
};
|
|
23415
|
-
},
|
|
23416
|
-
write: function write(color) {
|
|
23417
|
-
return [
|
|
23418
|
-
color.r,
|
|
23419
|
-
color.g,
|
|
23420
|
-
color.b,
|
|
23421
|
-
color.a
|
|
23422
|
-
];
|
|
23423
|
-
}
|
|
23424
|
-
}
|
|
23425
|
-
}
|
|
23426
|
-
},
|
|
23427
|
-
{
|
|
23428
|
-
litmus: Common.isObject,
|
|
23429
|
-
conversions: {
|
|
23430
|
-
RGBA_OBJ: {
|
|
23431
|
-
read: function read(original) {
|
|
23432
|
-
if (Common.isNumber(original.r) && Common.isNumber(original.g) && Common.isNumber(original.b) && Common.isNumber(original.a)) return {
|
|
23433
|
-
space: "RGB",
|
|
23434
|
-
r: original.r,
|
|
23435
|
-
g: original.g,
|
|
23436
|
-
b: original.b,
|
|
23437
|
-
a: original.a
|
|
23438
|
-
};
|
|
23439
|
-
return false;
|
|
23440
|
-
},
|
|
23441
|
-
write: function write(color) {
|
|
23442
|
-
return {
|
|
23443
|
-
r: color.r,
|
|
23444
|
-
g: color.g,
|
|
23445
|
-
b: color.b,
|
|
23446
|
-
a: color.a
|
|
23447
|
-
};
|
|
23448
|
-
}
|
|
23449
|
-
},
|
|
23450
|
-
RGB_OBJ: {
|
|
23451
|
-
read: function read(original) {
|
|
23452
|
-
if (Common.isNumber(original.r) && Common.isNumber(original.g) && Common.isNumber(original.b)) return {
|
|
23453
|
-
space: "RGB",
|
|
23454
|
-
r: original.r,
|
|
23455
|
-
g: original.g,
|
|
23456
|
-
b: original.b
|
|
23457
|
-
};
|
|
23458
|
-
return false;
|
|
23459
|
-
},
|
|
23460
|
-
write: function write(color) {
|
|
23461
|
-
return {
|
|
23462
|
-
r: color.r,
|
|
23463
|
-
g: color.g,
|
|
23464
|
-
b: color.b
|
|
23465
|
-
};
|
|
23466
|
-
}
|
|
23467
|
-
},
|
|
23468
|
-
HSVA_OBJ: {
|
|
23469
|
-
read: function read(original) {
|
|
23470
|
-
if (Common.isNumber(original.h) && Common.isNumber(original.s) && Common.isNumber(original.v) && Common.isNumber(original.a)) return {
|
|
23471
|
-
space: "HSV",
|
|
23472
|
-
h: original.h,
|
|
23473
|
-
s: original.s,
|
|
23474
|
-
v: original.v,
|
|
23475
|
-
a: original.a
|
|
23476
|
-
};
|
|
23477
|
-
return false;
|
|
23478
|
-
},
|
|
23479
|
-
write: function write(color) {
|
|
23480
|
-
return {
|
|
23481
|
-
h: color.h,
|
|
23482
|
-
s: color.s,
|
|
23483
|
-
v: color.v,
|
|
23484
|
-
a: color.a
|
|
23485
|
-
};
|
|
23486
|
-
}
|
|
23487
|
-
},
|
|
23488
|
-
HSV_OBJ: {
|
|
23489
|
-
read: function read(original) {
|
|
23490
|
-
if (Common.isNumber(original.h) && Common.isNumber(original.s) && Common.isNumber(original.v)) return {
|
|
23491
|
-
space: "HSV",
|
|
23492
|
-
h: original.h,
|
|
23493
|
-
s: original.s,
|
|
23494
|
-
v: original.v
|
|
23495
|
-
};
|
|
23496
|
-
return false;
|
|
23497
|
-
},
|
|
23498
|
-
write: function write(color) {
|
|
23499
|
-
return {
|
|
23500
|
-
h: color.h,
|
|
23501
|
-
s: color.s,
|
|
23502
|
-
v: color.v
|
|
23503
|
-
};
|
|
23504
|
-
}
|
|
23505
|
-
}
|
|
23506
|
-
}
|
|
23507
|
-
}
|
|
23508
|
-
];
|
|
23509
|
-
var result = void 0;
|
|
23510
|
-
var toReturn = void 0;
|
|
23511
|
-
var interpret = function interpret() {
|
|
23512
|
-
toReturn = false;
|
|
23513
|
-
var original = arguments.length > 1 ? Common.toArray(arguments) : arguments[0];
|
|
23514
|
-
Common.each(INTERPRETATIONS, function(family) {
|
|
23515
|
-
if (family.litmus(original)) {
|
|
23516
|
-
Common.each(family.conversions, function(conversion, conversionName) {
|
|
23517
|
-
result = conversion.read(original);
|
|
23518
|
-
if (toReturn === false && result !== false) {
|
|
23519
|
-
toReturn = result;
|
|
23520
|
-
result.conversionName = conversionName;
|
|
23521
|
-
result.conversion = conversion;
|
|
23522
|
-
return Common.BREAK;
|
|
23523
|
-
}
|
|
23524
|
-
});
|
|
23525
|
-
return Common.BREAK;
|
|
23526
|
-
}
|
|
23527
|
-
});
|
|
23528
|
-
return toReturn;
|
|
23529
|
-
};
|
|
23530
|
-
var tmpComponent = void 0;
|
|
23531
|
-
var ColorMath = {
|
|
23532
|
-
hsv_to_rgb: function hsv_to_rgb(h, s, v) {
|
|
23533
|
-
var hi = Math.floor(h / 60) % 6;
|
|
23534
|
-
var f = h / 60 - Math.floor(h / 60);
|
|
23535
|
-
var p = v * (1 - s);
|
|
23536
|
-
var q = v * (1 - f * s);
|
|
23537
|
-
var t = v * (1 - (1 - f) * s);
|
|
23538
|
-
var c = [
|
|
23539
|
-
[
|
|
23540
|
-
v,
|
|
23541
|
-
t,
|
|
23542
|
-
p
|
|
23543
|
-
],
|
|
23544
|
-
[
|
|
23545
|
-
q,
|
|
23546
|
-
v,
|
|
23547
|
-
p
|
|
23548
|
-
],
|
|
23549
|
-
[
|
|
23550
|
-
p,
|
|
23551
|
-
v,
|
|
23552
|
-
t
|
|
23553
|
-
],
|
|
23554
|
-
[
|
|
23555
|
-
p,
|
|
23556
|
-
q,
|
|
23557
|
-
v
|
|
23558
|
-
],
|
|
23559
|
-
[
|
|
23560
|
-
t,
|
|
23561
|
-
p,
|
|
23562
|
-
v
|
|
23563
|
-
],
|
|
23564
|
-
[
|
|
23565
|
-
v,
|
|
23566
|
-
p,
|
|
23567
|
-
q
|
|
23568
|
-
]
|
|
23569
|
-
][hi];
|
|
23570
|
-
return {
|
|
23571
|
-
r: c[0] * 255,
|
|
23572
|
-
g: c[1] * 255,
|
|
23573
|
-
b: c[2] * 255
|
|
23574
|
-
};
|
|
23575
|
-
},
|
|
23576
|
-
rgb_to_hsv: function rgb_to_hsv(r, g, b) {
|
|
23577
|
-
var min = Math.min(r, g, b);
|
|
23578
|
-
var max = Math.max(r, g, b);
|
|
23579
|
-
var delta = max - min;
|
|
23580
|
-
var h = void 0;
|
|
23581
|
-
var s = void 0;
|
|
23582
|
-
if (max !== 0) s = delta / max;
|
|
23583
|
-
else return {
|
|
23584
|
-
h: NaN,
|
|
23585
|
-
s: 0,
|
|
23586
|
-
v: 0
|
|
23587
|
-
};
|
|
23588
|
-
if (r === max) h = (g - b) / delta;
|
|
23589
|
-
else if (g === max) h = 2 + (b - r) / delta;
|
|
23590
|
-
else h = 4 + (r - g) / delta;
|
|
23591
|
-
h /= 6;
|
|
23592
|
-
if (h < 0) h += 1;
|
|
23593
|
-
return {
|
|
23594
|
-
h: h * 360,
|
|
23595
|
-
s,
|
|
23596
|
-
v: max / 255
|
|
23597
|
-
};
|
|
23598
|
-
},
|
|
23599
|
-
rgb_to_hex: function rgb_to_hex(r, g, b) {
|
|
23600
|
-
var hex = this.hex_with_component(0, 2, r);
|
|
23601
|
-
hex = this.hex_with_component(hex, 1, g);
|
|
23602
|
-
hex = this.hex_with_component(hex, 0, b);
|
|
23603
|
-
return hex;
|
|
23604
|
-
},
|
|
23605
|
-
component_from_hex: function component_from_hex(hex, componentIndex) {
|
|
23606
|
-
return hex >> componentIndex * 8 & 255;
|
|
23607
|
-
},
|
|
23608
|
-
hex_with_component: function hex_with_component(hex, componentIndex, value) {
|
|
23609
|
-
return value << (tmpComponent = componentIndex * 8) | hex & ~(255 << tmpComponent);
|
|
23610
|
-
}
|
|
23611
|
-
};
|
|
23612
|
-
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function(obj) {
|
|
23613
|
-
return typeof obj;
|
|
23614
|
-
} : function(obj) {
|
|
23615
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
23616
|
-
};
|
|
23617
|
-
var classCallCheck = function(instance, Constructor) {
|
|
23618
|
-
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
23619
|
-
};
|
|
23620
|
-
var createClass = function() {
|
|
23621
|
-
function defineProperties(target, props) {
|
|
23622
|
-
for (var i = 0; i < props.length; i++) {
|
|
23623
|
-
var descriptor = props[i];
|
|
23624
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
23625
|
-
descriptor.configurable = true;
|
|
23626
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
23627
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
23628
|
-
}
|
|
23629
|
-
}
|
|
23630
|
-
return function(Constructor, protoProps, staticProps) {
|
|
23631
|
-
if (protoProps) defineProperties(Constructor.prototype, protoProps);
|
|
23632
|
-
if (staticProps) defineProperties(Constructor, staticProps);
|
|
23633
|
-
return Constructor;
|
|
23634
|
-
};
|
|
23635
|
-
}();
|
|
23636
|
-
var get = function get(object, property, receiver) {
|
|
23637
|
-
if (object === null) object = Function.prototype;
|
|
23638
|
-
var desc = Object.getOwnPropertyDescriptor(object, property);
|
|
23639
|
-
if (desc === void 0) {
|
|
23640
|
-
var parent = Object.getPrototypeOf(object);
|
|
23641
|
-
if (parent === null) return;
|
|
23642
|
-
else return get(parent, property, receiver);
|
|
23643
|
-
} else if ("value" in desc) return desc.value;
|
|
23644
|
-
else {
|
|
23645
|
-
var getter = desc.get;
|
|
23646
|
-
if (getter === void 0) return;
|
|
23647
|
-
return getter.call(receiver);
|
|
23648
|
-
}
|
|
23649
|
-
};
|
|
23650
|
-
var inherits = function(subClass, superClass) {
|
|
23651
|
-
if (typeof superClass !== "function" && superClass !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
|
|
23652
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: {
|
|
23653
|
-
value: subClass,
|
|
23654
|
-
enumerable: false,
|
|
23655
|
-
writable: true,
|
|
23656
|
-
configurable: true
|
|
23657
|
-
} });
|
|
23658
|
-
if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
|
|
23659
|
-
};
|
|
23660
|
-
var possibleConstructorReturn = function(self, call) {
|
|
23661
|
-
if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
23662
|
-
return call && (typeof call === "object" || typeof call === "function") ? call : self;
|
|
23663
|
-
};
|
|
23664
|
-
var Color = function() {
|
|
23665
|
-
function Color() {
|
|
23666
|
-
classCallCheck(this, Color);
|
|
23667
|
-
this.__state = interpret.apply(this, arguments);
|
|
23668
|
-
if (this.__state === false) throw new Error("Failed to interpret color arguments");
|
|
23669
|
-
this.__state.a = this.__state.a || 1;
|
|
23670
|
-
}
|
|
23671
|
-
createClass(Color, [
|
|
23672
|
-
{
|
|
23673
|
-
key: "toString",
|
|
23674
|
-
value: function toString() {
|
|
23675
|
-
return colorToString(this);
|
|
23676
|
-
}
|
|
23677
|
-
},
|
|
23678
|
-
{
|
|
23679
|
-
key: "toHexString",
|
|
23680
|
-
value: function toHexString() {
|
|
23681
|
-
return colorToString(this, true);
|
|
23682
|
-
}
|
|
23683
|
-
},
|
|
23684
|
-
{
|
|
23685
|
-
key: "toOriginal",
|
|
23686
|
-
value: function toOriginal() {
|
|
23687
|
-
return this.__state.conversion.write(this);
|
|
23688
|
-
}
|
|
23689
|
-
}
|
|
23690
|
-
]);
|
|
23691
|
-
return Color;
|
|
23692
|
-
}();
|
|
23693
|
-
function defineRGBComponent(target, component, componentHexIndex) {
|
|
23694
|
-
Object.defineProperty(target, component, {
|
|
23695
|
-
get: function get$$1() {
|
|
23696
|
-
if (this.__state.space === "RGB") return this.__state[component];
|
|
23697
|
-
Color.recalculateRGB(this, component, componentHexIndex);
|
|
23698
|
-
return this.__state[component];
|
|
23699
|
-
},
|
|
23700
|
-
set: function set$$1(v) {
|
|
23701
|
-
if (this.__state.space !== "RGB") {
|
|
23702
|
-
Color.recalculateRGB(this, component, componentHexIndex);
|
|
23703
|
-
this.__state.space = "RGB";
|
|
23704
|
-
}
|
|
23705
|
-
this.__state[component] = v;
|
|
23706
|
-
}
|
|
23707
|
-
});
|
|
23708
|
-
}
|
|
23709
|
-
function defineHSVComponent(target, component) {
|
|
23710
|
-
Object.defineProperty(target, component, {
|
|
23711
|
-
get: function get$$1() {
|
|
23712
|
-
if (this.__state.space === "HSV") return this.__state[component];
|
|
23713
|
-
Color.recalculateHSV(this);
|
|
23714
|
-
return this.__state[component];
|
|
23715
|
-
},
|
|
23716
|
-
set: function set$$1(v) {
|
|
23717
|
-
if (this.__state.space !== "HSV") {
|
|
23718
|
-
Color.recalculateHSV(this);
|
|
23719
|
-
this.__state.space = "HSV";
|
|
23720
|
-
}
|
|
23721
|
-
this.__state[component] = v;
|
|
23722
|
-
}
|
|
23723
|
-
});
|
|
23724
|
-
}
|
|
23725
|
-
Color.recalculateRGB = function(color, component, componentHexIndex) {
|
|
23726
|
-
if (color.__state.space === "HEX") color.__state[component] = ColorMath.component_from_hex(color.__state.hex, componentHexIndex);
|
|
23727
|
-
else if (color.__state.space === "HSV") Common.extend(color.__state, ColorMath.hsv_to_rgb(color.__state.h, color.__state.s, color.__state.v));
|
|
23728
|
-
else throw new Error("Corrupted color state");
|
|
23729
|
-
};
|
|
23730
|
-
Color.recalculateHSV = function(color) {
|
|
23731
|
-
var result = ColorMath.rgb_to_hsv(color.r, color.g, color.b);
|
|
23732
|
-
Common.extend(color.__state, {
|
|
23733
|
-
s: result.s,
|
|
23734
|
-
v: result.v
|
|
23735
|
-
});
|
|
23736
|
-
if (!Common.isNaN(result.h)) color.__state.h = result.h;
|
|
23737
|
-
else if (Common.isUndefined(color.__state.h)) color.__state.h = 0;
|
|
23738
|
-
};
|
|
23739
|
-
Color.COMPONENTS = [
|
|
23740
|
-
"r",
|
|
23741
|
-
"g",
|
|
23742
|
-
"b",
|
|
23743
|
-
"h",
|
|
23744
|
-
"s",
|
|
23745
|
-
"v",
|
|
23746
|
-
"hex",
|
|
23747
|
-
"a"
|
|
23748
|
-
];
|
|
23749
|
-
defineRGBComponent(Color.prototype, "r", 2);
|
|
23750
|
-
defineRGBComponent(Color.prototype, "g", 1);
|
|
23751
|
-
defineRGBComponent(Color.prototype, "b", 0);
|
|
23752
|
-
defineHSVComponent(Color.prototype, "h");
|
|
23753
|
-
defineHSVComponent(Color.prototype, "s");
|
|
23754
|
-
defineHSVComponent(Color.prototype, "v");
|
|
23755
|
-
Object.defineProperty(Color.prototype, "a", {
|
|
23756
|
-
get: function get$$1() {
|
|
23757
|
-
return this.__state.a;
|
|
23758
|
-
},
|
|
23759
|
-
set: function set$$1(v) {
|
|
23760
|
-
this.__state.a = v;
|
|
23761
|
-
}
|
|
23762
|
-
});
|
|
23763
|
-
Object.defineProperty(Color.prototype, "hex", {
|
|
23764
|
-
get: function get$$1() {
|
|
23765
|
-
if (this.__state.space !== "HEX") {
|
|
23766
|
-
this.__state.hex = ColorMath.rgb_to_hex(this.r, this.g, this.b);
|
|
23767
|
-
this.__state.space = "HEX";
|
|
23768
|
-
}
|
|
23769
|
-
return this.__state.hex;
|
|
23770
|
-
},
|
|
23771
|
-
set: function set$$1(v) {
|
|
23772
|
-
this.__state.space = "HEX";
|
|
23773
|
-
this.__state.hex = v;
|
|
23774
|
-
}
|
|
23775
|
-
});
|
|
23776
|
-
var Controller = function() {
|
|
23777
|
-
function Controller(object, property) {
|
|
23778
|
-
classCallCheck(this, Controller);
|
|
23779
|
-
this.initialValue = object[property];
|
|
23780
|
-
this.domElement = document.createElement("div");
|
|
23781
|
-
this.object = object;
|
|
23782
|
-
this.property = property;
|
|
23783
|
-
this.__onChange = void 0;
|
|
23784
|
-
this.__onFinishChange = void 0;
|
|
23785
|
-
}
|
|
23786
|
-
createClass(Controller, [
|
|
23787
|
-
{
|
|
23788
|
-
key: "onChange",
|
|
23789
|
-
value: function onChange(fnc) {
|
|
23790
|
-
this.__onChange = fnc;
|
|
23791
|
-
return this;
|
|
23792
|
-
}
|
|
23793
|
-
},
|
|
23794
|
-
{
|
|
23795
|
-
key: "onFinishChange",
|
|
23796
|
-
value: function onFinishChange(fnc) {
|
|
23797
|
-
this.__onFinishChange = fnc;
|
|
23798
|
-
return this;
|
|
23799
|
-
}
|
|
23800
|
-
},
|
|
23801
|
-
{
|
|
23802
|
-
key: "setValue",
|
|
23803
|
-
value: function setValue(newValue) {
|
|
23804
|
-
this.object[this.property] = newValue;
|
|
23805
|
-
if (this.__onChange) this.__onChange.call(this, newValue);
|
|
23806
|
-
this.updateDisplay();
|
|
23807
|
-
return this;
|
|
23808
|
-
}
|
|
23809
|
-
},
|
|
23810
|
-
{
|
|
23811
|
-
key: "getValue",
|
|
23812
|
-
value: function getValue() {
|
|
23813
|
-
return this.object[this.property];
|
|
23814
|
-
}
|
|
23815
|
-
},
|
|
23816
|
-
{
|
|
23817
|
-
key: "updateDisplay",
|
|
23818
|
-
value: function updateDisplay() {
|
|
23819
|
-
return this;
|
|
23820
|
-
}
|
|
23821
|
-
},
|
|
23822
|
-
{
|
|
23823
|
-
key: "isModified",
|
|
23824
|
-
value: function isModified() {
|
|
23825
|
-
return this.initialValue !== this.getValue();
|
|
23826
|
-
}
|
|
23827
|
-
}
|
|
23828
|
-
]);
|
|
23829
|
-
return Controller;
|
|
23830
|
-
}();
|
|
23831
|
-
var EVENT_MAP = {
|
|
23832
|
-
HTMLEvents: ["change"],
|
|
23833
|
-
MouseEvents: [
|
|
23834
|
-
"click",
|
|
23835
|
-
"mousemove",
|
|
23836
|
-
"mousedown",
|
|
23837
|
-
"mouseup",
|
|
23838
|
-
"mouseover"
|
|
23839
|
-
],
|
|
23840
|
-
KeyboardEvents: ["keydown"]
|
|
23841
|
-
};
|
|
23842
|
-
var EVENT_MAP_INV = {};
|
|
23843
|
-
Common.each(EVENT_MAP, function(v, k) {
|
|
23844
|
-
Common.each(v, function(e) {
|
|
23845
|
-
EVENT_MAP_INV[e] = k;
|
|
23846
|
-
});
|
|
23847
|
-
});
|
|
23848
|
-
var CSS_VALUE_PIXELS = /(\d+(\.\d+)?)px/;
|
|
23849
|
-
function cssValueToPixels(val) {
|
|
23850
|
-
if (val === "0" || Common.isUndefined(val)) return 0;
|
|
23851
|
-
var match = val.match(CSS_VALUE_PIXELS);
|
|
23852
|
-
if (!Common.isNull(match)) return parseFloat(match[1]);
|
|
23853
|
-
return 0;
|
|
23854
|
-
}
|
|
23855
|
-
var dom = {
|
|
23856
|
-
makeSelectable: function makeSelectable(elem, selectable) {
|
|
23857
|
-
if (elem === void 0 || elem.style === void 0) return;
|
|
23858
|
-
elem.onselectstart = selectable ? function() {
|
|
23859
|
-
return false;
|
|
23860
|
-
} : function() {};
|
|
23861
|
-
elem.style.MozUserSelect = selectable ? "auto" : "none";
|
|
23862
|
-
elem.style.KhtmlUserSelect = selectable ? "auto" : "none";
|
|
23863
|
-
elem.unselectable = selectable ? "on" : "off";
|
|
23864
|
-
},
|
|
23865
|
-
makeFullscreen: function makeFullscreen(elem, hor, vert) {
|
|
23866
|
-
var vertical = vert;
|
|
23867
|
-
var horizontal = hor;
|
|
23868
|
-
if (Common.isUndefined(horizontal)) horizontal = true;
|
|
23869
|
-
if (Common.isUndefined(vertical)) vertical = true;
|
|
23870
|
-
elem.style.position = "absolute";
|
|
23871
|
-
if (horizontal) {
|
|
23872
|
-
elem.style.left = 0;
|
|
23873
|
-
elem.style.right = 0;
|
|
23874
|
-
}
|
|
23875
|
-
if (vertical) {
|
|
23876
|
-
elem.style.top = 0;
|
|
23877
|
-
elem.style.bottom = 0;
|
|
23878
|
-
}
|
|
23879
|
-
},
|
|
23880
|
-
fakeEvent: function fakeEvent(elem, eventType, pars, aux) {
|
|
23881
|
-
var params = pars || {};
|
|
23882
|
-
var className = EVENT_MAP_INV[eventType];
|
|
23883
|
-
if (!className) throw new Error("Event type " + eventType + " not supported.");
|
|
23884
|
-
var evt = document.createEvent(className);
|
|
23885
|
-
switch (className) {
|
|
23886
|
-
case "MouseEvents":
|
|
23887
|
-
var clientX = params.x || params.clientX || 0;
|
|
23888
|
-
var clientY = params.y || params.clientY || 0;
|
|
23889
|
-
evt.initMouseEvent(eventType, params.bubbles || false, params.cancelable || true, window, params.clickCount || 1, 0, 0, clientX, clientY, false, false, false, false, 0, null);
|
|
23890
|
-
break;
|
|
23891
|
-
case "KeyboardEvents":
|
|
23892
|
-
var init = evt.initKeyboardEvent || evt.initKeyEvent;
|
|
23893
|
-
Common.defaults(params, {
|
|
23894
|
-
cancelable: true,
|
|
23895
|
-
ctrlKey: false,
|
|
23896
|
-
altKey: false,
|
|
23897
|
-
shiftKey: false,
|
|
23898
|
-
metaKey: false,
|
|
23899
|
-
keyCode: void 0,
|
|
23900
|
-
charCode: void 0
|
|
23901
|
-
});
|
|
23902
|
-
init(eventType, params.bubbles || false, params.cancelable, window, params.ctrlKey, params.altKey, params.shiftKey, params.metaKey, params.keyCode, params.charCode);
|
|
23903
|
-
break;
|
|
23904
|
-
default:
|
|
23905
|
-
evt.initEvent(eventType, params.bubbles || false, params.cancelable || true);
|
|
23906
|
-
break;
|
|
23907
|
-
}
|
|
23908
|
-
Common.defaults(evt, aux);
|
|
23909
|
-
elem.dispatchEvent(evt);
|
|
23910
|
-
},
|
|
23911
|
-
bind: function bind(elem, event, func, newBool) {
|
|
23912
|
-
var bool = newBool || false;
|
|
23913
|
-
if (elem.addEventListener) elem.addEventListener(event, func, bool);
|
|
23914
|
-
else if (elem.attachEvent) elem.attachEvent("on" + event, func);
|
|
23915
|
-
return dom;
|
|
23916
|
-
},
|
|
23917
|
-
unbind: function unbind(elem, event, func, newBool) {
|
|
23918
|
-
var bool = newBool || false;
|
|
23919
|
-
if (elem.removeEventListener) elem.removeEventListener(event, func, bool);
|
|
23920
|
-
else if (elem.detachEvent) elem.detachEvent("on" + event, func);
|
|
23921
|
-
return dom;
|
|
23922
|
-
},
|
|
23923
|
-
addClass: function addClass(elem, className) {
|
|
23924
|
-
if (elem.className === void 0) elem.className = className;
|
|
23925
|
-
else if (elem.className !== className) {
|
|
23926
|
-
var classes = elem.className.split(/ +/);
|
|
23927
|
-
if (classes.indexOf(className) === -1) {
|
|
23928
|
-
classes.push(className);
|
|
23929
|
-
elem.className = classes.join(" ").replace(/^\s+/, "").replace(/\s+$/, "");
|
|
23930
|
-
}
|
|
23931
|
-
}
|
|
23932
|
-
return dom;
|
|
23933
|
-
},
|
|
23934
|
-
removeClass: function removeClass(elem, className) {
|
|
23935
|
-
if (className) if (elem.className === className) elem.removeAttribute("class");
|
|
23936
|
-
else {
|
|
23937
|
-
var classes = elem.className.split(/ +/);
|
|
23938
|
-
var index = classes.indexOf(className);
|
|
23939
|
-
if (index !== -1) {
|
|
23940
|
-
classes.splice(index, 1);
|
|
23941
|
-
elem.className = classes.join(" ");
|
|
23942
|
-
}
|
|
23943
|
-
}
|
|
23944
|
-
else elem.className = void 0;
|
|
23945
|
-
return dom;
|
|
23946
|
-
},
|
|
23947
|
-
hasClass: function hasClass(elem, className) {
|
|
23948
|
-
return new RegExp("(?:^|\\s+)" + className + "(?:\\s+|$)").test(elem.className) || false;
|
|
23949
|
-
},
|
|
23950
|
-
getWidth: function getWidth(elem) {
|
|
23951
|
-
var style = getComputedStyle(elem);
|
|
23952
|
-
return cssValueToPixels(style["border-left-width"]) + cssValueToPixels(style["border-right-width"]) + cssValueToPixels(style["padding-left"]) + cssValueToPixels(style["padding-right"]) + cssValueToPixels(style.width);
|
|
23953
|
-
},
|
|
23954
|
-
getHeight: function getHeight(elem) {
|
|
23955
|
-
var style = getComputedStyle(elem);
|
|
23956
|
-
return cssValueToPixels(style["border-top-width"]) + cssValueToPixels(style["border-bottom-width"]) + cssValueToPixels(style["padding-top"]) + cssValueToPixels(style["padding-bottom"]) + cssValueToPixels(style.height);
|
|
23957
|
-
},
|
|
23958
|
-
getOffset: function getOffset(el) {
|
|
23959
|
-
var elem = el;
|
|
23960
|
-
var offset = {
|
|
23961
|
-
left: 0,
|
|
23962
|
-
top: 0
|
|
23963
|
-
};
|
|
23964
|
-
if (elem.offsetParent) do {
|
|
23965
|
-
offset.left += elem.offsetLeft;
|
|
23966
|
-
offset.top += elem.offsetTop;
|
|
23967
|
-
elem = elem.offsetParent;
|
|
23968
|
-
} while (elem);
|
|
23969
|
-
return offset;
|
|
23970
|
-
},
|
|
23971
|
-
isActive: function isActive(elem) {
|
|
23972
|
-
return elem === document.activeElement && (elem.type || elem.href);
|
|
23973
|
-
}
|
|
23974
|
-
};
|
|
23975
|
-
var BooleanController = function(_Controller) {
|
|
23976
|
-
inherits(BooleanController, _Controller);
|
|
23977
|
-
function BooleanController(object, property) {
|
|
23978
|
-
classCallCheck(this, BooleanController);
|
|
23979
|
-
var _this2 = possibleConstructorReturn(this, (BooleanController.__proto__ || Object.getPrototypeOf(BooleanController)).call(this, object, property));
|
|
23980
|
-
var _this = _this2;
|
|
23981
|
-
_this2.__prev = _this2.getValue();
|
|
23982
|
-
_this2.__checkbox = document.createElement("input");
|
|
23983
|
-
_this2.__checkbox.setAttribute("type", "checkbox");
|
|
23984
|
-
function onChange() {
|
|
23985
|
-
_this.setValue(!_this.__prev);
|
|
23986
|
-
}
|
|
23987
|
-
dom.bind(_this2.__checkbox, "change", onChange, false);
|
|
23988
|
-
_this2.domElement.appendChild(_this2.__checkbox);
|
|
23989
|
-
_this2.updateDisplay();
|
|
23990
|
-
return _this2;
|
|
23991
|
-
}
|
|
23992
|
-
createClass(BooleanController, [{
|
|
23993
|
-
key: "setValue",
|
|
23994
|
-
value: function setValue(v) {
|
|
23995
|
-
var toReturn = get(BooleanController.prototype.__proto__ || Object.getPrototypeOf(BooleanController.prototype), "setValue", this).call(this, v);
|
|
23996
|
-
if (this.__onFinishChange) this.__onFinishChange.call(this, this.getValue());
|
|
23997
|
-
this.__prev = this.getValue();
|
|
23998
|
-
return toReturn;
|
|
23999
|
-
}
|
|
24000
|
-
}, {
|
|
24001
|
-
key: "updateDisplay",
|
|
24002
|
-
value: function updateDisplay() {
|
|
24003
|
-
if (this.getValue() === true) {
|
|
24004
|
-
this.__checkbox.setAttribute("checked", "checked");
|
|
24005
|
-
this.__checkbox.checked = true;
|
|
24006
|
-
this.__prev = true;
|
|
24007
|
-
} else {
|
|
24008
|
-
this.__checkbox.checked = false;
|
|
24009
|
-
this.__prev = false;
|
|
24010
|
-
}
|
|
24011
|
-
return get(BooleanController.prototype.__proto__ || Object.getPrototypeOf(BooleanController.prototype), "updateDisplay", this).call(this);
|
|
24012
|
-
}
|
|
24013
|
-
}]);
|
|
24014
|
-
return BooleanController;
|
|
24015
|
-
}(Controller);
|
|
24016
|
-
var OptionController = function(_Controller) {
|
|
24017
|
-
inherits(OptionController, _Controller);
|
|
24018
|
-
function OptionController(object, property, opts) {
|
|
24019
|
-
classCallCheck(this, OptionController);
|
|
24020
|
-
var _this2 = possibleConstructorReturn(this, (OptionController.__proto__ || Object.getPrototypeOf(OptionController)).call(this, object, property));
|
|
24021
|
-
var options = opts;
|
|
24022
|
-
var _this = _this2;
|
|
24023
|
-
_this2.__select = document.createElement("select");
|
|
24024
|
-
if (Common.isArray(options)) {
|
|
24025
|
-
var map = {};
|
|
24026
|
-
Common.each(options, function(element) {
|
|
24027
|
-
map[element] = element;
|
|
24028
|
-
});
|
|
24029
|
-
options = map;
|
|
24030
|
-
}
|
|
24031
|
-
Common.each(options, function(value, key) {
|
|
24032
|
-
var opt = document.createElement("option");
|
|
24033
|
-
opt.innerHTML = key;
|
|
24034
|
-
opt.setAttribute("value", value);
|
|
24035
|
-
_this.__select.appendChild(opt);
|
|
24036
|
-
});
|
|
24037
|
-
_this2.updateDisplay();
|
|
24038
|
-
dom.bind(_this2.__select, "change", function() {
|
|
24039
|
-
var desiredValue = this.options[this.selectedIndex].value;
|
|
24040
|
-
_this.setValue(desiredValue);
|
|
24041
|
-
});
|
|
24042
|
-
_this2.domElement.appendChild(_this2.__select);
|
|
24043
|
-
return _this2;
|
|
24044
|
-
}
|
|
24045
|
-
createClass(OptionController, [{
|
|
24046
|
-
key: "setValue",
|
|
24047
|
-
value: function setValue(v) {
|
|
24048
|
-
var toReturn = get(OptionController.prototype.__proto__ || Object.getPrototypeOf(OptionController.prototype), "setValue", this).call(this, v);
|
|
24049
|
-
if (this.__onFinishChange) this.__onFinishChange.call(this, this.getValue());
|
|
24050
|
-
return toReturn;
|
|
24051
|
-
}
|
|
24052
|
-
}, {
|
|
24053
|
-
key: "updateDisplay",
|
|
24054
|
-
value: function updateDisplay() {
|
|
24055
|
-
if (dom.isActive(this.__select)) return this;
|
|
24056
|
-
this.__select.value = this.getValue();
|
|
24057
|
-
return get(OptionController.prototype.__proto__ || Object.getPrototypeOf(OptionController.prototype), "updateDisplay", this).call(this);
|
|
24058
|
-
}
|
|
24059
|
-
}]);
|
|
24060
|
-
return OptionController;
|
|
24061
|
-
}(Controller);
|
|
24062
|
-
var StringController = function(_Controller) {
|
|
24063
|
-
inherits(StringController, _Controller);
|
|
24064
|
-
function StringController(object, property) {
|
|
24065
|
-
classCallCheck(this, StringController);
|
|
24066
|
-
var _this2 = possibleConstructorReturn(this, (StringController.__proto__ || Object.getPrototypeOf(StringController)).call(this, object, property));
|
|
24067
|
-
var _this = _this2;
|
|
24068
|
-
function onChange() {
|
|
24069
|
-
_this.setValue(_this.__input.value);
|
|
24070
|
-
}
|
|
24071
|
-
function onBlur() {
|
|
24072
|
-
if (_this.__onFinishChange) _this.__onFinishChange.call(_this, _this.getValue());
|
|
24073
|
-
}
|
|
24074
|
-
_this2.__input = document.createElement("input");
|
|
24075
|
-
_this2.__input.setAttribute("type", "text");
|
|
24076
|
-
dom.bind(_this2.__input, "keyup", onChange);
|
|
24077
|
-
dom.bind(_this2.__input, "change", onChange);
|
|
24078
|
-
dom.bind(_this2.__input, "blur", onBlur);
|
|
24079
|
-
dom.bind(_this2.__input, "keydown", function(e) {
|
|
24080
|
-
if (e.keyCode === 13) this.blur();
|
|
24081
|
-
});
|
|
24082
|
-
_this2.updateDisplay();
|
|
24083
|
-
_this2.domElement.appendChild(_this2.__input);
|
|
24084
|
-
return _this2;
|
|
24085
|
-
}
|
|
24086
|
-
createClass(StringController, [{
|
|
24087
|
-
key: "updateDisplay",
|
|
24088
|
-
value: function updateDisplay() {
|
|
24089
|
-
if (!dom.isActive(this.__input)) this.__input.value = this.getValue();
|
|
24090
|
-
return get(StringController.prototype.__proto__ || Object.getPrototypeOf(StringController.prototype), "updateDisplay", this).call(this);
|
|
24091
|
-
}
|
|
24092
|
-
}]);
|
|
24093
|
-
return StringController;
|
|
24094
|
-
}(Controller);
|
|
24095
|
-
function numDecimals(x) {
|
|
24096
|
-
var _x = x.toString();
|
|
24097
|
-
if (_x.indexOf(".") > -1) return _x.length - _x.indexOf(".") - 1;
|
|
24098
|
-
return 0;
|
|
24099
|
-
}
|
|
24100
|
-
var NumberController = function(_Controller) {
|
|
24101
|
-
inherits(NumberController, _Controller);
|
|
24102
|
-
function NumberController(object, property, params) {
|
|
24103
|
-
classCallCheck(this, NumberController);
|
|
24104
|
-
var _this = possibleConstructorReturn(this, (NumberController.__proto__ || Object.getPrototypeOf(NumberController)).call(this, object, property));
|
|
24105
|
-
var _params = params || {};
|
|
24106
|
-
_this.__min = _params.min;
|
|
24107
|
-
_this.__max = _params.max;
|
|
24108
|
-
_this.__step = _params.step;
|
|
24109
|
-
if (Common.isUndefined(_this.__step)) if (_this.initialValue === 0) _this.__impliedStep = 1;
|
|
24110
|
-
else _this.__impliedStep = Math.pow(10, Math.floor(Math.log(Math.abs(_this.initialValue)) / Math.LN10)) / 10;
|
|
24111
|
-
else _this.__impliedStep = _this.__step;
|
|
24112
|
-
_this.__precision = numDecimals(_this.__impliedStep);
|
|
24113
|
-
return _this;
|
|
24114
|
-
}
|
|
24115
|
-
createClass(NumberController, [
|
|
24116
|
-
{
|
|
24117
|
-
key: "setValue",
|
|
24118
|
-
value: function setValue(v) {
|
|
24119
|
-
var _v = v;
|
|
24120
|
-
if (this.__min !== void 0 && _v < this.__min) _v = this.__min;
|
|
24121
|
-
else if (this.__max !== void 0 && _v > this.__max) _v = this.__max;
|
|
24122
|
-
if (this.__step !== void 0 && _v % this.__step !== 0) _v = Math.round(_v / this.__step) * this.__step;
|
|
24123
|
-
return get(NumberController.prototype.__proto__ || Object.getPrototypeOf(NumberController.prototype), "setValue", this).call(this, _v);
|
|
24124
|
-
}
|
|
24125
|
-
},
|
|
24126
|
-
{
|
|
24127
|
-
key: "min",
|
|
24128
|
-
value: function min(minValue) {
|
|
24129
|
-
this.__min = minValue;
|
|
24130
|
-
return this;
|
|
24131
|
-
}
|
|
24132
|
-
},
|
|
24133
|
-
{
|
|
24134
|
-
key: "max",
|
|
24135
|
-
value: function max(maxValue) {
|
|
24136
|
-
this.__max = maxValue;
|
|
24137
|
-
return this;
|
|
24138
|
-
}
|
|
24139
|
-
},
|
|
24140
|
-
{
|
|
24141
|
-
key: "step",
|
|
24142
|
-
value: function step(stepValue) {
|
|
24143
|
-
this.__step = stepValue;
|
|
24144
|
-
this.__impliedStep = stepValue;
|
|
24145
|
-
this.__precision = numDecimals(stepValue);
|
|
24146
|
-
return this;
|
|
24147
|
-
}
|
|
24148
|
-
}
|
|
24149
|
-
]);
|
|
24150
|
-
return NumberController;
|
|
24151
|
-
}(Controller);
|
|
24152
|
-
function roundToDecimal(value, decimals) {
|
|
24153
|
-
var tenTo = Math.pow(10, decimals);
|
|
24154
|
-
return Math.round(value * tenTo) / tenTo;
|
|
24155
|
-
}
|
|
24156
|
-
var NumberControllerBox = function(_NumberController) {
|
|
24157
|
-
inherits(NumberControllerBox, _NumberController);
|
|
24158
|
-
function NumberControllerBox(object, property, params) {
|
|
24159
|
-
classCallCheck(this, NumberControllerBox);
|
|
24160
|
-
var _this2 = possibleConstructorReturn(this, (NumberControllerBox.__proto__ || Object.getPrototypeOf(NumberControllerBox)).call(this, object, property, params));
|
|
24161
|
-
_this2.__truncationSuspended = false;
|
|
24162
|
-
var _this = _this2;
|
|
24163
|
-
var prevY = void 0;
|
|
24164
|
-
function onChange() {
|
|
24165
|
-
var attempted = parseFloat(_this.__input.value);
|
|
24166
|
-
if (!Common.isNaN(attempted)) _this.setValue(attempted);
|
|
24167
|
-
}
|
|
24168
|
-
function onFinish() {
|
|
24169
|
-
if (_this.__onFinishChange) _this.__onFinishChange.call(_this, _this.getValue());
|
|
24170
|
-
}
|
|
24171
|
-
function onBlur() {
|
|
24172
|
-
onFinish();
|
|
24173
|
-
}
|
|
24174
|
-
function onMouseDrag(e) {
|
|
24175
|
-
var diff = prevY - e.clientY;
|
|
24176
|
-
_this.setValue(_this.getValue() + diff * _this.__impliedStep);
|
|
24177
|
-
prevY = e.clientY;
|
|
24178
|
-
}
|
|
24179
|
-
function onMouseUp() {
|
|
24180
|
-
dom.unbind(window, "mousemove", onMouseDrag);
|
|
24181
|
-
dom.unbind(window, "mouseup", onMouseUp);
|
|
24182
|
-
onFinish();
|
|
24183
|
-
}
|
|
24184
|
-
function onMouseDown(e) {
|
|
24185
|
-
dom.bind(window, "mousemove", onMouseDrag);
|
|
24186
|
-
dom.bind(window, "mouseup", onMouseUp);
|
|
24187
|
-
prevY = e.clientY;
|
|
24188
|
-
}
|
|
24189
|
-
_this2.__input = document.createElement("input");
|
|
24190
|
-
_this2.__input.setAttribute("type", "text");
|
|
24191
|
-
dom.bind(_this2.__input, "change", onChange);
|
|
24192
|
-
dom.bind(_this2.__input, "blur", onBlur);
|
|
24193
|
-
dom.bind(_this2.__input, "mousedown", onMouseDown);
|
|
24194
|
-
dom.bind(_this2.__input, "keydown", function(e) {
|
|
24195
|
-
if (e.keyCode === 13) {
|
|
24196
|
-
_this.__truncationSuspended = true;
|
|
24197
|
-
this.blur();
|
|
24198
|
-
_this.__truncationSuspended = false;
|
|
24199
|
-
onFinish();
|
|
24200
|
-
}
|
|
24201
|
-
});
|
|
24202
|
-
_this2.updateDisplay();
|
|
24203
|
-
_this2.domElement.appendChild(_this2.__input);
|
|
24204
|
-
return _this2;
|
|
24205
|
-
}
|
|
24206
|
-
createClass(NumberControllerBox, [{
|
|
24207
|
-
key: "updateDisplay",
|
|
24208
|
-
value: function updateDisplay() {
|
|
24209
|
-
this.__input.value = this.__truncationSuspended ? this.getValue() : roundToDecimal(this.getValue(), this.__precision);
|
|
24210
|
-
return get(NumberControllerBox.prototype.__proto__ || Object.getPrototypeOf(NumberControllerBox.prototype), "updateDisplay", this).call(this);
|
|
24211
|
-
}
|
|
24212
|
-
}]);
|
|
24213
|
-
return NumberControllerBox;
|
|
24214
|
-
}(NumberController);
|
|
24215
|
-
function map(v, i1, i2, o1, o2) {
|
|
24216
|
-
return o1 + (o2 - o1) * ((v - i1) / (i2 - i1));
|
|
24217
|
-
}
|
|
24218
|
-
var NumberControllerSlider = function(_NumberController) {
|
|
24219
|
-
inherits(NumberControllerSlider, _NumberController);
|
|
24220
|
-
function NumberControllerSlider(object, property, min, max, step) {
|
|
24221
|
-
classCallCheck(this, NumberControllerSlider);
|
|
24222
|
-
var _this2 = possibleConstructorReturn(this, (NumberControllerSlider.__proto__ || Object.getPrototypeOf(NumberControllerSlider)).call(this, object, property, {
|
|
24223
|
-
min,
|
|
24224
|
-
max,
|
|
24225
|
-
step
|
|
24226
|
-
}));
|
|
24227
|
-
var _this = _this2;
|
|
24228
|
-
_this2.__background = document.createElement("div");
|
|
24229
|
-
_this2.__foreground = document.createElement("div");
|
|
24230
|
-
dom.bind(_this2.__background, "mousedown", onMouseDown);
|
|
24231
|
-
dom.bind(_this2.__background, "touchstart", onTouchStart);
|
|
24232
|
-
dom.addClass(_this2.__background, "slider");
|
|
24233
|
-
dom.addClass(_this2.__foreground, "slider-fg");
|
|
24234
|
-
function onMouseDown(e) {
|
|
24235
|
-
document.activeElement.blur();
|
|
24236
|
-
dom.bind(window, "mousemove", onMouseDrag);
|
|
24237
|
-
dom.bind(window, "mouseup", onMouseUp);
|
|
24238
|
-
onMouseDrag(e);
|
|
24239
|
-
}
|
|
24240
|
-
function onMouseDrag(e) {
|
|
24241
|
-
e.preventDefault();
|
|
24242
|
-
var bgRect = _this.__background.getBoundingClientRect();
|
|
24243
|
-
_this.setValue(map(e.clientX, bgRect.left, bgRect.right, _this.__min, _this.__max));
|
|
24244
|
-
return false;
|
|
24245
|
-
}
|
|
24246
|
-
function onMouseUp() {
|
|
24247
|
-
dom.unbind(window, "mousemove", onMouseDrag);
|
|
24248
|
-
dom.unbind(window, "mouseup", onMouseUp);
|
|
24249
|
-
if (_this.__onFinishChange) _this.__onFinishChange.call(_this, _this.getValue());
|
|
24250
|
-
}
|
|
24251
|
-
function onTouchStart(e) {
|
|
24252
|
-
if (e.touches.length !== 1) return;
|
|
24253
|
-
dom.bind(window, "touchmove", onTouchMove);
|
|
24254
|
-
dom.bind(window, "touchend", onTouchEnd);
|
|
24255
|
-
onTouchMove(e);
|
|
24256
|
-
}
|
|
24257
|
-
function onTouchMove(e) {
|
|
24258
|
-
var clientX = e.touches[0].clientX;
|
|
24259
|
-
var bgRect = _this.__background.getBoundingClientRect();
|
|
24260
|
-
_this.setValue(map(clientX, bgRect.left, bgRect.right, _this.__min, _this.__max));
|
|
24261
|
-
}
|
|
24262
|
-
function onTouchEnd() {
|
|
24263
|
-
dom.unbind(window, "touchmove", onTouchMove);
|
|
24264
|
-
dom.unbind(window, "touchend", onTouchEnd);
|
|
24265
|
-
if (_this.__onFinishChange) _this.__onFinishChange.call(_this, _this.getValue());
|
|
24266
|
-
}
|
|
24267
|
-
_this2.updateDisplay();
|
|
24268
|
-
_this2.__background.appendChild(_this2.__foreground);
|
|
24269
|
-
_this2.domElement.appendChild(_this2.__background);
|
|
24270
|
-
return _this2;
|
|
24271
|
-
}
|
|
24272
|
-
createClass(NumberControllerSlider, [{
|
|
24273
|
-
key: "updateDisplay",
|
|
24274
|
-
value: function updateDisplay() {
|
|
24275
|
-
var pct = (this.getValue() - this.__min) / (this.__max - this.__min);
|
|
24276
|
-
this.__foreground.style.width = pct * 100 + "%";
|
|
24277
|
-
return get(NumberControllerSlider.prototype.__proto__ || Object.getPrototypeOf(NumberControllerSlider.prototype), "updateDisplay", this).call(this);
|
|
24278
|
-
}
|
|
24279
|
-
}]);
|
|
24280
|
-
return NumberControllerSlider;
|
|
24281
|
-
}(NumberController);
|
|
24282
|
-
var FunctionController = function(_Controller) {
|
|
24283
|
-
inherits(FunctionController, _Controller);
|
|
24284
|
-
function FunctionController(object, property, text) {
|
|
24285
|
-
classCallCheck(this, FunctionController);
|
|
24286
|
-
var _this2 = possibleConstructorReturn(this, (FunctionController.__proto__ || Object.getPrototypeOf(FunctionController)).call(this, object, property));
|
|
24287
|
-
var _this = _this2;
|
|
24288
|
-
_this2.__button = document.createElement("div");
|
|
24289
|
-
_this2.__button.innerHTML = text === void 0 ? "Fire" : text;
|
|
24290
|
-
dom.bind(_this2.__button, "click", function(e) {
|
|
24291
|
-
e.preventDefault();
|
|
24292
|
-
_this.fire();
|
|
24293
|
-
return false;
|
|
24294
|
-
});
|
|
24295
|
-
dom.addClass(_this2.__button, "button");
|
|
24296
|
-
_this2.domElement.appendChild(_this2.__button);
|
|
24297
|
-
return _this2;
|
|
24298
|
-
}
|
|
24299
|
-
createClass(FunctionController, [{
|
|
24300
|
-
key: "fire",
|
|
24301
|
-
value: function fire() {
|
|
24302
|
-
if (this.__onChange) this.__onChange.call(this);
|
|
24303
|
-
this.getValue().call(this.object);
|
|
24304
|
-
if (this.__onFinishChange) this.__onFinishChange.call(this, this.getValue());
|
|
24305
|
-
}
|
|
24306
|
-
}]);
|
|
24307
|
-
return FunctionController;
|
|
24308
|
-
}(Controller);
|
|
24309
|
-
var ColorController = function(_Controller) {
|
|
24310
|
-
inherits(ColorController, _Controller);
|
|
24311
|
-
function ColorController(object, property) {
|
|
24312
|
-
classCallCheck(this, ColorController);
|
|
24313
|
-
var _this2 = possibleConstructorReturn(this, (ColorController.__proto__ || Object.getPrototypeOf(ColorController)).call(this, object, property));
|
|
24314
|
-
_this2.__color = new Color(_this2.getValue());
|
|
24315
|
-
_this2.__temp = new Color(0);
|
|
24316
|
-
var _this = _this2;
|
|
24317
|
-
_this2.domElement = document.createElement("div");
|
|
24318
|
-
dom.makeSelectable(_this2.domElement, false);
|
|
24319
|
-
_this2.__selector = document.createElement("div");
|
|
24320
|
-
_this2.__selector.className = "selector";
|
|
24321
|
-
_this2.__saturation_field = document.createElement("div");
|
|
24322
|
-
_this2.__saturation_field.className = "saturation-field";
|
|
24323
|
-
_this2.__field_knob = document.createElement("div");
|
|
24324
|
-
_this2.__field_knob.className = "field-knob";
|
|
24325
|
-
_this2.__field_knob_border = "2px solid ";
|
|
24326
|
-
_this2.__hue_knob = document.createElement("div");
|
|
24327
|
-
_this2.__hue_knob.className = "hue-knob";
|
|
24328
|
-
_this2.__hue_field = document.createElement("div");
|
|
24329
|
-
_this2.__hue_field.className = "hue-field";
|
|
24330
|
-
_this2.__input = document.createElement("input");
|
|
24331
|
-
_this2.__input.type = "text";
|
|
24332
|
-
_this2.__input_textShadow = "0 1px 1px ";
|
|
24333
|
-
dom.bind(_this2.__input, "keydown", function(e) {
|
|
24334
|
-
if (e.keyCode === 13) onBlur.call(this);
|
|
24335
|
-
});
|
|
24336
|
-
dom.bind(_this2.__input, "blur", onBlur);
|
|
24337
|
-
dom.bind(_this2.__selector, "mousedown", function() {
|
|
24338
|
-
dom.addClass(this, "drag").bind(window, "mouseup", function() {
|
|
24339
|
-
dom.removeClass(_this.__selector, "drag");
|
|
24340
|
-
});
|
|
24341
|
-
});
|
|
24342
|
-
dom.bind(_this2.__selector, "touchstart", function() {
|
|
24343
|
-
dom.addClass(this, "drag").bind(window, "touchend", function() {
|
|
24344
|
-
dom.removeClass(_this.__selector, "drag");
|
|
24345
|
-
});
|
|
24346
|
-
});
|
|
24347
|
-
var valueField = document.createElement("div");
|
|
24348
|
-
Common.extend(_this2.__selector.style, {
|
|
24349
|
-
width: "122px",
|
|
24350
|
-
height: "102px",
|
|
24351
|
-
padding: "3px",
|
|
24352
|
-
backgroundColor: "#222",
|
|
24353
|
-
boxShadow: "0px 1px 3px rgba(0,0,0,0.3)"
|
|
24354
|
-
});
|
|
24355
|
-
Common.extend(_this2.__field_knob.style, {
|
|
24356
|
-
position: "absolute",
|
|
24357
|
-
width: "12px",
|
|
24358
|
-
height: "12px",
|
|
24359
|
-
border: _this2.__field_knob_border + (_this2.__color.v < .5 ? "#fff" : "#000"),
|
|
24360
|
-
boxShadow: "0px 1px 3px rgba(0,0,0,0.5)",
|
|
24361
|
-
borderRadius: "12px",
|
|
24362
|
-
zIndex: 1
|
|
24363
|
-
});
|
|
24364
|
-
Common.extend(_this2.__hue_knob.style, {
|
|
24365
|
-
position: "absolute",
|
|
24366
|
-
width: "15px",
|
|
24367
|
-
height: "2px",
|
|
24368
|
-
borderRight: "4px solid #fff",
|
|
24369
|
-
zIndex: 1
|
|
24370
|
-
});
|
|
24371
|
-
Common.extend(_this2.__saturation_field.style, {
|
|
24372
|
-
width: "100px",
|
|
24373
|
-
height: "100px",
|
|
24374
|
-
border: "1px solid #555",
|
|
24375
|
-
marginRight: "3px",
|
|
24376
|
-
display: "inline-block",
|
|
24377
|
-
cursor: "pointer"
|
|
24378
|
-
});
|
|
24379
|
-
Common.extend(valueField.style, {
|
|
24380
|
-
width: "100%",
|
|
24381
|
-
height: "100%",
|
|
24382
|
-
background: "none"
|
|
24383
|
-
});
|
|
24384
|
-
linearGradient(valueField, "top", "rgba(0,0,0,0)", "#000");
|
|
24385
|
-
Common.extend(_this2.__hue_field.style, {
|
|
24386
|
-
width: "15px",
|
|
24387
|
-
height: "100px",
|
|
24388
|
-
border: "1px solid #555",
|
|
24389
|
-
cursor: "ns-resize",
|
|
24390
|
-
position: "absolute",
|
|
24391
|
-
top: "3px",
|
|
24392
|
-
right: "3px"
|
|
24393
|
-
});
|
|
24394
|
-
hueGradient(_this2.__hue_field);
|
|
24395
|
-
Common.extend(_this2.__input.style, {
|
|
24396
|
-
outline: "none",
|
|
24397
|
-
textAlign: "center",
|
|
24398
|
-
color: "#fff",
|
|
24399
|
-
border: 0,
|
|
24400
|
-
fontWeight: "bold",
|
|
24401
|
-
textShadow: _this2.__input_textShadow + "rgba(0,0,0,0.7)"
|
|
24402
|
-
});
|
|
24403
|
-
dom.bind(_this2.__saturation_field, "mousedown", fieldDown);
|
|
24404
|
-
dom.bind(_this2.__saturation_field, "touchstart", fieldDown);
|
|
24405
|
-
dom.bind(_this2.__field_knob, "mousedown", fieldDown);
|
|
24406
|
-
dom.bind(_this2.__field_knob, "touchstart", fieldDown);
|
|
24407
|
-
dom.bind(_this2.__hue_field, "mousedown", fieldDownH);
|
|
24408
|
-
dom.bind(_this2.__hue_field, "touchstart", fieldDownH);
|
|
24409
|
-
function fieldDown(e) {
|
|
24410
|
-
setSV(e);
|
|
24411
|
-
dom.bind(window, "mousemove", setSV);
|
|
24412
|
-
dom.bind(window, "touchmove", setSV);
|
|
24413
|
-
dom.bind(window, "mouseup", fieldUpSV);
|
|
24414
|
-
dom.bind(window, "touchend", fieldUpSV);
|
|
24415
|
-
}
|
|
24416
|
-
function fieldDownH(e) {
|
|
24417
|
-
setH(e);
|
|
24418
|
-
dom.bind(window, "mousemove", setH);
|
|
24419
|
-
dom.bind(window, "touchmove", setH);
|
|
24420
|
-
dom.bind(window, "mouseup", fieldUpH);
|
|
24421
|
-
dom.bind(window, "touchend", fieldUpH);
|
|
24422
|
-
}
|
|
24423
|
-
function fieldUpSV() {
|
|
24424
|
-
dom.unbind(window, "mousemove", setSV);
|
|
24425
|
-
dom.unbind(window, "touchmove", setSV);
|
|
24426
|
-
dom.unbind(window, "mouseup", fieldUpSV);
|
|
24427
|
-
dom.unbind(window, "touchend", fieldUpSV);
|
|
24428
|
-
onFinish();
|
|
24429
|
-
}
|
|
24430
|
-
function fieldUpH() {
|
|
24431
|
-
dom.unbind(window, "mousemove", setH);
|
|
24432
|
-
dom.unbind(window, "touchmove", setH);
|
|
24433
|
-
dom.unbind(window, "mouseup", fieldUpH);
|
|
24434
|
-
dom.unbind(window, "touchend", fieldUpH);
|
|
24435
|
-
onFinish();
|
|
24436
|
-
}
|
|
24437
|
-
function onBlur() {
|
|
24438
|
-
var i = interpret(this.value);
|
|
24439
|
-
if (i !== false) {
|
|
24440
|
-
_this.__color.__state = i;
|
|
24441
|
-
_this.setValue(_this.__color.toOriginal());
|
|
24442
|
-
} else this.value = _this.__color.toString();
|
|
24443
|
-
}
|
|
24444
|
-
function onFinish() {
|
|
24445
|
-
if (_this.__onFinishChange) _this.__onFinishChange.call(_this, _this.__color.toOriginal());
|
|
24446
|
-
}
|
|
24447
|
-
_this2.__saturation_field.appendChild(valueField);
|
|
24448
|
-
_this2.__selector.appendChild(_this2.__field_knob);
|
|
24449
|
-
_this2.__selector.appendChild(_this2.__saturation_field);
|
|
24450
|
-
_this2.__selector.appendChild(_this2.__hue_field);
|
|
24451
|
-
_this2.__hue_field.appendChild(_this2.__hue_knob);
|
|
24452
|
-
_this2.domElement.appendChild(_this2.__input);
|
|
24453
|
-
_this2.domElement.appendChild(_this2.__selector);
|
|
24454
|
-
_this2.updateDisplay();
|
|
24455
|
-
function setSV(e) {
|
|
24456
|
-
if (e.type.indexOf("touch") === -1) e.preventDefault();
|
|
24457
|
-
var fieldRect = _this.__saturation_field.getBoundingClientRect();
|
|
24458
|
-
var _ref = e.touches && e.touches[0] || e, clientX = _ref.clientX, clientY = _ref.clientY;
|
|
24459
|
-
var s = (clientX - fieldRect.left) / (fieldRect.right - fieldRect.left);
|
|
24460
|
-
var v = 1 - (clientY - fieldRect.top) / (fieldRect.bottom - fieldRect.top);
|
|
24461
|
-
if (v > 1) v = 1;
|
|
24462
|
-
else if (v < 0) v = 0;
|
|
24463
|
-
if (s > 1) s = 1;
|
|
24464
|
-
else if (s < 0) s = 0;
|
|
24465
|
-
_this.__color.v = v;
|
|
24466
|
-
_this.__color.s = s;
|
|
24467
|
-
_this.setValue(_this.__color.toOriginal());
|
|
24468
|
-
return false;
|
|
24469
|
-
}
|
|
24470
|
-
function setH(e) {
|
|
24471
|
-
if (e.type.indexOf("touch") === -1) e.preventDefault();
|
|
24472
|
-
var fieldRect = _this.__hue_field.getBoundingClientRect();
|
|
24473
|
-
var h = 1 - ((e.touches && e.touches[0] || e).clientY - fieldRect.top) / (fieldRect.bottom - fieldRect.top);
|
|
24474
|
-
if (h > 1) h = 1;
|
|
24475
|
-
else if (h < 0) h = 0;
|
|
24476
|
-
_this.__color.h = h * 360;
|
|
24477
|
-
_this.setValue(_this.__color.toOriginal());
|
|
24478
|
-
return false;
|
|
24479
|
-
}
|
|
24480
|
-
return _this2;
|
|
24481
|
-
}
|
|
24482
|
-
createClass(ColorController, [{
|
|
24483
|
-
key: "updateDisplay",
|
|
24484
|
-
value: function updateDisplay() {
|
|
24485
|
-
var i = interpret(this.getValue());
|
|
24486
|
-
if (i !== false) {
|
|
24487
|
-
var mismatch = false;
|
|
24488
|
-
Common.each(Color.COMPONENTS, function(component) {
|
|
24489
|
-
if (!Common.isUndefined(i[component]) && !Common.isUndefined(this.__color.__state[component]) && i[component] !== this.__color.__state[component]) {
|
|
24490
|
-
mismatch = true;
|
|
24491
|
-
return {};
|
|
24492
|
-
}
|
|
24493
|
-
}, this);
|
|
24494
|
-
if (mismatch) Common.extend(this.__color.__state, i);
|
|
24495
|
-
}
|
|
24496
|
-
Common.extend(this.__temp.__state, this.__color.__state);
|
|
24497
|
-
this.__temp.a = 1;
|
|
24498
|
-
var flip = this.__color.v < .5 || this.__color.s > .5 ? 255 : 0;
|
|
24499
|
-
var _flip = 255 - flip;
|
|
24500
|
-
Common.extend(this.__field_knob.style, {
|
|
24501
|
-
marginLeft: 100 * this.__color.s - 7 + "px",
|
|
24502
|
-
marginTop: 100 * (1 - this.__color.v) - 7 + "px",
|
|
24503
|
-
backgroundColor: this.__temp.toHexString(),
|
|
24504
|
-
border: this.__field_knob_border + "rgb(" + flip + "," + flip + "," + flip + ")"
|
|
24505
|
-
});
|
|
24506
|
-
this.__hue_knob.style.marginTop = (1 - this.__color.h / 360) * 100 + "px";
|
|
24507
|
-
this.__temp.s = 1;
|
|
24508
|
-
this.__temp.v = 1;
|
|
24509
|
-
linearGradient(this.__saturation_field, "left", "#fff", this.__temp.toHexString());
|
|
24510
|
-
this.__input.value = this.__color.toString();
|
|
24511
|
-
Common.extend(this.__input.style, {
|
|
24512
|
-
backgroundColor: this.__color.toHexString(),
|
|
24513
|
-
color: "rgb(" + flip + "," + flip + "," + flip + ")",
|
|
24514
|
-
textShadow: this.__input_textShadow + "rgba(" + _flip + "," + _flip + "," + _flip + ",.7)"
|
|
24515
|
-
});
|
|
24516
|
-
}
|
|
24517
|
-
}]);
|
|
24518
|
-
return ColorController;
|
|
24519
|
-
}(Controller);
|
|
24520
|
-
var vendors = [
|
|
24521
|
-
"-moz-",
|
|
24522
|
-
"-o-",
|
|
24523
|
-
"-webkit-",
|
|
24524
|
-
"-ms-",
|
|
24525
|
-
""
|
|
24526
|
-
];
|
|
24527
|
-
function linearGradient(elem, x, a, b) {
|
|
24528
|
-
elem.style.background = "";
|
|
24529
|
-
Common.each(vendors, function(vendor) {
|
|
24530
|
-
elem.style.cssText += "background: " + vendor + "linear-gradient(" + x + ", " + a + " 0%, " + b + " 100%); ";
|
|
24531
|
-
});
|
|
24532
|
-
}
|
|
24533
|
-
function hueGradient(elem) {
|
|
24534
|
-
elem.style.background = "";
|
|
24535
|
-
elem.style.cssText += "background: -moz-linear-gradient(top, #ff0000 0%, #ff00ff 17%, #0000ff 34%, #00ffff 50%, #00ff00 67%, #ffff00 84%, #ff0000 100%);";
|
|
24536
|
-
elem.style.cssText += "background: -webkit-linear-gradient(top, #ff0000 0%,#ff00ff 17%,#0000ff 34%,#00ffff 50%,#00ff00 67%,#ffff00 84%,#ff0000 100%);";
|
|
24537
|
-
elem.style.cssText += "background: -o-linear-gradient(top, #ff0000 0%,#ff00ff 17%,#0000ff 34%,#00ffff 50%,#00ff00 67%,#ffff00 84%,#ff0000 100%);";
|
|
24538
|
-
elem.style.cssText += "background: -ms-linear-gradient(top, #ff0000 0%,#ff00ff 17%,#0000ff 34%,#00ffff 50%,#00ff00 67%,#ffff00 84%,#ff0000 100%);";
|
|
24539
|
-
elem.style.cssText += "background: linear-gradient(top, #ff0000 0%,#ff00ff 17%,#0000ff 34%,#00ffff 50%,#00ff00 67%,#ffff00 84%,#ff0000 100%);";
|
|
24540
|
-
}
|
|
24541
|
-
var css = {
|
|
24542
|
-
load: function load(url, indoc) {
|
|
24543
|
-
var doc = indoc || document;
|
|
24544
|
-
var link = doc.createElement("link");
|
|
24545
|
-
link.type = "text/css";
|
|
24546
|
-
link.rel = "stylesheet";
|
|
24547
|
-
link.href = url;
|
|
24548
|
-
doc.getElementsByTagName("head")[0].appendChild(link);
|
|
24549
|
-
},
|
|
24550
|
-
inject: function inject(cssContent, indoc) {
|
|
24551
|
-
var doc = indoc || document;
|
|
24552
|
-
var injected = document.createElement("style");
|
|
24553
|
-
injected.type = "text/css";
|
|
24554
|
-
injected.innerHTML = cssContent;
|
|
24555
|
-
var head = doc.getElementsByTagName("head")[0];
|
|
24556
|
-
try {
|
|
24557
|
-
head.appendChild(injected);
|
|
24558
|
-
} catch (e) {}
|
|
24559
|
-
}
|
|
24560
|
-
};
|
|
24561
|
-
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>";
|
|
24562
|
-
var ControllerFactory = function ControllerFactory(object, property) {
|
|
24563
|
-
var initialValue = object[property];
|
|
24564
|
-
if (Common.isArray(arguments[2]) || Common.isObject(arguments[2])) return new OptionController(object, property, arguments[2]);
|
|
24565
|
-
if (Common.isNumber(initialValue)) {
|
|
24566
|
-
if (Common.isNumber(arguments[2]) && Common.isNumber(arguments[3])) {
|
|
24567
|
-
if (Common.isNumber(arguments[4])) return new NumberControllerSlider(object, property, arguments[2], arguments[3], arguments[4]);
|
|
24568
|
-
return new NumberControllerSlider(object, property, arguments[2], arguments[3]);
|
|
24569
|
-
}
|
|
24570
|
-
if (Common.isNumber(arguments[4])) return new NumberControllerBox(object, property, {
|
|
24571
|
-
min: arguments[2],
|
|
24572
|
-
max: arguments[3],
|
|
24573
|
-
step: arguments[4]
|
|
24574
|
-
});
|
|
24575
|
-
return new NumberControllerBox(object, property, {
|
|
24576
|
-
min: arguments[2],
|
|
24577
|
-
max: arguments[3]
|
|
24578
|
-
});
|
|
24579
|
-
}
|
|
24580
|
-
if (Common.isString(initialValue)) return new StringController(object, property);
|
|
24581
|
-
if (Common.isFunction(initialValue)) return new FunctionController(object, property, "");
|
|
24582
|
-
if (Common.isBoolean(initialValue)) return new BooleanController(object, property);
|
|
24583
|
-
return null;
|
|
24584
|
-
};
|
|
24585
|
-
function requestAnimationFrame$1(callback) {
|
|
24586
|
-
setTimeout(callback, 1e3 / 60);
|
|
24587
|
-
}
|
|
24588
|
-
var requestAnimationFrame$1$1 = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || requestAnimationFrame$1;
|
|
24589
|
-
var CenteredDiv = function() {
|
|
24590
|
-
function CenteredDiv() {
|
|
24591
|
-
classCallCheck(this, CenteredDiv);
|
|
24592
|
-
this.backgroundElement = document.createElement("div");
|
|
24593
|
-
Common.extend(this.backgroundElement.style, {
|
|
24594
|
-
backgroundColor: "rgba(0,0,0,0.8)",
|
|
24595
|
-
top: 0,
|
|
24596
|
-
left: 0,
|
|
24597
|
-
display: "none",
|
|
24598
|
-
zIndex: "1000",
|
|
24599
|
-
opacity: 0,
|
|
24600
|
-
WebkitTransition: "opacity 0.2s linear",
|
|
24601
|
-
transition: "opacity 0.2s linear"
|
|
24602
|
-
});
|
|
24603
|
-
dom.makeFullscreen(this.backgroundElement);
|
|
24604
|
-
this.backgroundElement.style.position = "fixed";
|
|
24605
|
-
this.domElement = document.createElement("div");
|
|
24606
|
-
Common.extend(this.domElement.style, {
|
|
24607
|
-
position: "fixed",
|
|
24608
|
-
display: "none",
|
|
24609
|
-
zIndex: "1001",
|
|
24610
|
-
opacity: 0,
|
|
24611
|
-
WebkitTransition: "-webkit-transform 0.2s ease-out, opacity 0.2s linear",
|
|
24612
|
-
transition: "transform 0.2s ease-out, opacity 0.2s linear"
|
|
24613
|
-
});
|
|
24614
|
-
document.body.appendChild(this.backgroundElement);
|
|
24615
|
-
document.body.appendChild(this.domElement);
|
|
24616
|
-
var _this = this;
|
|
24617
|
-
dom.bind(this.backgroundElement, "click", function() {
|
|
24618
|
-
_this.hide();
|
|
24619
|
-
});
|
|
24620
|
-
}
|
|
24621
|
-
createClass(CenteredDiv, [
|
|
24622
|
-
{
|
|
24623
|
-
key: "show",
|
|
24624
|
-
value: function show() {
|
|
24625
|
-
var _this = this;
|
|
24626
|
-
this.backgroundElement.style.display = "block";
|
|
24627
|
-
this.domElement.style.display = "block";
|
|
24628
|
-
this.domElement.style.opacity = 0;
|
|
24629
|
-
this.domElement.style.webkitTransform = "scale(1.1)";
|
|
24630
|
-
this.layout();
|
|
24631
|
-
Common.defer(function() {
|
|
24632
|
-
_this.backgroundElement.style.opacity = 1;
|
|
24633
|
-
_this.domElement.style.opacity = 1;
|
|
24634
|
-
_this.domElement.style.webkitTransform = "scale(1)";
|
|
24635
|
-
});
|
|
24636
|
-
}
|
|
24637
|
-
},
|
|
24638
|
-
{
|
|
24639
|
-
key: "hide",
|
|
24640
|
-
value: function hide() {
|
|
24641
|
-
var _this = this;
|
|
24642
|
-
var hide = function hide() {
|
|
24643
|
-
_this.domElement.style.display = "none";
|
|
24644
|
-
_this.backgroundElement.style.display = "none";
|
|
24645
|
-
dom.unbind(_this.domElement, "webkitTransitionEnd", hide);
|
|
24646
|
-
dom.unbind(_this.domElement, "transitionend", hide);
|
|
24647
|
-
dom.unbind(_this.domElement, "oTransitionEnd", hide);
|
|
24648
|
-
};
|
|
24649
|
-
dom.bind(this.domElement, "webkitTransitionEnd", hide);
|
|
24650
|
-
dom.bind(this.domElement, "transitionend", hide);
|
|
24651
|
-
dom.bind(this.domElement, "oTransitionEnd", hide);
|
|
24652
|
-
this.backgroundElement.style.opacity = 0;
|
|
24653
|
-
this.domElement.style.opacity = 0;
|
|
24654
|
-
this.domElement.style.webkitTransform = "scale(1.1)";
|
|
24655
|
-
}
|
|
24656
|
-
},
|
|
24657
|
-
{
|
|
24658
|
-
key: "layout",
|
|
24659
|
-
value: function layout() {
|
|
24660
|
-
this.domElement.style.left = window.innerWidth / 2 - dom.getWidth(this.domElement) / 2 + "px";
|
|
24661
|
-
this.domElement.style.top = window.innerHeight / 2 - dom.getHeight(this.domElement) / 2 + "px";
|
|
24662
|
-
}
|
|
24663
|
-
}
|
|
24664
|
-
]);
|
|
24665
|
-
return CenteredDiv;
|
|
24666
|
-
}();
|
|
24667
|
-
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");
|
|
24668
|
-
css.inject(styleSheet);
|
|
24669
|
-
var CSS_NAMESPACE = "dg";
|
|
24670
|
-
var HIDE_KEY_CODE = 72;
|
|
24671
|
-
var CLOSE_BUTTON_HEIGHT = 20;
|
|
24672
|
-
var DEFAULT_DEFAULT_PRESET_NAME = "Default";
|
|
24673
|
-
var SUPPORTS_LOCAL_STORAGE = function() {
|
|
24674
|
-
try {
|
|
24675
|
-
return !!window.localStorage;
|
|
24676
|
-
} catch (e) {
|
|
24677
|
-
return false;
|
|
24678
|
-
}
|
|
24679
|
-
}();
|
|
24680
|
-
var SAVE_DIALOGUE = void 0;
|
|
24681
|
-
var autoPlaceVirgin = true;
|
|
24682
|
-
var autoPlaceContainer = void 0;
|
|
24683
|
-
var hide = false;
|
|
24684
|
-
var hideableGuis = [];
|
|
24685
|
-
var GUI = function GUI(pars) {
|
|
24686
|
-
var _this = this;
|
|
24687
|
-
var params = pars || {};
|
|
24688
|
-
this.domElement = document.createElement("div");
|
|
24689
|
-
this.__ul = document.createElement("ul");
|
|
24690
|
-
this.domElement.appendChild(this.__ul);
|
|
24691
|
-
dom.addClass(this.domElement, CSS_NAMESPACE);
|
|
24692
|
-
this.__folders = {};
|
|
24693
|
-
this.__controllers = [];
|
|
24694
|
-
this.__rememberedObjects = [];
|
|
24695
|
-
this.__rememberedObjectIndecesToControllers = [];
|
|
24696
|
-
this.__listening = [];
|
|
24697
|
-
params = Common.defaults(params, {
|
|
24698
|
-
closeOnTop: false,
|
|
24699
|
-
autoPlace: true,
|
|
24700
|
-
width: GUI.DEFAULT_WIDTH
|
|
24701
|
-
});
|
|
24702
|
-
params = Common.defaults(params, {
|
|
24703
|
-
resizable: params.autoPlace,
|
|
24704
|
-
hideable: params.autoPlace
|
|
24705
|
-
});
|
|
24706
|
-
if (!Common.isUndefined(params.load)) {
|
|
24707
|
-
if (params.preset) params.load.preset = params.preset;
|
|
24708
|
-
} else params.load = { preset: DEFAULT_DEFAULT_PRESET_NAME };
|
|
24709
|
-
if (Common.isUndefined(params.parent) && params.hideable) hideableGuis.push(this);
|
|
24710
|
-
params.resizable = Common.isUndefined(params.parent) && params.resizable;
|
|
24711
|
-
if (params.autoPlace && Common.isUndefined(params.scrollable)) params.scrollable = true;
|
|
24712
|
-
var useLocalStorage = SUPPORTS_LOCAL_STORAGE && localStorage.getItem(getLocalStorageHash(this, "isLocal")) === "true";
|
|
24713
|
-
var saveToLocalStorage = void 0;
|
|
24714
|
-
var titleRow = void 0;
|
|
24715
|
-
Object.defineProperties(this, {
|
|
24716
|
-
parent: { get: function get$$1() {
|
|
24717
|
-
return params.parent;
|
|
24718
|
-
} },
|
|
24719
|
-
scrollable: { get: function get$$1() {
|
|
24720
|
-
return params.scrollable;
|
|
24721
|
-
} },
|
|
24722
|
-
autoPlace: { get: function get$$1() {
|
|
24723
|
-
return params.autoPlace;
|
|
24724
|
-
} },
|
|
24725
|
-
closeOnTop: { get: function get$$1() {
|
|
24726
|
-
return params.closeOnTop;
|
|
24727
|
-
} },
|
|
24728
|
-
preset: {
|
|
24729
|
-
get: function get$$1() {
|
|
24730
|
-
if (_this.parent) return _this.getRoot().preset;
|
|
24731
|
-
return params.load.preset;
|
|
24732
|
-
},
|
|
24733
|
-
set: function set$$1(v) {
|
|
24734
|
-
if (_this.parent) _this.getRoot().preset = v;
|
|
24735
|
-
else params.load.preset = v;
|
|
24736
|
-
setPresetSelectIndex(this);
|
|
24737
|
-
_this.revert();
|
|
24738
|
-
}
|
|
24739
|
-
},
|
|
24740
|
-
width: {
|
|
24741
|
-
get: function get$$1() {
|
|
24742
|
-
return params.width;
|
|
24743
|
-
},
|
|
24744
|
-
set: function set$$1(v) {
|
|
24745
|
-
params.width = v;
|
|
24746
|
-
setWidth(_this, v);
|
|
24747
|
-
}
|
|
24748
|
-
},
|
|
24749
|
-
name: {
|
|
24750
|
-
get: function get$$1() {
|
|
24751
|
-
return params.name;
|
|
24752
|
-
},
|
|
24753
|
-
set: function set$$1(v) {
|
|
24754
|
-
params.name = v;
|
|
24755
|
-
if (titleRow) titleRow.innerHTML = params.name;
|
|
24756
|
-
}
|
|
24757
|
-
},
|
|
24758
|
-
closed: {
|
|
24759
|
-
get: function get$$1() {
|
|
24760
|
-
return params.closed;
|
|
24761
|
-
},
|
|
24762
|
-
set: function set$$1(v) {
|
|
24763
|
-
params.closed = v;
|
|
24764
|
-
if (params.closed) dom.addClass(_this.__ul, GUI.CLASS_CLOSED);
|
|
24765
|
-
else dom.removeClass(_this.__ul, GUI.CLASS_CLOSED);
|
|
24766
|
-
this.onResize();
|
|
24767
|
-
if (_this.__closeButton) _this.__closeButton.innerHTML = v ? GUI.TEXT_OPEN : GUI.TEXT_CLOSED;
|
|
24768
|
-
}
|
|
24769
|
-
},
|
|
24770
|
-
load: { get: function get$$1() {
|
|
24771
|
-
return params.load;
|
|
24772
|
-
} },
|
|
24773
|
-
useLocalStorage: {
|
|
24774
|
-
get: function get$$1() {
|
|
24775
|
-
return useLocalStorage;
|
|
24776
|
-
},
|
|
24777
|
-
set: function set$$1(bool) {
|
|
24778
|
-
if (SUPPORTS_LOCAL_STORAGE) {
|
|
24779
|
-
useLocalStorage = bool;
|
|
24780
|
-
if (bool) dom.bind(window, "unload", saveToLocalStorage);
|
|
24781
|
-
else dom.unbind(window, "unload", saveToLocalStorage);
|
|
24782
|
-
localStorage.setItem(getLocalStorageHash(_this, "isLocal"), bool);
|
|
24783
|
-
}
|
|
24784
|
-
}
|
|
24785
|
-
}
|
|
24786
|
-
});
|
|
24787
|
-
if (Common.isUndefined(params.parent)) {
|
|
24788
|
-
this.closed = params.closed || false;
|
|
24789
|
-
dom.addClass(this.domElement, GUI.CLASS_MAIN);
|
|
24790
|
-
dom.makeSelectable(this.domElement, false);
|
|
24791
|
-
if (SUPPORTS_LOCAL_STORAGE) {
|
|
24792
|
-
if (useLocalStorage) {
|
|
24793
|
-
_this.useLocalStorage = true;
|
|
24794
|
-
var savedGui = localStorage.getItem(getLocalStorageHash(this, "gui"));
|
|
24795
|
-
if (savedGui) params.load = JSON.parse(savedGui);
|
|
24796
|
-
}
|
|
24797
|
-
}
|
|
24798
|
-
this.__closeButton = document.createElement("div");
|
|
24799
|
-
this.__closeButton.innerHTML = GUI.TEXT_CLOSED;
|
|
24800
|
-
dom.addClass(this.__closeButton, GUI.CLASS_CLOSE_BUTTON);
|
|
24801
|
-
if (params.closeOnTop) {
|
|
24802
|
-
dom.addClass(this.__closeButton, GUI.CLASS_CLOSE_TOP);
|
|
24803
|
-
this.domElement.insertBefore(this.__closeButton, this.domElement.childNodes[0]);
|
|
24804
|
-
} else {
|
|
24805
|
-
dom.addClass(this.__closeButton, GUI.CLASS_CLOSE_BOTTOM);
|
|
24806
|
-
this.domElement.appendChild(this.__closeButton);
|
|
24807
|
-
}
|
|
24808
|
-
dom.bind(this.__closeButton, "click", function() {
|
|
24809
|
-
_this.closed = !_this.closed;
|
|
24810
|
-
});
|
|
24811
|
-
} else {
|
|
24812
|
-
if (params.closed === void 0) params.closed = true;
|
|
24813
|
-
var titleRowName = document.createTextNode(params.name);
|
|
24814
|
-
dom.addClass(titleRowName, "controller-name");
|
|
24815
|
-
titleRow = addRow(_this, titleRowName);
|
|
24816
|
-
var onClickTitle = function onClickTitle(e) {
|
|
24817
|
-
e.preventDefault();
|
|
24818
|
-
_this.closed = !_this.closed;
|
|
24819
|
-
return false;
|
|
24820
|
-
};
|
|
24821
|
-
dom.addClass(this.__ul, GUI.CLASS_CLOSED);
|
|
24822
|
-
dom.addClass(titleRow, "title");
|
|
24823
|
-
dom.bind(titleRow, "click", onClickTitle);
|
|
24824
|
-
if (!params.closed) this.closed = false;
|
|
24825
|
-
}
|
|
24826
|
-
if (params.autoPlace) {
|
|
24827
|
-
if (Common.isUndefined(params.parent)) {
|
|
24828
|
-
if (autoPlaceVirgin) {
|
|
24829
|
-
autoPlaceContainer = document.createElement("div");
|
|
24830
|
-
dom.addClass(autoPlaceContainer, CSS_NAMESPACE);
|
|
24831
|
-
dom.addClass(autoPlaceContainer, GUI.CLASS_AUTO_PLACE_CONTAINER);
|
|
24832
|
-
document.body.appendChild(autoPlaceContainer);
|
|
24833
|
-
autoPlaceVirgin = false;
|
|
24834
|
-
}
|
|
24835
|
-
autoPlaceContainer.appendChild(this.domElement);
|
|
24836
|
-
dom.addClass(this.domElement, GUI.CLASS_AUTO_PLACE);
|
|
24837
|
-
}
|
|
24838
|
-
if (!this.parent) setWidth(_this, params.width);
|
|
24839
|
-
}
|
|
24840
|
-
this.__resizeHandler = function() {
|
|
24841
|
-
_this.onResizeDebounced();
|
|
24842
|
-
};
|
|
24843
|
-
dom.bind(window, "resize", this.__resizeHandler);
|
|
24844
|
-
dom.bind(this.__ul, "webkitTransitionEnd", this.__resizeHandler);
|
|
24845
|
-
dom.bind(this.__ul, "transitionend", this.__resizeHandler);
|
|
24846
|
-
dom.bind(this.__ul, "oTransitionEnd", this.__resizeHandler);
|
|
24847
|
-
this.onResize();
|
|
24848
|
-
if (params.resizable) addResizeHandle(this);
|
|
24849
|
-
saveToLocalStorage = function saveToLocalStorage() {
|
|
24850
|
-
if (SUPPORTS_LOCAL_STORAGE && localStorage.getItem(getLocalStorageHash(_this, "isLocal")) === "true") localStorage.setItem(getLocalStorageHash(_this, "gui"), JSON.stringify(_this.getSaveObject()));
|
|
24851
|
-
};
|
|
24852
|
-
this.saveToLocalStorageIfPossible = saveToLocalStorage;
|
|
24853
|
-
function resetWidth() {
|
|
24854
|
-
var root = _this.getRoot();
|
|
24855
|
-
root.width += 1;
|
|
24856
|
-
Common.defer(function() {
|
|
24857
|
-
root.width -= 1;
|
|
24858
|
-
});
|
|
24859
|
-
}
|
|
24860
|
-
if (!params.parent) resetWidth();
|
|
24861
|
-
};
|
|
24862
|
-
GUI.toggleHide = function() {
|
|
24863
|
-
hide = !hide;
|
|
24864
|
-
Common.each(hideableGuis, function(gui) {
|
|
24865
|
-
gui.domElement.style.display = hide ? "none" : "";
|
|
24866
|
-
});
|
|
24867
|
-
};
|
|
24868
|
-
GUI.CLASS_AUTO_PLACE = "a";
|
|
24869
|
-
GUI.CLASS_AUTO_PLACE_CONTAINER = "ac";
|
|
24870
|
-
GUI.CLASS_MAIN = "main";
|
|
24871
|
-
GUI.CLASS_CONTROLLER_ROW = "cr";
|
|
24872
|
-
GUI.CLASS_TOO_TALL = "taller-than-window";
|
|
24873
|
-
GUI.CLASS_CLOSED = "closed";
|
|
24874
|
-
GUI.CLASS_CLOSE_BUTTON = "close-button";
|
|
24875
|
-
GUI.CLASS_CLOSE_TOP = "close-top";
|
|
24876
|
-
GUI.CLASS_CLOSE_BOTTOM = "close-bottom";
|
|
24877
|
-
GUI.CLASS_DRAG = "drag";
|
|
24878
|
-
GUI.DEFAULT_WIDTH = 245;
|
|
24879
|
-
GUI.TEXT_CLOSED = "Close Controls";
|
|
24880
|
-
GUI.TEXT_OPEN = "Open Controls";
|
|
24881
|
-
GUI._keydownHandler = function(e) {
|
|
24882
|
-
if (document.activeElement.type !== "text" && (e.which === HIDE_KEY_CODE || e.keyCode === HIDE_KEY_CODE)) GUI.toggleHide();
|
|
24883
|
-
};
|
|
24884
|
-
dom.bind(window, "keydown", GUI._keydownHandler, false);
|
|
24885
|
-
Common.extend(GUI.prototype, {
|
|
24886
|
-
add: function add(object, property) {
|
|
24887
|
-
return _add(this, object, property, { factoryArgs: Array.prototype.slice.call(arguments, 2) });
|
|
24888
|
-
},
|
|
24889
|
-
addColor: function addColor(object, property) {
|
|
24890
|
-
return _add(this, object, property, { color: true });
|
|
24891
|
-
},
|
|
24892
|
-
remove: function remove(controller) {
|
|
24893
|
-
this.__ul.removeChild(controller.__li);
|
|
24894
|
-
this.__controllers.splice(this.__controllers.indexOf(controller), 1);
|
|
24895
|
-
var _this = this;
|
|
24896
|
-
Common.defer(function() {
|
|
24897
|
-
_this.onResize();
|
|
24898
|
-
});
|
|
24899
|
-
},
|
|
24900
|
-
destroy: function destroy() {
|
|
24901
|
-
if (this.parent) throw new Error("Only the root GUI should be removed with .destroy(). For subfolders, use gui.removeFolder(folder) instead.");
|
|
24902
|
-
if (this.autoPlace) autoPlaceContainer.removeChild(this.domElement);
|
|
24903
|
-
var _this = this;
|
|
24904
|
-
Common.each(this.__folders, function(subfolder) {
|
|
24905
|
-
_this.removeFolder(subfolder);
|
|
24906
|
-
});
|
|
24907
|
-
dom.unbind(window, "keydown", GUI._keydownHandler, false);
|
|
24908
|
-
removeListeners(this);
|
|
24909
|
-
},
|
|
24910
|
-
addFolder: function addFolder(name) {
|
|
24911
|
-
if (this.__folders[name] !== void 0) throw new Error("You already have a folder in this GUI by the name \"" + name + "\"");
|
|
24912
|
-
var newGuiParams = {
|
|
24913
|
-
name,
|
|
24914
|
-
parent: this
|
|
24915
|
-
};
|
|
24916
|
-
newGuiParams.autoPlace = this.autoPlace;
|
|
24917
|
-
if (this.load && this.load.folders && this.load.folders[name]) {
|
|
24918
|
-
newGuiParams.closed = this.load.folders[name].closed;
|
|
24919
|
-
newGuiParams.load = this.load.folders[name];
|
|
24920
|
-
}
|
|
24921
|
-
var gui = new GUI(newGuiParams);
|
|
24922
|
-
this.__folders[name] = gui;
|
|
24923
|
-
var li = addRow(this, gui.domElement);
|
|
24924
|
-
dom.addClass(li, "folder");
|
|
24925
|
-
return gui;
|
|
24926
|
-
},
|
|
24927
|
-
removeFolder: function removeFolder(folder) {
|
|
24928
|
-
this.__ul.removeChild(folder.domElement.parentElement);
|
|
24929
|
-
delete this.__folders[folder.name];
|
|
24930
|
-
if (this.load && this.load.folders && this.load.folders[folder.name]) delete this.load.folders[folder.name];
|
|
24931
|
-
removeListeners(folder);
|
|
24932
|
-
var _this = this;
|
|
24933
|
-
Common.each(folder.__folders, function(subfolder) {
|
|
24934
|
-
folder.removeFolder(subfolder);
|
|
24935
|
-
});
|
|
24936
|
-
Common.defer(function() {
|
|
24937
|
-
_this.onResize();
|
|
24938
|
-
});
|
|
24939
|
-
},
|
|
24940
|
-
open: function open() {
|
|
24941
|
-
this.closed = false;
|
|
24942
|
-
},
|
|
24943
|
-
close: function close() {
|
|
24944
|
-
this.closed = true;
|
|
24945
|
-
},
|
|
24946
|
-
hide: function hide() {
|
|
24947
|
-
this.domElement.style.display = "none";
|
|
24948
|
-
},
|
|
24949
|
-
show: function show() {
|
|
24950
|
-
this.domElement.style.display = "";
|
|
24951
|
-
},
|
|
24952
|
-
onResize: function onResize() {
|
|
24953
|
-
var root = this.getRoot();
|
|
24954
|
-
if (root.scrollable) {
|
|
24955
|
-
var top = dom.getOffset(root.__ul).top;
|
|
24956
|
-
var h = 0;
|
|
24957
|
-
Common.each(root.__ul.childNodes, function(node) {
|
|
24958
|
-
if (!(root.autoPlace && node === root.__save_row)) h += dom.getHeight(node);
|
|
24959
|
-
});
|
|
24960
|
-
if (window.innerHeight - top - CLOSE_BUTTON_HEIGHT < h) {
|
|
24961
|
-
dom.addClass(root.domElement, GUI.CLASS_TOO_TALL);
|
|
24962
|
-
root.__ul.style.height = window.innerHeight - top - CLOSE_BUTTON_HEIGHT + "px";
|
|
24963
|
-
} else {
|
|
24964
|
-
dom.removeClass(root.domElement, GUI.CLASS_TOO_TALL);
|
|
24965
|
-
root.__ul.style.height = "auto";
|
|
24966
|
-
}
|
|
24967
|
-
}
|
|
24968
|
-
if (root.__resize_handle) Common.defer(function() {
|
|
24969
|
-
root.__resize_handle.style.height = root.__ul.offsetHeight + "px";
|
|
24970
|
-
});
|
|
24971
|
-
if (root.__closeButton) root.__closeButton.style.width = root.width + "px";
|
|
24972
|
-
},
|
|
24973
|
-
onResizeDebounced: Common.debounce(function() {
|
|
24974
|
-
this.onResize();
|
|
24975
|
-
}, 50),
|
|
24976
|
-
remember: function remember() {
|
|
24977
|
-
if (Common.isUndefined(SAVE_DIALOGUE)) {
|
|
24978
|
-
SAVE_DIALOGUE = new CenteredDiv();
|
|
24979
|
-
SAVE_DIALOGUE.domElement.innerHTML = saveDialogContents;
|
|
24980
|
-
}
|
|
24981
|
-
if (this.parent) throw new Error("You can only call remember on a top level GUI.");
|
|
24982
|
-
var _this = this;
|
|
24983
|
-
Common.each(Array.prototype.slice.call(arguments), function(object) {
|
|
24984
|
-
if (_this.__rememberedObjects.length === 0) addSaveMenu(_this);
|
|
24985
|
-
if (_this.__rememberedObjects.indexOf(object) === -1) _this.__rememberedObjects.push(object);
|
|
24986
|
-
});
|
|
24987
|
-
if (this.autoPlace) setWidth(this, this.width);
|
|
24988
|
-
},
|
|
24989
|
-
getRoot: function getRoot() {
|
|
24990
|
-
var gui = this;
|
|
24991
|
-
while (gui.parent) gui = gui.parent;
|
|
24992
|
-
return gui;
|
|
24993
|
-
},
|
|
24994
|
-
getSaveObject: function getSaveObject() {
|
|
24995
|
-
var toReturn = this.load;
|
|
24996
|
-
toReturn.closed = this.closed;
|
|
24997
|
-
if (this.__rememberedObjects.length > 0) {
|
|
24998
|
-
toReturn.preset = this.preset;
|
|
24999
|
-
if (!toReturn.remembered) toReturn.remembered = {};
|
|
25000
|
-
toReturn.remembered[this.preset] = getCurrentPreset(this);
|
|
25001
|
-
}
|
|
25002
|
-
toReturn.folders = {};
|
|
25003
|
-
Common.each(this.__folders, function(element, key) {
|
|
25004
|
-
toReturn.folders[key] = element.getSaveObject();
|
|
25005
|
-
});
|
|
25006
|
-
return toReturn;
|
|
25007
|
-
},
|
|
25008
|
-
save: function save() {
|
|
25009
|
-
if (!this.load.remembered) this.load.remembered = {};
|
|
25010
|
-
this.load.remembered[this.preset] = getCurrentPreset(this);
|
|
25011
|
-
markPresetModified(this, false);
|
|
25012
|
-
this.saveToLocalStorageIfPossible();
|
|
25013
|
-
},
|
|
25014
|
-
saveAs: function saveAs(presetName) {
|
|
25015
|
-
if (!this.load.remembered) {
|
|
25016
|
-
this.load.remembered = {};
|
|
25017
|
-
this.load.remembered[DEFAULT_DEFAULT_PRESET_NAME] = getCurrentPreset(this, true);
|
|
25018
|
-
}
|
|
25019
|
-
this.load.remembered[presetName] = getCurrentPreset(this);
|
|
25020
|
-
this.preset = presetName;
|
|
25021
|
-
addPresetOption(this, presetName, true);
|
|
25022
|
-
this.saveToLocalStorageIfPossible();
|
|
25023
|
-
},
|
|
25024
|
-
revert: function revert(gui) {
|
|
25025
|
-
Common.each(this.__controllers, function(controller) {
|
|
25026
|
-
if (!this.getRoot().load.remembered) controller.setValue(controller.initialValue);
|
|
25027
|
-
else recallSavedValue(gui || this.getRoot(), controller);
|
|
25028
|
-
if (controller.__onFinishChange) controller.__onFinishChange.call(controller, controller.getValue());
|
|
25029
|
-
}, this);
|
|
25030
|
-
Common.each(this.__folders, function(folder) {
|
|
25031
|
-
folder.revert(folder);
|
|
25032
|
-
});
|
|
25033
|
-
if (!gui) markPresetModified(this.getRoot(), false);
|
|
25034
|
-
},
|
|
25035
|
-
listen: function listen(controller) {
|
|
25036
|
-
var init = this.__listening.length === 0;
|
|
25037
|
-
this.__listening.push(controller);
|
|
25038
|
-
if (init) updateDisplays(this.__listening);
|
|
25039
|
-
},
|
|
25040
|
-
updateDisplay: function updateDisplay() {
|
|
25041
|
-
Common.each(this.__controllers, function(controller) {
|
|
25042
|
-
controller.updateDisplay();
|
|
25043
|
-
});
|
|
25044
|
-
Common.each(this.__folders, function(folder) {
|
|
25045
|
-
folder.updateDisplay();
|
|
25046
|
-
});
|
|
25047
|
-
}
|
|
25048
|
-
});
|
|
25049
|
-
function addRow(gui, newDom, liBefore) {
|
|
25050
|
-
var li = document.createElement("li");
|
|
25051
|
-
if (newDom) li.appendChild(newDom);
|
|
25052
|
-
if (liBefore) gui.__ul.insertBefore(li, liBefore);
|
|
25053
|
-
else gui.__ul.appendChild(li);
|
|
25054
|
-
gui.onResize();
|
|
25055
|
-
return li;
|
|
25056
|
-
}
|
|
25057
|
-
function removeListeners(gui) {
|
|
25058
|
-
dom.unbind(window, "resize", gui.__resizeHandler);
|
|
25059
|
-
if (gui.saveToLocalStorageIfPossible) dom.unbind(window, "unload", gui.saveToLocalStorageIfPossible);
|
|
25060
|
-
}
|
|
25061
|
-
function markPresetModified(gui, modified) {
|
|
25062
|
-
var opt = gui.__preset_select[gui.__preset_select.selectedIndex];
|
|
25063
|
-
if (modified) opt.innerHTML = opt.value + "*";
|
|
25064
|
-
else opt.innerHTML = opt.value;
|
|
25065
|
-
}
|
|
25066
|
-
function augmentController(gui, li, controller) {
|
|
25067
|
-
controller.__li = li;
|
|
25068
|
-
controller.__gui = gui;
|
|
25069
|
-
Common.extend(controller, {
|
|
25070
|
-
options: function options(_options) {
|
|
25071
|
-
if (arguments.length > 1) {
|
|
25072
|
-
var nextSibling = controller.__li.nextElementSibling;
|
|
25073
|
-
controller.remove();
|
|
25074
|
-
return _add(gui, controller.object, controller.property, {
|
|
25075
|
-
before: nextSibling,
|
|
25076
|
-
factoryArgs: [Common.toArray(arguments)]
|
|
25077
|
-
});
|
|
25078
|
-
}
|
|
25079
|
-
if (Common.isArray(_options) || Common.isObject(_options)) {
|
|
25080
|
-
var _nextSibling = controller.__li.nextElementSibling;
|
|
25081
|
-
controller.remove();
|
|
25082
|
-
return _add(gui, controller.object, controller.property, {
|
|
25083
|
-
before: _nextSibling,
|
|
25084
|
-
factoryArgs: [_options]
|
|
25085
|
-
});
|
|
25086
|
-
}
|
|
25087
|
-
},
|
|
25088
|
-
name: function name(_name) {
|
|
25089
|
-
controller.__li.firstElementChild.firstElementChild.innerHTML = _name;
|
|
25090
|
-
return controller;
|
|
25091
|
-
},
|
|
25092
|
-
listen: function listen() {
|
|
25093
|
-
controller.__gui.listen(controller);
|
|
25094
|
-
return controller;
|
|
25095
|
-
},
|
|
25096
|
-
remove: function remove() {
|
|
25097
|
-
controller.__gui.remove(controller);
|
|
25098
|
-
return controller;
|
|
25099
|
-
}
|
|
25100
|
-
});
|
|
25101
|
-
if (controller instanceof NumberControllerSlider) {
|
|
25102
|
-
var box = new NumberControllerBox(controller.object, controller.property, {
|
|
25103
|
-
min: controller.__min,
|
|
25104
|
-
max: controller.__max,
|
|
25105
|
-
step: controller.__step
|
|
25106
|
-
});
|
|
25107
|
-
Common.each([
|
|
25108
|
-
"updateDisplay",
|
|
25109
|
-
"onChange",
|
|
25110
|
-
"onFinishChange",
|
|
25111
|
-
"step",
|
|
25112
|
-
"min",
|
|
25113
|
-
"max"
|
|
25114
|
-
], function(method) {
|
|
25115
|
-
var pc = controller[method];
|
|
25116
|
-
var pb = box[method];
|
|
25117
|
-
controller[method] = box[method] = function() {
|
|
25118
|
-
var args = Array.prototype.slice.call(arguments);
|
|
25119
|
-
pb.apply(box, args);
|
|
25120
|
-
return pc.apply(controller, args);
|
|
25121
|
-
};
|
|
25122
|
-
});
|
|
25123
|
-
dom.addClass(li, "has-slider");
|
|
25124
|
-
controller.domElement.insertBefore(box.domElement, controller.domElement.firstElementChild);
|
|
25125
|
-
} else if (controller instanceof NumberControllerBox) {
|
|
25126
|
-
var r = function r(returned) {
|
|
25127
|
-
if (Common.isNumber(controller.__min) && Common.isNumber(controller.__max)) {
|
|
25128
|
-
var oldName = controller.__li.firstElementChild.firstElementChild.innerHTML;
|
|
25129
|
-
var wasListening = controller.__gui.__listening.indexOf(controller) > -1;
|
|
25130
|
-
controller.remove();
|
|
25131
|
-
var newController = _add(gui, controller.object, controller.property, {
|
|
25132
|
-
before: controller.__li.nextElementSibling,
|
|
25133
|
-
factoryArgs: [
|
|
25134
|
-
controller.__min,
|
|
25135
|
-
controller.__max,
|
|
25136
|
-
controller.__step
|
|
25137
|
-
]
|
|
25138
|
-
});
|
|
25139
|
-
newController.name(oldName);
|
|
25140
|
-
if (wasListening) newController.listen();
|
|
25141
|
-
return newController;
|
|
25142
|
-
}
|
|
25143
|
-
return returned;
|
|
25144
|
-
};
|
|
25145
|
-
controller.min = Common.compose(r, controller.min);
|
|
25146
|
-
controller.max = Common.compose(r, controller.max);
|
|
25147
|
-
} else if (controller instanceof BooleanController) {
|
|
25148
|
-
dom.bind(li, "click", function() {
|
|
25149
|
-
dom.fakeEvent(controller.__checkbox, "click");
|
|
25150
|
-
});
|
|
25151
|
-
dom.bind(controller.__checkbox, "click", function(e) {
|
|
25152
|
-
e.stopPropagation();
|
|
25153
|
-
});
|
|
25154
|
-
} else if (controller instanceof FunctionController) {
|
|
25155
|
-
dom.bind(li, "click", function() {
|
|
25156
|
-
dom.fakeEvent(controller.__button, "click");
|
|
25157
|
-
});
|
|
25158
|
-
dom.bind(li, "mouseover", function() {
|
|
25159
|
-
dom.addClass(controller.__button, "hover");
|
|
25160
|
-
});
|
|
25161
|
-
dom.bind(li, "mouseout", function() {
|
|
25162
|
-
dom.removeClass(controller.__button, "hover");
|
|
25163
|
-
});
|
|
25164
|
-
} else if (controller instanceof ColorController) {
|
|
25165
|
-
dom.addClass(li, "color");
|
|
25166
|
-
controller.updateDisplay = Common.compose(function(val) {
|
|
25167
|
-
li.style.borderLeftColor = controller.__color.toString();
|
|
25168
|
-
return val;
|
|
25169
|
-
}, controller.updateDisplay);
|
|
25170
|
-
controller.updateDisplay();
|
|
25171
|
-
}
|
|
25172
|
-
controller.setValue = Common.compose(function(val) {
|
|
25173
|
-
if (gui.getRoot().__preset_select && controller.isModified()) markPresetModified(gui.getRoot(), true);
|
|
25174
|
-
return val;
|
|
25175
|
-
}, controller.setValue);
|
|
25176
|
-
}
|
|
25177
|
-
function recallSavedValue(gui, controller) {
|
|
25178
|
-
var root = gui.getRoot();
|
|
25179
|
-
var matchedIndex = root.__rememberedObjects.indexOf(controller.object);
|
|
25180
|
-
if (matchedIndex !== -1) {
|
|
25181
|
-
var controllerMap = root.__rememberedObjectIndecesToControllers[matchedIndex];
|
|
25182
|
-
if (controllerMap === void 0) {
|
|
25183
|
-
controllerMap = {};
|
|
25184
|
-
root.__rememberedObjectIndecesToControllers[matchedIndex] = controllerMap;
|
|
25185
|
-
}
|
|
25186
|
-
controllerMap[controller.property] = controller;
|
|
25187
|
-
if (root.load && root.load.remembered) {
|
|
25188
|
-
var presetMap = root.load.remembered;
|
|
25189
|
-
var preset = void 0;
|
|
25190
|
-
if (presetMap[gui.preset]) preset = presetMap[gui.preset];
|
|
25191
|
-
else if (presetMap[DEFAULT_DEFAULT_PRESET_NAME]) preset = presetMap[DEFAULT_DEFAULT_PRESET_NAME];
|
|
25192
|
-
else return;
|
|
25193
|
-
if (preset[matchedIndex] && preset[matchedIndex][controller.property] !== void 0) {
|
|
25194
|
-
var value = preset[matchedIndex][controller.property];
|
|
25195
|
-
controller.initialValue = value;
|
|
25196
|
-
controller.setValue(value);
|
|
25197
|
-
}
|
|
25198
|
-
}
|
|
25199
|
-
}
|
|
25200
|
-
}
|
|
25201
|
-
function _add(gui, object, property, params) {
|
|
25202
|
-
if (object[property] === void 0) throw new Error("Object \"" + object + "\" has no property \"" + property + "\"");
|
|
25203
|
-
var controller = void 0;
|
|
25204
|
-
if (params.color) controller = new ColorController(object, property);
|
|
25205
|
-
else {
|
|
25206
|
-
var factoryArgs = [object, property].concat(params.factoryArgs);
|
|
25207
|
-
controller = ControllerFactory.apply(gui, factoryArgs);
|
|
25208
|
-
}
|
|
25209
|
-
if (params.before instanceof Controller) params.before = params.before.__li;
|
|
25210
|
-
recallSavedValue(gui, controller);
|
|
25211
|
-
dom.addClass(controller.domElement, "c");
|
|
25212
|
-
var name = document.createElement("span");
|
|
25213
|
-
dom.addClass(name, "property-name");
|
|
25214
|
-
name.innerHTML = controller.property;
|
|
25215
|
-
var container = document.createElement("div");
|
|
25216
|
-
container.appendChild(name);
|
|
25217
|
-
container.appendChild(controller.domElement);
|
|
25218
|
-
var li = addRow(gui, container, params.before);
|
|
25219
|
-
dom.addClass(li, GUI.CLASS_CONTROLLER_ROW);
|
|
25220
|
-
if (controller instanceof ColorController) dom.addClass(li, "color");
|
|
25221
|
-
else dom.addClass(li, _typeof(controller.getValue()));
|
|
25222
|
-
augmentController(gui, li, controller);
|
|
25223
|
-
gui.__controllers.push(controller);
|
|
25224
|
-
return controller;
|
|
25225
|
-
}
|
|
25226
|
-
function getLocalStorageHash(gui, key) {
|
|
25227
|
-
return document.location.href + "." + key;
|
|
25228
|
-
}
|
|
25229
|
-
function addPresetOption(gui, name, setSelected) {
|
|
25230
|
-
var opt = document.createElement("option");
|
|
25231
|
-
opt.innerHTML = name;
|
|
25232
|
-
opt.value = name;
|
|
25233
|
-
gui.__preset_select.appendChild(opt);
|
|
25234
|
-
if (setSelected) gui.__preset_select.selectedIndex = gui.__preset_select.length - 1;
|
|
25235
|
-
}
|
|
25236
|
-
function showHideExplain(gui, explain) {
|
|
25237
|
-
explain.style.display = gui.useLocalStorage ? "block" : "none";
|
|
25238
|
-
}
|
|
25239
|
-
function addSaveMenu(gui) {
|
|
25240
|
-
var div = gui.__save_row = document.createElement("li");
|
|
25241
|
-
dom.addClass(gui.domElement, "has-save");
|
|
25242
|
-
gui.__ul.insertBefore(div, gui.__ul.firstChild);
|
|
25243
|
-
dom.addClass(div, "save-row");
|
|
25244
|
-
var gears = document.createElement("span");
|
|
25245
|
-
gears.innerHTML = " ";
|
|
25246
|
-
dom.addClass(gears, "button gears");
|
|
25247
|
-
var button = document.createElement("span");
|
|
25248
|
-
button.innerHTML = "Save";
|
|
25249
|
-
dom.addClass(button, "button");
|
|
25250
|
-
dom.addClass(button, "save");
|
|
25251
|
-
var button2 = document.createElement("span");
|
|
25252
|
-
button2.innerHTML = "New";
|
|
25253
|
-
dom.addClass(button2, "button");
|
|
25254
|
-
dom.addClass(button2, "save-as");
|
|
25255
|
-
var button3 = document.createElement("span");
|
|
25256
|
-
button3.innerHTML = "Revert";
|
|
25257
|
-
dom.addClass(button3, "button");
|
|
25258
|
-
dom.addClass(button3, "revert");
|
|
25259
|
-
var select = gui.__preset_select = document.createElement("select");
|
|
25260
|
-
if (gui.load && gui.load.remembered) Common.each(gui.load.remembered, function(value, key) {
|
|
25261
|
-
addPresetOption(gui, key, key === gui.preset);
|
|
25262
|
-
});
|
|
25263
|
-
else addPresetOption(gui, DEFAULT_DEFAULT_PRESET_NAME, false);
|
|
25264
|
-
dom.bind(select, "change", function() {
|
|
25265
|
-
for (var index = 0; index < gui.__preset_select.length; index++) gui.__preset_select[index].innerHTML = gui.__preset_select[index].value;
|
|
25266
|
-
gui.preset = this.value;
|
|
25267
|
-
});
|
|
25268
|
-
div.appendChild(select);
|
|
25269
|
-
div.appendChild(gears);
|
|
25270
|
-
div.appendChild(button);
|
|
25271
|
-
div.appendChild(button2);
|
|
25272
|
-
div.appendChild(button3);
|
|
25273
|
-
if (SUPPORTS_LOCAL_STORAGE) {
|
|
25274
|
-
var explain = document.getElementById("dg-local-explain");
|
|
25275
|
-
var localStorageCheckBox = document.getElementById("dg-local-storage");
|
|
25276
|
-
var saveLocally = document.getElementById("dg-save-locally");
|
|
25277
|
-
saveLocally.style.display = "block";
|
|
25278
|
-
if (localStorage.getItem(getLocalStorageHash(gui, "isLocal")) === "true") localStorageCheckBox.setAttribute("checked", "checked");
|
|
25279
|
-
showHideExplain(gui, explain);
|
|
25280
|
-
dom.bind(localStorageCheckBox, "change", function() {
|
|
25281
|
-
gui.useLocalStorage = !gui.useLocalStorage;
|
|
25282
|
-
showHideExplain(gui, explain);
|
|
25283
|
-
});
|
|
25284
|
-
}
|
|
25285
|
-
var newConstructorTextArea = document.getElementById("dg-new-constructor");
|
|
25286
|
-
dom.bind(newConstructorTextArea, "keydown", function(e) {
|
|
25287
|
-
if (e.metaKey && (e.which === 67 || e.keyCode === 67)) SAVE_DIALOGUE.hide();
|
|
25288
|
-
});
|
|
25289
|
-
dom.bind(gears, "click", function() {
|
|
25290
|
-
newConstructorTextArea.innerHTML = JSON.stringify(gui.getSaveObject(), void 0, 2);
|
|
25291
|
-
SAVE_DIALOGUE.show();
|
|
25292
|
-
newConstructorTextArea.focus();
|
|
25293
|
-
newConstructorTextArea.select();
|
|
25294
|
-
});
|
|
25295
|
-
dom.bind(button, "click", function() {
|
|
25296
|
-
gui.save();
|
|
25297
|
-
});
|
|
25298
|
-
dom.bind(button2, "click", function() {
|
|
25299
|
-
var presetName = prompt("Enter a new preset name.");
|
|
25300
|
-
if (presetName) gui.saveAs(presetName);
|
|
25301
|
-
});
|
|
25302
|
-
dom.bind(button3, "click", function() {
|
|
25303
|
-
gui.revert();
|
|
25304
|
-
});
|
|
25305
|
-
}
|
|
25306
|
-
function addResizeHandle(gui) {
|
|
25307
|
-
var pmouseX = void 0;
|
|
25308
|
-
gui.__resize_handle = document.createElement("div");
|
|
25309
|
-
Common.extend(gui.__resize_handle.style, {
|
|
25310
|
-
width: "6px",
|
|
25311
|
-
marginLeft: "-3px",
|
|
25312
|
-
height: "200px",
|
|
25313
|
-
cursor: "ew-resize",
|
|
25314
|
-
position: "absolute"
|
|
25315
|
-
});
|
|
25316
|
-
function drag(e) {
|
|
25317
|
-
e.preventDefault();
|
|
25318
|
-
gui.width += pmouseX - e.clientX;
|
|
25319
|
-
gui.onResize();
|
|
25320
|
-
pmouseX = e.clientX;
|
|
25321
|
-
return false;
|
|
25322
|
-
}
|
|
25323
|
-
function dragStop() {
|
|
25324
|
-
dom.removeClass(gui.__closeButton, GUI.CLASS_DRAG);
|
|
25325
|
-
dom.unbind(window, "mousemove", drag);
|
|
25326
|
-
dom.unbind(window, "mouseup", dragStop);
|
|
25327
|
-
}
|
|
25328
|
-
function dragStart(e) {
|
|
25329
|
-
e.preventDefault();
|
|
25330
|
-
pmouseX = e.clientX;
|
|
25331
|
-
dom.addClass(gui.__closeButton, GUI.CLASS_DRAG);
|
|
25332
|
-
dom.bind(window, "mousemove", drag);
|
|
25333
|
-
dom.bind(window, "mouseup", dragStop);
|
|
25334
|
-
return false;
|
|
25335
|
-
}
|
|
25336
|
-
dom.bind(gui.__resize_handle, "mousedown", dragStart);
|
|
25337
|
-
dom.bind(gui.__closeButton, "mousedown", dragStart);
|
|
25338
|
-
gui.domElement.insertBefore(gui.__resize_handle, gui.domElement.firstElementChild);
|
|
25339
|
-
}
|
|
25340
|
-
function setWidth(gui, w) {
|
|
25341
|
-
gui.domElement.style.width = w + "px";
|
|
25342
|
-
if (gui.__save_row && gui.autoPlace) gui.__save_row.style.width = w + "px";
|
|
25343
|
-
if (gui.__closeButton) gui.__closeButton.style.width = w + "px";
|
|
25344
|
-
}
|
|
25345
|
-
function getCurrentPreset(gui, useInitialValues) {
|
|
25346
|
-
var toReturn = {};
|
|
25347
|
-
Common.each(gui.__rememberedObjects, function(val, index) {
|
|
25348
|
-
var savedValues = {};
|
|
25349
|
-
var controllerMap = gui.__rememberedObjectIndecesToControllers[index];
|
|
25350
|
-
Common.each(controllerMap, function(controller, property) {
|
|
25351
|
-
savedValues[property] = useInitialValues ? controller.initialValue : controller.getValue();
|
|
25352
|
-
});
|
|
25353
|
-
toReturn[index] = savedValues;
|
|
25354
|
-
});
|
|
25355
|
-
return toReturn;
|
|
25356
|
-
}
|
|
25357
|
-
function setPresetSelectIndex(gui) {
|
|
25358
|
-
for (var index = 0; index < gui.__preset_select.length; index++) if (gui.__preset_select[index].value === gui.preset) gui.__preset_select.selectedIndex = index;
|
|
25359
|
-
}
|
|
25360
|
-
function updateDisplays(controllerArray) {
|
|
25361
|
-
if (controllerArray.length !== 0) requestAnimationFrame$1$1.call(window, function() {
|
|
25362
|
-
updateDisplays(controllerArray);
|
|
25363
|
-
});
|
|
25364
|
-
Common.each(controllerArray, function(c) {
|
|
25365
|
-
c.updateDisplay();
|
|
25366
|
-
});
|
|
25367
|
-
}
|
|
25368
|
-
var GUI$1 = GUI;
|
|
25369
22869
|
var Counter_module_default = {
|
|
25370
22870
|
root: "_root_9xpag_1",
|
|
25371
22871
|
h2: "_h2_9xpag_192",
|
|
@@ -25461,7 +22961,10 @@ var Counter = () => {
|
|
|
25461
22961
|
const valueController = useRef(null);
|
|
25462
22962
|
const easeController = useRef(null);
|
|
25463
22963
|
useEffect(() => {
|
|
22964
|
+
let ctrl = null;
|
|
22965
|
+
let isCancelled = false;
|
|
25464
22966
|
const UPDATE = () => {
|
|
22967
|
+
if (!valueController.current || typeof document === "undefined") return;
|
|
25465
22968
|
valueController.current.max(CONFIG.max);
|
|
25466
22969
|
valueController.current.min(CONFIG.min);
|
|
25467
22970
|
valueController.current.step(CONFIG.step);
|
|
@@ -25471,19 +22974,26 @@ var Counter = () => {
|
|
|
25471
22974
|
document.documentElement.style.setProperty("--transition", String(CONFIG.transition));
|
|
25472
22975
|
document.documentElement.style.setProperty("--ease", `var(--${CONFIG.ease})`);
|
|
25473
22976
|
};
|
|
25474
|
-
const
|
|
25475
|
-
|
|
25476
|
-
|
|
25477
|
-
|
|
25478
|
-
|
|
25479
|
-
|
|
25480
|
-
|
|
25481
|
-
|
|
25482
|
-
|
|
25483
|
-
|
|
25484
|
-
|
|
22977
|
+
const initialize = async () => {
|
|
22978
|
+
if (typeof window === "undefined") return;
|
|
22979
|
+
const { GUI } = await import("./dat.gui.module-DscbDI-N.js");
|
|
22980
|
+
if (isCancelled) return;
|
|
22981
|
+
ctrl = new GUI({
|
|
22982
|
+
width: 320,
|
|
22983
|
+
closed: true
|
|
22984
|
+
});
|
|
22985
|
+
const valueFolder = ctrl.addFolder("Config");
|
|
22986
|
+
padController.current = valueFolder.add(CONFIG, "pad").name("Pad").onChange(UPDATE);
|
|
22987
|
+
currencyController.current = valueFolder.add(CONFIG, "currency", CONFIG.currencyOptions).name("Currency").onChange(UPDATE);
|
|
22988
|
+
transitionController.current = ctrl.add(CONFIG, "transition", 0, 5, .05).name("Transition (s)").onChange(UPDATE);
|
|
22989
|
+
easeController.current = ctrl.add(CONFIG, "ease", CONFIG.easeOptions).name("Easing").onChange(UPDATE);
|
|
22990
|
+
valueController.current = ctrl.add(CONFIG, "value", CONFIG.min, CONFIG.max, CONFIG.step).name("Value").onChange(UPDATE);
|
|
22991
|
+
UPDATE();
|
|
22992
|
+
};
|
|
22993
|
+
initialize();
|
|
25485
22994
|
return () => {
|
|
25486
|
-
|
|
22995
|
+
isCancelled = true;
|
|
22996
|
+
ctrl?.destroy();
|
|
25487
22997
|
};
|
|
25488
22998
|
}, []);
|
|
25489
22999
|
const padCount = pad ? CONFIG.max.toFixed(2).toString().length - value.toString().length : 0;
|