@naivemap/mapbox-gl-echarts-layer 0.4.0-alpha.0 → 0.4.0-alpha.1

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.
@@ -0,0 +1 @@
1
+ (function(t,a){typeof exports=="object"&&typeof module<"u"?module.exports=a(require("@naivemap/echarts-layer-core"),require("@naivemap/map-gl-layer-adaptor")):typeof define=="function"&&define.amd?define(["@naivemap/echarts-layer-core","@naivemap/map-gl-layer-adaptor"],a):(t=typeof globalThis<"u"?globalThis:t||self,t.MapboxEChartsLayer=a(t.EChartsLayerCore,t.mapGlLayerAdaptor))})(this,function(t,a){"use strict";class o{id;type;renderingMode;_core;_adaptor;constructor(e,r){this.id=e,this.type="custom",this.renderingMode="2d",this._core=new t(r),this._adaptor=a.createMapboxLayerAdaptor(this._core,{id:e,renderingMode:this.renderingMode})}onAdd(e,r){this._adaptor.onAdd(e,r)}onRemove(e,r){this._adaptor.onRemove(e,r)}setOption(e,r){this._core.setOption(e,r)}render(e,r){this._adaptor.render(e,r)}}return o});
@@ -1,4 +1,4 @@
1
- import { ECOption } from '../../echarts-layer-core/src/index.ts';
1
+ import { ECOption } from '@naivemap/echarts-layer-core';
2
2
  import { CustomLayerInterface, Map } from 'mapbox-gl';
3
3
  /**
4
4
  * A custom Mapbox GL JS layer that renders Apache ECharts visualizations.
@@ -1,3 +1,3 @@
1
1
  import { default as EChartsLayer } from './EChartsLayer';
2
- export type { ECOption } from '../../echarts-layer-core/src/index.ts';
2
+ export type { ECOption } from '@naivemap/echarts-layer-core';
3
3
  export default EChartsLayer;
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@naivemap/mapbox-gl-echarts-layer",
3
- "version": "0.4.0-alpha.0",
3
+ "version": "0.4.0-alpha.1",
4
4
  "description": "A Mapbox GL JS layer to integrate Apache ECharts' Lines and Scatter charts.",
5
- "main": "./dist/index.cjs",
6
- "module": "./dist/index.js",
5
+ "main": "./dist/index.umd.js",
6
+ "module": "./dist/index.es.js",
7
7
  "type": "module",
8
8
  "exports": {
9
9
  ".": {
10
10
  "types": "./dist/index.d.ts",
11
- "import": "./dist/index.js",
12
- "require": "./dist/index.cjs"
11
+ "import": "./dist/index.es.js",
12
+ "require": "./dist/index.umd.js"
13
13
  }
14
14
  },
15
15
  "files": [
@@ -30,8 +30,8 @@
30
30
  },
31
31
  "sideEffects": false,
32
32
  "dependencies": {
33
- "@naivemap/echarts-layer-core": "0.1.0",
34
- "@naivemap/map-gl-layer-adaptor": "0.1.0"
33
+ "@naivemap/echarts-layer-core": "0.2.0-alpha.0",
34
+ "@naivemap/map-gl-layer-adaptor": "0.2.0-alpha.0"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "echarts": "^5.0.0",
package/dist/index.cjs DELETED
@@ -1 +0,0 @@
1
- "use strict";const t=require("@naivemap/echarts-layer-core"),o=require("@naivemap/map-gl-layer-adaptor");class s{id;type;renderingMode;_core;_adaptor;constructor(e,r){this.id=e,this.type="custom",this.renderingMode="2d",this._core=new t(r),this._adaptor=o.createMapboxLayerAdaptor(this._core,{id:e,renderingMode:this.renderingMode})}onAdd(e,r){this._adaptor.onAdd(e,r)}onRemove(e,r){this._adaptor.onRemove(e,r)}setOption(e,r){this._core.setOption(e,r)}render(e,r){this._adaptor.render(e,r)}}module.exports=s;
File without changes