@promptbook/browser 0.112.0-104 → 0.112.0-105

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/esm/index.es.js CHANGED
@@ -29,7 +29,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
29
29
  * @generated
30
30
  * @see https://github.com/webgptorg/promptbook
31
31
  */
32
- const PROMPTBOOK_ENGINE_VERSION = '0.112.0-104';
32
+ const PROMPTBOOK_ENGINE_VERSION = '0.112.0-105';
33
33
  /**
34
34
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
35
35
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -8944,10 +8944,7 @@ function sampleContinuousOctopusSurfacePoint(options, latitude, longitude) {
8944
8944
  Math.max(0, Math.cos(effectiveLongitude)) * 0.1 +
8945
8945
  lowerBlend * tentacleInfluence.core * (0.1 + tentacleInfluence.depthScale * 0.06) -
8946
8946
  Math.max(0, -Math.cos(effectiveLongitude)) * 0.05;
8947
- const tentacleTubeRadius = lowerBlend *
8948
- tentacleInfluence.core *
8949
- (0.11 + tipBlend * 0.06 + tentacleInfluence.widthScale * 0.025) *
8950
- radiusX;
8947
+ const tentacleTubeRadius = lowerBlend * tentacleInfluence.core * (0.11 + tipBlend * 0.06 + tentacleInfluence.widthScale * 0.025) * radiusX;
8951
8948
  const planarRadiusX = cosineLatitude * radiusX * horizontalScale + tentacleTubeRadius;
8952
8949
  const planarRadiusZ = cosineLatitude * radiusZ * depthScale + tentacleTubeRadius * 0.72;
8953
8950
  const lowerDrop = lowerBlend *
@@ -8958,8 +8955,7 @@ function sampleContinuousOctopusSurfacePoint(options, latitude, longitude) {
8958
8955
  tentacleInfluence.lengthScale * 0.22 +
8959
8956
  (morphologyProfile.tentacles.flowLengthScale - 1) * 0.08));
8960
8957
  return {
8961
- x: Math.sin(effectiveLongitude) * planarRadiusX +
8962
- tentacleWave * radiusX * (0.052 + tipBlend * 0.05),
8958
+ x: Math.sin(effectiveLongitude) * planarRadiusX + tentacleWave * radiusX * (0.052 + tipBlend * 0.05),
8963
8959
  y: Math.sin(latitude) * radiusY * (1 + upperBlend * 0.12) -
8964
8960
  upperBlend * radiusY * 0.1 +
8965
8961
  lowerDrop +
@@ -9033,8 +9029,11 @@ function resolveContinuousTentacleInfluence(options, longitude) {
9033
9029
  */
9034
9030
  function resolveContinuousLobeWave(options, longitude) {
9035
9031
  const { morphologyProfile, animationPhase, timeMs } = options;
9036
- return (Math.cos(longitude * OCTOPUS_TENTACLE_COUNT + animationPhase + timeMs / (980 + morphologyProfile.body.lobeCount * 18)) +
9037
- 1) / 2;
9032
+ return ((Math.cos(longitude * OCTOPUS_TENTACLE_COUNT +
9033
+ animationPhase +
9034
+ timeMs / (980 + morphologyProfile.body.lobeCount * 18)) +
9035
+ 1) /
9036
+ 2);
9038
9037
  }
9039
9038
  /**
9040
9039
  * Resolves one base fill tone for a patch on the continuous octopus mesh.
@@ -9098,8 +9097,7 @@ function drawProjectedSurfaceCurrents(options) {
9098
9097
  for (let sampleIndex = 0; sampleIndex < 8; sampleIndex++) {
9099
9098
  const progress = sampleIndex / 7;
9100
9099
  const latitude = -0.46 + progress * 0.74;
9101
- const longitude = baseLongitude +
9102
- Math.sin(timeMs / 1160 + animationPhase + currentIndex * 0.7 + progress * 2) * 0.035;
9100
+ const longitude = baseLongitude + Math.sin(timeMs / 1160 + animationPhase + currentIndex * 0.7 + progress * 2) * 0.035;
9103
9101
  const scenePoint = transformScenePoint(sampleContinuousOctopusSurfacePoint(surfaceOptions, latitude, longitude), center, rotationX, rotationY);
9104
9102
  if (scenePoint.z > center.z - size * 0.016) {
9105
9103
  projectedPoints.push(projectScenePoint(scenePoint, size, sceneCenterX, sceneCenterY));