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

@yandex/ymaps3-default-ui-theme

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@yandex/ymaps3-default-ui-theme

Yandex Maps JS API 3.0 example @yandex/ymaps3-default-ui-theme

  • 0.0.1-beta.4
  • npm
  • Socket score

Version published
Weekly downloads
360
increased by62.16%
Maintainers
1
Weekly downloads
 
Created
Source

@yandex/ymaps3-default-ui-theme package


Yandex JS API package

npm version npm Build Status

How use

The package is located in the dist folder:

  • dist/types TypeScript types
  • dist/esm es6 modules for direct connection in your project
  • dist/index.js Yandex JS Module

Recommended use YMapButtonExample as usual npm package:

npm i @yandex/ymaps3-default-ui-theme

and dynamic import

await ymaps3.ready;

// ...

const {YMapButtonExample} = await import('@yandex/ymaps3-default-ui-theme');

// ...

map.addChild(new YMapButtonExample(props));

Usage without npm

You can use CDN with module loading handler in JS API on your page.

Just use ymaps3.import:

const pkg = await ymaps3.import('@yandex/ymaps3-default-ui-theme');

By default ymaps3.import can load self modules. If you want also load your package, should add loader:

// Add loader at start loaders array
ymaps3.import.loaders.unshift(async (pkg) => {
    // Process only your package
    if (!pkg.includes('@yandex/ymaps3-default-ui-theme')) return;

    // Load script directly. You can use another CDN
    await ymaps3.import.script(`https://unpkg.com/${pkg}/dist/index.js`);

    // Return result object
    return window['@yandex/ymaps3-default-ui-theme'];
});

FAQs

Package last updated on 06 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc