@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.
@@ -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
- _ref$blendFunction = _ref.blendFunction,
379
- blendFunction = _ref$blendFunction === void 0 ? postprocessing.BlendFunction.SCREEN : _ref$blendFunction,
380
- _ref$patternTexture = _ref.patternTexture,
381
- patternTexture = _ref$patternTexture === void 0 ? null : _ref$patternTexture,
382
- _ref$edgeStrength = _ref.edgeStrength,
383
- edgeStrength = _ref$edgeStrength === void 0 ? 1 : _ref$edgeStrength,
384
- _ref$pulseSpeed = _ref.pulseSpeed,
385
- pulseSpeed = _ref$pulseSpeed === void 0 ? 0 : _ref$pulseSpeed,
386
- _ref$visibleEdgeColor = _ref.visibleEdgeColor,
387
- visibleEdgeColor = _ref$visibleEdgeColor === void 0 ? 0xffffff : _ref$visibleEdgeColor,
388
- _ref$hiddenEdgeColor = _ref.hiddenEdgeColor,
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, Resizer, KernelSize, OutlineEffect, PixelationEffect, ScanlineEffect, SelectiveBloomEffect, SepiaEffect, SSAOEffect, SMAAPreset, EdgeDetectionMode, SMAAImageLoader, SMAAEffect, TextureEffect, ToneMappingEffect, VignetteEffect, ShockWaveEffect, LUTEffect } from 'postprocessing';
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 = BlendFunction.SCREEN,
298
- patternTexture = null,
299
- edgeStrength = 1,
300
- pulseSpeed = 0,
301
- visibleEdgeColor = 0xffffff,
302
- hiddenEdgeColor = 0xffffff,
303
- width = Resizer.AUTO_SIZE,
304
- height = Resizer.AUTO_SIZE,
305
- kernelSize = KernelSize.VERY_SMALL,
306
- blur = false,
307
- xRay = true,
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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-three/postprocessing",
3
- "version": "2.2.1",
3
+ "version": "2.2.2",
4
4
  "description": "postprocessing wrapper for React and @react-three/fiber",
5
5
  "keywords": [
6
6
  "postprocessing",