@antv/g 5.0.21 → 5.0.22-alpha.2
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/es/AbstractRenderer.js +1 -3
- package/es/Canvas.js +7 -11
- package/es/DisplayObjectPool.js +1 -3
- package/es/camera/Camera.d.ts +12 -7
- package/es/camera/Camera.js +54 -24
- package/es/camera/Landmark.d.ts +2 -0
- package/es/camera/Landmark.js +10 -6
- package/es/components/Cullable.js +1 -3
- package/es/components/Geometry.js +1 -3
- package/es/components/Renderable.js +1 -3
- package/es/components/Sortable.js +1 -3
- package/es/components/Transform.js +1 -3
- package/es/css/LayoutRegistry.js +1 -3
- package/es/css/StyleValueRegistry.js +1 -3
- package/es/css/cssom/CSSColorValue.js +1 -3
- package/es/css/cssom/CSSGradientValue.js +6 -8
- package/es/css/cssom/CSSKeywordValue.js +1 -3
- package/es/css/cssom/CSSMathInvert.js +1 -3
- package/es/css/cssom/CSSMathMax.js +1 -3
- package/es/css/cssom/CSSMathMin.js +1 -3
- package/es/css/cssom/CSSMathNegate.js +1 -3
- package/es/css/cssom/CSSMathProduct.js +1 -3
- package/es/css/cssom/CSSMathSum.js +1 -3
- package/es/css/cssom/CSSMathValue.js +1 -3
- package/es/css/cssom/CSSMathVariadic.js +1 -3
- package/es/css/cssom/CSSNumericValue.js +1 -3
- package/es/css/cssom/CSSNumericValueType.d.ts +1 -1
- package/es/css/cssom/CSSNumericValueType.js +1 -3
- package/es/css/cssom/CSSRGB.js +2 -4
- package/es/css/cssom/CSSStyleValue.d.ts +2 -2
- package/es/css/cssom/CSSStyleValue.js +2 -4
- package/es/css/cssom/CSSTransformComponent.js +1 -3
- package/es/css/cssom/CSSTransformValue.js +1 -3
- package/es/css/cssom/CSSTranslate.js +1 -3
- package/es/css/cssom/CSSUnitValue.js +2 -4
- package/es/css/parser/color.js +1 -1
- package/es/css/parser/dimension.js +1 -1
- package/es/css/parser/transform.d.ts +1 -1
- package/es/css/parser/transform.js +2 -2
- package/es/css/properties/CSSPropertyAnchor.js +1 -3
- package/es/css/properties/CSSPropertyClipPath.js +1 -3
- package/es/css/properties/CSSPropertyColor.js +1 -3
- package/es/css/properties/CSSPropertyFilter.js +1 -3
- package/es/css/properties/CSSPropertyLengthOrPercentage.js +1 -3
- package/es/css/properties/CSSPropertyLineDash.js +1 -3
- package/es/css/properties/CSSPropertyLocalPosition.js +1 -3
- package/es/css/properties/CSSPropertyOffsetDistance.js +1 -3
- package/es/css/properties/CSSPropertyOffsetPath.js +1 -3
- package/es/css/properties/CSSPropertyOpacity.js +1 -3
- package/es/css/properties/CSSPropertyPath.js +1 -3
- package/es/css/properties/CSSPropertyPoints.js +1 -3
- package/es/css/properties/CSSPropertyShadowBlur.js +1 -3
- package/es/css/properties/CSSPropertyText.js +2 -4
- package/es/css/properties/CSSPropertyTextTransform.js +1 -3
- package/es/css/properties/CSSPropertyTransform.js +1 -3
- package/es/css/properties/CSSPropertyTransformOrigin.js +1 -3
- package/es/css/properties/CSSPropertyVisibility.js +1 -3
- package/es/css/properties/CSSPropertyZIndex.js +1 -3
- package/es/display-objects/Circle.js +1 -3
- package/es/display-objects/CustomElement.js +1 -3
- package/es/display-objects/DisplayObject.js +10 -8
- package/es/display-objects/Ellipse.js +1 -3
- package/es/display-objects/Group.js +1 -3
- package/es/display-objects/HTML.js +3 -6
- package/es/display-objects/Image.js +1 -3
- package/es/display-objects/Line.js +1 -3
- package/es/display-objects/Path.js +1 -3
- package/es/display-objects/Polygon.js +1 -3
- package/es/display-objects/Polyline.js +1 -3
- package/es/display-objects/Rect.js +1 -3
- package/es/display-objects/Text.js +3 -6
- package/es/dom/Animation.js +2 -4
- package/es/dom/AnimationEffectTiming.js +1 -3
- package/es/dom/AnimationEvent.js +1 -3
- package/es/dom/AnimationTimeline.js +1 -3
- package/es/dom/CustomElementRegistry.js +1 -3
- package/es/dom/CustomEvent.js +1 -3
- package/es/dom/Document.js +1 -3
- package/es/dom/Element.js +4 -6
- package/es/dom/EventTarget.js +3 -5
- package/es/dom/FederatedEvent.js +1 -3
- package/es/dom/FederatedMouseEvent.js +1 -3
- package/es/dom/FederatedPointerEvent.js +1 -3
- package/es/dom/FederatedWheelEvent.js +1 -3
- package/es/dom/KeyframeEffect.js +1 -3
- package/es/dom/KeyframeList.js +1 -1
- package/es/dom/MutationEvent.js +1 -3
- package/es/dom/MutationObserver.js +3 -10
- package/es/dom/MutationRecord.js +1 -3
- package/es/dom/Node.js +2 -4
- package/es/plugins/CullingPlugin.js +1 -3
- package/es/plugins/DirtyCheckPlugin.js +1 -3
- package/es/plugins/EventPlugin.js +5 -4
- package/es/plugins/FrustumCullingStrategy.js +1 -3
- package/es/plugins/PrepareRendererPlugin.js +1 -3
- package/es/services/EventService.js +26 -7
- package/es/services/OffscreenCanvasCreator.js +1 -3
- package/es/services/RenderingContext.d.ts +2 -1
- package/es/services/RenderingContext.js +3 -1
- package/es/services/RenderingService.js +1 -3
- package/es/services/SceneGraphSelector.js +1 -3
- package/es/services/SceneGraphService.d.ts +2 -1
- package/es/services/SceneGraphService.js +3 -5
- package/es/services/TextService.js +3 -5
- package/es/services/aabb/CircleUpdater.js +1 -3
- package/es/services/aabb/EllipseUpdater.js +1 -3
- package/es/services/aabb/LineUpdater.js +1 -3
- package/es/services/aabb/PathUpdater.js +1 -3
- package/es/services/aabb/PolylineUpdater.js +1 -3
- package/es/services/aabb/RectUpdater.js +1 -3
- package/es/services/aabb/TextUpdater.js +1 -3
- package/es/services/aabb/interfaces.d.ts +3 -2
- package/es/services/aabb/interfaces.js +3 -2
- package/es/shapes/AABB.js +1 -3
- package/es/shapes/BoundingSphere.js +1 -3
- package/es/shapes/Frustum.js +1 -3
- package/es/shapes/Plane.js +1 -3
- package/es/shapes/Point.js +1 -3
- package/es/shapes/Ray.js +1 -3
- package/es/shapes/Rectangle.js +1 -3
- package/es/types.d.ts +2 -1
- package/es/types.js +2 -1
- package/es/utils/custom-easing.d.ts +0 -9
- package/es/utils/custom-easing.js +38 -54
- package/es/utils/path.d.ts +1 -1
- package/es/utils/path.js +3 -3
- package/es/utils/text.js +3 -3
- package/lib/AbstractRenderer.js +1 -3
- package/lib/Canvas.js +8 -12
- package/lib/DisplayObjectPool.js +1 -3
- package/lib/camera/Camera.d.ts +12 -7
- package/lib/camera/Camera.js +59 -25
- package/lib/camera/Landmark.d.ts +2 -0
- package/lib/camera/Landmark.js +10 -6
- package/lib/components/Cullable.js +2 -4
- package/lib/components/Geometry.js +1 -3
- package/lib/components/Renderable.js +1 -3
- package/lib/components/Sortable.js +1 -3
- package/lib/components/Transform.js +1 -3
- package/lib/css/LayoutRegistry.js +1 -3
- package/lib/css/StyleValueRegistry.js +1 -3
- package/lib/css/cssom/CSSColorValue.js +1 -3
- package/lib/css/cssom/CSSGradientValue.js +7 -9
- package/lib/css/cssom/CSSKeywordValue.js +1 -3
- package/lib/css/cssom/CSSMathInvert.js +1 -3
- package/lib/css/cssom/CSSMathMax.js +1 -3
- package/lib/css/cssom/CSSMathMin.js +1 -3
- package/lib/css/cssom/CSSMathNegate.js +1 -3
- package/lib/css/cssom/CSSMathOperator.js +1 -1
- package/lib/css/cssom/CSSMathProduct.js +1 -3
- package/lib/css/cssom/CSSMathSum.js +1 -3
- package/lib/css/cssom/CSSMathValue.js +1 -3
- package/lib/css/cssom/CSSMathVariadic.js +2 -4
- package/lib/css/cssom/CSSNumericValue.js +1 -3
- package/lib/css/cssom/CSSNumericValueType.d.ts +1 -1
- package/lib/css/cssom/CSSNumericValueType.js +3 -5
- package/lib/css/cssom/CSSRGB.js +2 -4
- package/lib/css/cssom/CSSStyleValue.d.ts +2 -2
- package/lib/css/cssom/CSSStyleValue.js +108 -110
- package/lib/css/cssom/CSSTransformComponent.js +2 -4
- package/lib/css/cssom/CSSTransformValue.js +1 -3
- package/lib/css/cssom/CSSTranslate.js +1 -3
- package/lib/css/cssom/CSSUnitValue.js +2 -4
- package/lib/css/cssom/types.js +1 -1
- package/lib/css/parser/color.js +3 -3
- package/lib/css/parser/dimension.js +6 -7
- package/lib/css/parser/numeric.js +3 -3
- package/lib/css/parser/path.js +1 -1
- package/lib/css/parser/transform.d.ts +1 -1
- package/lib/css/parser/transform.js +11 -11
- package/lib/css/properties/CSSPropertyAnchor.js +1 -3
- package/lib/css/properties/CSSPropertyClipPath.js +1 -3
- package/lib/css/properties/CSSPropertyColor.js +1 -3
- package/lib/css/properties/CSSPropertyFilter.js +1 -3
- package/lib/css/properties/CSSPropertyLengthOrPercentage.js +1 -3
- package/lib/css/properties/CSSPropertyLineDash.js +1 -3
- package/lib/css/properties/CSSPropertyLocalPosition.js +1 -3
- package/lib/css/properties/CSSPropertyOffsetDistance.js +1 -3
- package/lib/css/properties/CSSPropertyOffsetPath.js +1 -3
- package/lib/css/properties/CSSPropertyOpacity.js +1 -3
- package/lib/css/properties/CSSPropertyPath.js +1 -3
- package/lib/css/properties/CSSPropertyPoints.js +1 -3
- package/lib/css/properties/CSSPropertyShadowBlur.js +1 -3
- package/lib/css/properties/CSSPropertyText.js +2 -4
- package/lib/css/properties/CSSPropertyTextTransform.js +1 -3
- package/lib/css/properties/CSSPropertyTransform.js +1 -3
- package/lib/css/properties/CSSPropertyTransformOrigin.js +1 -3
- package/lib/css/properties/CSSPropertyVisibility.js +1 -3
- package/lib/css/properties/CSSPropertyZIndex.js +1 -3
- package/lib/display-objects/Circle.js +1 -3
- package/lib/display-objects/CustomElement.js +1 -3
- package/lib/display-objects/DisplayObject.js +9 -7
- package/lib/display-objects/Ellipse.js +1 -3
- package/lib/display-objects/Group.js +1 -3
- package/lib/display-objects/HTML.js +4 -6
- package/lib/display-objects/Image.js +1 -3
- package/lib/display-objects/Line.js +1 -3
- package/lib/display-objects/Path.js +1 -3
- package/lib/display-objects/Polygon.js +1 -3
- package/lib/display-objects/Polyline.js +1 -3
- package/lib/display-objects/Rect.js +1 -3
- package/lib/display-objects/Text.js +4 -6
- package/lib/dom/Animation.js +2 -4
- package/lib/dom/AnimationEffectTiming.js +1 -3
- package/lib/dom/AnimationEvent.js +1 -3
- package/lib/dom/AnimationTimeline.js +2 -4
- package/lib/dom/CustomElementRegistry.js +1 -3
- package/lib/dom/CustomEvent.js +1 -3
- package/lib/dom/Document.js +1 -3
- package/lib/dom/Element.js +4 -6
- package/lib/dom/EventTarget.js +3 -5
- package/lib/dom/FederatedEvent.js +1 -3
- package/lib/dom/FederatedMouseEvent.js +1 -3
- package/lib/dom/FederatedPointerEvent.js +1 -3
- package/lib/dom/FederatedWheelEvent.js +1 -3
- package/lib/dom/KeyframeEffect.js +2 -4
- package/lib/dom/KeyframeList.js +1 -1
- package/lib/dom/MutationEvent.js +1 -3
- package/lib/dom/MutationObserver.js +4 -11
- package/lib/dom/MutationRecord.js +1 -3
- package/lib/dom/Node.js +2 -4
- package/lib/index.js +1 -1
- package/lib/plugins/CullingPlugin.js +2 -4
- package/lib/plugins/DirtyCheckPlugin.js +1 -3
- package/lib/plugins/EventPlugin.js +5 -4
- package/lib/plugins/FrustumCullingStrategy.js +1 -3
- package/lib/plugins/PrepareRendererPlugin.js +1 -3
- package/lib/services/EventService.js +26 -7
- package/lib/services/OffscreenCanvasCreator.js +1 -3
- package/lib/services/RenderingContext.d.ts +2 -1
- package/lib/services/RenderingContext.js +4 -1
- package/lib/services/RenderingService.js +1 -3
- package/lib/services/SceneGraphSelector.js +2 -4
- package/lib/services/SceneGraphService.d.ts +2 -1
- package/lib/services/SceneGraphService.js +5 -6
- package/lib/services/TextService.js +3 -5
- package/lib/services/aabb/CircleUpdater.js +1 -3
- package/lib/services/aabb/EllipseUpdater.js +1 -3
- package/lib/services/aabb/LineUpdater.js +1 -3
- package/lib/services/aabb/PathUpdater.js +1 -3
- package/lib/services/aabb/PolylineUpdater.js +1 -3
- package/lib/services/aabb/RectUpdater.js +1 -3
- package/lib/services/aabb/TextUpdater.js +1 -3
- package/lib/services/aabb/index.js +10 -10
- package/lib/services/aabb/interfaces.d.ts +3 -2
- package/lib/services/aabb/interfaces.js +9 -3
- package/lib/shapes/AABB.js +1 -3
- package/lib/shapes/BoundingSphere.js +1 -3
- package/lib/shapes/Frustum.js +2 -4
- package/lib/shapes/Plane.js +1 -3
- package/lib/shapes/Point.js +1 -3
- package/lib/shapes/Ray.js +1 -3
- package/lib/shapes/Rectangle.js +1 -3
- package/lib/types.d.ts +2 -1
- package/lib/types.js +6 -2
- package/lib/utils/animation.js +2 -3
- package/lib/utils/bezier-easing.js +1 -1
- package/lib/utils/custom-easing.d.ts +0 -9
- package/lib/utils/custom-easing.js +42 -66
- package/lib/utils/math.js +9 -9
- package/lib/utils/path.d.ts +1 -1
- package/lib/utils/path.js +6 -6
- package/lib/utils/text.js +3 -3
- package/package.json +3 -3
- package/dist/index.umd.min.js +0 -30
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.KeyframeEffect = void 0;
|
|
7
6
|
exports.makeTiming = makeTiming;
|
|
8
7
|
exports.normalizeTimingInput = normalizeTimingInput;
|
|
9
8
|
exports.numericTimingToObject = numericTimingToObject;
|
|
9
|
+
exports.KeyframeEffect = void 0;
|
|
10
10
|
|
|
11
11
|
var _animation = require("../utils/animation");
|
|
12
12
|
|
|
@@ -92,9 +92,7 @@ function numericTimingToObject(timingInput) {
|
|
|
92
92
|
*/
|
|
93
93
|
|
|
94
94
|
|
|
95
|
-
var KeyframeEffect =
|
|
96
|
-
/** @class */
|
|
97
|
-
function () {
|
|
95
|
+
var KeyframeEffect = function () {
|
|
98
96
|
function KeyframeEffect(target, effectInput, timingInput) {
|
|
99
97
|
var _this = this;
|
|
100
98
|
|
package/lib/dom/KeyframeList.js
CHANGED
|
@@ -102,7 +102,7 @@ function normalizeKeyframes(effectInput, timing) {
|
|
|
102
102
|
// TODO: Support add & accumulate in KeyframeEffect.composite
|
|
103
103
|
// @see https://developer.mozilla.org/en-US/docs/Web/API/KeyframeEffect/composite
|
|
104
104
|
if (['replace', 'add', 'accumulate', 'auto'].indexOf(memberValue) === -1) {
|
|
105
|
-
throw new Error(
|
|
105
|
+
throw new Error(memberValue + " compositing is not supported");
|
|
106
106
|
}
|
|
107
107
|
} else if (member === 'easing') {// TODO: Validate animation-timing-function
|
|
108
108
|
// @see https://developer.mozilla.org/en-US/docs/Web/CSS/animation-timing-function
|
package/lib/dom/MutationEvent.js
CHANGED
|
@@ -9,9 +9,7 @@ var _tslib = require("tslib");
|
|
|
9
9
|
|
|
10
10
|
var _FederatedEvent = require("./FederatedEvent");
|
|
11
11
|
|
|
12
|
-
var MutationEvent =
|
|
13
|
-
/** @class */
|
|
14
|
-
function (_super) {
|
|
12
|
+
var MutationEvent = function (_super) {
|
|
15
13
|
(0, _tslib.__extends)(MutationEvent, _super);
|
|
16
14
|
|
|
17
15
|
function MutationEvent(typeArg, relatedNode, prevValue, newValue, attrName, attrChange, prevParsedValue, newParsedValue) {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.MutationObserver = exports.Registration = void 0;
|
|
7
7
|
|
|
8
8
|
var _ = require("..");
|
|
9
9
|
|
|
@@ -14,9 +14,7 @@ var _MutationRecord = require("./MutationRecord");
|
|
|
14
14
|
var uidCounter = 0;
|
|
15
15
|
var registrationsTable = new WeakMap();
|
|
16
16
|
|
|
17
|
-
var Registration =
|
|
18
|
-
/** @class */
|
|
19
|
-
function () {
|
|
17
|
+
var Registration = function () {
|
|
20
18
|
function Registration(observer, target, options) {
|
|
21
19
|
this.observer = observer;
|
|
22
20
|
this.target = target;
|
|
@@ -206,9 +204,7 @@ exports.Registration = Registration;
|
|
|
206
204
|
* @see https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver
|
|
207
205
|
* @see https://github.com/googlearchive/MutationObservers/blob/master/MutationObserver.js
|
|
208
206
|
*/
|
|
209
|
-
var MutationObserver =
|
|
210
|
-
/** @class */
|
|
211
|
-
function () {
|
|
207
|
+
var MutationObserver = function () {
|
|
212
208
|
function MutationObserver(callback) {
|
|
213
209
|
this.callback = callback;
|
|
214
210
|
this.nodes = [];
|
|
@@ -218,10 +214,7 @@ function () {
|
|
|
218
214
|
|
|
219
215
|
MutationObserver.prototype.observe = function (target, options) {
|
|
220
216
|
// 1.1
|
|
221
|
-
if (!options.childList && !options.attributes && !options.characterData ||
|
|
222
|
-
options.attributeOldValue && !options.attributes || // 1.3
|
|
223
|
-
options.attributeFilter && options.attributeFilter.length && !options.attributes || // 1.4
|
|
224
|
-
options.characterDataOldValue && !options.characterData) {
|
|
217
|
+
if (!options.childList && !options.attributes && !options.characterData || options.attributeOldValue && !options.attributes || options.attributeFilter && options.attributeFilter.length && !options.attributes || options.characterDataOldValue && !options.characterData) {
|
|
225
218
|
throw new SyntaxError();
|
|
226
219
|
}
|
|
227
220
|
|
|
@@ -5,9 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.MutationRecord = void 0;
|
|
7
7
|
|
|
8
|
-
var MutationRecord =
|
|
9
|
-
/** @class */
|
|
10
|
-
function () {
|
|
8
|
+
var MutationRecord = function () {
|
|
11
9
|
function MutationRecord(type, target) {
|
|
12
10
|
this.type = type;
|
|
13
11
|
this.target = target;
|
package/lib/dom/Node.js
CHANGED
|
@@ -16,9 +16,7 @@ var _EventTarget = require("./EventTarget");
|
|
|
16
16
|
/**
|
|
17
17
|
* @see https://developer.mozilla.org/en-US/docs/Web/API/Node
|
|
18
18
|
*/
|
|
19
|
-
var Node =
|
|
20
|
-
/** @class */
|
|
21
|
-
function (_super) {
|
|
19
|
+
var Node = function (_super) {
|
|
22
20
|
(0, _tslib.__extends)(Node, _super);
|
|
23
21
|
|
|
24
22
|
function Node() {
|
|
@@ -127,7 +125,7 @@ function (_super) {
|
|
|
127
125
|
|
|
128
126
|
if (this.nodeName === _.Shape.TEXT) {
|
|
129
127
|
// @ts-ignore
|
|
130
|
-
this.style.text = ""
|
|
128
|
+
this.style.text = "" + content;
|
|
131
129
|
} else {// this.appendChild(
|
|
132
130
|
// new Text({
|
|
133
131
|
// style: {
|
package/lib/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
4
4
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.CullingPlugin = exports.CullingStrategyContribution = void 0;
|
|
7
7
|
|
|
8
8
|
var _tslib = require("tslib");
|
|
9
9
|
|
|
@@ -21,9 +21,7 @@ var CullingStrategyContribution = _manaSyringe.Syringe.defineToken('CullingStrat
|
|
|
21
21
|
|
|
22
22
|
exports.CullingStrategyContribution = CullingStrategyContribution;
|
|
23
23
|
|
|
24
|
-
var CullingPlugin =
|
|
25
|
-
/** @class */
|
|
26
|
-
function () {
|
|
24
|
+
var CullingPlugin = function () {
|
|
27
25
|
function CullingPlugin() {}
|
|
28
26
|
|
|
29
27
|
CullingPlugin_1 = CullingPlugin;
|
|
@@ -16,9 +16,7 @@ var _RenderingContext = require("../services/RenderingContext");
|
|
|
16
16
|
/**
|
|
17
17
|
* Filter dirty renderables and calculate the "dirty rectangle" which will be clear when frame began
|
|
18
18
|
*/
|
|
19
|
-
var DirtyCheckPlugin =
|
|
20
|
-
/** @class */
|
|
21
|
-
function () {
|
|
19
|
+
var DirtyCheckPlugin = function () {
|
|
22
20
|
function DirtyCheckPlugin() {}
|
|
23
21
|
|
|
24
22
|
DirtyCheckPlugin_1 = DirtyCheckPlugin;
|
|
@@ -29,9 +29,7 @@ var _event = require("../utils/event");
|
|
|
29
29
|
*
|
|
30
30
|
* also provide some extra events such as `drag`
|
|
31
31
|
*/
|
|
32
|
-
var EventPlugin =
|
|
33
|
-
/** @class */
|
|
34
|
-
function () {
|
|
32
|
+
var EventPlugin = function () {
|
|
35
33
|
function EventPlugin() {
|
|
36
34
|
var _this = this;
|
|
37
35
|
|
|
@@ -319,7 +317,10 @@ function () {
|
|
|
319
317
|
if ((0, _util.isUndefined)(touch.twist)) touch.twist = 0;
|
|
320
318
|
if ((0, _util.isUndefined)(touch.tangentialPressure)) touch.tangentialPressure = 0;
|
|
321
319
|
touch.isNormalized = true;
|
|
322
|
-
touch.type = event.type;
|
|
320
|
+
touch.type = event.type; // ref to nativeEvent
|
|
321
|
+
// touch.nativeEvent = event;
|
|
322
|
+
// touch.isLast = event.changedTouches.length - 1 === i;
|
|
323
|
+
|
|
323
324
|
normalizedEvents.push(touch);
|
|
324
325
|
}
|
|
325
326
|
} else if (canvas.isMouseEvent(event)) {
|
|
@@ -22,9 +22,7 @@ var _ = require("..");
|
|
|
22
22
|
// group is not a 2d shape
|
|
23
23
|
var shape2D = [_.Shape.CIRCLE, _.Shape.ELLIPSE, _.Shape.IMAGE, _.Shape.RECT, _.Shape.LINE, _.Shape.POLYLINE, _.Shape.POLYGON, _.Shape.TEXT, _.Shape.PATH, _.Shape.HTML];
|
|
24
24
|
|
|
25
|
-
var FrustumCullingStrategy =
|
|
26
|
-
/** @class */
|
|
27
|
-
function () {
|
|
25
|
+
var FrustumCullingStrategy = function () {
|
|
28
26
|
function FrustumCullingStrategy() {}
|
|
29
27
|
|
|
30
28
|
FrustumCullingStrategy.prototype.isVisible = function (object) {
|
|
@@ -15,9 +15,7 @@ var _dom = require("../dom");
|
|
|
15
15
|
|
|
16
16
|
var _services = require("../services");
|
|
17
17
|
|
|
18
|
-
var PrepareRendererPlugin =
|
|
19
|
-
/** @class */
|
|
20
|
-
function () {
|
|
18
|
+
var PrepareRendererPlugin = function () {
|
|
21
19
|
function PrepareRendererPlugin() {}
|
|
22
20
|
|
|
23
21
|
PrepareRendererPlugin_1 = PrepareRendererPlugin;
|
|
@@ -33,9 +33,7 @@ var _ContextService = require("./ContextService");
|
|
|
33
33
|
|
|
34
34
|
var PROPAGATION_LIMIT = 2048;
|
|
35
35
|
|
|
36
|
-
var EventService =
|
|
37
|
-
/** @class */
|
|
38
|
-
function (_super) {
|
|
36
|
+
var EventService = function (_super) {
|
|
39
37
|
(0, _tslib.__extends)(EventService, _super);
|
|
40
38
|
|
|
41
39
|
function EventService() {
|
|
@@ -69,7 +67,9 @@ function (_super) {
|
|
|
69
67
|
this.dispatchEvent(e, 'pointerdown');
|
|
70
68
|
|
|
71
69
|
if (e.pointerType === 'touch') {
|
|
72
|
-
|
|
70
|
+
// only the
|
|
71
|
+
// if (e.isLast) {
|
|
72
|
+
this.dispatchEvent(e, 'touchstart'); // }
|
|
73
73
|
} else if (e.pointerType === 'mouse' || e.pointerType === 'pen') {
|
|
74
74
|
isRightButton = e.button === 2;
|
|
75
75
|
this.dispatchEvent(e, isRightButton ? 'rightdown' : 'mousedown');
|
|
@@ -589,7 +589,7 @@ function (_super) {
|
|
|
589
589
|
mappers[i].fn(e);
|
|
590
590
|
}
|
|
591
591
|
} else {
|
|
592
|
-
console.warn("[EventService]: Event mapping not defined for "
|
|
592
|
+
console.warn("[EventService]: Event mapping not defined for " + e.type);
|
|
593
593
|
}
|
|
594
594
|
};
|
|
595
595
|
|
|
@@ -693,8 +693,27 @@ function (_super) {
|
|
|
693
693
|
};
|
|
694
694
|
|
|
695
695
|
EventService.prototype.isNativeEventFromCanvas = function (event) {
|
|
696
|
+
var _a;
|
|
697
|
+
|
|
696
698
|
var $el = this.contextService.getDomElement();
|
|
697
|
-
|
|
699
|
+
var target = (_a = event.nativeEvent) === null || _a === void 0 ? void 0 : _a.target;
|
|
700
|
+
|
|
701
|
+
if (target) {
|
|
702
|
+
if (target === $el) {
|
|
703
|
+
return true;
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
if ($el && $el.contains) {
|
|
707
|
+
return $el.contains(target);
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
if (event.nativeEvent.composedPath) {
|
|
712
|
+
return event.nativeEvent.composedPath().indexOf($el) > -1;
|
|
713
|
+
} // account for Touch
|
|
714
|
+
|
|
715
|
+
|
|
716
|
+
return false;
|
|
698
717
|
};
|
|
699
718
|
|
|
700
719
|
EventService.prototype.createPointerEvent = function (from, type, target) {
|
|
@@ -902,7 +921,7 @@ function (_super) {
|
|
|
902
921
|
|
|
903
922
|
EventService.prototype.notifyTarget = function (e, type) {
|
|
904
923
|
type = type !== null && type !== void 0 ? type : e.type;
|
|
905
|
-
var key = e.eventPhase === e.CAPTURING_PHASE || e.eventPhase === e.AT_TARGET ?
|
|
924
|
+
var key = e.eventPhase === e.CAPTURING_PHASE || e.eventPhase === e.AT_TARGET ? type + "capture" : type;
|
|
906
925
|
this.notifyListeners(e, key);
|
|
907
926
|
|
|
908
927
|
if (e.eventPhase === e.AT_TARGET) {
|
|
@@ -15,9 +15,7 @@ var _manaSyringe = require("mana-syringe");
|
|
|
15
15
|
* - g-plugin-canvas-picker `ctx.isPointInPath`
|
|
16
16
|
* - g-plugin-webgl-renderer `ctx.createLinearGradient` and generate texture
|
|
17
17
|
*/
|
|
18
|
-
var OffscreenCanvasCreator =
|
|
19
|
-
/** @class */
|
|
20
|
-
function () {
|
|
18
|
+
var OffscreenCanvasCreator = function () {
|
|
21
19
|
function OffscreenCanvasCreator() {}
|
|
22
20
|
|
|
23
21
|
OffscreenCanvasCreator.prototype.getOrCreateCanvas = function (offscreenCanvas) {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Syringe } from 'mana-syringe';
|
|
1
2
|
import type { Group } from '../display-objects';
|
|
2
3
|
/**
|
|
3
4
|
* why we need re-render
|
|
@@ -7,7 +8,7 @@ export declare enum RenderReason {
|
|
|
7
8
|
DISPLAY_OBJECT_CHANGED = 1,
|
|
8
9
|
NONE = 2
|
|
9
10
|
}
|
|
10
|
-
export declare const RenderingContext
|
|
11
|
+
export declare const RenderingContext: Syringe.DefinedToken;
|
|
11
12
|
export interface RenderingContext {
|
|
12
13
|
/**
|
|
13
14
|
* root of scenegraph
|
|
@@ -5,6 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.RenderingContext = exports.RenderReason = void 0;
|
|
7
7
|
|
|
8
|
+
var _manaSyringe = require("mana-syringe");
|
|
9
|
+
|
|
8
10
|
/**
|
|
9
11
|
* why we need re-render
|
|
10
12
|
*/
|
|
@@ -17,5 +19,6 @@ exports.RenderReason = RenderReason;
|
|
|
17
19
|
RenderReason[RenderReason["NONE"] = 2] = "NONE";
|
|
18
20
|
})(RenderReason || (exports.RenderReason = RenderReason = {}));
|
|
19
21
|
|
|
20
|
-
var RenderingContext = 'RenderingContext';
|
|
22
|
+
var RenderingContext = _manaSyringe.Syringe.defineToken('RenderingContext');
|
|
23
|
+
|
|
21
24
|
exports.RenderingContext = RenderingContext;
|
|
@@ -33,9 +33,7 @@ var RenderingPluginContribution = _manaSyringe.Syringe.defineToken('RenderingPlu
|
|
|
33
33
|
|
|
34
34
|
exports.RenderingPluginContribution = RenderingPluginContribution;
|
|
35
35
|
|
|
36
|
-
var RenderingService =
|
|
37
|
-
/** @class */
|
|
38
|
-
function () {
|
|
36
|
+
var RenderingService = function () {
|
|
39
37
|
function RenderingService() {
|
|
40
38
|
this.inited = false;
|
|
41
39
|
this.stats = {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.DefaultSceneGraphSelector = exports.SceneGraphSelector = exports.SceneGraphSelectorFactory = void 0;
|
|
7
7
|
|
|
8
8
|
var _tslib = require("tslib");
|
|
9
9
|
|
|
@@ -29,9 +29,7 @@ var NAME_REGEXP = /\[\s*name=(.*)\s*\]/;
|
|
|
29
29
|
* * querySelectorAll
|
|
30
30
|
*/
|
|
31
31
|
|
|
32
|
-
var DefaultSceneGraphSelector =
|
|
33
|
-
/** @class */
|
|
34
|
-
function () {
|
|
32
|
+
var DefaultSceneGraphSelector = function () {
|
|
35
33
|
function DefaultSceneGraphSelector() {}
|
|
36
34
|
|
|
37
35
|
DefaultSceneGraphSelector.prototype.selectOne = function (query, root) {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Syringe } from 'mana-syringe';
|
|
1
2
|
import type { Transform } from '../components';
|
|
2
3
|
import type { vec2 } from 'gl-matrix';
|
|
3
4
|
import { mat4, quat, vec3 } from 'gl-matrix';
|
|
@@ -5,7 +6,7 @@ import { AABB, Rectangle } from '../shapes';
|
|
|
5
6
|
import type { IElement, INode, IParentNode } from '../dom/interfaces';
|
|
6
7
|
export declare function sortByZIndex(o1: IElement, o2: IElement): number;
|
|
7
8
|
export declare function dirtifyToRoot(element: INode, affectChildren?: boolean): void;
|
|
8
|
-
export declare const SceneGraphService
|
|
9
|
+
export declare const SceneGraphService: Syringe.DefinedToken;
|
|
9
10
|
export interface SceneGraphService {
|
|
10
11
|
matches: <T extends IElement>(query: string, root: T) => boolean;
|
|
11
12
|
querySelector: <R extends IElement, T extends IElement>(query: string, root: R) => T | null;
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.SceneGraphService = exports.DefaultSceneGraphService = void 0;
|
|
7
|
-
exports.dirtifyToRoot = dirtifyToRoot;
|
|
8
6
|
exports.sortByZIndex = sortByZIndex;
|
|
7
|
+
exports.dirtifyToRoot = dirtifyToRoot;
|
|
8
|
+
exports.DefaultSceneGraphService = exports.SceneGraphService = void 0;
|
|
9
9
|
|
|
10
10
|
var _tslib = require("tslib");
|
|
11
11
|
|
|
@@ -64,18 +64,17 @@ function dirtifyToRoot(element, affectChildren) {
|
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
var SceneGraphService = 'SceneGraphService';
|
|
67
|
+
var SceneGraphService = _manaSyringe.Syringe.defineToken('SceneGraphService');
|
|
68
68
|
/**
|
|
69
69
|
* update transform in scene graph
|
|
70
70
|
*
|
|
71
71
|
* @see https://community.khronos.org/t/scene-graphs/50542/7
|
|
72
72
|
*/
|
|
73
73
|
|
|
74
|
+
|
|
74
75
|
exports.SceneGraphService = SceneGraphService;
|
|
75
76
|
|
|
76
|
-
var DefaultSceneGraphService =
|
|
77
|
-
/** @class */
|
|
78
|
-
function () {
|
|
77
|
+
var DefaultSceneGraphService = function () {
|
|
79
78
|
function DefaultSceneGraphService() {
|
|
80
79
|
var _this = this;
|
|
81
80
|
/**
|
|
@@ -34,12 +34,10 @@ var regexCannotStartJaJp = /[)\]}〕〉》」』】〙〗〟'"⦆»ヽヾー
|
|
|
34
34
|
var regexCannotEndJaJp = /[([{〔〈《「『【〘〖〝'"⦅«—...‥〳〴〵]/;
|
|
35
35
|
var regexCannotStartKoKr = /[!%),.:;?\]}¢°'"†‡℃〆〈《「『〕!%),.:;?]}]/;
|
|
36
36
|
var regexCannotEndKoKr = /[$([{£¥'"々〇〉》」〔$([{⦆¥₩#]/;
|
|
37
|
-
var regexCannotStart = new RegExp(
|
|
38
|
-
var regexCannotEnd = new RegExp(
|
|
37
|
+
var regexCannotStart = new RegExp(regexCannotStartZhCn.source + "|" + regexCannotStartZhTw.source + "|" + regexCannotStartJaJp.source + "|" + regexCannotStartKoKr.source);
|
|
38
|
+
var regexCannotEnd = new RegExp(regexCannotEndZhCn.source + "|" + regexCannotEndZhTw.source + "|" + regexCannotEndJaJp.source + "|" + regexCannotEndKoKr.source);
|
|
39
39
|
|
|
40
|
-
var TextService =
|
|
41
|
-
/** @class */
|
|
42
|
-
function () {
|
|
40
|
+
var TextService = function () {
|
|
43
41
|
function TextService() {
|
|
44
42
|
var _this = this;
|
|
45
43
|
|
|
@@ -13,9 +13,7 @@ var _interfaces = require("./interfaces");
|
|
|
13
13
|
|
|
14
14
|
var _types = require("../../types");
|
|
15
15
|
|
|
16
|
-
var CircleUpdater =
|
|
17
|
-
/** @class */
|
|
18
|
-
function () {
|
|
16
|
+
var CircleUpdater = function () {
|
|
19
17
|
function CircleUpdater() {}
|
|
20
18
|
|
|
21
19
|
CircleUpdater.prototype.update = function (parsedStyle, object) {
|
|
@@ -13,9 +13,7 @@ var _interfaces = require("./interfaces");
|
|
|
13
13
|
|
|
14
14
|
var _types = require("../../types");
|
|
15
15
|
|
|
16
|
-
var EllipseUpdater =
|
|
17
|
-
/** @class */
|
|
18
|
-
function () {
|
|
16
|
+
var EllipseUpdater = function () {
|
|
19
17
|
function EllipseUpdater() {}
|
|
20
18
|
|
|
21
19
|
EllipseUpdater.prototype.update = function (parsedStyle, object) {
|
|
@@ -13,9 +13,7 @@ var _interfaces = require("./interfaces");
|
|
|
13
13
|
|
|
14
14
|
var _types = require("../../types");
|
|
15
15
|
|
|
16
|
-
var LineUpdater =
|
|
17
|
-
/** @class */
|
|
18
|
-
function () {
|
|
16
|
+
var LineUpdater = function () {
|
|
19
17
|
function LineUpdater() {}
|
|
20
18
|
|
|
21
19
|
LineUpdater.prototype.update = function (parsedStyle) {
|
|
@@ -13,9 +13,7 @@ var _interfaces = require("./interfaces");
|
|
|
13
13
|
|
|
14
14
|
var _types = require("../../types");
|
|
15
15
|
|
|
16
|
-
var PathUpdater =
|
|
17
|
-
/** @class */
|
|
18
|
-
function () {
|
|
16
|
+
var PathUpdater = function () {
|
|
19
17
|
function PathUpdater() {}
|
|
20
18
|
|
|
21
19
|
PathUpdater.prototype.update = function (parsedStyle) {
|
|
@@ -13,9 +13,7 @@ var _interfaces = require("./interfaces");
|
|
|
13
13
|
|
|
14
14
|
var _types = require("../../types");
|
|
15
15
|
|
|
16
|
-
var PolylineUpdater =
|
|
17
|
-
/** @class */
|
|
18
|
-
function () {
|
|
16
|
+
var PolylineUpdater = function () {
|
|
19
17
|
function PolylineUpdater() {}
|
|
20
18
|
|
|
21
19
|
PolylineUpdater.prototype.update = function (parsedStyle) {
|
|
@@ -17,9 +17,7 @@ var _types = require("../../types");
|
|
|
17
17
|
|
|
18
18
|
var _css = require("../../css");
|
|
19
19
|
|
|
20
|
-
var RectUpdater =
|
|
21
|
-
/** @class */
|
|
22
|
-
function () {
|
|
20
|
+
var RectUpdater = function () {
|
|
23
21
|
function RectUpdater() {}
|
|
24
22
|
|
|
25
23
|
RectUpdater.prototype.update = function (parsedStyle, object) {
|
|
@@ -19,9 +19,7 @@ var _types = require("../../types");
|
|
|
19
19
|
|
|
20
20
|
var _css = require("../../css");
|
|
21
21
|
|
|
22
|
-
var TextUpdater =
|
|
23
|
-
/** @class */
|
|
24
|
-
function () {
|
|
22
|
+
var TextUpdater = function () {
|
|
25
23
|
function TextUpdater() {}
|
|
26
24
|
|
|
27
25
|
TextUpdater.prototype.isReadyToMeasure = function (parsedStyle, object) {
|
|
@@ -24,34 +24,34 @@ Object.defineProperty(exports, "EllipseUpdater", {
|
|
|
24
24
|
return _EllipseUpdater.EllipseUpdater;
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
|
-
Object.defineProperty(exports, "
|
|
27
|
+
Object.defineProperty(exports, "RectUpdater", {
|
|
28
28
|
enumerable: true,
|
|
29
29
|
get: function get() {
|
|
30
|
-
return
|
|
30
|
+
return _RectUpdater.RectUpdater;
|
|
31
31
|
}
|
|
32
32
|
});
|
|
33
|
-
Object.defineProperty(exports, "
|
|
33
|
+
Object.defineProperty(exports, "TextUpdater", {
|
|
34
34
|
enumerable: true,
|
|
35
35
|
get: function get() {
|
|
36
|
-
return
|
|
36
|
+
return _TextUpdater.TextUpdater;
|
|
37
37
|
}
|
|
38
38
|
});
|
|
39
|
-
Object.defineProperty(exports, "
|
|
39
|
+
Object.defineProperty(exports, "LineUpdater", {
|
|
40
40
|
enumerable: true,
|
|
41
41
|
get: function get() {
|
|
42
|
-
return
|
|
42
|
+
return _LineUpdater.LineUpdater;
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
|
-
Object.defineProperty(exports, "
|
|
45
|
+
Object.defineProperty(exports, "PolylineUpdater", {
|
|
46
46
|
enumerable: true,
|
|
47
47
|
get: function get() {
|
|
48
|
-
return
|
|
48
|
+
return _PolylineUpdater.PolylineUpdater;
|
|
49
49
|
}
|
|
50
50
|
});
|
|
51
|
-
Object.defineProperty(exports, "
|
|
51
|
+
Object.defineProperty(exports, "PathUpdater", {
|
|
52
52
|
enumerable: true,
|
|
53
53
|
get: function get() {
|
|
54
|
-
return
|
|
54
|
+
return _PathUpdater.PathUpdater;
|
|
55
55
|
}
|
|
56
56
|
});
|
|
57
57
|
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { Syringe } from 'mana-syringe';
|
|
1
2
|
import type { DisplayObject } from '../../display-objects/DisplayObject';
|
|
2
3
|
import type { ParsedBaseStyleProps } from '../../types';
|
|
3
|
-
export declare const GeometryUpdaterFactory
|
|
4
|
-
export declare const GeometryAABBUpdater
|
|
4
|
+
export declare const GeometryUpdaterFactory: Syringe.DefinedToken;
|
|
5
|
+
export declare const GeometryAABBUpdater: Syringe.DefinedToken;
|
|
5
6
|
export interface GeometryAABBUpdater<T extends ParsedBaseStyleProps = any> {
|
|
6
7
|
update: (parsedStyle: T, object: DisplayObject) => {
|
|
7
8
|
width: number;
|
|
@@ -3,8 +3,14 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
7
|
-
|
|
6
|
+
exports.GeometryAABBUpdater = exports.GeometryUpdaterFactory = void 0;
|
|
7
|
+
|
|
8
|
+
var _manaSyringe = require("mana-syringe");
|
|
9
|
+
|
|
10
|
+
var GeometryUpdaterFactory = _manaSyringe.Syringe.defineToken('GeometryUpdaterFactory');
|
|
11
|
+
|
|
8
12
|
exports.GeometryUpdaterFactory = GeometryUpdaterFactory;
|
|
9
|
-
|
|
13
|
+
|
|
14
|
+
var GeometryAABBUpdater = _manaSyringe.Syringe.defineToken('GeometryAABBUpdater');
|
|
15
|
+
|
|
10
16
|
exports.GeometryAABBUpdater = GeometryAABBUpdater;
|
package/lib/shapes/AABB.js
CHANGED
|
@@ -12,9 +12,7 @@ var _glMatrix = require("gl-matrix");
|
|
|
12
12
|
* 为了便于后续 Frustum Culling,通过查找表定义 p-vertex 和 n-vertex
|
|
13
13
|
* @see https://github.com/antvis/GWebGPUEngine/issues/3
|
|
14
14
|
*/
|
|
15
|
-
var AABB =
|
|
16
|
-
/** @class */
|
|
17
|
-
function () {
|
|
15
|
+
var AABB = function () {
|
|
18
16
|
function AABB(center, halfExtents) {
|
|
19
17
|
this.min = _glMatrix.vec3.create();
|
|
20
18
|
this.max = _glMatrix.vec3.create();
|
|
@@ -9,9 +9,7 @@ var _glMatrix = require("gl-matrix");
|
|
|
9
9
|
|
|
10
10
|
var tmpVecA = _glMatrix.vec3.create();
|
|
11
11
|
|
|
12
|
-
var BoundingSphere =
|
|
13
|
-
/** @class */
|
|
14
|
-
function () {
|
|
12
|
+
var BoundingSphere = function () {
|
|
15
13
|
function BoundingSphere(center, radius) {
|
|
16
14
|
this.center = center || _glMatrix.vec3.create();
|
|
17
15
|
this.radius = radius || 0.5;
|
package/lib/shapes/Frustum.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.Frustum = exports.Mask = void 0;
|
|
7
7
|
|
|
8
8
|
var _tslib = require("tslib");
|
|
9
9
|
|
|
@@ -20,9 +20,7 @@ exports.Mask = Mask;
|
|
|
20
20
|
Mask[Mask["INDETERMINATE"] = 2147483647] = "INDETERMINATE";
|
|
21
21
|
})(Mask || (exports.Mask = Mask = {}));
|
|
22
22
|
|
|
23
|
-
var Frustum =
|
|
24
|
-
/** @class */
|
|
25
|
-
function () {
|
|
23
|
+
var Frustum = function () {
|
|
26
24
|
function Frustum(planes) {
|
|
27
25
|
this.planes = [];
|
|
28
26
|
|
package/lib/shapes/Plane.js
CHANGED
|
@@ -7,9 +7,7 @@ exports.Plane = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _glMatrix = require("gl-matrix");
|
|
9
9
|
|
|
10
|
-
var Plane =
|
|
11
|
-
/** @class */
|
|
12
|
-
function () {
|
|
10
|
+
var Plane = function () {
|
|
13
11
|
function Plane(distance, normal) {
|
|
14
12
|
this.distance = distance || 0;
|
|
15
13
|
this.normal = normal || _glMatrix.vec3.fromValues(0, 1, 0);
|