@anov/3d-ability 0.0.4-alpha10 → 0.0.4-alpha12
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/poi/index.d.ts +1 -1
- package/dist/poi/index.js +1 -1
- package/dist/poi/index.js.map +1 -1
- package/dist/poi/utils/css.d.ts +4 -4
- package/dist/poi/utils/css.js +12 -8
- package/dist/poi/utils/css.js.map +1 -1
- package/package.json +3 -3
package/dist/poi/index.d.ts
CHANGED
package/dist/poi/index.js
CHANGED
|
@@ -6,7 +6,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
6
6
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
7
7
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
8
8
|
import AnovSprite from "./core/Sprite";
|
|
9
|
-
import Css2D from "./core/
|
|
9
|
+
import Css2D from "./core/Css2D";
|
|
10
10
|
import { EPoiMode, EPoiType } from "./utils/type";
|
|
11
11
|
var Poi = /*#__PURE__*/function () {
|
|
12
12
|
function Poi(type) {
|
package/dist/poi/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["AnovSprite","Css2D","EPoiMode","EPoiType","Poi","type","data","option","Line","mode","sprite"],"sources":["../../src/poi/index.ts"],"sourcesContent":["import AnovSprite from './core/Sprite'\nimport Css2D from './core/
|
|
1
|
+
{"version":3,"names":["AnovSprite","Css2D","EPoiMode","EPoiType","Poi","type","data","option","Line","mode","sprite"],"sources":["../../src/poi/index.ts"],"sourcesContent":["import AnovSprite from './core/Sprite'\nimport Css2D from './core/Css2D'\nimport type { IOption } from './utils/type'\nimport { EPoiMode, EPoiType } from './utils/type'\n\nclass Poi {\n type: EPoiType\n currentObject!: AnovSprite | Css2D\n constructor(type: EPoiType) {\n this.type = type\n }\n\n create(data: any, option: IOption = {}) {\n if (this.type === EPoiType.Line || option.mode === EPoiMode.sprite)\n return new AnovSprite(this.type, data, option)\n else\n return new Css2D(this.type, data, option)\n }\n}\n\nexport default Poi\n\nexport { EPoiType }"],"mappings":";;;;;;;AAAA,OAAOA,UAAU;AACjB,OAAOC,KAAK;AAEZ,SAASC,QAAQ,EAAEC,QAAQ;AAAsB,IAE3CC,GAAG;EAGP,aAAYC,IAAc,EAAE;IAAA;IAAA;IAAA;IAC1B,IAAI,CAACA,IAAI,GAAGA,IAAI;EAClB;EAAC;IAAA;IAAA,OAED,gBAAOC,IAAS,EAAwB;MAAA,IAAtBC,MAAe,uEAAG,CAAC,CAAC;MACpC,IAAI,IAAI,CAACF,IAAI,KAAKF,QAAQ,CAACK,IAAI,IAAID,MAAM,CAACE,IAAI,KAAKP,QAAQ,CAACQ,MAAM,EAChE,OAAO,IAAIV,UAAU,CAAC,IAAI,CAACK,IAAI,EAAEC,IAAI,EAAEC,MAAM,CAAC,MAE9C,OAAO,IAAIN,KAAK,CAAC,IAAI,CAACI,IAAI,EAAEC,IAAI,EAAEC,MAAM,CAAC;IAC7C;EAAC;EAAA;AAAA;AAGH,eAAeH,GAAG;AAElB,SAASD,QAAQ"}
|
package/dist/poi/utils/css.d.ts
CHANGED
|
@@ -13,13 +13,13 @@ export declare const getBasePoiStyle: () => {
|
|
|
13
13
|
export declare const getPanelStyle: () => {
|
|
14
14
|
container: {
|
|
15
15
|
width: string;
|
|
16
|
-
height: string;
|
|
17
|
-
backgroundImage: string;
|
|
18
|
-
backgroundSize: string;
|
|
19
|
-
backgroundRepeat: string;
|
|
16
|
+
'min-height': string;
|
|
20
17
|
color: string;
|
|
21
18
|
pointerEvents: string;
|
|
22
19
|
cursor: string;
|
|
20
|
+
'border-image-source': string;
|
|
21
|
+
'border-image-slice': string;
|
|
22
|
+
'border-image-width': string;
|
|
23
23
|
};
|
|
24
24
|
title: {
|
|
25
25
|
boxSizing: string;
|
package/dist/poi/utils/css.js
CHANGED
|
@@ -16,14 +16,18 @@ export var getBasePoiStyle = function getBasePoiStyle() {
|
|
|
16
16
|
export var getPanelStyle = function getPanelStyle() {
|
|
17
17
|
return {
|
|
18
18
|
container: {
|
|
19
|
-
width: '520px',
|
|
20
|
-
height: '
|
|
21
|
-
backgroundImage:
|
|
22
|
-
backgroundSize: '100% 100%',
|
|
23
|
-
backgroundRepeat: 'no-repeat',
|
|
24
|
-
color: '#fff',
|
|
25
|
-
pointerEvents: 'auto',
|
|
26
|
-
cursor: 'pointer'
|
|
19
|
+
'width': '520px',
|
|
20
|
+
'min-height': '220px',
|
|
21
|
+
// 'backgroundImage': `url(${PANEL_IMG})`,
|
|
22
|
+
// 'backgroundSize': '100% 100%',
|
|
23
|
+
// 'backgroundRepeat': 'no-repeat',
|
|
24
|
+
'color': '#fff',
|
|
25
|
+
'pointerEvents': 'auto',
|
|
26
|
+
'cursor': 'pointer',
|
|
27
|
+
'border-image-source': "url(".concat(PANEL_IMG, ")"),
|
|
28
|
+
'border-image-slice': '100 38 10 fill',
|
|
29
|
+
/* 九宫格裁剪,填充方式为拉伸 */
|
|
30
|
+
'border-image-width': '100px 38px 10px'
|
|
27
31
|
},
|
|
28
32
|
title: {
|
|
29
33
|
boxSizing: 'border-box',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["PANEL_IMG","PERSON_IMG","getBasePoiStyle","backgroundImage","minWidth","backgroundSize","backgroundRepeat","fontSize","color","fontWeight","boxSizing","padding","pointerEvents","getPanelStyle","container","
|
|
1
|
+
{"version":3,"names":["PANEL_IMG","PERSON_IMG","getBasePoiStyle","backgroundImage","minWidth","backgroundSize","backgroundRepeat","fontSize","color","fontWeight","boxSizing","padding","pointerEvents","getPanelStyle","container","title","content","lineHeight"],"sources":["../../../src/poi/utils/css.ts"],"sourcesContent":["import { PANEL_IMG, PERSON_IMG } from './base64'\n\nexport const getBasePoiStyle = () => {\n return {\n backgroundImage: `url(${PERSON_IMG})`,\n minWidth: '110px',\n backgroundSize: '100% 100%',\n backgroundRepeat: 'no-repeat',\n fontSize: '18px',\n color: '#fff',\n fontWeight: 'bold',\n boxSizing: 'border-box',\n padding: '2px 20px 10px 45px',\n pointerEvents: 'auto',\n }\n}\n\nexport const getPanelStyle = () => {\n return {\n container: {\n 'width': '520px',\n 'min-height': '220px',\n // 'backgroundImage': `url(${PANEL_IMG})`,\n // 'backgroundSize': '100% 100%',\n // 'backgroundRepeat': 'no-repeat',\n 'color': '#fff',\n 'pointerEvents': 'auto',\n 'cursor': 'pointer',\n 'border-image-source': `url(${PANEL_IMG})`,\n 'border-image-slice': '100 38 10 fill', /* 九宫格裁剪,填充方式为拉伸 */\n 'border-image-width': '100px 38px 10px',\n },\n title: {\n boxSizing: 'border-box',\n padding: '8px 15px 0 35px',\n fontSize: '26px',\n fontWeight: 'bold',\n },\n content: {\n padding: '26px 24px 10px 35px',\n fontSize: '16px',\n lineHeight: '30px',\n },\n }\n}"],"mappings":"AAAA,SAASA,SAAS,EAAEC,UAAU;AAE9B,OAAO,IAAMC,eAAe,GAAG,SAAlBA,eAAe,GAAS;EACnC,OAAO;IACLC,eAAe,gBAASF,UAAU,MAAG;IACrCG,QAAQ,EAAE,OAAO;IACjBC,cAAc,EAAE,WAAW;IAC3BC,gBAAgB,EAAE,WAAW;IAC7BC,QAAQ,EAAE,MAAM;IAChBC,KAAK,EAAE,MAAM;IACbC,UAAU,EAAE,MAAM;IAClBC,SAAS,EAAE,YAAY;IACvBC,OAAO,EAAE,oBAAoB;IAC7BC,aAAa,EAAE;EACjB,CAAC;AACH,CAAC;AAED,OAAO,IAAMC,aAAa,GAAG,SAAhBA,aAAa,GAAS;EACjC,OAAO;IACLC,SAAS,EAAE;MACT,OAAO,EAAE,OAAO;MAChB,YAAY,EAAE,OAAO;MACrB;MACA;MACA;MACA,OAAO,EAAE,MAAM;MACf,eAAe,EAAE,MAAM;MACvB,QAAQ,EAAE,SAAS;MACnB,qBAAqB,gBAASd,SAAS,MAAG;MAC1C,oBAAoB,EAAE,gBAAgB;MAAE;MACxC,oBAAoB,EAAE;IACxB,CAAC;IACDe,KAAK,EAAE;MACLL,SAAS,EAAE,YAAY;MACvBC,OAAO,EAAE,iBAAiB;MAC1BJ,QAAQ,EAAE,MAAM;MAChBE,UAAU,EAAE;IACd,CAAC;IACDO,OAAO,EAAE;MACPL,OAAO,EAAE,qBAAqB;MAC9BJ,QAAQ,EAAE,MAAM;MAChBU,UAAU,EAAE;IACd;EACF,CAAC;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anov/3d-ability",
|
|
3
|
-
"version": "0.0.4-
|
|
3
|
+
"version": "0.0.4-alpha12",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "",
|
|
6
6
|
"license": "MIT",
|
|
@@ -23,10 +23,10 @@
|
|
|
23
23
|
"suncalc": "^1.9.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@anov/3d-core": "^0.0.4-
|
|
26
|
+
"@anov/3d-core": "^0.0.4-alpha21"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
|
-
"@anov/3d-core": "^0.0.4-
|
|
29
|
+
"@anov/3d-core": "^0.0.4-alpha21"
|
|
30
30
|
},
|
|
31
31
|
"scripts": {
|
|
32
32
|
"build": "father build",
|