@react-three/postprocessing 2.2.1 → 2.2.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/dist/effects/Outline.d.ts +1 -2
- package/dist/index.cjs.js +11 -22
- package/dist/index.js +12 -12
- package/package.json +1 -1
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { OutlineEffect } from 'postprocessing';
|
|
2
2
|
import React, { MutableRefObject } from 'react';
|
|
3
3
|
import { Object3D } from 'three';
|
|
4
|
-
import { BlendFunction } from 'postprocessing';
|
|
5
4
|
declare type ObjectRef = MutableRefObject<Object3D>;
|
|
6
5
|
export declare type OutlineProps = ConstructorParameters<typeof OutlineEffect>[2] & Partial<{
|
|
7
6
|
selection: Object3D | Object3D[] | ObjectRef | ObjectRef[];
|
|
8
7
|
selectionLayer: number;
|
|
9
8
|
}>;
|
|
10
9
|
export declare const Outline: React.ForwardRefExoticComponent<Partial<{
|
|
11
|
-
blendFunction: BlendFunction;
|
|
10
|
+
blendFunction: import("postprocessing").BlendFunction;
|
|
12
11
|
patternTexture: number;
|
|
13
12
|
edgeStrength: number;
|
|
14
13
|
pulseSpeed: number;
|
package/dist/index.cjs.js
CHANGED
|
@@ -375,28 +375,17 @@ var Outline = /*#__PURE__*/React.forwardRef(function Outline(_ref, forwardRef) {
|
|
|
375
375
|
selection = _ref$selection === void 0 ? [] : _ref$selection,
|
|
376
376
|
_ref$selectionLayer = _ref.selectionLayer,
|
|
377
377
|
selectionLayer = _ref$selectionLayer === void 0 ? 10 : _ref$selectionLayer,
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
hiddenEdgeColor = _ref$hiddenEdgeColor === void 0 ? 0xffffff : _ref$hiddenEdgeColor,
|
|
390
|
-
_ref$width = _ref.width,
|
|
391
|
-
width = _ref$width === void 0 ? postprocessing.Resizer.AUTO_SIZE : _ref$width,
|
|
392
|
-
_ref$height = _ref.height,
|
|
393
|
-
height = _ref$height === void 0 ? postprocessing.Resizer.AUTO_SIZE : _ref$height,
|
|
394
|
-
_ref$kernelSize = _ref.kernelSize,
|
|
395
|
-
kernelSize = _ref$kernelSize === void 0 ? postprocessing.KernelSize.VERY_SMALL : _ref$kernelSize,
|
|
396
|
-
_ref$blur = _ref.blur,
|
|
397
|
-
blur = _ref$blur === void 0 ? false : _ref$blur,
|
|
398
|
-
_ref$xRay = _ref.xRay,
|
|
399
|
-
xRay = _ref$xRay === void 0 ? true : _ref$xRay;
|
|
378
|
+
blendFunction = _ref.blendFunction,
|
|
379
|
+
patternTexture = _ref.patternTexture,
|
|
380
|
+
edgeStrength = _ref.edgeStrength,
|
|
381
|
+
pulseSpeed = _ref.pulseSpeed,
|
|
382
|
+
visibleEdgeColor = _ref.visibleEdgeColor,
|
|
383
|
+
hiddenEdgeColor = _ref.hiddenEdgeColor,
|
|
384
|
+
width = _ref.width,
|
|
385
|
+
height = _ref.height,
|
|
386
|
+
kernelSize = _ref.kernelSize,
|
|
387
|
+
blur = _ref.blur,
|
|
388
|
+
xRay = _ref.xRay;
|
|
400
389
|
_objectWithoutPropertiesLoose__default["default"](_ref, _excluded$2);
|
|
401
390
|
|
|
402
391
|
var _useContext = React.useContext(EffectComposerContext),
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BlendFunction, BloomEffect, BrightnessContrastEffect, ChromaticAberrationEffect, ColorAverageEffect, ColorDepthEffect, DepthEffect, EffectComposer as EffectComposer$1, RenderPass, NormalPass, EffectPass, DepthOfFieldEffect, DotScreenEffect, GlitchEffect, GlitchMode, GodRaysEffect, GridEffect, HueSaturationEffect, NoiseEffect,
|
|
1
|
+
import { BlendFunction, BloomEffect, BrightnessContrastEffect, ChromaticAberrationEffect, ColorAverageEffect, ColorDepthEffect, DepthEffect, EffectComposer as EffectComposer$1, RenderPass, NormalPass, EffectPass, DepthOfFieldEffect, DotScreenEffect, GlitchEffect, GlitchMode, GodRaysEffect, GridEffect, HueSaturationEffect, NoiseEffect, OutlineEffect, PixelationEffect, ScanlineEffect, SelectiveBloomEffect, SepiaEffect, SSAOEffect, SMAAPreset, EdgeDetectionMode, SMAAImageLoader, SMAAEffect, TextureEffect, ToneMappingEffect, VignetteEffect, ShockWaveEffect, LUTEffect } from 'postprocessing';
|
|
2
2
|
import React, { forwardRef, useMemo, useLayoutEffect, createContext, useRef, useImperativeHandle, useContext, useState, useEffect } from 'react';
|
|
3
3
|
import * as THREE from 'three';
|
|
4
4
|
import { Vector2, Vector3, TextureLoader, sRGBEncoding, RepeatWrapping } from 'three';
|
|
@@ -294,17 +294,17 @@ const Outline = /*#__PURE__*/forwardRef(function Outline(_ref, forwardRef) {
|
|
|
294
294
|
let {
|
|
295
295
|
selection = [],
|
|
296
296
|
selectionLayer = 10,
|
|
297
|
-
blendFunction
|
|
298
|
-
patternTexture
|
|
299
|
-
edgeStrength
|
|
300
|
-
pulseSpeed
|
|
301
|
-
visibleEdgeColor
|
|
302
|
-
hiddenEdgeColor
|
|
303
|
-
width
|
|
304
|
-
height
|
|
305
|
-
kernelSize
|
|
306
|
-
blur
|
|
307
|
-
xRay
|
|
297
|
+
blendFunction,
|
|
298
|
+
patternTexture,
|
|
299
|
+
edgeStrength,
|
|
300
|
+
pulseSpeed,
|
|
301
|
+
visibleEdgeColor,
|
|
302
|
+
hiddenEdgeColor,
|
|
303
|
+
width,
|
|
304
|
+
height,
|
|
305
|
+
kernelSize,
|
|
306
|
+
blur,
|
|
307
|
+
xRay,
|
|
308
308
|
...props
|
|
309
309
|
} = _ref;
|
|
310
310
|
const {
|