@antv/g-plugin-3d
Advanced tools
Comparing version 1.0.0-alpha.3 to 1.0.0-alpha.4
@@ -1,5 +0,6 @@ | ||
import { GeometryAABBUpdater, AABB, ShapeAttrs } from '@antv/g'; | ||
export declare class CubeUpdater implements GeometryAABBUpdater { | ||
import { GeometryAABBUpdater, AABB } from '@antv/g'; | ||
import { CubeStyleProps } from '../Cube'; | ||
export declare class CubeUpdater implements GeometryAABBUpdater<CubeStyleProps> { | ||
dependencies: string[]; | ||
update(attributes: ShapeAttrs, aabb: AABB): void; | ||
update(attributes: CubeStyleProps, aabb: AABB): void; | ||
} |
@@ -1,5 +0,6 @@ | ||
import { GeometryAABBUpdater, AABB, ShapeAttrs } from '@antv/g'; | ||
export declare class GridUpdater implements GeometryAABBUpdater { | ||
import { GeometryAABBUpdater, AABB } from '@antv/g'; | ||
import { GridStyleProps } from '../Grid'; | ||
export declare class GridUpdater implements GeometryAABBUpdater<GridStyleProps> { | ||
dependencies: string[]; | ||
update(attributes: ShapeAttrs, aabb: AABB): void; | ||
update(attributes: GridStyleProps, aabb: AABB): void; | ||
} |
@@ -1,5 +0,6 @@ | ||
import { GeometryAABBUpdater, AABB, ShapeAttrs } from '@antv/g'; | ||
export declare class SphereUpdater implements GeometryAABBUpdater { | ||
import { GeometryAABBUpdater, AABB } from '@antv/g'; | ||
import { SphereStyleProps } from '../Sphere'; | ||
export declare class SphereUpdater implements GeometryAABBUpdater<SphereStyleProps> { | ||
dependencies: string[]; | ||
update(attributes: ShapeAttrs, aabb: AABB): void; | ||
update(attributes: SphereStyleProps, aabb: AABB): void; | ||
} |
@@ -1,4 +0,13 @@ | ||
import { DisplayObject, ShapeCfg } from '@antv/g'; | ||
export declare class Cube extends DisplayObject { | ||
constructor({ attrs, ...rest }: ShapeCfg); | ||
import { DisplayObject, BaseStyleProps, DisplayObjectConfig } from '@antv/g'; | ||
export interface CubeStyleProps extends BaseStyleProps { | ||
height: number; | ||
width: number; | ||
depth: number; | ||
widthSegments?: number; | ||
heightSegments?: number; | ||
depthSegments?: number; | ||
map?: string; | ||
} | ||
export declare class Cube extends DisplayObject<CubeStyleProps> { | ||
constructor({ style, ...rest }: DisplayObjectConfig<CubeStyleProps>); | ||
} |
@@ -1,4 +0,8 @@ | ||
import { DisplayObject, ShapeCfg } from '@antv/g'; | ||
export declare class Grid extends DisplayObject { | ||
constructor({ attrs, ...rest }: ShapeCfg); | ||
import { BaseStyleProps, DisplayObject, DisplayObjectConfig } from '@antv/g'; | ||
export interface GridStyleProps extends BaseStyleProps { | ||
height: number; | ||
width: number; | ||
} | ||
export declare class Grid extends DisplayObject<GridStyleProps> { | ||
constructor({ style, ...rest }: DisplayObjectConfig<GridStyleProps>); | ||
} |
@@ -92,16 +92,12 @@ import { Renderable, DisplayObject, container, GeometryAABBUpdater } from '@antv/g'; | ||
var __spreadArrays = (undefined && undefined.__spreadArrays) || function () { | ||
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; | ||
for (var r = Array(s), k = 0, i = 0; i < il; i++) | ||
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) | ||
r[k] = a[j]; | ||
return r; | ||
var __spreadArray = (undefined && undefined.__spreadArray) || function (to, from) { | ||
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) | ||
to[j] = from[i]; | ||
return to; | ||
}; | ||
var __spreadArrays$1 = (undefined && undefined.__spreadArrays) || function () { | ||
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; | ||
for (var r = Array(s), k = 0, i = 0; i < il; i++) | ||
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) | ||
r[k] = a[j]; | ||
return r; | ||
var __spreadArray$1 = (undefined && undefined.__spreadArray) || function (to, from) { | ||
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) | ||
to[j] = from[i]; | ||
return to; | ||
}; | ||
@@ -145,2 +141,7 @@ | ||
}; | ||
var __spreadArray$2 = (undefined && undefined.__spreadArray) || function (to, from) { | ||
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) | ||
to[j] = from[i]; | ||
return to; | ||
}; | ||
@@ -1421,3 +1422,3 @@ var ContainerModule = (function () { | ||
var _excluded = ["attrs"]; | ||
var _excluded = ["style"]; | ||
var Cube = /*#__PURE__*/function (_DisplayObject) { | ||
@@ -1429,3 +1430,3 @@ _inherits(Cube, _DisplayObject); | ||
function Cube(_ref) { | ||
var attrs = _ref.attrs, | ||
var style = _ref.style, | ||
rest = _objectWithoutProperties(_ref, _excluded); | ||
@@ -1436,4 +1437,12 @@ | ||
return _super.call(this, _objectSpread2({ | ||
// @ts-ignore | ||
type: SHAPE_3D.Cube, | ||
attrs: _objectSpread2({}, attrs) | ||
style: _objectSpread2({ | ||
height: 0, | ||
width: 0, | ||
depth: 0, | ||
widthSegments: 1, | ||
heightSegments: 1, | ||
depthSegments: 1 | ||
}, style) | ||
}, rest)); | ||
@@ -1445,3 +1454,3 @@ } | ||
var _excluded$1 = ["attrs"]; | ||
var _excluded$1 = ["style"]; | ||
var Sphere = /*#__PURE__*/function (_DisplayObject) { | ||
@@ -1453,3 +1462,3 @@ _inherits(Sphere, _DisplayObject); | ||
function Sphere(_ref) { | ||
var attrs = _ref.attrs, | ||
var style = _ref.style, | ||
rest = _objectWithoutProperties(_ref, _excluded$1); | ||
@@ -1460,4 +1469,5 @@ | ||
return _super.call(this, _objectSpread2({ | ||
// @ts-ignore | ||
type: SHAPE_3D.Sphere, | ||
attrs: _objectSpread2({}, attrs) | ||
style: _objectSpread2({}, style) | ||
}, rest)); | ||
@@ -1469,3 +1479,3 @@ } | ||
var _excluded$2 = ["attrs"]; | ||
var _excluded$2 = ["style"]; | ||
var Grid = /*#__PURE__*/function (_DisplayObject) { | ||
@@ -1477,3 +1487,3 @@ _inherits(Grid, _DisplayObject); | ||
function Grid(_ref) { | ||
var attrs = _ref.attrs, | ||
var style = _ref.style, | ||
rest = _objectWithoutProperties(_ref, _excluded$2); | ||
@@ -1484,4 +1494,8 @@ | ||
return _super.call(this, _objectSpread2({ | ||
// @ts-ignore | ||
type: SHAPE_3D.Grid, | ||
attrs: _objectSpread2({}, attrs) | ||
style: _objectSpread2({ | ||
height: 0, | ||
width: 0 | ||
}, style) | ||
}, rest)); | ||
@@ -1488,0 +1502,0 @@ } |
@@ -96,16 +96,12 @@ 'use strict'; | ||
var __spreadArrays = (undefined && undefined.__spreadArrays) || function () { | ||
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; | ||
for (var r = Array(s), k = 0, i = 0; i < il; i++) | ||
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) | ||
r[k] = a[j]; | ||
return r; | ||
var __spreadArray = (undefined && undefined.__spreadArray) || function (to, from) { | ||
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) | ||
to[j] = from[i]; | ||
return to; | ||
}; | ||
var __spreadArrays$1 = (undefined && undefined.__spreadArrays) || function () { | ||
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; | ||
for (var r = Array(s), k = 0, i = 0; i < il; i++) | ||
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) | ||
r[k] = a[j]; | ||
return r; | ||
var __spreadArray$1 = (undefined && undefined.__spreadArray) || function (to, from) { | ||
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) | ||
to[j] = from[i]; | ||
return to; | ||
}; | ||
@@ -149,2 +145,7 @@ | ||
}; | ||
var __spreadArray$2 = (undefined && undefined.__spreadArray) || function (to, from) { | ||
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) | ||
to[j] = from[i]; | ||
return to; | ||
}; | ||
@@ -1425,3 +1426,3 @@ var ContainerModule = (function () { | ||
var _excluded = ["attrs"]; | ||
var _excluded = ["style"]; | ||
var Cube = /*#__PURE__*/function (_DisplayObject) { | ||
@@ -1433,3 +1434,3 @@ _inherits(Cube, _DisplayObject); | ||
function Cube(_ref) { | ||
var attrs = _ref.attrs, | ||
var style = _ref.style, | ||
rest = _objectWithoutProperties(_ref, _excluded); | ||
@@ -1440,4 +1441,12 @@ | ||
return _super.call(this, _objectSpread2({ | ||
// @ts-ignore | ||
type: SHAPE_3D.Cube, | ||
attrs: _objectSpread2({}, attrs) | ||
style: _objectSpread2({ | ||
height: 0, | ||
width: 0, | ||
depth: 0, | ||
widthSegments: 1, | ||
heightSegments: 1, | ||
depthSegments: 1 | ||
}, style) | ||
}, rest)); | ||
@@ -1449,3 +1458,3 @@ } | ||
var _excluded$1 = ["attrs"]; | ||
var _excluded$1 = ["style"]; | ||
var Sphere = /*#__PURE__*/function (_DisplayObject) { | ||
@@ -1457,3 +1466,3 @@ _inherits(Sphere, _DisplayObject); | ||
function Sphere(_ref) { | ||
var attrs = _ref.attrs, | ||
var style = _ref.style, | ||
rest = _objectWithoutProperties(_ref, _excluded$1); | ||
@@ -1464,4 +1473,5 @@ | ||
return _super.call(this, _objectSpread2({ | ||
// @ts-ignore | ||
type: SHAPE_3D.Sphere, | ||
attrs: _objectSpread2({}, attrs) | ||
style: _objectSpread2({}, style) | ||
}, rest)); | ||
@@ -1473,3 +1483,3 @@ } | ||
var _excluded$2 = ["attrs"]; | ||
var _excluded$2 = ["style"]; | ||
var Grid = /*#__PURE__*/function (_DisplayObject) { | ||
@@ -1481,3 +1491,3 @@ _inherits(Grid, _DisplayObject); | ||
function Grid(_ref) { | ||
var attrs = _ref.attrs, | ||
var style = _ref.style, | ||
rest = _objectWithoutProperties(_ref, _excluded$2); | ||
@@ -1488,4 +1498,8 @@ | ||
return _super.call(this, _objectSpread2({ | ||
// @ts-ignore | ||
type: SHAPE_3D.Grid, | ||
attrs: _objectSpread2({}, attrs) | ||
style: _objectSpread2({ | ||
height: 0, | ||
width: 0 | ||
}, style) | ||
}, rest)); | ||
@@ -1492,0 +1506,0 @@ } |
@@ -1,9 +0,10 @@ | ||
import { DisplayObject, ShapeAttrs } from '@antv/g'; | ||
import { DisplayObject } from '@antv/g'; | ||
import { ModelBuilder } from '@antv/g-plugin-webgl-renderer'; | ||
import { CubeStyleProps } from '../Cube'; | ||
export declare class CubeModelBuilder implements ModelBuilder { | ||
private shaderModule; | ||
private texturePool; | ||
onAttributeChanged(object: DisplayObject, name: string, value: any): Promise<void>; | ||
prepareModel(object: DisplayObject): Promise<void>; | ||
protected buildAttributes(attributes: ShapeAttrs): { | ||
onAttributeChanged(object: DisplayObject<CubeStyleProps>, name: string, value: any): Promise<void>; | ||
prepareModel(object: DisplayObject<CubeStyleProps>): Promise<void>; | ||
protected buildAttributes(attributes: CubeStyleProps): { | ||
indices: number[]; | ||
@@ -10,0 +11,0 @@ positions: number[]; |
import { DisplayObject } from '@antv/g'; | ||
import { ModelBuilder } from '@antv/g-plugin-webgl-renderer'; | ||
import { GridStyleProps } from '../Grid'; | ||
export declare class GridModelBuilder implements ModelBuilder { | ||
private shaderModule; | ||
onAttributeChanged(object: DisplayObject, name: string, value: any): Promise<void>; | ||
prepareModel(object: DisplayObject): Promise<void>; | ||
onAttributeChanged(object: DisplayObject<GridStyleProps>, name: string, value: any): Promise<void>; | ||
prepareModel(object: DisplayObject<GridStyleProps>): Promise<void>; | ||
} |
@@ -1,3 +0,4 @@ | ||
import { DisplayObject, ShapeAttrs } from '@antv/g'; | ||
import { DisplayObject } from '@antv/g'; | ||
import { ModelBuilder } from '@antv/g-plugin-webgl-renderer'; | ||
import { SphereStyleProps } from '../Sphere'; | ||
/** | ||
@@ -9,5 +10,5 @@ * Render image with texture2d | ||
private texturePool; | ||
onAttributeChanged(object: DisplayObject, name: string, value: any): Promise<void>; | ||
prepareModel(object: DisplayObject): Promise<void>; | ||
protected buildAttributes(attributes: ShapeAttrs): { | ||
onAttributeChanged(object: DisplayObject<SphereStyleProps>, name: string, value: any): Promise<void>; | ||
prepareModel(object: DisplayObject<SphereStyleProps>): Promise<void>; | ||
protected buildAttributes(attributes: SphereStyleProps): { | ||
indices: number[]; | ||
@@ -14,0 +15,0 @@ positions: number[]; |
@@ -1,4 +0,13 @@ | ||
import { DisplayObject, ShapeCfg } from '@antv/g'; | ||
export declare class Sphere extends DisplayObject { | ||
constructor({ attrs, ...rest }: ShapeCfg); | ||
import { DisplayObject, DisplayObjectConfig, BaseStyleProps } from '@antv/g'; | ||
export interface SphereStyleProps extends BaseStyleProps { | ||
height?: number; | ||
width?: number; | ||
depth?: number; | ||
widthSegments?: number; | ||
heightSegments?: number; | ||
depthSegments?: number; | ||
map?: string; | ||
} | ||
export declare class Sphere extends DisplayObject<SphereStyleProps> { | ||
constructor({ style, ...rest }: DisplayObjectConfig<SphereStyleProps>); | ||
} |
{ | ||
"name": "@antv/g-plugin-3d", | ||
"version": "1.0.0-alpha.3", | ||
"version": "1.0.0-alpha.4", | ||
"description": "Provide 3D extension for G", | ||
@@ -43,8 +43,8 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@antv/g": "^1.0.0-alpha.3", | ||
"@antv/g-plugin-dom-interaction": "^1.0.0-alpha.3", | ||
"@antv/g-plugin-webgl-renderer": "^1.0.0-alpha.3", | ||
"@antv/g": "^1.0.0-alpha.4", | ||
"@antv/g-plugin-dom-interaction": "^1.0.0-alpha.4", | ||
"@antv/g-plugin-webgl-renderer": "^1.0.0-alpha.4", | ||
"@antv/util": "^2.0.13" | ||
}, | ||
"gitHead": "c9511b4923b5575a3d301012989b860618bbc10c" | ||
"gitHead": "89b6ee070dbb7fdc8dd9c07c6466fa5961caf7be" | ||
} |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
114862
2731